@deephaven/embed-chart 0.29.1-jsapi-core-module.9 → 0.29.1-jsapi-module.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/assets/App.730dc7d8.js +2 -0
- package/build/assets/App.730dc7d8.js.map +1 -0
- package/build/assets/App.a2eeb683.css +1 -0
- package/build/assets/index.4b16900b.css +6 -0
- package/build/assets/index.68e7d47b.js +2 -0
- package/build/assets/index.68e7d47b.js.map +1 -0
- package/build/assets/{plotly.07dce3c8.js → plotly.ec77b778.js} +2 -2
- package/build/assets/{plotly.07dce3c8.js.map → plotly.ec77b778.js.map} +1 -1
- package/build/assets/vendor.cb50d8fc.js +1171 -0
- package/build/assets/vendor.cb50d8fc.js.map +1 -0
- package/build/index.html +3 -36
- package/package.json +13 -12
- package/build/assets/index.891a3fd6.js +0 -2
- package/build/assets/index.891a3fd6.js.map +0 -1
- package/build/assets/index.d0520d4e.css +0 -6
- package/build/assets/vendor.345ec474.js +0 -1171
- package/build/assets/vendor.345ec474.js.map +0 -1
|
@@ -1,1171 +0,0 @@
|
|
|
1
|
-
import{g as N_,a as El,c as Ar}from"./helpers.162e09a8.js";var L_={exports:{}},Pi={},Kt={exports:{}},gr={};/*
|
|
2
|
-
object-assign
|
|
3
|
-
(c) Sindre Sorhus
|
|
4
|
-
@license MIT
|
|
5
|
-
*/var JS=Object.getOwnPropertySymbols,fN=Object.prototype.hasOwnProperty,cN=Object.prototype.propertyIsEnumerable;function hN(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function dN(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(a){i[a]=a}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Al=dN()?Object.assign:function(e,t){for(var r,n=hN(e),i,a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var o in r)fN.call(r,o)&&(n[o]=r[o]);if(JS){i=JS(r);for(var l=0;l<i.length;l++)cN.call(r,i[l])&&(n[i[l]]=r[i[l]])}}return n};/** @license React v17.0.2
|
|
6
|
-
* react.production.min.js
|
|
7
|
-
*
|
|
8
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
9
|
-
*
|
|
10
|
-
* This source code is licensed under the MIT license found in the
|
|
11
|
-
* LICENSE file in the root directory of this source tree.
|
|
12
|
-
*/var D_=Al,kf=60103,q5=60106;gr.Fragment=60107;gr.StrictMode=60108;gr.Profiler=60114;var Y5=60109,X5=60110,Q5=60112;gr.Suspense=60113;var Z5=60115,K5=60116;if(typeof Symbol=="function"&&Symbol.for){var Wi=Symbol.for;kf=Wi("react.element"),q5=Wi("react.portal"),gr.Fragment=Wi("react.fragment"),gr.StrictMode=Wi("react.strict_mode"),gr.Profiler=Wi("react.profiler"),Y5=Wi("react.provider"),X5=Wi("react.context"),Q5=Wi("react.forward_ref"),gr.Suspense=Wi("react.suspense"),Z5=Wi("react.memo"),K5=Wi("react.lazy")}var eE=typeof Symbol=="function"&&Symbol.iterator;function pN(e){return e===null||typeof e!="object"?null:(e=eE&&e[eE]||e["@@iterator"],typeof e=="function"?e:null)}function Nd(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var J5={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ek={};function Mf(e,t,r){this.props=e,this.context=t,this.refs=ek,this.updater=r||J5}Mf.prototype.isReactComponent={};Mf.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Nd(85));this.updater.enqueueSetState(this,e,t,"setState")};Mf.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function tk(){}tk.prototype=Mf.prototype;function $_(e,t,r){this.props=e,this.context=t,this.refs=ek,this.updater=r||J5}var B_=$_.prototype=new tk;B_.constructor=$_;D_(B_,Mf.prototype);B_.isPureReactComponent=!0;var z_={current:null},rk=Object.prototype.hasOwnProperty,nk={key:!0,ref:!0,__self:!0,__source:!0};function ik(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)rk.call(t,n)&&!nk.hasOwnProperty(n)&&(i[n]=t[n]);var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(n in l=e.defaultProps,l)i[n]===void 0&&(i[n]=l[n]);return{$$typeof:kf,type:e,key:a,ref:o,props:i,_owner:z_.current}}function vN(e,t){return{$$typeof:kf,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function U_(e){return typeof e=="object"&&e!==null&&e.$$typeof===kf}function mN(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var tE=/\/+/g;function Ry(e,t){return typeof e=="object"&&e!==null&&e.key!=null?mN(""+e.key):t.toString(36)}function b0(e,t,r,n,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case kf:case q5:o=!0}}if(o)return o=e,i=i(o),e=n===""?"."+Ry(o,0):n,Array.isArray(i)?(r="",e!=null&&(r=e.replace(tE,"$&/")+"/"),b0(i,t,r,"",function(c){return c})):i!=null&&(U_(i)&&(i=vN(i,r+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(tE,"$&/")+"/")+e)),t.push(i)),1;if(o=0,n=n===""?".":n+":",Array.isArray(e))for(var l=0;l<e.length;l++){a=e[l];var s=n+Ry(a,l);o+=b0(a,t,r,s,i)}else if(s=pN(e),typeof s=="function")for(e=s.call(e),l=0;!(a=e.next()).done;)a=a.value,s=n+Ry(a,l++),o+=b0(a,t,r,s,i);else if(a==="object")throw t=""+e,Error(Nd(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return o}function Ev(e,t,r){if(e==null)return e;var n=[],i=0;return b0(e,n,"","",function(a){return t.call(r,a,i++)}),n}function gN(e){if(e._status===-1){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(r){e._status===0&&(r=r.default,e._status=1,e._result=r)},function(r){e._status===0&&(e._status=2,e._result=r)})}if(e._status===1)return e._result;throw e._result}var ak={current:null};function ro(){var e=ak.current;if(e===null)throw Error(Nd(321));return e}var yN={ReactCurrentDispatcher:ak,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:z_,IsSomeRendererActing:{current:!1},assign:D_};gr.Children={map:Ev,forEach:function(e,t,r){Ev(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Ev(e,function(){t++}),t},toArray:function(e){return Ev(e,function(t){return t})||[]},only:function(e){if(!U_(e))throw Error(Nd(143));return e}};gr.Component=Mf;gr.PureComponent=$_;gr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=yN;gr.cloneElement=function(e,t,r){if(e==null)throw Error(Nd(267,e));var n=D_({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=z_.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)rk.call(t,s)&&!nk.hasOwnProperty(s)&&(n[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)n.children=r;else if(1<s){l=Array(s);for(var c=0;c<s;c++)l[c]=arguments[c+2];n.children=l}return{$$typeof:kf,type:e.type,key:i,ref:a,props:n,_owner:o}};gr.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:X5,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:Y5,_context:e},e.Consumer=e};gr.createElement=ik;gr.createFactory=function(e){var t=ik.bind(null,e);return t.type=e,t};gr.createRef=function(){return{current:null}};gr.forwardRef=function(e){return{$$typeof:Q5,render:e}};gr.isValidElement=U_;gr.lazy=function(e){return{$$typeof:K5,_payload:{_status:-1,_result:e},_init:gN}};gr.memo=function(e,t){return{$$typeof:Z5,type:e,compare:t===void 0?null:t}};gr.useCallback=function(e,t){return ro().useCallback(e,t)};gr.useContext=function(e,t){return ro().useContext(e,t)};gr.useDebugValue=function(){};gr.useEffect=function(e,t){return ro().useEffect(e,t)};gr.useImperativeHandle=function(e,t,r){return ro().useImperativeHandle(e,t,r)};gr.useLayoutEffect=function(e,t){return ro().useLayoutEffect(e,t)};gr.useMemo=function(e,t){return ro().useMemo(e,t)};gr.useReducer=function(e,t,r){return ro().useReducer(e,t,r)};gr.useRef=function(e){return ro().useRef(e)};gr.useState=function(e){return ro().useState(e)};gr.version="17.0.2";(function(e){e.exports=gr})(Kt);const xn=N_(Kt.exports);var ok={exports:{}},uk={};/** @license React v0.20.2
|
|
13
|
-
* scheduler.production.min.js
|
|
14
|
-
*
|
|
15
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
16
|
-
*
|
|
17
|
-
* This source code is licensed under the MIT license found in the
|
|
18
|
-
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/(function(e){var t,r,n,i;if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}if(typeof window>"u"||typeof MessageChannel!="function"){var s=null,c=null,d=function(){if(s!==null)try{var be=e.unstable_now();s(!0,be),s=null}catch(Ve){throw setTimeout(d,0),Ve}};t=function(be){s!==null?setTimeout(t,0,be):(s=be,setTimeout(d,0))},r=function(be,Ve){c=setTimeout(be,Ve)},n=function(){clearTimeout(c)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var y=window.setTimeout,g=window.clearTimeout;if(typeof console<"u"){var m=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof m!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var E=!1,M=null,b=-1,w=5,_=0;e.unstable_shouldYield=function(){return e.unstable_now()>=_},i=function(){},e.unstable_forceFrameRate=function(be){0>be||125<be?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):w=0<be?Math.floor(1e3/be):5};var C=new MessageChannel,T=C.port2;C.port1.onmessage=function(){if(M!==null){var be=e.unstable_now();_=be+w;try{M(!0,be)?T.postMessage(null):(E=!1,M=null)}catch(Ve){throw T.postMessage(null),Ve}}else E=!1},t=function(be){M=be,E||(E=!0,T.postMessage(null))},r=function(be,Ve){b=y(function(){be(e.unstable_now())},Ve)},n=function(){g(b),b=-1}}function R(be,Ve){var st=be.length;be.push(Ve);e:for(;;){var Qe=st-1>>>1,ct=be[Qe];if(ct!==void 0&&0<j(ct,Ve))be[Qe]=Ve,be[st]=ct,st=Qe;else break e}}function D(be){return be=be[0],be===void 0?null:be}function Y(be){var Ve=be[0];if(Ve!==void 0){var st=be.pop();if(st!==Ve){be[0]=st;e:for(var Qe=0,ct=be.length;Qe<ct;){var yt=2*(Qe+1)-1,Ht=be[yt],qt=yt+1,Ze=be[qt];if(Ht!==void 0&&0>j(Ht,st))Ze!==void 0&&0>j(Ze,Ht)?(be[Qe]=Ze,be[qt]=st,Qe=qt):(be[Qe]=Ht,be[yt]=st,Qe=yt);else if(Ze!==void 0&&0>j(Ze,st))be[Qe]=Ze,be[qt]=st,Qe=qt;else break e}}return Ve}return null}function j(be,Ve){var st=be.sortIndex-Ve.sortIndex;return st!==0?st:be.id-Ve.id}var re=[],Se=[],me=1,ke=null,Re=3,Le=!1,ut=!1,nt=!1;function De(be){for(var Ve=D(Se);Ve!==null;){if(Ve.callback===null)Y(Se);else if(Ve.startTime<=be)Y(Se),Ve.sortIndex=Ve.expirationTime,R(re,Ve);else break;Ve=D(Se)}}function We(be){if(nt=!1,De(be),!ut)if(D(re)!==null)ut=!0,t(_t);else{var Ve=D(Se);Ve!==null&&r(We,Ve.startTime-be)}}function _t(be,Ve){ut=!1,nt&&(nt=!1,n()),Le=!0;var st=Re;try{for(De(Ve),ke=D(re);ke!==null&&(!(ke.expirationTime>Ve)||be&&!e.unstable_shouldYield());){var Qe=ke.callback;if(typeof Qe=="function"){ke.callback=null,Re=ke.priorityLevel;var ct=Qe(ke.expirationTime<=Ve);Ve=e.unstable_now(),typeof ct=="function"?ke.callback=ct:ke===D(re)&&Y(re),De(Ve)}else Y(re);ke=D(re)}if(ke!==null)var yt=!0;else{var Ht=D(Se);Ht!==null&&r(We,Ht.startTime-Ve),yt=!1}return yt}finally{ke=null,Re=st,Le=!1}}var He=i;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(be){be.callback=null},e.unstable_continueExecution=function(){ut||Le||(ut=!0,t(_t))},e.unstable_getCurrentPriorityLevel=function(){return Re},e.unstable_getFirstCallbackNode=function(){return D(re)},e.unstable_next=function(be){switch(Re){case 1:case 2:case 3:var Ve=3;break;default:Ve=Re}var st=Re;Re=Ve;try{return be()}finally{Re=st}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=He,e.unstable_runWithPriority=function(be,Ve){switch(be){case 1:case 2:case 3:case 4:case 5:break;default:be=3}var st=Re;Re=be;try{return Ve()}finally{Re=st}},e.unstable_scheduleCallback=function(be,Ve,st){var Qe=e.unstable_now();switch(typeof st=="object"&&st!==null?(st=st.delay,st=typeof st=="number"&&0<st?Qe+st:Qe):st=Qe,be){case 1:var ct=-1;break;case 2:ct=250;break;case 5:ct=1073741823;break;case 4:ct=1e4;break;default:ct=5e3}return ct=st+ct,be={id:me++,callback:Ve,priorityLevel:be,startTime:st,expirationTime:ct,sortIndex:-1},st>Qe?(be.sortIndex=st,R(Se,be),D(re)===null&&be===D(Se)&&(nt?n():nt=!0,r(We,st-Qe))):(be.sortIndex=ct,R(re,be),ut||Le||(ut=!0,t(_t))),be},e.unstable_wrapCallback=function(be){var Ve=Re;return function(){var st=Re;Re=Ve;try{return be.apply(this,arguments)}finally{Re=st}}}})(uk);(function(e){e.exports=uk})(ok);/** @license React v17.0.2
|
|
20
|
-
* react-dom.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
|
-
*/var Vm=Kt.exports,zr=Al,bn=ok.exports;function dt(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!Vm)throw Error(dt(227));var lk=new Set,ad={};function Tl(e,t){hf(e,t),hf(e+"Capture",t)}function hf(e,t){for(ad[e]=t,e=0;e<t.length;e++)lk.add(t[e])}var Za=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xN=/^[: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]*$/,rE=Object.prototype.hasOwnProperty,nE={},iE={};function bN(e){return rE.call(iE,e)?!0:rE.call(nE,e)?!1:xN.test(e)?iE[e]=!0:(nE[e]=!0,!1)}function wN(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function _N(e,t,r,n){if(t===null||typeof t>"u"||wN(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Hn(e,t,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Mn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Mn[e]=new Hn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Mn[t]=new Hn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Mn[e]=new Hn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Mn[e]=new Hn(e,2,!1,e,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(e){Mn[e]=new Hn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Mn[e]=new Hn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Mn[e]=new Hn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Mn[e]=new Hn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Mn[e]=new Hn(e,5,!1,e.toLowerCase(),null,!1,!1)});var j_=/[\-:]([a-z])/g;function G_(e){return e[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(e){var t=e.replace(j_,G_);Mn[t]=new Hn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(j_,G_);Mn[t]=new Hn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(j_,G_);Mn[t]=new Hn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Mn[e]=new Hn(e,1,!1,e.toLowerCase(),null,!1,!1)});Mn.xlinkHref=new Hn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Mn[e]=new Hn(e,1,!1,e.toLowerCase(),null,!0,!0)});function W_(e,t,r,n){var i=Mn.hasOwnProperty(t)?Mn[t]:null,a=i!==null?i.type===0:n?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");a||(_N(t,r,i,n)&&(r=null),n||i===null?bN(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var Cl=Vm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Th=60103,rl=60106,Bo=60107,H_=60108,Dh=60114,V_=60109,q_=60110,qm=60112,$h=60113,G0=60120,Ym=60115,Y_=60116,X_=60121,Q_=60128,sk=60129,Z_=60130,jb=60131;if(typeof Symbol=="function"&&Symbol.for){var vn=Symbol.for;Th=vn("react.element"),rl=vn("react.portal"),Bo=vn("react.fragment"),H_=vn("react.strict_mode"),Dh=vn("react.profiler"),V_=vn("react.provider"),q_=vn("react.context"),qm=vn("react.forward_ref"),$h=vn("react.suspense"),G0=vn("react.suspense_list"),Ym=vn("react.memo"),Y_=vn("react.lazy"),X_=vn("react.block"),vn("react.scope"),Q_=vn("react.opaque.id"),sk=vn("react.debug_trace_mode"),Z_=vn("react.offscreen"),jb=vn("react.legacy_hidden")}var aE=typeof Symbol=="function"&&Symbol.iterator;function Kc(e){return e===null||typeof e!="object"?null:(e=aE&&e[aE]||e["@@iterator"],typeof e=="function"?e:null)}var Ny;function Ch(e){if(Ny===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Ny=t&&t[1]||""}return`
|
|
27
|
-
`+Ny+e}var Ly=!1;function Av(e,t){if(!e||Ly)return"";Ly=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(s){var n=s}Reflect.construct(e,[],t)}else{try{t.call()}catch(s){n=s}e.call(t.prototype)}else{try{throw Error()}catch(s){n=s}e()}}catch(s){if(s&&n&&typeof s.stack=="string"){for(var i=s.stack.split(`
|
|
28
|
-
`),a=n.stack.split(`
|
|
29
|
-
`),o=i.length-1,l=a.length-1;1<=o&&0<=l&&i[o]!==a[l];)l--;for(;1<=o&&0<=l;o--,l--)if(i[o]!==a[l]){if(o!==1||l!==1)do if(o--,l--,0>l||i[o]!==a[l])return`
|
|
30
|
-
`+i[o].replace(" at new "," at ");while(1<=o&&0<=l);break}}}finally{Ly=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ch(e):""}function SN(e){switch(e.tag){case 5:return Ch(e.type);case 16:return Ch("Lazy");case 13:return Ch("Suspense");case 19:return Ch("SuspenseList");case 0:case 2:case 15:return e=Av(e.type,!1),e;case 11:return e=Av(e.type.render,!1),e;case 22:return e=Av(e.type._render,!1),e;case 1:return e=Av(e.type,!0),e;default:return""}}function Xs(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Bo:return"Fragment";case rl:return"Portal";case Dh:return"Profiler";case H_:return"StrictMode";case $h:return"Suspense";case G0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case q_:return(e.displayName||"Context")+".Consumer";case V_:return(e._context.displayName||"Context")+".Provider";case qm:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case Ym:return Xs(e.type);case X_:return Xs(e._render);case Y_:t=e._payload,e=e._init;try{return Xs(e(t))}catch{}}return null}function tu(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function fk(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function EN(e){var t=fk(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Tv(e){e._valueTracker||(e._valueTracker=EN(e))}function ck(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=fk(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function W0(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Gb(e,t){var r=t.checked;return zr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function oE(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=tu(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function hk(e,t){t=t.checked,t!=null&&W_(e,"checked",t,!1)}function Wb(e,t){hk(e,t);var r=tu(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Hb(e,t.type,r):t.hasOwnProperty("defaultValue")&&Hb(e,t.type,tu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function uE(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Hb(e,t,r){(t!=="number"||W0(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function AN(e){var t="";return Vm.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function Vb(e,t){return e=zr({children:void 0},t),(t=AN(t.children))&&(e.children=t),e}function Qs(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+tu(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function qb(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(dt(91));return zr({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function lE(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(dt(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(dt(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:tu(r)}}function dk(e,t){var r=tu(t.value),n=tu(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function sE(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var Yb={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function pk(e){switch(e){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 Xb(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?pk(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Cv,vk=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!==Yb.svg||"innerHTML"in e)e.innerHTML=t;else{for(Cv=Cv||document.createElement("div"),Cv.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Cv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function od(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Bh={animationIterationCount:!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},TN=["Webkit","ms","Moz","O"];Object.keys(Bh).forEach(function(e){TN.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Bh[t]=Bh[e]})});function mk(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Bh.hasOwnProperty(e)&&Bh[e]?(""+t).trim():t+"px"}function gk(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=mk(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var CN=zr({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 Qb(e,t){if(t){if(CN[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(dt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(dt(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(dt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(dt(62))}}function Zb(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function K_(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Kb=null,Zs=null,Ks=null;function fE(e){if(e=Dd(e)){if(typeof Kb!="function")throw Error(dt(280));var t=e.stateNode;t&&(t=eg(t),Kb(e.stateNode,e.type,t))}}function yk(e){Zs?Ks?Ks.push(e):Ks=[e]:Zs=e}function xk(){if(Zs){var e=Zs,t=Ks;if(Ks=Zs=null,fE(e),t)for(e=0;e<t.length;e++)fE(t[e])}}function J_(e,t){return e(t)}function bk(e,t,r,n,i){return e(t,r,n,i)}function e2(){}var wk=J_,nl=!1,Dy=!1;function t2(){(Zs!==null||Ks!==null)&&(e2(),xk())}function ON(e,t,r){if(Dy)return e(t,r);Dy=!0;try{return wk(e,t,r)}finally{Dy=!1,t2()}}function ud(e,t){var r=e.stateNode;if(r===null)return null;var n=eg(r);if(n===null)return null;r=n[t];e:switch(t){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)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(dt(231,t,typeof r));return r}var Jb=!1;if(Za)try{var Jc={};Object.defineProperty(Jc,"passive",{get:function(){Jb=!0}}),window.addEventListener("test",Jc,Jc),window.removeEventListener("test",Jc,Jc)}catch{Jb=!1}function kN(e,t,r,n,i,a,o,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(d){this.onError(d)}}var zh=!1,H0=null,V0=!1,ew=null,MN={onError:function(e){zh=!0,H0=e}};function IN(e,t,r,n,i,a,o,l,s){zh=!1,H0=null,kN.apply(MN,arguments)}function PN(e,t,r,n,i,a,o,l,s){if(IN.apply(this,arguments),zh){if(zh){var c=H0;zh=!1,H0=null}else throw Error(dt(198));V0||(V0=!0,ew=c)}}function Ol(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&1026)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function _k(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function cE(e){if(Ol(e)!==e)throw Error(dt(188))}function FN(e){var t=e.alternate;if(!t){if(t=Ol(e),t===null)throw Error(dt(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var a=i.alternate;if(a===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return cE(i),e;if(a===n)return cE(i),t;a=a.sibling}throw Error(dt(188))}if(r.return!==n.return)r=i,n=a;else{for(var o=!1,l=i.child;l;){if(l===r){o=!0,r=i,n=a;break}if(l===n){o=!0,n=i,r=a;break}l=l.sibling}if(!o){for(l=a.child;l;){if(l===r){o=!0,r=a,n=i;break}if(l===n){o=!0,n=a,r=i;break}l=l.sibling}if(!o)throw Error(dt(189))}}if(r.alternate!==n)throw Error(dt(190))}if(r.tag!==3)throw Error(dt(188));return r.stateNode.current===r?e:t}function Sk(e){if(e=FN(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function hE(e,t){for(var r=e.alternate;t!==null;){if(t===e||t===r)return!0;t=t.return}return!1}var Ek,r2,Ak,Tk,tw=!1,ca=[],qo=null,Yo=null,Xo=null,ld=new Map,sd=new Map,eh=[],dE="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 rw(e,t,r,n,i){return{blockedOn:e,domEventName:t,eventSystemFlags:r|16,nativeEvent:i,targetContainers:[n]}}function pE(e,t){switch(e){case"focusin":case"focusout":qo=null;break;case"dragenter":case"dragleave":Yo=null;break;case"mouseover":case"mouseout":Xo=null;break;case"pointerover":case"pointerout":ld.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":sd.delete(t.pointerId)}}function th(e,t,r,n,i,a){return e===null||e.nativeEvent!==a?(e=rw(t,r,n,i,a),t!==null&&(t=Dd(t),t!==null&&r2(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function RN(e,t,r,n,i){switch(t){case"focusin":return qo=th(qo,e,t,r,n,i),!0;case"dragenter":return Yo=th(Yo,e,t,r,n,i),!0;case"mouseover":return Xo=th(Xo,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return ld.set(a,th(ld.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,sd.set(a,th(sd.get(a)||null,e,t,r,n,i)),!0}return!1}function NN(e){var t=il(e.target);if(t!==null){var r=Ol(t);if(r!==null){if(t=r.tag,t===13){if(t=_k(r),t!==null){e.blockedOn=t,Tk(e.lanePriority,function(){bn.unstable_runWithPriority(e.priority,function(){Ak(r)})});return}}else if(t===3&&r.stateNode.hydrate){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function w0(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=o2(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null)return t=Dd(r),t!==null&&r2(t),e.blockedOn=r,!1;t.shift()}return!0}function vE(e,t,r){w0(e)&&r.delete(t)}function LN(){for(tw=!1;0<ca.length;){var e=ca[0];if(e.blockedOn!==null){e=Dd(e.blockedOn),e!==null&&Ek(e);break}for(var t=e.targetContainers;0<t.length;){var r=o2(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null){e.blockedOn=r;break}t.shift()}e.blockedOn===null&&ca.shift()}qo!==null&&w0(qo)&&(qo=null),Yo!==null&&w0(Yo)&&(Yo=null),Xo!==null&&w0(Xo)&&(Xo=null),ld.forEach(vE),sd.forEach(vE)}function rh(e,t){e.blockedOn===t&&(e.blockedOn=null,tw||(tw=!0,bn.unstable_scheduleCallback(bn.unstable_NormalPriority,LN)))}function Ck(e){function t(i){return rh(i,e)}if(0<ca.length){rh(ca[0],e);for(var r=1;r<ca.length;r++){var n=ca[r];n.blockedOn===e&&(n.blockedOn=null)}}for(qo!==null&&rh(qo,e),Yo!==null&&rh(Yo,e),Xo!==null&&rh(Xo,e),ld.forEach(t),sd.forEach(t),r=0;r<eh.length;r++)n=eh[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<eh.length&&(r=eh[0],r.blockedOn===null);)NN(r),r.blockedOn===null&&eh.shift()}function Ov(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var $s={animationend:Ov("Animation","AnimationEnd"),animationiteration:Ov("Animation","AnimationIteration"),animationstart:Ov("Animation","AnimationStart"),transitionend:Ov("Transition","TransitionEnd")},$y={},Ok={};Za&&(Ok=document.createElement("div").style,"AnimationEvent"in window||(delete $s.animationend.animation,delete $s.animationiteration.animation,delete $s.animationstart.animation),"TransitionEvent"in window||delete $s.transitionend.transition);function Xm(e){if($y[e])return $y[e];if(!$s[e])return e;var t=$s[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Ok)return $y[e]=t[r];return e}var kk=Xm("animationend"),Mk=Xm("animationiteration"),Ik=Xm("animationstart"),Pk=Xm("transitionend"),Fk=new Map,n2=new Map,DN=["abort","abort",kk,"animationEnd",Mk,"animationIteration",Ik,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Pk,"transitionEnd","waiting","waiting"];function i2(e,t){for(var r=0;r<e.length;r+=2){var n=e[r],i=e[r+1];i="on"+(i[0].toUpperCase()+i.slice(1)),n2.set(n,t),Fk.set(n,i),Tl(i,[n])}}var $N=bn.unstable_now;$N();var Fr=8;function Fs(e){if((1&e)!==0)return Fr=15,1;if((2&e)!==0)return Fr=14,2;if((4&e)!==0)return Fr=13,4;var t=24&e;return t!==0?(Fr=12,t):(e&32)!==0?(Fr=11,32):(t=192&e,t!==0?(Fr=10,t):(e&256)!==0?(Fr=9,256):(t=3584&e,t!==0?(Fr=8,t):(e&4096)!==0?(Fr=7,4096):(t=4186112&e,t!==0?(Fr=6,t):(t=62914560&e,t!==0?(Fr=5,t):e&67108864?(Fr=4,67108864):(e&134217728)!==0?(Fr=3,134217728):(t=805306368&e,t!==0?(Fr=2,t):(1073741824&e)!==0?(Fr=1,1073741824):(Fr=8,e))))))}function BN(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function zN(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(dt(358,e))}}function fd(e,t){var r=e.pendingLanes;if(r===0)return Fr=0;var n=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,l=e.pingedLanes;if(a!==0)n=a,i=Fr=15;else if(a=r&134217727,a!==0){var s=a&~o;s!==0?(n=Fs(s),i=Fr):(l&=a,l!==0&&(n=Fs(l),i=Fr))}else a=r&~o,a!==0?(n=Fs(a),i=Fr):l!==0&&(n=Fs(l),i=Fr);if(n===0)return 0;if(n=31-ru(n),n=r&((0>n?0:1<<n)<<1)-1,t!==0&&t!==n&&(t&o)===0){if(Fs(t),i<=Fr)return t;Fr=i}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-ru(t),i=1<<r,n|=e[r],t&=~i;return n}function Rk(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function q0(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=Rs(24&~t),e===0?q0(10,t):e;case 10:return e=Rs(192&~t),e===0?q0(8,t):e;case 8:return e=Rs(3584&~t),e===0&&(e=Rs(4186112&~t),e===0&&(e=512)),e;case 2:return t=Rs(805306368&~t),t===0&&(t=268435456),t}throw Error(dt(358,e))}function Rs(e){return e&-e}function By(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Qm(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-ru(t),e[t]=r}var ru=Math.clz32?Math.clz32:GN,UN=Math.log,jN=Math.LN2;function GN(e){return e===0?32:31-(UN(e)/jN|0)|0}var WN=bn.unstable_UserBlockingPriority,HN=bn.unstable_runWithPriority,_0=!0;function VN(e,t,r,n){nl||e2();var i=a2,a=nl;nl=!0;try{bk(i,e,t,r,n)}finally{(nl=a)||t2()}}function qN(e,t,r,n){HN(WN,a2.bind(null,e,t,r,n))}function a2(e,t,r,n){if(_0){var i;if((i=(t&4)===0)&&0<ca.length&&-1<dE.indexOf(e))e=rw(null,e,t,r,n),ca.push(e);else{var a=o2(e,t,r,n);if(a===null)i&&pE(e,n);else{if(i){if(-1<dE.indexOf(e)){e=rw(a,e,t,r,n),ca.push(e);return}if(RN(a,e,t,r,n))return;pE(e,n)}qk(e,t,n,null,r)}}}}function o2(e,t,r,n){var i=K_(n);if(i=il(i),i!==null){var a=Ol(i);if(a===null)i=null;else{var o=a.tag;if(o===13){if(i=_k(a),i!==null)return i;i=null}else if(o===3){if(a.stateNode.hydrate)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return qk(e,t,n,i,r),null}var Uo=null,u2=null,S0=null;function Nk(){if(S0)return S0;var e,t=u2,r=t.length,n,i="value"in Uo?Uo.value:Uo.textContent,a=i.length;for(e=0;e<r&&t[e]===i[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===i[a-n];n++);return S0=i.slice(e,1<n?1-n:void 0)}function E0(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function kv(){return!0}function mE(){return!1}function pi(e){function t(r,n,i,a,o){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(r=e[l],this[l]=r?r(a):a[l]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?kv:mE,this.isPropagationStopped=mE,this}return zr(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=kv)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=kv)},persist:function(){},isPersistent:kv}),t}var If={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},l2=pi(If),Ld=zr({},If,{view:0,detail:0}),YN=pi(Ld),zy,Uy,nh,Zm=zr({},Ld,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:s2,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==nh&&(nh&&e.type==="mousemove"?(zy=e.screenX-nh.screenX,Uy=e.screenY-nh.screenY):Uy=zy=0,nh=e),zy)},movementY:function(e){return"movementY"in e?e.movementY:Uy}}),gE=pi(Zm),XN=zr({},Zm,{dataTransfer:0}),QN=pi(XN),ZN=zr({},Ld,{relatedTarget:0}),jy=pi(ZN),KN=zr({},If,{animationName:0,elapsedTime:0,pseudoElement:0}),JN=pi(KN),e6=zr({},If,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),t6=pi(e6),r6=zr({},If,{data:0}),yE=pi(r6),n6={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},i6={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"},a6={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function o6(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=a6[e])?!!t[e]:!1}function s2(){return o6}var u6=zr({},Ld,{key:function(e){if(e.key){var t=n6[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=E0(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?i6[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:s2,charCode:function(e){return e.type==="keypress"?E0(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?E0(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),l6=pi(u6),s6=zr({},Zm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xE=pi(s6),f6=zr({},Ld,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:s2}),c6=pi(f6),h6=zr({},If,{propertyName:0,elapsedTime:0,pseudoElement:0}),d6=pi(h6),p6=zr({},Zm,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),v6=pi(p6),m6=[9,13,27,32],f2=Za&&"CompositionEvent"in window,Uh=null;Za&&"documentMode"in document&&(Uh=document.documentMode);var g6=Za&&"TextEvent"in window&&!Uh,Lk=Za&&(!f2||Uh&&8<Uh&&11>=Uh),bE=String.fromCharCode(32),wE=!1;function Dk(e,t){switch(e){case"keyup":return m6.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $k(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bs=!1;function y6(e,t){switch(e){case"compositionend":return $k(t);case"keypress":return t.which!==32?null:(wE=!0,bE);case"textInput":return e=t.data,e===bE&&wE?null:e;default:return null}}function x6(e,t){if(Bs)return e==="compositionend"||!f2&&Dk(e,t)?(e=Nk(),S0=u2=Uo=null,Bs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Lk&&t.locale!=="ko"?null:t.data;default:return null}}var b6={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 _E(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!b6[e.type]:t==="textarea"}function Bk(e,t,r,n){yk(n),t=Y0(t,"onChange"),0<t.length&&(r=new l2("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var jh=null,cd=null;function w6(e){Wk(e,0)}function Km(e){var t=Us(e);if(ck(t))return e}function _6(e,t){if(e==="change")return t}var zk=!1;if(Za){var Gy;if(Za){var Wy="oninput"in document;if(!Wy){var SE=document.createElement("div");SE.setAttribute("oninput","return;"),Wy=typeof SE.oninput=="function"}Gy=Wy}else Gy=!1;zk=Gy&&(!document.documentMode||9<document.documentMode)}function EE(){jh&&(jh.detachEvent("onpropertychange",Uk),cd=jh=null)}function Uk(e){if(e.propertyName==="value"&&Km(cd)){var t=[];if(Bk(t,cd,e,K_(e)),e=w6,nl)e(t);else{nl=!0;try{J_(e,t)}finally{nl=!1,t2()}}}}function S6(e,t,r){e==="focusin"?(EE(),jh=t,cd=r,jh.attachEvent("onpropertychange",Uk)):e==="focusout"&&EE()}function E6(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Km(cd)}function A6(e,t){if(e==="click")return Km(t)}function T6(e,t){if(e==="input"||e==="change")return Km(t)}function C6(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ai=typeof Object.is=="function"?Object.is:C6,O6=Object.prototype.hasOwnProperty;function hd(e,t){if(Ai(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++)if(!O6.call(t,r[n])||!Ai(e[r[n]],t[r[n]]))return!1;return!0}function AE(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function TE(e,t){var r=AE(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=AE(r)}}function jk(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jk(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function CE(){for(var e=window,t=W0();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=W0(e.document)}return t}function nw(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var k6=Za&&"documentMode"in document&&11>=document.documentMode,zs=null,iw=null,Gh=null,aw=!1;function OE(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;aw||zs==null||zs!==W0(n)||(n=zs,"selectionStart"in n&&nw(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}),Gh&&hd(Gh,n)||(Gh=n,n=Y0(iw,"onSelect"),0<n.length&&(t=new l2("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=zs)))}i2("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0);i2("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1);i2(DN,2);for(var kE="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Hy=0;Hy<kE.length;Hy++)n2.set(kE[Hy],0);hf("onMouseEnter",["mouseout","mouseover"]);hf("onMouseLeave",["mouseout","mouseover"]);hf("onPointerEnter",["pointerout","pointerover"]);hf("onPointerLeave",["pointerout","pointerover"]);Tl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Tl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Tl("onBeforeInput",["compositionend","keypress","textInput","paste"]);Tl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Tl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Tl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Oh="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Gk=new Set("cancel close invalid load scroll toggle".split(" ").concat(Oh));function ME(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,PN(n,t,void 0,e),e.currentTarget=null}function Wk(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var o=n.length-1;0<=o;o--){var l=n[o],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==a&&i.isPropagationStopped())break e;ME(i,l,c),a=s}else for(o=0;o<n.length;o++){if(l=n[o],s=l.instance,c=l.currentTarget,l=l.listener,s!==a&&i.isPropagationStopped())break e;ME(i,l,c),a=s}}}if(V0)throw e=ew,V0=!1,ew=null,e}function Rr(e,t){var r=Xk(t),n=e+"__bubble";r.has(n)||(Vk(t,e,2,!1),r.add(n))}var IE="_reactListening"+Math.random().toString(36).slice(2);function Hk(e){e[IE]||(e[IE]=!0,lk.forEach(function(t){Gk.has(t)||PE(t,!1,e,null),PE(t,!0,e,null)}))}function PE(e,t,r,n){var i=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,a=r;if(e==="selectionchange"&&r.nodeType!==9&&(a=r.ownerDocument),n!==null&&!t&&Gk.has(e)){if(e!=="scroll")return;i|=2,a=n}var o=Xk(a),l=e+"__"+(t?"capture":"bubble");o.has(l)||(t&&(i|=4),Vk(a,e,i,t),o.add(l))}function Vk(e,t,r,n){var i=n2.get(t);switch(i===void 0?2:i){case 0:i=VN;break;case 1:i=qN;break;default:i=a2}r=i.bind(null,t,r,e),i=void 0,!Jb||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function qk(e,t,r,n,i){var a=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var l=n.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(o===4)for(o=n.return;o!==null;){var s=o.tag;if((s===3||s===4)&&(s=o.stateNode.containerInfo,s===i||s.nodeType===8&&s.parentNode===i))return;o=o.return}for(;l!==null;){if(o=il(l),o===null)return;if(s=o.tag,s===5||s===6){n=a=o;continue e}l=l.parentNode}}n=n.return}ON(function(){var c=a,d=K_(r),y=[];e:{var g=Fk.get(e);if(g!==void 0){var m=l2,E=e;switch(e){case"keypress":if(E0(r)===0)break e;case"keydown":case"keyup":m=l6;break;case"focusin":E="focus",m=jy;break;case"focusout":E="blur",m=jy;break;case"beforeblur":case"afterblur":m=jy;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=gE;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=QN;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=c6;break;case kk:case Mk:case Ik:m=JN;break;case Pk:m=d6;break;case"scroll":m=YN;break;case"wheel":m=v6;break;case"copy":case"cut":case"paste":m=t6;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=xE}var M=(t&4)!==0,b=!M&&e==="scroll",w=M?g!==null?g+"Capture":null:g;M=[];for(var _=c,C;_!==null;){C=_;var T=C.stateNode;if(C.tag===5&&T!==null&&(C=T,w!==null&&(T=ud(_,w),T!=null&&M.push(dd(_,T,C)))),b)break;_=_.return}0<M.length&&(g=new m(g,E,null,r,d),y.push({event:g,listeners:M}))}}if((t&7)===0){e:{if(g=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",g&&(t&16)===0&&(E=r.relatedTarget||r.fromElement)&&(il(E)||E[Pf]))break e;if((m||g)&&(g=d.window===d?d:(g=d.ownerDocument)?g.defaultView||g.parentWindow:window,m?(E=r.relatedTarget||r.toElement,m=c,E=E?il(E):null,E!==null&&(b=Ol(E),E!==b||E.tag!==5&&E.tag!==6)&&(E=null)):(m=null,E=c),m!==E)){if(M=gE,T="onMouseLeave",w="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(M=xE,T="onPointerLeave",w="onPointerEnter",_="pointer"),b=m==null?g:Us(m),C=E==null?g:Us(E),g=new M(T,_+"leave",m,r,d),g.target=b,g.relatedTarget=C,T=null,il(d)===c&&(M=new M(w,_+"enter",E,r,d),M.target=C,M.relatedTarget=b,T=M),b=T,m&&E)t:{for(M=m,w=E,_=0,C=M;C;C=Ss(C))_++;for(C=0,T=w;T;T=Ss(T))C++;for(;0<_-C;)M=Ss(M),_--;for(;0<C-_;)w=Ss(w),C--;for(;_--;){if(M===w||w!==null&&M===w.alternate)break t;M=Ss(M),w=Ss(w)}M=null}else M=null;m!==null&&FE(y,g,m,M,!1),E!==null&&b!==null&&FE(y,b,E,M,!0)}}e:{if(g=c?Us(c):window,m=g.nodeName&&g.nodeName.toLowerCase(),m==="select"||m==="input"&&g.type==="file")var R=_6;else if(_E(g))if(zk)R=T6;else{R=E6;var D=S6}else(m=g.nodeName)&&m.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(R=A6);if(R&&(R=R(e,c))){Bk(y,R,r,d);break e}D&&D(e,g,c),e==="focusout"&&(D=g._wrapperState)&&D.controlled&&g.type==="number"&&Hb(g,"number",g.value)}switch(D=c?Us(c):window,e){case"focusin":(_E(D)||D.contentEditable==="true")&&(zs=D,iw=c,Gh=null);break;case"focusout":Gh=iw=zs=null;break;case"mousedown":aw=!0;break;case"contextmenu":case"mouseup":case"dragend":aw=!1,OE(y,r,d);break;case"selectionchange":if(k6)break;case"keydown":case"keyup":OE(y,r,d)}var Y;if(f2)e:{switch(e){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else Bs?Dk(e,r)&&(j="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(j="onCompositionStart");j&&(Lk&&r.locale!=="ko"&&(Bs||j!=="onCompositionStart"?j==="onCompositionEnd"&&Bs&&(Y=Nk()):(Uo=d,u2="value"in Uo?Uo.value:Uo.textContent,Bs=!0)),D=Y0(c,j),0<D.length&&(j=new yE(j,e,null,r,d),y.push({event:j,listeners:D}),Y?j.data=Y:(Y=$k(r),Y!==null&&(j.data=Y)))),(Y=g6?y6(e,r):x6(e,r))&&(c=Y0(c,"onBeforeInput"),0<c.length&&(d=new yE("onBeforeInput","beforeinput",null,r,d),y.push({event:d,listeners:c}),d.data=Y))}Wk(y,t)})}function dd(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Y0(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=ud(e,r),a!=null&&n.unshift(dd(e,a,i)),a=ud(e,t),a!=null&&n.push(dd(e,a,i))),e=e.return}return n}function Ss(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function FE(e,t,r,n,i){for(var a=t._reactName,o=[];r!==null&&r!==n;){var l=r,s=l.alternate,c=l.stateNode;if(s!==null&&s===n)break;l.tag===5&&c!==null&&(l=c,i?(s=ud(r,a),s!=null&&o.unshift(dd(r,s,l))):i||(s=ud(r,a),s!=null&&o.push(dd(r,s,l)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}function X0(){}var Vy=null,qy=null;function Yk(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function ow(e,t){return e==="textarea"||e==="option"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var RE=typeof setTimeout=="function"?setTimeout:void 0,M6=typeof clearTimeout=="function"?clearTimeout:void 0;function c2(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function Js(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function NE(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Yy=0;function I6(e){return{$$typeof:Q_,toString:e,valueOf:e}}var Jm=Math.random().toString(36).slice(2),jo="__reactFiber$"+Jm,Q0="__reactProps$"+Jm,Pf="__reactContainer$"+Jm,LE="__reactEvents$"+Jm;function il(e){var t=e[jo];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Pf]||r[jo]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=NE(e);e!==null;){if(r=e[jo])return r;e=NE(e)}return t}e=r,r=e.parentNode}return null}function Dd(e){return e=e[jo]||e[Pf],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Us(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(dt(33))}function eg(e){return e[Q0]||null}function Xk(e){var t=e[LE];return t===void 0&&(t=e[LE]=new Set),t}var uw=[],js=-1;function du(e){return{current:e}}function Lr(e){0>js||(e.current=uw[js],uw[js]=null,js--)}function Vr(e,t){js++,uw[js]=e.current,e.current=t}var nu={},Dn=du(nu),ei=du(!1),dl=nu;function df(e,t){var r=e.type.contextTypes;if(!r)return nu;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ti(e){return e=e.childContextTypes,e!=null}function Z0(){Lr(ei),Lr(Dn)}function DE(e,t,r){if(Dn.current!==nu)throw Error(dt(168));Vr(Dn,t),Vr(ei,r)}function Qk(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(dt(108,Xs(t)||"Unknown",i));return zr({},r,n)}function A0(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||nu,dl=Dn.current,Vr(Dn,e),Vr(ei,ei.current),!0}function $E(e,t,r){var n=e.stateNode;if(!n)throw Error(dt(169));r?(e=Qk(e,t,dl),n.__reactInternalMemoizedMergedChildContext=e,Lr(ei),Lr(Dn),Vr(Dn,e)):Lr(ei),Vr(ei,r)}var h2=null,sl=null,P6=bn.unstable_runWithPriority,d2=bn.unstable_scheduleCallback,lw=bn.unstable_cancelCallback,F6=bn.unstable_shouldYield,BE=bn.unstable_requestPaint,sw=bn.unstable_now,R6=bn.unstable_getCurrentPriorityLevel,tg=bn.unstable_ImmediatePriority,Zk=bn.unstable_UserBlockingPriority,Kk=bn.unstable_NormalPriority,Jk=bn.unstable_LowPriority,eM=bn.unstable_IdlePriority,Xy={},N6=BE!==void 0?BE:function(){},Ha=null,T0=null,Qy=!1,zE=sw(),Nn=1e4>zE?sw:function(){return sw()-zE};function pf(){switch(R6()){case tg:return 99;case Zk:return 98;case Kk:return 97;case Jk:return 96;case eM:return 95;default:throw Error(dt(332))}}function tM(e){switch(e){case 99:return tg;case 98:return Zk;case 97:return Kk;case 96:return Jk;case 95:return eM;default:throw Error(dt(332))}}function pl(e,t){return e=tM(e),P6(e,t)}function pd(e,t,r){return e=tM(e),d2(e,t,r)}function wa(){if(T0!==null){var e=T0;T0=null,lw(e)}rM()}function rM(){if(!Qy&&Ha!==null){Qy=!0;var e=0;try{var t=Ha;pl(99,function(){for(;e<t.length;e++){var r=t[e];do r=r(!0);while(r!==null)}}),Ha=null}catch(r){throw Ha!==null&&(Ha=Ha.slice(e+1)),d2(tg,wa),r}finally{Qy=!1}}}var L6=Cl.ReactCurrentBatchConfig;function Vi(e,t){if(e&&e.defaultProps){t=zr({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var K0=du(null),J0=null,Gs=null,em=null;function p2(){em=Gs=J0=null}function v2(e){var t=K0.current;Lr(K0),e.type._context._currentValue=t}function nM(e,t){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t){if(r===null||(r.childLanes&t)===t)break;r.childLanes|=t}else e.childLanes|=t,r!==null&&(r.childLanes|=t);e=e.return}}function ef(e,t){J0=e,em=Gs=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(qi=!0),e.firstContext=null)}function Mi(e,t){if(em!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(em=e,t=1073741823),t={context:e,observedBits:t,next:null},Gs===null){if(J0===null)throw Error(dt(308));Gs=t,J0.dependencies={lanes:0,firstContext:t,responders:null}}else Gs=Gs.next=t;return e._currentValue}var No=!1;function m2(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function iM(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Qo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Zo(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}}function UE(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?i=a=o:a=a.next=o,r=r.next}while(r!==null);a===null?i=a=t:a=a.next=t}else i=a=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function vd(e,t,r,n){var i=e.updateQueue;No=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var s=l,c=s.next;s.next=null,o===null?a=c:o.next=c,o=s;var d=e.alternate;if(d!==null){d=d.updateQueue;var y=d.lastBaseUpdate;y!==o&&(y===null?d.firstBaseUpdate=c:y.next=c,d.lastBaseUpdate=s)}}if(a!==null){y=i.baseState,o=0,d=c=s=null;do{l=a.lane;var g=a.eventTime;if((n&l)===l){d!==null&&(d=d.next={eventTime:g,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,E=a;switch(l=t,g=r,E.tag){case 1:if(m=E.payload,typeof m=="function"){y=m.call(g,y,l);break e}y=m;break e;case 3:m.flags=m.flags&-4097|64;case 0:if(m=E.payload,l=typeof m=="function"?m.call(g,y,l):m,l==null)break e;y=zr({},y,l);break e;case 2:No=!0}}a.callback!==null&&(e.flags|=32,l=i.effects,l===null?i.effects=[a]:l.push(a))}else g={eventTime:g,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=g,s=y):d=d.next=g,o|=l;if(a=a.next,a===null){if(l=i.shared.pending,l===null)break;a=l.next,l.next=null,i.lastBaseUpdate=l,i.shared.pending=null}}while(1);d===null&&(s=y),i.baseState=s,i.firstBaseUpdate=c,i.lastBaseUpdate=d,Bd|=o,e.lanes=o,e.memoizedState=y}}function jE(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(dt(191,i));i.call(n)}}}var aM=new Vm.Component().refs;function tm(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:zr({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var rg={isMounted:function(e){return(e=e._reactInternals)?Ol(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=di(),i=Ko(e),a=Qo(n,i);a.payload=t,r!=null&&(a.callback=r),Zo(e,a),Jo(e,i,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=di(),i=Ko(e),a=Qo(n,i);a.tag=1,a.payload=t,r!=null&&(a.callback=r),Zo(e,a),Jo(e,i,n)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=di(),n=Ko(e),i=Qo(r,n);i.tag=2,t!=null&&(i.callback=t),Zo(e,i),Jo(e,n,r)}};function GE(e,t,r,n,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,a,o):t.prototype&&t.prototype.isPureReactComponent?!hd(r,n)||!hd(i,a):!0}function oM(e,t,r){var n=!1,i=nu,a=t.contextType;return typeof a=="object"&&a!==null?a=Mi(a):(i=ti(t)?dl:Dn.current,n=t.contextTypes,a=(n=n!=null)?df(e,i):nu),t=new t(r,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=rg,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function WE(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&rg.enqueueReplaceState(t,t.state,null)}function fw(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=aM,m2(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=Mi(a):(a=ti(t)?dl:Dn.current,i.context=df(e,a)),vd(e,r,i,n),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(tm(e,t,a,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&rg.enqueueReplaceState(i,i.state,null),vd(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4)}var Mv=Array.isArray;function ih(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(dt(309));var n=r.stateNode}if(!n)throw Error(dt(147,e));var i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var o=n.refs;o===aM&&(o=n.refs={}),a===null?delete o[i]:o[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(dt(284));if(!r._owner)throw Error(dt(290,e))}return e}function Iv(e,t){if(e.type!=="textarea")throw Error(dt(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function uM(e){function t(b,w){if(e){var _=b.lastEffect;_!==null?(_.nextEffect=w,b.lastEffect=w):b.firstEffect=b.lastEffect=w,w.nextEffect=null,w.flags=8}}function r(b,w){if(!e)return null;for(;w!==null;)t(b,w),w=w.sibling;return null}function n(b,w){for(b=new Map;w!==null;)w.key!==null?b.set(w.key,w):b.set(w.index,w),w=w.sibling;return b}function i(b,w){return b=au(b,w),b.index=0,b.sibling=null,b}function a(b,w,_){return b.index=_,e?(_=b.alternate,_!==null?(_=_.index,_<w?(b.flags=2,w):_):(b.flags=2,w)):w}function o(b){return e&&b.alternate===null&&(b.flags=2),b}function l(b,w,_,C){return w===null||w.tag!==6?(w=t1(_,b.mode,C),w.return=b,w):(w=i(w,_),w.return=b,w)}function s(b,w,_,C){return w!==null&&w.elementType===_.type?(C=i(w,_.props),C.ref=ih(b,w,_),C.return=b,C):(C=M0(_.type,_.key,_.props,null,b.mode,C),C.ref=ih(b,w,_),C.return=b,C)}function c(b,w,_,C){return w===null||w.tag!==4||w.stateNode.containerInfo!==_.containerInfo||w.stateNode.implementation!==_.implementation?(w=r1(_,b.mode,C),w.return=b,w):(w=i(w,_.children||[]),w.return=b,w)}function d(b,w,_,C,T){return w===null||w.tag!==7?(w=af(_,b.mode,C,T),w.return=b,w):(w=i(w,_),w.return=b,w)}function y(b,w,_){if(typeof w=="string"||typeof w=="number")return w=t1(""+w,b.mode,_),w.return=b,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Th:return _=M0(w.type,w.key,w.props,null,b.mode,_),_.ref=ih(b,null,w),_.return=b,_;case rl:return w=r1(w,b.mode,_),w.return=b,w}if(Mv(w)||Kc(w))return w=af(w,b.mode,_,null),w.return=b,w;Iv(b,w)}return null}function g(b,w,_,C){var T=w!==null?w.key:null;if(typeof _=="string"||typeof _=="number")return T!==null?null:l(b,w,""+_,C);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Th:return _.key===T?_.type===Bo?d(b,w,_.props.children,C,T):s(b,w,_,C):null;case rl:return _.key===T?c(b,w,_,C):null}if(Mv(_)||Kc(_))return T!==null?null:d(b,w,_,C,null);Iv(b,_)}return null}function m(b,w,_,C,T){if(typeof C=="string"||typeof C=="number")return b=b.get(_)||null,l(w,b,""+C,T);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Th:return b=b.get(C.key===null?_:C.key)||null,C.type===Bo?d(w,b,C.props.children,T,C.key):s(w,b,C,T);case rl:return b=b.get(C.key===null?_:C.key)||null,c(w,b,C,T)}if(Mv(C)||Kc(C))return b=b.get(_)||null,d(w,b,C,T,null);Iv(w,C)}return null}function E(b,w,_,C){for(var T=null,R=null,D=w,Y=w=0,j=null;D!==null&&Y<_.length;Y++){D.index>Y?(j=D,D=null):j=D.sibling;var re=g(b,D,_[Y],C);if(re===null){D===null&&(D=j);break}e&&D&&re.alternate===null&&t(b,D),w=a(re,w,Y),R===null?T=re:R.sibling=re,R=re,D=j}if(Y===_.length)return r(b,D),T;if(D===null){for(;Y<_.length;Y++)D=y(b,_[Y],C),D!==null&&(w=a(D,w,Y),R===null?T=D:R.sibling=D,R=D);return T}for(D=n(b,D);Y<_.length;Y++)j=m(D,b,Y,_[Y],C),j!==null&&(e&&j.alternate!==null&&D.delete(j.key===null?Y:j.key),w=a(j,w,Y),R===null?T=j:R.sibling=j,R=j);return e&&D.forEach(function(Se){return t(b,Se)}),T}function M(b,w,_,C){var T=Kc(_);if(typeof T!="function")throw Error(dt(150));if(_=T.call(_),_==null)throw Error(dt(151));for(var R=T=null,D=w,Y=w=0,j=null,re=_.next();D!==null&&!re.done;Y++,re=_.next()){D.index>Y?(j=D,D=null):j=D.sibling;var Se=g(b,D,re.value,C);if(Se===null){D===null&&(D=j);break}e&&D&&Se.alternate===null&&t(b,D),w=a(Se,w,Y),R===null?T=Se:R.sibling=Se,R=Se,D=j}if(re.done)return r(b,D),T;if(D===null){for(;!re.done;Y++,re=_.next())re=y(b,re.value,C),re!==null&&(w=a(re,w,Y),R===null?T=re:R.sibling=re,R=re);return T}for(D=n(b,D);!re.done;Y++,re=_.next())re=m(D,b,Y,re.value,C),re!==null&&(e&&re.alternate!==null&&D.delete(re.key===null?Y:re.key),w=a(re,w,Y),R===null?T=re:R.sibling=re,R=re);return e&&D.forEach(function(me){return t(b,me)}),T}return function(b,w,_,C){var T=typeof _=="object"&&_!==null&&_.type===Bo&&_.key===null;T&&(_=_.props.children);var R=typeof _=="object"&&_!==null;if(R)switch(_.$$typeof){case Th:e:{for(R=_.key,T=w;T!==null;){if(T.key===R){switch(T.tag){case 7:if(_.type===Bo){r(b,T.sibling),w=i(T,_.props.children),w.return=b,b=w;break e}break;default:if(T.elementType===_.type){r(b,T.sibling),w=i(T,_.props),w.ref=ih(b,T,_),w.return=b,b=w;break e}}r(b,T);break}else t(b,T);T=T.sibling}_.type===Bo?(w=af(_.props.children,b.mode,C,_.key),w.return=b,b=w):(C=M0(_.type,_.key,_.props,null,b.mode,C),C.ref=ih(b,w,_),C.return=b,b=C)}return o(b);case rl:e:{for(T=_.key;w!==null;){if(w.key===T)if(w.tag===4&&w.stateNode.containerInfo===_.containerInfo&&w.stateNode.implementation===_.implementation){r(b,w.sibling),w=i(w,_.children||[]),w.return=b,b=w;break e}else{r(b,w);break}else t(b,w);w=w.sibling}w=r1(_,b.mode,C),w.return=b,b=w}return o(b)}if(typeof _=="string"||typeof _=="number")return _=""+_,w!==null&&w.tag===6?(r(b,w.sibling),w=i(w,_),w.return=b,b=w):(r(b,w),w=t1(_,b.mode,C),w.return=b,b=w),o(b);if(Mv(_))return E(b,w,_,C);if(Kc(_))return M(b,w,_,C);if(R&&Iv(b,_),typeof _>"u"&&!T)switch(b.tag){case 1:case 22:case 0:case 11:case 15:throw Error(dt(152,Xs(b.type)||"Component"))}return r(b,w)}}var rm=uM(!0),lM=uM(!1),$d={},va=du($d),md=du($d),gd=du($d);function al(e){if(e===$d)throw Error(dt(174));return e}function cw(e,t){switch(Vr(gd,t),Vr(md,e),Vr(va,$d),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Xb(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Xb(t,e)}Lr(va),Vr(va,t)}function vf(){Lr(va),Lr(md),Lr(gd)}function HE(e){al(gd.current);var t=al(va.current),r=Xb(t,e.type);t!==r&&(Vr(md,e),Vr(va,r))}function g2(e){md.current===e&&(Lr(va),Lr(md))}var Wr=du(0);function nm(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&64)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var qa=null,Go=null,ma=!1;function sM(e,t){var r=Ti(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function VE(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function hw(e){if(ma){var t=Go;if(t){var r=t;if(!VE(e,t)){if(t=Js(r.nextSibling),!t||!VE(e,t)){e.flags=e.flags&-1025|2,ma=!1,qa=e;return}sM(qa,r)}qa=e,Go=Js(t.firstChild)}else e.flags=e.flags&-1025|2,ma=!1,qa=e}}function qE(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;qa=e}function Pv(e){if(e!==qa)return!1;if(!ma)return qE(e),ma=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!ow(t,e.memoizedProps))for(t=Go;t;)sM(e,t),t=Js(t.nextSibling);if(qE(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(dt(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Go=Js(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Go=null}}else Go=qa?Js(e.stateNode.nextSibling):null;return!0}function Zy(){Go=qa=null,ma=!1}var tf=[];function y2(){for(var e=0;e<tf.length;e++)tf[e]._workInProgressVersionPrimary=null;tf.length=0}var Wh=Cl.ReactCurrentDispatcher,Oi=Cl.ReactCurrentBatchConfig,yd=0,Qr=null,Rn=null,Cn=null,im=!1,Hh=!1;function Zn(){throw Error(dt(321))}function x2(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Ai(e[r],t[r]))return!1;return!0}function b2(e,t,r,n,i,a){if(yd=a,Qr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Wh.current=e===null||e.memoizedState===null?$6:B6,e=r(n,i),Hh){a=0;do{if(Hh=!1,!(25>a))throw Error(dt(301));a+=1,Cn=Rn=null,t.updateQueue=null,Wh.current=z6,e=r(n,i)}while(Hh)}if(Wh.current=lm,t=Rn!==null&&Rn.next!==null,yd=0,Cn=Rn=Qr=null,im=!1,t)throw Error(dt(300));return e}function ol(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Cn===null?Qr.memoizedState=Cn=e:Cn=Cn.next=e,Cn}function kl(){if(Rn===null){var e=Qr.alternate;e=e!==null?e.memoizedState:null}else e=Rn.next;var t=Cn===null?Qr.memoizedState:Cn.next;if(t!==null)Cn=t,Rn=e;else{if(e===null)throw Error(dt(310));Rn=e,e={memoizedState:Rn.memoizedState,baseState:Rn.baseState,baseQueue:Rn.baseQueue,queue:Rn.queue,next:null},Cn===null?Qr.memoizedState=Cn=e:Cn=Cn.next=e}return Cn}function ha(e,t){return typeof t=="function"?t(e):t}function ah(e){var t=kl(),r=t.queue;if(r===null)throw Error(dt(311));r.lastRenderedReducer=e;var n=Rn,i=n.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}n.baseQueue=i=a,r.pending=null}if(i!==null){i=i.next,n=n.baseState;var l=o=a=null,s=i;do{var c=s.lane;if((yd&c)===c)l!==null&&(l=l.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),n=s.eagerReducer===e?s.eagerState:e(n,s.action);else{var d={lane:c,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};l===null?(o=l=d,a=n):l=l.next=d,Qr.lanes|=c,Bd|=c}s=s.next}while(s!==null&&s!==i);l===null?a=n:l.next=o,Ai(n,t.memoizedState)||(qi=!0),t.memoizedState=n,t.baseState=a,t.baseQueue=l,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function oh(e){var t=kl(),r=t.queue;if(r===null)throw Error(dt(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,a=t.memoizedState;if(i!==null){r.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);Ai(a,t.memoizedState)||(qi=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function YE(e,t,r){var n=t._getVersion;n=n(t._source);var i=t._workInProgressVersionPrimary;if(i!==null?e=i===n:(e=e.mutableReadLanes,(e=(yd&e)===e)&&(t._workInProgressVersionPrimary=n,tf.push(t))),e)return r(t._source);throw tf.push(t),Error(dt(350))}function fM(e,t,r,n){var i=Wn;if(i===null)throw Error(dt(349));var a=t._getVersion,o=a(t._source),l=Wh.current,s=l.useState(function(){return YE(i,t,r)}),c=s[1],d=s[0];s=Cn;var y=e.memoizedState,g=y.refs,m=g.getSnapshot,E=y.source;y=y.subscribe;var M=Qr;return e.memoizedState={refs:g,source:t,subscribe:n},l.useEffect(function(){g.getSnapshot=r,g.setSnapshot=c;var b=a(t._source);if(!Ai(o,b)){b=r(t._source),Ai(d,b)||(c(b),b=Ko(M),i.mutableReadLanes|=b&i.pendingLanes),b=i.mutableReadLanes,i.entangledLanes|=b;for(var w=i.entanglements,_=b;0<_;){var C=31-ru(_),T=1<<C;w[C]|=b,_&=~T}}},[r,t,n]),l.useEffect(function(){return n(t._source,function(){var b=g.getSnapshot,w=g.setSnapshot;try{w(b(t._source));var _=Ko(M);i.mutableReadLanes|=_&i.pendingLanes}catch(C){w(function(){throw C})}})},[t,n]),Ai(m,r)&&Ai(E,t)&&Ai(y,n)||(e={pending:null,dispatch:null,lastRenderedReducer:ha,lastRenderedState:d},e.dispatch=c=S2.bind(null,Qr,e),s.queue=e,s.baseQueue=null,d=YE(i,t,r),s.memoizedState=s.baseState=d),d}function cM(e,t,r){var n=kl();return fM(n,e,t,r)}function uh(e){var t=ol();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ha,lastRenderedState:e},e=e.dispatch=S2.bind(null,Qr,e),[t.memoizedState,e]}function am(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Qr.updateQueue,t===null?(t={lastEffect:null},Qr.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function XE(e){var t=ol();return e={current:e},t.memoizedState=e}function om(){return kl().memoizedState}function dw(e,t,r,n){var i=ol();Qr.flags|=e,i.memoizedState=am(1|t,r,void 0,n===void 0?null:n)}function w2(e,t,r,n){var i=kl();n=n===void 0?null:n;var a=void 0;if(Rn!==null){var o=Rn.memoizedState;if(a=o.destroy,n!==null&&x2(n,o.deps)){am(t,r,a,n);return}}Qr.flags|=e,i.memoizedState=am(1|t,r,a,n)}function QE(e,t){return dw(516,4,e,t)}function um(e,t){return w2(516,4,e,t)}function hM(e,t){return w2(4,2,e,t)}function dM(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function pM(e,t,r){return r=r!=null?r.concat([e]):null,w2(4,2,dM.bind(null,t,e),r)}function _2(){}function vM(e,t){var r=kl();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&x2(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function mM(e,t){var r=kl();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&x2(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function D6(e,t){var r=pf();pl(98>r?98:r,function(){e(!0)}),pl(97<r?97:r,function(){var n=Oi.transition;Oi.transition=1;try{e(!1),t()}finally{Oi.transition=n}})}function S2(e,t,r){var n=di(),i=Ko(e),a={lane:i,action:r,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(o===null?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===Qr||o!==null&&o===Qr)Hh=im=!0;else{if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,s=o(l,r);if(a.eagerReducer=o,a.eagerState=s,Ai(s,l))return}catch{}finally{}Jo(e,i,n)}}var lm={readContext:Mi,useCallback:Zn,useContext:Zn,useEffect:Zn,useImperativeHandle:Zn,useLayoutEffect:Zn,useMemo:Zn,useReducer:Zn,useRef:Zn,useState:Zn,useDebugValue:Zn,useDeferredValue:Zn,useTransition:Zn,useMutableSource:Zn,useOpaqueIdentifier:Zn,unstable_isNewReconciler:!1},$6={readContext:Mi,useCallback:function(e,t){return ol().memoizedState=[e,t===void 0?null:t],e},useContext:Mi,useEffect:QE,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,dw(4,2,dM.bind(null,t,e),r)},useLayoutEffect:function(e,t){return dw(4,2,e,t)},useMemo:function(e,t){var r=ol();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ol();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e=n.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=S2.bind(null,Qr,e),[n.memoizedState,e]},useRef:XE,useState:uh,useDebugValue:_2,useDeferredValue:function(e){var t=uh(e),r=t[0],n=t[1];return QE(function(){var i=Oi.transition;Oi.transition=1;try{n(e)}finally{Oi.transition=i}},[e]),r},useTransition:function(){var e=uh(!1),t=e[0];return e=D6.bind(null,e[1]),XE(e),[e,t]},useMutableSource:function(e,t,r){var n=ol();return n.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:r},fM(n,e,t,r)},useOpaqueIdentifier:function(){if(ma){var e=!1,t=I6(function(){throw e||(e=!0,r("r:"+(Yy++).toString(36))),Error(dt(355))}),r=uh(t)[1];return(Qr.mode&2)===0&&(Qr.flags|=516,am(5,function(){r("r:"+(Yy++).toString(36))},void 0,null)),t}return t="r:"+(Yy++).toString(36),uh(t),t},unstable_isNewReconciler:!1},B6={readContext:Mi,useCallback:vM,useContext:Mi,useEffect:um,useImperativeHandle:pM,useLayoutEffect:hM,useMemo:mM,useReducer:ah,useRef:om,useState:function(){return ah(ha)},useDebugValue:_2,useDeferredValue:function(e){var t=ah(ha),r=t[0],n=t[1];return um(function(){var i=Oi.transition;Oi.transition=1;try{n(e)}finally{Oi.transition=i}},[e]),r},useTransition:function(){var e=ah(ha)[0];return[om().current,e]},useMutableSource:cM,useOpaqueIdentifier:function(){return ah(ha)[0]},unstable_isNewReconciler:!1},z6={readContext:Mi,useCallback:vM,useContext:Mi,useEffect:um,useImperativeHandle:pM,useLayoutEffect:hM,useMemo:mM,useReducer:oh,useRef:om,useState:function(){return oh(ha)},useDebugValue:_2,useDeferredValue:function(e){var t=oh(ha),r=t[0],n=t[1];return um(function(){var i=Oi.transition;Oi.transition=1;try{n(e)}finally{Oi.transition=i}},[e]),r},useTransition:function(){var e=oh(ha)[0];return[om().current,e]},useMutableSource:cM,useOpaqueIdentifier:function(){return oh(ha)[0]},unstable_isNewReconciler:!1},U6=Cl.ReactCurrentOwner,qi=!1;function Kn(e,t,r,n){t.child=e===null?lM(t,null,r,n):rm(t,e.child,r,n)}function ZE(e,t,r,n,i){r=r.render;var a=t.ref;return ef(t,i),n=b2(e,t,r,n,a,i),e!==null&&!qi?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Ya(e,t,i)):(t.flags|=1,Kn(e,t,n,i),t.child)}function KE(e,t,r,n,i,a){if(e===null){var o=r.type;return typeof o=="function"&&!k2(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,gM(e,t,o,n,i,a)):(e=M0(r.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}return o=e.child,(i&a)===0&&(i=o.memoizedProps,r=r.compare,r=r!==null?r:hd,r(i,n)&&e.ref===t.ref)?Ya(e,t,a):(t.flags|=1,e=au(o,n),e.ref=t.ref,e.return=t,t.child=e)}function gM(e,t,r,n,i,a){if(e!==null&&hd(e.memoizedProps,n)&&e.ref===t.ref)if(qi=!1,(a&i)!==0)(e.flags&16384)!==0&&(qi=!0);else return t.lanes=e.lanes,Ya(e,t,a);return pw(e,t,r,n,a)}function Ky(e,t,r){var n=t.pendingProps,i=n.children,a=e!==null?e.memoizedState:null;if(n.mode==="hidden"||n.mode==="unstable-defer-without-hiding")if((t.mode&4)===0)t.memoizedState={baseLanes:0},Rv(t,r);else if((r&1073741824)!==0)t.memoizedState={baseLanes:0},Rv(t,a!==null?a.baseLanes:r);else return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Rv(t,e),null;else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,Rv(t,n);return Kn(e,t,i,r),t.child}function yM(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=128)}function pw(e,t,r,n,i){var a=ti(r)?dl:Dn.current;return a=df(t,a),ef(t,i),r=b2(e,t,r,n,a,i),e!==null&&!qi?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Ya(e,t,i)):(t.flags|=1,Kn(e,t,r,i),t.child)}function JE(e,t,r,n,i){if(ti(r)){var a=!0;A0(t)}else a=!1;if(ef(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),oM(t,r,n),fw(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var s=o.context,c=r.contextType;typeof c=="object"&&c!==null?c=Mi(c):(c=ti(r)?dl:Dn.current,c=df(t,c));var d=r.getDerivedStateFromProps,y=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";y||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==n||s!==c)&&WE(t,o,n,c),No=!1;var g=t.memoizedState;o.state=g,vd(t,n,o,i),s=t.memoizedState,l!==n||g!==s||ei.current||No?(typeof d=="function"&&(tm(t,r,d,n),s=t.memoizedState),(l=No||GE(t,r,l,n,g,s,c))?(y||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4)):(typeof o.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=n,t.memoizedState=s),o.props=n,o.state=s,o.context=c,n=l):(typeof o.componentDidMount=="function"&&(t.flags|=4),n=!1)}else{o=t.stateNode,iM(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Vi(t.type,l),o.props=c,y=t.pendingProps,g=o.context,s=r.contextType,typeof s=="object"&&s!==null?s=Mi(s):(s=ti(r)?dl:Dn.current,s=df(t,s));var m=r.getDerivedStateFromProps;(d=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==y||g!==s)&&WE(t,o,n,s),No=!1,g=t.memoizedState,o.state=g,vd(t,n,o,i);var E=t.memoizedState;l!==y||g!==E||ei.current||No?(typeof m=="function"&&(tm(t,r,m,n),E=t.memoizedState),(c=No||GE(t,r,c,n,g,E,s))?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,E,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,E,s)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=256),t.memoizedProps=n,t.memoizedState=E),o.props=n,o.state=E,o.context=s,n=c):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=256),n=!1)}return vw(e,t,r,n,a,i)}function vw(e,t,r,n,i,a){yM(e,t);var o=(t.flags&64)!==0;if(!n&&!o)return i&&$E(t,r,!1),Ya(e,t,a);n=t.stateNode,U6.current=t;var l=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=rm(t,e.child,null,a),t.child=rm(t,null,l,a)):Kn(e,t,l,a),t.memoizedState=n.state,i&&$E(t,r,!0),t.child}function eA(e){var t=e.stateNode;t.pendingContext?DE(e,t.pendingContext,t.pendingContext!==t.context):t.context&&DE(e,t.context,!1),cw(e,t.containerInfo)}var Fv={dehydrated:null,retryLane:0};function tA(e,t,r){var n=t.pendingProps,i=Wr.current,a=!1,o;return(o=(t.flags&64)!==0)||(o=e!==null&&e.memoizedState===null?!1:(i&2)!==0),o?(a=!0,t.flags&=-65):e!==null&&e.memoizedState===null||n.fallback===void 0||n.unstable_avoidThisFallback===!0||(i|=1),Vr(Wr,i&1),e===null?(n.fallback!==void 0&&hw(t),e=n.children,i=n.fallback,a?(e=rA(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=Fv,e):typeof n.unstable_expectedLoadTime=="number"?(e=rA(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=Fv,t.lanes=33554432,e):(r=M2({mode:"visible",children:e},t.mode,r,null),r.return=t,t.child=r)):e.memoizedState!==null?a?(n=iA(e,t,n.children,n.fallback,r),a=t.child,i=e.child.memoizedState,a.memoizedState=i===null?{baseLanes:r}:{baseLanes:i.baseLanes|r},a.childLanes=e.childLanes&~r,t.memoizedState=Fv,n):(r=nA(e,t,n.children,r),t.memoizedState=null,r):a?(n=iA(e,t,n.children,n.fallback,r),a=t.child,i=e.child.memoizedState,a.memoizedState=i===null?{baseLanes:r}:{baseLanes:i.baseLanes|r},a.childLanes=e.childLanes&~r,t.memoizedState=Fv,n):(r=nA(e,t,n.children,r),t.memoizedState=null,r)}function rA(e,t,r,n){var i=e.mode,a=e.child;return t={mode:"hidden",children:t},(i&2)===0&&a!==null?(a.childLanes=0,a.pendingProps=t):a=M2(t,i,0,null),r=af(r,i,n,null),a.return=e,r.return=e,a.sibling=r,e.child=a,r}function nA(e,t,r,n){var i=e.child;return e=i.sibling,r=au(i,{mode:"visible",children:r}),(t.mode&2)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=r}function iA(e,t,r,n,i){var a=t.mode,o=e.child;e=o.sibling;var l={mode:"hidden",children:r};return(a&2)===0&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,o=r.lastEffect,o!==null?(t.firstEffect=r.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):r=au(o,l),e!==null?n=au(e,n):(n=af(n,a,i,null),n.flags|=2),n.return=t,r.return=t,r.sibling=n,t.child=r,n}function aA(e,t){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),nM(e.return,t)}function Jy(e,t,r,n,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=i,o.lastEffect=a)}function oA(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(Kn(e,t,n.children,r),n=Wr.current,(n&2)!==0)n=n&1|2,t.flags|=64;else{if(e!==null&&(e.flags&64)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&aA(e,r);else if(e.tag===19)aA(e,r);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Vr(Wr,n),(t.mode&2)===0)t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&nm(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),Jy(t,!1,i,r,a,t.lastEffect);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&nm(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}Jy(t,!0,r,null,a,t.lastEffect);break;case"together":Jy(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ya(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Bd|=t.lanes,(r&t.childLanes)!==0){if(e!==null&&t.child!==e.child)throw Error(dt(153));if(t.child!==null){for(e=t.child,r=au(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=au(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}return null}var xM,mw,bM,wM;xM=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};mw=function(){};bM=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,al(va.current);var a=null;switch(r){case"input":i=Gb(e,i),n=Gb(e,n),a=[];break;case"option":i=Vb(e,i),n=Vb(e,n),a=[];break;case"select":i=zr({},i,{value:void 0}),n=zr({},n,{value:void 0}),a=[];break;case"textarea":i=qb(e,i),n=qb(e,n),a=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=X0)}Qb(r,n);var o;r=null;for(c in i)if(!n.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var l=i[c];for(o in l)l.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(ad.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in n){var s=n[c];if(l=i?.[c],n.hasOwnProperty(c)&&s!==l&&(s!=null||l!=null))if(c==="style")if(l){for(o in l)!l.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in s)s.hasOwnProperty(o)&&l[o]!==s[o]&&(r||(r={}),r[o]=s[o])}else r||(a||(a=[]),a.push(c,r)),r=s;else c==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(a=a||[]).push(c,s)):c==="children"?typeof s!="string"&&typeof s!="number"||(a=a||[]).push(c,""+s):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(ad.hasOwnProperty(c)?(s!=null&&c==="onScroll"&&Rr("scroll",e),a||l===s||(a=[])):typeof s=="object"&&s!==null&&s.$$typeof===Q_?s.toString():(a=a||[]).push(c,s))}r&&(a=a||[]).push("style",r);var c=a;(t.updateQueue=c)&&(t.flags|=4)}};wM=function(e,t,r,n){r!==n&&(t.flags|=4)};function lh(e,t){if(!ma)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function j6(e,t,r){var n=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return ti(t.type)&&Z0(),null;case 3:return vf(),Lr(ei),Lr(Dn),y2(),n=t.stateNode,n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Pv(t)?t.flags|=4:n.hydrate||(t.flags|=256)),mw(t),null;case 5:g2(t);var i=al(gd.current);if(r=t.type,e!==null&&t.stateNode!=null)bM(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=128);else{if(!n){if(t.stateNode===null)throw Error(dt(166));return null}if(e=al(va.current),Pv(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[jo]=t,n[Q0]=a,r){case"dialog":Rr("cancel",n),Rr("close",n);break;case"iframe":case"object":case"embed":Rr("load",n);break;case"video":case"audio":for(e=0;e<Oh.length;e++)Rr(Oh[e],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":oE(n,a),Rr("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Rr("invalid",n);break;case"textarea":lE(n,a),Rr("invalid",n)}Qb(r,a),e=null;for(var o in a)a.hasOwnProperty(o)&&(i=a[o],o==="children"?typeof i=="string"?n.textContent!==i&&(e=["children",i]):typeof i=="number"&&n.textContent!==""+i&&(e=["children",""+i]):ad.hasOwnProperty(o)&&i!=null&&o==="onScroll"&&Rr("scroll",n));switch(r){case"input":Tv(n),uE(n,a,!0);break;case"textarea":Tv(n),sE(n);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(n.onclick=X0)}n=e,t.updateQueue=n,n!==null&&(t.flags|=4)}else{switch(o=i.nodeType===9?i:i.ownerDocument,e===Yb.html&&(e=pk(r)),e===Yb.html?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[jo]=t,e[Q0]=n,xM(e,t,!1,!1),t.stateNode=e,o=Zb(r,n),r){case"dialog":Rr("cancel",e),Rr("close",e),i=n;break;case"iframe":case"object":case"embed":Rr("load",e),i=n;break;case"video":case"audio":for(i=0;i<Oh.length;i++)Rr(Oh[i],e);i=n;break;case"source":Rr("error",e),i=n;break;case"img":case"image":case"link":Rr("error",e),Rr("load",e),i=n;break;case"details":Rr("toggle",e),i=n;break;case"input":oE(e,n),i=Gb(e,n),Rr("invalid",e);break;case"option":i=Vb(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=zr({},n,{value:void 0}),Rr("invalid",e);break;case"textarea":lE(e,n),i=qb(e,n),Rr("invalid",e);break;default:i=n}Qb(r,i);var l=i;for(a in l)if(l.hasOwnProperty(a)){var s=l[a];a==="style"?gk(e,s):a==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&vk(e,s)):a==="children"?typeof s=="string"?(r!=="textarea"||s!=="")&&od(e,s):typeof s=="number"&&od(e,""+s):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(ad.hasOwnProperty(a)?s!=null&&a==="onScroll"&&Rr("scroll",e):s!=null&&W_(e,a,s,o))}switch(r){case"input":Tv(e),uE(e,n,!1);break;case"textarea":Tv(e),sE(e);break;case"option":n.value!=null&&e.setAttribute("value",""+tu(n.value));break;case"select":e.multiple=!!n.multiple,a=n.value,a!=null?Qs(e,!!n.multiple,a,!1):n.defaultValue!=null&&Qs(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=X0)}Yk(r,n)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)wM(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(dt(166));r=al(gd.current),al(va.current),Pv(t)?(n=t.stateNode,r=t.memoizedProps,n[jo]=t,n.nodeValue!==r&&(t.flags|=4)):(n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[jo]=t,t.stateNode=n)}return null;case 13:return Lr(Wr),n=t.memoizedState,(t.flags&64)!==0?(t.lanes=r,t):(n=n!==null,r=!1,e===null?t.memoizedProps.fallback!==void 0&&Pv(t):r=e.memoizedState!==null,n&&!r&&(t.mode&2)!==0&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||(Wr.current&1)!==0?On===0&&(On=3):((On===0||On===3)&&(On=4),Wn===null||(Bd&134217727)===0&&(Rf&134217727)===0||rf(Wn,Ln))),(n||r)&&(t.flags|=4),null);case 4:return vf(),mw(t),e===null&&Hk(t.stateNode.containerInfo),null;case 10:return v2(t),null;case 17:return ti(t.type)&&Z0(),null;case 19:if(Lr(Wr),n=t.memoizedState,n===null)return null;if(a=(t.flags&64)!==0,o=n.rendering,o===null)if(a)lh(n,!1);else{if(On!==0||e!==null&&(e.flags&64)!==0)for(e=t.child;e!==null;){if(o=nm(e),o!==null){for(t.flags|=64,lh(n,!1),a=o.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),n.lastEffect===null&&(t.firstEffect=null),t.lastEffect=n.lastEffect,n=r,r=t.child;r!==null;)a=r,e=n,a.flags&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,o=a.alternate,o===null?(a.childLanes=0,a.lanes=e,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Vr(Wr,Wr.current&1|2),t.child}e=e.sibling}n.tail!==null&&Nn()>_w&&(t.flags|=64,a=!0,lh(n,!1),t.lanes=33554432)}else{if(!a)if(e=nm(o),e!==null){if(t.flags|=64,a=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),lh(n,!0),n.tail===null&&n.tailMode==="hidden"&&!o.alternate&&!ma)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*Nn()-n.renderingStartTime>_w&&r!==1073741824&&(t.flags|=64,a=!0,lh(n,!1),t.lanes=33554432);n.isBackwards?(o.sibling=t.child,t.child=o):(r=n.last,r!==null?r.sibling=o:t.child=o,n.last=o)}return n.tail!==null?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=Nn(),r.sibling=null,t=Wr.current,Vr(Wr,a?t&1|2:t&1),r):null;case 23:case 24:return O2(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(dt(156,t.tag))}function G6(e){switch(e.tag){case 1:ti(e.type)&&Z0();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(vf(),Lr(ei),Lr(Dn),y2(),t=e.flags,(t&64)!==0)throw Error(dt(285));return e.flags=t&-4097|64,e;case 5:return g2(e),null;case 13:return Lr(Wr),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return Lr(Wr),null;case 4:return vf(),null;case 10:return v2(e),null;case 23:case 24:return O2(),null;default:return null}}function E2(e,t){try{var r="",n=t;do r+=SN(n),n=n.return;while(n);var i=r}catch(a){i=`
|
|
31
|
-
Error generating stack: `+a.message+`
|
|
32
|
-
`+a.stack}return{value:e,source:t,stack:i}}function gw(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var W6=typeof WeakMap=="function"?WeakMap:Map;function _M(e,t,r){r=Qo(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){fm||(fm=!0,Sw=n),gw(e,t)},r}function SM(e,t,r){r=Qo(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return gw(e,t),n(i)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){typeof n!="function"&&(da===null?da=new Set([this]):da.add(this),gw(e,t));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}var H6=typeof WeakSet=="function"?WeakSet:Set;function uA(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){eu(e,r)}else t.current=null}function V6(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var r=e.memoizedProps,n=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?r:Vi(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&c2(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(dt(163))}function q6(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var n=e.create;e.destroy=n()}e=e.next}while(e!==t)}if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var i=e;n=i.next,i=i.tag,(i&4)!==0&&(i&1)!==0&&(PM(r,e),t8(r,e)),e=n}while(e!==t)}return;case 1:e=r.stateNode,r.flags&4&&(t===null?e.componentDidMount():(n=r.elementType===r.type?t.memoizedProps:Vi(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=r.updateQueue,t!==null&&jE(r,t,e);return;case 3:if(t=r.updateQueue,t!==null){if(e=null,r.child!==null)switch(r.child.tag){case 5:e=r.child.stateNode;break;case 1:e=r.child.stateNode}jE(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.flags&4&&Yk(r.type,r.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:r.memoizedState===null&&(r=r.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&Ck(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(dt(163))}function lA(e,t){for(var r=e;;){if(r.tag===5){var n=r.stateNode;if(t)n=n.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none";else{n=r.stateNode;var i=r.memoizedProps.style;i=i!=null&&i.hasOwnProperty("display")?i.display:null,n.style.display=mk("display",i)}}else if(r.tag===6)r.stateNode.nodeValue=t?"":r.memoizedProps;else if((r.tag!==23&&r.tag!==24||r.memoizedState===null||r===e)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function sA(e,t){if(sl&&typeof sl.onCommitFiberUnmount=="function")try{sl.onCommitFiberUnmount(h2,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var r=e=e.next;do{var n=r,i=n.destroy;if(n=n.tag,i!==void 0)if((n&4)!==0)PM(t,r);else{n=t;try{i()}catch(a){eu(n,a)}}r=r.next}while(r!==e)}break;case 1:if(uA(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(a){eu(t,a)}break;case 5:uA(t);break;case 4:EM(e,t)}}function fA(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function cA(e){return e.tag===5||e.tag===3||e.tag===4}function hA(e){e:{for(var t=e.return;t!==null;){if(cA(t))break e;t=t.return}throw Error(dt(160))}var r=t;switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:t=t.containerInfo,n=!0;break;case 4:t=t.containerInfo,n=!0;break;default:throw Error(dt(161))}r.flags&16&&(od(t,""),r.flags&=-17);e:t:for(r=e;;){for(;r.sibling===null;){if(r.return===null||cA(r.return)){r=null;break e}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 t;r.child.return=r,r=r.child}if(!(r.flags&2)){r=r.stateNode;break e}}n?yw(e,r,t):xw(e,r,t)}function yw(e,t,r){var n=e.tag,i=n===5||n===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=X0));else if(n!==4&&(e=e.child,e!==null))for(yw(e,t,r),e=e.sibling;e!==null;)yw(e,t,r),e=e.sibling}function xw(e,t,r){var n=e.tag,i=n===5||n===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(xw(e,t,r),e=e.sibling;e!==null;)xw(e,t,r),e=e.sibling}function EM(e,t){for(var r=t,n=!1,i,a;;){if(!n){n=r.return;e:for(;;){if(n===null)throw Error(dt(160));switch(i=n.stateNode,n.tag){case 5:a=!1;break e;case 3:i=i.containerInfo,a=!0;break e;case 4:i=i.containerInfo,a=!0;break e}n=n.return}n=!0}if(r.tag===5||r.tag===6){e:for(var o=e,l=r,s=l;;)if(sA(o,s),s.child!==null&&s.tag!==4)s.child.return=s,s=s.child;else{if(s===l)break e;for(;s.sibling===null;){if(s.return===null||s.return===l)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}a?(o=i,l=r.stateNode,o.nodeType===8?o.parentNode.removeChild(l):o.removeChild(l)):i.removeChild(r.stateNode)}else if(r.tag===4){if(r.child!==null){i=r.stateNode.containerInfo,a=!0,r.child.return=r,r=r.child;continue}}else if(sA(e,r),r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return,r.tag===4&&(n=!1)}r.sibling.return=r.return,r=r.sibling}}function e1(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var n=r=r.next;do(n.tag&3)===3&&(e=n.destroy,n.destroy=void 0,e!==void 0&&e()),n=n.next;while(n!==r)}return;case 1:return;case 5:if(r=t.stateNode,r!=null){n=t.memoizedProps;var i=e!==null?e.memoizedProps:n;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,a!==null){for(r[Q0]=n,e==="input"&&n.type==="radio"&&n.name!=null&&hk(r,n),Zb(e,i),t=Zb(e,n),i=0;i<a.length;i+=2){var o=a[i],l=a[i+1];o==="style"?gk(r,l):o==="dangerouslySetInnerHTML"?vk(r,l):o==="children"?od(r,l):W_(r,o,l,t)}switch(e){case"input":Wb(r,n);break;case"textarea":dk(r,n);break;case"select":e=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,a=n.value,a!=null?Qs(r,!!n.multiple,a,!1):e!==!!n.multiple&&(n.defaultValue!=null?Qs(r,!!n.multiple,n.defaultValue,!0):Qs(r,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(dt(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:r=t.stateNode,r.hydrate&&(r.hydrate=!1,Ck(r.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(C2=Nn(),lA(t.child,!0)),dA(t);return;case 19:dA(t);return;case 17:return;case 23:case 24:lA(t,t.memoizedState!==null);return}throw Error(dt(163))}function dA(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new H6),t.forEach(function(n){var i=i8.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Y6(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var X6=Math.ceil,sm=Cl.ReactCurrentDispatcher,A2=Cl.ReactCurrentOwner,Jt=0,Wn=null,cn=null,Ln=0,vl=0,bw=du(0),On=0,ng=null,Ff=0,Bd=0,Rf=0,T2=0,ww=null,C2=0,_w=1/0;function Nf(){_w=Nn()+500}var $t=null,fm=!1,Sw=null,da=null,iu=!1,Vh=null,kh=90,Ew=[],Aw=[],Qa=null,qh=0,Tw=null,C0=-1,Va=0,O0=0,Yh=null,k0=!1;function di(){return(Jt&48)!==0?Nn():C0!==-1?C0:C0=Nn()}function Ko(e){if(e=e.mode,(e&2)===0)return 1;if((e&4)===0)return pf()===99?1:2;if(Va===0&&(Va=Ff),L6.transition!==0){O0!==0&&(O0=ww!==null?ww.pendingLanes:0),e=Va;var t=4186112&~O0;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=pf(),(Jt&4)!==0&&e===98?e=q0(12,Va):(e=BN(e),e=q0(e,Va)),e}function Jo(e,t,r){if(50<qh)throw qh=0,Tw=null,Error(dt(185));if(e=ig(e,t),e===null)return null;Qm(e,t,r),e===Wn&&(Rf|=t,On===4&&rf(e,Ln));var n=pf();t===1?(Jt&8)!==0&&(Jt&48)===0?Cw(e):(Ii(e,r),Jt===0&&(Nf(),wa())):((Jt&4)===0||n!==98&&n!==99||(Qa===null?Qa=new Set([e]):Qa.add(e)),Ii(e,r)),ww=e}function ig(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}function Ii(e,t){for(var r=e.callbackNode,n=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var l=31-ru(o),s=1<<l,c=a[l];if(c===-1){if((s&n)===0||(s&i)!==0){c=t,Fs(s);var d=Fr;a[l]=10<=d?c+250:6<=d?c+5e3:-1}}else c<=t&&(e.expiredLanes|=s);o&=~s}if(n=fd(e,e===Wn?Ln:0),t=Fr,n===0)r!==null&&(r!==Xy&&lw(r),e.callbackNode=null,e.callbackPriority=0);else{if(r!==null){if(e.callbackPriority===t)return;r!==Xy&&lw(r)}t===15?(r=Cw.bind(null,e),Ha===null?(Ha=[r],T0=d2(tg,rM)):Ha.push(r),r=Xy):t===14?r=pd(99,Cw.bind(null,e)):(r=zN(t),r=pd(r,AM.bind(null,e))),e.callbackPriority=t,e.callbackNode=r}}function AM(e){if(C0=-1,O0=Va=0,(Jt&48)!==0)throw Error(dt(327));var t=e.callbackNode;if(pu()&&e.callbackNode!==t)return null;var r=fd(e,e===Wn?Ln:0);if(r===0)return null;var n=r,i=Jt;Jt|=16;var a=kM();(Wn!==e||Ln!==n)&&(Nf(),nf(e,n));do try{K6();break}catch(l){OM(e,l)}while(1);if(p2(),sm.current=a,Jt=i,cn!==null?n=0:(Wn=null,Ln=0,n=On),(Ff&Rf)!==0)nf(e,0);else if(n!==0){if(n===2&&(Jt|=64,e.hydrate&&(e.hydrate=!1,c2(e.containerInfo)),r=Rk(e),r!==0&&(n=Mh(e,r))),n===1)throw t=ng,nf(e,0),rf(e,r),Ii(e,Nn()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=r,n){case 0:case 1:throw Error(dt(345));case 2:Qu(e);break;case 3:if(rf(e,r),(r&62914560)===r&&(n=C2+500-Nn(),10<n)){if(fd(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){di(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=RE(Qu.bind(null,e),n);break}Qu(e);break;case 4:if(rf(e,r),(r&4186112)===r)break;for(n=e.eventTimes,i=-1;0<r;){var o=31-ru(r);a=1<<o,o=n[o],o>i&&(i=o),r&=~a}if(r=i,r=Nn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*X6(r/1960))-r,10<r){e.timeoutHandle=RE(Qu.bind(null,e),r);break}Qu(e);break;case 5:Qu(e);break;default:throw Error(dt(329))}}return Ii(e,Nn()),e.callbackNode===t?AM.bind(null,e):null}function rf(e,t){for(t&=~T2,t&=~Rf,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-ru(t),n=1<<r;e[r]=-1,t&=~n}}function Cw(e){if((Jt&48)!==0)throw Error(dt(327));if(pu(),e===Wn&&(e.expiredLanes&Ln)!==0){var t=Ln,r=Mh(e,t);(Ff&Rf)!==0&&(t=fd(e,t),r=Mh(e,t))}else t=fd(e,0),r=Mh(e,t);if(e.tag!==0&&r===2&&(Jt|=64,e.hydrate&&(e.hydrate=!1,c2(e.containerInfo)),t=Rk(e),t!==0&&(r=Mh(e,t))),r===1)throw r=ng,nf(e,0),rf(e,t),Ii(e,Nn()),r;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Qu(e),Ii(e,Nn()),null}function Q6(){if(Qa!==null){var e=Qa;Qa=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,Ii(t,Nn())})}wa()}function TM(e,t){var r=Jt;Jt|=1;try{return e(t)}finally{Jt=r,Jt===0&&(Nf(),wa())}}function CM(e,t){var r=Jt;Jt&=-2,Jt|=8;try{return e(t)}finally{Jt=r,Jt===0&&(Nf(),wa())}}function Rv(e,t){Vr(bw,vl),vl|=t,Ff|=t}function O2(){vl=bw.current,Lr(bw)}function nf(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,M6(r)),cn!==null)for(r=cn.return;r!==null;){var n=r;switch(n.tag){case 1:n=n.type.childContextTypes,n!=null&&Z0();break;case 3:vf(),Lr(ei),Lr(Dn),y2();break;case 5:g2(n);break;case 4:vf();break;case 13:Lr(Wr);break;case 19:Lr(Wr);break;case 10:v2(n);break;case 23:case 24:O2()}r=r.return}Wn=e,cn=au(e.current,null),Ln=vl=Ff=t,On=0,ng=null,T2=Rf=Bd=0}function OM(e,t){do{var r=cn;try{if(p2(),Wh.current=lm,im){for(var n=Qr.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}im=!1}if(yd=0,Cn=Rn=Qr=null,Hh=!1,A2.current=null,r===null||r.return===null){On=1,ng=t,cn=null;break}e:{var a=e,o=r.return,l=r,s=t;if(t=Ln,l.flags|=2048,l.firstEffect=l.lastEffect=null,s!==null&&typeof s=="object"&&typeof s.then=="function"){var c=s;if((l.mode&2)===0){var d=l.alternate;d?(l.updateQueue=d.updateQueue,l.memoizedState=d.memoizedState,l.lanes=d.lanes):(l.updateQueue=null,l.memoizedState=null)}var y=(Wr.current&1)!==0,g=o;do{var m;if(m=g.tag===13){var E=g.memoizedState;if(E!==null)m=E.dehydrated!==null;else{var M=g.memoizedProps;m=M.fallback===void 0?!1:M.unstable_avoidThisFallback!==!0?!0:!y}}if(m){var b=g.updateQueue;if(b===null){var w=new Set;w.add(c),g.updateQueue=w}else b.add(c);if((g.mode&2)===0){if(g.flags|=64,l.flags|=16384,l.flags&=-2981,l.tag===1)if(l.alternate===null)l.tag=17;else{var _=Qo(-1,1);_.tag=2,Zo(l,_)}l.lanes|=1;break e}s=void 0,l=t;var C=a.pingCache;if(C===null?(C=a.pingCache=new W6,s=new Set,C.set(c,s)):(s=C.get(c),s===void 0&&(s=new Set,C.set(c,s))),!s.has(l)){s.add(l);var T=n8.bind(null,a,c,l);c.then(T,T)}g.flags|=4096,g.lanes=t;break e}g=g.return}while(g!==null);s=Error((Xs(l.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
|
|
33
|
-
|
|
34
|
-
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}On!==5&&(On=2),s=E2(s,l),g=o;do{switch(g.tag){case 3:a=s,g.flags|=4096,t&=-t,g.lanes|=t;var R=_M(g,a,t);UE(g,R);break e;case 1:a=s;var D=g.type,Y=g.stateNode;if((g.flags&64)===0&&(typeof D.getDerivedStateFromError=="function"||Y!==null&&typeof Y.componentDidCatch=="function"&&(da===null||!da.has(Y)))){g.flags|=4096,t&=-t,g.lanes|=t;var j=SM(g,a,t);UE(g,j);break e}}g=g.return}while(g!==null)}IM(r)}catch(re){t=re,cn===r&&r!==null&&(cn=r=r.return);continue}break}while(1)}function kM(){var e=sm.current;return sm.current=lm,e===null?lm:e}function Mh(e,t){var r=Jt;Jt|=16;var n=kM();Wn===e&&Ln===t||nf(e,t);do try{Z6();break}catch(i){OM(e,i)}while(1);if(p2(),Jt=r,sm.current=n,cn!==null)throw Error(dt(261));return Wn=null,Ln=0,On}function Z6(){for(;cn!==null;)MM(cn)}function K6(){for(;cn!==null&&!F6();)MM(cn)}function MM(e){var t=FM(e.alternate,e,vl);e.memoizedProps=e.pendingProps,t===null?IM(e):cn=t,A2.current=null}function IM(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&2048)===0){if(r=j6(r,t,vl),r!==null){cn=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||(vl&1073741824)!==0||(r.mode&4)===0){for(var n=0,i=r.child;i!==null;)n|=i.lanes|i.childLanes,i=i.sibling;r.childLanes=n}e!==null&&(e.flags&2048)===0&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(r=G6(t),r!==null){r.flags&=2047,cn=r;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(t=t.sibling,t!==null){cn=t;return}cn=t=e}while(t!==null);On===0&&(On=5)}function Qu(e){var t=pf();return pl(99,J6.bind(null,e,t)),null}function J6(e,t){do pu();while(Vh!==null);if((Jt&48)!==0)throw Error(dt(327));var r=e.finishedWork;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(dt(177));e.callbackNode=null;var n=r.lanes|r.childLanes,i=n,a=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var o=e.eventTimes,l=e.expirationTimes;0<a;){var s=31-ru(a),c=1<<s;i[s]=0,o[s]=-1,l[s]=-1,a&=~c}if(Qa!==null&&(n&24)===0&&Qa.has(e)&&Qa.delete(e),e===Wn&&(cn=Wn=null,Ln=0),1<r.flags?r.lastEffect!==null?(r.lastEffect.nextEffect=r,n=r.firstEffect):n=r:n=r.firstEffect,n!==null){if(i=Jt,Jt|=32,A2.current=null,Vy=_0,o=CE(),nw(o)){if("selectionStart"in o)l={start:o.selectionStart,end:o.selectionEnd};else e:if(l=(l=o.ownerDocument)&&l.defaultView||window,(c=l.getSelection&&l.getSelection())&&c.rangeCount!==0){l=c.anchorNode,a=c.anchorOffset,s=c.focusNode,c=c.focusOffset;try{l.nodeType,s.nodeType}catch{l=null;break e}var d=0,y=-1,g=-1,m=0,E=0,M=o,b=null;t:for(;;){for(var w;M!==l||a!==0&&M.nodeType!==3||(y=d+a),M!==s||c!==0&&M.nodeType!==3||(g=d+c),M.nodeType===3&&(d+=M.nodeValue.length),(w=M.firstChild)!==null;)b=M,M=w;for(;;){if(M===o)break t;if(b===l&&++m===a&&(y=d),b===s&&++E===c&&(g=d),(w=M.nextSibling)!==null)break;M=b,b=M.parentNode}M=w}l=y===-1||g===-1?null:{start:y,end:g}}else l=null;l=l||{start:0,end:0}}else l=null;qy={focusedElem:o,selectionRange:l},_0=!1,Yh=null,k0=!1,$t=n;do try{e8()}catch(re){if($t===null)throw Error(dt(330));eu($t,re),$t=$t.nextEffect}while($t!==null);Yh=null,$t=n;do try{for(o=e;$t!==null;){var _=$t.flags;if(_&16&&od($t.stateNode,""),_&128){var C=$t.alternate;if(C!==null){var T=C.ref;T!==null&&(typeof T=="function"?T(null):T.current=null)}}switch(_&1038){case 2:hA($t),$t.flags&=-3;break;case 6:hA($t),$t.flags&=-3,e1($t.alternate,$t);break;case 1024:$t.flags&=-1025;break;case 1028:$t.flags&=-1025,e1($t.alternate,$t);break;case 4:e1($t.alternate,$t);break;case 8:l=$t,EM(o,l);var R=l.alternate;fA(l),R!==null&&fA(R)}$t=$t.nextEffect}}catch(re){if($t===null)throw Error(dt(330));eu($t,re),$t=$t.nextEffect}while($t!==null);if(T=qy,C=CE(),_=T.focusedElem,o=T.selectionRange,C!==_&&_&&_.ownerDocument&&jk(_.ownerDocument.documentElement,_)){for(o!==null&&nw(_)&&(C=o.start,T=o.end,T===void 0&&(T=C),"selectionStart"in _?(_.selectionStart=C,_.selectionEnd=Math.min(T,_.value.length)):(T=(C=_.ownerDocument||document)&&C.defaultView||window,T.getSelection&&(T=T.getSelection(),l=_.textContent.length,R=Math.min(o.start,l),o=o.end===void 0?R:Math.min(o.end,l),!T.extend&&R>o&&(l=o,o=R,R=l),l=TE(_,R),a=TE(_,o),l&&a&&(T.rangeCount!==1||T.anchorNode!==l.node||T.anchorOffset!==l.offset||T.focusNode!==a.node||T.focusOffset!==a.offset)&&(C=C.createRange(),C.setStart(l.node,l.offset),T.removeAllRanges(),R>o?(T.addRange(C),T.extend(a.node,a.offset)):(C.setEnd(a.node,a.offset),T.addRange(C)))))),C=[],T=_;T=T.parentNode;)T.nodeType===1&&C.push({element:T,left:T.scrollLeft,top:T.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<C.length;_++)T=C[_],T.element.scrollLeft=T.left,T.element.scrollTop=T.top}_0=!!Vy,qy=Vy=null,e.current=r,$t=n;do try{for(_=e;$t!==null;){var D=$t.flags;if(D&36&&q6(_,$t.alternate,$t),D&128){C=void 0;var Y=$t.ref;if(Y!==null){var j=$t.stateNode;switch($t.tag){case 5:C=j;break;default:C=j}typeof Y=="function"?Y(C):Y.current=C}}$t=$t.nextEffect}}catch(re){if($t===null)throw Error(dt(330));eu($t,re),$t=$t.nextEffect}while($t!==null);$t=null,N6(),Jt=i}else e.current=r;if(iu)iu=!1,Vh=e,kh=t;else for($t=n;$t!==null;)t=$t.nextEffect,$t.nextEffect=null,$t.flags&8&&(D=$t,D.sibling=null,D.stateNode=null),$t=t;if(n=e.pendingLanes,n===0&&(da=null),n===1?e===Tw?qh++:(qh=0,Tw=e):qh=0,r=r.stateNode,sl&&typeof sl.onCommitFiberRoot=="function")try{sl.onCommitFiberRoot(h2,r,void 0,(r.current.flags&64)===64)}catch{}if(Ii(e,Nn()),fm)throw fm=!1,e=Sw,Sw=null,e;return(Jt&8)!==0||wa(),null}function e8(){for(;$t!==null;){var e=$t.alternate;k0||Yh===null||(($t.flags&8)!==0?hE($t,Yh)&&(k0=!0):$t.tag===13&&Y6(e,$t)&&hE($t,Yh)&&(k0=!0));var t=$t.flags;(t&256)!==0&&V6(e,$t),(t&512)===0||iu||(iu=!0,pd(97,function(){return pu(),null})),$t=$t.nextEffect}}function pu(){if(kh!==90){var e=97<kh?97:kh;return kh=90,pl(e,r8)}return!1}function t8(e,t){Ew.push(t,e),iu||(iu=!0,pd(97,function(){return pu(),null}))}function PM(e,t){Aw.push(t,e),iu||(iu=!0,pd(97,function(){return pu(),null}))}function r8(){if(Vh===null)return!1;var e=Vh;if(Vh=null,(Jt&48)!==0)throw Error(dt(331));var t=Jt;Jt|=32;var r=Aw;Aw=[];for(var n=0;n<r.length;n+=2){var i=r[n],a=r[n+1],o=i.destroy;if(i.destroy=void 0,typeof o=="function")try{o()}catch(s){if(a===null)throw Error(dt(330));eu(a,s)}}for(r=Ew,Ew=[],n=0;n<r.length;n+=2){i=r[n],a=r[n+1];try{var l=i.create;i.destroy=l()}catch(s){if(a===null)throw Error(dt(330));eu(a,s)}}for(l=e.current.firstEffect;l!==null;)e=l.nextEffect,l.nextEffect=null,l.flags&8&&(l.sibling=null,l.stateNode=null),l=e;return Jt=t,wa(),!0}function pA(e,t,r){t=E2(r,t),t=_M(e,t,1),Zo(e,t),t=di(),e=ig(e,1),e!==null&&(Qm(e,1,t),Ii(e,t))}function eu(e,t){if(e.tag===3)pA(e,e,t);else for(var r=e.return;r!==null;){if(r.tag===3){pA(r,e,t);break}else if(r.tag===1){var n=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(da===null||!da.has(n))){e=E2(t,e);var i=SM(r,e,1);if(Zo(r,i),i=di(),r=ig(r,1),r!==null)Qm(r,1,i),Ii(r,i);else if(typeof n.componentDidCatch=="function"&&(da===null||!da.has(n)))try{n.componentDidCatch(t,e)}catch{}break}}r=r.return}}function n8(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=di(),e.pingedLanes|=e.suspendedLanes&r,Wn===e&&(Ln&r)===r&&(On===4||On===3&&(Ln&62914560)===Ln&&500>Nn()-C2?nf(e,0):T2|=r),Ii(e,t)}function i8(e,t){var r=e.stateNode;r!==null&&r.delete(t),t=0,t===0&&(t=e.mode,(t&2)===0?t=1:(t&4)===0?t=pf()===99?1:2:(Va===0&&(Va=Ff),t=Rs(62914560&~Va),t===0&&(t=4194304))),r=di(),e=ig(e,t),e!==null&&(Qm(e,t,r),Ii(e,r))}var FM;FM=function(e,t,r){var n=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||ei.current)qi=!0;else if((r&n)!==0)qi=(e.flags&16384)!==0;else{switch(qi=!1,t.tag){case 3:eA(t),Zy();break;case 5:HE(t);break;case 1:ti(t.type)&&A0(t);break;case 4:cw(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var i=t.type._context;Vr(K0,i._currentValue),i._currentValue=n;break;case 13:if(t.memoizedState!==null)return(r&t.child.childLanes)!==0?tA(e,t,r):(Vr(Wr,Wr.current&1),t=Ya(e,t,r),t!==null?t.sibling:null);Vr(Wr,Wr.current&1);break;case 19:if(n=(r&t.childLanes)!==0,(e.flags&64)!==0){if(n)return oA(e,t,r);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Vr(Wr,Wr.current),n)break;return null;case 23:case 24:return t.lanes=0,Ky(e,t,r)}return Ya(e,t,r)}else qi=!1;switch(t.lanes=0,t.tag){case 2:if(n=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=df(t,Dn.current),ef(t,r),i=b2(null,t,n,e,i,r),t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,ti(n)){var a=!0;A0(t)}else a=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,m2(t);var o=n.getDerivedStateFromProps;typeof o=="function"&&tm(t,n,o,e),i.updater=rg,t.stateNode=i,i._reactInternals=t,fw(t,n,e,r),t=vw(null,t,n,!0,a,r)}else t.tag=0,Kn(null,t,i,r),t=t.child;return t;case 16:i=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=o8(i),e=Vi(i,e),a){case 0:t=pw(null,t,i,e,r);break e;case 1:t=JE(null,t,i,e,r);break e;case 11:t=ZE(null,t,i,e,r);break e;case 14:t=KE(null,t,i,Vi(i.type,e),n,r);break e}throw Error(dt(306,i,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Vi(n,i),pw(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Vi(n,i),JE(e,t,n,i,r);case 3:if(eA(t),n=t.updateQueue,e===null||n===null)throw Error(dt(282));if(n=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,iM(e,t),vd(t,n,null,r),n=t.memoizedState.element,n===i)Zy(),t=Ya(e,t,r);else{if(i=t.stateNode,(a=i.hydrate)&&(Go=Js(t.stateNode.containerInfo.firstChild),qa=t,a=ma=!0),a){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i<e.length;i+=2)a=e[i],a._workInProgressVersionPrimary=e[i+1],tf.push(a);for(r=lM(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|1024,r=r.sibling}else Kn(e,t,n,r),Zy();t=t.child}return t;case 5:return HE(t),e===null&&hw(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,ow(n,i)?o=null:a!==null&&ow(n,a)&&(t.flags|=16),yM(e,t),Kn(e,t,o,r),t.child;case 6:return e===null&&hw(t),null;case 13:return tA(e,t,r);case 4:return cw(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=rm(t,null,n,r):Kn(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Vi(n,i),ZE(e,t,n,i,r);case 7:return Kn(e,t,t.pendingProps,r),t.child;case 8:return Kn(e,t,t.pendingProps.children,r),t.child;case 12:return Kn(e,t,t.pendingProps.children,r),t.child;case 10:e:{n=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value;var l=t.type._context;if(Vr(K0,l._currentValue),l._currentValue=a,o!==null)if(l=o.value,a=Ai(l,a)?0:(typeof n._calculateChangedBits=="function"?n._calculateChangedBits(l,a):1073741823)|0,a===0){if(o.children===i.children&&!ei.current){t=Ya(e,t,r);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var s=l.dependencies;if(s!==null){o=l.child;for(var c=s.firstContext;c!==null;){if(c.context===n&&(c.observedBits&a)!==0){l.tag===1&&(c=Qo(-1,r&-r),c.tag=2,Zo(l,c)),l.lanes|=r,c=l.alternate,c!==null&&(c.lanes|=r),nM(l.return,r),s.lanes|=r;break}c=c.next}}else o=l.tag===10&&l.type===t.type?null:l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}Kn(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,a=t.pendingProps,n=a.children,ef(t,r),i=Mi(i,a.unstable_observedBits),n=n(i),t.flags|=1,Kn(e,t,n,r),t.child;case 14:return i=t.type,a=Vi(i,t.pendingProps),a=Vi(i.type,a),KE(e,t,i,a,n,r);case 15:return gM(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Vi(n,i),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,ti(n)?(e=!0,A0(t)):e=!1,ef(t,r),oM(t,n,i),fw(t,n,i,r),vw(null,t,n,!0,e,r);case 19:return oA(e,t,r);case 23:return Ky(e,t,r);case 24:return Ky(e,t,r)}throw Error(dt(156,t.tag))};function a8(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Ti(e,t,r,n){return new a8(e,t,r,n)}function k2(e){return e=e.prototype,!(!e||!e.isReactComponent)}function o8(e){if(typeof e=="function")return k2(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qm)return 11;if(e===Ym)return 14}return 2}function au(e,t){var r=e.alternate;return r===null?(r=Ti(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function M0(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")k2(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Bo:return af(r.children,i,a,t);case sk:o=8,i|=16;break;case H_:o=8,i|=1;break;case Dh:return e=Ti(12,r,t,i|8),e.elementType=Dh,e.type=Dh,e.lanes=a,e;case $h:return e=Ti(13,r,t,i),e.type=$h,e.elementType=$h,e.lanes=a,e;case G0:return e=Ti(19,r,t,i),e.elementType=G0,e.lanes=a,e;case Z_:return M2(r,i,a,t);case jb:return e=Ti(24,r,t,i),e.elementType=jb,e.lanes=a,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case V_:o=10;break e;case q_:o=9;break e;case qm:o=11;break e;case Ym:o=14;break e;case Y_:o=16,n=null;break e;case X_:o=22;break e}throw Error(dt(130,e==null?e:typeof e,""))}return t=Ti(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function af(e,t,r,n){return e=Ti(7,e,n,t),e.lanes=r,e}function M2(e,t,r,n){return e=Ti(23,e,n,t),e.elementType=Z_,e.lanes=r,e}function t1(e,t,r){return e=Ti(6,e,null,t),e.lanes=r,e}function r1(e,t,r){return t=Ti(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function u8(e,t,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=r,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=By(0),this.expirationTimes=By(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=By(0),this.mutableSourceEagerHydrationData=null}function l8(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:rl,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function cm(e,t,r,n){var i=t.current,a=di(),o=Ko(i);e:if(r){r=r._reactInternals;t:{if(Ol(r)!==r||r.tag!==1)throw Error(dt(170));var l=r;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(ti(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(l!==null);throw Error(dt(171))}if(r.tag===1){var s=r.type;if(ti(s)){r=Qk(r,s,l);break e}}r=l}else r=nu;return t.context===null?t.context=r:t.pendingContext=r,t=Qo(a,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),Zo(i,t),Jo(i,o,a),o}function n1(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function vA(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function I2(e,t){vA(e,t),(e=e.alternate)&&vA(e,t)}function s8(){return null}function P2(e,t,r){var n=r!=null&&r.hydrationOptions!=null&&r.hydrationOptions.mutableSources||null;if(r=new u8(e,t,r!=null&&r.hydrate===!0),t=Ti(3,null,null,t===2?7:t===1?3:0),r.current=t,t.stateNode=r,m2(t),e[Pf]=r.current,Hk(e.nodeType===8?e.parentNode:e),n)for(e=0;e<n.length;e++){t=n[e];var i=t._getVersion;i=i(t._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[t,i]:r.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=r}P2.prototype.render=function(e){cm(e,this._internalRoot,null,null)};P2.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;cm(null,e,null,function(){t[Pf]=null})};function zd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function f8(e,t){if(t||(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,t=!(!t||t.nodeType!==1||!t.hasAttribute("data-reactroot"))),!t)for(var r;r=e.lastChild;)e.removeChild(r);return new P2(e,0,t?{hydrate:!0}:void 0)}function ag(e,t,r,n,i){var a=r._reactRootContainer;if(a){var o=a._internalRoot;if(typeof i=="function"){var l=i;i=function(){var c=n1(o);l.call(c)}}cm(t,o,e,i)}else{if(a=r._reactRootContainer=f8(r,n),o=a._internalRoot,typeof i=="function"){var s=i;i=function(){var c=n1(o);s.call(c)}}CM(function(){cm(t,o,e,i)})}return n1(o)}Ek=function(e){if(e.tag===13){var t=di();Jo(e,4,t),I2(e,4)}};r2=function(e){if(e.tag===13){var t=di();Jo(e,67108864,t),I2(e,67108864)}};Ak=function(e){if(e.tag===13){var t=di(),r=Ko(e);Jo(e,r,t),I2(e,r)}};Tk=function(e,t){return t()};Kb=function(e,t,r){switch(t){case"input":if(Wb(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=eg(n);if(!i)throw Error(dt(90));ck(n),Wb(n,i)}}}break;case"textarea":dk(e,r);break;case"select":t=r.value,t!=null&&Qs(e,!!r.multiple,t,!1)}};J_=TM;bk=function(e,t,r,n,i){var a=Jt;Jt|=4;try{return pl(98,e.bind(null,t,r,n,i))}finally{Jt=a,Jt===0&&(Nf(),wa())}};e2=function(){(Jt&49)===0&&(Q6(),pu())};wk=function(e,t){var r=Jt;Jt|=2;try{return e(t)}finally{Jt=r,Jt===0&&(Nf(),wa())}};function RM(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!zd(t))throw Error(dt(200));return l8(e,t,null,r)}var c8={Events:[Dd,Us,eg,yk,xk,pu,{current:!1}]},sh={findFiberByHostInstance:il,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},h8={bundleType:sh.bundleType,version:sh.version,rendererPackageName:sh.rendererPackageName,rendererConfig:sh.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Cl.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Sk(e),e===null?null:e.stateNode},findFiberByHostInstance:sh.findFiberByHostInstance||s8,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Nv=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nv.isDisabled&&Nv.supportsFiber)try{h2=Nv.inject(h8),sl=Nv}catch{}}Pi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=c8;Pi.createPortal=RM;Pi.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(dt(188)):Error(dt(268,Object.keys(e)));return e=Sk(t),e=e===null?null:e.stateNode,e};Pi.flushSync=function(e,t){var r=Jt;if((r&48)!==0)return e(t);Jt|=1;try{if(e)return pl(99,e.bind(null,t))}finally{Jt=r,wa()}};Pi.hydrate=function(e,t,r){if(!zd(t))throw Error(dt(200));return ag(null,e,t,!0,r)};Pi.render=function(e,t,r){if(!zd(t))throw Error(dt(200));return ag(null,e,t,!1,r)};Pi.unmountComponentAtNode=function(e){if(!zd(e))throw Error(dt(40));return e._reactRootContainer?(CM(function(){ag(null,null,e,!1,function(){e._reactRootContainer=null,e[Pf]=null})}),!0):!1};Pi.unstable_batchedUpdates=TM;Pi.unstable_createPortal=function(e,t){return RM(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};Pi.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!zd(r))throw Error(dt(200));if(e==null||e._reactInternals===void 0)throw Error(dt(38));return ag(e,t,r,!1,n)};Pi.version="17.0.2";(function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}t(),e.exports=Pi})(L_);const Ih=N_(L_.exports);var mA=Object.prototype.toString,NM=function(t){var r=mA.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&mA.call(t.callee)==="[object Function]"),n},i1,gA;function d8(){if(gA)return i1;gA=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=NM,i=Object.prototype.propertyIsEnumerable,a=!i.call({toString:null},"toString"),o=i.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=function(g){var m=g.constructor;return m&&m.prototype===g},c={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if(typeof window>"u")return!1;for(var g in window)try{if(!c["$"+g]&&t.call(window,g)&&window[g]!==null&&typeof window[g]=="object")try{s(window[g])}catch{return!0}}catch{return!0}return!1}(),y=function(g){if(typeof window>"u"||!d)return s(g);try{return s(g)}catch{return!1}};e=function(m){var E=m!==null&&typeof m=="object",M=r.call(m)==="[object Function]",b=n(m),w=E&&r.call(m)==="[object String]",_=[];if(!E&&!M&&!b)throw new TypeError("Object.keys called on a non-object");var C=o&&M;if(w&&m.length>0&&!t.call(m,0))for(var T=0;T<m.length;++T)_.push(String(T));if(b&&m.length>0)for(var R=0;R<m.length;++R)_.push(String(R));else for(var D in m)!(C&&D==="prototype")&&t.call(m,D)&&_.push(String(D));if(a)for(var Y=y(m),j=0;j<l.length;++j)!(Y&&l[j]==="constructor")&&t.call(m,l[j])&&_.push(l[j]);return _}}return i1=e,i1}var p8=Array.prototype.slice,v8=NM,yA=Object.keys,I0=yA?function(t){return yA(t)}:d8(),xA=Object.keys;I0.shim=function(){if(Object.keys){var t=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);t||(Object.keys=function(n){return v8(n)?xA(p8.call(n)):xA(n)})}else Object.keys=I0;return Object.keys||I0};var F2=I0,og=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,r);if(o.value!==i||o.enumerable!==!0)return!1}return!0},m8=og,vu=function(){return m8()&&!!Symbol.toStringTag},bA=typeof Symbol<"u"&&Symbol,g8=og,R2=function(){return typeof bA!="function"||typeof Symbol!="function"||typeof bA("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:g8()},y8="Function.prototype.bind called on incompatible ",a1=Array.prototype.slice,x8=Object.prototype.toString,b8="[object Function]",w8=function(t){var r=this;if(typeof r!="function"||x8.call(r)!==b8)throw new TypeError(y8+r);for(var n=a1.call(arguments,1),i,a=function(){if(this instanceof i){var d=r.apply(this,n.concat(a1.call(arguments)));return Object(d)===d?d:this}else return r.apply(t,n.concat(a1.call(arguments)))},o=Math.max(0,r.length-n.length),l=[],s=0;s<o;s++)l.push("$"+s);if(i=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var c=function(){};c.prototype=r.prototype,i.prototype=new c,c.prototype=null}return i},_8=w8,N2=Function.prototype.bind||_8,S8=N2,E8=S8.call(Function.call,Object.prototype.hasOwnProperty),vr,mf=SyntaxError,LM=Function,of=TypeError,o1=function(e){try{return LM('"use strict"; return ('+e+").constructor;")()}catch{}},fl=Object.getOwnPropertyDescriptor;if(fl)try{fl({},"")}catch{fl=null}var u1=function(){throw new of},A8=fl?function(){try{return arguments.callee,u1}catch{try{return fl(arguments,"callee").get}catch{return u1}}}():u1,Es=R2(),Lo=Object.getPrototypeOf||function(e){return e.__proto__},Ns={},T8=typeof Uint8Array>"u"?vr:Lo(Uint8Array),uf={"%AggregateError%":typeof AggregateError>"u"?vr:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?vr:ArrayBuffer,"%ArrayIteratorPrototype%":Es?Lo([][Symbol.iterator]()):vr,"%AsyncFromSyncIteratorPrototype%":vr,"%AsyncFunction%":Ns,"%AsyncGenerator%":Ns,"%AsyncGeneratorFunction%":Ns,"%AsyncIteratorPrototype%":Ns,"%Atomics%":typeof Atomics>"u"?vr:Atomics,"%BigInt%":typeof BigInt>"u"?vr:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?vr:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?vr:Float32Array,"%Float64Array%":typeof Float64Array>"u"?vr:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?vr:FinalizationRegistry,"%Function%":LM,"%GeneratorFunction%":Ns,"%Int8Array%":typeof Int8Array>"u"?vr:Int8Array,"%Int16Array%":typeof Int16Array>"u"?vr:Int16Array,"%Int32Array%":typeof Int32Array>"u"?vr:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Es?Lo(Lo([][Symbol.iterator]())):vr,"%JSON%":typeof JSON=="object"?JSON:vr,"%Map%":typeof Map>"u"?vr:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Es?vr:Lo(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?vr:Promise,"%Proxy%":typeof Proxy>"u"?vr:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?vr:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?vr:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Es?vr:Lo(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?vr:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Es?Lo(""[Symbol.iterator]()):vr,"%Symbol%":Es?Symbol:vr,"%SyntaxError%":mf,"%ThrowTypeError%":A8,"%TypedArray%":T8,"%TypeError%":of,"%Uint8Array%":typeof Uint8Array>"u"?vr:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?vr:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?vr:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?vr:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?vr:WeakMap,"%WeakRef%":typeof WeakRef>"u"?vr:WeakRef,"%WeakSet%":typeof WeakSet>"u"?vr:WeakSet},C8=function e(t){var r;if(t==="%AsyncFunction%")r=o1("async function () {}");else if(t==="%GeneratorFunction%")r=o1("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=o1("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&(r=Lo(i.prototype))}return uf[t]=r,r},wA={"%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"]},Ud=N2,hm=E8,O8=Ud.call(Function.call,Array.prototype.concat),k8=Ud.call(Function.apply,Array.prototype.splice),_A=Ud.call(Function.call,String.prototype.replace),dm=Ud.call(Function.call,String.prototype.slice),M8=Ud.call(Function.call,RegExp.prototype.exec),I8=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P8=/\\(\\)?/g,F8=function(t){var r=dm(t,0,1),n=dm(t,-1);if(r==="%"&&n!=="%")throw new mf("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new mf("invalid intrinsic syntax, expected opening `%`");var i=[];return _A(t,I8,function(a,o,l,s){i[i.length]=l?_A(s,P8,"$1"):o||a}),i},R8=function(t,r){var n=t,i;if(hm(wA,n)&&(i=wA[n],n="%"+i[0]+"%"),hm(uf,n)){var a=uf[n];if(a===Ns&&(a=C8(n)),typeof a>"u"&&!r)throw new of("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new mf("intrinsic "+t+" does not exist!")},mu=function(t,r){if(typeof t!="string"||t.length===0)throw new of("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new of('"allowMissing" argument must be a boolean');if(M8(/^%?[^%]*%?$/,t)===null)throw new mf("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=F8(t),i=n.length>0?n[0]:"",a=R8("%"+i+"%",r),o=a.name,l=a.value,s=!1,c=a.alias;c&&(i=c[0],k8(n,O8([0,1],c)));for(var d=1,y=!0;d<n.length;d+=1){var g=n[d],m=dm(g,0,1),E=dm(g,-1);if((m==='"'||m==="'"||m==="`"||E==='"'||E==="'"||E==="`")&&m!==E)throw new mf("property names with quotes must have matching quotes");if((g==="constructor"||!y)&&(s=!0),i+="."+g,o="%"+i+"%",hm(uf,o))l=uf[o];else if(l!=null){if(!(g in l)){if(!r)throw new of("base intrinsic for "+t+" exists, but the property is not available.");return}if(fl&&d+1>=n.length){var M=fl(l,g);y=!!M,y&&"get"in M&&!("originalValue"in M.get)?l=M.get:l=l[g]}else y=hm(l,g),l=l[g];y&&!s&&(uf[o]=l)}}return l},jd={exports:{}};(function(e){var t=N2,r=mu,n=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||t.call(i,n),o=r("%Object.getOwnPropertyDescriptor%",!0),l=r("%Object.defineProperty%",!0),s=r("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}e.exports=function(y){var g=a(t,i,arguments);if(o&&l){var m=o(g,"length");m.configurable&&l(g,"length",{value:1+s(0,y.length-(arguments.length-1))})}return g};var c=function(){return a(t,n,arguments)};l?l(e.exports,"apply",{value:c}):e.exports.apply=c})(jd);var DM=mu,$M=jd.exports,N8=$M(DM("String.prototype.indexOf")),_a=function(t,r){var n=DM(t,!!r);return typeof n=="function"&&N8(t,".prototype.")>-1?$M(n):n},L8=vu(),D8=_a,Ow=D8("Object.prototype.toString"),ug=function(t){return L8&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:Ow(t)==="[object Arguments]"},BM=function(t){return ug(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Ow(t)!=="[object Array]"&&Ow(t.callee)==="[object Function]"},$8=function(){return ug(arguments)}();ug.isLegacyArguments=BM;var zM=$8?ug:BM,B8=mu,kw=B8("%Object.defineProperty%",!0),Mw=function(){if(kw)try{return kw({},"a",{value:1}),!0}catch{return!1}return!1};Mw.hasArrayLengthDefineBug=function(){if(!Mw())return null;try{return kw([],"length",{value:1}).length!==1}catch{return!0}};var z8=Mw,U8=F2,j8=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",G8=Object.prototype.toString,W8=Array.prototype.concat,UM=Object.defineProperty,H8=function(e){return typeof e=="function"&&G8.call(e)==="[object Function]"},V8=z8(),jM=UM&&V8,q8=function(e,t,r,n){t in e&&(!H8(n)||!n())||(jM?UM(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},GM=function(e,t){var r=arguments.length>2?arguments[2]:{},n=U8(t);j8&&(n=W8.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i<n.length;i+=1)q8(e,n[i],t[n[i]],r[n[i]])};GM.supportsDescriptors=!!jM;var Ml=GM,SA=function(e){return e!==e},WM=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||SA(t)&&SA(r))},Y8=WM,HM=function(){return typeof Object.is=="function"?Object.is:Y8},X8=HM,Q8=Ml,Z8=function(){var t=X8();return Q8(Object,{is:t},{is:function(){return Object.is!==t}}),t},K8=Ml,J8=jd.exports,eL=WM,VM=HM,tL=Z8,qM=J8(VM(),Object);K8(qM,{getPolyfill:VM,implementation:eL,shim:tL});var rL=qM,Iw=_a,YM=vu(),XM,QM,Pw,Fw;if(YM){XM=Iw("Object.prototype.hasOwnProperty"),QM=Iw("RegExp.prototype.exec"),Pw={};var l1=function(){throw Pw};Fw={toString:l1,valueOf:l1},typeof Symbol.toPrimitive=="symbol"&&(Fw[Symbol.toPrimitive]=l1)}var nL=Iw("Object.prototype.toString"),iL=Object.getOwnPropertyDescriptor,aL="[object RegExp]",oL=YM?function(t){if(!t||typeof t!="object")return!1;var r=iL(t,"lastIndex"),n=r&&XM(r,"value");if(!n)return!1;try{QM(t,Fw)}catch(i){return i===Pw}}:function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:nL(t)===aL},L2={exports:{}},xd=function(){return typeof function(){}.name=="string"},Xh=Object.getOwnPropertyDescriptor;if(Xh)try{Xh([],"length")}catch{Xh=null}xd.functionsHaveConfigurableNames=function(){if(!xd()||!Xh)return!1;var t=Xh(function(){},"name");return!!t&&!!t.configurable};var uL=Function.prototype.bind;xd.boundFunctionsHaveNames=function(){return xd()&&typeof uL=="function"&&function(){}.bind().name!==""};var lL=xd;(function(e){var t=lL.functionsHaveConfigurableNames(),r=Object,n=TypeError;e.exports=function(){if(this!=null&&this!==r(this))throw new n("RegExp.prototype.flags getter called on non-object");var a="";return this.hasIndices&&(a+="d"),this.global&&(a+="g"),this.ignoreCase&&(a+="i"),this.multiline&&(a+="m"),this.dotAll&&(a+="s"),this.unicode&&(a+="u"),this.sticky&&(a+="y"),a},t&&Object.defineProperty&&Object.defineProperty(e.exports,"name",{value:"get flags"})})(L2);var sL=L2.exports,fL=Ml.supportsDescriptors,cL=Object.getOwnPropertyDescriptor,ZM=function(){if(fL&&/a/mig.flags==="gim"){var t=cL(RegExp.prototype,"flags");if(t&&typeof t.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var r="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){r+="d"}}),Object.defineProperty(n,"sticky",{get:function(){r+="y"}}),r==="dy")return t.get}}return sL},hL=Ml.supportsDescriptors,dL=ZM,pL=Object.getOwnPropertyDescriptor,vL=Object.defineProperty,mL=TypeError,EA=Object.getPrototypeOf,gL=/a/,yL=function(){if(!hL||!EA)throw new mL("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=dL(),r=EA(gL),n=pL(r,"flags");return(!n||n.get!==t)&&vL(r,"flags",{configurable:!0,enumerable:!1,get:t}),t},xL=Ml,bL=jd.exports,wL=L2.exports,KM=ZM,_L=yL,JM=bL(KM());xL(JM,{getPolyfill:KM,implementation:wL,shim:_L});var SL=JM,EL={}.toString,eI=Array.isArray||function(e){return EL.call(e)=="[object Array]"},AL=Date.prototype.getDay,TL=function(t){try{return AL.call(t),!0}catch{return!1}},CL=Object.prototype.toString,OL="[object Date]",kL=vu(),ML=function(t){return typeof t!="object"||t===null?!1:kL?TL(t):CL.call(t)===OL},IL=String.prototype.valueOf,PL=function(t){try{return IL.call(t),!0}catch{return!1}},FL=Object.prototype.toString,RL="[object String]",NL=vu(),tI=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:NL?PL(t):FL.call(t)===RL},LL=Number.prototype.toString,DL=function(t){try{return LL.call(t),!0}catch{return!1}},$L=Object.prototype.toString,BL="[object Number]",zL=vu(),UL=function(t){return typeof t=="number"?!0:typeof t!="object"?!1:zL?DL(t):$L.call(t)===BL},rI=_a,jL=rI("Boolean.prototype.toString"),GL=rI("Object.prototype.toString"),WL=function(t){try{return jL(t),!0}catch{return!1}},HL="[object Boolean]",VL=vu(),qL=function(t){return typeof t=="boolean"?!0:t===null||typeof t!="object"?!1:VL&&Symbol.toStringTag in t?WL(t):GL(t)===HL},Rw={exports:{}},YL=Object.prototype.toString,XL=R2();if(XL){var QL=Symbol.prototype.toString,ZL=/^Symbol\(.*\)$/,KL=function(t){return typeof t.valueOf()!="symbol"?!1:ZL.test(QL.call(t))};Rw.exports=function(t){if(typeof t=="symbol")return!0;if(YL.call(t)!=="[object Symbol]")return!1;try{return KL(t)}catch{return!1}}}else Rw.exports=function(t){return!1};var Nw={exports:{}},AA=typeof BigInt<"u"&&BigInt,JL=function(){return typeof AA=="function"&&typeof BigInt=="function"&&typeof AA(42)=="bigint"&&typeof BigInt(42)=="bigint"},eD=JL();if(eD){var tD=BigInt.prototype.valueOf,rD=function(t){try{return tD.call(t),!0}catch{}return!1};Nw.exports=function(t){return t===null||typeof t>"u"||typeof t=="boolean"||typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="function"?!1:typeof t=="bigint"?!0:rD(t)}}else Nw.exports=function(t){return!1};var nD=tI,iD=UL,aD=qL,oD=Rw.exports,uD=Nw.exports,lD=function(t){if(t==null||typeof t!="object"&&typeof t!="function")return null;if(nD(t))return"String";if(iD(t))return"Number";if(aD(t))return"Boolean";if(oD(t))return"Symbol";if(uD(t))return"BigInt"},D2=typeof Map=="function"&&Map.prototype?Map:null,sD=typeof Set=="function"&&Set.prototype?Set:null,pm;D2||(pm=function(t){return!1});var nI=D2?Map.prototype.has:null,TA=sD?Set.prototype.has:null;!pm&&!nI&&(pm=function(t){return!1});var iI=pm||function(t){if(!t||typeof t!="object")return!1;try{if(nI.call(t),TA)try{TA.call(t)}catch{return!0}return t instanceof D2}catch{}return!1},fD=typeof Map=="function"&&Map.prototype?Map:null,$2=typeof Set=="function"&&Set.prototype?Set:null,vm;$2||(vm=function(t){return!1});var CA=fD?Map.prototype.has:null,aI=$2?Set.prototype.has:null;!vm&&!aI&&(vm=function(t){return!1});var oI=vm||function(t){if(!t||typeof t!="object")return!1;try{if(aI.call(t),CA)try{CA.call(t)}catch{return!0}return t instanceof $2}catch{}return!1},mm=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,OA=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,gm;mm||(gm=function(t){return!1});var Lw=mm?mm.prototype.has:null,s1=OA?OA.prototype.has:null;!gm&&!Lw&&(gm=function(t){return!1});var cD=gm||function(t){if(!t||typeof t!="object")return!1;try{if(Lw.call(t,Lw),s1)try{s1.call(t,s1)}catch{return!0}return t instanceof mm}catch{}return!1},Dw={exports:{}},hD=mu,uI=_a,dD=hD("%WeakSet%",!0),f1=uI("WeakSet.prototype.has",!0);if(f1){var c1=uI("WeakMap.prototype.has",!0);Dw.exports=function(t){if(!t||typeof t!="object")return!1;try{if(f1(t,f1),c1)try{c1(t,c1)}catch{return!0}return t instanceof dD}catch{}return!1}}else Dw.exports=function(t){return!1};var pD=iI,vD=oI,mD=cD,gD=Dw.exports,yD=function(t){if(t&&typeof t=="object"){if(pD(t))return"Map";if(vD(t))return"Set";if(mD(t))return"WeakMap";if(gD(t))return"WeakSet"}return!1},P0={exports:{}},kA=zM;if(R2()||og()){var h1=Symbol.iterator;P0.exports=function(t){if(t!=null&&typeof t[h1]<"u")return t[h1]();if(kA(t))return Array.prototype[h1].call(t)}}else{var xD=eI,bD=tI,MA=mu,wD=MA("%Map%",!0),_D=MA("%Set%",!0),Hi=_a,IA=Hi("Array.prototype.push"),PA=Hi("String.prototype.charCodeAt"),SD=Hi("String.prototype.slice"),ED=function(t,r){var n=t.length;if(r+1>=n)return r+1;var i=PA(t,r);if(i<55296||i>56319)return r+1;var a=PA(t,r+1);return a<56320||a>57343?r+1:r+2},d1=function(t){var r=0;return{next:function(){var i=r>=t.length,a;return i||(a=t[r],r+=1),{done:i,value:a}}}},FA=function(t,r){if(xD(t)||kA(t))return d1(t);if(bD(t)){var n=0;return{next:function(){var a=ED(t,n),o=SD(t,n,a);return n=a,{done:a>t.length,value:o}}}}if(r&&typeof t["_es6-shim iterator_"]<"u")return t["_es6-shim iterator_"]()};if(!wD&&!_D)P0.exports=function(t){if(t!=null)return FA(t,!0)};else{var AD=iI,TD=oI,RA=Hi("Map.prototype.forEach",!0),NA=Hi("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var LA=Hi("Map.prototype.iterator",!0),DA=Hi("Set.prototype.iterator",!0),$A=function(e){var t=!1;return{next:function(){try{return{done:t,value:t?void 0:e.next()}}catch{return t=!0,{done:!0,value:void 0}}}}};var BA=Hi("Map.prototype.@@iterator",!0)||Hi("Map.prototype._es6-shim iterator_",!0),zA=Hi("Set.prototype.@@iterator",!0)||Hi("Set.prototype._es6-shim iterator_",!0),CD=function(t){if(AD(t)){if(LA)return $A(LA(t));if(BA)return BA(t);if(RA){var r=[];return RA(t,function(i,a){IA(r,[a,i])}),d1(r)}}if(TD(t)){if(DA)return $A(DA(t));if(zA)return zA(t);if(NA){var n=[];return NA(t,function(i){IA(n,i)}),d1(n)}}};P0.exports=function(t){return CD(t)||FA(t)}}}const OD={},kD=Object.freeze(Object.defineProperty({__proto__:null,default:OD},Symbol.toStringTag,{value:"Module"})),MD=El(kD);var B2=typeof Map=="function"&&Map.prototype,p1=Object.getOwnPropertyDescriptor&&B2?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ym=B2&&p1&&typeof p1.get=="function"?p1.get:null,ID=B2&&Map.prototype.forEach,z2=typeof Set=="function"&&Set.prototype,v1=Object.getOwnPropertyDescriptor&&z2?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,xm=z2&&v1&&typeof v1.get=="function"?v1.get:null,PD=z2&&Set.prototype.forEach,FD=typeof WeakMap=="function"&&WeakMap.prototype,Qh=FD?WeakMap.prototype.has:null,RD=typeof WeakSet=="function"&&WeakSet.prototype,Zh=RD?WeakSet.prototype.has:null,ND=typeof WeakRef=="function"&&WeakRef.prototype,UA=ND?WeakRef.prototype.deref:null,LD=Boolean.prototype.valueOf,DD=Object.prototype.toString,$D=Function.prototype.toString,BD=String.prototype.match,U2=String.prototype.slice,Wo=String.prototype.replace,zD=String.prototype.toUpperCase,jA=String.prototype.toLowerCase,lI=RegExp.prototype.test,GA=Array.prototype.concat,ua=Array.prototype.join,UD=Array.prototype.slice,WA=Math.floor,$w=typeof BigInt=="function"?BigInt.prototype.valueOf:null,m1=Object.getOwnPropertySymbols,Bw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,gf=typeof Symbol=="function"&&typeof Symbol.iterator=="object",$n=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===gf?"object":"symbol")?Symbol.toStringTag:null,sI=Object.prototype.propertyIsEnumerable,HA=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function VA(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||lI.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-WA(-e):WA(e);if(n!==e){var i=String(n),a=U2.call(t,i.length+1);return Wo.call(i,r,"$&_")+"."+Wo.call(Wo.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Wo.call(t,r,"$&_")}var zw=MD,qA=zw.custom,YA=cI(qA)?qA:null,jD=function e(t,r,n,i){var a=r||{};if(Do(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Do(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=Do(a,"customInspect")?a.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Do(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Do(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=a.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return dI(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var s=String(t);return l?VA(t,s):s}if(typeof t=="bigint"){var c=String(t)+"n";return l?VA(t,c):c}var d=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=d&&d>0&&typeof t=="object")return Uw(t)?"[Array]":"[Object]";var y=o$(a,n);if(typeof i>"u")i=[];else if(hI(i,t)>=0)return"[Circular]";function g(Re,Le,ut){if(Le&&(i=UD.call(i),i.push(Le)),ut){var nt={depth:a.depth};return Do(a,"quoteStyle")&&(nt.quoteStyle=a.quoteStyle),e(Re,nt,n+1,i)}return e(Re,a,n+1,i)}if(typeof t=="function"&&!XA(t)){var m=ZD(t),E=Lv(t,g);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(E.length>0?" { "+ua.call(E,", ")+" }":"")}if(cI(t)){var M=gf?Wo.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Bw.call(t);return typeof t=="object"&&!gf?fh(M):M}if(n$(t)){for(var b="<"+jA.call(String(t.nodeName)),w=t.attributes||[],_=0;_<w.length;_++)b+=" "+w[_].name+"="+fI(GD(w[_].value),"double",a);return b+=">",t.childNodes&&t.childNodes.length&&(b+="..."),b+="</"+jA.call(String(t.nodeName))+">",b}if(Uw(t)){if(t.length===0)return"[]";var C=Lv(t,g);return y&&!a$(C)?"["+jw(C,y)+"]":"[ "+ua.call(C,", ")+" ]"}if(HD(t)){var T=Lv(t,g);return!("cause"in Error.prototype)&&"cause"in t&&!sI.call(t,"cause")?"{ ["+String(t)+"] "+ua.call(GA.call("[cause]: "+g(t.cause),T),", ")+" }":T.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+ua.call(T,", ")+" }"}if(typeof t=="object"&&o){if(YA&&typeof t[YA]=="function"&&zw)return zw(t,{depth:d-n});if(o!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(KD(t)){var R=[];return ID.call(t,function(Re,Le){R.push(g(Le,t,!0)+" => "+g(Re,t))}),QA("Map",ym.call(t),R,y)}if(t$(t)){var D=[];return PD.call(t,function(Re){D.push(g(Re,t))}),QA("Set",xm.call(t),D,y)}if(JD(t))return g1("WeakMap");if(r$(t))return g1("WeakSet");if(e$(t))return g1("WeakRef");if(qD(t))return fh(g(Number(t)));if(XD(t))return fh(g($w.call(t)));if(YD(t))return fh(LD.call(t));if(VD(t))return fh(g(String(t)));if(!WD(t)&&!XA(t)){var Y=Lv(t,g),j=HA?HA(t)===Object.prototype:t instanceof Object||t.constructor===Object,re=t instanceof Object?"":"null prototype",Se=!j&&$n&&Object(t)===t&&$n in t?U2.call(gu(t),8,-1):re?"Object":"",me=j||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",ke=me+(Se||re?"["+ua.call(GA.call([],Se||[],re||[]),": ")+"] ":"");return Y.length===0?ke+"{}":y?ke+"{"+jw(Y,y)+"}":ke+"{ "+ua.call(Y,", ")+" }"}return String(t)};function fI(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function GD(e){return Wo.call(String(e),/"/g,""")}function Uw(e){return gu(e)==="[object Array]"&&(!$n||!(typeof e=="object"&&$n in e))}function WD(e){return gu(e)==="[object Date]"&&(!$n||!(typeof e=="object"&&$n in e))}function XA(e){return gu(e)==="[object RegExp]"&&(!$n||!(typeof e=="object"&&$n in e))}function HD(e){return gu(e)==="[object Error]"&&(!$n||!(typeof e=="object"&&$n in e))}function VD(e){return gu(e)==="[object String]"&&(!$n||!(typeof e=="object"&&$n in e))}function qD(e){return gu(e)==="[object Number]"&&(!$n||!(typeof e=="object"&&$n in e))}function YD(e){return gu(e)==="[object Boolean]"&&(!$n||!(typeof e=="object"&&$n in e))}function cI(e){if(gf)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Bw)return!1;try{return Bw.call(e),!0}catch{}return!1}function XD(e){if(!e||typeof e!="object"||!$w)return!1;try{return $w.call(e),!0}catch{}return!1}var QD=Object.prototype.hasOwnProperty||function(e){return e in this};function Do(e,t){return QD.call(e,t)}function gu(e){return DD.call(e)}function ZD(e){if(e.name)return e.name;var t=BD.call($D.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function hI(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function KD(e){if(!ym||!e||typeof e!="object")return!1;try{ym.call(e);try{xm.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function JD(e){if(!Qh||!e||typeof e!="object")return!1;try{Qh.call(e,Qh);try{Zh.call(e,Zh)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function e$(e){if(!UA||!e||typeof e!="object")return!1;try{return UA.call(e),!0}catch{}return!1}function t$(e){if(!xm||!e||typeof e!="object")return!1;try{xm.call(e);try{ym.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function r$(e){if(!Zh||!e||typeof e!="object")return!1;try{Zh.call(e,Zh);try{Qh.call(e,Qh)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function n$(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function dI(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return dI(U2.call(e,0,t.maxStringLength),t)+n}var i=Wo.call(Wo.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,i$);return fI(i,"single",t)}function i$(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+zD.call(t.toString(16))}function fh(e){return"Object("+e+")"}function g1(e){return e+" { ? }"}function QA(e,t,r,n){var i=n?jw(r,n):ua.call(r,", ");return e+" ("+t+") {"+i+"}"}function a$(e){for(var t=0;t<e.length;t++)if(hI(e[t],`
|
|
35
|
-
`)>=0)return!1;return!0}function o$(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=ua.call(Array(e.indent+1)," ");else return null;return{base:r,prev:ua.call(Array(t+1),r)}}function jw(e,t){if(e.length===0)return"";var r=`
|
|
36
|
-
`+t.prev+t.base;return r+ua.call(e,","+r)+`
|
|
37
|
-
`+t.prev}function Lv(e,t){var r=Uw(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=Do(e,i)?t(e[i],e):""}var a=typeof m1=="function"?m1(e):[],o;if(gf){o={};for(var l=0;l<a.length;l++)o["$"+a[l]]=a[l]}for(var s in e)!Do(e,s)||r&&String(Number(s))===s&&s<e.length||gf&&o["$"+s]instanceof Symbol||(lI.call(/[^\w$]/,s)?n.push(t(s,e)+": "+t(e[s],e)):n.push(s+": "+t(e[s],e)));if(typeof m1=="function")for(var c=0;c<a.length;c++)sI.call(e,a[c])&&n.push("["+t(a[c])+"]: "+t(e[a[c]],e));return n}var j2=mu,Lf=_a,u$=jD,l$=j2("%TypeError%"),Dv=j2("%WeakMap%",!0),$v=j2("%Map%",!0),s$=Lf("WeakMap.prototype.get",!0),f$=Lf("WeakMap.prototype.set",!0),c$=Lf("WeakMap.prototype.has",!0),h$=Lf("Map.prototype.get",!0),d$=Lf("Map.prototype.set",!0),p$=Lf("Map.prototype.has",!0),G2=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},v$=function(e,t){var r=G2(e,t);return r&&r.value},m$=function(e,t,r){var n=G2(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},g$=function(e,t){return!!G2(e,t)},y$=function(){var t,r,n,i={assert:function(a){if(!i.has(a))throw new l$("Side channel does not contain "+u$(a))},get:function(a){if(Dv&&a&&(typeof a=="object"||typeof a=="function")){if(t)return s$(t,a)}else if($v){if(r)return h$(r,a)}else if(n)return v$(n,a)},has:function(a){if(Dv&&a&&(typeof a=="object"||typeof a=="function")){if(t)return c$(t,a)}else if($v){if(r)return p$(r,a)}else if(n)return g$(n,a);return!1},set:function(a,o){Dv&&a&&(typeof a=="object"||typeof a=="function")?(t||(t=new Dv),f$(t,a,o)):$v?(r||(r=new $v),d$(r,a,o)):(n||(n={key:{},next:null}),m$(n,a,o))}};return i},x$=Object.prototype.hasOwnProperty,b$=Object.prototype.toString,pI=function(t,r,n){if(b$.call(r)!=="[object Function]")throw new TypeError("iterator must be a function");var i=t.length;if(i===+i)for(var a=0;a<i;a++)r.call(n,t[a],a,t);else for(var o in t)x$.call(t,o)&&r.call(n,t[o],o,t)},y1=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],w$=typeof globalThis>"u"?Ar:globalThis,vI=function(){for(var t=[],r=0;r<y1.length;r++)typeof w$[y1[r]]=="function"&&(t[t.length]=y1[r]);return t},x1={exports:{}},b1,ZA;function _$(){if(ZA)return b1;ZA=1;var e=mu,t=e("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch{t=null}return b1=t,b1}var KA;function mI(){return KA||(KA=1,function(e){e.exports=_$()}(x1)),x1.exports}var w1,JA;function S$(){if(JA)return w1;JA=1;var e=pI,t=vI,r=_a,n=r("Object.prototype.toString"),i=vu(),a=typeof globalThis>"u"?Ar:globalThis,o=t(),l=r("Array.prototype.indexOf",!0)||function(E,M){for(var b=0;b<E.length;b+=1)if(E[b]===M)return b;return-1},s=r("String.prototype.slice"),c={},d=mI(),y=Object.getPrototypeOf;i&&d&&y&&e(o,function(m){var E=new a[m];if(Symbol.toStringTag in E){var M=y(E),b=d(M,Symbol.toStringTag);if(!b){var w=y(M);b=d(w,Symbol.toStringTag)}c[m]=b.get}});var g=function(E){var M=!1;return e(c,function(b,w){if(!M)try{M=b.call(E)===w}catch{}}),M};return w1=function(E){if(!E||typeof E!="object")return!1;if(!i||!(Symbol.toStringTag in E)){var M=s(n(E),8,-1);return l(o,M)>-1}return d?g(E):!1},w1}var gI=pI,E$=vI,yI=_a,A$=yI("Object.prototype.toString"),xI=vu(),e3=typeof globalThis>"u"?Ar:globalThis,T$=E$(),C$=yI("String.prototype.slice"),bI={},_1=mI(),S1=Object.getPrototypeOf;xI&&_1&&S1&&gI(T$,function(e){if(typeof e3[e]=="function"){var t=new e3[e];if(Symbol.toStringTag in t){var r=S1(t),n=_1(r,Symbol.toStringTag);if(!n){var i=S1(r);n=_1(i,Symbol.toStringTag)}bI[e]=n.get}}});var O$=function(t){var r=!1;return gI(bI,function(n,i){if(!r)try{var a=n.call(t);a===i&&(r=a)}catch{}}),r},k$=S$(),M$=function(t){return k$(t)?!xI||!(Symbol.toStringTag in t)?C$(A$(t),8,-1):O$(t):!1},I$=F2,wI=og(),_I=_a,t3=Object,P$=_I("Array.prototype.push"),r3=_I("Object.prototype.propertyIsEnumerable"),F$=wI?Object.getOwnPropertySymbols:null,SI=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=t3(t);if(arguments.length===1)return n;for(var i=1;i<arguments.length;++i){var a=t3(arguments[i]),o=I$(a),l=wI&&(Object.getOwnPropertySymbols||F$);if(l)for(var s=l(a),c=0;c<s.length;++c){var d=s[c];r3(a,d)&&P$(o,d)}for(var y=0;y<o.length;++y){var g=o[y];if(r3(a,g)){var m=a[g];n[g]=m}}}return n},E1=SI,R$=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n<t.length;++n)r[t[n]]=t[n];var i=Object.assign({},r),a="";for(var o in i)a+=o;return e!==a},N$=function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch{return e[1]==="y"}return!1},EI=function(){return!Object.assign||R$()||N$()?E1:Object.assign},L$=Ml,D$=EI,$$=function(){var t=D$();return L$(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t},B$=Ml,z$=jd.exports,U$=SI,AI=EI,j$=$$,G$=z$.apply(AI()),TI=function(t,r){return G$(Object,arguments)};B$(TI,{getPolyfill:AI,implementation:U$,shim:j$});var W$=TI,n3=F2,i3=zM,a3=rL,o3=oL,u3=SL,l3=eI,s3=ML,f3=lD,H$=mu,no=_a,c3=yD,yf=P0.exports,V$=y$,h3=M$,CI=W$,d3=no("Date.prototype.getTime"),A1=Object.getPrototypeOf,p3=no("Object.prototype.toString"),bm=H$("%Set%",!0),Gw=no("Map.prototype.has",!0),wm=no("Map.prototype.get",!0),v3=no("Map.prototype.size",!0),_m=no("Set.prototype.add",!0),OI=no("Set.prototype.delete",!0),Sm=no("Set.prototype.has",!0),F0=no("Set.prototype.size",!0);function m3(e,t,r,n){for(var i=yf(e),a;(a=i.next())&&!a.done;)if(Ka(t,a.value,r,n))return OI(e,a.value),!0;return!1}function kI(e){if(typeof e>"u")return null;if(typeof e!="object")return typeof e=="symbol"?!1:typeof e=="string"||typeof e=="number"?+e==+e:!0}function q$(e,t,r,n,i,a){var o=kI(r);if(o!=null)return o;var l=wm(t,o),s=CI({},i,{strict:!1});return typeof l>"u"&&!Gw(t,o)||!Ka(n,l,s,a)?!1:!Gw(e,o)&&Ka(n,l,s,a)}function Y$(e,t,r){var n=kI(r);return n??(Sm(t,n)&&!Sm(e,n))}function g3(e,t,r,n,i,a){for(var o=yf(e),l,s;(l=o.next())&&!l.done;)if(s=l.value,Ka(r,s,i,a)&&Ka(n,wm(t,s),i,a))return OI(e,s),!0;return!1}function Ka(e,t,r,n){var i=r||{};if(i.strict?a3(e,t):e===t)return!0;var a=f3(e),o=f3(t);if(a!==o)return!1;if(!e||!t||typeof e!="object"&&typeof t!="object")return i.strict?a3(e,t):e==t;var l=n.has(e),s=n.has(t),c;if(l&&s){if(n.get(e)===n.get(t))return!0}else c={};return l||n.set(e,c),s||n.set(t,c),Z$(e,t,i,n)}function y3(e){return!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function X$(e,t,r,n){if(F0(e)!==F0(t))return!1;for(var i=yf(e),a=yf(t),o,l,s;(o=i.next())&&!o.done;)if(o.value&&typeof o.value=="object")s||(s=new bm),_m(s,o.value);else if(!Sm(t,o.value)){if(r.strict||!Y$(e,t,o.value))return!1;s||(s=new bm),_m(s,o.value)}if(s){for(;(l=a.next())&&!l.done;)if(l.value&&typeof l.value=="object"){if(!m3(s,l.value,r.strict,n))return!1}else if(!r.strict&&!Sm(e,l.value)&&!m3(s,l.value,r.strict,n))return!1;return F0(s)===0}return!0}function Q$(e,t,r,n){if(v3(e)!==v3(t))return!1;for(var i=yf(e),a=yf(t),o,l,s,c,d,y;(o=i.next())&&!o.done;)if(c=o.value[0],d=o.value[1],c&&typeof c=="object")s||(s=new bm),_m(s,c);else if(y=wm(t,c),typeof y>"u"&&!Gw(t,c)||!Ka(d,y,r,n)){if(r.strict||!q$(e,t,c,d,r,n))return!1;s||(s=new bm),_m(s,c)}if(s){for(;(l=a.next())&&!l.done;)if(c=l.value[0],y=l.value[1],c&&typeof c=="object"){if(!g3(s,e,c,y,r,n))return!1}else if(!r.strict&&(!e.has(c)||!Ka(wm(e,c),y,r,n))&&!g3(s,e,c,y,CI({},r,{strict:!1}),n))return!1;return F0(s)===0}return!0}function Z$(e,t,r,n){var i,a;if(typeof e!=typeof t||e==null||t==null||p3(e)!==p3(t)||i3(e)!==i3(t))return!1;var o=l3(e),l=l3(t);if(o!==l)return!1;var s=e instanceof Error,c=t instanceof Error;if(s!==c||(s||c)&&(e.name!==t.name||e.message!==t.message))return!1;var d=o3(e),y=o3(t);if(d!==y||(d||y)&&(e.source!==t.source||u3(e)!==u3(t)))return!1;var g=s3(e),m=s3(t);if(g!==m||(g||m)&&d3(e)!==d3(t)||r.strict&&A1&&A1(e)!==A1(t)||h3(e)!==h3(t))return!1;var E=y3(e),M=y3(t);if(E!==M)return!1;if(E||M){if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}if(typeof e!=typeof t)return!1;var b=n3(e),w=n3(t);if(b.length!==w.length)return!1;for(b.sort(),w.sort(),i=b.length-1;i>=0;i--)if(b[i]!=w[i])return!1;for(i=b.length-1;i>=0;i--)if(a=b[i],!Ka(e[a],t[a],r,n))return!1;var _=c3(e),C=c3(t);return _!==C?!1:_==="Set"||C==="Set"?X$(e,t,r,n):_==="Map"?Q$(e,t,r,n):!0}var Gte=function(t,r,n){return Ka(t,r,n,V$())},x3=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function K$(e,t){return!!(e===t||x3(e)&&x3(t))}function J$(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!K$(e[r],t[r]))return!1;return!0}function en(e,t){t===void 0&&(t=J$);var r,n=[],i,a=!1;function o(){for(var l=[],s=0;s<arguments.length;s++)l[s]=arguments[s];return a&&r===this&&t(l,n)||(i=e.apply(this,l),a=!0,r=this,n=l),i}return o}var cr={exports:{}},eB="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",tB=eB,rB=tB;function MI(){}function II(){}II.resetWarningCache=MI;var nB=function(){function e(n,i,a,o,l,s){if(s!==rB){var c=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 c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:II,resetWarningCache:MI};return r.PropTypes=r,r};cr.exports=nB();function W2(e,t,...r){if(!e)throw new TypeError(PI(t,r))}function PI(e,t){let r=0;return e.replace(/%[os]/gu,()=>FI(t[r++]))}function FI(e){return typeof e!="object"||e===null?String(e):Object.prototype.toString.call(e)}let iB;function aB(e){try{const t=e instanceof Error?e:new Error(FI(e));if(typeof dispatchEvent=="function"&&typeof ErrorEvent=="function")dispatchEvent(new ErrorEvent("error",{error:t,message:t.message}));else if(typeof process<"u"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)}catch{}}const Xi=typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:typeof globalThis<"u"?globalThis:void 0;let oB;class io{constructor(t,r){this.code=t,this.message=r}warn(...t){var r;try{const n=((r=new Error().stack)!==null&&r!==void 0?r:"").replace(/^(?:.+?\n){2}/gu,`
|
|
38
|
-
`);console.warn(this.message,...t,n)}catch{}}}const uB=new io("W01","Unable to initialize event under dispatching."),lB=new io("W02","Assigning any falsy value to 'cancelBubble' property has no effect."),sB=new io("W03","Assigning any truthy value to 'returnValue' property has no effect."),fB=new io("W04","Unable to preventDefault on non-cancelable events."),cB=new io("W05","Unable to preventDefault inside passive event listener invocation."),hB=new io("W06","An event listener wasn't added because it has been added already: %o, %o"),T1=new io("W07","The %o option value was abandoned because the event listener wasn't added as duplicated."),b3=new io("W08","The 'callback' argument must be a function or an object that has 'handleEvent' method: %o");new io("W09","Event attribute handler must be a function: %o");class ao{static get NONE(){return w3}static get CAPTURING_PHASE(){return _3}static get AT_TARGET(){return S3}static get BUBBLING_PHASE(){return E3}constructor(t,r){Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});const n=r??{};Ww.set(this,{type:String(t),bubbles:Boolean(n.bubbles),cancelable:Boolean(n.cancelable),composed:Boolean(n.composed),target:null,currentTarget:null,stopPropagationFlag:!1,stopImmediatePropagationFlag:!1,canceledFlag:!1,inPassiveListenerFlag:!1,dispatchFlag:!1,timeStamp:Date.now()})}get type(){return Jr(this).type}get target(){return Jr(this).target}get srcElement(){return Jr(this).target}get currentTarget(){return Jr(this).currentTarget}composedPath(){const t=Jr(this).currentTarget;return t?[t]:[]}get NONE(){return w3}get CAPTURING_PHASE(){return _3}get AT_TARGET(){return S3}get BUBBLING_PHASE(){return E3}get eventPhase(){return Jr(this).dispatchFlag?2:0}stopPropagation(){Jr(this).stopPropagationFlag=!0}get cancelBubble(){return Jr(this).stopPropagationFlag}set cancelBubble(t){t?Jr(this).stopPropagationFlag=!0:lB.warn()}stopImmediatePropagation(){const t=Jr(this);t.stopPropagationFlag=t.stopImmediatePropagationFlag=!0}get bubbles(){return Jr(this).bubbles}get cancelable(){return Jr(this).cancelable}get returnValue(){return!Jr(this).canceledFlag}set returnValue(t){t?sB.warn():A3(Jr(this))}preventDefault(){A3(Jr(this))}get defaultPrevented(){return Jr(this).canceledFlag}get composed(){return Jr(this).composed}get isTrusted(){return!1}get timeStamp(){return Jr(this).timeStamp}initEvent(t,r=!1,n=!1){const i=Jr(this);if(i.dispatchFlag){uB.warn();return}Ww.set(this,{...i,type:String(t),bubbles:Boolean(r),cancelable:Boolean(n),target:null,currentTarget:null,stopPropagationFlag:!1,stopImmediatePropagationFlag:!1,canceledFlag:!1})}}const w3=0,_3=1,S3=2,E3=3,Ww=new WeakMap;function Jr(e,t="this"){const r=Ww.get(e);return W2(r!=null,"'%s' must be an object that Event constructor created, but got another one: %o",t,e),r}function A3(e){if(e.inPassiveListenerFlag){cB.warn();return}if(!e.cancelable){fB.warn();return}e.canceledFlag=!0}Object.defineProperty(ao,"NONE",{enumerable:!0});Object.defineProperty(ao,"CAPTURING_PHASE",{enumerable:!0});Object.defineProperty(ao,"AT_TARGET",{enumerable:!0});Object.defineProperty(ao,"BUBBLING_PHASE",{enumerable:!0});const C1=Object.getOwnPropertyNames(ao.prototype);for(let e=0;e<C1.length;++e)C1[e]!=="constructor"&&Object.defineProperty(ao.prototype,C1[e],{enumerable:!0});typeof Xi<"u"&&typeof Xi.Event<"u"&&Object.setPrototypeOf(ao.prototype,Xi.Event.prototype);function dB(e){return Xi.DOMException?new Xi.DOMException(e,"InvalidStateError"):(As==null&&(As=class RI extends Error{constructor(r){super(r),Error.captureStackTrace&&Error.captureStackTrace(this,RI)}get code(){return 11}get name(){return"InvalidStateError"}},Object.defineProperties(As.prototype,{code:{enumerable:!0},name:{enumerable:!0}}),C3(As),C3(As.prototype)),new As(e))}let As;const T3={INDEX_SIZE_ERR:1,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,INVALID_CHARACTER_ERR:5,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:11,SYNTAX_ERR:12,INVALID_MODIFICATION_ERR:13,NAMESPACE_ERR:14,INVALID_ACCESS_ERR:15,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:17,SECURITY_ERR:18,NETWORK_ERR:19,ABORT_ERR:20,URL_MISMATCH_ERR:21,QUOTA_EXCEEDED_ERR:22,TIMEOUT_ERR:23,INVALID_NODE_TYPE_ERR:24,DATA_CLONE_ERR:25};function C3(e){const t=Object.keys(T3);for(let r=0;r<t.length;++r){const n=t[r],i=T3[n];Object.defineProperty(e,n,{get(){return i},configurable:!0,enumerable:!0})}}class lg extends ao{static wrap(t){return new(LI(t))(t)}constructor(t){super(t.type,{bubbles:t.bubbles,cancelable:t.cancelable,composed:t.composed}),t.cancelBubble&&super.stopPropagation(),t.defaultPrevented&&super.preventDefault(),NI.set(this,{original:t});const r=Object.keys(t);for(let n=0;n<r.length;++n){const i=r[n];i in this||Object.defineProperty(this,i,DI(t,i))}}stopPropagation(){super.stopPropagation();const{original:t}=$o(this);"stopPropagation"in t&&t.stopPropagation()}get cancelBubble(){return super.cancelBubble}set cancelBubble(t){super.cancelBubble=t;const{original:r}=$o(this);"cancelBubble"in r&&(r.cancelBubble=t)}stopImmediatePropagation(){super.stopImmediatePropagation();const{original:t}=$o(this);"stopImmediatePropagation"in t&&t.stopImmediatePropagation()}get returnValue(){return super.returnValue}set returnValue(t){super.returnValue=t;const{original:r}=$o(this);"returnValue"in r&&(r.returnValue=t)}preventDefault(){super.preventDefault();const{original:t}=$o(this);"preventDefault"in t&&t.preventDefault()}get timeStamp(){const{original:t}=$o(this);return"timeStamp"in t?t.timeStamp:super.timeStamp}}const NI=new WeakMap;function $o(e){const t=NI.get(e);return W2(t!=null,"'this' is expected an Event object, but got",e),t}const Em=new WeakMap;Em.set(Object.prototype,lg);typeof Xi<"u"&&typeof Xi.Event<"u"&&Em.set(Xi.Event.prototype,lg);function LI(e){const t=Object.getPrototypeOf(e);if(t==null)return lg;let r=Em.get(t);return r==null&&(r=pB(LI(t),t),Em.set(t,r)),r}function pB(e,t){class r extends e{}const n=Object.keys(t);for(let i=0;i<n.length;++i)Object.defineProperty(r.prototype,n[i],DI(t,n[i]));return r}function DI(e,t){const r=Object.getOwnPropertyDescriptor(e,t);return{get(){const n=$o(this).original,i=n[t];return typeof i=="function"?i.bind(n):i},set(n){const i=$o(this).original;i[t]=n},configurable:r.configurable,enumerable:r.enumerable}}function vB(e,t,r,n,i,a){return{callback:e,flags:(t?1:0)|(r?2:0)|(n?4:0),signal:i,signalListener:a}}function mB(e){e.flags|=8}function $I(e){return(e.flags&1)===1}function BI(e){return(e.flags&2)===2}function zI(e){return(e.flags&4)===4}function gB(e){return(e.flags&8)===8}function yB({callback:e},t,r){try{typeof e=="function"?e.call(t,r):typeof e.handleEvent=="function"&&e.handleEvent(r)}catch(n){aB(n)}}function UI({listeners:e},t,r){for(let n=0;n<e.length;++n)if(e[n].callback===t&&$I(e[n])===r)return n;return-1}function xB(e,t,r,n,i,a){let o;a&&(o=jI.bind(null,e,t,r),a.addEventListener("abort",o));const l=vB(t,r,n,i,a,o);return e.cow?(e.cow=!1,e.listeners=[...e.listeners,l]):e.listeners.push(l),l}function jI(e,t,r){const n=UI(e,t,r);return n!==-1?GI(e,n):!1}function GI(e,t,r=!1){const n=e.listeners[t];return mB(n),n.signal&&n.signal.removeEventListener("abort",n.signalListener),e.cow&&!r?(e.cow=!1,e.listeners=e.listeners.filter((i,a)=>a!==t),!1):(e.listeners.splice(t,1),!0)}function bB(){return Object.create(null)}function wB(e,t){var r;return(r=e[t])!==null&&r!==void 0?r:e[t]={attrCallback:void 0,attrListener:void 0,cow:!1,listeners:[]}}class H2{constructor(){WI.set(this,bB())}addEventListener(t,r,n){const i=O1(this),{callback:a,capture:o,once:l,passive:s,signal:c,type:d}=_B(t,r,n);if(a==null||c?.aborted)return;const y=wB(i,d),g=UI(y,a,o);if(g!==-1){EB(y.listeners[g],s,l,c);return}xB(y,a,o,s,l,c)}removeEventListener(t,r,n){const i=O1(this),{callback:a,capture:o,type:l}=SB(t,r,n),s=i[l];a!=null&&s&&jI(s,a,o)}dispatchEvent(t){const r=O1(this)[String(t.type)];if(r==null)return!0;const n=t instanceof ao?t:lg.wrap(t),i=Jr(n,"event");if(i.dispatchFlag)throw dB("This event has been in dispatching.");if(i.dispatchFlag=!0,i.target=i.currentTarget=this,!i.stopPropagationFlag){const{cow:a,listeners:o}=r;r.cow=!0;for(let l=0;l<o.length;++l){const s=o[l];if(!gB(s)&&(zI(s)&&GI(r,l,!a)&&(l-=1),i.inPassiveListenerFlag=BI(s),yB(s,this,n),i.inPassiveListenerFlag=!1,i.stopImmediatePropagationFlag))break}a||(r.cow=!1)}return i.target=null,i.currentTarget=null,i.stopImmediatePropagationFlag=!1,i.stopPropagationFlag=!1,i.dispatchFlag=!1,!i.canceledFlag}}const WI=new WeakMap;function O1(e,t="this"){const r=WI.get(e);return W2(r!=null,"'%s' must be an object that EventTarget constructor created, but got another one: %o",t,e),r}function _B(e,t,r){var n;return HI(t),typeof r=="object"&&r!==null?{type:String(e),callback:t??void 0,capture:Boolean(r.capture),passive:Boolean(r.passive),once:Boolean(r.once),signal:(n=r.signal)!==null&&n!==void 0?n:void 0}:{type:String(e),callback:t??void 0,capture:Boolean(r),passive:!1,once:!1,signal:void 0}}function SB(e,t,r){return HI(t),typeof r=="object"&&r!==null?{type:String(e),callback:t??void 0,capture:Boolean(r.capture)}:{type:String(e),callback:t??void 0,capture:Boolean(r)}}function HI(e){if(!(typeof e=="function"||typeof e=="object"&&e!==null&&typeof e.handleEvent=="function")){if(e==null||typeof e=="object"){b3.warn(e);return}throw new TypeError(PI(b3.message,[e]))}}function EB(e,t,r,n){hB.warn($I(e)?"capture":"bubble",e.callback),BI(e)!==t&&T1.warn("passive"),zI(e)!==r&&T1.warn("once"),e.signal!==n&&T1.warn("signal")}const k1=Object.getOwnPropertyNames(H2.prototype);for(let e=0;e<k1.length;++e)k1[e]!=="constructor"&&Object.defineProperty(H2.prototype,k1[e],{enumerable:!0});typeof Xi<"u"&&typeof Xi.EventTarget<"u"&&Object.setPrototypeOf(H2.prototype,Xi.EventTarget.prototype);var AB={exports:{}};/*! Native Promise Only
|
|
39
|
-
v0.8.1 (c) Kyle Simpson
|
|
40
|
-
MIT License: http://getify.mit-license.org
|
|
41
|
-
*/(function(e){(function(r,n,i){n[r]=n[r]||i(),e.exports&&(e.exports=n[r])})("Promise",typeof Ar<"u"?Ar:Ar,function(){var r,n,i,a=Object.prototype.toString,o=typeof setImmediate<"u"?function(C){return setImmediate(C)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(C,T,R,D){return Object.defineProperty(C,T,{value:R,writable:!0,configurable:D!==!1})}}catch{r=function(T,R,D){return T[R]=D,T}}i=function(){var C,T,R;function D(Y,j){this.fn=Y,this.self=j,this.next=void 0}return{add:function(j,re){R=new D(j,re),T?T.next=R:C=R,T=R,R=void 0},drain:function(){var j=C;for(C=T=n=void 0;j;)j.fn.call(j.self),j=j.next}}}();function l(_,C){i.add(_,C),n||(n=o(i.drain))}function s(_){var C,T=typeof _;return _!=null&&(T=="object"||T=="function")&&(C=_.then),typeof C=="function"?C:!1}function c(){for(var _=0;_<this.chain.length;_++)d(this,this.state===1?this.chain[_].success:this.chain[_].failure,this.chain[_]);this.chain.length=0}function d(_,C,T){var R,D;try{C===!1?T.reject(_.msg):(C===!0?R=_.msg:R=C.call(void 0,_.msg),R===T.promise?T.reject(TypeError("Promise-chain cycle")):(D=s(R))?D.call(R,T.resolve,T.reject):T.resolve(R))}catch(Y){T.reject(Y)}}function y(_){var C,T=this;if(!T.triggered){T.triggered=!0,T.def&&(T=T.def);try{(C=s(_))?l(function(){var R=new E(T);try{C.call(_,function(){y.apply(R,arguments)},function(){g.apply(R,arguments)})}catch(D){g.call(R,D)}}):(T.msg=_,T.state=1,T.chain.length>0&&l(c,T))}catch(R){g.call(new E(T),R)}}}function g(_){var C=this;C.triggered||(C.triggered=!0,C.def&&(C=C.def),C.msg=_,C.state=2,C.chain.length>0&&l(c,C))}function m(_,C,T,R){for(var D=0;D<C.length;D++)(function(j){_.resolve(C[j]).then(function(Se){T(j,Se)},R)})(D)}function E(_){this.def=_,this.triggered=!1}function M(_){this.promise=_,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function b(_){if(typeof _!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var C=new M(this);this.then=function(R,D){var Y={success:typeof R=="function"?R:!0,failure:typeof D=="function"?D:!1};return Y.promise=new this.constructor(function(re,Se){if(typeof re!="function"||typeof Se!="function")throw TypeError("Not a function");Y.resolve=re,Y.reject=Se}),C.chain.push(Y),C.state!==0&&l(c,C),Y.promise},this.catch=function(R){return this.then(void 0,R)};try{_.call(void 0,function(R){y.call(C,R)},function(R){g.call(C,R)})}catch(T){g.call(C,T)}}var w=r({},"constructor",b,!1);return b.prototype=w,r(w,"__NPO__",0,!1),r(b,"resolve",function(C){var T=this;return C&&typeof C=="object"&&C.__NPO__===1?C:new T(function(D,Y){if(typeof D!="function"||typeof Y!="function")throw TypeError("Not a function");D(C)})}),r(b,"reject",function(C){return new this(function(R,D){if(typeof R!="function"||typeof D!="function")throw TypeError("Not a function");D(C)})}),r(b,"all",function(C){var T=this;return a.call(C)!="[object Array]"?T.reject(TypeError("Not an array")):C.length===0?T.resolve([]):new T(function(D,Y){if(typeof D!="function"||typeof Y!="function")throw TypeError("Not a function");var j=C.length,re=Array(j),Se=0;m(T,C,function(ke,Re){re[ke]=Re,++Se===j&&D(re)},Y)})}),r(b,"race",function(C){var T=this;return a.call(C)!="[object Array]"?T.reject(TypeError("Not an array")):new T(function(D,Y){if(typeof D!="function"||typeof Y!="function")throw TypeError("Not a function");m(T,C,function(re,Se){D(Se)},Y)})}),b})})(AB);var TB={exports:{}};(function(e){(function(){var t={version:"3.8.0"},r=[].slice,n=function(u){return r.call(u)},i=self.document;function a(u){return u&&(u.ownerDocument||u.document||u).documentElement}function o(u){return u&&(u.ownerDocument&&u.ownerDocument.defaultView||u.document&&u||u.defaultView)}if(i)try{n(i.documentElement.childNodes)[0].nodeType}catch{n=function(f){for(var h=f.length,p=new Array(h);h--;)p[h]=f[h];return p}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement("DIV").style.setProperty("opacity",0,"")}catch{var l=this.Element.prototype,s=l.setAttribute,c=l.setAttributeNS,d=this.CSSStyleDeclaration.prototype,y=d.setProperty;l.setAttribute=function(f,h){s.call(this,f,h+"")},l.setAttributeNS=function(f,h,p){c.call(this,f,h,p+"")},d.setProperty=function(f,h,p){y.call(this,f,h+"",p)}}t.ascending=g;function g(u,f){return u<f?-1:u>f?1:u>=f?0:NaN}t.descending=function(u,f){return f<u?-1:f>u?1:f>=u?0:NaN},t.min=function(u,f){var h=-1,p=u.length,v,x;if(arguments.length===1){for(;++h<p;)if((x=u[h])!=null&&x>=x){v=x;break}for(;++h<p;)(x=u[h])!=null&&v>x&&(v=x)}else{for(;++h<p;)if((x=f.call(u,u[h],h))!=null&&x>=x){v=x;break}for(;++h<p;)(x=f.call(u,u[h],h))!=null&&v>x&&(v=x)}return v},t.max=function(u,f){var h=-1,p=u.length,v,x;if(arguments.length===1){for(;++h<p;)if((x=u[h])!=null&&x>=x){v=x;break}for(;++h<p;)(x=u[h])!=null&&x>v&&(v=x)}else{for(;++h<p;)if((x=f.call(u,u[h],h))!=null&&x>=x){v=x;break}for(;++h<p;)(x=f.call(u,u[h],h))!=null&&x>v&&(v=x)}return v},t.extent=function(u,f){var h=-1,p=u.length,v,x,O;if(arguments.length===1){for(;++h<p;)if((x=u[h])!=null&&x>=x){v=O=x;break}for(;++h<p;)(x=u[h])!=null&&(v>x&&(v=x),O<x&&(O=x))}else{for(;++h<p;)if((x=f.call(u,u[h],h))!=null&&x>=x){v=O=x;break}for(;++h<p;)(x=f.call(u,u[h],h))!=null&&(v>x&&(v=x),O<x&&(O=x))}return[v,O]};function m(u){return u===null?NaN:+u}function E(u){return!isNaN(u)}t.sum=function(u,f){var h=0,p=u.length,v,x=-1;if(arguments.length===1)for(;++x<p;)E(v=+u[x])&&(h+=v);else for(;++x<p;)E(v=+f.call(u,u[x],x))&&(h+=v);return h},t.mean=function(u,f){var h=0,p=u.length,v,x=-1,O=p;if(arguments.length===1)for(;++x<p;)E(v=m(u[x]))?h+=v:--O;else for(;++x<p;)E(v=m(f.call(u,u[x],x)))?h+=v:--O;if(O)return h/O},t.quantile=function(u,f){var h=(u.length-1)*f+1,p=Math.floor(h),v=+u[p-1],x=h-p;return x?v+x*(u[p]-v):v},t.median=function(u,f){var h=[],p=u.length,v,x=-1;if(arguments.length===1)for(;++x<p;)E(v=m(u[x]))&&h.push(v);else for(;++x<p;)E(v=m(f.call(u,u[x],x)))&&h.push(v);if(h.length)return t.quantile(h.sort(g),.5)},t.variance=function(u,f){var h=u.length,p=0,v,x,O=0,S=-1,P=0;if(arguments.length===1)for(;++S<h;)E(v=m(u[S]))&&(x=v-p,p+=x/++P,O+=x*(v-p));else for(;++S<h;)E(v=m(f.call(u,u[S],S)))&&(x=v-p,p+=x/++P,O+=x*(v-p));if(P>1)return O/(P-1)},t.deviation=function(){var u=t.variance.apply(this,arguments);return u&&Math.sqrt(u)};function M(u){return{left:function(f,h,p,v){for(arguments.length<3&&(p=0),arguments.length<4&&(v=f.length);p<v;){var x=p+v>>>1;u(f[x],h)<0?p=x+1:v=x}return p},right:function(f,h,p,v){for(arguments.length<3&&(p=0),arguments.length<4&&(v=f.length);p<v;){var x=p+v>>>1;u(f[x],h)>0?v=x:p=x+1}return p}}}var b=M(g);t.bisectLeft=b.left,t.bisect=t.bisectRight=b.right,t.bisector=function(u){return M(u.length===1?function(f,h){return g(u(f),h)}:u)},t.shuffle=function(u,f,h){(p=arguments.length)<3&&(h=u.length,p<2&&(f=0));for(var p=h-f,v,x;p;)x=Math.random()*p--|0,v=u[p+f],u[p+f]=u[x+f],u[x+f]=v;return u},t.permute=function(u,f){for(var h=f.length,p=new Array(h);h--;)p[h]=u[f[h]];return p},t.pairs=function(u){for(var f=0,h=u.length-1,p=u[0],v=new Array(h<0?0:h);f<h;)v[f]=[p,p=u[++f]];return v},t.transpose=function(u){if(!(x=u.length))return[];for(var f=-1,h=t.min(u,w),p=new Array(h);++f<h;)for(var v=-1,x,O=p[f]=new Array(x);++v<x;)O[v]=u[v][f];return p};function w(u){return u.length}t.zip=function(){return t.transpose(arguments)},t.keys=function(u){var f=[];for(var h in u)f.push(h);return f},t.values=function(u){var f=[];for(var h in u)f.push(u[h]);return f},t.entries=function(u){var f=[];for(var h in u)f.push({key:h,value:u[h]});return f},t.merge=function(u){for(var f=u.length,h,p=-1,v=0,x,O;++p<f;)v+=u[p].length;for(x=new Array(v);--f>=0;)for(O=u[f],h=O.length;--h>=0;)x[--v]=O[h];return x};var _=Math.abs;t.range=function(u,f,h){if(arguments.length<3&&(h=1,arguments.length<2&&(f=u,u=0)),(f-u)/h===1/0)throw new Error("infinite range");var p=[],v=C(_(h)),x=-1,O;if(u*=v,f*=v,h*=v,h<0)for(;(O=u+h*++x)>f;)p.push(O/v);else for(;(O=u+h*++x)<f;)p.push(O/v);return p};function C(u){for(var f=1;u*f%1;)f*=10;return f}function T(u,f){for(var h in f)Object.defineProperty(u.prototype,h,{value:f[h],enumerable:!1})}t.map=function(u,f){var h=new R;if(u instanceof R)u.forEach(function(S,P){h.set(S,P)});else if(Array.isArray(u)){var p=-1,v=u.length,x;if(arguments.length===1)for(;++p<v;)h.set(p,u[p]);else for(;++p<v;)h.set(f.call(u,x=u[p],p),x)}else for(var O in u)h.set(O,u[O]);return h};function R(){this._=Object.create(null)}var D="__proto__",Y="\0";T(R,{has:Se,get:function(u){return this._[j(u)]},set:function(u,f){return this._[j(u)]=f},remove:me,keys:ke,values:function(){var u=[];for(var f in this._)u.push(this._[f]);return u},entries:function(){var u=[];for(var f in this._)u.push({key:re(f),value:this._[f]});return u},size:Re,empty:Le,forEach:function(u){for(var f in this._)u.call(this,re(f),this._[f])}});function j(u){return(u+="")===D||u[0]===Y?Y+u:u}function re(u){return(u+="")[0]===Y?u.slice(1):u}function Se(u){return j(u)in this._}function me(u){return(u=j(u))in this._&&delete this._[u]}function ke(){var u=[];for(var f in this._)u.push(re(f));return u}function Re(){var u=0;for(var f in this._)++u;return u}function Le(){for(var u in this._)return!1;return!0}t.nest=function(){var u={},f=[],h=[],p,v;function x(S,P,N){if(N>=f.length)return v?v.call(u,P):p?P.sort(p):P;for(var L=-1,B=P.length,z=f[N++],ie,oe,G,X=new R,J;++L<B;)(J=X.get(ie=z(oe=P[L])))?J.push(oe):X.set(ie,[oe]);return S?(oe=S(),G=function(ue,le){oe.set(ue,x(S,le,N))}):(oe={},G=function(ue,le){oe[ue]=x(S,le,N)}),X.forEach(G),oe}function O(S,P){if(P>=f.length)return S;var N=[],L=h[P++];return S.forEach(function(B,z){N.push({key:B,values:O(z,P)})}),L?N.sort(function(B,z){return L(B.key,z.key)}):N}return u.map=function(S,P){return x(P,S,0)},u.entries=function(S){return O(x(t.map,S,0),0)},u.key=function(S){return f.push(S),u},u.sortKeys=function(S){return h[f.length-1]=S,u},u.sortValues=function(S){return p=S,u},u.rollup=function(S){return v=S,u},u},t.set=function(u){var f=new ut;if(u)for(var h=0,p=u.length;h<p;++h)f.add(u[h]);return f};function ut(){this._=Object.create(null)}T(ut,{has:Se,add:function(u){return this._[j(u+="")]=!0,u},remove:me,values:ke,size:Re,empty:Le,forEach:function(u){for(var f in this._)u.call(this,re(f))}}),t.behavior={};function nt(u){return u}t.rebind=function(u,f){for(var h=1,p=arguments.length,v;++h<p;)u[v=arguments[h]]=De(u,f,f[v]);return u};function De(u,f,h){return function(){var p=h.apply(f,arguments);return p===f?u:p}}function We(u,f){if(f in u)return f;f=f.charAt(0).toUpperCase()+f.slice(1);for(var h=0,p=_t.length;h<p;++h){var v=_t[h]+f;if(v in u)return v}}var _t=["webkit","ms","moz","Moz","o","O"];function He(){}t.dispatch=function(){for(var u=new be,f=-1,h=arguments.length;++f<h;)u[arguments[f]]=Ve(u);return u};function be(){}be.prototype.on=function(u,f){var h=u.indexOf("."),p="";if(h>=0&&(p=u.slice(h+1),u=u.slice(0,h)),u)return arguments.length<2?this[u].on(p):this[u].on(p,f);if(arguments.length===2){if(f==null)for(u in this)this.hasOwnProperty(u)&&this[u].on(p,null);return this}};function Ve(u){var f=[],h=new R;function p(){for(var v=f,x=-1,O=v.length,S;++x<O;)(S=v[x].on)&&S.apply(this,arguments);return u}return p.on=function(v,x){var O=h.get(v),S;return arguments.length<2?O&&O.on:(O&&(O.on=null,f=f.slice(0,S=f.indexOf(O)).concat(f.slice(S+1)),h.remove(v)),x&&f.push(h.set(v,{on:x})),u)},p}t.event=null;function st(){t.event.preventDefault()}function Qe(){for(var u=t.event,f;f=u.sourceEvent;)u=f;return u}function ct(u){for(var f=new be,h=0,p=arguments.length;++h<p;)f[arguments[h]]=Ve(f);return f.of=function(v,x){return function(O){try{var S=O.sourceEvent=t.event;O.target=u,t.event=O,f[O.type].apply(v,x)}finally{t.event=S}}},f}t.requote=function(u){return u.replace(yt,"\\$&")};var yt=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Ht={}.__proto__?function(u,f){u.__proto__=f}:function(u,f){for(var h in f)u[h]=f[h]};function qt(u){return Ht(u,Ce),u}var Ze=function(u,f){return f.querySelector(u)},At=function(u,f){return f.querySelectorAll(u)},jt=function(u,f){var h=u.matches||u[We(u,"matchesSelector")];return jt=function(p,v){return h.call(p,v)},jt(u,f)};typeof Sizzle=="function"&&(Ze=function(u,f){return Sizzle(u,f)[0]||null},At=Sizzle,jt=Sizzle.matchesSelector),t.selection=function(){return t.select(i.documentElement)};var Ce=t.selection.prototype=[];Ce.select=function(u){var f=[],h,p,v,x;u=W(u);for(var O=-1,S=this.length;++O<S;){f.push(h=[]),h.parentNode=(v=this[O]).parentNode;for(var P=-1,N=v.length;++P<N;)(x=v[P])?(h.push(p=u.call(x,x.__data__,P,O)),p&&"__data__"in x&&(p.__data__=x.__data__)):h.push(null)}return qt(f)};function W(u){return typeof u=="function"?u:function(){return Ze(u,this)}}Ce.selectAll=function(u){var f=[],h,p;u=ae(u);for(var v=-1,x=this.length;++v<x;)for(var O=this[v],S=-1,P=O.length;++S<P;)(p=O[S])&&(f.push(h=n(u.call(p,p.__data__,S,v))),h.parentNode=p);return qt(f)};function ae(u){return typeof u=="function"?u:function(){return At(u,this)}}var I="http://www.w3.org/1999/xhtml",A={svg:"http://www.w3.org/2000/svg",xhtml:I,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};t.ns={prefix:A,qualify:function(u){var f=u.indexOf(":"),h=u;return f>=0&&(h=u.slice(0,f))!=="xmlns"&&(u=u.slice(f+1)),A.hasOwnProperty(h)?{space:A[h],local:u}:u}},Ce.attr=function(u,f){if(arguments.length<2){if(typeof u=="string"){var h=this.node();return u=t.ns.qualify(u),u.local?h.getAttributeNS(u.space,u.local):h.getAttribute(u)}for(f in u)this.each(k(f,u[f]));return this}return this.each(k(u,f))};function k(u,f){u=t.ns.qualify(u);function h(){this.removeAttribute(u)}function p(){this.removeAttributeNS(u.space,u.local)}function v(){this.setAttribute(u,f)}function x(){this.setAttributeNS(u.space,u.local,f)}function O(){var P=f.apply(this,arguments);P==null?this.removeAttribute(u):this.setAttribute(u,P)}function S(){var P=f.apply(this,arguments);P==null?this.removeAttributeNS(u.space,u.local):this.setAttributeNS(u.space,u.local,P)}return f==null?u.local?p:h:typeof f=="function"?u.local?S:O:u.local?x:v}function $(u){return u.trim().replace(/\s+/g," ")}Ce.classed=function(u,f){if(arguments.length<2){if(typeof u=="string"){var h=this.node(),p=(u=Fe(u)).length,v=-1;if(f=h.classList){for(;++v<p;)if(!f.contains(u[v]))return!1}else for(f=h.getAttribute("class");++v<p;)if(!fe(u[v]).test(f))return!1;return!0}for(f in u)this.each(ze(f,u[f]));return this}return this.each(ze(u,f))};function fe(u){return new RegExp("(?:^|\\s+)"+t.requote(u)+"(?:\\s+|$)","g")}function Fe(u){return(u+"").trim().split(/^|\s+/)}function ze(u,f){u=Fe(u).map(Qt);var h=u.length;function p(){for(var x=-1;++x<h;)u[x](this,f)}function v(){for(var x=-1,O=f.apply(this,arguments);++x<h;)u[x](this,O)}return typeof f=="function"?v:p}function Qt(u){var f=fe(u);return function(h,p){if(v=h.classList)return p?v.add(u):v.remove(u);var v=h.getAttribute("class")||"";p?(f.lastIndex=0,f.test(v)||h.setAttribute("class",$(v+" "+u))):h.setAttribute("class",$(v.replace(f," ")))}}Ce.style=function(u,f,h){var p=arguments.length;if(p<3){if(typeof u!="string"){p<2&&(f="");for(h in u)this.each(sr(h,u[h],f));return this}if(p<2){var v=this.node();return o(v).getComputedStyle(v,null).getPropertyValue(u)}h=""}return this.each(sr(u,f,h))};function sr(u,f,h){function p(){this.style.removeProperty(u)}function v(){this.style.setProperty(u,f,h)}function x(){var O=f.apply(this,arguments);O==null?this.style.removeProperty(u):this.style.setProperty(u,O,h)}return f==null?p:typeof f=="function"?x:v}Ce.property=function(u,f){if(arguments.length<2){if(typeof u=="string")return this.node()[u];for(f in u)this.each(nr(f,u[f]));return this}return this.each(nr(u,f))};function nr(u,f){function h(){delete this[u]}function p(){this[u]=f}function v(){var x=f.apply(this,arguments);x==null?delete this[u]:this[u]=x}return f==null?h:typeof f=="function"?v:p}Ce.text=function(u){return arguments.length?this.each(typeof u=="function"?function(){var f=u.apply(this,arguments);this.textContent=f??""}:u==null?function(){this.textContent=""}:function(){this.textContent=u}):this.node().textContent},Ce.html=function(u){return arguments.length?this.each(typeof u=="function"?function(){var f=u.apply(this,arguments);this.innerHTML=f??""}:u==null?function(){this.innerHTML=""}:function(){this.innerHTML=u}):this.node().innerHTML},Ce.append=function(u){return u=qr(u),this.select(function(){return this.appendChild(u.apply(this,arguments))})};function qr(u){function f(){var p=this.ownerDocument,v=this.namespaceURI;return v===I&&p.documentElement.namespaceURI===I?p.createElement(u):p.createElementNS(v,u)}function h(){return this.ownerDocument.createElementNS(u.space,u.local)}return typeof u=="function"?u:(u=t.ns.qualify(u)).local?h:f}Ce.insert=function(u,f){return u=qr(u),f=W(f),this.select(function(){return this.insertBefore(u.apply(this,arguments),f.apply(this,arguments)||null)})},Ce.remove=function(){return this.each(kr)};function kr(){var u=this.parentNode;u&&u.removeChild(this)}Ce.data=function(u,f){var h=-1,p=this.length,v,x;if(!arguments.length){for(u=new Array(p=(v=this[0]).length);++h<p;)(x=v[h])&&(u[h]=x.__data__);return u}function O(L,B){var z,ie=L.length,oe=B.length,G=Math.min(ie,oe),X=new Array(oe),J=new Array(oe),ue=new Array(ie),le,te;if(f){var Pe=new R,Ue=new Array(ie),tt;for(z=-1;++z<ie;)(le=L[z])&&(Pe.has(tt=f.call(le,le.__data__,z))?ue[z]=le:Pe.set(tt,le),Ue[z]=tt);for(z=-1;++z<oe;)(le=Pe.get(tt=f.call(B,te=B[z],z)))?le!==!0&&(X[z]=le,le.__data__=te):J[z]=Ki(te),Pe.set(tt,!0);for(z=-1;++z<ie;)z in Ue&&Pe.get(Ue[z])!==!0&&(ue[z]=L[z])}else{for(z=-1;++z<G;)le=L[z],te=B[z],le?(le.__data__=te,X[z]=le):J[z]=Ki(te);for(;z<oe;++z)J[z]=Ki(B[z]);for(;z<ie;++z)ue[z]=L[z]}J.update=X,J.parentNode=X.parentNode=ue.parentNode=L.parentNode,S.push(J),P.push(X),N.push(ue)}var S=hp([]),P=qt([]),N=qt([]);if(typeof u=="function")for(;++h<p;)O(v=this[h],u.call(v,v.parentNode.__data__,h));else for(;++h<p;)O(v=this[h],u);return P.enter=function(){return S},P.exit=function(){return N},P};function Ki(u){return{__data__:u}}Ce.datum=function(u){return arguments.length?this.property("__data__",u):this.property("__data__")},Ce.filter=function(u){var f=[],h,p,v;typeof u!="function"&&(u=bu(u));for(var x=0,O=this.length;x<O;x++){f.push(h=[]),h.parentNode=(p=this[x]).parentNode;for(var S=0,P=p.length;S<P;S++)(v=p[S])&&u.call(v,v.__data__,S,x)&&h.push(v)}return qt(f)};function bu(u){return function(){return jt(this,u)}}Ce.order=function(){for(var u=-1,f=this.length;++u<f;)for(var h=this[u],p=h.length-1,v=h[p],x;--p>=0;)(x=h[p])&&(v&&v!==x.nextSibling&&v.parentNode.insertBefore(x,v),v=x);return this},Ce.sort=function(u){u=Ea.apply(this,arguments);for(var f=-1,h=this.length;++f<h;)this[f].sort(u);return this.order()};function Ea(u){return arguments.length||(u=g),function(f,h){return f&&h?u(f.__data__,h.__data__):!f-!h}}Ce.each=function(u){return gi(this,function(f,h,p){u.call(f,f.__data__,h,p)})};function gi(u,f){for(var h=0,p=u.length;h<p;h++)for(var v=u[h],x=0,O=v.length,S;x<O;x++)(S=v[x])&&f(S,x,h);return u}Ce.call=function(u){var f=n(arguments);return u.apply(f[0]=this,f),this},Ce.empty=function(){return!this.node()},Ce.node=function(){for(var u=0,f=this.length;u<f;u++)for(var h=this[u],p=0,v=h.length;p<v;p++){var x=h[p];if(x)return x}return null},Ce.size=function(){var u=0;return gi(this,function(){++u}),u};function hp(u){return Ht(u,Ri),u}var Ri=[];t.selection.enter=hp,t.selection.enter.prototype=Ri,Ri.append=Ce.append,Ri.empty=Ce.empty,Ri.node=Ce.node,Ri.call=Ce.call,Ri.size=Ce.size,Ri.select=function(u){for(var f=[],h,p,v,x,O,S=-1,P=this.length;++S<P;){v=(x=this[S]).update,f.push(h=[]),h.parentNode=x.parentNode;for(var N=-1,L=x.length;++N<L;)(O=x[N])?(h.push(v[N]=p=u.call(x.parentNode,O.__data__,N,S)),p.__data__=O.__data__):h.push(null)}return qt(f)},Ri.insert=function(u,f){return arguments.length<2&&(f=wu(this)),Ce.insert.call(this,u,f)};function wu(u){var f,h;return function(p,v,x){var O=u[x].update,S=O.length,P;for(x!=h&&(h=x,f=0),v>=f&&(f=v+1);!(P=O[f])&&++f<S;);return P}}t.select=function(u){var f;return typeof u=="string"?(f=[Ze(u,i)],f.parentNode=i.documentElement):(f=[u],f.parentNode=a(u)),qt([f])},t.selectAll=function(u){var f;return typeof u=="string"?(f=n(At(u,i)),f.parentNode=i.documentElement):(f=n(u),f.parentNode=null),qt([f])},Ce.on=function(u,f,h){var p=arguments.length;if(p<3){if(typeof u!="string"){p<2&&(f=!1);for(h in u)this.each($l(h,u[h],f));return this}if(p<2)return(p=this.node()["__on"+u])&&p._;h=!1}return this.each($l(u,f,h))};function $l(u,f,h){var p="__on"+u,v=u.indexOf("."),x=zl;v>0&&(u=u.slice(0,v));var O=Bl.get(u);O&&(u=O,x=Kg);function S(){var L=this[p];L&&(this.removeEventListener(u,L,L.$),delete this[p])}function P(){var L=x(f,n(arguments));S.call(this),this.addEventListener(u,this[p]=L,L.$=h),L._=f}function N(){var L=new RegExp("^__on([^.]+)"+t.requote(u)+"$"),B;for(var z in this)if(B=z.match(L)){var ie=this[z];this.removeEventListener(B[1],ie,ie.$),delete this[z]}}return v?f?P:S:f?He:N}var Bl=t.map({mouseenter:"mouseover",mouseleave:"mouseout"});i&&Bl.forEach(function(u){"on"+u in i&&Bl.remove(u)});function zl(u,f){return function(h){var p=t.event;t.event=h,f[0]=this.__data__;try{u.apply(this,f)}finally{t.event=p}}}function Kg(u,f){var h=zl(u,f);return function(p){var v=this,x=p.relatedTarget;(!x||x!==v&&!(x.compareDocumentPosition(v)&8))&&h.call(v,p)}}var Aa,Jg=0;function Ul(u){var f=".dragsuppress-"+ ++Jg,h="click"+f,p=t.select(o(u)).on("touchmove"+f,st).on("dragstart"+f,st).on("selectstart"+f,st);if(Aa==null&&(Aa="onselectstart"in u?!1:We(u.style,"userSelect")),Aa){var v=a(u).style,x=v[Aa];v[Aa]="none"}return function(O){if(p.on(f,null),Aa&&(v[Aa]=x),O){var S=function(){p.on(h,null)};p.on(h,function(){st(),S()},!0),setTimeout(S,0)}}}t.mouse=function(u){return ni(u,Qe())};var tn=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function ni(u,f){f.changedTouches&&(f=f.changedTouches[0]);var h=u.ownerSVGElement||u;if(h.createSVGPoint){var p=h.createSVGPoint();if(tn<0){var v=o(u);if(v.scrollX||v.scrollY){h=t.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var x=h[0][0].getScreenCTM();tn=!(x.f||x.e),h.remove()}}return tn?(p.x=f.pageX,p.y=f.pageY):(p.x=f.clientX,p.y=f.clientY),p=p.matrixTransform(u.getScreenCTM().inverse()),[p.x,p.y]}var O=u.getBoundingClientRect();return[f.clientX-O.left-u.clientLeft,f.clientY-O.top-u.clientTop]}t.touch=function(u,f,h){if(arguments.length<3&&(h=f,f=Qe().changedTouches),f){for(var p=0,v=f.length,x;p<v;++p)if((x=f[p]).identifier===h)return ni(u,x)}},t.behavior.drag=function(){var u=ct(v,"drag","dragstart","dragend"),f=null,h=x(He,t.mouse,o,"mousemove","mouseup"),p=x(Bn,t.touch,nt,"touchmove","touchend");function v(){this.on("mousedown.drag",h).on("touchstart.drag",p)}function x(O,S,P,N,L){return function(){var B=this,z=t.event.target.correspondingElement||t.event.target,ie=B.parentNode,oe=u.of(B,arguments),G=0,X=O(),J=".drag"+(X==null?"":"-"+X),ue,le=t.select(P(z)).on(N+J,Ue).on(L+J,tt),te=Ul(z),Pe=S(ie,X);f?(ue=f.apply(B,arguments),ue=[ue.x-Pe[0],ue.y-Pe[1]]):ue=[0,0],oe({type:"dragstart"});function Ue(){var je=S(ie,X),at,vt;!je||(at=je[0]-Pe[0],vt=je[1]-Pe[1],G|=at|vt,Pe=je,oe({type:"drag",x:je[0]+ue[0],y:je[1]+ue[1],dx:at,dy:vt}))}function tt(){!S(ie,X)||(le.on(N+J,null).on(L+J,null),te(G),oe({type:"dragend"}))}}}return v.origin=function(O){return arguments.length?(f=O,v):f},t.rebind(v,u,"on")};function Bn(){return t.event.changedTouches[0].identifier}t.touches=function(u,f){return arguments.length<2&&(f=Qe().touches),f?n(f).map(function(h){var p=ni(u,h);return p.identifier=h.identifier,p}):[]};var ir=1e-6,dp=ir*ir,Ni=Math.PI,so=2*Ni,pp=so-ir,yi=Ni/2,vp=Ni/180,_u=180/Ni;function ey(u,f,h){return(f[0]-u[0])*(h[1]-u[1])-(f[1]-u[1])*(h[0]-u[0])}function mp(u){return u>1?yi:u<-1?-yi:Math.asin(u)}function ty(u){return((u=Math.exp(u))-1/u)/2}function gp(u){return((u=Math.exp(u))+1/u)/2}function ry(u){return((u=Math.exp(2*u))-1)/(u+1)}var Su=Math.SQRT2,jf=2,yp=4;t.interpolateZoom=function(u,f){var h=u[0],p=u[1],v=u[2],x=f[0],O=f[1],S=f[2],P=x-h,N=O-p,L=P*P+N*N,B,z;if(L<dp)z=Math.log(S/v)/Su,B=function(ue){return[h+ue*P,p+ue*N,v*Math.exp(Su*ue*z)]};else{var ie=Math.sqrt(L),oe=(S*S-v*v+yp*L)/(2*v*jf*ie),G=(S*S-v*v-yp*L)/(2*S*jf*ie),X=Math.log(Math.sqrt(oe*oe+1)-oe),J=Math.log(Math.sqrt(G*G+1)-G);z=(J-X)/Su,B=function(ue){var le=ue*z,te=gp(X),Pe=v/(jf*ie)*(te*ry(Su*le+X)-ty(X));return[h+Pe*P,p+Pe*N,v*te/gp(Su*le+X)]}}return B.duration=z*1e3,B},t.behavior.zoom=function(){var u={x:0,y:0,k:1},f,h,p,v=[960,500],x=Eu,O=250,S=0,P="mousedown.zoom",N="mousemove.zoom",L="mouseup.zoom",B,z="touchstart.zoom",ie,oe=ct(le,"zoomstart","zoom","zoomend"),G,X,J,ue;Gf||(Gf="onwheel"in i?(jl=function(){return-t.event.deltaY*(t.event.deltaMode?120:1)},"wheel"):"onmousewheel"in i?(jl=function(){return t.event.wheelDelta},"mousewheel"):(jl=function(){return-t.event.detail},"MozMousePixelScroll"));function le(rt){rt.on(P,zt).on(Gf+".zoom",Mr).on("dblclick.zoom",dr).on(z,ar)}le.event=function(rt){rt.each(function(){var Wt=oe.of(this,arguments),Yt=u;ji?t.select(this).transition().each("start.zoom",function(){u=this.__chart__||{x:0,y:0,k:1},vt(Wt)}).tween("zoom:zoom",function(){var or=v[0],Sr=v[1],Br=h?h[0]:or/2,Yr=h?h[1]:Sr/2,pn=t.interpolateZoom([(Br-u.x)/u.k,(Yr-u.y)/u.k,or/u.k],[(Br-Yt.x)/Yt.k,(Yr-Yt.y)/Yt.k,or/Yt.k]);return function(Sn){var an=pn(Sn),Pn=or/an[2];this.__chart__=u={x:Br-an[0]*Pn,y:Yr-an[1]*Pn,k:Pn},Gt(Wt)}}).each("interrupt.zoom",function(){bt(Wt)}).each("end.zoom",function(){bt(Wt)}):(this.__chart__=u,vt(Wt),Gt(Wt),bt(Wt))})},le.translate=function(rt){return arguments.length?(u={x:+rt[0],y:+rt[1],k:u.k},at(),le):[u.x,u.y]},le.scale=function(rt){return arguments.length?(u={x:u.x,y:u.y,k:null},Ue(+rt),at(),le):u.k},le.scaleExtent=function(rt){return arguments.length?(x=rt==null?Eu:[+rt[0],+rt[1]],le):x},le.center=function(rt){return arguments.length?(p=rt&&[+rt[0],+rt[1]],le):p},le.size=function(rt){return arguments.length?(v=rt&&[+rt[0],+rt[1]],le):v},le.duration=function(rt){return arguments.length?(O=+rt,le):O},le.x=function(rt){return arguments.length?(X=rt,G=rt.copy(),u={x:0,y:0,k:1},le):X},le.y=function(rt){return arguments.length?(ue=rt,J=rt.copy(),u={x:0,y:0,k:1},le):ue};function te(rt){return[(rt[0]-u.x)/u.k,(rt[1]-u.y)/u.k]}function Pe(rt){return[rt[0]*u.k+u.x,rt[1]*u.k+u.y]}function Ue(rt){u.k=Math.max(x[0],Math.min(x[1],rt))}function tt(rt,Wt){Wt=Pe(Wt),u.x+=rt[0]-Wt[0],u.y+=rt[1]-Wt[1]}function je(rt,Wt,Yt,or){rt.__chart__={x:u.x,y:u.y,k:u.k},Ue(Math.pow(2,or)),tt(h=Wt,Yt),rt=t.select(rt),O>0&&(rt=rt.transition().duration(O)),rt.call(le.event)}function at(){X&&X.domain(G.range().map(function(rt){return(rt-u.x)/u.k}).map(G.invert)),ue&&ue.domain(J.range().map(function(rt){return(rt-u.y)/u.k}).map(J.invert))}function vt(rt){S++||rt({type:"zoomstart"})}function Gt(rt){at(),rt({type:"zoom",scale:u.k,translate:[u.x,u.y]})}function bt(rt){--S||(rt({type:"zoomend"}),h=null)}function zt(){var rt=this,Wt=oe.of(rt,arguments),Yt=0,or=t.select(o(rt)).on(N,Yr).on(L,pn),Sr=te(t.mouse(rt)),Br=Ul(rt);bs.call(rt),vt(Wt);function Yr(){Yt=1,tt(t.mouse(rt),Sr),Gt(Wt)}function pn(){or.on(N,null).on(L,null),Br(Yt),bt(Wt)}}function ar(){var rt=this,Wt=oe.of(rt,arguments),Yt={},or=0,Sr,Br=".zoom-"+t.event.changedTouches[0].identifier,Yr="touchmove"+Br,pn="touchend"+Br,Sn=[],an=t.select(rt),Pn=Ul(rt);H(),vt(Wt),an.on(P,null).on(z,H);function F(){var Me=t.touches(rt);return Sr=u.k,Me.forEach(function(ye){ye.identifier in Yt&&(Yt[ye.identifier]=te(ye))}),Me}function H(){var Me=t.event.target;t.select(Me).on(Yr,K).on(pn,Ee),Sn.push(Me);for(var ye=t.event.changedTouches,we=0,Ye=ye.length;we<Ye;++we)Yt[ye[we].identifier]=null;var Xe=F(),et=Date.now();if(Xe.length===1){if(et-ie<500){var ft=Xe[0];je(rt,ft,Yt[ft.identifier],Math.floor(Math.log(u.k)/Math.LN2)+1),st()}ie=et}else if(Xe.length>1){var ft=Xe[0],It=Xe[1],St=ft[0]-It[0],it=ft[1]-It[1];or=St*St+it*it}}function K(){var Me=t.touches(rt),ye,we,Ye,Xe;bs.call(rt);for(var et=0,ft=Me.length;et<ft;++et,Xe=null)if(Ye=Me[et],Xe=Yt[Ye.identifier]){if(we)break;ye=Ye,we=Xe}if(Xe){var It=(It=Ye[0]-ye[0])*It+(It=Ye[1]-ye[1])*It,St=or&&Math.sqrt(It/or);ye=[(ye[0]+Ye[0])/2,(ye[1]+Ye[1])/2],we=[(we[0]+Xe[0])/2,(we[1]+Xe[1])/2],Ue(St*Sr)}ie=null,tt(ye,we),Gt(Wt)}function Ee(){if(t.event.touches.length){for(var Me=t.event.changedTouches,ye=0,we=Me.length;ye<we;++ye)delete Yt[Me[ye].identifier];for(var Ye in Yt)return void F()}t.selectAll(Sn).on(Br,null),an.on(P,zt).on(z,ar),Pn(),bt(Wt)}}function Mr(){var rt=oe.of(this,arguments);B?clearTimeout(B):(bs.call(this),f=te(h=p||t.mouse(this)),vt(rt)),B=setTimeout(function(){B=null,bt(rt)},50),st(),Ue(Math.pow(2,jl()*.002)*u.k),tt(h,f),Gt(rt)}function dr(){var rt=t.mouse(this),Wt=Math.log(u.k)/Math.LN2;je(this,rt,te(rt),t.event.shiftKey?Math.ceil(Wt)-1:Math.floor(Wt)+1)}return t.rebind(le,oe,"on")};var Eu=[0,1/0],jl,Gf;t.color=Ji;function Ji(){}Ji.prototype.toString=function(){return this.rgb()+""},t.hsl=Vn;function Vn(u,f,h){return this instanceof Vn?(this.h=+u,this.s=+f,void(this.l=+h)):arguments.length<2?u instanceof Vn?new Vn(u.h,u.s,u.l):Ca(""+u,Qf,Vn):new Vn(u,f,h)}var Gl=Vn.prototype=new Ji;Gl.brighter=function(u){return u=Math.pow(.7,arguments.length?u:1),new Vn(this.h,this.s,this.l/u)},Gl.darker=function(u){return u=Math.pow(.7,arguments.length?u:1),new Vn(this.h,this.s,u*this.l)},Gl.rgb=function(){return Wl(this.h,this.s,this.l)};function Wl(u,f,h){var p,v;u=isNaN(u)?0:(u%=360)<0?u+360:u,f=isNaN(f)||f<0?0:f>1?1:f,h=h<0?0:h>1?1:h,v=h<=.5?h*(1+f):h+f-h*f,p=2*h-v;function x(S){return S>360?S-=360:S<0&&(S+=360),S<60?p+(v-p)*S/60:S<180?v:S<240?p+(v-p)*(240-S)/60:p}function O(S){return Math.round(x(S)*255)}return new rn(O(u+120),O(u),O(u-120))}t.hcl=ii;function ii(u,f,h){return this instanceof ii?(this.h=+u,this.c=+f,void(this.l=+h)):arguments.length<2?u instanceof ii?new ii(u.h,u.c,u.l):u instanceof Zr?wp(u.l,u.a,u.b):wp((u=Oa((u=t.rgb(u)).r,u.g,u.b)).l,u.a,u.b):new ii(u,f,h)}var Au=ii.prototype=new Ji;Au.brighter=function(u){return new ii(this.h,this.c,Math.min(100,this.l+Ta*(arguments.length?u:1)))},Au.darker=function(u){return new ii(this.h,this.c,Math.max(0,this.l-Ta*(arguments.length?u:1)))},Au.rgb=function(){return Tu(this.h,this.c,this.l).rgb()};function Tu(u,f,h){return isNaN(u)&&(u=0),isNaN(f)&&(f=0),new Zr(h,Math.cos(u*=vp)*f,Math.sin(u)*f)}t.lab=Zr;function Zr(u,f,h){return this instanceof Zr?(this.l=+u,this.a=+f,void(this.b=+h)):arguments.length<2?u instanceof Zr?new Zr(u.l,u.a,u.b):u instanceof ii?Tu(u.h,u.c,u.l):Oa((u=rn(u)).r,u.g,u.b):new Zr(u,f,h)}var Ta=18,Wf=.95047,Hf=1,xp=1.08883,Vf=Zr.prototype=new Ji;Vf.brighter=function(u){return new Zr(Math.min(100,this.l+Ta*(arguments.length?u:1)),this.a,this.b)},Vf.darker=function(u){return new Zr(Math.max(0,this.l-Ta*(arguments.length?u:1)),this.a,this.b)},Vf.rgb=function(){return bp(this.l,this.a,this.b)};function bp(u,f,h){var p=(u+16)/116,v=p+f/500,x=p-h/200;return v=qf(v)*Wf,p=qf(p)*Hf,x=qf(x)*xp,new rn(Xf(3.2404542*v-1.5371385*p-.4985314*x),Xf(-.969266*v+1.8760108*p+.041556*x),Xf(.0556434*v-.2040259*p+1.0572252*x))}function wp(u,f,h){return u>0?new ii(Math.atan2(h,f)*_u,Math.sqrt(f*f+h*h),u):new ii(NaN,NaN,u)}function qf(u){return u>.206893034?u*u*u:(u-4/29)/7.787037}function Yf(u){return u>.008856?Math.pow(u,1/3):7.787037*u+4/29}function Xf(u){return Math.round(255*(u<=.00304?12.92*u:1.055*Math.pow(u,1/2.4)-.055))}t.rgb=rn;function rn(u,f,h){return this instanceof rn?(this.r=~~u,this.g=~~f,void(this.b=~~h)):arguments.length<2?u instanceof rn?new rn(u.r,u.g,u.b):Ca(""+u,rn,Wl):new rn(u,f,h)}function _p(u){return new rn(u>>16,u>>8&255,u&255)}function Hl(u){return _p(u)+""}var ea=rn.prototype=new Ji;ea.brighter=function(u){u=Math.pow(.7,arguments.length?u:1);var f=this.r,h=this.g,p=this.b,v=30;return!f&&!h&&!p?new rn(v,v,v):(f&&f<v&&(f=v),h&&h<v&&(h=v),p&&p<v&&(p=v),new rn(Math.min(255,f/u),Math.min(255,h/u),Math.min(255,p/u)))},ea.darker=function(u){return u=Math.pow(.7,arguments.length?u:1),new rn(u*this.r,u*this.g,u*this.b)},ea.hsl=function(){return Qf(this.r,this.g,this.b)},ea.toString=function(){return"#"+fo(this.r)+fo(this.g)+fo(this.b)};function fo(u){return u<16?"0"+Math.max(0,u).toString(16):Math.min(255,u).toString(16)}function Ca(u,f,h){var p=0,v=0,x=0,O,S,P;if(O=/([a-z]+)\((.*)\)/.exec(u=u.toLowerCase()),O)switch(S=O[2].split(","),O[1]){case"hsl":return h(parseFloat(S[0]),parseFloat(S[1])/100,parseFloat(S[2])/100);case"rgb":return f(ta(S[0]),ta(S[1]),ta(S[2]))}return(P=co.get(u))?f(P.r,P.g,P.b):(u!=null&&u.charAt(0)==="#"&&!isNaN(P=parseInt(u.slice(1),16))&&(u.length===4?(p=(P&3840)>>4,p=p>>4|p,v=P&240,v=v>>4|v,x=P&15,x=x<<4|x):u.length===7&&(p=(P&16711680)>>16,v=(P&65280)>>8,x=P&255)),f(p,v,x))}function Qf(u,f,h){var p=Math.min(u/=255,f/=255,h/=255),v=Math.max(u,f,h),x=v-p,O,S,P=(v+p)/2;return x?(S=P<.5?x/(v+p):x/(2-v-p),u==v?O=(f-h)/x+(f<h?6:0):f==v?O=(h-u)/x+2:O=(u-f)/x+4,O*=60):(O=NaN,S=P>0&&P<1?0:O),new Vn(O,S,P)}function Oa(u,f,h){u=Vl(u),f=Vl(f),h=Vl(h);var p=Yf((.4124564*u+.3575761*f+.1804375*h)/Wf),v=Yf((.2126729*u+.7151522*f+.072175*h)/Hf),x=Yf((.0193339*u+.119192*f+.9503041*h)/xp);return Zr(116*v-16,500*(p-v),200*(v-x))}function Vl(u){return(u/=255)<=.04045?u/12.92:Math.pow((u+.055)/1.055,2.4)}function ta(u){var f=parseFloat(u);return u.charAt(u.length-1)==="%"?Math.round(f*2.55):f}var co=t.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});co.forEach(function(u,f){co.set(u,_p(f))});function mr(u){return typeof u=="function"?u:function(){return u}}t.functor=mr,t.xhr=Zf(nt);function Zf(u){return function(f,h,p){return arguments.length===2&&typeof h=="function"&&(p=h,h=null),ql(f,h,u,p)}}function ql(u,f,h,p){var v={},x=t.dispatch("beforesend","progress","load","error"),O={},S=new XMLHttpRequest,P=null;self.XDomainRequest&&!("withCredentials"in S)&&/^(http(s)?:)?\/\//.test(u)&&(S=new XDomainRequest),"onload"in S?S.onload=S.onerror=N:S.onreadystatechange=function(){S.readyState>3&&N()};function N(){var L=S.status,B;if(!L&&ny(S)||L>=200&&L<300||L===304){try{B=h.call(v,S)}catch(z){x.error.call(v,z);return}x.load.call(v,B)}else x.error.call(v,S)}return S.onprogress=function(L){var B=t.event;t.event=L;try{x.progress.call(v,S)}finally{t.event=B}},v.header=function(L,B){return L=(L+"").toLowerCase(),arguments.length<2?O[L]:(B==null?delete O[L]:O[L]=B+"",v)},v.mimeType=function(L){return arguments.length?(f=L==null?null:L+"",v):f},v.responseType=function(L){return arguments.length?(P=L,v):P},v.response=function(L){return h=L,v},["get","post"].forEach(function(L){v[L]=function(){return v.send.apply(v,[L].concat(n(arguments)))}}),v.send=function(L,B,z){if(arguments.length===2&&typeof B=="function"&&(z=B,B=null),S.open(L,u,!0),f!=null&&!("accept"in O)&&(O.accept=f+",*/*"),S.setRequestHeader)for(var ie in O)S.setRequestHeader(ie,O[ie]);return f!=null&&S.overrideMimeType&&S.overrideMimeType(f),P!=null&&(S.responseType=P),z!=null&&v.on("error",z).on("load",function(oe){z(null,oe)}),x.beforesend.call(v,S),S.send(B??null),v},v.abort=function(){return S.abort(),v},t.rebind(v,x,"on"),p==null?v:v.get(Sp(p))}function Sp(u){return u.length===1?function(f,h){u(f==null?h:null)}:u}function ny(u){var f=u.responseType;return f&&f!=="text"?u.response:u.responseText}t.dsv=function(u,f){var h=new RegExp('["'+u+`
|
|
42
|
-
]`),p=u.charCodeAt(0);function v(N,L,B){arguments.length<3&&(B=L,L=null);var z=ql(N,f,L==null?x:O(L),B);return z.row=function(ie){return arguments.length?z.response((L=ie)==null?x:O(ie)):L},z}function x(N){return v.parse(N.responseText)}function O(N){return function(L){return v.parse(L.responseText,N)}}v.parse=function(N,L){var B;return v.parseRows(N,function(z,ie){if(B)return B(z,ie-1);var oe=function(G){for(var X={},J=z.length,ue=0;ue<J;++ue)X[z[ue]]=G[ue];return X};B=L?function(G,X){return L(oe(G),X)}:oe})},v.parseRows=function(N,L){var B={},z={},ie=[],oe=N.length,G=0,X=0,J,ue;function le(){if(G>=oe)return z;if(ue)return ue=!1,B;var Pe=G;if(N.charCodeAt(Pe)===34){for(var Ue=Pe;Ue++<oe;)if(N.charCodeAt(Ue)===34){if(N.charCodeAt(Ue+1)!==34)break;++Ue}G=Ue+2;var tt=N.charCodeAt(Ue+1);return tt===13?(ue=!0,N.charCodeAt(Ue+2)===10&&++G):tt===10&&(ue=!0),N.slice(Pe+1,Ue).replace(/""/g,'"')}for(;G<oe;){var tt=N.charCodeAt(G++),je=1;if(tt===10)ue=!0;else if(tt===13)ue=!0,N.charCodeAt(G)===10&&(++G,++je);else if(tt!==p)continue;return N.slice(Pe,G-je)}return N.slice(Pe)}for(;(J=le())!==z;){for(var te=[];J!==B&&J!==z;)te.push(J),J=le();L&&(te=L(te,X++))==null||ie.push(te)}return ie},v.format=function(N){if(Array.isArray(N[0]))return v.formatRows(N);var L=new ut,B=[];return N.forEach(function(z){for(var ie in z)L.has(ie)||B.push(L.add(ie))}),[B.map(P).join(u)].concat(N.map(function(z){return B.map(function(ie){return P(z[ie])}).join(u)})).join(`
|
|
43
|
-
`)},v.formatRows=function(N){return N.map(S).join(`
|
|
44
|
-
`)};function S(N){return N.map(P).join(u)}function P(N){return h.test(N)?'"'+N.replace(/\"/g,'""')+'"':N}return v},t.csv=t.dsv(",","text/csv"),t.tsv=t.dsv(" ","text/tab-separated-values");var Yl,Cu,ai,Xl,oi=this[We(this,"requestAnimationFrame")]||function(u){setTimeout(u,17)};t.timer=function(){ho.apply(this,arguments)};function ho(u,f,h){var p=arguments.length;p<2&&(f=0),p<3&&(h=Date.now());var v=h+f,x={c:u,t:v,n:null};return Cu?Cu.n=x:Yl=x,Cu=x,ai||(Xl=clearTimeout(Xl),ai=1,oi(po)),x}function po(){var u=ra(),f=Ql()-u;f>24?(isFinite(f)&&(clearTimeout(Xl),Xl=setTimeout(po,f)),ai=0):(ai=1,oi(po))}t.timer.flush=function(){ra(),Ql()};function ra(){for(var u=Date.now(),f=Yl;f;)u>=f.t&&f.c(u-f.t)&&(f.c=null),f=f.n;return u}function Ql(){for(var u,f=Yl,h=1/0;f;)f.c?(f.t<h&&(h=f.t),f=(u=f).n):f=u?u.n=f.n:Yl=f.n;return Cu=u,h}t.round=function(u,f){return f?Math.round(u*(f=Math.pow(10,f)))/f:Math.round(u)},t.geom={};function Li(u){return u[0]}function Di(u){return u[1]}t.geom.hull=function(u){var f=Li,h=Di;if(arguments.length)return p(u);function p(v){if(v.length<3)return[];var x=mr(f),O=mr(h),S,P=v.length,N=[],L=[];for(S=0;S<P;S++)N.push([+x.call(this,v[S],S),+O.call(this,v[S],S),S]);for(N.sort(Ep),S=0;S<P;S++)L.push([N[S][0],-N[S][1]]);var B=Ou(N),z=Ou(L),ie=z[0]===B[0],oe=z[z.length-1]===B[B.length-1],G=[];for(S=B.length-1;S>=0;--S)G.push(v[N[B[S]][2]]);for(S=+ie;S<z.length-oe;++S)G.push(v[N[z[S]][2]]);return G}return p.x=function(v){return arguments.length?(f=v,p):f},p.y=function(v){return arguments.length?(h=v,p):h},p};function Ou(u){for(var f=u.length,h=[0,1],p=2,v=2;v<f;v++){for(;p>1&&ey(u[h[p-2]],u[h[p-1]],u[v])<=0;)--p;h[p++]=v}return h.slice(0,p)}function Ep(u,f){return u[0]-f[0]||u[1]-f[1]}t.geom.polygon=function(u){return Ht(u,vo),u};var vo=t.geom.polygon.prototype=[];vo.area=function(){for(var u=-1,f=this.length,h,p=this[f-1],v=0;++u<f;)h=p,p=this[u],v+=h[1]*p[0]-h[0]*p[1];return v*.5},vo.centroid=function(u){var f=-1,h=this.length,p=0,v=0,x,O=this[h-1],S;for(arguments.length||(u=-1/(6*this.area()));++f<h;)x=O,O=this[f],S=x[0]*O[1]-O[0]*x[1],p+=(x[0]+O[0])*S,v+=(x[1]+O[1])*S;return[p*u,v*u]},vo.clip=function(u){for(var f,h=Ap(u),p=-1,v=this.length-Ap(this),x,O,S=this[v-1],P,N,L;++p<v;){for(f=u.slice(),u.length=0,P=this[p],N=f[(O=f.length-h)-1],x=-1;++x<O;)L=f[x],Zl(L,S,P)?(Zl(N,S,P)||u.push(Kf(N,L,S,P)),u.push(L)):Zl(N,S,P)&&u.push(Kf(N,L,S,P)),N=L;h&&u.push(u[0]),S=P}return u};function Zl(u,f,h){return(h[0]-f[0])*(u[1]-f[1])<(h[1]-f[1])*(u[0]-f[0])}function Kf(u,f,h,p){var v=u[0],x=h[0],O=f[0]-v,S=p[0]-x,P=u[1],N=h[1],L=f[1]-P,B=p[1]-N,z=(S*(P-N)-B*(v-x))/(B*O-S*L);return[v+z*O,P+z*L]}function Ap(u){var f=u[0],h=u[u.length-1];return!(f[0]-h[0]||f[1]-h[1])}var mo,ka,na,ku=[],Mu,Ma,Ia=[];function Jf(){es(this),this.edge=this.site=this.circle=null}function Kl(u){var f=ku.pop()||new Jf;return f.site=u,f}function Iu(u){ui(u),na.remove(u),ku.push(u),es(u)}function ec(u){var f=u.circle,h=f.x,p=f.cy,v={x:h,y:p},x=u.P,O=u.N,S=[u];Iu(u);for(var P=x;P.circle&&_(h-P.circle.x)<ir&&_(p-P.circle.cy)<ir;)x=P.P,S.unshift(P),Iu(P),P=x;S.unshift(P),ui(P);for(var N=O;N.circle&&_(h-N.circle.x)<ir&&_(p-N.circle.cy)<ir;)O=N.N,S.push(N),Iu(N),N=O;S.push(N),ui(N);var L=S.length,B;for(B=1;B<L;++B)N=S[B],P=S[B-1],go(N.edge,P.site,N.site,v);P=S[0],N=S[L-1],N.edge=Fu(P.site,N.site,null,v),Pa(P),Pa(N)}function Tp(u){for(var f=u.x,h=u.y,p,v,x,O,S=na._;S;)if(x=tc(S,h)-f,x>ir)S=S.L;else if(O=f-Cp(S,h),O>ir){if(!S.R){p=S;break}S=S.R}else{x>-ir?(p=S.P,v=S):O>-ir?(p=S,v=S.N):p=v=S;break}var P=Kl(u);if(na.insert(p,P),!(!p&&!v)){if(p===v){ui(p),v=Kl(p.site),na.insert(P,v),P.edge=v.edge=Fu(p.site,P.site),Pa(p),Pa(v);return}if(!v){P.edge=Fu(p.site,P.site);return}ui(p),ui(v);var N=p.site,L=N.x,B=N.y,z=u.x-L,ie=u.y-B,oe=v.site,G=oe.x-L,X=oe.y-B,J=2*(z*X-ie*G),ue=z*z+ie*ie,le=G*G+X*X,te={x:(X*ue-ie*le)/J+L,y:(z*le-G*ue)/J+B};go(v.edge,N,oe,te),P.edge=Fu(N,u,null,te),v.edge=Fu(u,oe,null,te),Pa(p),Pa(v)}}function tc(u,f){var h=u.site,p=h.x,v=h.y,x=v-f;if(!x)return p;var O=u.P;if(!O)return-1/0;h=O.site;var S=h.x,P=h.y,N=P-f;if(!N)return S;var L=S-p,B=1/x-1/N,z=L/N;return B?(-z+Math.sqrt(z*z-2*B*(L*L/(-2*N)-P+N/2+v-x/2)))/B+p:(p+S)/2}function Cp(u,f){var h=u.N;if(h)return tc(h,f);var p=u.site;return p.y===f?p.x:1/0}function rc(u){this.site=u,this.edges=[]}rc.prototype.prepare=function(){for(var u=this.edges,f=u.length,h;f--;)h=u[f].edge,(!h.b||!h.a)&&u.splice(f,1);return u.sort(nc),u.length};function Op(u){for(var f=u[0][0],h=u[1][0],p=u[0][1],v=u[1][1],x,O,S,P,N=ka,L=N.length,B,z,ie,oe,G,X;L--;)if(B=N[L],!(!B||!B.prepare()))for(ie=B.edges,oe=ie.length,z=0;z<oe;)X=ie[z].end(),S=X.x,P=X.y,G=ie[++z%oe].start(),x=G.x,O=G.y,(_(S-x)>ir||_(P-O)>ir)&&(ie.splice(z,0,new Jl(iy(B.site,X,_(S-f)<ir&&v-P>ir?{x:f,y:_(x-f)<ir?O:v}:_(P-v)<ir&&h-S>ir?{x:_(O-v)<ir?x:h,y:v}:_(S-h)<ir&&P-p>ir?{x:h,y:_(x-h)<ir?O:p}:_(P-p)<ir&&S-f>ir?{x:_(O-p)<ir?x:f,y:p}:null),B.site,null)),++oe)}function nc(u,f){return f.angle-u.angle}function kp(){es(this),this.x=this.y=this.arc=this.site=this.cy=null}function Pa(u){var f=u.P,h=u.N;if(!(!f||!h)){var p=f.site,v=u.site,x=h.site;if(p!==x){var O=v.x,S=v.y,P=p.x-O,N=p.y-S,L=x.x-O,X=x.y-S,B=2*(P*X-N*L);if(!(B>=-dp)){var z=P*P+N*N,ie=L*L+X*X,oe=(X*z-N*ie)/B,G=(P*ie-L*z)/B,X=G+S,J=Ia.pop()||new kp;J.arc=u,J.site=v,J.x=oe+O,J.y=X+Math.sqrt(oe*oe+G*G),J.cy=X,u.circle=J;for(var ue=null,le=Ma._;le;)if(J.y<le.y||J.y===le.y&&J.x<=le.x)if(le.L)le=le.L;else{ue=le.P;break}else if(le.R)le=le.R;else{ue=le;break}Ma.insert(ue,J),ue||(Mu=J)}}}}function ui(u){var f=u.circle;f&&(f.P||(Mu=f.N),Ma.remove(f),Ia.push(f),es(f),u.circle=null)}function ic(u,f,h,p){return function(v){var x=v.a,O=v.b,S=x.x,P=x.y,N=O.x,L=O.y,B=0,z=1,ie=N-S,oe=L-P,G;if(G=u-S,!(!ie&&G>0)){if(G/=ie,ie<0){if(G<B)return;G<z&&(z=G)}else if(ie>0){if(G>z)return;G>B&&(B=G)}if(G=h-S,!(!ie&&G<0)){if(G/=ie,ie<0){if(G>z)return;G>B&&(B=G)}else if(ie>0){if(G<B)return;G<z&&(z=G)}if(G=f-P,!(!oe&&G>0)){if(G/=oe,oe<0){if(G<B)return;G<z&&(z=G)}else if(oe>0){if(G>z)return;G>B&&(B=G)}if(G=p-P,!(!oe&&G<0)){if(G/=oe,oe<0){if(G>z)return;G>B&&(B=G)}else if(oe>0){if(G<B)return;G<z&&(z=G)}return B>0&&(v.a={x:S+B*ie,y:P+B*oe}),z<1&&(v.b={x:S+z*ie,y:P+z*oe}),v}}}}}}function ac(u){for(var f=mo,h=ic(u[0][0],u[0][1],u[1][0],u[1][1]),p=f.length,v;p--;)v=f[p],(!Pu(v,u)||!h(v)||_(v.a.x-v.b.x)<ir&&_(v.a.y-v.b.y)<ir)&&(v.a=v.b=null,f.splice(p,1))}function Pu(u,f){var h=u.b;if(h)return!0;var p=u.a,v=f[0][0],x=f[1][0],O=f[0][1],S=f[1][1],P=u.l,N=u.r,L=P.x,B=P.y,z=N.x,ie=N.y,oe=(L+z)/2,G=(B+ie)/2,X,J;if(ie===B){if(oe<v||oe>=x)return;if(L>z){if(!p)p={x:oe,y:O};else if(p.y>=S)return;h={x:oe,y:S}}else{if(!p)p={x:oe,y:S};else if(p.y<O)return;h={x:oe,y:O}}}else if(X=(L-z)/(ie-B),J=G-X*oe,X<-1||X>1)if(L>z){if(!p)p={x:(O-J)/X,y:O};else if(p.y>=S)return;h={x:(S-J)/X,y:S}}else{if(!p)p={x:(S-J)/X,y:S};else if(p.y<O)return;h={x:(O-J)/X,y:O}}else if(B<ie){if(!p)p={x:v,y:X*v+J};else if(p.x>=x)return;h={x,y:X*x+J}}else{if(!p)p={x,y:X*x+J};else if(p.x<v)return;h={x:v,y:X*v+J}}return u.a=p,u.b=h,!0}function Mp(u,f){this.l=u,this.r=f,this.a=this.b=null}function Fu(u,f,h,p){var v=new Mp(u,f);return mo.push(v),h&&go(v,u,f,h),p&&go(v,f,u,p),ka[u.i].edges.push(new Jl(v,u,f)),ka[f.i].edges.push(new Jl(v,f,u)),v}function iy(u,f,h){var p=new Mp(u,null);return p.a=f,p.b=h,mo.push(p),p}function go(u,f,h,p){!u.a&&!u.b?(u.a=p,u.l=f,u.r=h):u.l===h?u.b=p:u.a=p}function Jl(u,f,h){var p=u.a,v=u.b;this.edge=u,this.site=f,this.angle=h?Math.atan2(h.y-f.y,h.x-f.x):u.l===f?Math.atan2(v.x-p.x,p.y-v.y):Math.atan2(p.x-v.x,v.y-p.y)}Jl.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}};function oc(){this._=null}function es(u){u.U=u.C=u.L=u.R=u.P=u.N=null}oc.prototype={insert:function(u,f){var h,p,v;if(u){if(f.P=u,f.N=u.N,u.N&&(u.N.P=f),u.N=f,u.R){for(u=u.R;u.L;)u=u.L;u.L=f}else u.R=f;h=u}else this._?(u=ts(this._),f.P=null,f.N=u,u.P=u.L=f,h=u):(f.P=f.N=null,this._=f,h=null);for(f.L=f.R=null,f.U=h,f.C=!0,u=f;h&&h.C;)p=h.U,h===p.L?(v=p.R,v&&v.C?(h.C=v.C=!1,p.C=!0,u=p):(u===h.R&&(Fa(this,h),u=h,h=u.U),h.C=!1,p.C=!0,Ru(this,p))):(v=p.L,v&&v.C?(h.C=v.C=!1,p.C=!0,u=p):(u===h.L&&(Ru(this,h),u=h,h=u.U),h.C=!1,p.C=!0,Fa(this,p))),h=u.U;this._.C=!1},remove:function(u){u.N&&(u.N.P=u.P),u.P&&(u.P.N=u.N),u.N=u.P=null;var f=u.U,h,p=u.L,v=u.R,x,O;if(p?v?x=ts(v):x=p:x=v,f?f.L===u?f.L=x:f.R=x:this._=x,p&&v?(O=x.C,x.C=u.C,x.L=p,p.U=x,x!==v?(f=x.U,x.U=u.U,u=x.R,f.L=u,x.R=v,v.U=x):(x.U=f,f=x,u=x.R)):(O=u.C,u=x),u&&(u.U=f),!O){if(u&&u.C){u.C=!1;return}do{if(u===this._)break;if(u===f.L){if(h=f.R,h.C&&(h.C=!1,f.C=!0,Fa(this,f),h=f.R),h.L&&h.L.C||h.R&&h.R.C){(!h.R||!h.R.C)&&(h.L.C=!1,h.C=!0,Ru(this,h),h=f.R),h.C=f.C,f.C=h.R.C=!1,Fa(this,f),u=this._;break}}else if(h=f.L,h.C&&(h.C=!1,f.C=!0,Ru(this,f),h=f.L),h.L&&h.L.C||h.R&&h.R.C){(!h.L||!h.L.C)&&(h.R.C=!1,h.C=!0,Fa(this,h),h=f.L),h.C=f.C,f.C=h.L.C=!1,Ru(this,f),u=this._;break}h.C=!0,u=f,f=f.U}while(!u.C);u&&(u.C=!1)}}};function Fa(u,f){var h=f,p=f.R,v=h.U;v?v.L===h?v.L=p:v.R=p:u._=p,p.U=v,h.U=p,h.R=p.L,h.R&&(h.R.U=h),p.L=h}function Ru(u,f){var h=f,p=f.L,v=h.U;v?v.L===h?v.L=p:v.R=p:u._=p,p.U=v,h.U=p,h.L=p.R,h.L&&(h.L.U=h),p.R=h}function ts(u){for(;u.L;)u=u.L;return u}function rs(u,f){var h=u.sort(Ip).pop(),p,v,x;for(mo=[],ka=new Array(u.length),na=new oc,Ma=new oc;;)if(x=Mu,h&&(!x||h.y<x.y||h.y===x.y&&h.x<x.x))(h.x!==p||h.y!==v)&&(ka[h.i]=new rc(h),Tp(h),p=h.x,v=h.y),h=u.pop();else if(x)ec(x.arc);else break;f&&(ac(f),Op(f));var O={cells:ka,edges:mo};return na=Ma=mo=ka=null,O}function Ip(u,f){return f.y-u.y||f.x-u.x}t.geom.voronoi=function(u){var f=Li,h=Di,p=f,v=h,x=yo;if(u)return O(u);function O(P){var N=new Array(P.length),L=x[0][0],B=x[0][1],z=x[1][0],ie=x[1][1];return rs(S(P),x).cells.forEach(function(oe,G){var X=oe.edges,J=oe.site,ue=N[G]=X.length?X.map(function(le){var te=le.start();return[te.x,te.y]}):J.x>=L&&J.x<=z&&J.y>=B&&J.y<=ie?[[L,ie],[z,ie],[z,B],[L,B]]:[];ue.point=P[G]}),N}function S(P){return P.map(function(N,L){return{x:Math.round(p(N,L)/ir)*ir,y:Math.round(v(N,L)/ir)*ir,i:L}})}return O.links=function(P){return rs(S(P)).edges.filter(function(N){return N.l&&N.r}).map(function(N){return{source:P[N.l.i],target:P[N.r.i]}})},O.triangles=function(P){var N=[];return rs(S(P)).cells.forEach(function(L,B){for(var z=L.site,ie=L.edges.sort(nc),oe=-1,G=ie.length,X,J=ie[G-1].edge,ue=J.l===z?J.r:J.l;++oe<G;)X=ue,J=ie[oe].edge,ue=J.l===z?J.r:J.l,B<X.i&&B<ue.i&&ay(z,X,ue)<0&&N.push([P[B],P[X.i],P[ue.i]])}),N},O.x=function(P){return arguments.length?(p=mr(f=P),O):f},O.y=function(P){return arguments.length?(v=mr(h=P),O):h},O.clipExtent=function(P){return arguments.length?(x=P??yo,O):x===yo?null:x},O.size=function(P){return arguments.length?O.clipExtent(P&&[[0,0],P]):x===yo?null:x&&x[1]},O};var yo=[[-1e6,-1e6],[1e6,1e6]];function ay(u,f,h){return(u.x-h.x)*(f.y-u.y)-(u.x-f.x)*(h.y-u.y)}t.geom.delaunay=function(u){return t.geom.voronoi().triangles(u)},t.geom.quadtree=function(u,f,h,p,v){var x=Li,O=Di,S;if(S=arguments.length)return x=ns,O=oy,S===3&&(v=h,p=f,h=f=0),P(u);function P(N){var L,B=mr(x),z=mr(O),ie,oe,G,X,J,ue,le,te;if(f!=null)J=f,ue=h,le=p,te=v;else if(le=te=-(J=ue=1/0),ie=[],oe=[],X=N.length,S)for(G=0;G<X;++G)L=N[G],L.x<J&&(J=L.x),L.y<ue&&(ue=L.y),L.x>le&&(le=L.x),L.y>te&&(te=L.y),ie.push(L.x),oe.push(L.y);else for(G=0;G<X;++G){var Pe=+B(L=N[G],G),Ue=+z(L,G);Pe<J&&(J=Pe),Ue<ue&&(ue=Ue),Pe>le&&(le=Pe),Ue>te&&(te=Ue),ie.push(Pe),oe.push(Ue)}var tt=le-J,je=te-ue;tt>je?te=ue+tt:le=J+je;function at(bt,zt,ar,Mr,dr,rt,Wt,Yt){if(!(isNaN(ar)||isNaN(Mr)))if(bt.leaf){var or=bt.x,Sr=bt.y;if(or!=null)if(_(or-ar)+_(Sr-Mr)<.01)vt(bt,zt,ar,Mr,dr,rt,Wt,Yt);else{var Br=bt.point;bt.x=bt.y=bt.point=null,vt(bt,Br,or,Sr,dr,rt,Wt,Yt),vt(bt,zt,ar,Mr,dr,rt,Wt,Yt)}else bt.x=ar,bt.y=Mr,bt.point=zt}else vt(bt,zt,ar,Mr,dr,rt,Wt,Yt)}function vt(bt,zt,ar,Mr,dr,rt,Wt,Yt){var or=(dr+Wt)*.5,Sr=(rt+Yt)*.5,Br=ar>=or,Yr=Mr>=Sr,pn=Yr<<1|Br;bt.leaf=!1,bt=bt.nodes[pn]||(bt.nodes[pn]=Pp()),Br?dr=or:Wt=or,Yr?rt=Sr:Yt=Sr,at(bt,zt,ar,Mr,dr,rt,Wt,Yt)}var Gt=Pp();if(Gt.add=function(bt){at(Gt,bt,+B(bt,++G),+z(bt,G),J,ue,le,te)},Gt.visit=function(bt){Nu(bt,Gt,J,ue,le,te)},Gt.find=function(bt){return uy(Gt,bt[0],bt[1],J,ue,le,te)},G=-1,f==null){for(;++G<X;)at(Gt,N[G],ie[G],oe[G],J,ue,le,te);--G}else N.forEach(Gt.add);return ie=oe=N=L=null,Gt}return P.x=function(N){return arguments.length?(x=N,P):x},P.y=function(N){return arguments.length?(O=N,P):O},P.extent=function(N){return arguments.length?(N==null?f=h=p=v=null:(f=+N[0][0],h=+N[0][1],p=+N[1][0],v=+N[1][1]),P):f==null?null:[[f,h],[p,v]]},P.size=function(N){return arguments.length?(N==null?f=h=p=v=null:(f=h=0,p=+N[0],v=+N[1]),P):f==null?null:[p-f,v-h]},P};function ns(u){return u.x}function oy(u){return u.y}function Pp(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function Nu(u,f,h,p,v,x){if(!u(f,h,p,v,x)){var O=(h+v)*.5,S=(p+x)*.5,P=f.nodes;P[0]&&Nu(u,P[0],h,p,O,S),P[1]&&Nu(u,P[1],O,p,v,S),P[2]&&Nu(u,P[2],h,S,O,x),P[3]&&Nu(u,P[3],O,S,v,x)}}function uy(u,f,h,p,v,x,O){var S=1/0,P;return function N(L,B,z,ie,oe){if(!(B>x||z>O||ie<p||oe<v)){if(G=L.point){var G,X=f-L.x,J=h-L.y,ue=X*X+J*J;if(ue<S){var le=Math.sqrt(S=ue);p=f-le,v=h-le,x=f+le,O=h+le,P=G}}for(var te=L.nodes,Pe=(B+ie)*.5,Ue=(z+oe)*.5,tt=f>=Pe,je=h>=Ue,at=je<<1|tt,vt=at+4;at<vt;++at)if(L=te[at&3])switch(at&3){case 0:N(L,B,z,Pe,Ue);break;case 1:N(L,Pe,z,ie,Ue);break;case 2:N(L,B,Ue,Pe,oe);break;case 3:N(L,Pe,Ue,ie,oe);break}}}(u,p,v,x,O),P}t.interpolateRgb=uc;function uc(u,f){u=t.rgb(u),f=t.rgb(f);var h=u.r,p=u.g,v=u.b,x=f.r-h,O=f.g-p,S=f.b-v;return function(P){return"#"+fo(Math.round(h+x*P))+fo(Math.round(p+O*P))+fo(Math.round(v+S*P))}}t.interpolateObject=Fp;function Fp(u,f){var h={},p={},v;for(v in u)v in f?h[v]=xi(u[v],f[v]):p[v]=u[v];for(v in f)v in u||(p[v]=f[v]);return function(x){for(v in h)p[v]=h[v](x);return p}}t.interpolateNumber=$i;function $i(u,f){return u=+u,f=+f,function(h){return u*(1-h)+f*h}}t.interpolateString=lc;function lc(u,f){var h=Ra.lastIndex=sc.lastIndex=0,p,v,x,O=-1,S=[],P=[];for(u=u+"",f=f+"";(p=Ra.exec(u))&&(v=sc.exec(f));)(x=v.index)>h&&(x=f.slice(h,x),S[O]?S[O]+=x:S[++O]=x),(p=p[0])===(v=v[0])?S[O]?S[O]+=v:S[++O]=v:(S[++O]=null,P.push({i:O,x:$i(p,v)})),h=sc.lastIndex;return h<f.length&&(x=f.slice(h),S[O]?S[O]+=x:S[++O]=x),S.length<2?P[0]?(f=P[0].x,function(N){return f(N)+""}):function(){return f}:(f=P.length,function(N){for(var L=0,B;L<f;++L)S[(B=P[L]).i]=B.x(N);return S.join("")})}var Ra=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,sc=new RegExp(Ra.source,"g");t.interpolate=xi;function xi(u,f){for(var h=t.interpolators.length,p;--h>=0&&!(p=t.interpolators[h](u,f)););return p}t.interpolators=[function(u,f){var h=typeof f;return(h==="string"?co.has(f.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(f)?uc:lc:f instanceof Ji?uc:Array.isArray(f)?In:h==="object"&&isNaN(f)?Fp:$i)(u,f)}],t.interpolateArray=In;function In(u,f){var h=[],p=[],v=u.length,x=f.length,O=Math.min(u.length,f.length),S;for(S=0;S<O;++S)h.push(xi(u[S],f[S]));for(;S<v;++S)p[S]=u[S];for(;S<x;++S)p[S]=f[S];return function(P){for(S=0;S<O;++S)p[S]=h[S](P);return p}}var Na=function(){return nt},Rp=t.map({linear:Na,poly:Kr,quad:function(){return Dp},cubic:function(){return ly},sin:function(){return $p},exp:function(){return Bp},circle:function(){return La},elastic:zp,back:Up,bounce:function(){return sy}}),Np=t.map({in:nt,out:fc,"in-out":cc,"out-in":function(u){return cc(fc(u))}});t.ease=function(u){var f=u.indexOf("-"),h=f>=0?u.slice(0,f):u,p=f>=0?u.slice(f+1):"in";return h=Rp.get(h)||Na,p=Np.get(p)||nt,Lp(p(h.apply(null,r.call(arguments,1))))};function Lp(u){return function(f){return f<=0?0:f>=1?1:u(f)}}function fc(u){return function(f){return 1-u(1-f)}}function cc(u){return function(f){return .5*(f<.5?u(2*f):2-u(2-2*f))}}function Dp(u){return u*u}function ly(u){return u*u*u}function xo(u){if(u<=0)return 0;if(u>=1)return 1;var f=u*u,h=f*u;return 4*(u<.5?h:3*(u-f)+h-.75)}function Kr(u){return function(f){return Math.pow(f,u)}}function $p(u){return 1-Math.cos(u*yi)}function Bp(u){return Math.pow(2,10*(u-1))}function La(u){return 1-Math.sqrt(1-u*u)}function zp(u,f){var h;return arguments.length<2&&(f=.45),arguments.length?h=f/so*Math.asin(1/u):(u=1,h=f/4),function(p){return 1+u*Math.pow(2,-10*p)*Math.sin((p-h)*so/f)}}function Up(u){return u||(u=1.70158),function(f){return f*f*((u+1)*f-u)}}function sy(u){return u<1/2.75?7.5625*u*u:u<2/2.75?7.5625*(u-=1.5/2.75)*u+.75:u<2.5/2.75?7.5625*(u-=2.25/2.75)*u+.9375:7.5625*(u-=2.625/2.75)*u+.984375}t.interpolateHcl=fy;function fy(u,f){u=t.hcl(u),f=t.hcl(f);var h=u.h,p=u.c,v=u.l,x=f.h-h,O=f.c-p,S=f.l-v;return isNaN(O)&&(O=0,p=isNaN(p)?f.c:p),isNaN(x)?(x=0,h=isNaN(h)?f.h:h):x>180?x-=360:x<-180&&(x+=360),function(P){return Tu(h+x*P,p+O*P,v+S*P)+""}}t.interpolateHsl=cy;function cy(u,f){u=t.hsl(u),f=t.hsl(f);var h=u.h,p=u.s,v=u.l,x=f.h-h,O=f.s-p,S=f.l-v;return isNaN(O)&&(O=0,p=isNaN(p)?f.s:p),isNaN(x)?(x=0,h=isNaN(h)?f.h:h):x>180?x-=360:x<-180&&(x+=360),function(P){return Wl(h+x*P,p+O*P,v+S*P)+""}}t.interpolateLab=hy;function hy(u,f){u=t.lab(u),f=t.lab(f);var h=u.l,p=u.a,v=u.b,x=f.l-h,O=f.a-p,S=f.b-v;return function(P){return bp(h+x*P,p+O*P,v+S*P)+""}}t.interpolateRound=is;function is(u,f){return f-=u,function(h){return Math.round(u+f*h)}}t.transform=function(u){var f=i.createElementNS(t.ns.prefix.svg,"g");return(t.transform=function(h){if(h!=null){f.setAttribute("transform",h);var p=f.transform.baseVal.consolidate()}return new hc(p?p.matrix:dy)})(u)};function hc(u){var f=[u.a,u.b],h=[u.c,u.d],p=dc(f),v=jp(f,h),x=dc(Gp(h,f,-v))||0;f[0]*h[1]<h[0]*f[1]&&(f[0]*=-1,f[1]*=-1,p*=-1,v*=-1),this.rotate=(p?Math.atan2(f[1],f[0]):Math.atan2(-h[0],h[1]))*_u,this.translate=[u.e,u.f],this.scale=[p,x],this.skew=x?Math.atan2(v,x)*_u:0}hc.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function jp(u,f){return u[0]*f[0]+u[1]*f[1]}function dc(u){var f=Math.sqrt(jp(u,u));return f&&(u[0]/=f,u[1]/=f),f}function Gp(u,f,h){return u[0]+=h*f[0],u[1]+=h*f[1],u}var dy={a:1,b:0,c:0,d:1,e:0,f:0};t.interpolateTransform=pc;function Bi(u){return u.length?u.pop()+",":""}function py(u,f,h,p){if(u[0]!==f[0]||u[1]!==f[1]){var v=h.push("translate(",null,",",null,")");p.push({i:v-4,x:$i(u[0],f[0])},{i:v-2,x:$i(u[1],f[1])})}else(f[0]||f[1])&&h.push("translate("+f+")")}function ia(u,f,h,p){u!==f?(u-f>180?f+=360:f-u>180&&(u+=360),p.push({i:h.push(Bi(h)+"rotate(",null,")")-2,x:$i(u,f)})):f&&h.push(Bi(h)+"rotate("+f+")")}function as(u,f,h,p){u!==f?p.push({i:h.push(Bi(h)+"skewX(",null,")")-2,x:$i(u,f)}):f&&h.push(Bi(h)+"skewX("+f+")")}function Wp(u,f,h,p){if(u[0]!==f[0]||u[1]!==f[1]){var v=h.push(Bi(h)+"scale(",null,",",null,")");p.push({i:v-4,x:$i(u[0],f[0])},{i:v-2,x:$i(u[1],f[1])})}else(f[0]!==1||f[1]!==1)&&h.push(Bi(h)+"scale("+f+")")}function pc(u,f){var h=[],p=[];return u=t.transform(u),f=t.transform(f),py(u.translate,f.translate,h,p),ia(u.rotate,f.rotate,h,p),as(u.skew,f.skew,h,p),Wp(u.scale,f.scale,h,p),u=f=null,function(v){for(var x=-1,O=p.length,S;++x<O;)h[(S=p[x]).i]=S.x(v);return h.join("")}}function Hp(u,f){return f=(f-=u=+u)||1/f,function(h){return(h-u)/f}}function Vp(u,f){return f=(f-=u=+u)||1/f,function(h){return Math.max(0,Math.min(1,(h-u)/f))}}t.layout={},t.layout.bundle=function(){return function(u){for(var f=[],h=-1,p=u.length;++h<p;)f.push(qp(u[h]));return f}};function qp(u){for(var f=u.source,h=u.target,p=Yp(f,h),v=[f];f!==p;)f=f.parent,v.push(f);for(var x=v.length;h!==p;)v.splice(x,0,h),h=h.parent;return v}function vc(u){for(var f=[],h=u.parent;h!=null;)f.push(u),u=h,h=h.parent;return f.push(u),f}function Yp(u,f){if(u===f)return u;for(var h=vc(u),p=vc(f),v=h.pop(),x=p.pop(),O=null;v===x;)O=v,v=h.pop(),x=p.pop();return O}t.layout.chord=function(){var u={},f,h,p,v,x=0,O,S,P;function N(){var B={},z=[],ie=t.range(v),oe=[],G,X,J,ue,le;for(f=[],h=[],G=0,ue=-1;++ue<v;){for(X=0,le=-1;++le<v;)X+=p[ue][le];z.push(X),oe.push(t.range(v)),G+=X}for(O&&ie.sort(function(Gt,bt){return O(z[Gt],z[bt])}),S&&oe.forEach(function(Gt,bt){Gt.sort(function(zt,ar){return S(p[bt][zt],p[bt][ar])})}),G=(so-x*v)/G,X=0,ue=-1;++ue<v;){for(J=X,le=-1;++le<v;){var te=ie[ue],Pe=oe[te][le],Ue=p[te][Pe],tt=X,je=X+=Ue*G;B[te+"-"+Pe]={index:te,subindex:Pe,startAngle:tt,endAngle:je,value:Ue}}h[te]={index:te,startAngle:J,endAngle:X,value:z[te]},X+=x}for(ue=-1;++ue<v;)for(le=ue-1;++le<v;){var at=B[ue+"-"+le],vt=B[le+"-"+ue];(at.value||vt.value)&&f.push(at.value<vt.value?{source:vt,target:at}:{source:at,target:vt})}P&&L()}function L(){f.sort(function(B,z){return P((B.source.value+B.target.value)/2,(z.source.value+z.target.value)/2)})}return u.matrix=function(B){return arguments.length?(v=(p=B)&&p.length,f=h=null,u):p},u.padding=function(B){return arguments.length?(x=B,f=h=null,u):x},u.sortGroups=function(B){return arguments.length?(O=B,f=h=null,u):O},u.sortSubgroups=function(B){return arguments.length?(S=B,f=null,u):S},u.sortChords=function(B){return arguments.length?(P=B,f&&L(),u):P},u.chords=function(){return f||N(),f},u.groups=function(){return h||N(),h},u},t.layout.force=function(){var u={},f=t.dispatch("start","tick","end"),h,p=[1,1],v,x,O=.9,S=zi,P=mc,N=-30,L=bo,B=.1,z=.64,ie=[],oe=[],G,X,J;function ue(te){return function(Pe,Ue,tt,je){if(Pe.point!==te){var at=Pe.cx-te.x,vt=Pe.cy-te.y,Gt=je-Ue,bt=at*at+vt*vt;if(Gt*Gt/z<bt){if(bt<L){var zt=Pe.charge/bt;te.px-=at*zt,te.py-=vt*zt}return!0}if(Pe.point&&bt&&bt<L){var zt=Pe.pointCharge/bt;te.px-=at*zt,te.py-=vt*zt}}return!Pe.charge}}u.tick=function(){if((x*=.99)<.005)return h=null,f.end({type:"end",alpha:x=0}),!0;var te=ie.length,Pe=oe.length,Ue,tt,je,at,vt,Gt,bt,zt,ar;for(tt=0;tt<Pe;++tt)je=oe[tt],at=je.source,vt=je.target,zt=vt.x-at.x,ar=vt.y-at.y,(Gt=zt*zt+ar*ar)&&(Gt=x*X[tt]*((Gt=Math.sqrt(Gt))-G[tt])/Gt,zt*=Gt,ar*=Gt,vt.x-=zt*(bt=at.weight+vt.weight?at.weight/(at.weight+vt.weight):.5),vt.y-=ar*bt,at.x+=zt*(bt=1-bt),at.y+=ar*bt);if((bt=x*B)&&(zt=p[0]/2,ar=p[1]/2,tt=-1,bt))for(;++tt<te;)je=ie[tt],je.x+=(zt-je.x)*bt,je.y+=(ar-je.y)*bt;if(N)for(Kp(Ue=t.geom.quadtree(ie),x,J),tt=-1;++tt<te;)(je=ie[tt]).fixed||Ue.visit(ue(je));for(tt=-1;++tt<te;)je=ie[tt],je.fixed?(je.x=je.px,je.y=je.py):(je.x-=(je.px-(je.px=je.x))*O,je.y-=(je.py-(je.py=je.y))*O);f.tick({type:"tick",alpha:x})},u.nodes=function(te){return arguments.length?(ie=te,u):ie},u.links=function(te){return arguments.length?(oe=te,u):oe},u.size=function(te){return arguments.length?(p=te,u):p},u.linkDistance=function(te){return arguments.length?(S=typeof te=="function"?te:+te,u):S},u.distance=u.linkDistance,u.linkStrength=function(te){return arguments.length?(P=typeof te=="function"?te:+te,u):P},u.friction=function(te){return arguments.length?(O=+te,u):O},u.charge=function(te){return arguments.length?(N=typeof te=="function"?te:+te,u):N},u.chargeDistance=function(te){return arguments.length?(L=te*te,u):Math.sqrt(L)},u.gravity=function(te){return arguments.length?(B=+te,u):B},u.theta=function(te){return arguments.length?(z=te*te,u):Math.sqrt(z)},u.alpha=function(te){return arguments.length?(te=+te,x?te>0?x=te:(h.c=null,h.t=NaN,h=null,f.end({type:"end",alpha:x=0})):te>0&&(f.start({type:"start",alpha:x=te}),h=ho(u.tick)),u):x},u.start=function(){var te,Pe=ie.length,Ue=oe.length,tt=p[0],je=p[1],at,vt;for(te=0;te<Pe;++te)(vt=ie[te]).index=te,vt.weight=0;for(te=0;te<Ue;++te)vt=oe[te],typeof vt.source=="number"&&(vt.source=ie[vt.source]),typeof vt.target=="number"&&(vt.target=ie[vt.target]),++vt.source.weight,++vt.target.weight;for(te=0;te<Pe;++te)vt=ie[te],isNaN(vt.x)&&(vt.x=Gt("x",tt)),isNaN(vt.y)&&(vt.y=Gt("y",je)),isNaN(vt.px)&&(vt.px=vt.x),isNaN(vt.py)&&(vt.py=vt.y);if(G=[],typeof S=="function")for(te=0;te<Ue;++te)G[te]=+S.call(this,oe[te],te);else for(te=0;te<Ue;++te)G[te]=S;if(X=[],typeof P=="function")for(te=0;te<Ue;++te)X[te]=+P.call(this,oe[te],te);else for(te=0;te<Ue;++te)X[te]=P;if(J=[],typeof N=="function")for(te=0;te<Pe;++te)J[te]=+N.call(this,ie[te],te);else for(te=0;te<Pe;++te)J[te]=N;function Gt(bt,zt){if(!at){for(at=new Array(Pe),dr=0;dr<Pe;++dr)at[dr]=[];for(dr=0;dr<Ue;++dr){var ar=oe[dr];at[ar.source.index].push(ar.target),at[ar.target.index].push(ar.source)}}for(var Mr=at[te],dr=-1,rt=Mr.length,Wt;++dr<rt;)if(!isNaN(Wt=Mr[dr][bt]))return Wt;return Math.random()*zt}return u.resume()},u.resume=function(){return u.alpha(.1)},u.stop=function(){return u.alpha(0)},u.drag=function(){if(v||(v=t.behavior.drag().origin(nt).on("dragstart.force",Xp).on("drag.force",le).on("dragend.force",Qp)),!arguments.length)return v;this.on("mouseover.force",li).on("mouseout.force",Zp).call(v)};function le(te){te.px=t.event.x,te.py=t.event.y,u.resume()}return t.rebind(u,f,"on")};function Xp(u){u.fixed|=2}function Qp(u){u.fixed&=-7}function li(u){u.fixed|=4,u.px=u.x,u.py=u.y}function Zp(u){u.fixed&=-5}function Kp(u,f,h){var p=0,v=0;if(u.charge=0,!u.leaf)for(var x=u.nodes,O=x.length,S=-1,P;++S<O;)P=x[S],P!=null&&(Kp(P,f,h),u.charge+=P.charge,p+=P.charge*P.cx,v+=P.charge*P.cy);if(u.point){u.leaf||(u.point.x+=Math.random()-.5,u.point.y+=Math.random()-.5);var N=f*h[u.point.index];u.charge+=u.pointCharge=N,p+=N*u.point.x,v+=N*u.point.y}u.cx=p/u.charge,u.cy=v/u.charge}var zi=20,mc=1,bo=1/0;t.layout.hierarchy=function(){var u=vy,f=Jp,h=ev;function p(v){var x=[v],O=[],S;for(v.depth=0;(S=x.pop())!=null;)if(O.push(S),(N=f.call(p,S,S.depth))&&(P=N.length)){for(var P,N,L;--P>=0;)x.push(L=N[P]),L.parent=S,L.depth=S.depth+1;h&&(S.value=0),S.children=N}else h&&(S.value=+h.call(p,S,S.depth)||0),delete S.children;return si(v,function(B){var z,ie;u&&(z=B.children)&&z.sort(u),h&&(ie=B.parent)&&(ie.value+=B.value)}),O}return p.sort=function(v){return arguments.length?(u=v,p):u},p.children=function(v){return arguments.length?(f=v,p):f},p.value=function(v){return arguments.length?(h=v,p):h},p.revalue=function(v){return h&&(_o(v,function(x){x.children&&(x.value=0)}),si(v,function(x){var O;x.children||(x.value=+h.call(p,x,x.depth)||0),(O=x.parent)&&(O.value+=x.value)})),v},p};function wo(u,f){return t.rebind(u,f,"sort","children","value"),u.nodes=u,u.links=my,u}function _o(u,f){for(var h=[u];(u=h.pop())!=null;)if(f(u),(v=u.children)&&(p=v.length))for(var p,v;--p>=0;)h.push(v[p])}function si(u,f){for(var h=[u],p=[];(u=h.pop())!=null;)if(p.push(u),(O=u.children)&&(x=O.length))for(var v=-1,x,O;++v<x;)h.push(O[v]);for(;(u=p.pop())!=null;)f(u)}function Jp(u){return u.children}function ev(u){return u.value}function vy(u,f){return f.value-u.value}function my(u){return t.merge(u.map(function(f){return(f.children||[]).map(function(h){return{source:f,target:h}})}))}t.layout.partition=function(){var u=t.layout.hierarchy(),f=[1,1];function h(x,O,S,P){var N=x.children;if(x.x=O,x.y=x.depth*P,x.dx=S,x.dy=P,N&&(B=N.length)){var L=-1,B,z,ie;for(S=x.value?S/x.value:0;++L<B;)h(z=N[L],O,ie=z.value*S,P),O+=ie}}function p(x){var O=x.children,S=0;if(O&&(N=O.length))for(var P=-1,N;++P<N;)S=Math.max(S,p(O[P]));return 1+S}function v(x,O){var S=u.call(this,x,O);return h(S[0],0,f[0],f[1]/p(S[0])),S}return v.size=function(x){return arguments.length?(f=x,v):f},wo(v,u)},t.layout.pie=function(){var u=Number,f=tv,h=0,p=so,v=0;function x(O){var S=O.length,P=O.map(function(ue,le){return+u.call(x,ue,le)}),N=+(typeof h=="function"?h.apply(this,arguments):h),L=(typeof p=="function"?p.apply(this,arguments):p)-N,B=Math.min(Math.abs(L)/S,+(typeof v=="function"?v.apply(this,arguments):v)),z=B*(L<0?-1:1),ie=t.sum(P),oe=ie?(L-S*z)/ie:0,G=t.range(S),X=[],J;return f!=null&&G.sort(f===tv?function(ue,le){return P[le]-P[ue]}:function(ue,le){return f(O[ue],O[le])}),G.forEach(function(ue){X[ue]={data:O[ue],value:J=P[ue],startAngle:N,endAngle:N+=J*oe+z,padAngle:B}}),X}return x.value=function(O){return arguments.length?(u=O,x):u},x.sort=function(O){return arguments.length?(f=O,x):f},x.startAngle=function(O){return arguments.length?(h=O,x):h},x.endAngle=function(O){return arguments.length?(p=O,x):p},x.padAngle=function(O){return arguments.length?(v=O,x):v},x};var tv={};t.layout.stack=function(){var u=nt,f=yc,h=xc,p=xy,v=gy,x=yy;function O(S,P){if(!(oe=S.length))return S;var N=S.map(function(ue,le){return u.call(O,ue,le)}),L=N.map(function(ue){return ue.map(function(le,te){return[v.call(O,le,te),x.call(O,le,te)]})}),B=f.call(O,L,P);N=t.permute(N,B),L=t.permute(L,B);var z=h.call(O,L,P),ie=N[0].length,oe,G,X,J;for(X=0;X<ie;++X)for(p.call(O,N[0][X],J=z[X],L[0][X][1]),G=1;G<oe;++G)p.call(O,N[G][X],J+=L[G-1][X][1],L[G][X][1]);return S}return O.values=function(S){return arguments.length?(u=S,O):u},O.order=function(S){return arguments.length?(f=typeof S=="function"?S:gc.get(S)||yc,O):f},O.offset=function(S){return arguments.length?(h=typeof S=="function"?S:os.get(S)||xc,O):h},O.x=function(S){return arguments.length?(v=S,O):v},O.y=function(S){return arguments.length?(x=S,O):x},O.out=function(S){return arguments.length?(p=S,O):p},O};function gy(u){return u.x}function yy(u){return u.y}function xy(u,f,h){u.y0=f,u.y=h}var gc=t.map({"inside-out":function(u){var f=u.length,h,p,v=u.map(rv),x=u.map(us),O=t.range(f).sort(function(B,z){return v[B]-v[z]}),S=0,P=0,N=[],L=[];for(h=0;h<f;++h)p=O[h],S<P?(S+=x[p],N.push(p)):(P+=x[p],L.push(p));return L.reverse().concat(N)},reverse:function(u){return t.range(u.length).reverse()},default:yc}),os=t.map({silhouette:function(u){var f=u.length,h=u[0].length,p=[],v=0,x,O,S,P=[];for(O=0;O<h;++O){for(x=0,S=0;x<f;x++)S+=u[x][O][1];S>v&&(v=S),p.push(S)}for(O=0;O<h;++O)P[O]=(v-p[O])/2;return P},wiggle:function(u){var f=u.length,h=u[0],p=h.length,v,x,O,S,P,N,L,B,z,ie=[];for(ie[0]=B=z=0,x=1;x<p;++x){for(v=0,S=0;v<f;++v)S+=u[v][x][1];for(v=0,P=0,L=h[x][0]-h[x-1][0];v<f;++v){for(O=0,N=(u[v][x][1]-u[v][x-1][1])/(2*L);O<v;++O)N+=(u[O][x][1]-u[O][x-1][1])/L;P+=N*u[v][x][1]}ie[x]=B-=S?P/S*L:0,B<z&&(z=B)}for(x=0;x<p;++x)ie[x]-=z;return ie},expand:function(u){var f=u.length,h=u[0].length,p=1/f,v,x,O,S=[];for(x=0;x<h;++x){for(v=0,O=0;v<f;v++)O+=u[v][x][1];if(O)for(v=0;v<f;v++)u[v][x][1]/=O;else for(v=0;v<f;v++)u[v][x][1]=p}for(x=0;x<h;++x)S[x]=0;return S},zero:xc});function yc(u){return t.range(u.length)}function xc(u){for(var f=-1,h=u[0].length,p=[];++f<h;)p[f]=0;return p}function rv(u){for(var f=1,h=0,p=u[0][1],v,x=u.length;f<x;++f)(v=u[f][1])>p&&(h=f,p=v);return h}function us(u){return u.reduce(bc,0)}function bc(u,f){return u+f[1]}t.layout.histogram=function(){var u=!0,f=Number,h=wy,p=by;function v(x,z){for(var S=[],P=x.map(f,this),N=h.call(this,P,z),L=p.call(this,N,P,z),B,z=-1,ie=P.length,oe=L.length-1,G=u?1:1/ie,X;++z<oe;)B=S[z]=[],B.dx=L[z+1]-(B.x=L[z]),B.y=0;if(oe>0)for(z=-1;++z<ie;)X=P[z],X>=N[0]&&X<=N[1]&&(B=S[t.bisect(L,X,1,oe)-1],B.y+=G,B.push(x[z]));return S}return v.value=function(x){return arguments.length?(f=x,v):f},v.range=function(x){return arguments.length?(h=mr(x),v):h},v.bins=function(x){return arguments.length?(p=typeof x=="number"?function(O){return wc(O,x)}:mr(x),v):p},v.frequency=function(x){return arguments.length?(u=!!x,v):u},v};function by(u,f){return wc(u,Math.ceil(Math.log(f.length)/Math.LN2+1))}function wc(u,f){for(var h=-1,p=+u[0],v=(u[1]-p)/f,x=[];++h<=f;)x[h]=v*h+p;return x}function wy(u){return[t.min(u),t.max(u)]}t.layout.pack=function(){var u=t.layout.hierarchy().sort(_y),f=0,h=[1,1],p;function v(x,O){var S=u.call(this,x,O),P=S[0],N=h[0],L=h[1],B=p==null?Math.sqrt:typeof p=="function"?p:function(){return p};if(P.x=P.y=0,si(P,function(ie){ie.r=+B(ie.value)}),si(P,Sc),f){var z=f*(p?1:Math.max(2*P.r/N,2*P.r/L))/2;si(P,function(ie){ie.r+=z}),si(P,Sc),si(P,function(ie){ie.r-=z})}return av(P,N/2,L/2,p?1:1/Math.max(2*P.r/N,2*P.r/L)),S}return v.size=function(x){return arguments.length?(h=x,v):h},v.radius=function(x){return arguments.length?(p=x==null||typeof x=="function"?x:+x,v):p},v.padding=function(x){return arguments.length?(f=+x,v):f},wo(v,u)};function _y(u,f){return u.value-f.value}function _c(u,f){var h=u._pack_next;u._pack_next=f,f._pack_prev=u,f._pack_next=h,h._pack_prev=f}function nv(u,f){u._pack_next=f,f._pack_prev=u}function iv(u,f){var h=f.x-u.x,p=f.y-u.y,v=u.r+f.r;return .999*v*v>h*h+p*p}function Sc(u){if(!(f=u.children)||!(z=f.length))return;var f,h=1/0,p=-1/0,v=1/0,x=-1/0,O,S,P,N,L,B,z;function ie(te){h=Math.min(te.x-te.r,h),p=Math.max(te.x+te.r,p),v=Math.min(te.y-te.r,v),x=Math.max(te.y+te.r,x)}if(f.forEach(Sy),O=f[0],O.x=-O.r,O.y=0,ie(O),z>1&&(S=f[1],S.x=S.r,S.y=0,ie(S),z>2))for(P=f[2],ov(O,S,P),ie(P),_c(O,P),O._pack_prev=P,_c(P,S),S=O._pack_next,N=3;N<z;N++){ov(O,S,P=f[N]);var oe=0,G=1,X=1;for(L=S._pack_next;L!==S;L=L._pack_next,G++)if(iv(L,P)){oe=1;break}if(oe==1)for(B=O._pack_prev;B!==L._pack_prev&&!iv(B,P);B=B._pack_prev,X++);oe?(G<X||G==X&&S.r<O.r?nv(O,S=L):nv(O=B,S),N--):(_c(O,P),S=P,ie(P))}var J=(h+p)/2,ue=(v+x)/2,le=0;for(N=0;N<z;N++)P=f[N],P.x-=J,P.y-=ue,le=Math.max(le,P.r+Math.sqrt(P.x*P.x+P.y*P.y));u.r=le,f.forEach(Ey)}function Sy(u){u._pack_next=u._pack_prev=u}function Ey(u){delete u._pack_next,delete u._pack_prev}function av(u,f,h,p){var v=u.children;if(u.x=f+=p*u.x,u.y=h+=p*u.y,u.r*=p,v)for(var x=-1,O=v.length;++x<O;)av(v[x],f,h,p)}function ov(u,f,h){var p=u.r+h.r,v=f.x-u.x,x=f.y-u.y;if(p&&(v||x)){var O=f.r+h.r,S=v*v+x*x;O*=O,p*=p;var P=.5+(p-O)/(2*S),N=Math.sqrt(Math.max(0,2*O*(p+S)-(p-=S)*p-O*O))/(2*S);h.x=u.x+P*v+N*x,h.y=u.y+P*x-N*v}else h.x=u.x+p,h.y=u.y}t.layout.tree=function(){var u=t.layout.hierarchy().sort(null).value(null),f=uv,h=[1,1],p=null;function v(L,B){var z=u.call(this,L,B),ie=z[0],oe=x(ie);if(si(oe,O),oe.parent.m=-oe.z,_o(oe,S),p)_o(ie,N);else{var G=ie,X=ie,J=ie;_o(ie,function(Pe){Pe.x<G.x&&(G=Pe),Pe.x>X.x&&(X=Pe),Pe.depth>J.depth&&(J=Pe)});var ue=f(G,X)/2-G.x,le=h[0]/(X.x+f(X,G)/2+ue),te=h[1]/(J.depth||1);_o(ie,function(Pe){Pe.x=(Pe.x+ue)*le,Pe.y=Pe.depth*te})}return z}function x(L){for(var B={A:null,children:[L]},z=[B],ie;(ie=z.pop())!=null;)for(var oe=ie.children,G,X=0,J=oe.length;X<J;++X)z.push((oe[X]=G={_:oe[X],parent:ie,children:(G=oe[X].children)&&G.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:X}).a=G);return B.children[0]}function O(L){var B=L.children,z=L.parent.children,ie=L.i?z[L.i-1]:null;if(B.length){Ty(L);var oe=(B[0].z+B[B.length-1].z)/2;ie?(L.z=ie.z+f(L._,ie._),L.m=L.z-oe):L.z=oe}else ie&&(L.z=ie.z+f(L._,ie._));L.parent.A=P(L,ie,L.parent.A||z[0])}function S(L){L._.x=L.z+L.parent.m,L.m+=L.parent.m}function P(L,B,z){if(B){for(var ie=L,oe=L,G=B,X=ie.parent.children[0],J=ie.m,ue=oe.m,le=G.m,te=X.m,Pe;G=Ac(G),ie=Ec(ie),G&&ie;)X=Ec(X),oe=Ac(oe),oe.a=L,Pe=G.z+le-ie.z-J+f(G._,ie._),Pe>0&&(Ay(bi(G,L,z),L,Pe),J+=Pe,ue+=Pe),le+=G.m,J+=ie.m,te+=X.m,ue+=oe.m;G&&!Ac(oe)&&(oe.t=G,oe.m+=le-ue),ie&&!Ec(X)&&(X.t=ie,X.m+=J-te,z=L)}return z}function N(L){L.x*=h[0],L.y=L.depth*h[1]}return v.separation=function(L){return arguments.length?(f=L,v):f},v.size=function(L){return arguments.length?(p=(h=L)==null?N:null,v):p?null:h},v.nodeSize=function(L){return arguments.length?(p=(h=L)==null?null:N,v):p?h:null},wo(v,u)};function uv(u,f){return u.parent==f.parent?1:2}function Ec(u){var f=u.children;return f.length?f[0]:u.t}function Ac(u){var f=u.children,h;return(h=f.length)?f[h-1]:u.t}function Ay(u,f,h){var p=h/(f.i-u.i);f.c-=p,f.s+=h,u.c+=p,f.z+=h,f.m+=h}function Ty(u){for(var f=0,h=0,p=u.children,v=p.length,x;--v>=0;)x=p[v],x.z+=f,x.m+=f,f+=x.s+(h+=x.c)}function bi(u,f,h){return u.a.parent===f.parent?u.a:h}t.layout.cluster=function(){var u=t.layout.hierarchy().sort(null).value(null),f=uv,h=[1,1],p=!1;function v(x,O){var S=u.call(this,x,O),P=S[0],N,L=0;si(P,function(G){var X=G.children;X&&X.length?(G.x=Cy(X),G.y=lv(X)):(G.x=N?L+=f(G,N):0,G.y=0,N=G)});var B=sv(P),z=fv(P),ie=B.x-f(B,z)/2,oe=z.x+f(z,B)/2;return si(P,p?function(G){G.x=(G.x-P.x)*h[0],G.y=(P.y-G.y)*h[1]}:function(G){G.x=(G.x-ie)/(oe-ie)*h[0],G.y=(1-(P.y?G.y/P.y:1))*h[1]}),S}return v.separation=function(x){return arguments.length?(f=x,v):f},v.size=function(x){return arguments.length?(p=(h=x)==null,v):p?null:h},v.nodeSize=function(x){return arguments.length?(p=(h=x)!=null,v):p?h:null},wo(v,u)};function lv(u){return 1+t.max(u,function(f){return f.y})}function Cy(u){return u.reduce(function(f,h){return f+h.x},0)/u.length}function sv(u){var f=u.children;return f&&f.length?sv(f[0]):u}function fv(u){var f=u.children,h;return f&&(h=f.length)?fv(f[h-1]):u}t.layout.treemap=function(){var u=t.layout.hierarchy(),f=Math.round,h=[1,1],p=null,v=Tc,x=!1,O,S="squarify",P=.5*(1+Math.sqrt(5));function N(G,X){for(var J=-1,ue=G.length,le,te;++J<ue;)te=(le=G[J]).value*(X<0?0:X),le.area=isNaN(te)||te<=0?0:te}function L(G){var X=G.children;if(X&&X.length){var J=v(G),ue=[],le=X.slice(),te,Pe=1/0,Ue,tt=S==="slice"?J.dx:S==="dice"?J.dy:S==="slice-dice"?G.depth&1?J.dy:J.dx:Math.min(J.dx,J.dy),je;for(N(le,J.dx*J.dy/G.value),ue.area=0;(je=le.length)>0;)ue.push(te=le[je-1]),ue.area+=te.area,S!=="squarify"||(Ue=z(ue,tt))<=Pe?(le.pop(),Pe=Ue):(ue.area-=ue.pop().area,ie(ue,tt,J,!1),tt=Math.min(J.dx,J.dy),ue.length=ue.area=0,Pe=1/0);ue.length&&(ie(ue,tt,J,!0),ue.length=ue.area=0),X.forEach(L)}}function B(G){var X=G.children;if(X&&X.length){var J=v(G),ue=X.slice(),le,te=[];for(N(ue,J.dx*J.dy/G.value),te.area=0;le=ue.pop();)te.push(le),te.area+=le.area,le.z!=null&&(ie(te,le.z?J.dx:J.dy,J,!ue.length),te.length=te.area=0);X.forEach(B)}}function z(G,X){for(var J=G.area,ue,le=0,te=1/0,Pe=-1,Ue=G.length;++Pe<Ue;)!(ue=G[Pe].area)||(ue<te&&(te=ue),ue>le&&(le=ue));return J*=J,X*=X,J?Math.max(X*le*P/J,J/(X*te*P)):1/0}function ie(G,X,J,ue){var le=-1,te=G.length,Pe=J.x,Ue=J.y,tt=X?f(G.area/X):0,je;if(X==J.dx){for((ue||tt>J.dy)&&(tt=J.dy);++le<te;)je=G[le],je.x=Pe,je.y=Ue,je.dy=tt,Pe+=je.dx=Math.min(J.x+J.dx-Pe,tt?f(je.area/tt):0);je.z=!0,je.dx+=J.x+J.dx-Pe,J.y+=tt,J.dy-=tt}else{for((ue||tt>J.dx)&&(tt=J.dx);++le<te;)je=G[le],je.x=Pe,je.y=Ue,je.dx=tt,Ue+=je.dy=Math.min(J.y+J.dy-Ue,tt?f(je.area/tt):0);je.z=!1,je.dy+=J.y+J.dy-Ue,J.x+=tt,J.dx-=tt}}function oe(G){var X=O||u(G),J=X[0];return J.x=J.y=0,J.value?(J.dx=h[0],J.dy=h[1]):J.dx=J.dy=0,O&&u.revalue(J),N([J],J.dx*J.dy/J.value),(O?B:L)(J),x&&(O=X),X}return oe.size=function(G){return arguments.length?(h=G,oe):h},oe.padding=function(G){if(!arguments.length)return p;function X(le){var te=G.call(oe,le,le.depth);return te==null?Tc(le):cv(le,typeof te=="number"?[te,te,te,te]:te)}function J(le){return cv(le,G)}var ue;return v=(p=G)==null?Tc:(ue=typeof G)=="function"?X:(ue==="number"&&(G=[G,G,G,G]),J),oe},oe.round=function(G){return arguments.length?(f=G?Math.round:Number,oe):f!=Number},oe.sticky=function(G){return arguments.length?(x=G,O=null,oe):x},oe.ratio=function(G){return arguments.length?(P=G,oe):P},oe.mode=function(G){return arguments.length?(S=G+"",oe):S},wo(oe,u)};function Tc(u){return{x:u.x,y:u.y,dx:u.dx,dy:u.dy}}function cv(u,f){var h=u.x+f[3],p=u.y+f[0],v=u.dx-f[1]-f[3],x=u.dy-f[0]-f[2];return v<0&&(h+=v/2,v=0),x<0&&(p+=x/2,x=0),{x:h,y:p,dx:v,dy:x}}t.random={normal:function(u,f){var h=arguments.length;return h<2&&(f=1),h<1&&(u=0),function(){var p,v,x;do p=Math.random()*2-1,v=Math.random()*2-1,x=p*p+v*v;while(!x||x>1);return u+f*p*Math.sqrt(-2*Math.log(x)/x)}},logNormal:function(){var u=t.random.normal.apply(t,arguments);return function(){return Math.exp(u())}},bates:function(u){var f=t.random.irwinHall(u);return function(){return f()/u}},irwinHall:function(u){return function(){for(var f=0,h=0;h<u;h++)f+=Math.random();return f}}},t.scale={};function ls(u){var f=u[0],h=u[u.length-1];return f<h?[f,h]:[h,f]}function ss(u){return u.rangeExtent?u.rangeExtent():ls(u.range())}function Oy(u,f,h,p){var v=h(u[0],u[1]),x=p(f[0],f[1]);return function(O){return x(v(O))}}function Gr(u,f){var h=0,p=u.length-1,v=u[h],x=u[p],O;return x<v&&(O=h,h=p,p=O,O=v,v=x,x=O),u[h]=f.floor(v),u[p]=f.ceil(x),u}function Da(u){return u?{floor:function(f){return Math.floor(f/u)*u},ceil:function(f){return Math.ceil(f/u)*u}}:So}var So={floor:nt,ceil:nt};function ky(u,f,h,p){var v=[],x=[],O=0,S=Math.min(u.length,f.length)-1;for(u[S]<u[0]&&(u=u.slice().reverse(),f=f.slice().reverse());++O<=S;)v.push(h(u[O-1],u[O])),x.push(p(f[O-1],f[O]));return function(P){var N=t.bisect(u,P,1,S)-1;return x[N](v[N](P))}}t.scale.linear=function(){return $a([0,1],[0,1],xi,!1)};function $a(u,f,h,p){var v,x;function O(){var P=Math.min(u.length,f.length)>2?ky:Oy,N=p?Vp:Hp;return v=P(u,f,N,h),x=P(f,u,N,xi),S}function S(P){return v(P)}return S.invert=function(P){return x(P)},S.domain=function(P){return arguments.length?(u=P.map(Number),O()):u},S.range=function(P){return arguments.length?(f=P,O()):f},S.rangeRound=function(P){return S.range(P).interpolate(is)},S.clamp=function(P){return arguments.length?(p=P,O()):p},S.interpolate=function(P){return arguments.length?(h=P,O()):h},S.ticks=function(P){return Du(u,P)},S.tickFormat=function(P,N){return d3_scale_linearTickFormat(u,P,N)},S.nice=function(P){return Ba(u,P),O()},S.copy=function(){return $a(u,f,h,p)},O()}function Cc(u,f){return t.rebind(u,f,"range","rangeRound","interpolate","clamp")}function Ba(u,f){return Gr(u,Da(Lu(u,f)[2])),Gr(u,Da(Lu(u,f)[2])),u}function Lu(u,f){f==null&&(f=10);var h=ls(u),p=h[1]-h[0],v=Math.pow(10,Math.floor(Math.log(p/f)/Math.LN10)),x=f/p*v;return x<=.15?v*=10:x<=.35?v*=5:x<=.75&&(v*=2),h[0]=Math.ceil(h[0]/v)*v,h[1]=Math.floor(h[1]/v)*v+v*.5,h[2]=v,h}function Du(u,f){return t.range.apply(t,Lu(u,f))}t.scale.log=function(){return fs(t.scale.linear().domain([0,1]),10,!0,[1,10])};function fs(u,f,h,p){function v(S){return(h?Math.log(S<0?0:S):-Math.log(S>0?0:-S))/Math.log(f)}function x(S){return h?Math.pow(f,S):-Math.pow(f,-S)}function O(S){return u(v(S))}return O.invert=function(S){return x(u.invert(S))},O.domain=function(S){return arguments.length?(h=S[0]>=0,u.domain((p=S.map(Number)).map(v)),O):p},O.base=function(S){return arguments.length?(f=+S,u.domain(p.map(v)),O):f},O.nice=function(){var S=Gr(p.map(v),h?Math:Oc);return u.domain(S),p=S.map(x),O},O.ticks=function(){var S=ls(p),P=[],N=S[0],L=S[1],B=Math.floor(v(N)),z=Math.ceil(v(L)),ie=f%1?2:f;if(isFinite(z-B)){if(h){for(;B<z;B++)for(var oe=1;oe<ie;oe++)P.push(x(B)*oe);P.push(x(B))}else for(P.push(x(B));B++<z;)for(var oe=ie-1;oe>0;oe--)P.push(x(B)*oe);for(B=0;P[B]<N;B++);for(z=P.length;P[z-1]>L;z--);P=P.slice(B,z)}return P},O.copy=function(){return fs(u.copy(),f,h,p)},Cc(O,u)}var Oc={floor:function(u){return-Math.ceil(-u)},ceil:function(u){return-Math.floor(-u)}};t.scale.pow=function(){return cs(t.scale.linear(),1,[0,1])};function cs(u,f,h){var p=za(f),v=za(1/f);function x(O){return u(p(O))}return x.invert=function(O){return v(u.invert(O))},x.domain=function(O){return arguments.length?(u.domain((h=O.map(Number)).map(p)),x):h},x.ticks=function(O){return Du(h,O)},x.tickFormat=function(O,S){return d3_scale_linearTickFormat(h,O,S)},x.nice=function(O){return x.domain(Ba(h,O))},x.exponent=function(O){return arguments.length?(p=za(f=O),v=za(1/f),u.domain(h.map(p)),x):f},x.copy=function(){return cs(u.copy(),f,h)},Cc(x,u)}function za(u){return function(f){return f<0?-Math.pow(-f,u):Math.pow(f,u)}}t.scale.sqrt=function(){return t.scale.pow().exponent(.5)},t.scale.ordinal=function(){return kc([],{t:"range",a:[[]]})};function kc(u,f){var h,p,v;function x(S){return p[((h.get(S)||(f.t==="range"?h.set(S,u.push(S)):NaN))-1)%p.length]}function O(S,P){return t.range(u.length).map(function(N){return S+P*N})}return x.domain=function(S){if(!arguments.length)return u;u=[],h=new R;for(var P=-1,N=S.length,L;++P<N;)h.has(L=S[P])||h.set(L,u.push(L));return x[f.t].apply(x,f.a)},x.range=function(S){return arguments.length?(p=S,v=0,f={t:"range",a:arguments},x):p},x.rangePoints=function(S,P){arguments.length<2&&(P=0);var N=S[0],L=S[1],B=u.length<2?(N=(N+L)/2,0):(L-N)/(u.length-1+P);return p=O(N+B*P/2,B),v=0,f={t:"rangePoints",a:arguments},x},x.rangeRoundPoints=function(S,P){arguments.length<2&&(P=0);var N=S[0],L=S[1],B=u.length<2?(N=L=Math.round((N+L)/2),0):(L-N)/(u.length-1+P)|0;return p=O(N+Math.round(B*P/2+(L-N-(u.length-1+P)*B)/2),B),v=0,f={t:"rangeRoundPoints",a:arguments},x},x.rangeBands=function(S,P,N){arguments.length<2&&(P=0),arguments.length<3&&(N=P);var L=S[1]<S[0],B=S[L-0],z=S[1-L],ie=(z-B)/(u.length-P+2*N);return p=O(B+ie*N,ie),L&&p.reverse(),v=ie*(1-P),f={t:"rangeBands",a:arguments},x},x.rangeRoundBands=function(S,P,N){arguments.length<2&&(P=0),arguments.length<3&&(N=P);var L=S[1]<S[0],B=S[L-0],z=S[1-L],ie=Math.floor((z-B)/(u.length-P+2*N));return p=O(B+Math.round((z-B-(u.length-P)*ie)/2),ie),L&&p.reverse(),v=Math.round(ie*(1-P)),f={t:"rangeRoundBands",a:arguments},x},x.rangeBand=function(){return v},x.rangeExtent=function(){return ls(f.a[0])},x.copy=function(){return kc(u,f)},x.domain(u)}t.scale.category10=function(){return t.scale.ordinal().range(hv)},t.scale.category20=function(){return t.scale.ordinal().range(dv)},t.scale.category20b=function(){return t.scale.ordinal().range(pv)},t.scale.category20c=function(){return t.scale.ordinal().range(vv)};var hv=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(Hl),dv=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(Hl),pv=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(Hl),vv=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(Hl);t.scale.quantile=function(){return hs([],[])};function hs(u,f){var h;function p(){var x=0,O=f.length;for(h=[];++x<O;)h[x-1]=t.quantile(u,x/O);return v}function v(x){if(!isNaN(x=+x))return f[t.bisect(h,x)]}return v.domain=function(x){return arguments.length?(u=x.map(m).filter(E).sort(g),p()):u},v.range=function(x){return arguments.length?(f=x,p()):f},v.quantiles=function(){return h},v.invertExtent=function(x){return x=f.indexOf(x),x<0?[NaN,NaN]:[x>0?h[x-1]:u[0],x<h.length?h[x]:u[u.length-1]]},v.copy=function(){return hs(u,f)},p()}t.scale.quantize=function(){return ds(0,1,[0,1])};function ds(u,f,h){var p,v;function x(S){return h[Math.max(0,Math.min(v,Math.floor(p*(S-u))))]}function O(){return p=h.length/(f-u),v=h.length-1,x}return x.domain=function(S){return arguments.length?(u=+S[0],f=+S[S.length-1],O()):[u,f]},x.range=function(S){return arguments.length?(h=S,O()):h},x.invertExtent=function(S){return S=h.indexOf(S),S=S<0?NaN:S/p+u,[S,S+1/p]},x.copy=function(){return ds(u,f,h)},O()}t.scale.threshold=function(){return Mc([.5],[0,1])};function Mc(u,f){function h(p){if(p<=p)return f[t.bisect(u,p)]}return h.domain=function(p){return arguments.length?(u=p,h):u},h.range=function(p){return arguments.length?(f=p,h):f},h.invertExtent=function(p){return p=f.indexOf(p),[u[p-1],u[p]]},h.copy=function(){return Mc(u,f)},h}t.scale.identity=function(){return Ic([0,1])};function Ic(u){function f(h){return+h}return f.invert=f,f.domain=f.range=function(h){return arguments.length?(u=h.map(f),f):u},f.ticks=function(h){return Du(u,h)},f.tickFormat=function(h,p){return d3_scale_linearTickFormat(u,h,p)},f.copy=function(){return Ic(u)},f}t.svg={};function mv(){return 0}t.svg.arc=function(){var u=Pc,f=gv,h=mv,p=$u,v=Fc,x=ps,O=Rc;function S(){var N=Math.max(0,+u.apply(this,arguments)),L=Math.max(0,+f.apply(this,arguments)),B=v.apply(this,arguments)-yi,z=x.apply(this,arguments)-yi,ie=Math.abs(z-B),oe=B>z?0:1;if(L<N&&(G=L,L=N,N=G),ie>=pp)return P(L,oe)+(N?P(N,1-oe):"")+"Z";var G,X,J,ue,le=0,te=0,Pe,Ue,tt,je,at,vt,Gt,bt,zt=[];if((ue=(+O.apply(this,arguments)||0)/2)&&(J=p===$u?Math.sqrt(N*N+L*L):+p.apply(this,arguments),oe||(te*=-1),L&&(te=mp(J/L*Math.sin(ue))),N&&(le=mp(J/N*Math.sin(ue)))),L){Pe=L*Math.cos(B+te),Ue=L*Math.sin(B+te),tt=L*Math.cos(z-te),je=L*Math.sin(z-te);var ar=Math.abs(z-B-2*te)<=Ni?0:1;if(te&&Bu(Pe,Ue,tt,je)===oe^ar){var Mr=(B+z)/2;Pe=L*Math.cos(Mr),Ue=L*Math.sin(Mr),tt=je=null}}else Pe=Ue=0;if(N){at=N*Math.cos(z-le),vt=N*Math.sin(z-le),Gt=N*Math.cos(B+le),bt=N*Math.sin(B+le);var dr=Math.abs(B-z+2*le)<=Ni?0:1;if(le&&Bu(at,vt,Gt,bt)===1-oe^dr){var rt=(B+z)/2;at=N*Math.cos(rt),vt=N*Math.sin(rt),Gt=bt=null}}else at=vt=0;if(ie>ir&&(G=Math.min(Math.abs(L-N)/2,+h.apply(this,arguments)))>.001){X=N<L^oe?0:1;var Wt=G,Yt=G;if(ie<Ni){var or=Gt==null?[at,vt]:tt==null?[Pe,Ue]:Kf([Pe,Ue],[Gt,bt],[tt,je],[at,vt]),Sr=Pe-or[0],Br=Ue-or[1],Yr=tt-or[0],pn=je-or[1],Sn=1/Math.sin(Math.acos((Sr*Yr+Br*pn)/(Math.sqrt(Sr*Sr+Br*Br)*Math.sqrt(Yr*Yr+pn*pn)))/2),an=Math.sqrt(or[0]*or[0]+or[1]*or[1]);Yt=Math.min(G,(N-an)/(Sn-1)),Wt=Math.min(G,(L-an)/(Sn+1))}if(tt!=null){var Pn=Eo(Gt==null?[at,vt]:[Gt,bt],[Pe,Ue],L,Wt,oe),F=Eo([tt,je],[at,vt],L,Wt,oe);G===Wt?zt.push("M",Pn[0],"A",Wt,",",Wt," 0 0,",X," ",Pn[1],"A",L,",",L," 0 ",1-oe^Bu(Pn[1][0],Pn[1][1],F[1][0],F[1][1]),",",oe," ",F[1],"A",Wt,",",Wt," 0 0,",X," ",F[0]):zt.push("M",Pn[0],"A",Wt,",",Wt," 0 1,",X," ",F[0])}else zt.push("M",Pe,",",Ue);if(Gt!=null){var H=Eo([Pe,Ue],[Gt,bt],N,-Yt,oe),K=Eo([at,vt],tt==null?[Pe,Ue]:[tt,je],N,-Yt,oe);G===Yt?zt.push("L",K[0],"A",Yt,",",Yt," 0 0,",X," ",K[1],"A",N,",",N," 0 ",oe^Bu(K[1][0],K[1][1],H[1][0],H[1][1]),",",1-oe," ",H[1],"A",Yt,",",Yt," 0 0,",X," ",H[0]):zt.push("L",K[0],"A",Yt,",",Yt," 0 0,",X," ",H[0])}else zt.push("L",at,",",vt)}else zt.push("M",Pe,",",Ue),tt!=null&&zt.push("A",L,",",L," 0 ",ar,",",oe," ",tt,",",je),zt.push("L",at,",",vt),Gt!=null&&zt.push("A",N,",",N," 0 ",dr,",",1-oe," ",Gt,",",bt);return zt.push("Z"),zt.join("")}function P(N,L){return"M0,"+N+"A"+N+","+N+" 0 1,"+L+" 0,"+-N+"A"+N+","+N+" 0 1,"+L+" 0,"+N}return S.innerRadius=function(N){return arguments.length?(u=mr(N),S):u},S.outerRadius=function(N){return arguments.length?(f=mr(N),S):f},S.cornerRadius=function(N){return arguments.length?(h=mr(N),S):h},S.padRadius=function(N){return arguments.length?(p=N==$u?$u:mr(N),S):p},S.startAngle=function(N){return arguments.length?(v=mr(N),S):v},S.endAngle=function(N){return arguments.length?(x=mr(N),S):x},S.padAngle=function(N){return arguments.length?(O=mr(N),S):O},S.centroid=function(){var N=(+u.apply(this,arguments)+ +f.apply(this,arguments))/2,L=(+v.apply(this,arguments)+ +x.apply(this,arguments))/2-yi;return[Math.cos(L)*N,Math.sin(L)*N]},S};var $u="auto";function Pc(u){return u.innerRadius}function gv(u){return u.outerRadius}function Fc(u){return u.startAngle}function ps(u){return u.endAngle}function Rc(u){return u&&u.padAngle}function Bu(u,f,h,p){return(u-h)*f-(f-p)*u>0?0:1}function Eo(u,f,h,p,v){var x=u[0]-f[0],O=u[1]-f[1],S=(v?p:-p)/Math.sqrt(x*x+O*O),P=S*O,N=-S*x,L=u[0]+P,B=u[1]+N,z=f[0]+P,ie=f[1]+N,oe=(L+z)/2,G=(B+ie)/2,X=z-L,J=ie-B,ue=X*X+J*J,le=h-p,te=L*ie-z*B,Pe=(J<0?-1:1)*Math.sqrt(Math.max(0,le*le*ue-te*te)),Ue=(te*J-X*Pe)/ue,tt=(-te*X-J*Pe)/ue,je=(te*J+X*Pe)/ue,at=(-te*X+J*Pe)/ue,vt=Ue-oe,Gt=tt-G,bt=je-oe,zt=at-G;return vt*vt+Gt*Gt>bt*bt+zt*zt&&(Ue=je,tt=at),[[Ue-P,tt-N],[Ue*h/le,tt*h/le]]}function Nc(){return!0}function Lc(u){var f=Li,h=Di,p=Nc,v=qn,x=v.key,O=.7;function S(P){var N=[],L=[],B=-1,z=P.length,ie,oe=mr(f),G=mr(h);function X(){N.push("M",v(u(L),O))}for(;++B<z;)p.call(this,ie=P[B],B)?L.push([+oe.call(this,ie,B),+G.call(this,ie,B)]):L.length&&(X(),L=[]);return L.length&&X(),N.length?N.join(""):null}return S.x=function(P){return arguments.length?(f=P,S):f},S.y=function(P){return arguments.length?(h=P,S):h},S.defined=function(P){return arguments.length?(p=P,S):p},S.interpolate=function(P){return arguments.length?(typeof P=="function"?x=v=P:x=(v=zu.get(P)||qn).key,S):x},S.tension=function(P){return arguments.length?(O=P,S):O},S}t.svg.line=function(){return Lc(nt)};var zu=t.map({linear:qn,"linear-closed":Dc,step:$c,"step-before":Uu,"step-after":Ua,basis:ju,"basis-open":ms,"basis-closed":Ao,bundle:To,cardinal:Ui,"cardinal-open":yv,"cardinal-closed":vs,monotone:My});zu.forEach(function(u,f){f.key=u,f.closed=/-closed$/.test(u)});function qn(u){return u.length>1?u.join("L"):u+"Z"}function Dc(u){return u.join("L")+"Z"}function $c(u){for(var f=0,h=u.length,p=u[0],v=[p[0],",",p[1]];++f<h;)v.push("H",(p[0]+(p=u[f])[0])/2,"V",p[1]);return h>1&&v.push("H",p[0]),v.join("")}function Uu(u){for(var f=0,h=u.length,p=u[0],v=[p[0],",",p[1]];++f<h;)v.push("V",(p=u[f])[1],"H",p[0]);return v.join("")}function Ua(u){for(var f=0,h=u.length,p=u[0],v=[p[0],",",p[1]];++f<h;)v.push("H",(p=u[f])[0],"V",p[1]);return v.join("")}function yv(u,f){return u.length<4?qn(u):u[1]+ja(u.slice(1,-1),aa(u,f))}function vs(u,f){return u.length<3?Dc(u):u[0]+ja((u.push(u[0]),u),aa([u[u.length-2]].concat(u,[u[1]]),f))}function Ui(u,f){return u.length<3?qn(u):u[0]+ja(u,aa(u,f))}function ja(u,f){if(f.length<1||u.length!=f.length&&u.length!=f.length+2)return qn(u);var h=u.length!=f.length,p="",v=u[0],x=u[1],O=f[0],S=O,P=1;if(h&&(p+="Q"+(x[0]-O[0]*2/3)+","+(x[1]-O[1]*2/3)+","+x[0]+","+x[1],v=u[1],P=2),f.length>1){S=f[1],x=u[P],P++,p+="C"+(v[0]+O[0])+","+(v[1]+O[1])+","+(x[0]-S[0])+","+(x[1]-S[1])+","+x[0]+","+x[1];for(var N=2;N<f.length;N++,P++)x=u[P],S=f[N],p+="S"+(x[0]-S[0])+","+(x[1]-S[1])+","+x[0]+","+x[1]}if(h){var L=u[P];p+="Q"+(x[0]+S[0]*2/3)+","+(x[1]+S[1]*2/3)+","+L[0]+","+L[1]}return p}function aa(u,f){for(var h=[],p=(1-f)/2,v,x=u[0],O=u[1],S=1,P=u.length;++S<P;)v=x,x=O,O=u[S],h.push([p*(O[0]-v[0]),p*(O[1]-v[1])]);return h}function ju(u){if(u.length<3)return qn(u);var f=1,h=u.length,p=u[0],v=p[0],x=p[1],O=[v,v,v,(p=u[1])[0]],S=[x,x,x,p[1]],P=[v,",",x,"L",nn(fi,O),",",nn(fi,S)];for(u.push(u[h-1]);++f<=h;)p=u[f],O.shift(),O.push(p[0]),S.shift(),S.push(p[1]),Gu(P,O,S);return u.pop(),P.push("L",p),P.join("")}function ms(u){if(u.length<4)return qn(u);for(var f=[],h=-1,p=u.length,v,x=[0],O=[0];++h<3;)v=u[h],x.push(v[0]),O.push(v[1]);for(f.push(nn(fi,x)+","+nn(fi,O)),--h;++h<p;)v=u[h],x.shift(),x.push(v[0]),O.shift(),O.push(v[1]),Gu(f,x,O);return f.join("")}function Ao(u){for(var f,h=-1,p=u.length,v=p+4,x,O=[],S=[];++h<4;)x=u[h%p],O.push(x[0]),S.push(x[1]);for(f=[nn(fi,O),",",nn(fi,S)],--h;++h<v;)x=u[h%p],O.shift(),O.push(x[0]),S.shift(),S.push(x[1]),Gu(f,O,S);return f.join("")}function To(u,f){var h=u.length-1;if(h)for(var p=u[0][0],v=u[0][1],x=u[h][0]-p,O=u[h][1]-v,S=-1,P,N;++S<=h;)P=u[S],N=S/h,P[0]=f*P[0]+(1-f)*(p+N*x),P[1]=f*P[1]+(1-f)*(v+N*O);return ju(u)}function nn(u,f){return u[0]*f[0]+u[1]*f[1]+u[2]*f[2]+u[3]*f[3]}var gs=[0,2/3,1/3,0],ys=[0,1/3,2/3,0],fi=[0,1/6,2/3,1/6];function Gu(u,f,h){u.push("C",nn(gs,f),",",nn(gs,h),",",nn(ys,f),",",nn(ys,h),",",nn(fi,f),",",nn(fi,h))}function Wu(u,f){return(f[1]-u[1])/(f[0]-u[0])}function Co(u){for(var f=0,h=u.length-1,p=[],v=u[0],x=u[1],O=p[0]=Wu(v,x);++f<h;)p[f]=(O+(O=Wu(v=x,x=u[f+1])))/2;return p[f]=O,p}function Oo(u){for(var f=[],h,p,v,x,O=Co(u),S=-1,P=u.length-1;++S<P;)h=Wu(u[S],u[S+1]),_(h)<ir?O[S]=O[S+1]=0:(p=O[S]/h,v=O[S+1]/h,x=p*p+v*v,x>9&&(x=h*3/Math.sqrt(x),O[S]=x*p,O[S+1]=x*v));for(S=-1;++S<=P;)x=(u[Math.min(P,S+1)][0]-u[Math.max(0,S-1)][0])/(6*(1+O[S]*O[S])),f.push([x||0,O[S]*x||0]);return f}function My(u){return u.length<3?qn(u):u[0]+ja(u,Oo(u))}t.svg.line.radial=function(){var u=Lc(xv);return u.radius=u.x,delete u.x,u.angle=u.y,delete u.y,u};function xv(u){for(var f,h=-1,p=u.length,v,x;++h<p;)f=u[h],v=f[0],x=f[1]-yi,f[0]=v*Math.cos(x),f[1]=v*Math.sin(x);return u}function Bc(u){var f=Li,h=Li,p=0,v=Di,x=Nc,O=qn,S=O.key,P=O,N="L",L=.7;function B(z){var ie=[],oe=[],G=[],X=-1,J=z.length,ue,le=mr(f),te=mr(p),Pe=f===h?function(){return tt}:mr(h),Ue=p===v?function(){return je}:mr(v),tt,je;function at(){ie.push("M",O(u(G),L),N,P(u(oe.reverse()),L),"Z")}for(;++X<J;)x.call(this,ue=z[X],X)?(oe.push([tt=+le.call(this,ue,X),je=+te.call(this,ue,X)]),G.push([+Pe.call(this,ue,X),+Ue.call(this,ue,X)])):oe.length&&(at(),oe=[],G=[]);return oe.length&&at(),ie.length?ie.join(""):null}return B.x=function(z){return arguments.length?(f=h=z,B):h},B.x0=function(z){return arguments.length?(f=z,B):f},B.x1=function(z){return arguments.length?(h=z,B):h},B.y=function(z){return arguments.length?(p=v=z,B):v},B.y0=function(z){return arguments.length?(p=z,B):p},B.y1=function(z){return arguments.length?(v=z,B):v},B.defined=function(z){return arguments.length?(x=z,B):x},B.interpolate=function(z){return arguments.length?(typeof z=="function"?S=O=z:S=(O=zu.get(z)||qn).key,P=O.reverse||O,N=O.closed?"M":"L",B):S},B.tension=function(z){return arguments.length?(L=z,B):L},B}Uu.reverse=Ua,Ua.reverse=Uu,t.svg.area=function(){return Bc(nt)},t.svg.area.radial=function(){var u=Bc(xv);return u.radius=u.x,delete u.x,u.innerRadius=u.x0,delete u.x0,u.outerRadius=u.x1,delete u.x1,u.angle=u.y,delete u.y,u.startAngle=u.y0,delete u.y0,u.endAngle=u.y1,delete u.y1,u};function zc(u){return u.source}function Uc(u){return u.target}t.svg.chord=function(){var u=zc,f=Uc,h=Iy,p=Fc,v=ps;function x(L,B){var z=O(this,u,L,B),ie=O(this,f,L,B);return"M"+z.p0+P(z.r,z.p1,z.a1-z.a0)+(S(z,ie)?N(z.r,z.p1,z.r,z.p0):N(z.r,z.p1,ie.r,ie.p0)+P(ie.r,ie.p1,ie.a1-ie.a0)+N(ie.r,ie.p1,z.r,z.p0))+"Z"}function O(L,B,z,ie){var oe=B.call(L,z,ie),G=h.call(L,oe,ie),X=p.call(L,oe,ie)-yi,J=v.call(L,oe,ie)-yi;return{r:G,a0:X,a1:J,p0:[G*Math.cos(X),G*Math.sin(X)],p1:[G*Math.cos(J),G*Math.sin(J)]}}function S(L,B){return L.a0==B.a0&&L.a1==B.a1}function P(L,B,z){return"A"+L+","+L+" 0 "+ +(z>Ni)+",1 "+B}function N(L,B,z,ie){return"Q 0,0 "+ie}return x.radius=function(L){return arguments.length?(h=mr(L),x):h},x.source=function(L){return arguments.length?(u=mr(L),x):u},x.target=function(L){return arguments.length?(f=mr(L),x):f},x.startAngle=function(L){return arguments.length?(p=mr(L),x):p},x.endAngle=function(L){return arguments.length?(v=mr(L),x):v},x};function Iy(u){return u.radius}t.svg.diagonal=function(){var u=zc,f=Uc,h=Ga;function p(v,x){var O=u.call(this,v,x),S=f.call(this,v,x),P=(O.y+S.y)/2,N=[O,{x:O.x,y:P},{x:S.x,y:P},S];return N=N.map(h),"M"+N[0]+"C"+N[1]+" "+N[2]+" "+N[3]}return p.source=function(v){return arguments.length?(u=mr(v),p):u},p.target=function(v){return arguments.length?(f=mr(v),p):f},p.projection=function(v){return arguments.length?(h=v,p):h},p};function Ga(u){return[u.x,u.y]}t.svg.diagonal.radial=function(){var u=t.svg.diagonal(),f=Ga,h=u.projection;return u.projection=function(p){return arguments.length?h(jc(f=p)):f},u};function jc(u){return function(){var f=u.apply(this,arguments),h=f[0],p=f[1]-yi;return[h*Math.cos(p),h*Math.sin(p)]}}t.svg.symbol=function(){var u=Fy,f=Py;function h(p,v){return(wv.get(u.call(this,p,v))||bv)(f.call(this,p,v))}return h.type=function(p){return arguments.length?(u=mr(p),h):u},h.size=function(p){return arguments.length?(f=mr(p),h):f},h};function Py(){return 64}function Fy(){return"circle"}function bv(u){var f=Math.sqrt(u/Ni);return"M0,"+f+"A"+f+","+f+" 0 1,1 0,"+-f+"A"+f+","+f+" 0 1,1 0,"+f+"Z"}var wv=t.map({circle:bv,cross:function(u){var f=Math.sqrt(u/5)/2;return"M"+-3*f+","+-f+"H"+-f+"V"+-3*f+"H"+f+"V"+-f+"H"+3*f+"V"+f+"H"+f+"V"+3*f+"H"+-f+"V"+f+"H"+-3*f+"Z"},diamond:function(u){var f=Math.sqrt(u/(2*_v)),h=f*_v;return"M0,"+-f+"L"+h+",0 0,"+f+" "+-h+",0Z"},square:function(u){var f=Math.sqrt(u)/2;return"M"+-f+","+-f+"L"+f+","+-f+" "+f+","+f+" "+-f+","+f+"Z"},"triangle-down":function(u){var f=Math.sqrt(u/xs),h=f*xs/2;return"M0,"+h+"L"+f+","+-h+" "+-f+","+-h+"Z"},"triangle-up":function(u){var f=Math.sqrt(u/xs),h=f*xs/2;return"M0,"+-h+"L"+f+","+h+" "+-f+","+h+"Z"}});t.svg.symbolTypes=wv.keys();var xs=Math.sqrt(3),_v=Math.tan(30*vp);Ce.transition=function(u){for(var f=ji||++ws,h=Vu(u),p=[],v,x,O=ko||{time:Date.now(),ease:xo,delay:0,duration:250},S=-1,P=this.length;++S<P;){p.push(v=[]);for(var N=this[S],L=-1,B=N.length;++L<B;)(x=N[L])&&Mo(x,L,h,f,O),v.push(x)}return Hu(p,h,f)},Ce.interrupt=function(u){return this.each(u==null?bs:Sv(Vu(u)))};var bs=Sv(Vu());function Sv(u){return function(){var f,h,p;(f=this[u])&&(p=f[h=f.active])&&(p.timer.c=null,p.timer.t=NaN,--f.count?delete f[h]:delete this[u],f.active+=.5,p.event&&p.event.interrupt.call(this,this.__data__,p.index))}}function Hu(u,f,h){return Ht(u,$r),u.namespace=f,u.id=h,u}var $r=[],ws=0,ji,ko;$r.call=Ce.call,$r.empty=Ce.empty,$r.node=Ce.node,$r.size=Ce.size,t.transition=function(u,f){return u&&u.transition?ji?u.transition(f):u:t.selection().transition(u)},t.transition.prototype=$r,$r.select=function(u){var f=this.id,h=this.namespace,p=[],v,x,O;u=W(u);for(var S=-1,P=this.length;++S<P;){p.push(v=[]);for(var N=this[S],L=-1,B=N.length;++L<B;)(O=N[L])&&(x=u.call(O,O.__data__,L,S))?("__data__"in O&&(x.__data__=O.__data__),Mo(x,L,h,f,O[h][f]),v.push(x)):v.push(null)}return Hu(p,h,f)},$r.selectAll=function(u){var f=this.id,h=this.namespace,p=[],v,x,O,S,P;u=ae(u);for(var N=-1,L=this.length;++N<L;)for(var B=this[N],z=-1,ie=B.length;++z<ie;)if(O=B[z]){P=O[h][f],x=u.call(O,O.__data__,z,N),p.push(v=[]);for(var oe=-1,G=x.length;++oe<G;)(S=x[oe])&&Mo(S,oe,h,f,P),v.push(S)}return Hu(p,h,f)},$r.filter=function(u){var f=[],h,p,v;typeof u!="function"&&(u=bu(u));for(var x=0,O=this.length;x<O;x++){f.push(h=[]);for(var p=this[x],S=0,P=p.length;S<P;S++)(v=p[S])&&u.call(v,v.__data__,S,x)&&h.push(v)}return Hu(f,this.namespace,this.id)},$r.tween=function(u,f){var h=this.id,p=this.namespace;return arguments.length<2?this.node()[p][h].tween.get(u):gi(this,f==null?function(v){v[p][h].tween.remove(u)}:function(v){v[p][h].tween.set(u,f)})};function _s(u,f,h,p){var v=u.id,x=u.namespace;return gi(u,typeof h=="function"?function(O,S,P){O[x][v].tween.set(f,p(h.call(O,O.__data__,S,P)))}:(h=p(h),function(O){O[x][v].tween.set(f,h)}))}$r.attr=function(u,f){if(arguments.length<2){for(f in u)this.attr(f,u[f]);return this}var h=u=="transform"?pc:xi,p=t.ns.qualify(u);function v(){this.removeAttribute(p)}function x(){this.removeAttributeNS(p.space,p.local)}function O(P){return P==null?v:(P+="",function(){var N=this.getAttribute(p),L;return N!==P&&(L=h(N,P),function(B){this.setAttribute(p,L(B))})})}function S(P){return P==null?x:(P+="",function(){var N=this.getAttributeNS(p.space,p.local),L;return N!==P&&(L=h(N,P),function(B){this.setAttributeNS(p.space,p.local,L(B))})})}return _s(this,"attr."+u,f,p.local?S:O)},$r.attrTween=function(u,f){var h=t.ns.qualify(u);function p(x,O){var S=f.call(this,x,O,this.getAttribute(h));return S&&function(P){this.setAttribute(h,S(P))}}function v(x,O){var S=f.call(this,x,O,this.getAttributeNS(h.space,h.local));return S&&function(P){this.setAttributeNS(h.space,h.local,S(P))}}return this.tween("attr."+u,h.local?v:p)},$r.style=function(u,f,h){var p=arguments.length;if(p<3){if(typeof u!="string"){p<2&&(f="");for(h in u)this.style(h,u[h],f);return this}h=""}function v(){this.style.removeProperty(u)}function x(O){return O==null?v:(O+="",function(){var S=o(this).getComputedStyle(this,null).getPropertyValue(u),P;return S!==O&&(P=xi(S,O),function(N){this.style.setProperty(u,P(N),h)})})}return _s(this,"style."+u,f,x)},$r.styleTween=function(u,f,h){arguments.length<3&&(h="");function p(v,x){var O=f.call(this,v,x,o(this).getComputedStyle(this,null).getPropertyValue(u));return O&&function(S){this.style.setProperty(u,O(S),h)}}return this.tween("style."+u,p)},$r.text=function(u){return _s(this,"text",u,Gc)};function Gc(u){return u==null&&(u=""),function(){this.textContent=u}}$r.remove=function(){var u=this.namespace;return this.each("end.transition",function(){var f;this[u].count<2&&(f=this.parentNode)&&f.removeChild(this)})},$r.ease=function(u){var f=this.id,h=this.namespace;return arguments.length<1?this.node()[h][f].ease:(typeof u!="function"&&(u=t.ease.apply(t,arguments)),gi(this,function(p){p[h][f].ease=u}))},$r.delay=function(u){var f=this.id,h=this.namespace;return arguments.length<1?this.node()[h][f].delay:gi(this,typeof u=="function"?function(p,v,x){p[h][f].delay=+u.call(p,p.__data__,v,x)}:(u=+u,function(p){p[h][f].delay=u}))},$r.duration=function(u){var f=this.id,h=this.namespace;return arguments.length<1?this.node()[h][f].duration:gi(this,typeof u=="function"?function(p,v,x){p[h][f].duration=Math.max(1,u.call(p,p.__data__,v,x))}:(u=Math.max(1,u),function(p){p[h][f].duration=u}))},$r.each=function(u,f){var h=this.id,p=this.namespace;if(arguments.length<2){var v=ko,x=ji;try{ji=h,gi(this,function(O,S,P){ko=O[p][h],u.call(O,O.__data__,S,P)})}finally{ko=v,ji=x}}else gi(this,function(O){var S=O[p][h];(S.event||(S.event=t.dispatch("start","end","interrupt"))).on(u,f)});return this},$r.transition=function(){for(var u=this.id,f=++ws,h=this.namespace,p=[],v,x,O,S,P=0,N=this.length;P<N;P++){p.push(v=[]);for(var x=this[P],L=0,B=x.length;L<B;L++)(O=x[L])&&(S=O[h][u],Mo(O,L,h,f,{time:S.time,ease:S.ease,delay:S.delay+S.duration,duration:S.duration})),v.push(O)}return Hu(p,h,f)};function Vu(u){return u==null?"__transition__":"__transition_"+u+"__"}function Mo(u,f,h,p,v){var x=u[h]||(u[h]={active:0,count:0}),O=x[p],S,P,N,L,B;function z(G){var X=O.delay;if(P.t=X+S,X<=G)return ie(G-X);P.c=ie}function ie(G){var X=x.active,J=x[X];J&&(J.timer.c=null,J.timer.t=NaN,--x.count,delete x[X],J.event&&J.event.interrupt.call(u,u.__data__,J.index));for(var ue in x)if(+ue<p){var le=x[ue];le.timer.c=null,le.timer.t=NaN,--x.count,delete x[ue]}P.c=oe,ho(function(){return P.c&&oe(G||1)&&(P.c=null,P.t=NaN),1},0,S),x.active=p,O.event&&O.event.start.call(u,u.__data__,f),B=[],O.tween.forEach(function(te,Pe){(Pe=Pe.call(u,u.__data__,f))&&B.push(Pe)}),L=O.ease,N=O.duration}function oe(G){for(var X=G/N,J=L(X),ue=B.length;ue>0;)B[--ue].call(u,J);if(X>=1)return O.event&&O.event.end.call(u,u.__data__,f),--x.count?delete x[p]:delete u[h],1}O||(S=v.time,P=ho(z,0,S),O=x[p]={tween:new R,time:S,timer:P,delay:v.delay,duration:v.duration,ease:v.ease,index:f},v=null,++x.count)}t.svg.axis=function(){var u=t.scale.linear(),f=Wc,h=6,p=6,v=3,x=[10],O=null,S;function P(N){N.each(function(){var L=t.select(this),B=this.__chart__||u,z=this.__chart__=u.copy(),ie=O??(z.ticks?z.ticks.apply(z,x):z.domain()),oe=S??(z.tickFormat?z.tickFormat.apply(z,x):nt),G=L.selectAll(".tick").data(ie,z),X=G.enter().insert("g",".domain").attr("class","tick").style("opacity",ir),J=t.transition(G.exit()).style("opacity",ir).remove(),ue=t.transition(G.order()).style("opacity",1),le=Math.max(h,0)+v,te,Pe=ss(z),Ue=L.selectAll(".domain").data([0]),tt=(Ue.enter().append("path").attr("class","domain"),t.transition(Ue));X.append("line"),X.append("text");var je=X.select("line"),at=ue.select("line"),vt=G.select("text").text(oe),Gt=X.select("text"),bt=ue.select("text"),zt=f==="top"||f==="left"?-1:1,ar,Mr,dr,rt;if(f==="bottom"||f==="top"?(te=Vc,ar="x",dr="y",Mr="x2",rt="y2",vt.attr("dy",zt<0?"0em":".71em").style("text-anchor","middle"),tt.attr("d","M"+Pe[0]+","+zt*p+"V0H"+Pe[1]+"V"+zt*p)):(te=qc,ar="y",dr="x",Mr="y2",rt="x2",vt.attr("dy",".32em").style("text-anchor",zt<0?"end":"start"),tt.attr("d","M"+zt*p+","+Pe[0]+"H0V"+Pe[1]+"H"+zt*p)),je.attr(rt,zt*h),Gt.attr(dr,zt*le),at.attr(Mr,0).attr(rt,zt*h),bt.attr(ar,0).attr(dr,zt*le),z.rangeBand){var Wt=z,Yt=Wt.rangeBand()/2;B=z=function(or){return Wt(or)+Yt}}else B.rangeBand?B=z:J.call(te,z,B);X.call(te,B,z),ue.call(te,z,z)})}return P.scale=function(N){return arguments.length?(u=N,P):u},P.orient=function(N){return arguments.length?(f=N in Hc?N+"":Wc,P):f},P.ticks=function(){return arguments.length?(x=n(arguments),P):x},P.tickValues=function(N){return arguments.length?(O=N,P):O},P.tickFormat=function(N){return arguments.length?(S=N,P):S},P.tickSize=function(N){var L=arguments.length;return L?(h=+N,p=+arguments[L-1],P):h},P.innerTickSize=function(N){return arguments.length?(h=+N,P):h},P.outerTickSize=function(N){return arguments.length?(p=+N,P):p},P.tickPadding=function(N){return arguments.length?(v=+N,P):v},P.tickSubdivide=function(){return arguments.length&&P},P};var Wc="bottom",Hc={top:1,right:1,bottom:1,left:1};function Vc(u,f,h){u.attr("transform",function(p){var v=f(p);return"translate("+(isFinite(v)?v:h(p))+",0)"})}function qc(u,f,h){u.attr("transform",function(p){var v=f(p);return"translate(0,"+(isFinite(v)?v:h(p))+")"})}t.svg.brush=function(){var u=ct(L,"brushstart","brush","brushend"),f=null,h=null,p=[0,0],v=[0,0],x,O,S=!0,P=!0,N=qu[0];function L(G){G.each(function(){var X=t.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",oe).on("touchstart.brush",oe),J=X.selectAll(".background").data([0]);J.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),X.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var ue=X.selectAll(".resize").data(N,nt);ue.exit().remove(),ue.enter().append("g").attr("class",function(Ue){return"resize "+Ue}).style("cursor",function(Ue){return Yc[Ue]}).append("rect").attr("x",function(Ue){return/[ew]$/.test(Ue)?-3:null}).attr("y",function(Ue){return/^[ns]/.test(Ue)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),ue.style("display",L.empty()?"none":null);var le=t.transition(X),te=t.transition(J),Pe;f&&(Pe=ss(f),te.attr("x",Pe[0]).attr("width",Pe[1]-Pe[0]),z(le)),h&&(Pe=ss(h),te.attr("y",Pe[0]).attr("height",Pe[1]-Pe[0]),ie(le)),B(le)})}L.event=function(G){G.each(function(){var X=u.of(this,arguments),J={x:p,y:v,i:x,j:O},ue=this.__chart__||J;this.__chart__=J,ji?t.select(this).transition().each("start.brush",function(){x=ue.i,O=ue.j,p=ue.x,v=ue.y,X({type:"brushstart"})}).tween("brush:brush",function(){var le=In(p,J.x),te=In(v,J.y);return x=O=null,function(Pe){p=J.x=le(Pe),v=J.y=te(Pe),X({type:"brush",mode:"resize"})}}).each("end.brush",function(){x=J.i,O=J.j,X({type:"brush",mode:"resize"}),X({type:"brushend"})}):(X({type:"brushstart"}),X({type:"brush",mode:"resize"}),X({type:"brushend"}))})};function B(G){G.selectAll(".resize").attr("transform",function(X){return"translate("+p[+/e$/.test(X)]+","+v[+/^s/.test(X)]+")"})}function z(G){G.select(".extent").attr("x",p[0]),G.selectAll(".extent,.n>rect,.s>rect").attr("width",p[1]-p[0])}function ie(G){G.select(".extent").attr("y",v[0]),G.selectAll(".extent,.e>rect,.w>rect").attr("height",v[1]-v[0])}function oe(){var G=this,X=t.select(t.event.target),J=u.of(G,arguments),ue=t.select(G),le=X.datum(),te=!/^(n|s)$/.test(le)&&f,Pe=!/^(e|w)$/.test(le)&&h,Ue=X.classed("extent"),tt=Ul(G),je,at=t.mouse(G),vt,Gt=t.select(o(G)).on("keydown.brush",ar).on("keyup.brush",Mr);if(t.event.changedTouches?Gt.on("touchmove.brush",dr).on("touchend.brush",Wt):Gt.on("mousemove.brush",dr).on("mouseup.brush",Wt),ue.interrupt().selectAll("*").interrupt(),Ue)at[0]=p[0]-at[0],at[1]=v[0]-at[1];else if(le){var bt=+/w$/.test(le),zt=+/^n/.test(le);vt=[p[1-bt]-at[0],v[1-zt]-at[1]],at[0]=p[bt],at[1]=v[zt]}else t.event.altKey&&(je=at.slice());ue.style("pointer-events","none").selectAll(".resize").style("display",null),t.select("body").style("cursor",X.style("cursor")),J({type:"brushstart"}),dr();function ar(){t.event.keyCode==32&&(Ue||(je=null,at[0]-=p[1],at[1]-=v[1],Ue=2),st())}function Mr(){t.event.keyCode==32&&Ue==2&&(at[0]+=p[1],at[1]+=v[1],Ue=0,st())}function dr(){var Yt=t.mouse(G),or=!1;vt&&(Yt[0]+=vt[0],Yt[1]+=vt[1]),Ue||(t.event.altKey?(je||(je=[(p[0]+p[1])/2,(v[0]+v[1])/2]),at[0]=p[+(Yt[0]<je[0])],at[1]=v[+(Yt[1]<je[1])]):je=null),te&&rt(Yt,f,0)&&(z(ue),or=!0),Pe&&rt(Yt,h,1)&&(ie(ue),or=!0),or&&(B(ue),J({type:"brush",mode:Ue?"move":"resize"}))}function rt(Yt,or,Sr){var Br=ss(or),Yr=Br[0],pn=Br[1],Sn=at[Sr],an=Sr?v:p,Pn=an[1]-an[0],F,H;if(Ue&&(Yr-=Sn,pn-=Pn+Sn),F=(Sr?P:S)?Math.max(Yr,Math.min(pn,Yt[Sr])):Yt[Sr],Ue?H=(F+=Sn)+Pn:(je&&(Sn=Math.max(Yr,Math.min(pn,2*je[Sr]-F))),Sn<F?(H=F,F=Sn):H=Sn),an[0]!=F||an[1]!=H)return Sr?O=null:x=null,an[0]=F,an[1]=H,!0}function Wt(){dr(),ue.style("pointer-events","all").selectAll(".resize").style("display",L.empty()?"none":null),t.select("body").style("cursor",null),Gt.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),tt(),J({type:"brushend"})}}return L.x=function(G){return arguments.length?(f=G,N=qu[!f<<1|!h],L):f},L.y=function(G){return arguments.length?(h=G,N=qu[!f<<1|!h],L):h},L.clamp=function(G){return arguments.length?(f&&h?(S=!!G[0],P=!!G[1]):f?S=!!G:h&&(P=!!G),L):f&&h?[S,P]:f?S:h?P:null},L.extent=function(G){var X,J,ue,le,te;return arguments.length?(f&&(X=G[0],J=G[1],h&&(X=X[0],J=J[0]),x=[X,J],f.invert&&(X=f(X),J=f(J)),J<X&&(te=X,X=J,J=te),(X!=p[0]||J!=p[1])&&(p=[X,J])),h&&(ue=G[0],le=G[1],f&&(ue=ue[1],le=le[1]),O=[ue,le],h.invert&&(ue=h(ue),le=h(le)),le<ue&&(te=ue,ue=le,le=te),(ue!=v[0]||le!=v[1])&&(v=[ue,le])),L):(f&&(x?(X=x[0],J=x[1]):(X=p[0],J=p[1],f.invert&&(X=f.invert(X),J=f.invert(J)),J<X&&(te=X,X=J,J=te))),h&&(O?(ue=O[0],le=O[1]):(ue=v[0],le=v[1],h.invert&&(ue=h.invert(ue),le=h.invert(le)),le<ue&&(te=ue,ue=le,le=te))),f&&h?[[X,ue],[J,le]]:f?[X,J]:h&&[ue,le])},L.clear=function(){return L.empty()||(p=[0,0],v=[0,0],x=O=null),L},L.empty=function(){return!!f&&p[0]==p[1]||!!h&&v[0]==v[1]},t.rebind(L,u,"on")};var Yc={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},qu=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];t.text=Zf(function(u){return u.responseText}),t.json=function(u,f){return ql(u,"application/json",Xc,f)};function Xc(u){return JSON.parse(u.responseText)}t.html=function(u,f){return ql(u,"text/html",Qc,f)};function Qc(u){var f=i.createRange();return f.selectNode(i.body),f.createContextualFragment(u.responseText)}t.xml=Zf(function(u){return u.responseXML}),e.exports?e.exports=t:this.d3=t}).apply(self)})(TB);var M1=new Date,I1=new Date;function dn(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=function(a){return e(a=new Date(+a)),a},i.ceil=function(a){return e(a=new Date(a-1)),t(a,1),e(a),a},i.round=function(a){var o=i(a),l=i.ceil(a);return a-o<l-a?o:l},i.offset=function(a,o){return t(a=new Date(+a),o==null?1:Math.floor(o)),a},i.range=function(a,o,l){var s=[],c;if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a<o)||!(l>0))return s;do s.push(c=new Date(+a)),t(a,l),e(a);while(c<a&&a<o);return s},i.filter=function(a){return dn(function(o){if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},function(o,l){if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!a(o););else for(;--l>=0;)for(;t(o,1),!a(o););})},r&&(i.count=function(a,o){return M1.setTime(+a),I1.setTime(+o),e(M1),e(I1),Math.floor(r(M1,I1))},i.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?function(o){return n(o)%a===0}:function(o){return i.count(0,o)%a===0}):i}),i}var Am=dn(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Am.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?dn(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):Am};const O3=Am;var k3=Am.range,Tm=1e3,ml=6e4,Cm=36e5,VI=864e5,qI=6048e5,YI=dn(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Tm)},function(e,t){return(t-e)/Tm},function(e){return e.getUTCSeconds()});const M3=YI;var I3=YI.range,XI=dn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Tm)},function(e,t){e.setTime(+e+t*ml)},function(e,t){return(t-e)/ml},function(e){return e.getMinutes()});const CB=XI;var OB=XI.range,QI=dn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Tm-e.getMinutes()*ml)},function(e,t){e.setTime(+e+t*Cm)},function(e,t){return(t-e)/Cm},function(e){return e.getHours()});const kB=QI;var MB=QI.range,ZI=dn(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ml)/VI},function(e){return e.getDate()-1});const V2=ZI;var IB=ZI.range;function Il(e){return dn(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r*7)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*ml)/qI})}var Om=Il(0),bd=Il(1),KI=Il(2),JI=Il(3),gl=Il(4),eP=Il(5),tP=Il(6),P3=Om.range,PB=bd.range,FB=KI.range,RB=JI.range,NB=gl.range,LB=eP.range,DB=tP.range,rP=dn(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});const $B=rP;var BB=rP.range,q2=dn(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});q2.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:dn(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)})};const xf=q2;var zB=q2.range,nP=dn(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*ml)},function(e,t){return(t-e)/ml},function(e){return e.getUTCMinutes()});const UB=nP;var jB=nP.range,iP=dn(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Cm)},function(e,t){return(t-e)/Cm},function(e){return e.getUTCHours()});const GB=iP;var WB=iP.range,aP=dn(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/VI},function(e){return e.getUTCDate()-1});const Y2=aP;var HB=aP.range;function Pl(e){return dn(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r*7)},function(t,r){return(r-t)/qI})}var km=Pl(0),wd=Pl(1),oP=Pl(2),uP=Pl(3),yl=Pl(4),lP=Pl(5),sP=Pl(6),F3=km.range,VB=wd.range,qB=oP.range,YB=uP.range,XB=yl.range,QB=lP.range,ZB=sP.range,fP=dn(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});const KB=fP;var JB=fP.range,X2=dn(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});X2.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:dn(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})};const bf=X2;var ez=X2.range;const tz=Object.freeze(Object.defineProperty({__proto__:null,timeInterval:dn,timeMillisecond:O3,timeMilliseconds:k3,utcMillisecond:O3,utcMilliseconds:k3,timeSecond:M3,timeSeconds:I3,utcSecond:M3,utcSeconds:I3,timeMinute:CB,timeMinutes:OB,timeHour:kB,timeHours:MB,timeDay:V2,timeDays:IB,timeWeek:Om,timeWeeks:P3,timeSunday:Om,timeSundays:P3,timeMonday:bd,timeMondays:PB,timeTuesday:KI,timeTuesdays:FB,timeWednesday:JI,timeWednesdays:RB,timeThursday:gl,timeThursdays:NB,timeFriday:eP,timeFridays:LB,timeSaturday:tP,timeSaturdays:DB,timeMonth:$B,timeMonths:BB,timeYear:xf,timeYears:zB,utcMinute:UB,utcMinutes:jB,utcHour:GB,utcHours:WB,utcDay:Y2,utcDays:HB,utcWeek:km,utcWeeks:F3,utcSunday:km,utcSundays:F3,utcMonday:wd,utcMondays:VB,utcTuesday:oP,utcTuesdays:qB,utcWednesday:uP,utcWednesdays:YB,utcThursday:yl,utcThursdays:XB,utcFriday:lP,utcFridays:QB,utcSaturday:sP,utcSaturdays:ZB,utcMonth:KB,utcMonths:JB,utcYear:bf,utcYears:ez},Symbol.toStringTag,{value:"Module"}));function P1(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function F1(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function ch(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function cP(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,l=e.months,s=e.shortMonths,c=hh(i),d=dh(i),y=hh(a),g=dh(a),m=hh(o),E=dh(o),M=hh(l),b=dh(l),w=hh(s),_=dh(s),C={a:De,A:We,b:_t,B:He,c:null,d:B3,e:B3,f:Ez,g:Rz,G:Lz,H:wz,I:_z,j:Sz,L:hP,m:Az,M:Tz,p:be,q:Ve,Q:j3,s:G3,S:Cz,u:Oz,U:kz,V:Mz,w:Iz,W:Pz,x:null,X:null,y:Fz,Y:Nz,Z:Dz,"%":U3},T={a:st,A:Qe,b:ct,B:yt,c:null,d:z3,e:z3,f:Uz,g:Zz,G:Jz,H:$z,I:Bz,j:zz,L:pP,m:jz,M:Gz,p:Ht,q:qt,Q:j3,s:G3,S:Wz,u:Hz,U:Vz,V:qz,w:Yz,W:Xz,x:null,X:null,y:Qz,Y:Kz,Z:e7,"%":U3},R={a:Se,A:me,b:ke,B:Re,c:Le,d:D3,e:D3,f:gz,g:L3,G:N3,H:$3,I:$3,j:dz,L:mz,m:hz,M:pz,p:re,q:cz,Q:xz,s:bz,S:vz,u:oz,U:uz,V:lz,w:az,W:sz,x:ut,X:nt,y:L3,Y:N3,Z:fz,"%":yz};C.x=D(r,C),C.X=D(n,C),C.c=D(t,C),T.x=D(r,T),T.X=D(n,T),T.c=D(t,T);function D(Ze,At){return function(jt){var Ce=[],W=-1,ae=0,I=Ze.length,A,k,$;for(jt instanceof Date||(jt=new Date(+jt));++W<I;)Ze.charCodeAt(W)===37&&(Ce.push(Ze.slice(ae,W)),(k=R3[A=Ze.charAt(++W)])!=null?A=Ze.charAt(++W):k=A==="e"?" ":"0",($=At[A])&&(A=$(jt,k)),Ce.push(A),ae=W+1);return Ce.push(Ze.slice(ae,W)),Ce.join("")}}function Y(Ze,At){return function(jt){var Ce=ch(1900,void 0,1),W=j(Ce,Ze,jt+="",0),ae,I;if(W!=jt.length)return null;if("Q"in Ce)return new Date(Ce.Q);if("s"in Ce)return new Date(Ce.s*1e3+("L"in Ce?Ce.L:0));if(At&&!("Z"in Ce)&&(Ce.Z=0),"p"in Ce&&(Ce.H=Ce.H%12+Ce.p*12),Ce.m===void 0&&(Ce.m="q"in Ce?Ce.q:0),"V"in Ce){if(Ce.V<1||Ce.V>53)return null;"w"in Ce||(Ce.w=1),"Z"in Ce?(ae=F1(ch(Ce.y,0,1)),I=ae.getUTCDay(),ae=I>4||I===0?wd.ceil(ae):wd(ae),ae=Y2.offset(ae,(Ce.V-1)*7),Ce.y=ae.getUTCFullYear(),Ce.m=ae.getUTCMonth(),Ce.d=ae.getUTCDate()+(Ce.w+6)%7):(ae=P1(ch(Ce.y,0,1)),I=ae.getDay(),ae=I>4||I===0?bd.ceil(ae):bd(ae),ae=V2.offset(ae,(Ce.V-1)*7),Ce.y=ae.getFullYear(),Ce.m=ae.getMonth(),Ce.d=ae.getDate()+(Ce.w+6)%7)}else("W"in Ce||"U"in Ce)&&("w"in Ce||(Ce.w="u"in Ce?Ce.u%7:"W"in Ce?1:0),I="Z"in Ce?F1(ch(Ce.y,0,1)).getUTCDay():P1(ch(Ce.y,0,1)).getDay(),Ce.m=0,Ce.d="W"in Ce?(Ce.w+6)%7+Ce.W*7-(I+5)%7:Ce.w+Ce.U*7-(I+6)%7);return"Z"in Ce?(Ce.H+=Ce.Z/100|0,Ce.M+=Ce.Z%100,F1(Ce)):P1(Ce)}}function j(Ze,At,jt,Ce){for(var W=0,ae=At.length,I=jt.length,A,k;W<ae;){if(Ce>=I)return-1;if(A=At.charCodeAt(W++),A===37){if(A=At.charAt(W++),k=R[A in R3?At.charAt(W++):A],!k||(Ce=k(Ze,jt,Ce))<0)return-1}else if(A!=jt.charCodeAt(Ce++))return-1}return Ce}function re(Ze,At,jt){var Ce=c.exec(At.slice(jt));return Ce?(Ze.p=d[Ce[0].toLowerCase()],jt+Ce[0].length):-1}function Se(Ze,At,jt){var Ce=m.exec(At.slice(jt));return Ce?(Ze.w=E[Ce[0].toLowerCase()],jt+Ce[0].length):-1}function me(Ze,At,jt){var Ce=y.exec(At.slice(jt));return Ce?(Ze.w=g[Ce[0].toLowerCase()],jt+Ce[0].length):-1}function ke(Ze,At,jt){var Ce=w.exec(At.slice(jt));return Ce?(Ze.m=_[Ce[0].toLowerCase()],jt+Ce[0].length):-1}function Re(Ze,At,jt){var Ce=M.exec(At.slice(jt));return Ce?(Ze.m=b[Ce[0].toLowerCase()],jt+Ce[0].length):-1}function Le(Ze,At,jt){return j(Ze,t,At,jt)}function ut(Ze,At,jt){return j(Ze,r,At,jt)}function nt(Ze,At,jt){return j(Ze,n,At,jt)}function De(Ze){return o[Ze.getDay()]}function We(Ze){return a[Ze.getDay()]}function _t(Ze){return s[Ze.getMonth()]}function He(Ze){return l[Ze.getMonth()]}function be(Ze){return i[+(Ze.getHours()>=12)]}function Ve(Ze){return 1+~~(Ze.getMonth()/3)}function st(Ze){return o[Ze.getUTCDay()]}function Qe(Ze){return a[Ze.getUTCDay()]}function ct(Ze){return s[Ze.getUTCMonth()]}function yt(Ze){return l[Ze.getUTCMonth()]}function Ht(Ze){return i[+(Ze.getUTCHours()>=12)]}function qt(Ze){return 1+~~(Ze.getUTCMonth()/3)}return{format:function(Ze){var At=D(Ze+="",C);return At.toString=function(){return Ze},At},parse:function(Ze){var At=Y(Ze+="",!1);return At.toString=function(){return Ze},At},utcFormat:function(Ze){var At=D(Ze+="",T);return At.toString=function(){return Ze},At},utcParse:function(Ze){var At=Y(Ze+="",!0);return At.toString=function(){return Ze},At}}}var R3={"-":"",_:" ",0:"0"},wn=/^\s*\d+/,rz=/^%/,nz=/[\\^$*+?|[\]().{}]/g;function yr(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function iz(e){return e.replace(nz,"\\$&")}function hh(e){return new RegExp("^(?:"+e.map(iz).join("|")+")","i")}function dh(e){for(var t={},r=-1,n=e.length;++r<n;)t[e[r].toLowerCase()]=r;return t}function az(e,t,r){var n=wn.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function oz(e,t,r){var n=wn.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function uz(e,t,r){var n=wn.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function lz(e,t,r){var n=wn.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function sz(e,t,r){var n=wn.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function N3(e,t,r){var n=wn.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function L3(e,t,r){var n=wn.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function fz(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function cz(e,t,r){var n=wn.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function hz(e,t,r){var n=wn.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function D3(e,t,r){var n=wn.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function dz(e,t,r){var n=wn.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function $3(e,t,r){var n=wn.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function pz(e,t,r){var n=wn.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function vz(e,t,r){var n=wn.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function mz(e,t,r){var n=wn.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function gz(e,t,r){var n=wn.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function yz(e,t,r){var n=rz.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function xz(e,t,r){var n=wn.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function bz(e,t,r){var n=wn.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function B3(e,t){return yr(e.getDate(),t,2)}function wz(e,t){return yr(e.getHours(),t,2)}function _z(e,t){return yr(e.getHours()%12||12,t,2)}function Sz(e,t){return yr(1+V2.count(xf(e),e),t,3)}function hP(e,t){return yr(e.getMilliseconds(),t,3)}function Ez(e,t){return hP(e,t)+"000"}function Az(e,t){return yr(e.getMonth()+1,t,2)}function Tz(e,t){return yr(e.getMinutes(),t,2)}function Cz(e,t){return yr(e.getSeconds(),t,2)}function Oz(e){var t=e.getDay();return t===0?7:t}function kz(e,t){return yr(Om.count(xf(e)-1,e),t,2)}function dP(e){var t=e.getDay();return t>=4||t===0?gl(e):gl.ceil(e)}function Mz(e,t){return e=dP(e),yr(gl.count(xf(e),e)+(xf(e).getDay()===4),t,2)}function Iz(e){return e.getDay()}function Pz(e,t){return yr(bd.count(xf(e)-1,e),t,2)}function Fz(e,t){return yr(e.getFullYear()%100,t,2)}function Rz(e,t){return e=dP(e),yr(e.getFullYear()%100,t,2)}function Nz(e,t){return yr(e.getFullYear()%1e4,t,4)}function Lz(e,t){var r=e.getDay();return e=r>=4||r===0?gl(e):gl.ceil(e),yr(e.getFullYear()%1e4,t,4)}function Dz(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+yr(t/60|0,"0",2)+yr(t%60,"0",2)}function z3(e,t){return yr(e.getUTCDate(),t,2)}function $z(e,t){return yr(e.getUTCHours(),t,2)}function Bz(e,t){return yr(e.getUTCHours()%12||12,t,2)}function zz(e,t){return yr(1+Y2.count(bf(e),e),t,3)}function pP(e,t){return yr(e.getUTCMilliseconds(),t,3)}function Uz(e,t){return pP(e,t)+"000"}function jz(e,t){return yr(e.getUTCMonth()+1,t,2)}function Gz(e,t){return yr(e.getUTCMinutes(),t,2)}function Wz(e,t){return yr(e.getUTCSeconds(),t,2)}function Hz(e){var t=e.getUTCDay();return t===0?7:t}function Vz(e,t){return yr(km.count(bf(e)-1,e),t,2)}function vP(e){var t=e.getUTCDay();return t>=4||t===0?yl(e):yl.ceil(e)}function qz(e,t){return e=vP(e),yr(yl.count(bf(e),e)+(bf(e).getUTCDay()===4),t,2)}function Yz(e){return e.getUTCDay()}function Xz(e,t){return yr(wd.count(bf(e)-1,e),t,2)}function Qz(e,t){return yr(e.getUTCFullYear()%100,t,2)}function Zz(e,t){return e=vP(e),yr(e.getUTCFullYear()%100,t,2)}function Kz(e,t){return yr(e.getUTCFullYear()%1e4,t,4)}function Jz(e,t){var r=e.getUTCDay();return e=r>=4||r===0?yl(e):yl.ceil(e),yr(e.getUTCFullYear()%1e4,t,4)}function e7(){return"+0000"}function U3(){return"%"}function j3(e){return+e}function G3(e){return Math.floor(+e/1e3)}var Ts,mP,gP,Q2,Z2;yP({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function yP(e){return Ts=cP(e),mP=Ts.format,gP=Ts.parse,Q2=Ts.utcFormat,Z2=Ts.utcParse,Ts}var xP="%Y-%m-%dT%H:%M:%S.%LZ";function t7(e){return e.toISOString()}var r7=Date.prototype.toISOString?t7:Q2(xP);const n7=r7;function i7(e){var t=new Date(e);return isNaN(t)?null:t}var a7=+new Date("2000-01-01T00:00:00.000Z")?i7:Z2(xP);const o7=a7,u7=Object.freeze(Object.defineProperty({__proto__:null,timeFormatDefaultLocale:yP,get timeFormat(){return mP},get timeParse(){return gP},get utcFormat(){return Q2},get utcParse(){return Z2},timeFormatLocale:cP,isoFormat:n7,isoParse:o7},Symbol.toStringTag,{value:"Module"})),Wte=El(u7);function l7(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Mm(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function wf(e){return e=Mm(Math.abs(e)),e?e[1]:NaN}function s7(e,t){return function(r,n){for(var i=r.length,a=[],o=0,l=e[0],s=0;i>0&&l>0&&(s+l+1>n&&(l=Math.max(1,n-s)),a.push(r.substring(i-=l,i+l)),!((s+=l+1)>n));)l=e[o=(o+1)%e.length];return a.reverse().join(t)}}function f7(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var c7=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Im(e){if(!(t=c7.exec(e)))throw new Error("invalid format: "+e);var t;return new sg({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Im.prototype=sg.prototype;function sg(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}sg.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function h7(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var bP;function d7(e,t){var r=Mm(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(bP=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Mm(e,Math.max(0,t+a-1))[0]}function W3(e,t){var r=Mm(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const H3={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:l7,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return W3(e*100,t)},r:W3,s:d7,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function V3(e){return e}var q3=Array.prototype.map,Y3=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function wP(e){var t=e.grouping===void 0||e.thousands===void 0?V3:s7(q3.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?V3:f7(q3.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"-":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function c(y){y=Im(y);var g=y.fill,m=y.align,E=y.sign,M=y.symbol,b=y.zero,w=y.width,_=y.comma,C=y.precision,T=y.trim,R=y.type;R==="n"?(_=!0,R="g"):H3[R]||(C===void 0&&(C=12),T=!0,R="g"),(b||g==="0"&&m==="=")&&(b=!0,g="0",m="=");var D=M==="$"?r:M==="#"&&/[boxX]/.test(R)?"0"+R.toLowerCase():"",Y=M==="$"?n:/[%p]/.test(R)?o:"",j=H3[R],re=/[defgprs%]/.test(R);C=C===void 0?6:/[gprs]/.test(R)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function Se(me){var ke=D,Re=Y,Le,ut,nt;if(R==="c")Re=j(me)+Re,me="";else{me=+me;var De=me<0||1/me<0;if(me=isNaN(me)?s:j(Math.abs(me),C),T&&(me=h7(me)),De&&+me==0&&E!=="+"&&(De=!1),ke=(De?E==="("?E:l:E==="-"||E==="("?"":E)+ke,Re=(R==="s"?Y3[8+bP/3]:"")+Re+(De&&E==="("?")":""),re){for(Le=-1,ut=me.length;++Le<ut;)if(nt=me.charCodeAt(Le),48>nt||nt>57){Re=(nt===46?i+me.slice(Le+1):me.slice(Le))+Re,me=me.slice(0,Le);break}}}_&&!b&&(me=t(me,1/0));var We=ke.length+me.length+Re.length,_t=We<w?new Array(w-We+1).join(g):"";switch(_&&b&&(me=t(_t+me,_t.length?w-Re.length:1/0),_t=""),m){case"<":me=ke+me+Re+_t;break;case"=":me=ke+_t+me+Re;break;case"^":me=_t.slice(0,We=_t.length>>1)+ke+me+Re+_t.slice(We);break;default:me=_t+ke+me+Re;break}return a(me)}return Se.toString=function(){return y+""},Se}function d(y,g){var m=c((y=Im(y),y.type="f",y)),E=Math.max(-8,Math.min(8,Math.floor(wf(g)/3)))*3,M=Math.pow(10,-E),b=Y3[8+E/3];return function(w){return m(M*w)+b}}return{format:c,formatPrefix:d}}var Bv,_P,SP;EP({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function EP(e){return Bv=wP(e),_P=Bv.format,SP=Bv.formatPrefix,Bv}function p7(e){return Math.max(0,-wf(Math.abs(e)))}function v7(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(wf(t)/3)))*3-wf(Math.abs(e)))}function m7(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,wf(t)-wf(e))+1}const g7=Object.freeze(Object.defineProperty({__proto__:null,formatDefaultLocale:EP,get format(){return _P},get formatPrefix(){return SP},formatLocale:wP,formatSpecifier:Im,FormatSpecifier:sg,precisionFixed:p7,precisionPrefix:v7,precisionRound:m7},Symbol.toStringTag,{value:"Module"})),Hte=El(g7);var y7=function(e){for(var t=e.length,r,n=0;n<t;n++)if(r=e.charCodeAt(n),(r<9||r>13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0},x7=y7,Vte=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&x7(r))return!1}else if(t!=="number")return!1;return e-e<1},b7={exports:{}};(function(e){(function(t){var r=/^\s+/,n=/\s+$/,i=0,a=t.round,o=t.min,l=t.max,s=t.random;function c(W,ae){if(W=W||"",ae=ae||{},W instanceof c)return W;if(!(this instanceof c))return new c(W,ae);var I=d(W);this._originalInput=W,this._r=I.r,this._g=I.g,this._b=I.b,this._a=I.a,this._roundA=a(100*this._a)/100,this._format=ae.format||I.format,this._gradientType=ae.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=I.ok,this._tc_id=i++}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var W=this.toRgb();return(W.r*299+W.g*587+W.b*114)/1e3},getLuminance:function(){var W=this.toRgb(),ae,I,A,k,$,fe;return ae=W.r/255,I=W.g/255,A=W.b/255,ae<=.03928?k=ae/12.92:k=t.pow((ae+.055)/1.055,2.4),I<=.03928?$=I/12.92:$=t.pow((I+.055)/1.055,2.4),A<=.03928?fe=A/12.92:fe=t.pow((A+.055)/1.055,2.4),.2126*k+.7152*$+.0722*fe},setAlpha:function(W){return this._a=_t(W),this._roundA=a(100*this._a)/100,this},toHsv:function(){var W=E(this._r,this._g,this._b);return{h:W.h*360,s:W.s,v:W.v,a:this._a}},toHsvString:function(){var W=E(this._r,this._g,this._b),ae=a(W.h*360),I=a(W.s*100),A=a(W.v*100);return this._a==1?"hsv("+ae+", "+I+"%, "+A+"%)":"hsva("+ae+", "+I+"%, "+A+"%, "+this._roundA+")"},toHsl:function(){var W=g(this._r,this._g,this._b);return{h:W.h*360,s:W.s,l:W.l,a:this._a}},toHslString:function(){var W=g(this._r,this._g,this._b),ae=a(W.h*360),I=a(W.s*100),A=a(W.l*100);return this._a==1?"hsl("+ae+", "+I+"%, "+A+"%)":"hsla("+ae+", "+I+"%, "+A+"%, "+this._roundA+")"},toHex:function(W){return b(this._r,this._g,this._b,W)},toHexString:function(W){return"#"+this.toHex(W)},toHex8:function(W){return w(this._r,this._g,this._b,this._a,W)},toHex8String:function(W){return"#"+this.toHex8(W)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(He(this._r,255)*100)+"%",g:a(He(this._g,255)*100)+"%",b:a(He(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(He(this._r,255)*100)+"%, "+a(He(this._g,255)*100)+"%, "+a(He(this._b,255)*100)+"%)":"rgba("+a(He(this._r,255)*100)+"%, "+a(He(this._g,255)*100)+"%, "+a(He(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:De[b(this._r,this._g,this._b,!0)]||!1},toFilter:function(W){var ae="#"+_(this._r,this._g,this._b,this._a),I=ae,A=this._gradientType?"GradientType = 1, ":"";if(W){var k=c(W);I="#"+_(k._r,k._g,k._b,k._a)}return"progid:DXImageTransform.Microsoft.gradient("+A+"startColorstr="+ae+",endColorstr="+I+")"},toString:function(W){var ae=!!W;W=W||this._format;var I=!1,A=this._a<1&&this._a>=0,k=!ae&&A&&(W==="hex"||W==="hex6"||W==="hex3"||W==="hex4"||W==="hex8"||W==="name");return k?W==="name"&&this._a===0?this.toName():this.toRgbString():(W==="rgb"&&(I=this.toRgbString()),W==="prgb"&&(I=this.toPercentageRgbString()),(W==="hex"||W==="hex6")&&(I=this.toHexString()),W==="hex3"&&(I=this.toHexString(!0)),W==="hex4"&&(I=this.toHex8String(!0)),W==="hex8"&&(I=this.toHex8String()),W==="name"&&(I=this.toName()),W==="hsl"&&(I=this.toHslString()),W==="hsv"&&(I=this.toHsvString()),I||this.toHexString())},clone:function(){return c(this.toString())},_applyModification:function(W,ae){var I=W.apply(null,[this].concat([].slice.call(ae)));return this._r=I._r,this._g=I._g,this._b=I._b,this.setAlpha(I._a),this},lighten:function(){return this._applyModification(D,arguments)},brighten:function(){return this._applyModification(Y,arguments)},darken:function(){return this._applyModification(j,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(T,arguments)},greyscale:function(){return this._applyModification(R,arguments)},spin:function(){return this._applyModification(re,arguments)},_applyCombination:function(W,ae){return W.apply(null,[this].concat([].slice.call(ae)))},analogous:function(){return this._applyCombination(Le,arguments)},complement:function(){return this._applyCombination(Se,arguments)},monochromatic:function(){return this._applyCombination(ut,arguments)},splitcomplement:function(){return this._applyCombination(Re,arguments)},triad:function(){return this._applyCombination(me,arguments)},tetrad:function(){return this._applyCombination(ke,arguments)}},c.fromRatio=function(W,ae){if(typeof W=="object"){var I={};for(var A in W)W.hasOwnProperty(A)&&(A==="a"?I[A]=W[A]:I[A]=yt(W[A]));W=I}return c(W,ae)};function d(W){var ae={r:0,g:0,b:0},I=1,A=null,k=null,$=null,fe=!1,Fe=!1;return typeof W=="string"&&(W=jt(W)),typeof W=="object"&&(At(W.r)&&At(W.g)&&At(W.b)?(ae=y(W.r,W.g,W.b),fe=!0,Fe=String(W.r).substr(-1)==="%"?"prgb":"rgb"):At(W.h)&&At(W.s)&&At(W.v)?(A=yt(W.s),k=yt(W.v),ae=M(W.h,A,k),fe=!0,Fe="hsv"):At(W.h)&&At(W.s)&&At(W.l)&&(A=yt(W.s),$=yt(W.l),ae=m(W.h,A,$),fe=!0,Fe="hsl"),W.hasOwnProperty("a")&&(I=W.a)),I=_t(I),{ok:fe,format:W.format||Fe,r:o(255,l(ae.r,0)),g:o(255,l(ae.g,0)),b:o(255,l(ae.b,0)),a:I}}function y(W,ae,I){return{r:He(W,255)*255,g:He(ae,255)*255,b:He(I,255)*255}}function g(W,ae,I){W=He(W,255),ae=He(ae,255),I=He(I,255);var A=l(W,ae,I),k=o(W,ae,I),$,fe,Fe=(A+k)/2;if(A==k)$=fe=0;else{var ze=A-k;switch(fe=Fe>.5?ze/(2-A-k):ze/(A+k),A){case W:$=(ae-I)/ze+(ae<I?6:0);break;case ae:$=(I-W)/ze+2;break;case I:$=(W-ae)/ze+4;break}$/=6}return{h:$,s:fe,l:Fe}}function m(W,ae,I){var A,k,$;W=He(W,360),ae=He(ae,100),I=He(I,100);function fe(Qt,sr,nr){return nr<0&&(nr+=1),nr>1&&(nr-=1),nr<1/6?Qt+(sr-Qt)*6*nr:nr<1/2?sr:nr<2/3?Qt+(sr-Qt)*(2/3-nr)*6:Qt}if(ae===0)A=k=$=I;else{var Fe=I<.5?I*(1+ae):I+ae-I*ae,ze=2*I-Fe;A=fe(ze,Fe,W+1/3),k=fe(ze,Fe,W),$=fe(ze,Fe,W-1/3)}return{r:A*255,g:k*255,b:$*255}}function E(W,ae,I){W=He(W,255),ae=He(ae,255),I=He(I,255);var A=l(W,ae,I),k=o(W,ae,I),$,fe,Fe=A,ze=A-k;if(fe=A===0?0:ze/A,A==k)$=0;else{switch(A){case W:$=(ae-I)/ze+(ae<I?6:0);break;case ae:$=(I-W)/ze+2;break;case I:$=(W-ae)/ze+4;break}$/=6}return{h:$,s:fe,v:Fe}}function M(W,ae,I){W=He(W,360)*6,ae=He(ae,100),I=He(I,100);var A=t.floor(W),k=W-A,$=I*(1-ae),fe=I*(1-k*ae),Fe=I*(1-(1-k)*ae),ze=A%6,Qt=[I,fe,$,$,Fe,I][ze],sr=[Fe,I,I,fe,$,$][ze],nr=[$,$,Fe,I,I,fe][ze];return{r:Qt*255,g:sr*255,b:nr*255}}function b(W,ae,I,A){var k=[ct(a(W).toString(16)),ct(a(ae).toString(16)),ct(a(I).toString(16))];return A&&k[0].charAt(0)==k[0].charAt(1)&&k[1].charAt(0)==k[1].charAt(1)&&k[2].charAt(0)==k[2].charAt(1)?k[0].charAt(0)+k[1].charAt(0)+k[2].charAt(0):k.join("")}function w(W,ae,I,A,k){var $=[ct(a(W).toString(16)),ct(a(ae).toString(16)),ct(a(I).toString(16)),ct(Ht(A))];return k&&$[0].charAt(0)==$[0].charAt(1)&&$[1].charAt(0)==$[1].charAt(1)&&$[2].charAt(0)==$[2].charAt(1)&&$[3].charAt(0)==$[3].charAt(1)?$[0].charAt(0)+$[1].charAt(0)+$[2].charAt(0)+$[3].charAt(0):$.join("")}function _(W,ae,I,A){var k=[ct(Ht(A)),ct(a(W).toString(16)),ct(a(ae).toString(16)),ct(a(I).toString(16))];return k.join("")}c.equals=function(W,ae){return!W||!ae?!1:c(W).toRgbString()==c(ae).toRgbString()},c.random=function(){return c.fromRatio({r:s(),g:s(),b:s()})};function C(W,ae){ae=ae===0?0:ae||10;var I=c(W).toHsl();return I.s-=ae/100,I.s=be(I.s),c(I)}function T(W,ae){ae=ae===0?0:ae||10;var I=c(W).toHsl();return I.s+=ae/100,I.s=be(I.s),c(I)}function R(W){return c(W).desaturate(100)}function D(W,ae){ae=ae===0?0:ae||10;var I=c(W).toHsl();return I.l+=ae/100,I.l=be(I.l),c(I)}function Y(W,ae){ae=ae===0?0:ae||10;var I=c(W).toRgb();return I.r=l(0,o(255,I.r-a(255*-(ae/100)))),I.g=l(0,o(255,I.g-a(255*-(ae/100)))),I.b=l(0,o(255,I.b-a(255*-(ae/100)))),c(I)}function j(W,ae){ae=ae===0?0:ae||10;var I=c(W).toHsl();return I.l-=ae/100,I.l=be(I.l),c(I)}function re(W,ae){var I=c(W).toHsl(),A=(I.h+ae)%360;return I.h=A<0?360+A:A,c(I)}function Se(W){var ae=c(W).toHsl();return ae.h=(ae.h+180)%360,c(ae)}function me(W){var ae=c(W).toHsl(),I=ae.h;return[c(W),c({h:(I+120)%360,s:ae.s,l:ae.l}),c({h:(I+240)%360,s:ae.s,l:ae.l})]}function ke(W){var ae=c(W).toHsl(),I=ae.h;return[c(W),c({h:(I+90)%360,s:ae.s,l:ae.l}),c({h:(I+180)%360,s:ae.s,l:ae.l}),c({h:(I+270)%360,s:ae.s,l:ae.l})]}function Re(W){var ae=c(W).toHsl(),I=ae.h;return[c(W),c({h:(I+72)%360,s:ae.s,l:ae.l}),c({h:(I+216)%360,s:ae.s,l:ae.l})]}function Le(W,ae,I){ae=ae||6,I=I||30;var A=c(W).toHsl(),k=360/I,$=[c(W)];for(A.h=(A.h-(k*ae>>1)+720)%360;--ae;)A.h=(A.h+k)%360,$.push(c(A));return $}function ut(W,ae){ae=ae||6;for(var I=c(W).toHsv(),A=I.h,k=I.s,$=I.v,fe=[],Fe=1/ae;ae--;)fe.push(c({h:A,s:k,v:$})),$=($+Fe)%1;return fe}c.mix=function(W,ae,I){I=I===0?0:I||50;var A=c(W).toRgb(),k=c(ae).toRgb(),$=I/100,fe={r:(k.r-A.r)*$+A.r,g:(k.g-A.g)*$+A.g,b:(k.b-A.b)*$+A.b,a:(k.a-A.a)*$+A.a};return c(fe)},c.readability=function(W,ae){var I=c(W),A=c(ae);return(t.max(I.getLuminance(),A.getLuminance())+.05)/(t.min(I.getLuminance(),A.getLuminance())+.05)},c.isReadable=function(W,ae,I){var A=c.readability(W,ae),k,$;switch($=!1,k=Ce(I),k.level+k.size){case"AAsmall":case"AAAlarge":$=A>=4.5;break;case"AAlarge":$=A>=3;break;case"AAAsmall":$=A>=7;break}return $},c.mostReadable=function(W,ae,I){var A=null,k=0,$,fe,Fe,ze;I=I||{},fe=I.includeFallbackColors,Fe=I.level,ze=I.size;for(var Qt=0;Qt<ae.length;Qt++)$=c.readability(W,ae[Qt]),$>k&&(k=$,A=c(ae[Qt]));return c.isReadable(W,A,{level:Fe,size:ze})||!fe?A:(I.includeFallbackColors=!1,c.mostReadable(W,["#fff","#000"],I))};var nt=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},De=c.hexNames=We(nt);function We(W){var ae={};for(var I in W)W.hasOwnProperty(I)&&(ae[W[I]]=I);return ae}function _t(W){return W=parseFloat(W),(isNaN(W)||W<0||W>1)&&(W=1),W}function He(W,ae){st(W)&&(W="100%");var I=Qe(W);return W=o(ae,l(0,parseFloat(W))),I&&(W=parseInt(W*ae,10)/100),t.abs(W-ae)<1e-6?1:W%ae/parseFloat(ae)}function be(W){return o(1,l(0,W))}function Ve(W){return parseInt(W,16)}function st(W){return typeof W=="string"&&W.indexOf(".")!=-1&&parseFloat(W)===1}function Qe(W){return typeof W=="string"&&W.indexOf("%")!=-1}function ct(W){return W.length==1?"0"+W:""+W}function yt(W){return W<=1&&(W=W*100+"%"),W}function Ht(W){return t.round(parseFloat(W)*255).toString(16)}function qt(W){return Ve(W)/255}var Ze=function(){var W="[-\\+]?\\d+%?",ae="[-\\+]?\\d*\\.\\d+%?",I="(?:"+ae+")|(?:"+W+")",A="[\\s|\\(]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")\\s*\\)?",k="[\\s|\\(]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")\\s*\\)?";return{CSS_UNIT:new RegExp(I),rgb:new RegExp("rgb"+A),rgba:new RegExp("rgba"+k),hsl:new RegExp("hsl"+A),hsla:new RegExp("hsla"+k),hsv:new RegExp("hsv"+A),hsva:new RegExp("hsva"+k),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function At(W){return!!Ze.CSS_UNIT.exec(W)}function jt(W){W=W.replace(r,"").replace(n,"").toLowerCase();var ae=!1;if(nt[W])W=nt[W],ae=!0;else if(W=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var I;return(I=Ze.rgb.exec(W))?{r:I[1],g:I[2],b:I[3]}:(I=Ze.rgba.exec(W))?{r:I[1],g:I[2],b:I[3],a:I[4]}:(I=Ze.hsl.exec(W))?{h:I[1],s:I[2],l:I[3]}:(I=Ze.hsla.exec(W))?{h:I[1],s:I[2],l:I[3],a:I[4]}:(I=Ze.hsv.exec(W))?{h:I[1],s:I[2],v:I[3]}:(I=Ze.hsva.exec(W))?{h:I[1],s:I[2],v:I[3],a:I[4]}:(I=Ze.hex8.exec(W))?{r:Ve(I[1]),g:Ve(I[2]),b:Ve(I[3]),a:qt(I[4]),format:ae?"name":"hex8"}:(I=Ze.hex6.exec(W))?{r:Ve(I[1]),g:Ve(I[2]),b:Ve(I[3]),format:ae?"name":"hex"}:(I=Ze.hex4.exec(W))?{r:Ve(I[1]+""+I[1]),g:Ve(I[2]+""+I[2]),b:Ve(I[3]+""+I[3]),a:qt(I[4]+""+I[4]),format:ae?"name":"hex8"}:(I=Ze.hex3.exec(W))?{r:Ve(I[1]+""+I[1]),g:Ve(I[2]+""+I[2]),b:Ve(I[3]+""+I[3]),format:ae?"name":"hex"}:!1}function Ce(W){var ae,I;return W=W||{level:"AA",size:"small"},ae=(W.level||"AA").toUpperCase(),I=(W.size||"small").toLowerCase(),ae!=="AA"&&ae!=="AAA"&&(ae="AA"),I!=="small"&&I!=="large"&&(I="small"),{level:ae,size:I}}e.exports?e.exports=c:window.tinycolor=c})(Math)})(b7);var w7=_7;function _7(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var S7=E7;function E7(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}var A7=T7;function T7(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}var AP=C7;function C7(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var O7=k7;function k7(e,t){if(e===t){var r=t[1],n=t[2],i=t[3],a=t[6],o=t[7],l=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=a,e[11]=t[14],e[12]=i,e[13]=o,e[14]=l}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}var M7=I7;function I7(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],l=t[5],s=t[6],c=t[7],d=t[8],y=t[9],g=t[10],m=t[11],E=t[12],M=t[13],b=t[14],w=t[15],_=r*l-n*o,C=r*s-i*o,T=r*c-a*o,R=n*s-i*l,D=n*c-a*l,Y=i*c-a*s,j=d*M-y*E,re=d*b-g*E,Se=d*w-m*E,me=y*b-g*M,ke=y*w-m*M,Re=g*w-m*b,Le=_*Re-C*ke+T*me+R*Se-D*re+Y*j;return Le?(Le=1/Le,e[0]=(l*Re-s*ke+c*me)*Le,e[1]=(i*ke-n*Re-a*me)*Le,e[2]=(M*Y-b*D+w*R)*Le,e[3]=(g*D-y*Y-m*R)*Le,e[4]=(s*Se-o*Re-c*re)*Le,e[5]=(r*Re-i*Se+a*re)*Le,e[6]=(b*T-E*Y-w*C)*Le,e[7]=(d*Y-g*T+m*C)*Le,e[8]=(o*ke-l*Se+c*j)*Le,e[9]=(n*Se-r*ke-a*j)*Le,e[10]=(E*D-M*T+w*_)*Le,e[11]=(y*T-d*D-m*_)*Le,e[12]=(l*re-o*me-s*j)*Le,e[13]=(r*me-n*re+i*j)*Le,e[14]=(M*C-E*R-b*_)*Le,e[15]=(d*R-y*C+g*_)*Le,e):null}var P7=F7;function F7(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],l=t[5],s=t[6],c=t[7],d=t[8],y=t[9],g=t[10],m=t[11],E=t[12],M=t[13],b=t[14],w=t[15];return e[0]=l*(g*w-m*b)-y*(s*w-c*b)+M*(s*m-c*g),e[1]=-(n*(g*w-m*b)-y*(i*w-a*b)+M*(i*m-a*g)),e[2]=n*(s*w-c*b)-l*(i*w-a*b)+M*(i*c-a*s),e[3]=-(n*(s*m-c*g)-l*(i*m-a*g)+y*(i*c-a*s)),e[4]=-(o*(g*w-m*b)-d*(s*w-c*b)+E*(s*m-c*g)),e[5]=r*(g*w-m*b)-d*(i*w-a*b)+E*(i*m-a*g),e[6]=-(r*(s*w-c*b)-o*(i*w-a*b)+E*(i*c-a*s)),e[7]=r*(s*m-c*g)-o*(i*m-a*g)+d*(i*c-a*s),e[8]=o*(y*w-m*M)-d*(l*w-c*M)+E*(l*m-c*y),e[9]=-(r*(y*w-m*M)-d*(n*w-a*M)+E*(n*m-a*y)),e[10]=r*(l*w-c*M)-o*(n*w-a*M)+E*(n*c-a*l),e[11]=-(r*(l*m-c*y)-o*(n*m-a*y)+d*(n*c-a*l)),e[12]=-(o*(y*b-g*M)-d*(l*b-s*M)+E*(l*g-s*y)),e[13]=r*(y*b-g*M)-d*(n*b-i*M)+E*(n*g-i*y),e[14]=-(r*(l*b-s*M)-o*(n*b-i*M)+E*(n*s-i*l)),e[15]=r*(l*g-s*y)-o*(n*g-i*y)+d*(n*s-i*l),e}var R7=N7;function N7(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],o=e[5],l=e[6],s=e[7],c=e[8],d=e[9],y=e[10],g=e[11],m=e[12],E=e[13],M=e[14],b=e[15],w=t*o-r*a,_=t*l-n*a,C=t*s-i*a,T=r*l-n*o,R=r*s-i*o,D=n*s-i*l,Y=c*E-d*m,j=c*M-y*m,re=c*b-g*m,Se=d*M-y*E,me=d*b-g*E,ke=y*b-g*M;return w*ke-_*me+C*Se+T*re-R*j+D*Y}var L7=D7;function D7(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],l=t[4],s=t[5],c=t[6],d=t[7],y=t[8],g=t[9],m=t[10],E=t[11],M=t[12],b=t[13],w=t[14],_=t[15],C=r[0],T=r[1],R=r[2],D=r[3];return e[0]=C*n+T*l+R*y+D*M,e[1]=C*i+T*s+R*g+D*b,e[2]=C*a+T*c+R*m+D*w,e[3]=C*o+T*d+R*E+D*_,C=r[4],T=r[5],R=r[6],D=r[7],e[4]=C*n+T*l+R*y+D*M,e[5]=C*i+T*s+R*g+D*b,e[6]=C*a+T*c+R*m+D*w,e[7]=C*o+T*d+R*E+D*_,C=r[8],T=r[9],R=r[10],D=r[11],e[8]=C*n+T*l+R*y+D*M,e[9]=C*i+T*s+R*g+D*b,e[10]=C*a+T*c+R*m+D*w,e[11]=C*o+T*d+R*E+D*_,C=r[12],T=r[13],R=r[14],D=r[15],e[12]=C*n+T*l+R*y+D*M,e[13]=C*i+T*s+R*g+D*b,e[14]=C*a+T*c+R*m+D*w,e[15]=C*o+T*d+R*E+D*_,e}var $7=B7;function B7(e,t,r){var n=r[0],i=r[1],a=r[2],o,l,s,c,d,y,g,m,E,M,b,w;return t===e?(e[12]=t[0]*n+t[4]*i+t[8]*a+t[12],e[13]=t[1]*n+t[5]*i+t[9]*a+t[13],e[14]=t[2]*n+t[6]*i+t[10]*a+t[14],e[15]=t[3]*n+t[7]*i+t[11]*a+t[15]):(o=t[0],l=t[1],s=t[2],c=t[3],d=t[4],y=t[5],g=t[6],m=t[7],E=t[8],M=t[9],b=t[10],w=t[11],e[0]=o,e[1]=l,e[2]=s,e[3]=c,e[4]=d,e[5]=y,e[6]=g,e[7]=m,e[8]=E,e[9]=M,e[10]=b,e[11]=w,e[12]=o*n+d*i+E*a+t[12],e[13]=l*n+y*i+M*a+t[13],e[14]=s*n+g*i+b*a+t[14],e[15]=c*n+m*i+w*a+t[15]),e}var z7=U7;function U7(e,t,r){var n=r[0],i=r[1],a=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}var j7=G7;function G7(e,t,r,n){var i=n[0],a=n[1],o=n[2],l=Math.sqrt(i*i+a*a+o*o),s,c,d,y,g,m,E,M,b,w,_,C,T,R,D,Y,j,re,Se,me,ke,Re,Le,ut;return Math.abs(l)<1e-6?null:(l=1/l,i*=l,a*=l,o*=l,s=Math.sin(r),c=Math.cos(r),d=1-c,y=t[0],g=t[1],m=t[2],E=t[3],M=t[4],b=t[5],w=t[6],_=t[7],C=t[8],T=t[9],R=t[10],D=t[11],Y=i*i*d+c,j=a*i*d+o*s,re=o*i*d-a*s,Se=i*a*d-o*s,me=a*a*d+c,ke=o*a*d+i*s,Re=i*o*d+a*s,Le=a*o*d-i*s,ut=o*o*d+c,e[0]=y*Y+M*j+C*re,e[1]=g*Y+b*j+T*re,e[2]=m*Y+w*j+R*re,e[3]=E*Y+_*j+D*re,e[4]=y*Se+M*me+C*ke,e[5]=g*Se+b*me+T*ke,e[6]=m*Se+w*me+R*ke,e[7]=E*Se+_*me+D*ke,e[8]=y*Re+M*Le+C*ut,e[9]=g*Re+b*Le+T*ut,e[10]=m*Re+w*Le+R*ut,e[11]=E*Re+_*Le+D*ut,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}var W7=H7;function H7(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[4],o=t[5],l=t[6],s=t[7],c=t[8],d=t[9],y=t[10],g=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+c*n,e[5]=o*i+d*n,e[6]=l*i+y*n,e[7]=s*i+g*n,e[8]=c*i-a*n,e[9]=d*i-o*n,e[10]=y*i-l*n,e[11]=g*i-s*n,e}var V7=q7;function q7(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],l=t[2],s=t[3],c=t[8],d=t[9],y=t[10],g=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i-c*n,e[1]=o*i-d*n,e[2]=l*i-y*n,e[3]=s*i-g*n,e[8]=a*n+c*i,e[9]=o*n+d*i,e[10]=l*n+y*i,e[11]=s*n+g*i,e}var Y7=X7;function X7(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],l=t[2],s=t[3],c=t[4],d=t[5],y=t[6],g=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i+c*n,e[1]=o*i+d*n,e[2]=l*i+y*n,e[3]=s*i+g*n,e[4]=c*i-a*n,e[5]=d*i-o*n,e[6]=y*i-l*n,e[7]=g*i-s*n,e}var Q7=Z7;function Z7(e,t,r){var n,i,a,o=r[0],l=r[1],s=r[2],c=Math.sqrt(o*o+l*l+s*s);return Math.abs(c)<1e-6?null:(c=1/c,o*=c,l*=c,s*=c,n=Math.sin(t),i=Math.cos(t),a=1-i,e[0]=o*o*a+i,e[1]=l*o*a+s*n,e[2]=s*o*a-l*n,e[3]=0,e[4]=o*l*a-s*n,e[5]=l*l*a+i,e[6]=s*l*a+o*n,e[7]=0,e[8]=o*s*a+l*n,e[9]=l*s*a-o*n,e[10]=s*s*a+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}var K7=J7;function J7(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],l=n+n,s=i+i,c=a+a,d=n*l,y=n*s,g=n*c,m=i*s,E=i*c,M=a*c,b=o*l,w=o*s,_=o*c;return e[0]=1-(m+M),e[1]=y+_,e[2]=g-w,e[3]=0,e[4]=y-_,e[5]=1-(d+M),e[6]=E+b,e[7]=0,e[8]=g+w,e[9]=E-b,e[10]=1-(d+m),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}var e9=t9;function t9(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var r9=n9;function n9(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}var i9=a9;function a9(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var o9=u9;function u9(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var l9=s9;function s9(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var f9=c9;function c9(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=r+r,l=n+n,s=i+i,c=r*o,d=n*o,y=n*l,g=i*o,m=i*l,E=i*s,M=a*o,b=a*l,w=a*s;return e[0]=1-y-E,e[1]=d+w,e[2]=g-b,e[3]=0,e[4]=d-w,e[5]=1-c-E,e[6]=m+M,e[7]=0,e[8]=g+b,e[9]=m-M,e[10]=1-c-y,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var h9=d9;function d9(e,t,r,n,i,a,o){var l=1/(r-t),s=1/(i-n),c=1/(a-o);return e[0]=a*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a*2*s,e[6]=0,e[7]=0,e[8]=(r+t)*l,e[9]=(i+n)*s,e[10]=(o+a)*c,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*a*2*c,e[15]=0,e}var p9=v9;function v9(e,t,r,n,i){var a=1/Math.tan(t/2),o=1/(n-i);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(i+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*i*n*o,e[15]=0,e}var m9=g9;function g9(e,t,r,n){var i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),l=Math.tan(t.rightDegrees*Math.PI/180),s=2/(o+l),c=2/(i+a);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=c,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(i-a)*c*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e}var y9=x9;function x9(e,t,r,n,i,a,o){var l=1/(t-r),s=1/(n-i),c=1/(a-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*c,e[11]=0,e[12]=(t+r)*l,e[13]=(i+n)*s,e[14]=(o+a)*c,e[15]=1,e}var b9=AP,w9=_9;function _9(e,t,r,n){var i,a,o,l,s,c,d,y,g,m,E=t[0],M=t[1],b=t[2],w=n[0],_=n[1],C=n[2],T=r[0],R=r[1],D=r[2];return Math.abs(E-T)<1e-6&&Math.abs(M-R)<1e-6&&Math.abs(b-D)<1e-6?b9(e):(d=E-T,y=M-R,g=b-D,m=1/Math.sqrt(d*d+y*y+g*g),d*=m,y*=m,g*=m,i=_*g-C*y,a=C*d-w*g,o=w*y-_*d,m=Math.sqrt(i*i+a*a+o*o),m?(m=1/m,i*=m,a*=m,o*=m):(i=0,a=0,o=0),l=y*o-g*a,s=g*i-d*o,c=d*a-y*i,m=Math.sqrt(l*l+s*s+c*c),m?(m=1/m,l*=m,s*=m,c*=m):(l=0,s=0,c=0),e[0]=i,e[1]=l,e[2]=d,e[3]=0,e[4]=a,e[5]=s,e[6]=y,e[7]=0,e[8]=o,e[9]=c,e[10]=g,e[11]=0,e[12]=-(i*E+a*M+o*b),e[13]=-(l*E+s*M+c*b),e[14]=-(d*E+y*M+g*b),e[15]=1,e)}var S9=E9;function E9(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}var qte={create:w7,clone:S7,copy:A7,identity:AP,transpose:O7,invert:M7,adjoint:P7,determinant:R7,multiply:L7,translate:$7,scale:z7,rotate:j7,rotateX:W7,rotateY:V7,rotateZ:Y7,fromRotation:Q7,fromRotationTranslation:K7,fromScaling:e9,fromTranslation:r9,fromXRotation:i9,fromYRotation:o9,fromZRotation:l9,fromQuat:f9,frustum:h9,perspective:p9,perspectiveFromFieldOfView:m9,ortho:y9,lookAt:w9,str:S9},K2={exports:{}};K2.exports=J2;K2.exports.isMobile=J2;K2.exports.default=J2;const A9=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,T9=/CrOS/,C9=/android|ipad|playbook|silk/i;function J2(e){e||(e={});let t=e.ua;if(!t&&typeof navigator<"u"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=A9.test(t)&&!T9.test(t)||!!e.tablet&&C9.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}var O9=!0,k9=O9,Hw;typeof Ar.matchMedia=="function"?Hw=!Ar.matchMedia("(hover: none)").matches:Hw=k9;var Yte=Hw,TP={exports:{}},lf=typeof Reflect=="object"?Reflect:null,X3=lf&&typeof lf.apply=="function"?lf.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},R0;lf&&typeof lf.ownKeys=="function"?R0=lf.ownKeys:Object.getOwnPropertySymbols?R0=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:R0=function(t){return Object.getOwnPropertyNames(t)};function M9(e){console&&console.warn&&console.warn(e)}var CP=Number.isNaN||function(t){return t!==t};function Tr(){Tr.init.call(this)}TP.exports=Tr;TP.exports.once=R9;Tr.EventEmitter=Tr;Tr.prototype._events=void 0;Tr.prototype._eventsCount=0;Tr.prototype._maxListeners=void 0;var Q3=10;function fg(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Tr,"defaultMaxListeners",{enumerable:!0,get:function(){return Q3},set:function(e){if(typeof e!="number"||e<0||CP(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Q3=e}});Tr.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Tr.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||CP(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function OP(e){return e._maxListeners===void 0?Tr.defaultMaxListeners:e._maxListeners}Tr.prototype.getMaxListeners=function(){return OP(this)};Tr.prototype.emit=function(t){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i=t==="error",a=this._events;if(a!==void 0)i=i&&a.error===void 0;else if(!i)return!1;if(i){var o;if(r.length>0&&(o=r[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=a[t];if(s===void 0)return!1;if(typeof s=="function")X3(s,this,r);else for(var c=s.length,d=FP(s,c),n=0;n<c;++n)X3(d[n],this,r);return!0};function kP(e,t,r,n){var i,a,o;if(fg(r),a=e._events,a===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),o=a[t]),o===void 0)o=a[t]=r,++e._eventsCount;else if(typeof o=="function"?o=a[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),i=OP(e),i>0&&o.length>i&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,M9(l)}return e}Tr.prototype.addListener=function(t,r){return kP(this,t,r,!1)};Tr.prototype.on=Tr.prototype.addListener;Tr.prototype.prependListener=function(t,r){return kP(this,t,r,!0)};function I9(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function MP(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=I9.bind(n);return i.listener=r,n.wrapFn=i,i}Tr.prototype.once=function(t,r){return fg(r),this.on(t,MP(this,t,r)),this};Tr.prototype.prependOnceListener=function(t,r){return fg(r),this.prependListener(t,MP(this,t,r)),this};Tr.prototype.removeListener=function(t,r){var n,i,a,o,l;if(fg(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){l=n[o].listener,a=o;break}if(a<0)return this;a===0?n.shift():P9(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,l||r)}return this};Tr.prototype.off=Tr.prototype.removeListener;Tr.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var a=Object.keys(n),o;for(i=0;i<a.length;++i)o=a[i],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(i=r.length-1;i>=0;i--)this.removeListener(t,r[i]);return this};function IP(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?F9(i):FP(i,i.length)}Tr.prototype.listeners=function(t){return IP(this,t,!0)};Tr.prototype.rawListeners=function(t){return IP(this,t,!1)};Tr.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):PP.call(e,t)};Tr.prototype.listenerCount=PP;function PP(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Tr.prototype.eventNames=function(){return this._eventsCount>0?R0(this._events):[]};function FP(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function P9(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function F9(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function R9(e,t){return new Promise(function(r,n){function i(o){e.removeListener(t,a),n(o)}function a(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}RP(e,t,a,{once:!0}),t!=="error"&&N9(e,i,{once:!0})})}function N9(e,t,r){typeof e.on=="function"&&RP(e,"error",t,r)}function RP(e,t,r,n){if(typeof e.on=="function")n.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function i(a){n.once&&e.removeEventListener(t,i),r(a)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var NP=D9,R1={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},L9=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function D9(e){var t=[];return e.replace(L9,function(r,n,i){var a=n.toLowerCase();for(i=B9(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==R1[a])return i.unshift(n),t.push(i);if(i.length<R1[a])throw new Error("malformed path data");t.push([n].concat(i.splice(0,R1[a])))}}),t}var $9=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig;function B9(e){var t=e.match($9);return t?t.map(Number):[]}var z9={left:0,top:0},Xte=U9;function U9(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var n=e.clientX||0,i=e.clientY||0,a=j9(t);return r[0]=n-a.left,r[1]=i-a.top,r}function j9(e){return e===window||e===document||e===document.body?z9:e.getBoundingClientRect()}function G9(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{e=!1}return e}var Qte=G9();function W9(){var e,t=0,r=!1;function n(i,a){return e.list.push({type:i,data:a?JSON.parse(JSON.stringify(a)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(i,a){return n("check",{seg1:i,seg2:a})},segmentChop:function(i,a){return n("div_seg",{seg:i,pt:a}),n("chop",{seg:i,pt:a})},statusRemove:function(i){return n("pop_seg",{seg:i})},segmentUpdate:function(i){return n("seg_update",{seg:i})},segmentNew:function(i,a){return n("new_seg",{seg:i,primary:a})},segmentRemove:function(i){return n("rem_seg",{seg:i})},tempStatus:function(i,a,o){return n("temp_status",{seg:i,above:a,below:o})},rewind:function(i){return n("rewind",{seg:i})},status:function(i,a,o){return n("status",{seg:i,above:a,below:o})},vert:function(i){return i===r?e:(r=i,n("vert",{x:i}))},log:function(i){return typeof i!="string"&&(i=JSON.stringify(i,!1," ")),n("log",{txt:i})},reset:function(){return n("reset")},selected:function(i){return n("selected",{segs:i})},chainStart:function(i){return n("chain_start",{seg:i})},chainRemoveHead:function(i,a){return n("chain_rem_head",{index:i,pt:a})},chainRemoveTail:function(i,a){return n("chain_rem_tail",{index:i,pt:a})},chainNew:function(i,a){return n("chain_new",{pt1:i,pt2:a})},chainMatch:function(i){return n("chain_match",{index:i})},chainClose:function(i){return n("chain_close",{index:i})},chainAddHead:function(i,a){return n("chain_add_head",{index:i,pt:a})},chainAddTail:function(i,a){return n("chain_add_tail",{index:i,pt:a})},chainConnect:function(i,a){return n("chain_con",{index1:i,index2:a})},chainReverse:function(i){return n("chain_rev",{index:i})},chainJoin:function(i,a){return n("chain_join",{index1:i,index2:a})},done:function(){return n("done")}},e}var H9=W9;function V9(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,n,i){var a=n[0],o=n[1],l=i[0],s=i[1],c=r[0],d=r[1];return(l-a)*(d-o)-(s-o)*(c-a)>=-e},pointBetween:function(r,n,i){var a=r[1]-n[1],o=i[0]-n[0],l=r[0]-n[0],s=i[1]-n[1],c=l*o+a*s;if(c<e)return!1;var d=o*o+s*s;return!(c-d>-e)},pointsSameX:function(r,n){return Math.abs(r[0]-n[0])<e},pointsSameY:function(r,n){return Math.abs(r[1]-n[1])<e},pointsSame:function(r,n){return t.pointsSameX(r,n)&&t.pointsSameY(r,n)},pointsCompare:function(r,n){return t.pointsSameX(r,n)?t.pointsSameY(r,n)?0:r[1]<n[1]?-1:1:r[0]<n[0]?-1:1},pointsCollinear:function(r,n,i){var a=r[0]-n[0],o=r[1]-n[1],l=n[0]-i[0],s=n[1]-i[1];return Math.abs(a*s-l*o)<e},linesIntersect:function(r,n,i,a){var o=n[0]-r[0],l=n[1]-r[1],s=a[0]-i[0],c=a[1]-i[1],d=o*c-l*s;if(Math.abs(d)<e)return!1;var y=r[0]-i[0],g=r[1]-i[1],m=(s*g-c*y)/d,E=(o*g-l*y)/d,M={alongA:0,alongB:0,pt:[r[0]+m*o,r[1]+m*l]};return m<=-e?M.alongA=-2:m<e?M.alongA=-1:m-1<=-e?M.alongA=0:m-1<e?M.alongA=1:M.alongA=2,E<=-e?M.alongB=-2:E<e?M.alongB=-1:E-1<=-e?M.alongB=0:E-1<e?M.alongB=1:M.alongB=2,M},pointInsideRegion:function(r,n){for(var i=r[0],a=r[1],o=n[n.length-1][0],l=n[n.length-1][1],s=!1,c=0;c<n.length;c++){var d=n[c][0],y=n[c][1];y-a>e!=l-a>e&&(o-d)*(a-y)/(l-y)+d-i>e&&(s=!s),o=d,l=y}return s}};return t}var q9=V9,Y9={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var n=e.root,i=e.root.next;i!==null;){if(r(i)){t.prev=i.prev,t.next=i,i.prev.next=t,i.prev=t;return}n=i,i=i.next}n.next=t,t.prev=n,t.next=null},findTransition:function(t){for(var r=e.root,n=e.root.next;n!==null&&!t(n);)r=n,n=n.next;return{before:r===e.root?null:r,after:n,insert:function(i){return i.prev=r,i.next=n,r.next=i,n!==null&&(n.prev=i),i}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}},X9=Y9,ph=X9;function Q9(e,t,r){function n(E,M){return{id:r?r.segmentId():-1,start:E,end:M,myFill:{above:null,below:null},otherFill:null}}function i(E,M,b){return{id:r?r.segmentId():-1,start:E,end:M,myFill:{above:b.myFill.above,below:b.myFill.below},otherFill:null}}var a=ph.create();function o(E,M,b,w,_,C){var T=t.pointsCompare(M,_);return T!==0?T:t.pointsSame(b,C)?0:E!==w?E?1:-1:t.pointAboveOrOnLine(b,w?_:C,w?C:_)?1:-1}function l(E,M){a.insertBefore(E,function(b){var w=o(E.isStart,E.pt,M,b.isStart,b.pt,b.other.pt);return w<0})}function s(E,M){var b=ph.node({isStart:!0,pt:E.start,seg:E,primary:M,other:null,status:null});return l(b,E.end),b}function c(E,M,b){var w=ph.node({isStart:!1,pt:M.end,seg:M,primary:b,other:E,status:null});E.other=w,l(w,E.pt)}function d(E,M){var b=s(E,M);return c(b,E,M),b}function y(E,M){r&&r.segmentChop(E.seg,M),E.other.remove(),E.seg.end=M,E.other.pt=M,l(E.other,E.pt)}function g(E,M){var b=i(M,E.seg.end,E.seg);return y(E,M),d(b,E.primary)}function m(E,M){var b=ph.create();function w(Le,ut){var nt=Le.seg.start,De=Le.seg.end,We=ut.seg.start,_t=ut.seg.end;return t.pointsCollinear(nt,We,_t)?t.pointsCollinear(De,We,_t)||t.pointAboveOrOnLine(De,We,_t)?1:-1:t.pointAboveOrOnLine(nt,We,_t)?1:-1}function _(Le){return b.findTransition(function(ut){var nt=w(Le,ut.ev);return nt>0})}function C(Le,ut){var nt=Le.seg,De=ut.seg,We=nt.start,_t=nt.end,He=De.start,be=De.end;r&&r.checkIntersection(nt,De);var Ve=t.linesIntersect(We,_t,He,be);if(Ve===!1){if(!t.pointsCollinear(We,_t,He)||t.pointsSame(We,be)||t.pointsSame(_t,He))return!1;var st=t.pointsSame(We,He),Qe=t.pointsSame(_t,be);if(st&&Qe)return ut;var ct=!st&&t.pointBetween(We,He,be),yt=!Qe&&t.pointBetween(_t,He,be);if(st)return yt?g(ut,_t):g(Le,be),ut;ct&&(Qe||(yt?g(ut,_t):g(Le,be)),g(ut,We))}else Ve.alongA===0&&(Ve.alongB===-1?g(Le,He):Ve.alongB===0?g(Le,Ve.pt):Ve.alongB===1&&g(Le,be)),Ve.alongB===0&&(Ve.alongA===-1?g(ut,We):Ve.alongA===0?g(ut,Ve.pt):Ve.alongA===1&&g(ut,_t));return!1}for(var T=[];!a.isEmpty();){var R=a.getHead();if(r&&r.vert(R.pt[0]),R.isStart){let Le=function(){if(Y){var ut=C(R,Y);if(ut)return ut}return j?C(R,j):!1};r&&r.segmentNew(R.seg,R.primary);var D=_(R),Y=D.before?D.before.ev:null,j=D.after?D.after.ev:null;r&&r.tempStatus(R.seg,Y?Y.seg:!1,j?j.seg:!1);var re=Le();if(re){if(e){var Se;R.seg.myFill.below===null?Se=!0:Se=R.seg.myFill.above!==R.seg.myFill.below,Se&&(re.seg.myFill.above=!re.seg.myFill.above)}else re.seg.otherFill=R.seg.myFill;r&&r.segmentUpdate(re.seg),R.other.remove(),R.remove()}if(a.getHead()!==R){r&&r.rewind(R.seg);continue}if(e){var Se;R.seg.myFill.below===null?Se=!0:Se=R.seg.myFill.above!==R.seg.myFill.below,j?R.seg.myFill.below=j.seg.myFill.above:R.seg.myFill.below=E,Se?R.seg.myFill.above=!R.seg.myFill.below:R.seg.myFill.above=R.seg.myFill.below}else if(R.seg.otherFill===null){var me;j?R.primary===j.primary?me=j.seg.otherFill.above:me=j.seg.myFill.above:me=R.primary?M:E,R.seg.otherFill={above:me,below:me}}r&&r.status(R.seg,Y?Y.seg:!1,j?j.seg:!1),R.other.status=D.insert(ph.node({ev:R}))}else{var ke=R.status;if(ke===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(b.exists(ke.prev)&&b.exists(ke.next)&&C(ke.prev.ev,ke.next.ev),r&&r.statusRemove(ke.ev.seg),ke.remove(),!R.primary){var Re=R.seg.myFill;R.seg.myFill=R.seg.otherFill,R.seg.otherFill=Re}T.push(R.seg)}a.getHead().remove()}return r&&r.done(),T}return e?{addRegion:function(E){for(var M,b=E[E.length-1],w=0;w<E.length;w++){M=b,b=E[w];var _=t.pointsCompare(M,b);_!==0&&d(n(_<0?M:b,_<0?b:M),!0)}},calculate:function(E){return m(E,!1)}}:{calculate:function(E,M,b,w){return E.forEach(function(_){d(i(_.start,_.end,_),!0)}),b.forEach(function(_){d(i(_.start,_.end,_),!1)}),m(M,w)}}}var Z9=Q9;function K9(e,t,r){var n=[],i=[];return e.forEach(function(a){var o=a.start,l=a.end;if(t.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(a);var s={index:0,matches_head:!1,matches_pt1:!1},c={index:0,matches_head:!1,matches_pt1:!1},d=s;function y(ke,Re,Le){return d.index=ke,d.matches_head=Re,d.matches_pt1=Le,d===s?(d=c,!1):(d=null,!0)}for(var g=0;g<n.length;g++){var m=n[g],E=m[0];m[1];var M=m[m.length-1];if(m[m.length-2],t.pointsSame(E,o)){if(y(g,!0,!0))break}else if(t.pointsSame(E,l)){if(y(g,!0,!1))break}else if(t.pointsSame(M,o)){if(y(g,!1,!0))break}else if(t.pointsSame(M,l)&&y(g,!1,!1))break}if(d===s){n.push([o,l]),r&&r.chainNew(o,l);return}if(d===c){r&&r.chainMatch(s.index);var b=s.index,w=s.matches_pt1?l:o,_=s.matches_head,m=n[b],C=_?m[0]:m[m.length-1],T=_?m[1]:m[m.length-2],R=_?m[m.length-1]:m[0],D=_?m[m.length-2]:m[1];if(t.pointsCollinear(T,C,w)&&(_?(r&&r.chainRemoveHead(s.index,w),m.shift()):(r&&r.chainRemoveTail(s.index,w),m.pop()),C=T),t.pointsSame(R,w)){n.splice(b,1),t.pointsCollinear(D,R,C)&&(_?(r&&r.chainRemoveTail(s.index,C),m.pop()):(r&&r.chainRemoveHead(s.index,C),m.shift())),r&&r.chainClose(s.index),i.push(m);return}_?(r&&r.chainAddHead(s.index,w),m.unshift(w)):(r&&r.chainAddTail(s.index,w),m.push(w));return}function Y(ke){r&&r.chainReverse(ke),n[ke].reverse()}function j(ke,Re){var Le=n[ke],ut=n[Re],nt=Le[Le.length-1],De=Le[Le.length-2],We=ut[0],_t=ut[1];t.pointsCollinear(De,nt,We)&&(r&&r.chainRemoveTail(ke,nt),Le.pop(),nt=De),t.pointsCollinear(nt,We,_t)&&(r&&r.chainRemoveHead(Re,We),ut.shift()),r&&r.chainJoin(ke,Re),n[ke]=Le.concat(ut),n.splice(Re,1)}var re=s.index,Se=c.index;r&&r.chainConnect(re,Se);var me=n[re].length<n[Se].length;s.matches_head?c.matches_head?me?(Y(re),j(re,Se)):(Y(Se),j(Se,re)):j(Se,re):c.matches_head?j(re,Se):me?(Y(re),j(Se,re)):(Y(Se),j(re,Se))}),i}var J9=K9;function vh(e,t,r){var n=[];return e.forEach(function(i){var a=(i.myFill.above?8:0)+(i.myFill.below?4:0)+(i.otherFill&&i.otherFill.above?2:0)+(i.otherFill&&i.otherFill.below?1:0);t[a]!==0&&n.push({id:r?r.segmentId():-1,start:i.start,end:i.end,myFill:{above:t[a]===1,below:t[a]===2},otherFill:null})}),r&&r.selected(n),n}var eU={union:function(e,t){return vh(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return vh(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return vh(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return vh(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return vh(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}},tU=eU,rU={toPolygon:function(e,t){function r(a){if(a.length<=0)return e.segments({inverted:!1,regions:[]});function o(c){var d=c.slice(0,c.length-1);return e.segments({inverted:!1,regions:[d]})}for(var l=o(a[0]),s=1;s<a.length;s++)l=e.selectDifference(e.combine(l,o(a[s])));return l}if(t.type==="Polygon")return e.polygon(r(t.coordinates));if(t.type==="MultiPolygon"){for(var n=e.segments({inverted:!1,regions:[]}),i=0;i<t.coordinates.length;i++)n=e.selectUnion(e.combine(n,r(t.coordinates[i])));return e.polygon(n)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(e,t,r){r=e.polygon(e.segments(r));function n(m,E){return t.pointInsideRegion([(m[0][0]+m[1][0])*.5,(m[0][1]+m[1][1])*.5],E)}function i(m){return{region:m,children:[]}}var a=i(null);function o(m,E){for(var M=0;M<m.children.length;M++){var b=m.children[M];if(n(E,b.region)){o(b,E);return}}for(var w=i(E),M=0;M<m.children.length;M++){var b=m.children[M];n(b.region,E)&&(w.children.push(b),m.children.splice(M,1),M--)}m.children.push(w)}for(var l=0;l<r.regions.length;l++){var s=r.regions[l];s.length<3||o(a,s)}function c(m,E){for(var M=0,b=m[m.length-1][0],w=m[m.length-1][1],_=[],C=0;C<m.length;C++){var T=m[C][0],R=m[C][1];_.push([T,R]),M+=R*b-T*w,b=T,w=R}var D=M<0;return D!==E&&_.reverse(),_.push([_[0][0],_[0][1]]),_}var d=[];function y(m){var E=[c(m.region,!1)];d.push(E);for(var M=0;M<m.children.length;M++)E.push(g(m.children[M]))}function g(m){for(var E=0;E<m.children.length;E++)y(m.children[E]);return c(m.region,!0)}for(var l=0;l<a.children.length;l++)y(a.children[l]);return d.length<=0?{type:"Polygon",coordinates:[]}:d.length==1?{type:"Polygon",coordinates:d[0]}:{type:"MultiPolygon",coordinates:d}}},nU=rU;/*
|
|
45
|
-
* @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc
|
|
46
|
-
* @license MIT
|
|
47
|
-
* @preserve Project Home: https://github.com/voidqk/polybooljs
|
|
48
|
-
*/var iU=H9,aU=q9,Z3=Z9,oU=J9,mh=tU,K3=nU,_i=!1,gh=aU(),Jn;Jn={buildLog:function(e){return e===!0?_i=iU():e===!1&&(_i=!1),_i===!1?!1:_i.list},epsilon:function(e){return gh.epsilon(e)},segments:function(e){var t=Z3(!0,gh,_i);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=Z3(!1,gh,_i);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:mh.union(e.combined,_i),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:mh.intersect(e.combined,_i),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:mh.difference(e.combined,_i),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:mh.differenceRev(e.combined,_i),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:mh.xor(e.combined,_i),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:oU(e.segments,gh,_i),inverted:e.inverted}},polygonFromGeoJSON:function(e){return K3.toPolygon(Jn,e)},polygonToGeoJSON:function(e){return K3.fromPolygon(Jn,gh,e)},union:function(e,t){return yh(e,t,Jn.selectUnion)},intersect:function(e,t){return yh(e,t,Jn.selectIntersect)},difference:function(e,t){return yh(e,t,Jn.selectDifference)},differenceRev:function(e,t){return yh(e,t,Jn.selectDifferenceRev)},xor:function(e,t){return yh(e,t,Jn.selectXor)}};function yh(e,t,r){var n=Jn.segments(e),i=Jn.segments(t),a=Jn.combine(n,i),o=r(a);return Jn.polygon(o)}typeof window=="object"&&(window.PolyBool=Jn);var Zte=Jn,Kte=function(t,r,n,i){var a=t[0],o=t[1],l=!1;n===void 0&&(n=0),i===void 0&&(i=r.length);for(var s=i-n,c=0,d=s-1;c<s;d=c++){var y=r[c+n][0],g=r[c+n][1],m=r[d+n][0],E=r[d+n][1],M=g>o!=E>o&&a<(m-y)*(o-g)/(E-g)+y;M&&(l=!l)}return l};const Jte=El(tz);var LP={exports:{}};function uU(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,l=e[o],s=r!==void 0?r(l,t):l-t;s>=0?(a=o,i=o-1):n=o+1}return a}function lU(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,l=e[o],s=r!==void 0?r(l,t):l-t;s>0?(a=o,i=o-1):n=o+1}return a}function sU(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,l=e[o],s=r!==void 0?r(l,t):l-t;s<0?(a=o,n=o+1):i=o-1}return a}function fU(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,l=e[o],s=r!==void 0?r(l,t):l-t;s<=0?(a=o,n=o+1):i=o-1}return a}function cU(e,t,r,n,i){for(;n<=i;){var a=n+i>>>1,o=e[a],l=r!==void 0?r(o,t):o-t;if(l===0)return a;l<=0?n=a+1:i=a-1}return-1}function xh(e,t,r,n,i,a){return typeof r=="function"?a(e,t,r,n===void 0?0:n|0,i===void 0?e.length-1:i|0):a(e,t,void 0,r===void 0?0:r|0,n===void 0?e.length-1:n|0)}var hU={ge:function(e,t,r,n,i){return xh(e,t,r,n,i,uU)},gt:function(e,t,r,n,i){return xh(e,t,r,n,i,lU)},lt:function(e,t,r,n,i){return xh(e,t,r,n,i,sU)},le:function(e,t,r,n,i){return xh(e,t,r,n,i,fU)},eq:function(e,t,r,n,i){return xh(e,t,r,n,i,cU)}},Gd=dU;function dU(e,t,r){return t<r?e<t?t:e>r?r:e:e<r?r:e>t?t:e}var yu=function(t,r,n){var i={},a,o;if(typeof r=="string"&&(r=J3(r)),Array.isArray(r)){var l={};for(o=0;o<r.length;o++)l[r[o]]=!0;r=l}for(a in r)r[a]=J3(r[a]);var s={};for(a in r){var c=r[a];if(Array.isArray(c))for(o=0;o<c.length;o++){var d=c[o];if(n&&(s[d]=!0),d in t){if(i[a]=t[d],n)for(var y=o;y<c.length;y++)s[c[y]]=!0;break}}else a in t&&(r[a]&&(i[a]=t[a]),n&&(s[a]=!0))}if(n)for(a in t)s[a]||(i[a]=t[a]);return i},N1={};function J3(e){return N1[e]?N1[e]:(typeof e=="string"&&(e=N1[e]=e.split(/\s*,\s*|\s+/)),e)}var pU=yu,cg=vU;function vU(e){var t;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?t={width:e[0],height:e[0],x:0,y:0}:e.length===2?t={width:e[0],height:e[1],x:0,y:0}:t={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=pU(e,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),t={x:e.left||0,y:e.top||0},e.width==null?e.right?t.width=e.right-t.x:t.width=0:t.width=e.width,e.height==null?e.bottom?t.height=e.bottom-t.y:t.height=0:t.height=e.height),t}var Wd=mU;function mU(e,t){if(!e||e.length==null)throw Error("Argument should be an array");t==null?t=1:t=Math.floor(t);for(var r=Array(t*2),n=0;n<t;n++){for(var i=-1/0,a=1/0,o=n,l=e.length;o<l;o+=t)e[o]>i&&(i=e[o]),e[o]<a&&(a=e[o]);r[n]=a,r[t+n]=i}return r}var DP=function(){for(var e=0;e<arguments.length;e++)if(arguments[e]!==void 0)return arguments[e]},eS=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}},eT=eS,Hd=gU;function gU(e,t,r){if(!e)throw new TypeError("must specify data as first parameter");if(r=+(r||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var n=e[0].length,i=e.length*n,a,o,l,s;(!t||typeof t=="string")&&(t=new(eT(t||"float32"))(i+r));var c=t.length-r;if(i!==c)throw new Error("source length "+i+" ("+n+"x"+e.length+") does not match destination length "+c);for(a=0,l=r;a<e.length;a++)for(o=0;o<n;o++)t[l++]=e[a][o]===null?NaN:e[a][o]}else if(!t||typeof t=="string"){var d=eT(t||"float32");if(Array.isArray(e)||t==="array")for(t=new d(e.length+r),a=0,l=r,s=t.length;l<s;l++,a++)t[l]=e[a]===null?NaN:e[a];else r===0?t=new d(e):(t=new d(e.length+r),t.set(e,r))}else t.set(e,r);return t}var yU=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")},xU=Math.log2||function(e){return Math.log(e)*Math.LOG2E};const tT=hU,rT=Gd,bU=cg,wU=Wd,nT=yu,L1=DP,_U=Hd,SU=yU,EU=eS,iT=xU,AU=1073741824;var TU=function(t,r){r||(r={}),t=_U(t,"float64"),r=nT(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=L1(r.maxDepth,255),i=L1(r.bounds,wU(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=aT(t,i),o=t.length>>>1,l;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?l=new(EU(r.dtype))(o):r.dtype&&(l=r.dtype,Array.isArray(l)&&(l.length=o));for(let w=0;w<o;++w)l[w]=w;let s=[],c=[],d=[],y=[];m(0,0,1,l,0,1);let g=0;for(let w=0;w<s.length;w++){let _=s[w];if(l.set)l.set(_,g);else for(let T=0,R=_.length;T<R;T++)l[T+g]=_[T];let C=g+s[w].length;y[w]=[g,C],g=C}return l.range=E,l;function m(w,_,C,T,R,D){if(!T.length)return null;let Y=s[R]||(s[R]=[]),j=d[R]||(d[R]=[]),re=c[R]||(c[R]=[]),Se=Y.length;if(R++,R>n||D>AU){for(let We=0;We<T.length;We++)Y.push(T[We]),j.push(D),re.push(null,null,null,null);return Se}if(Y.push(T[0]),j.push(D),T.length<=1)return re.push(null,null,null,null),Se;let me=C*.5,ke=w+me,Re=_+me,Le=[],ut=[],nt=[],De=[];for(let We=1,_t=T.length;We<_t;We++){let He=T[We],be=a[He*2],Ve=a[He*2+1];be<ke?Ve<Re?Le.push(He):ut.push(He):Ve<Re?nt.push(He):De.push(He)}return D<<=2,re.push(m(w,_,me,Le,R,D),m(w,Re,me,ut,R,D+1),m(ke,_,me,nt,R,D+2),m(ke,Re,me,De,R,D+3)),Se}function E(...w){let _;if(SU(w[w.length-1])){let nt=w.pop();!w.length&&(nt.x!=null||nt.l!=null||nt.left!=null)&&(w=[nt],_={}),_=nT(nt,{level:"level maxLevel",d:"d diam diameter r radius px pxSize pixel pixelSize maxD size minSize",lod:"lod details ranges offsets"})}else _={};w.length||(w=i);let C=bU(...w),[T,R,D,Y]=[Math.min(C.x,C.x+C.width),Math.min(C.y,C.y+C.height),Math.max(C.x,C.x+C.width),Math.max(C.y,C.y+C.height)],[j,re,Se,me]=aT([T,R,D,Y],i),ke=L1(_.level,s.length);if(_.d!=null){let nt;typeof _.d=="number"?nt=[_.d,_.d]:_.d.length&&(nt=_.d),ke=Math.min(Math.max(Math.ceil(-iT(Math.abs(nt[0])/(i[2]-i[0]))),Math.ceil(-iT(Math.abs(nt[1])/(i[3]-i[1])))),ke)}if(ke=Math.min(ke,s.length),_.lod)return M(j,re,Se,me,ke);let Re=[];Le(0,0,1,0,0,1);function Le(nt,De,We,_t,He,be){if(He===null||be===null)return;let Ve=nt+We,st=De+We;if(j>Ve||re>st||Se<nt||me<De||_t>=ke||He===be)return;let Qe=s[_t];be===void 0&&(be=Qe.length);for(let W=He;W<be;W++){let ae=Qe[W],I=t[ae*2],A=t[ae*2+1];I>=T&&I<=D&&A>=R&&A<=Y&&Re.push(ae)}let ct=c[_t],yt=ct[He*4+0],Ht=ct[He*4+1],qt=ct[He*4+2],Ze=ct[He*4+3],At=ut(ct,He+1),jt=We*.5,Ce=_t+1;Le(nt,De,jt,Ce,yt,Ht||qt||Ze||At),Le(nt,De+jt,jt,Ce,Ht,qt||Ze||At),Le(nt+jt,De,jt,Ce,qt,Ze||At),Le(nt+jt,De+jt,jt,Ce,Ze,At)}function ut(nt,De){let We=null,_t=0;for(;We===null;)if(We=nt[De*4+_t],_t++,_t>nt.length)return null;return We}return Re}function M(w,_,C,T,R){let D=[];for(let Y=0;Y<R;Y++){let j=d[Y],re=y[Y][0],Se=b(w,_,Y),me=b(C,T,Y),ke=tT.ge(j,Se),Re=tT.gt(j,me,ke,j.length-1);D[Y]=[ke+re,Re+re]}return D}function b(w,_,C){let T=1,R=.5,D=.5,Y=.5;for(let j=0;j<C;j++)T<<=2,T+=w<R?_<D?0:1:_<D?2:3,Y*=.5,R+=w<R?-Y:Y,D+=_<D?-Y:Y;return T}};function aT(e,t){let[r,n,i,a]=t,o=1/(i-r),l=1/(a-n),s=new Array(e.length);for(let c=0,d=e.length/2;c<d;c++)s[2*c]=rT((e[2*c]-r)*o,0,1),s[2*c+1]=rT((e[2*c+1]-n)*l,0,1);return s}(function(e){e.exports=TU})(LP);var $P=CU;function CU(e){var t=0,r=0,n=0,i=0;return e.map(function(a){a=a.slice();var o=a[0],l=o.toUpperCase();if(o!=l)switch(a[0]=l,o){case"a":a[6]+=n,a[7]+=i;break;case"v":a[1]+=i;break;case"h":a[1]+=n;break;default:for(var s=1;s<a.length;)a[s++]+=n,a[s++]+=i}switch(l){case"Z":n=t,i=r;break;case"H":n=a[1];break;case"V":i=a[1];break;case"M":n=t=a[1],i=r=a[2];break;default:n=a[a.length-2],i=a[a.length-1]}return a})}var OU=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var l=t[Symbol.iterator](),s;!(i=(s=l.next()).done)&&(n.push(s.value),!(r&&n.length===r));i=!0);}catch(c){a=!0,o=c}finally{try{!i&&l.return&&l.return()}finally{if(a)throw o}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Kh=Math.PI*2,D1=function(t,r,n,i,a,o,l){var s=t.x,c=t.y;s*=r,c*=n;var d=i*s-a*c,y=a*s+i*c;return{x:d+o,y:y+l}},kU=function(t,r){var n=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),i=Math.cos(t),a=Math.sin(t),o=Math.cos(t+r),l=Math.sin(t+r);return[{x:i-a*n,y:a+i*n},{x:o+l*n,y:l-o*n},{x:o,y:l}]},oT=function(t,r,n,i){var a=t*i-r*n<0?-1:1,o=t*n+r*i;return o>1&&(o=1),o<-1&&(o=-1),a*Math.acos(o)},MU=function(t,r,n,i,a,o,l,s,c,d,y,g){var m=Math.pow(a,2),E=Math.pow(o,2),M=Math.pow(y,2),b=Math.pow(g,2),w=m*E-m*b-E*M;w<0&&(w=0),w/=m*b+E*M,w=Math.sqrt(w)*(l===s?-1:1);var _=w*a/o*g,C=w*-o/a*y,T=d*_-c*C+(t+n)/2,R=c*_+d*C+(r+i)/2,D=(y-_)/a,Y=(g-C)/o,j=(-y-_)/a,re=(-g-C)/o,Se=oT(1,0,D,Y),me=oT(D,Y,j,re);return s===0&&me>0&&(me-=Kh),s===1&&me<0&&(me+=Kh),[T,R,Se,me]},IU=function(t){var r=t.px,n=t.py,i=t.cx,a=t.cy,o=t.rx,l=t.ry,s=t.xAxisRotation,c=s===void 0?0:s,d=t.largeArcFlag,y=d===void 0?0:d,g=t.sweepFlag,m=g===void 0?0:g,E=[];if(o===0||l===0)return[];var M=Math.sin(c*Kh/360),b=Math.cos(c*Kh/360),w=b*(r-i)/2+M*(n-a)/2,_=-M*(r-i)/2+b*(n-a)/2;if(w===0&&_===0)return[];o=Math.abs(o),l=Math.abs(l);var C=Math.pow(w,2)/Math.pow(o,2)+Math.pow(_,2)/Math.pow(l,2);C>1&&(o*=Math.sqrt(C),l*=Math.sqrt(C));var T=MU(r,n,i,a,o,l,y,m,M,b,w,_),R=OU(T,4),D=R[0],Y=R[1],j=R[2],re=R[3],Se=Math.abs(re)/(Kh/4);Math.abs(1-Se)<1e-7&&(Se=1);var me=Math.max(Math.ceil(Se),1);re/=me;for(var ke=0;ke<me;ke++)E.push(kU(j,re)),j+=re;return E.map(function(Re){var Le=D1(Re[0],o,l,b,M,D,Y),ut=Le.x,nt=Le.y,De=D1(Re[1],o,l,b,M,D,Y),We=De.x,_t=De.y,He=D1(Re[2],o,l,b,M,D,Y),be=He.x,Ve=He.y;return{x1:ut,y1:nt,x2:We,y2:_t,x:be,y:Ve}})};const PU=Object.freeze(Object.defineProperty({__proto__:null,default:IU},Symbol.toStringTag,{value:"Module"})),FU=El(PU);var RU=LU,NU=FU;function LU(e){for(var t,r=[],n=0,i=0,a=0,o=0,l=null,s=null,c=0,d=0,y=0,g=e.length;y<g;y++){var m=e[y],E=m[0];switch(E){case"M":a=m[1],o=m[2];break;case"A":var M=NU({px:c,py:d,cx:m[6],cy:m[7],rx:m[1],ry:m[2],xAxisRotation:m[3],largeArcFlag:m[4],sweepFlag:m[5]});if(!M.length)continue;for(var b=0,w;b<M.length;b++)w=M[b],m=["C",w.x1,w.y1,w.x2,w.y2,w.x,w.y],b<M.length-1&&r.push(m);break;case"S":var _=c,C=d;(t=="C"||t=="S")&&(_+=_-n,C+=C-i),m=["C",_,C,m[1],m[2],m[3],m[4]];break;case"T":t=="Q"||t=="T"?(l=c*2-l,s=d*2-s):(l=c,s=d),m=uT(c,d,l,s,m[1],m[2]);break;case"Q":l=m[1],s=m[2],m=uT(c,d,m[1],m[2],m[3],m[4]);break;case"L":m=zv(c,d,m[1],m[2]);break;case"H":m=zv(c,d,m[1],d);break;case"V":m=zv(c,d,c,m[1]);break;case"Z":m=zv(c,d,a,o);break}t=E,c=m[m.length-2],d=m[m.length-1],m.length>4?(n=m[m.length-4],i=m[m.length-3]):(n=c,i=d),r.push(m)}return r}function zv(e,t,r,n){return["C",e,t,r,n,r,n]}function uT(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}var BP=function(t){return typeof t!="string"?!1:(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))},DU=NP,$U=$P,BU=RU,zU=BP,UU=jU;function jU(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"){if(!zU(e))throw Error("String is not an SVG path.");e=DU(e)}if(!Array.isArray(e))throw Error("Argument should be a string or an array of path segments.");if(e=$U(e),e=BU(e),!e.length)return[0,0,0,0];for(var t=[1/0,1/0,-1/0,-1/0],r=0,n=e.length;r<n;r++)for(var i=e[r].slice(1),a=0;a<i.length;a+=2)i[a+0]<t[0]&&(t[0]=i[a+0]),i[a+1]<t[1]&&(t[1]=i[a+1]),i[a+0]>t[2]&&(t[2]=i[a+0]),i[a+1]>t[3]&&(t[3]=i[a+1]);return t}var Zu=Math.PI,lT=UP(120),GU=WU;function WU(e){for(var t,r=[],n=0,i=0,a=0,o=0,l=null,s=null,c=0,d=0,y=0,g=e.length;y<g;y++){var m=e[y],E=m[0];switch(E){case"M":a=m[1],o=m[2];break;case"A":m=zP(c,d,m[1],m[2],UP(m[3]),m[4],m[5],m[6],m[7]),m.unshift("C"),m.length>7&&(r.push(m.splice(0,7)),m.unshift("C"));break;case"S":var M=c,b=d;(t=="C"||t=="S")&&(M+=M-n,b+=b-i),m=["C",M,b,m[1],m[2],m[3],m[4]];break;case"T":t=="Q"||t=="T"?(l=c*2-l,s=d*2-s):(l=c,s=d),m=sT(c,d,l,s,m[1],m[2]);break;case"Q":l=m[1],s=m[2],m=sT(c,d,m[1],m[2],m[3],m[4]);break;case"L":m=Uv(c,d,m[1],m[2]);break;case"H":m=Uv(c,d,m[1],d);break;case"V":m=Uv(c,d,c,m[1]);break;case"Z":m=Uv(c,d,a,o);break}t=E,c=m[m.length-2],d=m[m.length-1],m.length>4?(n=m[m.length-4],i=m[m.length-3]):(n=c,i=d),r.push(m)}return r}function Uv(e,t,r,n){return["C",e,t,r,n,r,n]}function sT(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function zP(e,t,r,n,i,a,o,l,s,c){if(c)C=c[0],T=c[1],w=c[2],_=c[3];else{var d=$1(e,t,-i);e=d.x,t=d.y,d=$1(l,s,-i),l=d.x,s=d.y;var y=(e-l)/2,g=(t-s)/2,m=y*y/(r*r)+g*g/(n*n);m>1&&(m=Math.sqrt(m),r=m*r,n=m*n);var E=r*r,M=n*n,b=(a==o?-1:1)*Math.sqrt(Math.abs((E*M-E*g*g-M*y*y)/(E*g*g+M*y*y)));b==1/0&&(b=1);var w=b*r*g/n+(e+l)/2,_=b*-n*y/r+(t+s)/2,C=Math.asin(((t-_)/n).toFixed(9)),T=Math.asin(((s-_)/n).toFixed(9));C=e<w?Zu-C:C,T=l<w?Zu-T:T,C<0&&(C=Zu*2+C),T<0&&(T=Zu*2+T),o&&C>T&&(C=C-Zu*2),!o&&T>C&&(T=T-Zu*2)}if(Math.abs(T-C)>lT){var R=T,D=l,Y=s;T=C+lT*(o&&T>C?1:-1),l=w+r*Math.cos(T),s=_+n*Math.sin(T);var j=zP(l,s,r,n,i,0,o,D,Y,[T,R,w,_])}var re=Math.tan((T-C)/4),Se=4/3*r*re,me=4/3*n*re,ke=[2*e-(e+Se*Math.sin(C)),2*t-(t-me*Math.cos(C)),l+Se*Math.sin(T),s-me*Math.cos(T),l,s];if(c)return ke;j&&(ke=ke.concat(j));for(var Re=0;Re<ke.length;){var Le=$1(ke[Re],ke[Re+1],i);ke[Re++]=Le.x,ke[Re++]=Le.y}return ke}function $1(e,t,r){return{x:e*Math.cos(r)-t*Math.sin(r),y:e*Math.sin(r)+t*Math.cos(r)}}function UP(e){return e*(Zu/180)}var HU=$P,VU=GU,qU={M:"moveTo",C:"bezierCurveTo"},YU=function(e,t){e.beginPath(),VU(HU(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[qU[n]].apply(e,i)}),e.closePath()},XU=Gd,QU=ZU,Jh=1e20;function ZU(e,t){t||(t={});var r=t.cutoff==null?.25:t.cutoff,n=t.radius==null?8:t.radius,i=t.channel||0,a,o,l,s,c,d,y,g,m,E,M;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!t.width||!t.height)throw Error("For raw data width and height should be provided by options");a=t.width,o=t.height,s=e,t.stride?d=t.stride:d=Math.floor(e.length/a/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(g=e,y=g.getContext("2d"),a=g.width,o=g.height,m=y.getImageData(0,0,a,o),s=m.data,d=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(g=e.canvas,y=e,a=g.width,o=g.height,m=y.getImageData(0,0,a,o),s=m.data,d=4):window.ImageData&&e instanceof window.ImageData&&(m=e,a=e.width,o=e.height,s=m.data,d=4);if(l=Math.max(a,o),window.Uint8ClampedArray&&s instanceof window.Uint8ClampedArray||window.Uint8Array&&s instanceof window.Uint8Array)for(c=s,s=Array(a*o),E=0,M=c.length;E<M;E++)s[E]=c[E*d+i]/255;else if(d!==1)throw Error("Raw data can have only 1 value per pixel");var b=Array(a*o),w=Array(a*o),_=Array(l),C=Array(l),T=Array(l+1),R=Array(l);for(E=0,M=a*o;E<M;E++){var D=s[E];b[E]=D===1?0:D===0?Jh:Math.pow(Math.max(0,.5-D),2),w[E]=D===1?Jh:D===0?0:Math.pow(Math.max(0,D-.5),2)}fT(b,a,o,_,C,R,T),fT(w,a,o,_,C,R,T);var Y=window.Float32Array?new Float32Array(a*o):new Array(a*o);for(E=0,M=a*o;E<M;E++)Y[E]=XU(1-((b[E]-w[E])/n+r),0,1);return Y}function fT(e,t,r,n,i,a,o){for(var l=0;l<t;l++){for(var s=0;s<r;s++)n[s]=e[s*t+l];for(cT(n,i,a,o,r),s=0;s<r;s++)e[s*t+l]=i[s]}for(s=0;s<r;s++){for(l=0;l<t;l++)n[l]=e[s*t+l];for(cT(n,i,a,o,t),l=0;l<t;l++)e[s*t+l]=Math.sqrt(i[l])}}function cT(e,t,r,n,i){r[0]=0,n[0]=-Jh,n[1]=+Jh;for(var a=1,o=0;a<i;a++){for(var l=(e[a]+a*a-(e[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);l<=n[o];)o--,l=(e[a]+a*a-(e[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);o++,r[o]=a,n[o]=l,n[o+1]=+Jh}for(a=0,o=0;a<i;a++){for(;n[o+1]<a;)o++;t[a]=(a-r[o])*(a-r[o])+e[r[o]]}}var KU=UU,JU=NP,ej=YU,tj=BP,rj=QU,Vw=document.createElement("canvas"),jn=Vw.getContext("2d"),ere=nj;function nj(e,t){if(!tj(e))throw Error("Argument should be valid svg path string");t||(t={});var r,n;t.shape?(r=t.shape[0],n=t.shape[1]):(r=Vw.width=t.w||t.width||200,n=Vw.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,o=t.viewbox||t.viewBox||KU(e),l=[r/(o[2]-o[0]),n/(o[3]-o[1])],s=Math.min(l[0]||0,l[1]||0)/2;if(jn.fillStyle="black",jn.fillRect(0,0,r,n),jn.fillStyle="white",a&&(typeof a!="number"&&(a=1),a>0?jn.strokeStyle="white":jn.strokeStyle="black",jn.lineWidth=Math.abs(a)),jn.translate(r*.5,n*.5),jn.scale(s,s),ij()){var c=new Path2D(e);jn.fill(c),a&&jn.stroke(c)}else{var d=JU(e);ej(jn,d),jn.fill(),a&&jn.stroke()}jn.setTransform(1,0,0,1,0,0);var y=rj(jn,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return y}var jv;function ij(){if(jv!=null)return jv;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return jv=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return jv=r&&r.data&&r.data[3]===255}var aj={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},oj=Object.prototype.toString,jP=function(e){var t;return oj.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))},hT=aj,uj=jP,Yu=DP,lj=sj,dT={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function sj(e){var t,r=[],n=1,i;if(typeof e=="string")if(hT[e])r=hT[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var a=e.slice(1),o=a.length,l=o<=4;n=1,l?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var s=t[1],c=s==="rgb",a=s.replace(/a$/,"");i=a;var o=a==="cmyk"?4:a==="gray"?1:3;r=t[2].trim().split(/\s*,\s*/).map(function(m,E){if(/%$/.test(m))return E===o?parseFloat(m)/100:a==="rgb"?parseFloat(m)*255/100:parseFloat(m);if(a[E]==="h"){if(/deg$/.test(m))return parseFloat(m);if(dT[m]!==void 0)return dT[m]}return parseFloat(m)}),s===a&&r.push(1),n=c||r[o]===void 0?1:r[o],r=r.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(y){return parseFloat(y)}),i=e.match(/([a-z])/ig).join("").toLowerCase());else if(!isNaN(e))i="rgb",r=[e>>>16,(e&65280)>>>8,e&255];else if(uj(e)){var d=Yu(e.r,e.red,e.R,null);d!==null?(i="rgb",r=[d,Yu(e.g,e.green,e.G),Yu(e.b,e.blue,e.B)]):(i="hsl",r=[Yu(e.h,e.hue,e.H),Yu(e.s,e.saturation,e.S),Yu(e.l,e.lightness,e.L,e.b,e.brightness)]),n=Yu(e.a,e.alpha,e.opacity,1),e.opacity!=null&&(n/=100)}else(Array.isArray(e)||Ar.ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e))&&(r=[e[0],e[1],e[2]],i="rgb",n=e.length===4?e[3]:1);return{space:i,values:r,alpha:n}}var fj={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,l,s;if(r===0)return s=n*255,[s,s,s];n<.5?a=n*(1+r):a=n+r-n*r,i=2*n-a,l=[0,0,0];for(var c=0;c<3;c++)o=t+1/3*-(c-1),o<0?o++:o>1&&o--,6*o<1?s=i+(a-i)*6*o:2*o<1?s=a:3*o<2?s=i+(a-i)*(2/3-o)*6:s=i,l[c]=s*255;return l}},cj=lj,hj=fj,Gv=Gd,dj=function(t){var r,n=cj(t);return n.space?(r=Array(3),r[0]=Gv(n.values[0],0,255),r[1]=Gv(n.values[1],0,255),r[2]=Gv(n.values[2],0,255),n.space[0]==="h"&&(r=hj.rgb(r)),r.push(Gv(n.alpha,0,1)),r):[]},pj=dj,Wv=Gd,vj=eS,hg=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=vj(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=pj(t),t[0]/=255,t[1]/=255,t[2]/=255),mj(t)?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:255,a&&(i[0]/=255,i[1]/=255,i[2]/=255,i[3]/=255),i):(a?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:1):(i[0]=Wv(Math.floor(t[0]*255),0,255),i[1]=Wv(Math.floor(t[1]*255),0,255),i[2]=Wv(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:Wv(Math.floor(t[3]*255),0,255)),i)};function mj(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}var dg={exports:{}},Hv=Gd;dg.exports=GP;dg.exports.to=GP;dg.exports.from=gj;function GP(e,t){t==null&&(t=!0);var r=e[0],n=e[1],i=e[2],a=e[3];a==null&&(a=t?1:255),t&&(r*=255,n*=255,i*=255,a*=255),r=Hv(r,0,255)&255,n=Hv(n,0,255)&255,i=Hv(i,0,255)&255,a=Hv(a,0,255)&255;var o=r*16777216+(n<<16)+(i<<8)+a;return o}function gj(e,t){e=+e;var r=e>>>24,n=(e&16711680)>>>16,i=(e&65280)>>>8,a=e&255;return t===!1?[r,n,i,a]:[r/255,n/255,i/255,a/255]}var WP=function(e){typeof e=="string"&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],n=0;n<e.length-1;n++)r.push(e[n],t[n]||"");return r.push(e[n]),r.join("")},HP=function(t,r,n){Array.isArray(n)||(n=[].slice.call(arguments,2));for(var i=0,a=n.length;i<a;i++){var o=n[i];for(var l in o)if(!(r[l]!==void 0&&!Array.isArray(r[l])&&t[l]===r[l])&&l in r){var s;if(o[l]===!0)s=r[l];else{if(o[l]===!1)continue;if(typeof o[l]=="function"&&(s=o[l](r[l],t,r),s===void 0))continue}t[l]=s}}return t},yj=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)),ou={exports:{}};ou.exports=ed;ou.exports.float32=ou.exports.float=ed;ou.exports.fract32=ou.exports.fract=xj;var pT=new Float32Array(1);function xj(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=ed(e));for(var r=0,n=t.length;r<n;r++)t[r]=e[r]-t[r];return t}return ed(e-ed(e))}function ed(e){return e.length?e instanceof Float32Array?e:new Float32Array(e):(pT[0]=e,pT[0])}function bj(e,t){return Sj(e)||Aj(e,t)||VP(e,t)||Cj()}function wj(e){return _j(e)||Ej(e)||VP(e)||Tj()}function _j(e){if(Array.isArray(e))return qw(e)}function Sj(e){if(Array.isArray(e))return e}function Ej(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Aj(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,a=!1,o,l;try{for(r=r.call(e);!(i=(o=r.next()).done)&&(n.push(o.value),!(t&&n.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw l}}return n}}function VP(e,t){if(!!e){if(typeof e=="string")return qw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qw(e,t)}}function qw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Tj(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
49
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
50
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Oj=hg,kj=Wd,Mj=dg.exports,Ij=LP.exports,cl=Al,Vv=WP,Pj=yu,Fj=HP,Rj=Hd,vT=yj,qv=ou.exports,Nj=cg,Lj=gn;function gn(e,t){var r=this;if(!(this instanceof gn))return new gn(e,t);typeof e=="function"?(t||(t={}),t.regl=e):(t=e,e=null),t&&t.length&&(t.positions=t),e=t.regl;var n=e._gl,i,a=[],o={},l=[],s=[null],c=[null],d=255,y=100;this.tooManyColors=vT,i=e.texture({data:new Uint8Array(d*4),width:d,height:1,type:"uint8",format:"rgba",wrapS:"clamp",wrapT:"clamp",mag:"nearest",min:"nearest"}),cl(this,{regl:e,gl:n,groups:l,markerCache:c,markerTextures:s,palette:a,paletteIds:o,paletteTexture:i,maxColors:d,maxSize:y,canvas:n.canvas}),this.update(t);var g={uniforms:{constPointSize:!!t.constPointSize,opacity:e.prop("opacity"),paletteSize:function(b,w){return[r.tooManyColors?0:d,i.height]},pixelRatio:e.context("pixelRatio"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translate:e.prop("translate"),translateFract:e.prop("translateFract"),markerTexture:e.prop("markerTexture"),paletteTexture:i},attributes:{x:function(b,w){return w.xAttr||{buffer:w.positionBuffer,stride:8,offset:0}},y:function(b,w){return w.yAttr||{buffer:w.positionBuffer,stride:8,offset:4}},xFract:function(b,w){return w.xAttr?{constant:[0,0]}:{buffer:w.positionFractBuffer,stride:8,offset:0}},yFract:function(b,w){return w.yAttr?{constant:[0,0]}:{buffer:w.positionFractBuffer,stride:8,offset:4}},size:function(b,w){return w.size.length?{buffer:w.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(w.size*255/r.maxSize)]}},borderSize:function(b,w){return w.borderSize.length?{buffer:w.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(w.borderSize*255/r.maxSize)]}},colorId:function(b,w){return w.color.length?{buffer:w.colorBuffer,stride:r.tooManyColors?8:4,offset:0}:{constant:r.tooManyColors?a.slice(w.color*4,w.color*4+4):[w.color]}},borderColorId:function(b,w){return w.borderColor.length?{buffer:w.colorBuffer,stride:r.tooManyColors?8:4,offset:r.tooManyColors?4:2}:{constant:r.tooManyColors?a.slice(w.borderColor*4,w.borderColor*4+4):[w.borderColor]}},isActive:function(b,w){return w.activation===!0?{constant:[1]}:w.activation?w.activation:{constant:[0]}}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:{enable:!1},depth:{enable:!1},elements:e.prop("elements"),count:e.prop("count"),offset:e.prop("offset"),primitive:"points"},m=cl({},g);m.frag=Vv([`precision highp float;
|
|
51
|
-
#define GLSLIFY 1
|
|
52
|
-
|
|
53
|
-
uniform float opacity;
|
|
54
|
-
uniform sampler2D markerTexture;
|
|
55
|
-
|
|
56
|
-
varying vec4 fragColor, fragBorderColor;
|
|
57
|
-
varying float fragWidth, fragBorderColorLevel, fragColorLevel;
|
|
58
|
-
|
|
59
|
-
float smoothStep(float x, float y) {
|
|
60
|
-
return 1.0 / (1.0 + exp(50.0*(x - y)));
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
void main() {
|
|
64
|
-
float dist = texture2D(markerTexture, gl_PointCoord).r, delta = fragWidth;
|
|
65
|
-
|
|
66
|
-
// max-distance alpha
|
|
67
|
-
if (dist < 0.003) discard;
|
|
68
|
-
|
|
69
|
-
// null-border case
|
|
70
|
-
if (fragBorderColorLevel == fragColorLevel || fragBorderColor.a == 0.) {
|
|
71
|
-
float colorAmt = smoothstep(.5 - delta, .5 + delta, dist);
|
|
72
|
-
gl_FragColor = vec4(fragColor.rgb, colorAmt * fragColor.a * opacity);
|
|
73
|
-
}
|
|
74
|
-
else {
|
|
75
|
-
float borderColorAmt = smoothstep(fragBorderColorLevel - delta, fragBorderColorLevel + delta, dist);
|
|
76
|
-
float colorAmt = smoothstep(fragColorLevel - delta, fragColorLevel + delta, dist);
|
|
77
|
-
|
|
78
|
-
vec4 color = fragBorderColor;
|
|
79
|
-
color.a *= borderColorAmt;
|
|
80
|
-
color = mix(color, fragColor, colorAmt);
|
|
81
|
-
color.a *= opacity;
|
|
82
|
-
|
|
83
|
-
gl_FragColor = color;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
`]),m.vert=Vv([`precision highp float;
|
|
88
|
-
#define GLSLIFY 1
|
|
89
|
-
|
|
90
|
-
attribute float x, y, xFract, yFract;
|
|
91
|
-
attribute float size, borderSize;
|
|
92
|
-
attribute vec4 colorId, borderColorId;
|
|
93
|
-
attribute float isActive;
|
|
94
|
-
|
|
95
|
-
uniform bool constPointSize;
|
|
96
|
-
uniform float pixelRatio;
|
|
97
|
-
uniform vec2 scale, scaleFract, translate, translateFract, paletteSize;
|
|
98
|
-
uniform sampler2D paletteTexture;
|
|
99
|
-
|
|
100
|
-
const float maxSize = 100.;
|
|
101
|
-
const float borderLevel = .5;
|
|
102
|
-
|
|
103
|
-
varying vec4 fragColor, fragBorderColor;
|
|
104
|
-
varying float fragPointSize, fragBorderRadius, fragWidth, fragBorderColorLevel, fragColorLevel;
|
|
105
|
-
|
|
106
|
-
float pointSizeScale = (constPointSize) ? 2. : pixelRatio;
|
|
107
|
-
|
|
108
|
-
bool isDirect = (paletteSize.x < 1.);
|
|
109
|
-
|
|
110
|
-
vec4 getColor(vec4 id) {
|
|
111
|
-
return isDirect ? id / 255. : texture2D(paletteTexture,
|
|
112
|
-
vec2(
|
|
113
|
-
(id.x + .5) / paletteSize.x,
|
|
114
|
-
(id.y + .5) / paletteSize.y
|
|
115
|
-
)
|
|
116
|
-
);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
void main() {
|
|
120
|
-
// ignore inactive points
|
|
121
|
-
if (isActive == 0.) return;
|
|
122
|
-
|
|
123
|
-
vec2 position = vec2(x, y);
|
|
124
|
-
vec2 positionFract = vec2(xFract, yFract);
|
|
125
|
-
|
|
126
|
-
vec4 color = getColor(colorId);
|
|
127
|
-
vec4 borderColor = getColor(borderColorId);
|
|
128
|
-
|
|
129
|
-
float size = size * maxSize / 255.;
|
|
130
|
-
float borderSize = borderSize * maxSize / 255.;
|
|
131
|
-
|
|
132
|
-
gl_PointSize = 2. * size * pointSizeScale;
|
|
133
|
-
fragPointSize = size * pixelRatio;
|
|
134
|
-
|
|
135
|
-
vec2 pos = (position + translate) * scale
|
|
136
|
-
+ (positionFract + translateFract) * scale
|
|
137
|
-
+ (position + translate) * scaleFract
|
|
138
|
-
+ (positionFract + translateFract) * scaleFract;
|
|
139
|
-
|
|
140
|
-
gl_Position = vec4(pos * 2. - 1., 0., 1.);
|
|
141
|
-
|
|
142
|
-
fragColor = color;
|
|
143
|
-
fragBorderColor = borderColor;
|
|
144
|
-
fragWidth = 1. / gl_PointSize;
|
|
145
|
-
|
|
146
|
-
fragBorderColorLevel = clamp(borderLevel - borderLevel * borderSize / size, 0., 1.);
|
|
147
|
-
fragColorLevel = clamp(borderLevel + (1. - borderLevel) * borderSize / size, 0., 1.);
|
|
148
|
-
}`]),this.drawMarker=e(m);var E=cl({},g);E.frag=Vv([`precision highp float;
|
|
149
|
-
#define GLSLIFY 1
|
|
150
|
-
|
|
151
|
-
varying vec4 fragColor, fragBorderColor;
|
|
152
|
-
varying float fragBorderRadius, fragWidth;
|
|
153
|
-
|
|
154
|
-
uniform float opacity;
|
|
155
|
-
|
|
156
|
-
float smoothStep(float edge0, float edge1, float x) {
|
|
157
|
-
float t;
|
|
158
|
-
t = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);
|
|
159
|
-
return t * t * (3.0 - 2.0 * t);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
void main() {
|
|
163
|
-
float radius, alpha = 1.0, delta = fragWidth;
|
|
164
|
-
|
|
165
|
-
radius = length(2.0 * gl_PointCoord.xy - 1.0);
|
|
166
|
-
|
|
167
|
-
if (radius > 1.0 + delta) {
|
|
168
|
-
discard;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
alpha -= smoothstep(1.0 - delta, 1.0 + delta, radius);
|
|
172
|
-
|
|
173
|
-
float borderRadius = fragBorderRadius;
|
|
174
|
-
float ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius);
|
|
175
|
-
vec4 color = mix(fragColor, fragBorderColor, ratio);
|
|
176
|
-
color.a *= alpha * opacity;
|
|
177
|
-
gl_FragColor = color;
|
|
178
|
-
}
|
|
179
|
-
`]),E.vert=Vv([`precision highp float;
|
|
180
|
-
#define GLSLIFY 1
|
|
181
|
-
|
|
182
|
-
attribute float x, y, xFract, yFract;
|
|
183
|
-
attribute float size, borderSize;
|
|
184
|
-
attribute vec4 colorId, borderColorId;
|
|
185
|
-
attribute float isActive;
|
|
186
|
-
|
|
187
|
-
uniform bool constPointSize;
|
|
188
|
-
uniform float pixelRatio;
|
|
189
|
-
uniform vec2 paletteSize, scale, scaleFract, translate, translateFract;
|
|
190
|
-
uniform sampler2D paletteTexture;
|
|
191
|
-
|
|
192
|
-
const float maxSize = 100.;
|
|
193
|
-
|
|
194
|
-
varying vec4 fragColor, fragBorderColor;
|
|
195
|
-
varying float fragBorderRadius, fragWidth;
|
|
196
|
-
|
|
197
|
-
float pointSizeScale = (constPointSize) ? 2. : pixelRatio;
|
|
198
|
-
|
|
199
|
-
bool isDirect = (paletteSize.x < 1.);
|
|
200
|
-
|
|
201
|
-
vec4 getColor(vec4 id) {
|
|
202
|
-
return isDirect ? id / 255. : texture2D(paletteTexture,
|
|
203
|
-
vec2(
|
|
204
|
-
(id.x + .5) / paletteSize.x,
|
|
205
|
-
(id.y + .5) / paletteSize.y
|
|
206
|
-
)
|
|
207
|
-
);
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
void main() {
|
|
211
|
-
// ignore inactive points
|
|
212
|
-
if (isActive == 0.) return;
|
|
213
|
-
|
|
214
|
-
vec2 position = vec2(x, y);
|
|
215
|
-
vec2 positionFract = vec2(xFract, yFract);
|
|
216
|
-
|
|
217
|
-
vec4 color = getColor(colorId);
|
|
218
|
-
vec4 borderColor = getColor(borderColorId);
|
|
219
|
-
|
|
220
|
-
float size = size * maxSize / 255.;
|
|
221
|
-
float borderSize = borderSize * maxSize / 255.;
|
|
222
|
-
|
|
223
|
-
gl_PointSize = (size + borderSize) * pointSizeScale;
|
|
224
|
-
|
|
225
|
-
vec2 pos = (position + translate) * scale
|
|
226
|
-
+ (positionFract + translateFract) * scale
|
|
227
|
-
+ (position + translate) * scaleFract
|
|
228
|
-
+ (positionFract + translateFract) * scaleFract;
|
|
229
|
-
|
|
230
|
-
gl_Position = vec4(pos * 2. - 1., 0., 1.);
|
|
231
|
-
|
|
232
|
-
fragBorderRadius = 1. - 2. * borderSize / (size + borderSize);
|
|
233
|
-
fragColor = color;
|
|
234
|
-
fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;
|
|
235
|
-
fragWidth = 1. / gl_PointSize;
|
|
236
|
-
}
|
|
237
|
-
`]),vT&&(E.frag=E.frag.replace("smoothstep","smoothStep"),m.frag=m.frag.replace("smoothstep","smoothStep")),this.drawCircle=e(E)}gn.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4};gn.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this};gn.prototype.draw=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=this.groups;if(r.length===1&&Array.isArray(r[0])&&(r[0][0]===null||Array.isArray(r[0][0]))&&(r=r[0]),this.regl._refresh(),r.length)for(var a=0;a<r.length;a++)this.drawItem(a,r[a]);else i.forEach(function(o,l){e.drawItem(l)});return this};gn.prototype.drawItem=function(e,t){var r=this.groups,n=r[e];if(typeof t=="number"&&(e=t,n=r[t],t=null),!!(n&&n.count&&n.opacity)){n.activation[0]&&this.drawCircle(this.getMarkerDrawOptions(0,n,t));for(var i=[],a=1;a<n.activation.length;a++)!n.activation[a]||n.activation[a]!==!0&&!n.activation[a].data.length||i.push.apply(i,wj(this.getMarkerDrawOptions(a,n,t)));i.length&&this.drawMarker(i)}};gn.prototype.getMarkerDrawOptions=function(e,t,r){var n=t.range,i=t.tree,a=t.viewport,o=t.activation,l=t.selectionBuffer,s=t.count;if(this.regl,!i)return r?[cl({},t,{markerTexture:this.markerTextures[e],activation:o[e],count:r.length,elements:r,offset:0})]:[cl({},t,{markerTexture:this.markerTextures[e],activation:o[e],offset:0})];var c=[],d=i.range(n,{lod:!0,px:[(n[2]-n[0])/a.width,(n[3]-n[1])/a.height]});if(r){for(var y=o[e],g=y.data,m=new Uint8Array(s),E=0;E<r.length;E++){var M=r[E];m[M]=g?g[M]:1}l.subdata(m)}for(var b=d.length;b--;){var w=bj(d[b],2),_=w[0],C=w[1];c.push(cl({},t,{markerTexture:this.markerTextures[e],activation:r?l:o[e],offset:_,count:C-_}))}return c};gn.prototype.update=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!!r.length){r.length===1&&Array.isArray(r[0])&&(r=r[0]);var i=this.groups,a=this.gl,o=this.regl,l=this.maxSize,s=this.maxColors,c=this.palette;this.groups=i=r.map(function(d,y){var g=i[y];if(d===void 0)return g;d===null?d={positions:null}:typeof d=="function"?d={ondraw:d}:typeof d[0]=="number"&&(d={positions:d}),d=Pj(d,{positions:"positions data points",snap:"snap cluster lod tree",size:"sizes size radius",borderSize:"borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline",color:"colors color fill fill-color fillColor",borderColor:"borderColors borderColor stroke stroke-color strokeColor",marker:"markers marker shape",range:"range dataBox databox",viewport:"viewport viewPort viewBox viewbox",opacity:"opacity alpha transparency",bounds:"bound bounds boundaries limits",tooManyColors:"tooManyColors palette paletteMode optimizePalette enablePalette"}),d.positions===null&&(d.positions=[]),d.tooManyColors!=null&&(e.tooManyColors=d.tooManyColors),g||(i[y]=g={id:y,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:o.buffer({data:new Uint8Array(0),usage:"stream",type:"uint8"}),sizeBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),colorBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),positionBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"}),positionFractBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"})},d=cl({},gn.defaults,d)),d.positions&&!("marker"in d)&&(d.marker=g.marker,delete g.marker),d.marker&&!("positions"in d)&&(d.positions=g.positions,delete g.positions);var m=0,E=0;if(Fj(g,d,[{snap:!0,size:function(De,We){return De==null&&(De=gn.defaults.size),m+=De&&De.length?1:0,De},borderSize:function(De,We){return De==null&&(De=gn.defaults.borderSize),m+=De&&De.length?1:0,De},opacity:parseFloat,color:function(De,We){return De==null&&(De=gn.defaults.color),De=e.updateColor(De),E++,De},borderColor:function(De,We){return De==null&&(De=gn.defaults.borderColor),De=e.updateColor(De),E++,De},bounds:function(De,We,_t){return"range"in _t||(_t.range=null),De},positions:function(De,We,_t){var He=We.snap,be=We.positionBuffer,Ve=We.positionFractBuffer,st=We.selectionBuffer;if(De.x||De.y)return De.x.length?We.xAttr={buffer:o.buffer(De.x),offset:0,stride:4,count:De.x.length}:We.xAttr={buffer:De.x.buffer,offset:De.x.offset*4||0,stride:(De.x.stride||1)*4,count:De.x.count},De.y.length?We.yAttr={buffer:o.buffer(De.y),offset:0,stride:4,count:De.y.length}:We.yAttr={buffer:De.y.buffer,offset:De.y.offset*4||0,stride:(De.y.stride||1)*4,count:De.y.count},We.count=Math.max(We.xAttr.count,We.yAttr.count),De;De=Rj(De,"float64");var Qe=We.count=Math.floor(De.length/2),ct=We.bounds=Qe?kj(De,2):null;if(!_t.range&&!We.range&&(delete We.range,_t.range=ct),!_t.marker&&!We.marker&&(delete We.marker,_t.marker=null),He&&(He===!0||Qe>He)?We.tree=Ij(De,{bounds:ct}):He&&He.length&&(We.tree=He),We.tree){var yt={primitive:"points",usage:"static",data:We.tree,type:"uint32"};We.elements?We.elements(yt):We.elements=o.elements(yt)}var Ht=qv.float32(De);be({data:Ht,usage:"dynamic"});var qt=qv.fract32(De,Ht);return Ve({data:qt,usage:"dynamic"}),st({data:new Uint8Array(Qe),type:"uint8",usage:"stream"}),De}},{marker:function(De,We,_t){var He=We.activation;if(He.forEach(function(qt){return qt&&qt.destroy&&qt.destroy()}),He.length=0,!De||typeof De[0]=="number"){var be=e.addMarker(De);He[be]=!0}else{for(var Ve=[],st=0,Qe=Math.min(De.length,We.count);st<Qe;st++){var ct=e.addMarker(De[st]);Ve[ct]||(Ve[ct]=new Uint8Array(We.count)),Ve[ct][st]=1}for(var yt=0;yt<Ve.length;yt++)if(!!Ve[yt]){var Ht={data:Ve[yt],type:"uint8",usage:"static"};He[yt]?He[yt](Ht):He[yt]=o.buffer(Ht),He[yt].data=Ve[yt]}}return De},range:function(De,We,_t){var He=We.bounds;if(!!He)return De||(De=He),We.scale=[1/(De[2]-De[0]),1/(De[3]-De[1])],We.translate=[-De[0],-De[1]],We.scaleFract=qv.fract(We.scale),We.translateFract=qv.fract(We.translate),De},viewport:function(De){var We=Nj(De||[a.drawingBufferWidth,a.drawingBufferHeight]);return We}}]),m){var M=g,b=M.count,w=M.size,_=M.borderSize,C=M.sizeBuffer,T=new Uint8Array(b*2);if(w.length||_.length)for(var R=0;R<b;R++)T[R*2]=Math.round((w[R]==null?w:w[R])*255/l),T[R*2+1]=Math.round((_[R]==null?_:_[R])*255/l);C({data:T,usage:"dynamic"})}if(E){var D=g,Y=D.count,j=D.color,re=D.borderColor,Se=D.colorBuffer,me;if(e.tooManyColors){if(j.length||re.length){me=new Uint8Array(Y*8);for(var ke=0;ke<Y;ke++){var Re=j[ke];me[ke*8]=c[Re*4],me[ke*8+1]=c[Re*4+1],me[ke*8+2]=c[Re*4+2],me[ke*8+3]=c[Re*4+3];var Le=re[ke];me[ke*8+4]=c[Le*4],me[ke*8+5]=c[Le*4+1],me[ke*8+6]=c[Le*4+2],me[ke*8+7]=c[Le*4+3]}}}else if(j.length||re.length){me=new Uint8Array(Y*4+2);for(var ut=0;ut<Y;ut++)j[ut]!=null&&(me[ut*4]=j[ut]%s,me[ut*4+1]=Math.floor(j[ut]/s)),re[ut]!=null&&(me[ut*4+2]=re[ut]%s,me[ut*4+3]=Math.floor(re[ut]/s))}Se({data:me||new Uint8Array(0),type:"uint8",usage:"dynamic"})}return g})}};gn.prototype.addMarker=function(e){var t=this.markerTextures,r=this.regl,n=this.markerCache,i=e==null?0:n.indexOf(e);if(i>=0)return i;var a;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)a=e;else{a=new Uint8Array(e.length);for(var o=0,l=e.length;o<l;o++)a[o]=e[o]*255}var s=Math.floor(Math.sqrt(a.length));return i=t.length,n.push(e),t.push(r.texture({channels:1,data:a,radius:s,mag:"linear",min:"linear"})),i};gn.prototype.updateColor=function(e){var t=this.paletteIds,r=this.palette,n=this.maxColors;Array.isArray(e)||(e=[e]);var i=[];if(typeof e[0]=="number"){var a=[];if(Array.isArray(e))for(var o=0;o<e.length;o+=4)a.push(e.slice(o,o+4));else for(var l=0;l<e.length;l+=4)a.push(e.subarray(l,l+4));e=a}for(var s=0;s<e.length;s++){var c=e[s];c=Oj(c,"uint8");var d=Mj(c,!1);if(t[d]==null){var y=r.length;t[d]=Math.floor(y/4),r[y]=c[0],r[y+1]=c[1],r[y+2]=c[2],r[y+3]=c[3]}i[s]=t[d]}return!this.tooManyColors&&r.length>n*4&&(this.tooManyColors=!0),this.updatePalette(r),i.length===1?i[0]:i};gn.prototype.updatePalette=function(e){if(!this.tooManyColors){var t=this.maxColors,r=this.paletteTexture,n=Math.ceil(e.length*.25/t);if(n>1){e=e.slice();for(var i=e.length*.25%t;i<n*t;i++)e.push(0,0,0,0)}r.height<n&&r.resize(t,n),r.subimage({width:Math.min(e.length*.25,t),height:n,data:e},0,0)}};gn.prototype.destroy=function(){return this.groups.forEach(function(e){e.sizeBuffer.destroy(),e.positionBuffer.destroy(),e.positionFractBuffer.destroy(),e.colorBuffer.destroy(),e.activation.forEach(function(t){return t&&t.destroy&&t.destroy()}),e.selectionBuffer.destroy(),e.elements&&e.elements.destroy()}),this.groups.length=0,this.paletteTexture.destroy(),this.markerTextures.forEach(function(e){return e&&e.destroy&&e.destroy()}),this};var Dj=Al,$j=function(t,r){var n=new Lj(t,r),i=n.render.bind(n);return Dj(i,{render:i,update:n.update.bind(n),draw:n.draw.bind(n),destroy:n.destroy.bind(n),regl:n.regl,gl:n.gl,canvas:n.gl.canvas,groups:n.groups,markers:n.markerCache,palette:n.palette}),i},tre=$j,tS={exports:{}};tS.exports=pg;tS.exports.default=pg;function pg(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=qP(e,0,i,r,!0),o=[];if(!a||a.next===a.prev)return o;var l,s,c,d,y,g,m;if(n&&(a=Gj(e,t,a,r)),e.length>80*r){l=c=e[0],s=d=e[1];for(var E=r;E<i;E+=r)y=e[E],g=e[E+1],y<l&&(l=y),g<s&&(s=g),y>c&&(c=y),g>d&&(d=g);m=Math.max(c-l,d-s),m=m!==0?1/m:0}return _d(a,o,r,l,s,m),o}function qP(e,t,r,n,i){var a,o;if(i===Qw(e,t,r,n)>0)for(a=t;a<r;a+=n)o=mT(a,e[a],e[a+1],o);else for(a=r-n;a>=t;a-=n)o=mT(a,e[a],e[a+1],o);return o&&vg(o,o.next)&&(Ed(o),o=o.next),o}function uu(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(vg(r,r.next)||Ur(r.prev,r,r.next)===0)){if(Ed(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function _d(e,t,r,n,i,a,o){if(!!e){!o&&a&&Yj(e,n,i,a);for(var l=e,s,c;e.prev!==e.next;){if(s=e.prev,c=e.next,a?zj(e,n,i,a):Bj(e)){t.push(s.i/r),t.push(e.i/r),t.push(c.i/r),Ed(e),e=c.next,l=c.next;continue}if(e=c,e===l){o?o===1?(e=Uj(uu(e),t,r),_d(e,t,r,n,i,a,2)):o===2&&jj(e,t,r,n,i,a):_d(uu(e),t,r,n,i,a,1);break}}}}function Bj(e){var t=e.prev,r=e,n=e.next;if(Ur(t,r,n)>=0)return!1;for(var i=e.next.next;i!==e.prev;){if(Ws(t.x,t.y,r.x,r.y,n.x,n.y,i.x,i.y)&&Ur(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function zj(e,t,r,n){var i=e.prev,a=e,o=e.next;if(Ur(i,a,o)>=0)return!1;for(var l=i.x<a.x?i.x<o.x?i.x:o.x:a.x<o.x?a.x:o.x,s=i.y<a.y?i.y<o.y?i.y:o.y:a.y<o.y?a.y:o.y,c=i.x>a.x?i.x>o.x?i.x:o.x:a.x>o.x?a.x:o.x,d=i.y>a.y?i.y>o.y?i.y:o.y:a.y>o.y?a.y:o.y,y=Yw(l,s,t,r,n),g=Yw(c,d,t,r,n),m=e.prevZ,E=e.nextZ;m&&m.z>=y&&E&&E.z<=g;){if(m!==e.prev&&m!==e.next&&Ws(i.x,i.y,a.x,a.y,o.x,o.y,m.x,m.y)&&Ur(m.prev,m,m.next)>=0||(m=m.prevZ,E!==e.prev&&E!==e.next&&Ws(i.x,i.y,a.x,a.y,o.x,o.y,E.x,E.y)&&Ur(E.prev,E,E.next)>=0))return!1;E=E.nextZ}for(;m&&m.z>=y;){if(m!==e.prev&&m!==e.next&&Ws(i.x,i.y,a.x,a.y,o.x,o.y,m.x,m.y)&&Ur(m.prev,m,m.next)>=0)return!1;m=m.prevZ}for(;E&&E.z<=g;){if(E!==e.prev&&E!==e.next&&Ws(i.x,i.y,a.x,a.y,o.x,o.y,E.x,E.y)&&Ur(E.prev,E,E.next)>=0)return!1;E=E.nextZ}return!0}function Uj(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!vg(i,a)&&YP(i,n,n.next,a)&&Sd(i,a)&&Sd(a,i)&&(t.push(i.i/r),t.push(n.i/r),t.push(a.i/r),Ed(n),Ed(n.next),n=e=a),n=n.next}while(n!==e);return uu(n)}function jj(e,t,r,n,i,a){var o=e;do{for(var l=o.next.next;l!==o.prev;){if(o.i!==l.i&&Zj(o,l)){var s=XP(o,l);o=uu(o,o.next),s=uu(s,s.next),_d(o,t,r,n,i,a),_d(s,t,r,n,i,a);return}l=l.next}o=o.next}while(o!==e)}function Gj(e,t,r,n){var i=[],a,o,l,s,c;for(a=0,o=t.length;a<o;a++)l=t[a]*n,s=a<o-1?t[a+1]*n:e.length,c=qP(e,l,s,n,!1),c===c.next&&(c.steiner=!0),i.push(Qj(c));for(i.sort(Wj),a=0;a<i.length;a++)r=Hj(i[a],r),r=uu(r,r.next);return r}function Wj(e,t){return e.x-t.x}function Hj(e,t){var r=Vj(e,t);if(!r)return t;var n=XP(r,e),i=uu(r,r.next);return uu(n,n.next),t===r?i:t}function Vj(e,t){var r=t,n=e.x,i=e.y,a=-1/0,o;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var l=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(l<=n&&l>a){if(a=l,l===n){if(i===r.y)return r;if(i===r.next.y)return r.next}o=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!o)return null;if(n===a)return o;var s=o,c=o.x,d=o.y,y=1/0,g;r=o;do n>=r.x&&r.x>=c&&n!==r.x&&Ws(i<d?n:a,i,c,d,i<d?a:n,i,r.x,r.y)&&(g=Math.abs(i-r.y)/(n-r.x),Sd(r,e)&&(g<y||g===y&&(r.x>o.x||r.x===o.x&&qj(o,r)))&&(o=r,y=g)),r=r.next;while(r!==s);return o}function qj(e,t){return Ur(e.prev,e,t.prev)<0&&Ur(t.next,e,e.next)<0}function Yj(e,t,r,n){var i=e;do i.z===null&&(i.z=Yw(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,Xj(i)}function Xj(e){var t,r,n,i,a,o,l,s,c=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,n=r,l=0,t=0;t<c&&(l++,n=n.nextZ,!!n);t++);for(s=c;l>0||s>0&&n;)l!==0&&(s===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,l--):(i=n,n=n.nextZ,s--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=n}a.nextZ=null,c*=2}while(o>1);return e}function Yw(e,t,r,n,i){return e=32767*(e-r)*i,t=32767*(t-n)*i,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function Qj(e){var t=e,r=e;do(t.x<r.x||t.x===r.x&&t.y<r.y)&&(r=t),t=t.next;while(t!==e);return r}function Ws(e,t,r,n,i,a,o,l){return(i-o)*(t-l)-(e-o)*(a-l)>=0&&(e-o)*(n-l)-(r-o)*(t-l)>=0&&(r-o)*(a-l)-(i-o)*(n-l)>=0}function Zj(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!Kj(e,t)&&(Sd(e,t)&&Sd(t,e)&&Jj(e,t)&&(Ur(e.prev,e,t.prev)||Ur(e,t.prev,t))||vg(e,t)&&Ur(e.prev,e,e.next)>0&&Ur(t.prev,t,t.next)>0)}function Ur(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function vg(e,t){return e.x===t.x&&e.y===t.y}function YP(e,t,r,n){var i=Xv(Ur(e,t,r)),a=Xv(Ur(e,t,n)),o=Xv(Ur(r,n,e)),l=Xv(Ur(r,n,t));return!!(i!==a&&o!==l||i===0&&Yv(e,r,t)||a===0&&Yv(e,n,t)||o===0&&Yv(r,e,n)||l===0&&Yv(r,t,n))}function Yv(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function Xv(e){return e>0?1:e<0?-1:0}function Kj(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&YP(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function Sd(e,t){return Ur(e.prev,e,e.next)<0?Ur(e,t,e.next)>=0&&Ur(e,e.prev,t)>=0:Ur(e,t,e.prev)<0||Ur(e,e.next,t)<0}function Jj(e,t){var r=e,n=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==e);return n}function XP(e,t){var r=new Xw(e.i,e.x,e.y),n=new Xw(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function mT(e,t,r,n){var i=new Xw(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function Ed(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function Xw(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}pg.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,o=Math.abs(Qw(e,0,a,r));if(i)for(var l=0,s=t.length;l<s;l++){var c=t[l]*r,d=l<s-1?t[l+1]*r:e.length;o-=Math.abs(Qw(e,c,d,r))}var y=0;for(l=0;l<n.length;l+=3){var g=n[l]*r,m=n[l+1]*r,E=n[l+2]*r;y+=Math.abs((e[g]-e[E])*(e[m+1]-e[g+1])-(e[g]-e[m])*(e[E+1]-e[g+1]))}return o===0&&y===0?0:Math.abs((y-o)/o)};function Qw(e,t,r,n){for(var i=0,a=t,o=r-n;a<r;a+=n)i+=(e[o]-e[a])*(e[a+1]+e[o+1]),o=a;return i}pg.flatten=function(e){for(var t=e[0][0].length,r={vertices:[],holes:[],dimensions:t},n=0,i=0;i<e.length;i++){for(var a=0;a<e[i].length;a++)for(var o=0;o<t;o++)r.vertices.push(e[i][a][o]);i>0&&(n+=e[i-1].length,r.holes.push(n))}return r};var eG=Wd,tG=rG;function rG(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=eG(e,t));for(var n=0;n<t;n++){var i=r[t+n],a=r[n],o=n,l=e.length;if(i===1/0&&a===-1/0)for(o=n;o<l;o+=t)e[o]=e[o]===i?1:e[o]===a?0:.5;else if(i===1/0)for(o=n;o<l;o+=t)e[o]=e[o]===i?1:0;else if(a===-1/0)for(o=n;o<l;o+=t)e[o]=e[o]===a?0:1;else{var s=i-a;for(o=n;o<l;o+=t)isNaN(e[o])||(e[o]=s===0?.5:(e[o]-a)/s)}}return e}var nG=function(){var e,t;if(typeof WeakMap!="function")return!1;try{e=new WeakMap([[t={},"one"],[{},"two"],[{},"three"]])}catch{return!1}return!(String(e)!=="[object WeakMap]"||typeof e.set!="function"||e.set({},1)!==e||typeof e.delete!="function"||typeof e.has!="function"||e.get(t)!=="one")},iG=function(){},aG=iG(),oo=function(e){return e!==aG&&e!==null},B1,gT;function QP(){if(gT)return B1;gT=1;var e=Object.create,t=Object.getPrototypeOf,r={};return B1=function(){var n=Object.setPrototypeOf,i=arguments[0]||e;return typeof n!="function"?!1:t(n(i(null),r))===r},B1}var oG=oo,uG={function:!0,object:!0},rS=function(e){return oG(e)&&uG[typeof e]||!1},lG=oo,Qi=function(e){if(!lG(e))throw new TypeError("Cannot use null or undefined");return e},z1,yT;function sG(){if(yT)return z1;yT=1;var e=Object.create,t;return QP()()||(t=ZP()),z1=function(){var r,n,i;return!t||t.level!==1?e:(r={},n={},i={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(a){if(a==="__proto__"){n[a]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}n[a]=i}),Object.defineProperties(r,n),Object.defineProperty(t,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:r}),function(a,o){return e(a===null?r:a,o)})}(),z1}var U1,xT;function ZP(){if(xT)return U1;xT=1;var e=rS,t=Qi,r=Object.prototype.isPrototypeOf,n=Object.defineProperty,i={configurable:!0,enumerable:!1,writable:!0,value:void 0},a;return a=function(o,l){if(t(o),l===null||e(l))return o;throw new TypeError("Prototype must be null or an object")},U1=function(o){var l,s;return o?(o.level===2?o.set?(s=o.set,l=function(c,d){return s.call(a(c,d),d),c}):l=function(c,d){return a(c,d).__proto__=d,c}:l=function c(d,y){var g;return a(d,y),g=r.call(c.nullPolyfill,d),g&&delete c.nullPolyfill.__proto__,y===null&&(y=c.nullPolyfill),d.__proto__=y,g&&n(c.nullPolyfill,"__proto__",i),d},Object.defineProperty(l,"level",{configurable:!1,enumerable:!1,writable:!1,value:o.level})):null}(function(){var o=Object.create(null),l={},s,c=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(c){try{s=c.set,s.call(o,l)}catch{}if(Object.getPrototypeOf(o)===l)return{set:s,level:2}}return o.__proto__=l,Object.getPrototypeOf(o)===l?{level:2}:(o={},o.__proto__=l,Object.getPrototypeOf(o)===l?{level:1}:!1)}()),sG(),U1}var j1,bT;function nS(){return bT||(bT=1,j1=QP()()?Object.setPrototypeOf:ZP()),j1}var G1,wT;function fG(){if(wT)return G1;wT=1;var e=rS;return G1=function(t){if(!e(t))throw new TypeError(t+" is not an Object");return t},G1}var W1,_T;function cG(){if(_T)return W1;_T=1;var e=Object.create(null),t=Math.random;return W1=function(){var r;do r=t().toString(36).slice(2);while(e[r]);return r},W1}var Fi={exports:{}},hG=void 0,Df=function(e){return e!==hG&&e!==null},dG=Df,pG={object:!0,function:!0,undefined:!0},iS=function(e){return dG(e)?hasOwnProperty.call(pG,typeof e):!1},vG=iS,mG=function(e){if(!vG(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch{return!1}},gG=mG,yG=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch{return!1}return!gG(e)},xG=yG,bG=/^\s*class[\s{/}]/,wG=Function.prototype.toString,KP=function(e){return!(!xG(e)||bG.test(wG.call(e)))},_G=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")},H1,ST;function SG(){return ST||(ST=1,H1=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),H1}var V1,ET;function EG(){if(ET)return V1;ET=1;var e=oo,t=Object.keys;return V1=function(r){return t(e(r)?Object(r):r)},V1}var q1,AT;function AG(){return AT||(AT=1,q1=SG()()?Object.keys:EG()),q1}var Y1,TT;function TG(){if(TT)return Y1;TT=1;var e=AG(),t=Qi,r=Math.max;return Y1=function(n,i){var a,o,l=r(arguments.length,2),s;for(n=Object(t(n)),s=function(c){try{n[c]=i[c]}catch(d){a||(a=d)}},o=1;o<l;++o)i=arguments[o],e(i).forEach(s);if(a!==void 0)throw a;return n},Y1}var mg=_G()?Object.assign:TG(),CG=oo,OG=Array.prototype.forEach,kG=Object.create,MG=function(e,t){var r;for(r in e)t[r]=e[r]},aS=function(e){var t=kG(null);return OG.call(arguments,function(r){!CG(r)||MG(Object(r),t)}),t},X1="razdwatrzy",IG=function(){return typeof X1.contains!="function"?!1:X1.contains("dwa")===!0&&X1.contains("foo")===!1},Q1,CT;function PG(){if(CT)return Q1;CT=1;var e=String.prototype.indexOf;return Q1=function(t){return e.call(this,t,arguments[1])>-1},Q1}var JP=IG()?String.prototype.contains:PG(),N0=Df,OT=KP,eF=mg,tF=aS,td=JP,FG=Fi.exports=function(e,t){var r,n,i,a,o;return arguments.length<2||typeof e!="string"?(a=t,t=e,e=null):a=arguments[2],N0(e)?(r=td.call(e,"c"),n=td.call(e,"e"),i=td.call(e,"w")):(r=i=!0,n=!1),o={value:t,configurable:r,enumerable:n,writable:i},a?eF(tF(a),o):o};FG.gs=function(e,t,r){var n,i,a,o;return typeof e!="string"?(a=r,r=t,t=e,e=null):a=arguments[3],N0(t)?OT(t)?N0(r)?OT(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,N0(e)?(n=td.call(e,"c"),i=td.call(e,"e")):(n=!0,i=!1),o={get:t,set:r,configurable:n,enumerable:i},a?eF(tF(a),o):o};var Z1,kT;function gg(){if(kT)return Z1;kT=1;var e=Object.prototype.toString,t=e.call(function(){return arguments}());return Z1=function(r){return e.call(r)===t},Z1}var K1,MT;function yg(){if(MT)return K1;MT=1;var e=Object.prototype.toString,t=e.call("");return K1=function(r){return typeof r=="string"||r&&typeof r=="object"&&(r instanceof String||e.call(r)===t)||!1},K1}var J1={exports:{}},ex,IT;function RG(){return IT||(IT=1,ex=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}),ex}var tx,PT;function NG(){if(PT)return tx;PT=1;var e=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};return tx=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch{return e()}try{return __global__||e()}finally{delete Object.prototype.__global__}}(),tx}var rx,FT;function xg(){return FT||(FT=1,rx=RG()()?globalThis:NG()),rx}var nx,RT;function LG(){if(RT)return nx;RT=1;var e=xg(),t={object:!0,symbol:!0};return nx=function(){var r=e.Symbol,n;if(typeof r!="function")return!1;n=r("test symbol");try{String(n)}catch{return!1}return!(!t[typeof r.iterator]||!t[typeof r.toPrimitive]||!t[typeof r.toStringTag])},nx}var ix,NT;function DG(){return NT||(NT=1,ix=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}),ix}var ax,LT;function rF(){if(LT)return ax;LT=1;var e=DG();return ax=function(t){if(!e(t))throw new TypeError(t+" is not a symbol");return t},ax}var ox,DT;function $G(){if(DT)return ox;DT=1;var e=Fi.exports,t=Object.create,r=Object.defineProperty,n=Object.prototype,i=t(null);return ox=function(a){for(var o=0,l,s;i[a+(o||"")];)++o;return a+=o||"",i[a]=!0,l="@@"+a,r(n,l,e.gs(null,function(c){s||(s=!0,r(this,l,e(c)),s=!1)})),l},ox}var ux,$T;function BG(){if($T)return ux;$T=1;var e=Fi.exports,t=xg().Symbol;return ux=function(r){return Object.defineProperties(r,{hasInstance:e("",t&&t.hasInstance||r("hasInstance")),isConcatSpreadable:e("",t&&t.isConcatSpreadable||r("isConcatSpreadable")),iterator:e("",t&&t.iterator||r("iterator")),match:e("",t&&t.match||r("match")),replace:e("",t&&t.replace||r("replace")),search:e("",t&&t.search||r("search")),species:e("",t&&t.species||r("species")),split:e("",t&&t.split||r("split")),toPrimitive:e("",t&&t.toPrimitive||r("toPrimitive")),toStringTag:e("",t&&t.toStringTag||r("toStringTag")),unscopables:e("",t&&t.unscopables||r("unscopables"))})},ux}var lx,BT;function zG(){if(BT)return lx;BT=1;var e=Fi.exports,t=rF(),r=Object.create(null);return lx=function(n){return Object.defineProperties(n,{for:e(function(i){return r[i]?r[i]:r[i]=n(String(i))}),keyFor:e(function(i){var a;t(i);for(a in r)if(r[a]===i)return a})})},lx}var sx,zT;function UG(){if(zT)return sx;zT=1;var e=Fi.exports,t=rF(),r=xg().Symbol,n=$G(),i=BG(),a=zG(),o=Object.create,l=Object.defineProperties,s=Object.defineProperty,c,d,y;if(typeof r=="function")try{String(r()),y=!0}catch{}else r=null;return d=function(m){if(this instanceof d)throw new TypeError("Symbol is not a constructor");return c(m)},sx=c=function g(m){var E;if(this instanceof g)throw new TypeError("Symbol is not a constructor");return y?r(m):(E=o(d.prototype),m=m===void 0?"":String(m),l(E,{__description__:e("",m),__name__:e("",n(m))}))},i(c),a(c),l(d.prototype,{constructor:e(c),toString:e("",function(){return this.__name__})}),l(c.prototype,{toString:e(function(){return"Symbol ("+t(this).__description__+")"}),valueOf:e(function(){return t(this)})}),s(c.prototype,c.toPrimitive,e("",function(){var g=t(this);return typeof g=="symbol"?g:g.toString()})),s(c.prototype,c.toStringTag,e("c","Symbol")),s(d.prototype,c.toStringTag,e("c",c.prototype[c.toStringTag])),s(d.prototype,c.toPrimitive,e("c",c.prototype[c.toPrimitive])),sx}var fx,UT;function Fl(){return UT||(UT=1,fx=LG()()?xg().Symbol:UG()),fx}var cx,jT;function jG(){if(jT)return cx;jT=1;var e=Qi;return cx=function(){return e(this).length=0,this},cx}var Sa=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},hx,GT;function GG(){if(GT)return hx;GT=1;var e=Df,t=iS,r=Object.prototype.toString;return hx=function(n){if(!e(n))return null;if(t(n)){var i=n.toString;if(typeof i!="function"||i===r)return null}try{return""+n}catch{return null}},hx}var dx,WT;function WG(){return WT||(WT=1,dx=function(e){try{return e.toString()}catch{try{return String(e)}catch{return null}}}),dx}var px,HT;function HG(){if(HT)return px;HT=1;var e=WG(),t=/[\n\r\u2028\u2029]/g;return px=function(r){var n=e(r);return n===null?"<Non-coercible to string value>":(n.length>100&&(n=n.slice(0,99)+"\u2026"),n=n.replace(t,function(i){switch(i){case`
|
|
238
|
-
`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),n)},px}var vx,VT;function nF(){if(VT)return vx;VT=1;var e=Df,t=iS,r=GG(),n=HG(),i=function(a,o){return a.replace("%v",n(o))};return vx=function(a,o,l){if(!t(l))throw new TypeError(i(o,a));if(!e(a)){if("default"in l)return l.default;if(l.isOptional)return null}var s=r(l.errorMessage);throw e(s)||(s=o),new TypeError(i(s,a))},vx}var mx,qT;function VG(){if(qT)return mx;qT=1;var e=nF(),t=Df;return mx=function(r){return t(r)?r:e(r,"Cannot use %v",arguments[1])},mx}var gx,YT;function qG(){if(YT)return gx;YT=1;var e=nF(),t=KP;return gx=function(r){return t(r)?r:e(r,"%v is not a plain function",arguments[1])},gx}var yx,XT;function YG(){return XT||(XT=1,yx=function(){var e=Array.from,t,r;return typeof e!="function"?!1:(t=["raz","dwa"],r=e(t),Boolean(r&&r!==t&&r[1]==="dwa"))}),yx}var xx,QT;function XG(){if(QT)return xx;QT=1;var e=Object.prototype.toString,t=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);return xx=function(r){return typeof r=="function"&&t(e.call(r))},xx}var QG=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1},bx,ZT;function ZG(){return ZT||(ZT=1,bx=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}),bx}var KG=QG()?Math.sign:ZG(),JG=KG,eW=Math.abs,tW=Math.floor,rW=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:JG(e)*tW(eW(e)))},nW=rW,iW=Math.max,Rl=function(e){return iW(0,nW(e))},wx,KT;function aW(){if(KT)return wx;KT=1;var e=Fl().iterator,t=gg(),r=XG(),n=Rl,i=Sa,a=Qi,o=oo,l=yg(),s=Array.isArray,c=Function.prototype.call,d={configurable:!0,enumerable:!0,writable:!0,value:null},y=Object.defineProperty;return wx=function(g){var m=arguments[1],E=arguments[2],M,b,w,_,C,T,R,D,Y,j;if(g=Object(a(g)),o(m)&&i(m),!this||this===Array||!r(this)){if(!m){if(t(g))return C=g.length,C!==1?Array.apply(null,g):(_=new Array(1),_[0]=g[0],_);if(s(g)){for(_=new Array(C=g.length),b=0;b<C;++b)_[b]=g[b];return _}}_=[]}else M=this;if(!s(g)){if((Y=g[e])!==void 0){for(R=i(Y).call(g),M&&(_=new M),D=R.next(),b=0;!D.done;)j=m?c.call(m,E,D.value,b):D.value,M?(d.value=j,y(_,b,d)):_[b]=j,D=R.next(),++b;C=b}else if(l(g)){for(C=g.length,M&&(_=new M),b=0,w=0;b<C;++b)j=g[b],b+1<C&&(T=j.charCodeAt(0),T>=55296&&T<=56319&&(j+=g[++b])),j=m?c.call(m,E,j,w):j,M?(d.value=j,y(_,w,d)):_[w]=j,++w;C=w}}if(C===void 0)for(C=n(g.length),M&&(_=new M(C)),b=0;b<C;++b)j=m?c.call(m,E,g[b],b):g[b],M?(d.value=j,y(_,b,d)):_[b]=j;return M&&(d.value=null,_.length=C),_},wx}var _x,JT;function bg(){return JT||(JT=1,_x=YG()()?Array.from:aW()),_x}var Sx,eC;function oW(){if(eC)return Sx;eC=1;var e=bg(),t=mg,r=Qi;return Sx=function(n){var i=Object(r(n)),a=arguments[1],o=Object(arguments[2]);if(i!==n&&!a)return i;var l={};return a?e(a,function(s){(o.ensure||s in n)&&(l[s]=n[s])}):t(l,n),l},Sx}var uW=Sa,lW=Qi,sW=Function.prototype.bind,tC=Function.prototype.call,fW=Object.keys,cW=Object.prototype.propertyIsEnumerable,hW=function(e,t){return function(r,n){var i,a=arguments[2],o=arguments[3];return r=Object(lW(r)),uW(n),i=fW(r),o&&i.sort(typeof o=="function"?sW.call(o,r):void 0),typeof e!="function"&&(e=i[e]),tC.call(e,i,function(l,s){return cW.call(r,l)?tC.call(n,a,r[l],l,r,s):t})}},wg=hW("forEach"),Ex,rC;function oS(){if(rC)return Ex;rC=1;var e=Sa,t=wg,r=Function.prototype.call;return Ex=function(n,i){var a={},o=arguments[2];return e(i),t(n,function(l,s,c,d){a[s]=r.call(i,o,l,s,c,d)}),a},Ex}var Ax,nC;function dW(){if(nC)return Ax;nC=1;var e=Df,t=VG(),r=qG(),n=oW(),i=aS,a=oS(),o=Function.prototype.bind,l=Object.defineProperty,s=Object.prototype.hasOwnProperty,c;return c=function(d,y,g){var m=t(y)&&r(y.value),E;return E=n(y),delete E.writable,delete E.value,E.get=function(){return!g.overwriteDefinition&&s.call(this,d)?m:(y.value=o.call(m,g.resolveContext?g.resolveContext(this):this),l(this,d,y),this[d])},E},Ax=function(d){var y=i(arguments[1]);return e(y.resolveContext)&&r(y.resolveContext),a(d,function(g,m){return c(m,g,y)})},Ax}var Tx,iC;function iF(){if(iC)return Tx;iC=1;var e=jG(),t=mg,r=Sa,n=Qi,i=Fi.exports,a=dW(),o=Fl(),l=Object.defineProperty,s=Object.defineProperties,c;return Tx=c=function(d,y){if(!(this instanceof c))throw new TypeError("Constructor requires 'new'");s(this,{__list__:i("w",n(d)),__context__:i("w",y),__nextIndex__:i("w",0)}),y&&(r(y.on),y.on("_add",this._onAdd),y.on("_delete",this._onDelete),y.on("_clear",this._onClear))},delete c.prototype.constructor,s(c.prototype,t({_next:i(function(){var d;if(!!this.__list__){if(this.__redo__&&(d=this.__redo__.shift(),d!==void 0))return d;if(this.__nextIndex__<this.__list__.length)return this.__nextIndex__++;this._unBind()}}),next:i(function(){return this._createResult(this._next())}),_createResult:i(function(d){return d===void 0?{done:!0,value:void 0}:{done:!1,value:this._resolve(d)}}),_resolve:i(function(d){return this.__list__[d]}),_unBind:i(function(){this.__list__=null,delete this.__redo__,this.__context__&&(this.__context__.off("_add",this._onAdd),this.__context__.off("_delete",this._onDelete),this.__context__.off("_clear",this._onClear),this.__context__=null)}),toString:i(function(){return"[object "+(this[o.toStringTag]||"Object")+"]"})},a({_onAdd:i(function(d){if(!(d>=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){l(this,"__redo__",i("c",[d]));return}this.__redo__.forEach(function(y,g){y>=d&&(this.__redo__[g]=++y)},this),this.__redo__.push(d)}}),_onDelete:i(function(d){var y;d>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(y=this.__redo__.indexOf(d),y!==-1&&this.__redo__.splice(y,1),this.__redo__.forEach(function(g,m){g>d&&(this.__redo__[m]=--g)},this)))}),_onClear:i(function(){this.__redo__&&e.call(this.__redo__),this.__nextIndex__=0})}))),l(c.prototype,o.iterator,i(function(){return this})),Tx}var aC;function pW(){if(aC)return J1.exports;aC=1;var e=nS(),t=JP,r=Fi.exports,n=Fl(),i=iF(),a=Object.defineProperty,o;return o=J1.exports=function(l,s){if(!(this instanceof o))throw new TypeError("Constructor requires 'new'");i.call(this,l),s?t.call(s,"key+value")?s="key+value":t.call(s,"key")?s="key":s="value":s="value",a(this,"__kind__",r("",s))},e&&e(o,i),delete o.prototype.constructor,o.prototype=Object.create(i.prototype,{_resolve:r(function(l){return this.__kind__==="value"?this.__list__[l]:this.__kind__==="key+value"?[l,this.__list__[l]]:l})}),a(o.prototype,n.toStringTag,r("c","Array Iterator")),J1.exports}var Cx={exports:{}},oC;function vW(){if(oC)return Cx.exports;oC=1;var e=nS(),t=Fi.exports,r=Fl(),n=iF(),i=Object.defineProperty,a;return a=Cx.exports=function(o){if(!(this instanceof a))throw new TypeError("Constructor requires 'new'");o=String(o),n.call(this,o),i(this,"__length__",t("",o.length))},e&&e(a,n),delete a.prototype.constructor,a.prototype=Object.create(n.prototype,{_next:t(function(){if(!!this.__list__){if(this.__nextIndex__<this.__length__)return this.__nextIndex__++;this._unBind()}}),_resolve:t(function(o){var l=this.__list__[o],s;return this.__nextIndex__===this.__length__?l:(s=l.charCodeAt(0),s>=55296&&s<=56319?l+this.__list__[this.__nextIndex__++]:l)})}),i(a.prototype,r.toStringTag,t("c","String Iterator")),Cx.exports}var Ox,uC;function mW(){if(uC)return Ox;uC=1;var e=gg(),t=oo,r=yg(),n=Fl().iterator,i=Array.isArray;return Ox=function(a){return t(a)?i(a)||r(a)||e(a)?!0:typeof a[n]=="function":!1},Ox}var kx,lC;function gW(){if(lC)return kx;lC=1;var e=mW();return kx=function(t){if(!e(t))throw new TypeError(t+" is not iterable");return t},kx}var Mx,sC;function aF(){if(sC)return Mx;sC=1;var e=gg(),t=yg(),r=pW(),n=vW(),i=gW(),a=Fl().iterator;return Mx=function(o){return typeof i(o)[a]=="function"?o[a]():e(o)?new r(o):t(o)?new n(o):new r(o)},Mx}var Ix,fC;function yW(){if(fC)return Ix;fC=1;var e=gg(),t=Sa,r=yg(),n=aF(),i=Array.isArray,a=Function.prototype.call,o=Array.prototype.some;return Ix=function(l,s){var c,d=arguments[2],y,g,m,E,M,b,w;if(i(l)||e(l)?c="array":r(l)?c="string":l=n(l),t(s),g=function(){m=!0},c==="array"){o.call(l,function(_){return a.call(s,d,_,g),m});return}if(c==="string"){for(M=l.length,E=0;E<M&&(b=l[E],E+1<M&&(w=b.charCodeAt(0),w>=55296&&w<=56319&&(b+=l[++E])),a.call(s,d,b,g),!m);++E);return}for(y=l.next();!y.done;){if(a.call(s,d,y.value,g),m)return;y=l.next()}},Ix}var Px,cC;function xW(){return cC||(cC=1,Px=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()),Px}var Fx,hC;function bW(){if(hC)return Fx;hC=1;var e=oo,t=nS(),r=fG(),n=Qi,i=cG(),a=Fi.exports,o=aF(),l=yW(),s=Fl().toStringTag,c=xW(),d=Array.isArray,y=Object.defineProperty,g=Object.prototype.hasOwnProperty,m=Object.getPrototypeOf,E;return Fx=E=function(){var M=arguments[0],b;if(!(this instanceof E))throw new TypeError("Constructor requires 'new'");return b=c&&t&&WeakMap!==E?t(new WeakMap,m(this)):this,e(M)&&(d(M)||(M=o(M))),y(b,"__weakMapData__",a("c","$weakMap$"+i())),M&&l(M,function(w){n(w),b.set(w[0],w[1])}),b},c&&(t&&t(E,WeakMap),E.prototype=Object.create(WeakMap.prototype,{constructor:a(E)})),Object.defineProperties(E.prototype,{delete:a(function(M){return g.call(r(M),this.__weakMapData__)?(delete M[this.__weakMapData__],!0):!1}),get:a(function(M){if(!!g.call(r(M),this.__weakMapData__))return M[this.__weakMapData__]}),has:a(function(M){return g.call(r(M),this.__weakMapData__)}),set:a(function(M,b){return y(r(M),this.__weakMapData__,a("c",b)),this}),toString:a(function(){return"[object WeakMap]"})}),y(E.prototype,s,a("c","WeakMap")),Fx}var oF=nG()?WeakMap:bW(),wW=function(e,t,r){if(typeof Array.prototype.findIndex=="function")return e.findIndex(t,r);if(typeof t!="function")throw new TypeError("predicate must be a function");var n=Object(e),i=n.length;if(i===0)return-1;for(var a=0;a<i;a++)if(t.call(r,n[a],a,n))return a;return-1};const Qv=hg,_W=Wd,Zw=Al,Cs=WP,SW=yu,EW=Hd,dC=tS.exports,AW=tG,{float32:TW,fract32:Rx}=ou.exports,CW=oF,pC=cg,OW=wW;var rre=wr;function wr(e,t){if(!(this instanceof wr))return new wr(e,t);if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=wr.shaders.has(e)?wr.shaders.get(e):wr.shaders.set(e,wr.createShaders(e)).get(e),this.update(t)}wr.dashMult=2;wr.maxPatternLength=256;wr.precisionThreshold=3e6;wr.maxPoints=1e4;wr.maxLines=2048;wr.shaders=new CW;wr.createShaders=function(e){let t=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),r={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,l)=>l.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,l)=>[l.viewport.x,l.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(o,l)=>!l.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},n=e(Zw({vert:Cs("./rect-vert.glsl"),frag:Cs("./rect-frag.glsl"),attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},r)),i;try{i=e(Zw({cull:{enable:!0,face:"back"},vert:Cs("./miter-vert.glsl"),frag:Cs("./miter-frag.glsl"),attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},r))}catch{i=n}return{fill:e({primitive:"triangle",elements:(o,l)=>l.triangles,offset:0,vert:Cs("./fill-vert.glsl"),frag:Cs("./fill-frag.glsl"),uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,l)=>[l.viewport.x,l.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:r.blend,depth:{enable:!1},scissor:r.scissor,stencil:r.stencil,viewport:r.viewport}),rect:n,miter:i}};wr.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null};wr.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};wr.prototype.draw=function(...e){return(e.length?e:this.passes).forEach((t,r)=>{if(t&&Array.isArray(t))return this.draw(...t);typeof t=="number"&&(t=this.passes[t]),t&&t.count>1&&t.opacity&&(this.regl._refresh(),t.fill&&t.triangles&&t.triangles.length>2&&this.shaders.fill(t),t.thickness&&(t.scale[0]*t.viewport.width>wr.precisionThreshold||t.scale[1]*t.viewport.height>wr.precisionThreshold?this.shaders.rect(t):t.join==="rect"||!t.join&&(t.thickness<=2||t.count>=wr.maxPoints)?this.shaders.rect(t):this.shaders.miter(t)))}),this};wr.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:t,gl:r}=this;if(e.forEach((i,a)=>{let o=this.passes[a];if(i!==void 0){if(i===null){this.passes[a]=null;return}if(typeof i[0]=="number"&&(i={positions:i}),i=SW(i,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),o||(this.passes[a]=o={id:a,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:t.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:t.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},i=Zw({},wr.defaults,i)),i.thickness!=null&&(o.thickness=parseFloat(i.thickness)),i.opacity!=null&&(o.opacity=parseFloat(i.opacity)),i.miterLimit!=null&&(o.miterLimit=parseFloat(i.miterLimit)),i.overlay!=null&&(o.overlay=!!i.overlay,a<wr.maxLines&&(o.depth=2*(wr.maxLines-1-a%wr.maxLines)/wr.maxLines-1)),i.join!=null&&(o.join=i.join),i.hole!=null&&(o.hole=i.hole),i.fill!=null&&(o.fill=i.fill?Qv(i.fill,"uint8"):null),i.viewport!=null&&(o.viewport=pC(i.viewport)),o.viewport||(o.viewport=pC([r.drawingBufferWidth,r.drawingBufferHeight])),i.close!=null&&(o.close=i.close),i.positions===null&&(i.positions=[]),i.positions){let c,d;if(i.positions.x&&i.positions.y){let E=i.positions.x,M=i.positions.y;d=o.count=Math.max(E.length,M.length),c=new Float64Array(d*2);for(let b=0;b<d;b++)c[b*2]=E[b],c[b*2+1]=M[b]}else c=EW(i.positions,"float64"),d=o.count=Math.floor(c.length/2);let y=o.bounds=_W(c,2);if(o.fill){let E=[],M={},b=0;for(let w=0,_=0,C=o.count;w<C;w++){let T=c[w*2],R=c[w*2+1];isNaN(T)||isNaN(R)||T==null||R==null?(T=c[b*2],R=c[b*2+1],M[w]=b):b=w,E[_++]=T,E[_++]=R}if(i.splitNull){o.count-1 in M||(M[o.count]=o.count-1);let w=Object.keys(M).map(Number).sort((R,D)=>R-D),_=[],C=0,T=o.hole!=null?o.hole[0]:null;if(T!=null){let R=OW(w,D=>D>=T);w=w.slice(0,R),w.push(T)}for(let R=0;R<w.length;R++){let D=E.slice(C*2,w[R]*2).concat(T?E.slice(T*2):[]),Y=(o.hole||[]).map(re=>re-T+(w[R]-C)),j=dC(D,Y);j=j.map(re=>re+C+(re+C<w[R]?0:T-w[R])),_.push(...j),C=w[R]+1}for(let R=0,D=_.length;R<D;R++)M[_[R]]!=null&&(_[R]=M[_[R]]);o.triangles=_}else{let w=dC(E,o.hole||[]);for(let _=0,C=w.length;_<C;_++)M[w[_]]!=null&&(w[_]=M[w[_]]);o.triangles=w}}let g=new Float64Array(c);AW(g,2,y);let m=new Float64Array(d*2+6);o.close?c[0]===c[d*2-2]&&c[1]===c[d*2-1]?(m[0]=g[d*2-4],m[1]=g[d*2-3]):(m[0]=g[d*2-2],m[1]=g[d*2-1]):(m[0]=g[0],m[1]=g[1]),m.set(g,2),o.close?c[0]===c[d*2-2]&&c[1]===c[d*2-1]?(m[d*2+2]=g[2],m[d*2+3]=g[3],o.count-=1):(m[d*2+2]=g[0],m[d*2+3]=g[1],m[d*2+4]=g[2],m[d*2+5]=g[3]):(m[d*2+2]=g[d*2-2],m[d*2+3]=g[d*2-1],m[d*2+4]=g[d*2-2],m[d*2+5]=g[d*2-1]);var l=TW(m);o.positionBuffer(l);var s=Rx(m,l);o.positionFractBuffer(s)}if(i.range?o.range=i.range:o.range||(o.range=o.bounds),(i.range||i.positions)&&o.count){let c=o.bounds,d=c[2]-c[0],y=c[3]-c[1],g=o.range[2]-o.range[0],m=o.range[3]-o.range[1];o.scale=[d/g,y/m],o.translate=[-o.range[0]/g+c[0]/g||0,-o.range[1]/m+c[1]/m||0],o.scaleFract=Rx(o.scale),o.translateFract=Rx(o.translate)}if(i.dashes){let c=0,d;if(!i.dashes||i.dashes.length<2)c=1,d=new Uint8Array([255,255,255,255,255,255,255,255]);else{c=0;for(let m=0;m<i.dashes.length;++m)c+=i.dashes[m];d=new Uint8Array(c*wr.dashMult);let y=0,g=255;for(let m=0;m<2;m++)for(let E=0;E<i.dashes.length;++E){for(let M=0,b=i.dashes[E]*wr.dashMult*.5;M<b;++M)d[y++]=g;g^=255}}o.dashLength=c,o.dashTexture({channels:1,data:d,width:d.length,height:1,mag:"linear",min:"linear"},0,0)}if(i.color){let c=o.count,d=i.color;d||(d="transparent");let y=new Uint8Array(c*4+4);if(!Array.isArray(d)||typeof d[0]=="number"){let g=Qv(d,"uint8");for(let m=0;m<c+1;m++)y.set(g,m*4)}else{for(let g=0;g<c;g++){let m=Qv(d[g],"uint8");y.set(m,g*4)}y.set(Qv(d[0],"uint8"),c*4)}o.colorBuffer({usage:"dynamic",type:"uint8",data:y})}}}),e.length<this.passes.length){for(let i=e.length;i<this.passes.length;i++){let a=this.passes[i];!a||(a.colorBuffer.destroy(),a.positionBuffer.destroy(),a.dashTexture.destroy())}this.passes.length=e.length}let n=[];for(let i=0;i<this.passes.length;i++)this.passes[i]!==null&&n.push(this.passes[i]);return this.passes=n,this};wr.prototype.destroy=function(){return this.passes.forEach(e=>{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this};const kW=Wd,MW=hg,IW=HP,PW=yu,vC=Al,mC=Hd,{float32:FW,fract32:Nx}=ou.exports;var nre=RW;const gC=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function RW(e,t){if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let r=e._gl,n,i,a,o,l,s,c={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},d=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),i=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),a=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),l=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"static",type:"float",data:gC}),E(t),n=e({vert:`
|
|
239
|
-
precision highp float;
|
|
240
|
-
|
|
241
|
-
attribute vec2 position, positionFract;
|
|
242
|
-
attribute vec4 error;
|
|
243
|
-
attribute vec4 color;
|
|
244
|
-
|
|
245
|
-
attribute vec2 direction, lineOffset, capOffset;
|
|
246
|
-
|
|
247
|
-
uniform vec4 viewport;
|
|
248
|
-
uniform float lineWidth, capSize;
|
|
249
|
-
uniform vec2 scale, scaleFract, translate, translateFract;
|
|
250
|
-
|
|
251
|
-
varying vec4 fragColor;
|
|
252
|
-
|
|
253
|
-
void main() {
|
|
254
|
-
fragColor = color / 255.;
|
|
255
|
-
|
|
256
|
-
vec2 pixelOffset = lineWidth * lineOffset + (capSize + lineWidth) * capOffset;
|
|
257
|
-
|
|
258
|
-
vec2 dxy = -step(.5, direction.xy) * error.xz + step(direction.xy, vec2(-.5)) * error.yw;
|
|
259
|
-
|
|
260
|
-
vec2 position = position + dxy;
|
|
261
|
-
|
|
262
|
-
vec2 pos = (position + translate) * scale
|
|
263
|
-
+ (positionFract + translateFract) * scale
|
|
264
|
-
+ (position + translate) * scaleFract
|
|
265
|
-
+ (positionFract + translateFract) * scaleFract;
|
|
266
|
-
|
|
267
|
-
pos += pixelOffset / viewport.zw;
|
|
268
|
-
|
|
269
|
-
gl_Position = vec4(pos * 2. - 1., 0, 1);
|
|
270
|
-
}
|
|
271
|
-
`,frag:`
|
|
272
|
-
precision highp float;
|
|
273
|
-
|
|
274
|
-
varying vec4 fragColor;
|
|
275
|
-
|
|
276
|
-
uniform float opacity;
|
|
277
|
-
|
|
278
|
-
void main() {
|
|
279
|
-
gl_FragColor = fragColor;
|
|
280
|
-
gl_FragColor.a *= opacity;
|
|
281
|
-
}
|
|
282
|
-
`,uniforms:{range:e.prop("range"),lineWidth:e.prop("lineWidth"),capSize:e.prop("capSize"),opacity:e.prop("opacity"),scale:e.prop("scale"),translate:e.prop("translate"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),viewport:(b,w)=>[w.viewport.x,w.viewport.y,b.viewportWidth,b.viewportHeight]},attributes:{color:{buffer:o,offset:(b,w)=>w.offset*4,divisor:1},position:{buffer:i,offset:(b,w)=>w.offset*8,divisor:1},positionFract:{buffer:a,offset:(b,w)=>w.offset*8,divisor:1},error:{buffer:l,offset:(b,w)=>w.offset*16,divisor:1},direction:{buffer:s,stride:24,offset:0},lineOffset:{buffer:s,stride:24,offset:8},capOffset:{buffer:s,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:gC.length}),vC(y,{update:E,draw:g,destroy:M,regl:e,gl:r,canvas:r.canvas,groups:d}),y;function y(b){b?E(b):b===null&&M(),g()}function g(b){if(typeof b=="number")return m(b);b&&!Array.isArray(b)&&(b=[b]),e._refresh(),d.forEach((w,_)=>{if(!!w){if(b&&(b[_]?w.draw=!0:w.draw=!1),!w.draw){w.draw=!0;return}m(_)}})}function m(b){typeof b=="number"&&(b=d[b]),b!=null&&(!(b&&b.count&&b.color&&b.opacity&&b.positions&&b.positions.length>1)||(b.scaleRatio=[b.scale[0]*b.viewport.width,b.scale[1]*b.viewport.height],n(b),b.after&&b.after(b)))}function E(b){if(!b)return;b.length!=null?typeof b[0]=="number"&&(b=[{positions:b}]):Array.isArray(b)||(b=[b]);let w=0,_=0;if(y.groups=d=b.map((R,D)=>{let Y=d[D];if(R)typeof R=="function"?R={after:R}:typeof R[0]=="number"&&(R={positions:R});else return Y;return R=PW(R,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),Y||(d[D]=Y={id:D,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},R=vC({},c,R)),IW(Y,R,[{lineWidth:j=>+j*.5,capSize:j=>+j*.5,opacity:parseFloat,errors:j=>(j=mC(j),_+=j.length,j),positions:(j,re)=>(j=mC(j,"float64"),re.count=Math.floor(j.length/2),re.bounds=kW(j,2),re.offset=w,w+=re.count,j)},{color:(j,re)=>{let Se=re.count;if(j||(j="transparent"),!Array.isArray(j)||typeof j[0]=="number"){let ke=j;j=Array(Se);for(let Re=0;Re<Se;Re++)j[Re]=ke}if(j.length<Se)throw Error("Not enough colors");let me=new Uint8Array(Se*4);for(let ke=0;ke<Se;ke++){let Re=MW(j[ke],"uint8");me.set(Re,ke*4)}return me},range:(j,re,Se)=>{let me=re.bounds;return j||(j=me),re.scale=[1/(j[2]-j[0]),1/(j[3]-j[1])],re.translate=[-j[0],-j[1]],re.scaleFract=Nx(re.scale),re.translateFract=Nx(re.translate),j},viewport:j=>{let re;return Array.isArray(j)?re={x:j[0],y:j[1],width:j[2]-j[0],height:j[3]-j[1]}:j?(re={x:j.x||j.left||0,y:j.y||j.top||0},j.right?re.width=j.right-re.x:re.width=j.w||j.width||0,j.bottom?re.height=j.bottom-re.y:re.height=j.h||j.height||0):re={x:0,y:0,width:r.drawingBufferWidth,height:r.drawingBufferHeight},re}}]),Y}),w||_){let R=d.reduce((re,Se,me)=>re+(Se?Se.count:0),0),D=new Float64Array(R*2),Y=new Uint8Array(R*4),j=new Float32Array(R*4);d.forEach((re,Se)=>{if(!re)return;let{positions:me,count:ke,offset:Re,color:Le,errors:ut}=re;!ke||(Y.set(Le,Re*4),j.set(ut,Re*4),D.set(me,Re*2))});var C=FW(D);i(C);var T=Nx(D,C);a(T),o(Y),l(j)}}function M(){i.destroy(),a.destroy(),o.destroy(),l.destroy(),s.destroy()}}var yC=/[\'\"]/,NW=function(t){return t?(yC.test(t.charAt(0))&&(t=t.substr(1)),yC.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""};const uF=["inherit","initial","unset"],lF=["caption","icon","menu","message-box","small-caption","status-bar"],sF=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"],fF=["normal","italic","oblique"],cF=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"];function hF(e,t){if(typeof e!="string")return[e];var r=[e];typeof t=="string"||Array.isArray(t)?t={brackets:t}:t||(t={});var n=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],i=t.escape||"___",a=!!t.flat;n.forEach(function(s){var c=new RegExp(["\\",s[0],"[^\\",s[0],"\\",s[1],"]*\\",s[1]].join("")),d=[];function y(g,m,E){var M=r.push(g.slice(s[0].length,-s[1].length))-1;return d.push(M),i+M+i}r.forEach(function(g,m){for(var E,M=0;g!=E;)if(E=g,g=g.replace(c,y),M++>1e4)throw Error("References have circular dependency. Please, check them.");r[m]=g}),d=d.reverse(),r=r.map(function(g){return d.forEach(function(m){g=g.replace(new RegExp("(\\"+i+m+"\\"+i+")","g"),s[0]+"$1"+s[1])}),g})});var o=new RegExp("\\"+i+"([0-9]+)\\"+i);function l(s,c,d){for(var y=[],g,m=0;g=o.exec(s);){if(m++>1e4)throw Error("Circular references in parenthesis");y.push(s.slice(0,g.index)),y.push(l(c[g[1]],c)),s=s.slice(g.index+g[0].length)}return y.push(s),y}return a?r:l(r[0],r)}function dF(e,t){if(t&&t.flat){var r=t&&t.escape||"___",n=e[0],i;if(!n)return"";for(var a=new RegExp("\\"+r+"([0-9]+)\\"+r),o=0;n!=i;){if(o++>1e4)throw Error("Circular references in "+e);i=n,n=n.replace(a,l)}return n}return e.reduce(function s(c,d){return Array.isArray(d)&&(d=d.reduce(s,"")),c+d},"");function l(s,c){if(e[c]==null)throw Error("Reference "+c+"is undefined");return e[c]}}function uS(e,t){return Array.isArray(e)?dF(e,t):hF(e,t)}uS.parse=hF;uS.stringify=dF;var LW=uS,xC=LW,DW=function(t,r,n){if(t==null)throw Error("First argument should be a string");if(r==null)throw Error("Separator should be a string or a RegExp");n?(typeof n=="string"||Array.isArray(n))&&(n={ignore:n}):n={},n.escape==null&&(n.escape=!0),n.ignore==null?n.ignore=["[]","()","{}","<>",'""',"''","``","\u201C\u201D","\xAB\xBB"]:(typeof n.ignore=="string"&&(n.ignore=[n.ignore]),n.ignore=n.ignore.map(function(y){return y.length===1&&(y=y+y),y}));var i=xC.parse(t,{flat:!0,brackets:n.ignore}),a=i[0],o=a.split(r);if(n.escape){for(var l=[],s=0;s<o.length;s++){var c=o[s],d=o[s+1];c[c.length-1]==="\\"&&c[c.length-2]!=="\\"?(l.push(c+r+d),s++):l.push(c)}o=l}for(var s=0;s<o.length;s++)i[0]=o[s],o[s]=xC.stringify(i,{flat:!0});return o};const $W=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"];var BW=$W,pF={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||BW.indexOf(t)!==-1}},zW=NW,UW=uF,jW=lF,GW=sF,WW=fF,HW=cF,Lx=DW,VW=pF.isSize,qW=vF,bh=vF.cache={};function vF(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(bh[e])return bh[e];if(e==="")throw new Error("Cannot parse an empty string.");if(jW.indexOf(e)!==-1)return bh[e]={system:e};for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},r=Lx(e,/\s+/),n;n=r.shift();){if(UW.indexOf(n)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=n}),bh[e]=t;if(WW.indexOf(n)!==-1){t.style=n;continue}if(n==="normal"||n==="small-caps"){t.variant=n;continue}if(HW.indexOf(n)!==-1){t.stretch=n;continue}if(GW.indexOf(n)!==-1){t.weight=n;continue}if(VW(n)){var i=Lx(n,"/");if(t.size=i[0],i[1]!=null?t.lineHeight=bC(i[1]):r[0]==="/"&&(r.shift(),t.lineHeight=bC(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=Lx(r.join(" "),/\s*,\s*/).map(zW),bh[e]=t}throw new Error("Unknown or unsupported font token: "+n)}throw new Error("Missing required font-size.")}function bC(e){var t=parseFloat(e);return t.toString()===e?t:e}var YW=yu,XW=pF.isSize,QW=Vd(uF),ZW=Vd(lF),KW=Vd(sF),JW=Vd(fF),eH=Vd(cF),tH={normal:1,"small-caps":1},rH={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},Dx={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"},mF=function(t){if(t=YW(t,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"}),t.system)return t.system&&wh(t.system,ZW),t.system;if(wh(t.style,JW),wh(t.variant,tH),wh(t.weight,KW),wh(t.stretch,eH),t.size==null&&(t.size=Dx.size),typeof t.size=="number"&&(t.size+="px"),!XW)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=Dx.family),Array.isArray(t.family)&&(t.family.length||(t.family=[Dx.family]),t.family=t.family.map(function(n){return rH[n]?n:'"'+n+'"'}).join(", "));var r=[];return r.push(t.style),t.variant!==t.style&&r.push(t.variant),t.weight!==t.variant&&t.weight!==t.style&&r.push(t.weight),t.stretch!==t.weight&&t.stretch!==t.variant&&t.stretch!==t.style&&r.push(t.stretch),r.push(t.size+(t.lineHeight==null||t.lineHeight==="normal"||t.lineHeight+""=="1"?"":"/"+t.lineHeight)),r.push(t.family),r.filter(Boolean).join(" ")};function wh(e,t){if(e&&!t[e]&&!QW[e])throw Error("Unknown keyword `"+e+"`");return e}function Vd(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=1;return t}var nH={parse:qW,stringify:mF},gF={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Ar,function(){var r=function(F,H){for(var K=Object.keys(H),Ee=0;Ee<K.length;++Ee)F[K[Ee]]=H[K[Ee]];return F},n=0,i=0,a=5,o=6;function l(F,H){this.id=n++,this.type=F,this.data=H}function s(F){return F.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function c(F){if(F.length===0)return[];var H=F.charAt(0),K=F.charAt(F.length-1);if(F.length>1&&H===K&&(H==='"'||H==="'"))return['"'+s(F.substr(1,F.length-2))+'"'];var Ee=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(F);if(Ee)return c(F.substr(0,Ee.index)).concat(c(Ee[1])).concat(c(F.substr(Ee.index+Ee[0].length)));var Me=F.split(".");if(Me.length===1)return['"'+s(F)+'"'];for(var ye=[],we=0;we<Me.length;++we)ye=ye.concat(c(Me[we]));return ye}function d(F){return"["+c(F).join("][")+"]"}function y(F,H){return new l(F,d(H+""))}function g(F){return typeof F=="function"&&!F._reglType||F instanceof l}function m(F,H){if(typeof F=="function")return new l(i,F);if(typeof F=="number"||typeof F=="boolean")return new l(a,F);if(Array.isArray(F))return new l(o,F.map(function(K,Ee){return m(K)}));if(F instanceof l)return F}var E={DynamicVariable:l,define:y,isDynamic:g,unbox:m,accessor:d},M={next:typeof requestAnimationFrame=="function"?function(F){return requestAnimationFrame(F)}:function(F){return setTimeout(F,16)},cancel:typeof cancelAnimationFrame=="function"?function(F){return cancelAnimationFrame(F)}:clearTimeout},b=typeof performance<"u"&&performance.now?function(){return performance.now()}:function(){return+new Date};function w(){var F={"":0},H=[""];return{id:function(K){var Ee=F[K];return Ee||(Ee=F[K]=H.length,H.push(K),Ee)},str:function(K){return H[K]}}}function _(F,H,K){var Ee=document.createElement("canvas");r(Ee.style,{border:0,margin:0,padding:0,top:0,left:0,width:"100%",height:"100%"}),F.appendChild(Ee),F===document.body&&(Ee.style.position="absolute",r(F.style,{margin:0,padding:0}));function Me(){var Ye=window.innerWidth,Xe=window.innerHeight;if(F!==document.body){var et=Ee.getBoundingClientRect();Ye=et.right-et.left,Xe=et.bottom-et.top}Ee.width=K*Ye,Ee.height=K*Xe}var ye;F!==document.body&&typeof ResizeObserver=="function"?(ye=new ResizeObserver(function(){setTimeout(Me)}),ye.observe(F)):window.addEventListener("resize",Me,!1);function we(){ye?ye.disconnect():window.removeEventListener("resize",Me),F.removeChild(Ee)}return Me(),{canvas:Ee,onDestroy:we}}function C(F,H){function K(Ee){try{return F.getContext(Ee,H)}catch{return null}}return K("webgl")||K("experimental-webgl")||K("webgl-experimental")}function T(F){return typeof F.nodeName=="string"&&typeof F.appendChild=="function"&&typeof F.getBoundingClientRect=="function"}function R(F){return typeof F.drawArrays=="function"||typeof F.drawElements=="function"}function D(F){return typeof F=="string"?F.split():F}function Y(F){return typeof F=="string"?document.querySelector(F):F}function j(F){var H=F||{},K,Ee,Me,ye,we={},Ye=[],Xe=[],et=typeof window>"u"?1:window.devicePixelRatio,ft=!1,It={},St=function(he){},it=function(){};if(typeof H=="string"?K=document.querySelector(H):typeof H=="object"&&(T(H)?K=H:R(H)?(ye=H,Me=ye.canvas):("gl"in H?ye=H.gl:"canvas"in H?Me=Y(H.canvas):"container"in H&&(Ee=Y(H.container)),"attributes"in H&&(we=H.attributes),"extensions"in H&&(Ye=D(H.extensions)),"optionalExtensions"in H&&(Xe=D(H.optionalExtensions)),"onDone"in H&&(St=H.onDone),"profile"in H&&(ft=!!H.profile),"pixelRatio"in H&&(et=+H.pixelRatio),"cachedCode"in H&&(It=H.cachedCode))),K&&(K.nodeName.toLowerCase()==="canvas"?Me=K:Ee=K),!ye){if(!Me){var Ge=_(Ee||document.body,St,et);if(!Ge)return null;Me=Ge.canvas,it=Ge.onDestroy}we.premultipliedAlpha===void 0&&(we.premultipliedAlpha=!0),ye=C(Me,we)}return ye?{gl:ye,canvas:Me,container:Ee,extensions:Ye,optionalExtensions:Xe,pixelRatio:et,profile:ft,cachedCode:It,onDone:St,onDestroy:it}:(it(),St("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function re(F,H){var K={};function Ee(we){var Ye=we.toLowerCase(),Xe;try{Xe=K[Ye]=F.getExtension(Ye)}catch{}return!!Xe}for(var Me=0;Me<H.extensions.length;++Me){var ye=H.extensions[Me];if(!Ee(ye))return H.onDestroy(),H.onDone('"'+ye+'" extension is not supported by the current WebGL context, try upgrading your system or a different browser'),null}return H.optionalExtensions.forEach(Ee),{extensions:K,restore:function(){Object.keys(K).forEach(function(we){if(K[we]&&!Ee(we))throw new Error("(regl): error restoring extension "+we)})}}}function Se(F,H){for(var K=Array(F),Ee=0;Ee<F;++Ee)K[Ee]=H(Ee);return K}var me=5120,ke=5121,Re=5122,Le=5123,ut=5124,nt=5125,De=5126;function We(F){for(var H=16;H<=1<<28;H*=16)if(F<=H)return H;return 0}function _t(F){var H,K;return H=(F>65535)<<4,F>>>=H,K=(F>255)<<3,F>>>=K,H|=K,K=(F>15)<<2,F>>>=K,H|=K,K=(F>3)<<1,F>>>=K,H|=K,H|F>>1}function He(){var F=Se(8,function(){return[]});function H(ye){var we=We(ye),Ye=F[_t(we)>>2];return Ye.length>0?Ye.pop():new ArrayBuffer(we)}function K(ye){F[_t(ye.byteLength)>>2].push(ye)}function Ee(ye,we){var Ye=null;switch(ye){case me:Ye=new Int8Array(H(we),0,we);break;case ke:Ye=new Uint8Array(H(we),0,we);break;case Re:Ye=new Int16Array(H(2*we),0,we);break;case Le:Ye=new Uint16Array(H(2*we),0,we);break;case ut:Ye=new Int32Array(H(4*we),0,we);break;case nt:Ye=new Uint32Array(H(4*we),0,we);break;case De:Ye=new Float32Array(H(4*we),0,we);break;default:return null}return Ye.length!==we?Ye.subarray(0,we):Ye}function Me(ye){K(ye.buffer)}return{alloc:H,free:K,allocType:Ee,freeType:Me}}var be=He();be.zero=He();var Ve=3408,st=3410,Qe=3411,ct=3412,yt=3413,Ht=3414,qt=3415,Ze=33901,At=33902,jt=3379,Ce=3386,W=34921,ae=36347,I=36348,A=35661,k=35660,$=34930,fe=36349,Fe=34076,ze=34024,Qt=7936,sr=7937,nr=7938,qr=35724,kr=34047,Ki=36063,bu=34852,Ea=3553,gi=34067,hp=34069,Ri=33984,wu=6408,$l=5126,Bl=5121,zl=36160,Kg=36053,Aa=36064,Jg=16384,Ul=function(F,H){var K=1;H.ext_texture_filter_anisotropic&&(K=F.getParameter(kr));var Ee=1,Me=1;H.webgl_draw_buffers&&(Ee=F.getParameter(bu),Me=F.getParameter(Ki));var ye=!!H.oes_texture_float;if(ye){var we=F.createTexture();F.bindTexture(Ea,we),F.texImage2D(Ea,0,wu,1,1,0,wu,$l,null);var Ye=F.createFramebuffer();if(F.bindFramebuffer(zl,Ye),F.framebufferTexture2D(zl,Aa,Ea,we,0),F.bindTexture(Ea,null),F.checkFramebufferStatus(zl)!==Kg)ye=!1;else{F.viewport(0,0,1,1),F.clearColor(1,0,0,1),F.clear(Jg);var Xe=be.allocType($l,4);F.readPixels(0,0,1,1,wu,$l,Xe),F.getError()?ye=!1:(F.deleteFramebuffer(Ye),F.deleteTexture(we),ye=Xe[0]===1),be.freeType(Xe)}}var et=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),ft=!0;if(!et){var It=F.createTexture(),St=be.allocType(Bl,36);F.activeTexture(Ri),F.bindTexture(gi,It),F.texImage2D(hp,0,wu,3,3,0,wu,Bl,St),be.freeType(St),F.bindTexture(gi,null),F.deleteTexture(It),ft=!F.getError()}return{colorBits:[F.getParameter(st),F.getParameter(Qe),F.getParameter(ct),F.getParameter(yt)],depthBits:F.getParameter(Ht),stencilBits:F.getParameter(qt),subpixelBits:F.getParameter(Ve),extensions:Object.keys(H).filter(function(it){return!!H[it]}),maxAnisotropic:K,maxDrawbuffers:Ee,maxColorAttachments:Me,pointSizeDims:F.getParameter(Ze),lineWidthDims:F.getParameter(At),maxViewportDims:F.getParameter(Ce),maxCombinedTextureUnits:F.getParameter(A),maxCubeMapSize:F.getParameter(Fe),maxRenderbufferSize:F.getParameter(ze),maxTextureUnits:F.getParameter($),maxTextureSize:F.getParameter(jt),maxAttributes:F.getParameter(W),maxVertexUniforms:F.getParameter(ae),maxVertexTextureUnits:F.getParameter(k),maxVaryingVectors:F.getParameter(I),maxFragmentUniforms:F.getParameter(fe),glsl:F.getParameter(qr),renderer:F.getParameter(sr),vendor:F.getParameter(Qt),version:F.getParameter(nr),readFloat:ye,npotTextureCube:ft}},tn=function(F){return F instanceof Uint8Array||F instanceof Uint16Array||F instanceof Uint32Array||F instanceof Int8Array||F instanceof Int16Array||F instanceof Int32Array||F instanceof Float32Array||F instanceof Float64Array||F instanceof Uint8ClampedArray};function ni(F){return!!F&&typeof F=="object"&&Array.isArray(F.shape)&&Array.isArray(F.stride)&&typeof F.offset=="number"&&F.shape.length===F.stride.length&&(Array.isArray(F.data)||tn(F.data))}var Bn=function(F){return Object.keys(F).map(function(H){return F[H]})},ir={shape:vp,flatten:yi};function dp(F,H,K){for(var Ee=0;Ee<H;++Ee)K[Ee]=F[Ee]}function Ni(F,H,K,Ee){for(var Me=0,ye=0;ye<H;++ye)for(var we=F[ye],Ye=0;Ye<K;++Ye)Ee[Me++]=we[Ye]}function so(F,H,K,Ee,Me,ye){for(var we=ye,Ye=0;Ye<H;++Ye)for(var Xe=F[Ye],et=0;et<K;++et)for(var ft=Xe[et],It=0;It<Ee;++It)Me[we++]=ft[It]}function pp(F,H,K,Ee,Me){for(var ye=1,we=K+1;we<H.length;++we)ye*=H[we];var Ye=H[K];if(H.length-K===4){var Xe=H[K+1],et=H[K+2],ft=H[K+3];for(we=0;we<Ye;++we)so(F[we],Xe,et,ft,Ee,Me),Me+=ye}else for(we=0;we<Ye;++we)pp(F[we],H,K+1,Ee,Me),Me+=ye}function yi(F,H,K,Ee){var Me=1;if(H.length)for(var ye=0;ye<H.length;++ye)Me*=H[ye];else Me=0;var we=Ee||be.allocType(K,Me);switch(H.length){case 0:break;case 1:dp(F,H[0],we);break;case 2:Ni(F,H[0],H[1],we);break;case 3:so(F,H[0],H[1],H[2],we,0);break;default:pp(F,H,0,we,0)}return we}function vp(F){for(var H=[],K=F;K.length;K=K[0])H.push(K.length);return H}var _u={"[object Int8Array]":5120,"[object Int16Array]":5122,"[object Int32Array]":5124,"[object Uint8Array]":5121,"[object Uint8ClampedArray]":5121,"[object Uint16Array]":5123,"[object Uint32Array]":5125,"[object Float32Array]":5126,"[object Float64Array]":5121,"[object ArrayBuffer]":5121},ey=5120,mp=5122,ty=5124,gp=5121,ry=5123,Su=5125,jf=5126,yp=5126,Eu={int8:ey,int16:mp,int32:ty,uint8:gp,uint16:ry,uint32:Su,float:jf,float32:yp},jl=35048,Gf=35040,Ji={dynamic:jl,stream:Gf,static:35044},Vn=ir.flatten,Gl=ir.shape,Wl=35044,ii=35040,Au=5121,Tu=5126,Zr=[];Zr[5120]=1,Zr[5122]=2,Zr[5124]=4,Zr[5121]=1,Zr[5123]=2,Zr[5125]=4,Zr[5126]=4;function Ta(F){return _u[Object.prototype.toString.call(F)]|0}function Wf(F,H){for(var K=0;K<H.length;++K)F[K]=H[K]}function Hf(F,H,K,Ee,Me,ye,we){for(var Ye=0,Xe=0;Xe<K;++Xe)for(var et=0;et<Ee;++et)F[Ye++]=H[Me*Xe+ye*et+we]}function xp(F,H,K,Ee){var Me=0,ye={};function we(he){this.id=Me++,this.buffer=F.createBuffer(),this.type=he,this.usage=Wl,this.byteLength=0,this.dimension=1,this.dtype=Au,this.persistentData=null,K.profile&&(this.stats={size:0})}we.prototype.bind=function(){F.bindBuffer(this.type,this.buffer)},we.prototype.destroy=function(){St(this)};var Ye=[];function Xe(he,Te){var qe=Ye.pop();return qe||(qe=new we(he)),qe.bind(),It(qe,Te,ii,0,1,!1),qe}function et(he){Ye.push(he)}function ft(he,Te,qe){he.byteLength=Te.byteLength,F.bufferData(he.type,Te,qe)}function It(he,Te,qe,Ke,Ne,pt){var ot;if(he.usage=qe,Array.isArray(Te)){if(he.dtype=Ke||Tu,Te.length>0){var Pt;if(Array.isArray(Te[0])){ot=Gl(Te);for(var $e=1,Ie=1;Ie<ot.length;++Ie)$e*=ot[Ie];he.dimension=$e,Pt=Vn(Te,ot,he.dtype),ft(he,Pt,qe),pt?he.persistentData=Pt:be.freeType(Pt)}else if(typeof Te[0]=="number"){he.dimension=Ne;var mt=be.allocType(he.dtype,Te.length);Wf(mt,Te),ft(he,mt,qe),pt?he.persistentData=mt:be.freeType(mt)}else tn(Te[0])&&(he.dimension=Te[0].length,he.dtype=Ke||Ta(Te[0])||Tu,Pt=Vn(Te,[Te.length,Te[0].length],he.dtype),ft(he,Pt,qe),pt?he.persistentData=Pt:be.freeType(Pt))}}else if(tn(Te))he.dtype=Ke||Ta(Te),he.dimension=Ne,ft(he,Te,qe),pt&&(he.persistentData=new Uint8Array(new Uint8Array(Te.buffer)));else if(ni(Te)){ot=Te.shape;var Ae=Te.stride,ht=Te.offset,Je=0,Ft=0,er=0,xt=0;ot.length===1?(Je=ot[0],Ft=1,er=Ae[0],xt=0):ot.length===2&&(Je=ot[0],Ft=ot[1],er=Ae[0],xt=Ae[1]),he.dtype=Ke||Ta(Te.data)||Tu,he.dimension=Ft;var Bt=be.allocType(he.dtype,Je*Ft);Hf(Bt,Te.data,Je,Ft,er,xt,ht),ft(he,Bt,qe),pt?he.persistentData=Bt:be.freeType(Bt)}else Te instanceof ArrayBuffer&&(he.dtype=Au,he.dimension=Ne,ft(he,Te,qe),pt&&(he.persistentData=new Uint8Array(new Uint8Array(Te))))}function St(he){H.bufferCount--,Ee(he);var Te=he.buffer;F.deleteBuffer(Te),he.buffer=null,delete ye[he.id]}function it(he,Te,qe,Ke){H.bufferCount++;var Ne=new we(Te);ye[Ne.id]=Ne;function pt($e){var Ie=Wl,mt=null,Ae=0,ht=0,Je=1;return Array.isArray($e)||tn($e)||ni($e)||$e instanceof ArrayBuffer?mt=$e:typeof $e=="number"?Ae=$e|0:$e&&("data"in $e&&(mt=$e.data),"usage"in $e&&(Ie=Ji[$e.usage]),"type"in $e&&(ht=Eu[$e.type]),"dimension"in $e&&(Je=$e.dimension|0),"length"in $e&&(Ae=$e.length|0)),Ne.bind(),mt?It(Ne,mt,Ie,ht,Je,Ke):(Ae&&F.bufferData(Ne.type,Ae,Ie),Ne.dtype=ht||Au,Ne.usage=Ie,Ne.dimension=Je,Ne.byteLength=Ae),K.profile&&(Ne.stats.size=Ne.byteLength*Zr[Ne.dtype]),pt}function ot($e,Ie){F.bufferSubData(Ne.type,Ie,$e)}function Pt($e,Ie){var mt=(Ie||0)|0,Ae;if(Ne.bind(),tn($e)||$e instanceof ArrayBuffer)ot($e,mt);else if(Array.isArray($e)){if($e.length>0){if(typeof $e[0]=="number"){var ht=be.allocType(Ne.dtype,$e.length);Wf(ht,$e),ot(ht,mt),be.freeType(ht)}else if(Array.isArray($e[0])||tn($e[0])){Ae=Gl($e);var Je=Vn($e,Ae,Ne.dtype);ot(Je,mt),be.freeType(Je)}}}else if(ni($e)){Ae=$e.shape;var Ft=$e.stride,er=0,xt=0,Bt=0,lt=0;Ae.length===1?(er=Ae[0],xt=1,Bt=Ft[0],lt=0):Ae.length===2&&(er=Ae[0],xt=Ae[1],Bt=Ft[0],lt=Ft[1]);var tr=Array.isArray($e.data)?Ne.dtype:Ta($e.data),ur=be.allocType(tr,er*xt);Hf(ur,$e.data,er,xt,Bt,lt,$e.offset),ot(ur,mt),be.freeType(ur)}return pt}return qe||pt(he),pt._reglType="buffer",pt._buffer=Ne,pt.subdata=Pt,K.profile&&(pt.stats=Ne.stats),pt.destroy=function(){St(Ne)},pt}function Ge(){Bn(ye).forEach(function(he){he.buffer=F.createBuffer(),F.bindBuffer(he.type,he.buffer),F.bufferData(he.type,he.persistentData||he.byteLength,he.usage)})}return K.profile&&(H.getTotalBufferSize=function(){var he=0;return Object.keys(ye).forEach(function(Te){he+=ye[Te].stats.size}),he}),{create:it,createStream:Xe,destroyStream:et,clear:function(){Bn(ye).forEach(St),Ye.forEach(St)},getBuffer:function(he){return he&&he._buffer instanceof we?he._buffer:null},restore:Ge,_initBuffer:It}}var Vf=0,bp=0,wp=1,qf=1,Yf=4,Xf=4,rn={points:Vf,point:bp,lines:wp,line:qf,triangles:Yf,triangle:Xf,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},_p=0,Hl=1,ea=4,fo=5120,Ca=5121,Qf=5122,Oa=5123,Vl=5124,ta=5125,co=34963,mr=35040,Zf=35044;function ql(F,H,K,Ee){var Me={},ye=0,we={uint8:Ca,uint16:Oa};H.oes_element_index_uint&&(we.uint32=ta);function Ye(Ge){this.id=ye++,Me[this.id]=this,this.buffer=Ge,this.primType=ea,this.vertCount=0,this.type=0}Ye.prototype.bind=function(){this.buffer.bind()};var Xe=[];function et(Ge){var he=Xe.pop();return he||(he=new Ye(K.create(null,co,!0,!1)._buffer)),It(he,Ge,mr,-1,-1,0,0),he}function ft(Ge){Xe.push(Ge)}function It(Ge,he,Te,qe,Ke,Ne,pt){Ge.buffer.bind();var ot;if(he){var Pt=pt;!pt&&(!tn(he)||ni(he)&&!tn(he.data))&&(Pt=H.oes_element_index_uint?ta:Oa),K._initBuffer(Ge.buffer,he,Te,Pt,3)}else F.bufferData(co,Ne,Te),Ge.buffer.dtype=ot||Ca,Ge.buffer.usage=Te,Ge.buffer.dimension=3,Ge.buffer.byteLength=Ne;if(ot=pt,!pt){switch(Ge.buffer.dtype){case Ca:case fo:ot=Ca;break;case Oa:case Qf:ot=Oa;break;case ta:case Vl:ot=ta;break}Ge.buffer.dtype=ot}Ge.type=ot;var $e=Ke;$e<0&&($e=Ge.buffer.byteLength,ot===Oa?$e>>=1:ot===ta&&($e>>=2)),Ge.vertCount=$e;var Ie=qe;if(qe<0){Ie=ea;var mt=Ge.buffer.dimension;mt===1&&(Ie=_p),mt===2&&(Ie=Hl),mt===3&&(Ie=ea)}Ge.primType=Ie}function St(Ge){Ee.elementsCount--,delete Me[Ge.id],Ge.buffer.destroy(),Ge.buffer=null}function it(Ge,he){var Te=K.create(null,co,!0),qe=new Ye(Te._buffer);Ee.elementsCount++;function Ke(Ne){if(!Ne)Te(),qe.primType=ea,qe.vertCount=0,qe.type=Ca;else if(typeof Ne=="number")Te(Ne),qe.primType=ea,qe.vertCount=Ne|0,qe.type=Ca;else{var pt=null,ot=Zf,Pt=-1,$e=-1,Ie=0,mt=0;Array.isArray(Ne)||tn(Ne)||ni(Ne)?pt=Ne:("data"in Ne&&(pt=Ne.data),"usage"in Ne&&(ot=Ji[Ne.usage]),"primitive"in Ne&&(Pt=rn[Ne.primitive]),"count"in Ne&&($e=Ne.count|0),"type"in Ne&&(mt=we[Ne.type]),"length"in Ne?Ie=Ne.length|0:(Ie=$e,mt===Oa||mt===Qf?Ie*=2:(mt===ta||mt===Vl)&&(Ie*=4))),It(qe,pt,ot,Pt,$e,Ie,mt)}return Ke}return Ke(Ge),Ke._reglType="elements",Ke._elements=qe,Ke.subdata=function(Ne,pt){return Te.subdata(Ne,pt),Ke},Ke.destroy=function(){St(qe)},Ke}return{create:it,createStream:et,destroyStream:ft,getElements:function(Ge){return typeof Ge=="function"&&Ge._elements instanceof Ye?Ge._elements:null},clear:function(){Bn(Me).forEach(St)}}}var Sp=new Float32Array(1),ny=new Uint32Array(Sp.buffer),Yl=5123;function Cu(F){for(var H=be.allocType(Yl,F.length),K=0;K<F.length;++K)if(isNaN(F[K]))H[K]=65535;else if(F[K]===1/0)H[K]=31744;else if(F[K]===-1/0)H[K]=64512;else{Sp[0]=F[K];var Ee=ny[0],Me=Ee>>>31<<15,ye=(Ee<<1>>>24)-127,we=Ee>>13&(1<<10)-1;if(ye<-24)H[K]=Me;else if(ye<-14){var Ye=-14-ye;H[K]=Me+(we+(1<<10)>>Ye)}else ye>15?H[K]=Me+31744:H[K]=Me+(ye+15<<10)+we}return H}function ai(F){return Array.isArray(F)||tn(F)}var Xl=34467,oi=3553,ho=34067,po=34069,ra=6408,Ql=6406,Li=6407,Di=6409,Ou=6410,Ep=32854,vo=32855,Zl=36194,Kf=32819,Ap=32820,mo=33635,ka=34042,na=6402,ku=34041,Mu=35904,Ma=35906,Ia=36193,Jf=33776,Kl=33777,Iu=33778,ec=33779,Tp=35986,tc=35987,Cp=34798,rc=35840,Op=35841,nc=35842,kp=35843,Pa=36196,ui=5121,ic=5123,ac=5125,Pu=5126,Mp=10242,Fu=10243,iy=10497,go=33071,Jl=33648,oc=10240,es=10241,Fa=9728,Ru=9729,ts=9984,rs=9985,Ip=9986,yo=9987,ay=33170,ns=4352,oy=4353,Pp=4354,Nu=34046,uy=3317,uc=37440,Fp=37441,$i=37443,lc=37444,Ra=33984,sc=[ts,Ip,rs,yo],xi=[0,Di,Ou,Li,ra],In={};In[Di]=In[Ql]=In[na]=1,In[ku]=In[Ou]=2,In[Li]=In[Mu]=3,In[ra]=In[Ma]=4;function Na(F){return"[object "+F+"]"}var Rp=Na("HTMLCanvasElement"),Np=Na("OffscreenCanvas"),Lp=Na("CanvasRenderingContext2D"),fc=Na("ImageBitmap"),cc=Na("HTMLImageElement"),Dp=Na("HTMLVideoElement"),ly=Object.keys(_u).concat([Rp,Np,Lp,fc,cc,Dp]),xo=[];xo[ui]=1,xo[Pu]=4,xo[Ia]=2,xo[ic]=2,xo[ac]=4;var Kr=[];Kr[Ep]=2,Kr[vo]=2,Kr[Zl]=2,Kr[ku]=4,Kr[Jf]=.5,Kr[Kl]=.5,Kr[Iu]=1,Kr[ec]=1,Kr[Tp]=.5,Kr[tc]=1,Kr[Cp]=1,Kr[rc]=.5,Kr[Op]=.25,Kr[nc]=.5,Kr[kp]=.25,Kr[Pa]=.5;function $p(F){return Array.isArray(F)&&(F.length===0||typeof F[0]=="number")}function Bp(F){if(!Array.isArray(F))return!1;var H=F.length;return!(H===0||!ai(F[0]))}function La(F){return Object.prototype.toString.call(F)}function zp(F){return La(F)===Rp}function Up(F){return La(F)===Np}function sy(F){return La(F)===Lp}function fy(F){return La(F)===fc}function cy(F){return La(F)===cc}function hy(F){return La(F)===Dp}function is(F){if(!F)return!1;var H=La(F);return ly.indexOf(H)>=0?!0:$p(F)||Bp(F)||ni(F)}function hc(F){return _u[Object.prototype.toString.call(F)]|0}function jp(F,H){var K=H.length;switch(F.type){case ui:case ic:case ac:case Pu:var Ee=be.allocType(F.type,K);Ee.set(H),F.data=Ee;break;case Ia:F.data=Cu(H);break}}function dc(F,H){return be.allocType(F.type===Ia?Pu:F.type,H)}function Gp(F,H){F.type===Ia?(F.data=Cu(H),be.freeType(H)):F.data=H}function dy(F,H,K,Ee,Me,ye){for(var we=F.width,Ye=F.height,Xe=F.channels,et=we*Ye*Xe,ft=dc(F,et),It=0,St=0;St<Ye;++St)for(var it=0;it<we;++it)for(var Ge=0;Ge<Xe;++Ge)ft[It++]=H[K*it+Ee*St+Me*Ge+ye];Gp(F,ft)}function Bi(F,H,K,Ee,Me,ye){var we;if(typeof Kr[F]<"u"?we=Kr[F]:we=In[F]*xo[H],ye&&(we*=6),Me){for(var Ye=0,Xe=K;Xe>=1;)Ye+=we*Xe*Xe,Xe/=2;return Ye}else return we*K*Ee}function py(F,H,K,Ee,Me,ye,we){var Ye={"don't care":ns,"dont care":ns,nice:Pp,fast:oy},Xe={repeat:iy,clamp:go,mirror:Jl},et={nearest:Fa,linear:Ru},ft=r({mipmap:yo,"nearest mipmap nearest":ts,"linear mipmap nearest":rs,"nearest mipmap linear":Ip,"linear mipmap linear":yo},et),It={none:0,browser:lc},St={uint8:ui,rgba4:Kf,rgb565:mo,"rgb5 a1":Ap},it={alpha:Ql,luminance:Di,"luminance alpha":Ou,rgb:Li,rgba:ra,rgba4:Ep,"rgb5 a1":vo,rgb565:Zl},Ge={};H.ext_srgb&&(it.srgb=Mu,it.srgba=Ma),H.oes_texture_float&&(St.float32=St.float=Pu),H.oes_texture_half_float&&(St.float16=St["half float"]=Ia),H.webgl_depth_texture&&(r(it,{depth:na,"depth stencil":ku}),r(St,{uint16:ic,uint32:ac,"depth stencil":ka})),H.webgl_compressed_texture_s3tc&&r(Ge,{"rgb s3tc dxt1":Jf,"rgba s3tc dxt1":Kl,"rgba s3tc dxt3":Iu,"rgba s3tc dxt5":ec}),H.webgl_compressed_texture_atc&&r(Ge,{"rgb atc":Tp,"rgba atc explicit alpha":tc,"rgba atc interpolated alpha":Cp}),H.webgl_compressed_texture_pvrtc&&r(Ge,{"rgb pvrtc 4bppv1":rc,"rgb pvrtc 2bppv1":Op,"rgba pvrtc 4bppv1":nc,"rgba pvrtc 2bppv1":kp}),H.webgl_compressed_texture_etc1&&(Ge["rgb etc1"]=Pa);var he=Array.prototype.slice.call(F.getParameter(Xl));Object.keys(Ge).forEach(function(q){var xe=Ge[q];he.indexOf(xe)>=0&&(it[q]=xe)});var Te=Object.keys(it);K.textureFormats=Te;var qe=[];Object.keys(it).forEach(function(q){var xe=it[q];qe[xe]=q});var Ke=[];Object.keys(St).forEach(function(q){var xe=St[q];Ke[xe]=q});var Ne=[];Object.keys(et).forEach(function(q){var xe=et[q];Ne[xe]=q});var pt=[];Object.keys(ft).forEach(function(q){var xe=ft[q];pt[xe]=q});var ot=[];Object.keys(Xe).forEach(function(q){var xe=Xe[q];ot[xe]=q});var Pt=Te.reduce(function(q,xe){var ge=it[xe];return ge===Di||ge===Ql||ge===Di||ge===Ou||ge===na||ge===ku||H.ext_srgb&&(ge===Mu||ge===Ma)?q[ge]=ge:ge===vo||xe.indexOf("rgba")>=0?q[ge]=ra:q[ge]=Li,q},{});function $e(){this.internalformat=ra,this.format=ra,this.type=ui,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=lc,this.width=0,this.height=0,this.channels=0}function Ie(q,xe){q.internalformat=xe.internalformat,q.format=xe.format,q.type=xe.type,q.compressed=xe.compressed,q.premultiplyAlpha=xe.premultiplyAlpha,q.flipY=xe.flipY,q.unpackAlignment=xe.unpackAlignment,q.colorSpace=xe.colorSpace,q.width=xe.width,q.height=xe.height,q.channels=xe.channels}function mt(q,xe){if(!(typeof xe!="object"||!xe)){if("premultiplyAlpha"in xe&&(q.premultiplyAlpha=xe.premultiplyAlpha),"flipY"in xe&&(q.flipY=xe.flipY),"alignment"in xe&&(q.unpackAlignment=xe.alignment),"colorSpace"in xe&&(q.colorSpace=It[xe.colorSpace]),"type"in xe){var ge=xe.type;q.type=St[ge]}var Tt=q.width,rr=q.height,Ir=q.channels,Ct=!1;"shape"in xe?(Tt=xe.shape[0],rr=xe.shape[1],xe.shape.length===3&&(Ir=xe.shape[2],Ct=!0)):("radius"in xe&&(Tt=rr=xe.radius),"width"in xe&&(Tt=xe.width),"height"in xe&&(rr=xe.height),"channels"in xe&&(Ir=xe.channels,Ct=!0)),q.width=Tt|0,q.height=rr|0,q.channels=Ir|0;var U=!1;if("format"in xe){var V=xe.format,ee=q.internalformat=it[V];q.format=Pt[ee],V in St&&("type"in xe||(q.type=St[V])),V in Ge&&(q.compressed=!0),U=!0}!Ct&&U?q.channels=In[q.format]:Ct&&!U&&q.channels!==xi[q.format]&&(q.format=q.internalformat=xi[q.channels])}}function Ae(q){F.pixelStorei(uc,q.flipY),F.pixelStorei(Fp,q.premultiplyAlpha),F.pixelStorei($i,q.colorSpace),F.pixelStorei(uy,q.unpackAlignment)}function ht(){$e.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Je(q,xe){var ge=null;if(is(xe)?ge=xe:xe&&(mt(q,xe),"x"in xe&&(q.xOffset=xe.x|0),"y"in xe&&(q.yOffset=xe.y|0),is(xe.data)&&(ge=xe.data)),xe.copy){var Tt=Me.viewportWidth,rr=Me.viewportHeight;q.width=q.width||Tt-q.xOffset,q.height=q.height||rr-q.yOffset,q.needsCopy=!0}else if(!ge)q.width=q.width||1,q.height=q.height||1,q.channels=q.channels||4;else if(tn(ge))q.channels=q.channels||4,q.data=ge,!("type"in xe)&&q.type===ui&&(q.type=hc(ge));else if($p(ge))q.channels=q.channels||4,jp(q,ge),q.alignment=1,q.needsFree=!0;else if(ni(ge)){var Ir=ge.data;!Array.isArray(Ir)&&q.type===ui&&(q.type=hc(Ir));var Ct=ge.shape,U=ge.stride,V,ee,_e,pe,de,ce;Ct.length===3?(_e=Ct[2],ce=U[2]):(_e=1,ce=1),V=Ct[0],ee=Ct[1],pe=U[0],de=U[1],q.alignment=1,q.width=V,q.height=ee,q.channels=_e,q.format=q.internalformat=xi[_e],q.needsFree=!0,dy(q,Ir,pe,de,ce,ge.offset)}else if(zp(ge)||Up(ge)||sy(ge))zp(ge)||Up(ge)?q.element=ge:q.element=ge.canvas,q.width=q.element.width,q.height=q.element.height,q.channels=4;else if(fy(ge))q.element=ge,q.width=ge.width,q.height=ge.height,q.channels=4;else if(cy(ge))q.element=ge,q.width=ge.naturalWidth,q.height=ge.naturalHeight,q.channels=4;else if(hy(ge))q.element=ge,q.width=ge.videoWidth,q.height=ge.videoHeight,q.channels=4;else if(Bp(ge)){var se=q.width||ge[0].length,Z=q.height||ge.length,ne=q.channels;ai(ge[0][0])?ne=ne||ge[0][0].length:ne=ne||1;for(var Q=ir.shape(ge),ve=1,Oe=0;Oe<Q.length;++Oe)ve*=Q[Oe];var Be=dc(q,ve);ir.flatten(ge,Q,"",Be),Gp(q,Be),q.alignment=1,q.width=se,q.height=Z,q.channels=ne,q.format=q.internalformat=xi[ne],q.needsFree=!0}q.type===Pu||q.type}function Ft(q,xe,ge){var Tt=q.element,rr=q.data,Ir=q.internalformat,Ct=q.format,U=q.type,V=q.width,ee=q.height;Ae(q),Tt?F.texImage2D(xe,ge,Ct,Ct,U,Tt):q.compressed?F.compressedTexImage2D(xe,ge,Ir,V,ee,0,rr):q.needsCopy?(Ee(),F.copyTexImage2D(xe,ge,Ct,q.xOffset,q.yOffset,V,ee,0)):F.texImage2D(xe,ge,Ct,V,ee,0,Ct,U,rr||null)}function er(q,xe,ge,Tt,rr){var Ir=q.element,Ct=q.data,U=q.internalformat,V=q.format,ee=q.type,_e=q.width,pe=q.height;Ae(q),Ir?F.texSubImage2D(xe,rr,ge,Tt,V,ee,Ir):q.compressed?F.compressedTexSubImage2D(xe,rr,ge,Tt,U,_e,pe,Ct):q.needsCopy?(Ee(),F.copyTexSubImage2D(xe,rr,ge,Tt,q.xOffset,q.yOffset,_e,pe)):F.texSubImage2D(xe,rr,ge,Tt,_e,pe,V,ee,Ct)}var xt=[];function Bt(){return xt.pop()||new ht}function lt(q){q.needsFree&&be.freeType(q.data),ht.call(q),xt.push(q)}function tr(){$e.call(this),this.genMipmaps=!1,this.mipmapHint=ns,this.mipmask=0,this.images=Array(16)}function ur(q,xe,ge){var Tt=q.images[0]=Bt();q.mipmask=1,Tt.width=q.width=xe,Tt.height=q.height=ge,Tt.channels=q.channels=4}function hr(q,xe){var ge=null;if(is(xe))ge=q.images[0]=Bt(),Ie(ge,q),Je(ge,xe),q.mipmask=1;else if(mt(q,xe),Array.isArray(xe.mipmap))for(var Tt=xe.mipmap,rr=0;rr<Tt.length;++rr)ge=q.images[rr]=Bt(),Ie(ge,q),ge.width>>=rr,ge.height>>=rr,Je(ge,Tt[rr]),q.mipmask|=1<<rr;else ge=q.images[0]=Bt(),Ie(ge,q),Je(ge,xe),q.mipmask=1;Ie(q,q.images[0]),q.compressed&&(q.internalformat===Jf||q.internalformat===Kl||q.internalformat===Iu||q.internalformat)}function on(q,xe){for(var ge=q.images,Tt=0;Tt<ge.length;++Tt){if(!ge[Tt])return;Ft(ge[Tt],xe,Tt)}}var lr=[];function Yn(){var q=lr.pop()||new tr;$e.call(q),q.mipmask=0;for(var xe=0;xe<16;++xe)q.images[xe]=null;return q}function Er(q){for(var xe=q.images,ge=0;ge<xe.length;++ge)xe[ge]&<(xe[ge]),xe[ge]=null;lr.push(q)}function En(){this.minFilter=Fa,this.magFilter=Fa,this.wrapS=go,this.wrapT=go,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=ns}function Xn(q,xe){if("min"in xe){var ge=xe.min;q.minFilter=ft[ge],sc.indexOf(q.minFilter)>=0&&!("faces"in xe)&&(q.genMipmaps=!0)}if("mag"in xe){var Tt=xe.mag;q.magFilter=et[Tt]}var rr=q.wrapS,Ir=q.wrapT;if("wrap"in xe){var Ct=xe.wrap;typeof Ct=="string"?rr=Ir=Xe[Ct]:Array.isArray(Ct)&&(rr=Xe[Ct[0]],Ir=Xe[Ct[1]])}else{if("wrapS"in xe){var U=xe.wrapS;rr=Xe[U]}if("wrapT"in xe){var V=xe.wrapT;Ir=Xe[V]}}if(q.wrapS=rr,q.wrapT=Ir,"anisotropic"in xe&&(xe.anisotropic,q.anisotropic=xe.anisotropic),"mipmap"in xe){var ee=!1;switch(typeof xe.mipmap){case"string":q.mipmapHint=Ye[xe.mipmap],q.genMipmaps=!0,ee=!0;break;case"boolean":ee=q.genMipmaps=xe.mipmap;break;case"object":q.genMipmaps=!1,ee=!0;break}ee&&!("min"in xe)&&(q.minFilter=ts)}}function Fn(q,xe){F.texParameteri(xe,es,q.minFilter),F.texParameteri(xe,oc,q.magFilter),F.texParameteri(xe,Mp,q.wrapS),F.texParameteri(xe,Fu,q.wrapT),H.ext_texture_filter_anisotropic&&F.texParameteri(xe,Nu,q.anisotropic),q.genMipmaps&&(F.hint(ay,q.mipmapHint),F.generateMipmap(xe))}var Gi=0,un={},ln=K.maxTextureUnits,Xt=Array(ln).map(function(){return null});function ci(q){$e.call(this),this.mipmask=0,this.internalformat=ra,this.id=Gi++,this.refCount=1,this.target=q,this.texture=F.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new En,we.profile&&(this.stats={size:0})}function br(q){F.activeTexture(Ra),F.bindTexture(q.target,q.texture)}function sn(){var q=Xt[0];q?F.bindTexture(q.target,q.texture):F.bindTexture(oi,null)}function zn(q){var xe=q.texture,ge=q.unit,Tt=q.target;ge>=0&&(F.activeTexture(Ra+ge),F.bindTexture(Tt,null),Xt[ge]=null),F.deleteTexture(xe),q.texture=null,q.params=null,q.pixels=null,q.refCount=0,delete un[q.id],ye.textureCount--}r(ci.prototype,{bind:function(){var q=this;q.bindCount+=1;var xe=q.unit;if(xe<0){for(var ge=0;ge<ln;++ge){var Tt=Xt[ge];if(Tt){if(Tt.bindCount>0)continue;Tt.unit=-1}Xt[ge]=q,xe=ge;break}we.profile&&ye.maxTextureUnits<xe+1&&(ye.maxTextureUnits=xe+1),q.unit=xe,F.activeTexture(Ra+xe),F.bindTexture(q.target,q.texture)}return xe},unbind:function(){this.bindCount-=1},decRef:function(){--this.refCount<=0&&zn(this)}});function Un(q,xe){var ge=new ci(oi);un[ge.id]=ge,ye.textureCount++;function Tt(Ct,U){var V=ge.texInfo;En.call(V);var ee=Yn();return typeof Ct=="number"?typeof U=="number"?ur(ee,Ct|0,U|0):ur(ee,Ct|0,Ct|0):Ct?(Xn(V,Ct),hr(ee,Ct)):ur(ee,1,1),V.genMipmaps&&(ee.mipmask=(ee.width<<1)-1),ge.mipmask=ee.mipmask,Ie(ge,ee),ge.internalformat=ee.internalformat,Tt.width=ee.width,Tt.height=ee.height,br(ge),on(ee,oi),Fn(V,oi),sn(),Er(ee),we.profile&&(ge.stats.size=Bi(ge.internalformat,ge.type,ee.width,ee.height,V.genMipmaps,!1)),Tt.format=qe[ge.internalformat],Tt.type=Ke[ge.type],Tt.mag=Ne[V.magFilter],Tt.min=pt[V.minFilter],Tt.wrapS=ot[V.wrapS],Tt.wrapT=ot[V.wrapT],Tt}function rr(Ct,U,V,ee){var _e=U|0,pe=V|0,de=ee|0,ce=Bt();return Ie(ce,ge),ce.width=0,ce.height=0,Je(ce,Ct),ce.width=ce.width||(ge.width>>de)-_e,ce.height=ce.height||(ge.height>>de)-pe,br(ge),er(ce,oi,_e,pe,de),sn(),lt(ce),Tt}function Ir(Ct,U){var V=Ct|0,ee=U|0||V;if(V===ge.width&&ee===ge.height)return Tt;Tt.width=ge.width=V,Tt.height=ge.height=ee,br(ge);for(var _e=0;ge.mipmask>>_e;++_e){var pe=V>>_e,de=ee>>_e;if(!pe||!de)break;F.texImage2D(oi,_e,ge.format,pe,de,0,ge.format,ge.type,null)}return sn(),we.profile&&(ge.stats.size=Bi(ge.internalformat,ge.type,V,ee,!1,!1)),Tt}return Tt(q,xe),Tt.subimage=rr,Tt.resize=Ir,Tt._reglType="texture2d",Tt._texture=ge,we.profile&&(Tt.stats=ge.stats),Tt.destroy=function(){ge.decRef()},Tt}function Zt(q,xe,ge,Tt,rr,Ir){var Ct=new ci(ho);un[Ct.id]=Ct,ye.cubeCount++;var U=new Array(6);function V(pe,de,ce,se,Z,ne){var Q,ve=Ct.texInfo;for(En.call(ve),Q=0;Q<6;++Q)U[Q]=Yn();if(typeof pe=="number"||!pe){var Oe=pe|0||1;for(Q=0;Q<6;++Q)ur(U[Q],Oe,Oe)}else if(typeof pe=="object")if(de)hr(U[0],pe),hr(U[1],de),hr(U[2],ce),hr(U[3],se),hr(U[4],Z),hr(U[5],ne);else if(Xn(ve,pe),mt(Ct,pe),"faces"in pe){var Be=pe.faces;for(Q=0;Q<6;++Q)Ie(U[Q],Ct),hr(U[Q],Be[Q])}else for(Q=0;Q<6;++Q)hr(U[Q],pe);for(Ie(Ct,U[0]),ve.genMipmaps?Ct.mipmask=(U[0].width<<1)-1:Ct.mipmask=U[0].mipmask,Ct.internalformat=U[0].internalformat,V.width=U[0].width,V.height=U[0].height,br(Ct),Q=0;Q<6;++Q)on(U[Q],po+Q);for(Fn(ve,ho),sn(),we.profile&&(Ct.stats.size=Bi(Ct.internalformat,Ct.type,V.width,V.height,ve.genMipmaps,!0)),V.format=qe[Ct.internalformat],V.type=Ke[Ct.type],V.mag=Ne[ve.magFilter],V.min=pt[ve.minFilter],V.wrapS=ot[ve.wrapS],V.wrapT=ot[ve.wrapT],Q=0;Q<6;++Q)Er(U[Q]);return V}function ee(pe,de,ce,se,Z){var ne=ce|0,Q=se|0,ve=Z|0,Oe=Bt();return Ie(Oe,Ct),Oe.width=0,Oe.height=0,Je(Oe,de),Oe.width=Oe.width||(Ct.width>>ve)-ne,Oe.height=Oe.height||(Ct.height>>ve)-Q,br(Ct),er(Oe,po+pe,ne,Q,ve),sn(),lt(Oe),V}function _e(pe){var de=pe|0;if(de!==Ct.width){V.width=Ct.width=de,V.height=Ct.height=de,br(Ct);for(var ce=0;ce<6;++ce)for(var se=0;Ct.mipmask>>se;++se)F.texImage2D(po+ce,se,Ct.format,de>>se,de>>se,0,Ct.format,Ct.type,null);return sn(),we.profile&&(Ct.stats.size=Bi(Ct.internalformat,Ct.type,V.width,V.height,!1,!0)),V}}return V(q,xe,ge,Tt,rr,Ir),V.subimage=ee,V.resize=_e,V._reglType="textureCube",V._texture=Ct,we.profile&&(V.stats=Ct.stats),V.destroy=function(){Ct.decRef()},V}function fr(){for(var q=0;q<ln;++q)F.activeTexture(Ra+q),F.bindTexture(oi,null),Xt[q]=null;Bn(un).forEach(zn),ye.cubeCount=0,ye.textureCount=0}we.profile&&(ye.getTotalTextureSize=function(){var q=0;return Object.keys(un).forEach(function(xe){q+=un[xe].stats.size}),q});function Cr(){for(var q=0;q<ln;++q){var xe=Xt[q];xe&&(xe.bindCount=0,xe.unit=-1,Xt[q]=null)}Bn(un).forEach(function(ge){ge.texture=F.createTexture(),F.bindTexture(ge.target,ge.texture);for(var Tt=0;Tt<32;++Tt)if((ge.mipmask&1<<Tt)!==0)if(ge.target===oi)F.texImage2D(oi,Tt,ge.internalformat,ge.width>>Tt,ge.height>>Tt,0,ge.internalformat,ge.type,null);else for(var rr=0;rr<6;++rr)F.texImage2D(po+rr,Tt,ge.internalformat,ge.width>>Tt,ge.height>>Tt,0,ge.internalformat,ge.type,null);Fn(ge.texInfo,ge.target)})}function fn(){for(var q=0;q<ln;++q){var xe=Xt[q];xe&&(xe.bindCount=0,xe.unit=-1,Xt[q]=null),F.activeTexture(Ra+q),F.bindTexture(oi,null),F.bindTexture(ho,null)}}return{create2D:Un,createCube:Zt,clear:fr,getTexture:function(q){return null},restore:Cr,refresh:fn}}var ia=36161,as=32854,Wp=32855,pc=36194,Hp=33189,Vp=36168,qp=34041,vc=35907,Yp=34836,Xp=34842,Qp=34843,li=[];li[as]=2,li[Wp]=2,li[pc]=2,li[Hp]=2,li[Vp]=1,li[qp]=4,li[vc]=4,li[Yp]=16,li[Xp]=8,li[Qp]=6;function Zp(F,H,K){return li[F]*H*K}var Kp=function(F,H,K,Ee,Me){var ye={rgba4:as,rgb565:pc,"rgb5 a1":Wp,depth:Hp,stencil:Vp,"depth stencil":qp};H.ext_srgb&&(ye.srgba=vc),H.ext_color_buffer_half_float&&(ye.rgba16f=Xp,ye.rgb16f=Qp),H.webgl_color_buffer_float&&(ye.rgba32f=Yp);var we=[];Object.keys(ye).forEach(function(it){var Ge=ye[it];we[Ge]=it});var Ye=0,Xe={};function et(it){this.id=Ye++,this.refCount=1,this.renderbuffer=it,this.format=as,this.width=0,this.height=0,Me.profile&&(this.stats={size:0})}et.prototype.decRef=function(){--this.refCount<=0&&ft(this)};function ft(it){var Ge=it.renderbuffer;F.bindRenderbuffer(ia,null),F.deleteRenderbuffer(Ge),it.renderbuffer=null,it.refCount=0,delete Xe[it.id],Ee.renderbufferCount--}function It(it,Ge){var he=new et(F.createRenderbuffer());Xe[he.id]=he,Ee.renderbufferCount++;function Te(Ke,Ne){var pt=0,ot=0,Pt=as;if(typeof Ke=="object"&&Ke){var $e=Ke;if("shape"in $e){var Ie=$e.shape;pt=Ie[0]|0,ot=Ie[1]|0}else"radius"in $e&&(pt=ot=$e.radius|0),"width"in $e&&(pt=$e.width|0),"height"in $e&&(ot=$e.height|0);"format"in $e&&(Pt=ye[$e.format])}else typeof Ke=="number"?(pt=Ke|0,typeof Ne=="number"?ot=Ne|0:ot=pt):Ke||(pt=ot=1);if(!(pt===he.width&&ot===he.height&&Pt===he.format))return Te.width=he.width=pt,Te.height=he.height=ot,he.format=Pt,F.bindRenderbuffer(ia,he.renderbuffer),F.renderbufferStorage(ia,Pt,pt,ot),Me.profile&&(he.stats.size=Zp(he.format,he.width,he.height)),Te.format=we[he.format],Te}function qe(Ke,Ne){var pt=Ke|0,ot=Ne|0||pt;return pt===he.width&&ot===he.height||(Te.width=he.width=pt,Te.height=he.height=ot,F.bindRenderbuffer(ia,he.renderbuffer),F.renderbufferStorage(ia,he.format,pt,ot),Me.profile&&(he.stats.size=Zp(he.format,he.width,he.height))),Te}return Te(it,Ge),Te.resize=qe,Te._reglType="renderbuffer",Te._renderbuffer=he,Me.profile&&(Te.stats=he.stats),Te.destroy=function(){he.decRef()},Te}Me.profile&&(Ee.getTotalRenderbufferSize=function(){var it=0;return Object.keys(Xe).forEach(function(Ge){it+=Xe[Ge].stats.size}),it});function St(){Bn(Xe).forEach(function(it){it.renderbuffer=F.createRenderbuffer(),F.bindRenderbuffer(ia,it.renderbuffer),F.renderbufferStorage(ia,it.format,it.width,it.height)}),F.bindRenderbuffer(ia,null)}return{create:It,clear:function(){Bn(Xe).forEach(ft)},restore:St}},zi=36160,mc=36161,bo=3553,wo=34069,_o=36064,si=36096,Jp=36128,ev=33306,vy=36053,my=36193,tv=5121,gy=5126,yy=6407,xy=6408,gc=[];gc[xy]=4,gc[yy]=3;var os=[];os[tv]=1,os[gy]=4,os[my]=2;function yc(F,H,K,Ee,Me,ye){var we={cur:null,next:null,dirty:!1,setFBO:null},Ye=["rgba"],Xe=["rgba4","rgb565","rgb5 a1"];H.ext_srgb&&Xe.push("srgba"),H.ext_color_buffer_half_float&&Xe.push("rgba16f","rgb16f"),H.webgl_color_buffer_float&&Xe.push("rgba32f"),H.oes_texture_half_float,H.oes_texture_float;function et(Ae,ht,Je){this.target=Ae,this.texture=ht,this.renderbuffer=Je;var Ft=0,er=0;ht?(Ft=ht.width,er=ht.height):Je&&(Ft=Je.width,er=Je.height),this.width=Ft,this.height=er}function ft(Ae){Ae&&(Ae.texture&&Ae.texture._texture.decRef(),Ae.renderbuffer&&Ae.renderbuffer._renderbuffer.decRef())}function It(Ae,ht,Je){if(!!Ae)if(Ae.texture){var Ft=Ae.texture._texture;Math.max(1,Ft.width),Math.max(1,Ft.height),Ft.refCount+=1}else{var er=Ae.renderbuffer._renderbuffer;er.refCount+=1}}function St(Ae,ht){ht&&(ht.texture?F.framebufferTexture2D(zi,Ae,ht.target,ht.texture._texture.texture,0):F.framebufferRenderbuffer(zi,Ae,mc,ht.renderbuffer._renderbuffer.renderbuffer))}function it(Ae){var ht=bo,Je=null,Ft=null,er=Ae;typeof Ae=="object"&&(er=Ae.data,"target"in Ae&&(ht=Ae.target|0));var xt=er._reglType;return xt==="texture2d"||xt==="textureCube"?Je=er:xt==="renderbuffer"&&(Ft=er,ht=mc),new et(ht,Je,Ft)}function Ge(Ae,ht,Je,Ft,er){if(Je){var xt=Ee.create2D({width:Ae,height:ht,format:Ft,type:er});return xt._texture.refCount=0,new et(bo,xt,null)}else{var Bt=Me.create({width:Ae,height:ht,format:Ft});return Bt._renderbuffer.refCount=0,new et(mc,null,Bt)}}function he(Ae){return Ae&&(Ae.texture||Ae.renderbuffer)}function Te(Ae,ht,Je){Ae&&(Ae.texture?Ae.texture.resize(ht,Je):Ae.renderbuffer&&Ae.renderbuffer.resize(ht,Je),Ae.width=ht,Ae.height=Je)}var qe=0,Ke={};function Ne(){this.id=qe++,Ke[this.id]=this,this.framebuffer=F.createFramebuffer(),this.width=0,this.height=0,this.colorAttachments=[],this.depthAttachment=null,this.stencilAttachment=null,this.depthStencilAttachment=null}function pt(Ae){Ae.colorAttachments.forEach(ft),ft(Ae.depthAttachment),ft(Ae.stencilAttachment),ft(Ae.depthStencilAttachment)}function ot(Ae){var ht=Ae.framebuffer;F.deleteFramebuffer(ht),Ae.framebuffer=null,ye.framebufferCount--,delete Ke[Ae.id]}function Pt(Ae){var ht;F.bindFramebuffer(zi,Ae.framebuffer);var Je=Ae.colorAttachments;for(ht=0;ht<Je.length;++ht)St(_o+ht,Je[ht]);for(ht=Je.length;ht<K.maxColorAttachments;++ht)F.framebufferTexture2D(zi,_o+ht,bo,null,0);F.framebufferTexture2D(zi,ev,bo,null,0),F.framebufferTexture2D(zi,si,bo,null,0),F.framebufferTexture2D(zi,Jp,bo,null,0),St(si,Ae.depthAttachment),St(Jp,Ae.stencilAttachment),St(ev,Ae.depthStencilAttachment);var Ft=F.checkFramebufferStatus(zi);F.isContextLost(),F.bindFramebuffer(zi,we.next?we.next.framebuffer:null),we.cur=we.next,F.getError()}function $e(Ae,ht){var Je=new Ne;ye.framebufferCount++;function Ft(xt,Bt){var lt,tr=0,ur=0,hr=!0,on=!0,lr=null,Yn=!0,Er="rgba",En="uint8",Xn=1,Fn=null,Gi=null,un=null,ln=!1;if(typeof xt=="number")tr=xt|0,ur=Bt|0||tr;else if(!xt)tr=ur=1;else{var Xt=xt;if("shape"in Xt){var ci=Xt.shape;tr=ci[0],ur=ci[1]}else"radius"in Xt&&(tr=ur=Xt.radius),"width"in Xt&&(tr=Xt.width),"height"in Xt&&(ur=Xt.height);("color"in Xt||"colors"in Xt)&&(lr=Xt.color||Xt.colors),lr||("colorCount"in Xt&&(Xn=Xt.colorCount|0),"colorTexture"in Xt&&(Yn=!!Xt.colorTexture,Er="rgba4"),"colorType"in Xt&&(En=Xt.colorType,Yn||(En==="half float"||En==="float16"?Er="rgba16f":(En==="float"||En==="float32")&&(Er="rgba32f"))),"colorFormat"in Xt&&(Er=Xt.colorFormat,Ye.indexOf(Er)>=0?Yn=!0:Xe.indexOf(Er)>=0&&(Yn=!1))),("depthTexture"in Xt||"depthStencilTexture"in Xt)&&(ln=!!(Xt.depthTexture||Xt.depthStencilTexture)),"depth"in Xt&&(typeof Xt.depth=="boolean"?hr=Xt.depth:(Fn=Xt.depth,on=!1)),"stencil"in Xt&&(typeof Xt.stencil=="boolean"?on=Xt.stencil:(Gi=Xt.stencil,hr=!1)),"depthStencil"in Xt&&(typeof Xt.depthStencil=="boolean"?hr=on=Xt.depthStencil:(un=Xt.depthStencil,hr=!1,on=!1))}var br=null,sn=null,zn=null,Un=null;if(Array.isArray(lr))br=lr.map(it);else if(lr)br=[it(lr)];else for(br=new Array(Xn),lt=0;lt<Xn;++lt)br[lt]=Ge(tr,ur,Yn,Er,En);for(tr=tr||br[0].width,ur=ur||br[0].height,Fn?sn=it(Fn):hr&&!on&&(sn=Ge(tr,ur,ln,"depth","uint32")),Gi?zn=it(Gi):on&&!hr&&(zn=Ge(tr,ur,!1,"stencil","uint8")),un?Un=it(un):!Fn&&!Gi&&on&&hr&&(Un=Ge(tr,ur,ln,"depth stencil","depth stencil")),lt=0;lt<br.length;++lt)It(br[lt]),br[lt]&&br[lt].texture&&gc[br[lt].texture._texture.format]*os[br[lt].texture._texture.type];return It(sn),It(zn),It(Un),pt(Je),Je.width=tr,Je.height=ur,Je.colorAttachments=br,Je.depthAttachment=sn,Je.stencilAttachment=zn,Je.depthStencilAttachment=Un,Ft.color=br.map(he),Ft.depth=he(sn),Ft.stencil=he(zn),Ft.depthStencil=he(Un),Ft.width=Je.width,Ft.height=Je.height,Pt(Je),Ft}function er(xt,Bt){var lt=Math.max(xt|0,1),tr=Math.max(Bt|0||lt,1);if(lt===Je.width&&tr===Je.height)return Ft;for(var ur=Je.colorAttachments,hr=0;hr<ur.length;++hr)Te(ur[hr],lt,tr);return Te(Je.depthAttachment,lt,tr),Te(Je.stencilAttachment,lt,tr),Te(Je.depthStencilAttachment,lt,tr),Je.width=Ft.width=lt,Je.height=Ft.height=tr,Pt(Je),Ft}return Ft(Ae,ht),r(Ft,{resize:er,_reglType:"framebuffer",_framebuffer:Je,destroy:function(){ot(Je),pt(Je)},use:function(xt){we.setFBO({framebuffer:Ft},xt)}})}function Ie(Ae){var ht=Array(6);function Je(er){var xt,Bt={color:null},lt=0,tr=null,ur="rgba",hr="uint8",on=1;if(typeof er=="number")lt=er|0;else if(!er)lt=1;else{var lr=er;if("shape"in lr){var Yn=lr.shape;lt=Yn[0]}else"radius"in lr&&(lt=lr.radius|0),"width"in lr?lt=lr.width|0:"height"in lr&&(lt=lr.height|0);("color"in lr||"colors"in lr)&&(tr=lr.color||lr.colors),tr||("colorCount"in lr&&(on=lr.colorCount|0),"colorType"in lr&&(hr=lr.colorType),"colorFormat"in lr&&(ur=lr.colorFormat)),"depth"in lr&&(Bt.depth=lr.depth),"stencil"in lr&&(Bt.stencil=lr.stencil),"depthStencil"in lr&&(Bt.depthStencil=lr.depthStencil)}var Er;if(tr)if(Array.isArray(tr))for(Er=[],xt=0;xt<tr.length;++xt)Er[xt]=tr[xt];else Er=[tr];else{Er=Array(on);var En={radius:lt,format:ur,type:hr};for(xt=0;xt<on;++xt)Er[xt]=Ee.createCube(En)}for(Bt.color=Array(Er.length),xt=0;xt<Er.length;++xt){var Xn=Er[xt];lt=lt||Xn.width,Bt.color[xt]={target:wo,data:Er[xt]}}for(xt=0;xt<6;++xt){for(var Fn=0;Fn<Er.length;++Fn)Bt.color[Fn].target=wo+xt;xt>0&&(Bt.depth=ht[0].depth,Bt.stencil=ht[0].stencil,Bt.depthStencil=ht[0].depthStencil),ht[xt]?ht[xt](Bt):ht[xt]=$e(Bt)}return r(Je,{width:lt,height:lt,color:Er})}function Ft(er){var xt,Bt=er|0;if(Bt===Je.width)return Je;var lt=Je.color;for(xt=0;xt<lt.length;++xt)lt[xt].resize(Bt);for(xt=0;xt<6;++xt)ht[xt].resize(Bt);return Je.width=Je.height=Bt,Je}return Je(Ae),r(Je,{faces:ht,resize:Ft,_reglType:"framebufferCube",destroy:function(){ht.forEach(function(er){er.destroy()})}})}function mt(){we.cur=null,we.next=null,we.dirty=!0,Bn(Ke).forEach(function(Ae){Ae.framebuffer=F.createFramebuffer(),Pt(Ae)})}return r(we,{getFramebuffer:function(Ae){if(typeof Ae=="function"&&Ae._reglType==="framebuffer"){var ht=Ae._framebuffer;if(ht instanceof Ne)return ht}return null},create:$e,createCube:Ie,clear:function(){Bn(Ke).forEach(ot)},restore:mt})}var xc=5126,rv=34962,us=34963;function bc(){this.state=0,this.x=0,this.y=0,this.z=0,this.w=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=xc,this.offset=0,this.stride=0,this.divisor=0}function by(F,H,K,Ee,Me,ye,we){for(var Ye=K.maxAttributes,Xe=new Array(Ye),et=0;et<Ye;++et)Xe[et]=new bc;var ft=0,It={},St={Record:bc,scope:{},state:Xe,currentVAO:null,targetVAO:null,restore:Ge()?ot:function(){},createVAO:Pt,getVAO:Te,destroyBuffer:it,setVAO:Ge()?qe:Ke,clear:Ge()?Ne:function(){}};function it($e){for(var Ie=0;Ie<Xe.length;++Ie){var mt=Xe[Ie];mt.buffer===$e&&(F.disableVertexAttribArray(Ie),mt.buffer=null)}}function Ge(){return H.oes_vertex_array_object}function he(){return H.angle_instanced_arrays}function Te($e){return typeof $e=="function"&&$e._vao?$e._vao:null}function qe($e){if($e!==St.currentVAO){var Ie=Ge();$e?Ie.bindVertexArrayOES($e.vao):Ie.bindVertexArrayOES(null),St.currentVAO=$e}}function Ke($e){if($e!==St.currentVAO){if($e)$e.bindAttrs();else{for(var Ie=he(),mt=0;mt<Xe.length;++mt){var Ae=Xe[mt];Ae.buffer?(F.enableVertexAttribArray(mt),Ae.buffer.bind(),F.vertexAttribPointer(mt,Ae.size,Ae.type,Ae.normalized,Ae.stride,Ae.offfset),Ie&&Ae.divisor&&Ie.vertexAttribDivisorANGLE(mt,Ae.divisor)):(F.disableVertexAttribArray(mt),F.vertexAttrib4f(mt,Ae.x,Ae.y,Ae.z,Ae.w))}we.elements?F.bindBuffer(us,we.elements.buffer.buffer):F.bindBuffer(us,null)}St.currentVAO=$e}}function Ne(){Bn(It).forEach(function($e){$e.destroy()})}function pt(){this.id=++ft,this.attributes=[],this.elements=null,this.ownsElements=!1,this.count=0,this.offset=0,this.instances=-1,this.primitive=4;var $e=Ge();$e?this.vao=$e.createVertexArrayOES():this.vao=null,It[this.id]=this,this.buffers=[]}pt.prototype.bindAttrs=function(){for(var $e=he(),Ie=this.attributes,mt=0;mt<Ie.length;++mt){var Ae=Ie[mt];Ae.buffer?(F.enableVertexAttribArray(mt),F.bindBuffer(rv,Ae.buffer.buffer),F.vertexAttribPointer(mt,Ae.size,Ae.type,Ae.normalized,Ae.stride,Ae.offset),$e&&Ae.divisor&&$e.vertexAttribDivisorANGLE(mt,Ae.divisor)):(F.disableVertexAttribArray(mt),F.vertexAttrib4f(mt,Ae.x,Ae.y,Ae.z,Ae.w))}for(var ht=Ie.length;ht<Ye;++ht)F.disableVertexAttribArray(ht);var Je=ye.getElements(this.elements);Je?F.bindBuffer(us,Je.buffer.buffer):F.bindBuffer(us,null)},pt.prototype.refresh=function(){var $e=Ge();$e&&($e.bindVertexArrayOES(this.vao),this.bindAttrs(),St.currentVAO=null,$e.bindVertexArrayOES(null))},pt.prototype.destroy=function(){if(this.vao){var $e=Ge();this===St.currentVAO&&(St.currentVAO=null,$e.bindVertexArrayOES(null)),$e.deleteVertexArrayOES(this.vao),this.vao=null}this.ownsElements&&(this.elements.destroy(),this.elements=null,this.ownsElements=!1),It[this.id]&&(delete It[this.id],Ee.vaoCount-=1)};function ot(){var $e=Ge();$e&&Bn(It).forEach(function(Ie){Ie.refresh()})}function Pt($e){var Ie=new pt;Ee.vaoCount+=1;function mt(Ae){var ht;if(Array.isArray(Ae))ht=Ae,Ie.elements&&Ie.ownsElements&&Ie.elements.destroy(),Ie.elements=null,Ie.ownsElements=!1,Ie.offset=0,Ie.count=0,Ie.instances=-1,Ie.primitive=4;else{if(Ae.elements){var Je=Ae.elements;Ie.ownsElements?typeof Je=="function"&&Je._reglType==="elements"?(Ie.elements.destroy(),Ie.ownsElements=!1):(Ie.elements(Je),Ie.ownsElements=!1):ye.getElements(Ae.elements)?(Ie.elements=Ae.elements,Ie.ownsElements=!1):(Ie.elements=ye.create(Ae.elements),Ie.ownsElements=!0)}else Ie.elements=null,Ie.ownsElements=!1;ht=Ae.attributes,Ie.offset=0,Ie.count=-1,Ie.instances=-1,Ie.primitive=4,Ie.elements&&(Ie.count=Ie.elements._elements.vertCount,Ie.primitive=Ie.elements._elements.primType),"offset"in Ae&&(Ie.offset=Ae.offset|0),"count"in Ae&&(Ie.count=Ae.count|0),"instances"in Ae&&(Ie.instances=Ae.instances|0),"primitive"in Ae&&(Ie.primitive=rn[Ae.primitive])}var Ft={},er=Ie.attributes;er.length=ht.length;for(var xt=0;xt<ht.length;++xt){var Bt=ht[xt],lt=er[xt]=new bc,tr=Bt.data||Bt;if(Array.isArray(tr)||tn(tr)||ni(tr)){var ur;Ie.buffers[xt]&&(ur=Ie.buffers[xt],tn(tr)&&ur._buffer.byteLength>=tr.byteLength?ur.subdata(tr):(ur.destroy(),Ie.buffers[xt]=null)),Ie.buffers[xt]||(ur=Ie.buffers[xt]=Me.create(Bt,rv,!1,!0)),lt.buffer=Me.getBuffer(ur),lt.size=lt.buffer.dimension|0,lt.normalized=!1,lt.type=lt.buffer.dtype,lt.offset=0,lt.stride=0,lt.divisor=0,lt.state=1,Ft[xt]=1}else Me.getBuffer(Bt)?(lt.buffer=Me.getBuffer(Bt),lt.size=lt.buffer.dimension|0,lt.normalized=!1,lt.type=lt.buffer.dtype,lt.offset=0,lt.stride=0,lt.divisor=0,lt.state=1):Me.getBuffer(Bt.buffer)?(lt.buffer=Me.getBuffer(Bt.buffer),lt.size=(+Bt.size||lt.buffer.dimension)|0,lt.normalized=!!Bt.normalized||!1,"type"in Bt?lt.type=Eu[Bt.type]:lt.type=lt.buffer.dtype,lt.offset=(Bt.offset||0)|0,lt.stride=(Bt.stride||0)|0,lt.divisor=(Bt.divisor||0)|0,lt.state=1):"x"in Bt&&(lt.x=+Bt.x||0,lt.y=+Bt.y||0,lt.z=+Bt.z||0,lt.w=+Bt.w||0,lt.state=2)}for(var hr=0;hr<Ie.buffers.length;++hr)!Ft[hr]&&Ie.buffers[hr]&&(Ie.buffers[hr].destroy(),Ie.buffers[hr]=null);return Ie.refresh(),mt}return mt.destroy=function(){for(var Ae=0;Ae<Ie.buffers.length;++Ae)Ie.buffers[Ae]&&Ie.buffers[Ae].destroy();Ie.buffers.length=0,Ie.ownsElements&&(Ie.elements.destroy(),Ie.elements=null,Ie.ownsElements=!1),Ie.destroy()},mt._vao=Ie,mt._reglType="vao",mt($e)}return St}var wc=35632,wy=35633,_y=35718,_c=35721;function nv(F,H,K,Ee){var Me={},ye={};function we(he,Te,qe,Ke){this.name=he,this.id=Te,this.location=qe,this.info=Ke}function Ye(he,Te){for(var qe=0;qe<he.length;++qe)if(he[qe].id===Te.id){he[qe].location=Te.location;return}he.push(Te)}function Xe(he,Te,qe){var Ke=he===wc?Me:ye,Ne=Ke[Te];if(!Ne){var pt=H.str(Te);Ne=F.createShader(he),F.shaderSource(Ne,pt),F.compileShader(Ne),Ke[Te]=Ne}return Ne}var et={},ft=[],It=0;function St(he,Te){this.id=It++,this.fragId=he,this.vertId=Te,this.program=null,this.uniforms=[],this.attributes=[],this.refCount=1,Ee.profile&&(this.stats={uniformsCount:0,attributesCount:0})}function it(he,Te,qe){var Ke,Ne,pt=Xe(wc,he.fragId),ot=Xe(wy,he.vertId),Pt=he.program=F.createProgram();if(F.attachShader(Pt,pt),F.attachShader(Pt,ot),qe)for(Ke=0;Ke<qe.length;++Ke){var $e=qe[Ke];F.bindAttribLocation(Pt,$e[0],$e[1])}F.linkProgram(Pt);var Ie=F.getProgramParameter(Pt,_y);Ee.profile&&(he.stats.uniformsCount=Ie);var mt=he.uniforms;for(Ke=0;Ke<Ie;++Ke)if(Ne=F.getActiveUniform(Pt,Ke),Ne)if(Ne.size>1)for(var Ae=0;Ae<Ne.size;++Ae){var ht=Ne.name.replace("[0]","["+Ae+"]");Ye(mt,new we(ht,H.id(ht),F.getUniformLocation(Pt,ht),Ne))}else Ye(mt,new we(Ne.name,H.id(Ne.name),F.getUniformLocation(Pt,Ne.name),Ne));var Je=F.getProgramParameter(Pt,_c);Ee.profile&&(he.stats.attributesCount=Je);var Ft=he.attributes;for(Ke=0;Ke<Je;++Ke)Ne=F.getActiveAttrib(Pt,Ke),Ne&&Ye(Ft,new we(Ne.name,H.id(Ne.name),F.getAttribLocation(Pt,Ne.name),Ne))}Ee.profile&&(K.getMaxUniformsCount=function(){var he=0;return ft.forEach(function(Te){Te.stats.uniformsCount>he&&(he=Te.stats.uniformsCount)}),he},K.getMaxAttributesCount=function(){var he=0;return ft.forEach(function(Te){Te.stats.attributesCount>he&&(he=Te.stats.attributesCount)}),he});function Ge(){Me={},ye={};for(var he=0;he<ft.length;++he)it(ft[he],null,ft[he].attributes.map(function(Te){return[Te.location,Te.name]}))}return{clear:function(){var he=F.deleteShader.bind(F);Bn(Me).forEach(he),Me={},Bn(ye).forEach(he),ye={},ft.forEach(function(Te){F.deleteProgram(Te.program)}),ft.length=0,et={},K.shaderCount=0},program:function(he,Te,qe,Ke){var Ne=et[Te];Ne||(Ne=et[Te]={});var pt=Ne[he];if(pt&&(pt.refCount++,!Ke))return pt;var ot=new St(Te,he);return K.shaderCount++,it(ot,qe,Ke),pt||(Ne[he]=ot),ft.push(ot),r(ot,{destroy:function(){if(ot.refCount--,ot.refCount<=0){F.deleteProgram(ot.program);var Pt=ft.indexOf(ot);ft.splice(Pt,1),K.shaderCount--}Ne[ot.vertId].refCount<=0&&(F.deleteShader(ye[ot.vertId]),delete ye[ot.vertId],delete et[ot.fragId][ot.vertId]),Object.keys(et[ot.fragId]).length||(F.deleteShader(Me[ot.fragId]),delete Me[ot.fragId],delete et[ot.fragId])}})},restore:Ge,shader:Xe,frag:-1,vert:-1}}var iv=6408,Sc=5121,Sy=3333,Ey=5126;function av(F,H,K,Ee,Me,ye,we){function Ye(ft){var It;H.next===null?It=Sc:It=H.next.colorAttachments[0].texture._texture.type;var St=0,it=0,Ge=Ee.framebufferWidth,he=Ee.framebufferHeight,Te=null;tn(ft)?Te=ft:ft&&(St=ft.x|0,it=ft.y|0,Ge=(ft.width||Ee.framebufferWidth-St)|0,he=(ft.height||Ee.framebufferHeight-it)|0,Te=ft.data||null),K();var qe=Ge*he*4;return Te||(It===Sc?Te=new Uint8Array(qe):It===Ey&&(Te=Te||new Float32Array(qe))),F.pixelStorei(Sy,4),F.readPixels(St,it,Ge,he,iv,It,Te),Te}function Xe(ft){var It;return H.setFBO({framebuffer:ft.framebuffer},function(){It=Ye(ft)}),It}function et(ft){return!ft||!("framebuffer"in ft)?Ye(ft):Xe(ft)}return et}function ov(F){return Ec(uv(Ac(F)))}function uv(F){return Ty(Oy(Ay(F),F.length*8))}function Ec(F){for(var H="0123456789abcdef",K="",Ee,Me=0;Me<F.length;Me++)Ee=F.charCodeAt(Me),K+=H.charAt(Ee>>>4&15)+H.charAt(Ee&15);return K}function Ac(F){for(var H="",K=-1,Ee,Me;++K<F.length;)Ee=F.charCodeAt(K),Me=K+1<F.length?F.charCodeAt(K+1):0,55296<=Ee&&Ee<=56319&&56320<=Me&&Me<=57343&&(Ee=65536+((Ee&1023)<<10)+(Me&1023),K++),Ee<=127?H+=String.fromCharCode(Ee):Ee<=2047?H+=String.fromCharCode(192|Ee>>>6&31,128|Ee&63):Ee<=65535?H+=String.fromCharCode(224|Ee>>>12&15,128|Ee>>>6&63,128|Ee&63):Ee<=2097151&&(H+=String.fromCharCode(240|Ee>>>18&7,128|Ee>>>12&63,128|Ee>>>6&63,128|Ee&63));return H}function Ay(F){for(var H=Array(F.length>>2),K=0;K<H.length;K++)H[K]=0;for(var K=0;K<F.length*8;K+=8)H[K>>5]|=(F.charCodeAt(K/8)&255)<<24-K%32;return H}function Ty(F){for(var H="",K=0;K<F.length*32;K+=8)H+=String.fromCharCode(F[K>>5]>>>24-K%32&255);return H}function bi(F,H){return F>>>H|F<<32-H}function lv(F,H){return F>>>H}function Cy(F,H,K){return F&H^~F&K}function sv(F,H,K){return F&H^F&K^H&K}function fv(F){return bi(F,2)^bi(F,13)^bi(F,22)}function Tc(F){return bi(F,6)^bi(F,11)^bi(F,25)}function cv(F){return bi(F,7)^bi(F,18)^lv(F,3)}function ls(F){return bi(F,17)^bi(F,19)^lv(F,10)}var ss=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Oy(F,H){var K=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Ee=new Array(64),Me,ye,we,Ye,Xe,et,ft,It,St,it,Ge,he;for(F[H>>5]|=128<<24-H%32,F[(H+64>>9<<4)+15]=H,St=0;St<F.length;St+=16){for(Me=K[0],ye=K[1],we=K[2],Ye=K[3],Xe=K[4],et=K[5],ft=K[6],It=K[7],it=0;it<64;it++)it<16?Ee[it]=F[it+St]:Ee[it]=Gr(Gr(Gr(ls(Ee[it-2]),Ee[it-7]),cv(Ee[it-15])),Ee[it-16]),Ge=Gr(Gr(Gr(Gr(It,Tc(Xe)),Cy(Xe,et,ft)),ss[it]),Ee[it]),he=Gr(fv(Me),sv(Me,ye,we)),It=ft,ft=et,et=Xe,Xe=Gr(Ye,Ge),Ye=we,we=ye,ye=Me,Me=Gr(Ge,he);K[0]=Gr(Me,K[0]),K[1]=Gr(ye,K[1]),K[2]=Gr(we,K[2]),K[3]=Gr(Ye,K[3]),K[4]=Gr(Xe,K[4]),K[5]=Gr(et,K[5]),K[6]=Gr(ft,K[6]),K[7]=Gr(It,K[7])}return K}function Gr(F,H){var K=(F&65535)+(H&65535),Ee=(F>>16)+(H>>16)+(K>>16);return Ee<<16|K&65535}function Da(F){return Array.prototype.slice.call(F)}function So(F){return Da(F).join("")}function ky(F){var H=F&&F.cache,K=0,Ee=[],Me=[],ye=[];function we(Ge,he){var Te=he&&he.stable;if(!Te){for(var qe=0;qe<Me.length;++qe)if(Me[qe]===Ge&&!ye[qe])return Ee[qe]}var Ke="g"+K++;return Ee.push(Ke),Me.push(Ge),ye.push(Te),Ke}function Ye(){var Ge=[];function he(){Ge.push.apply(Ge,Da(arguments))}var Te=[];function qe(){var Ke="v"+K++;return Te.push(Ke),arguments.length>0&&(Ge.push(Ke,"="),Ge.push.apply(Ge,Da(arguments)),Ge.push(";")),Ke}return r(he,{def:qe,toString:function(){return So([Te.length>0?"var "+Te.join(",")+";":"",So(Ge)])}})}function Xe(){var Ge=Ye(),he=Ye(),Te=Ge.toString,qe=he.toString;function Ke(Ne,pt){he(Ne,pt,"=",Ge.def(Ne,pt),";")}return r(function(){Ge.apply(Ge,Da(arguments))},{def:Ge.def,entry:Ge,exit:he,save:Ke,set:function(Ne,pt,ot){Ke(Ne,pt),Ge(Ne,pt,"=",ot,";")},toString:function(){return Te()+qe()}})}function et(){var Ge=So(arguments),he=Xe(),Te=Xe(),qe=he.toString,Ke=Te.toString;return r(he,{then:function(){return he.apply(he,Da(arguments)),this},else:function(){return Te.apply(Te,Da(arguments)),this},toString:function(){var Ne=Ke();return Ne&&(Ne="else{"+Ne+"}"),So(["if(",Ge,"){",qe(),"}",Ne])}})}var ft=Ye(),It={};function St(Ge,he){var Te=[];function qe(){var Pt="a"+Te.length;return Te.push(Pt),Pt}he=he||0;for(var Ke=0;Ke<he;++Ke)qe();var Ne=Xe(),pt=Ne.toString,ot=It[Ge]=r(Ne,{arg:qe,toString:function(){return So(["function(",Te.join(),"){",pt(),"}"])}});return ot}function it(){var Ge=['"use strict";',ft,"return {"];Object.keys(It).forEach(function(Ke){Ge.push('"',Ke,'":',It[Ke].toString(),",")}),Ge.push("}");var he=So(Ge).replace(/;/g,`;
|
|
283
|
-
`).replace(/}/g,`}
|
|
284
|
-
`).replace(/{/g,`{
|
|
285
|
-
`),Te;if(H&&(Te=ov(he),H[Te]))return H[Te].apply(null,Me);var qe=Function.apply(null,Ee.concat(he));return H&&(H[Te]=qe),qe.apply(null,Me)}return{global:ft,link:we,block:Ye,proc:St,scope:Xe,cond:et,compile:it}}var $a="xyzw".split(""),Cc=5121,Ba=1,Lu=2,Du=0,fs=1,Oc=2,cs=3,za=4,kc=5,hv=6,dv="dither",pv="blend.enable",vv="blend.color",hs="blend.equation",ds="blend.func",Mc="depth.enable",Ic="depth.func",mv="depth.range",$u="depth.mask",Pc="colorMask",gv="cull.enable",Fc="cull.face",ps="frontFace",Rc="lineWidth",Bu="polygonOffset.enable",Eo="polygonOffset.offset",Nc="sample.alpha",Lc="sample.enable",zu="sample.coverage",qn="stencil.enable",Dc="stencil.mask",$c="stencil.func",Uu="stencil.opFront",Ua="stencil.opBack",yv="scissor.enable",vs="scissor.box",Ui="viewport",ja="profile",aa="framebuffer",ju="vert",ms="frag",Ao="elements",To="primitive",nn="count",gs="offset",ys="instances",fi="vao",Gu="Width",Wu="Height",Co=aa+Gu,Oo=aa+Wu,My=Ui+Gu,xv=Ui+Wu,Bc="drawingBuffer",zc=Bc+Gu,Uc=Bc+Wu,Iy=[ds,hs,$c,Uu,Ua,zu,Ui,vs,Eo],Ga=34962,jc=34963,Py=2884,Fy=3042,bv=3024,wv=2960,xs=2929,_v=3089,bs=32823,Sv=32926,Hu=32928,$r=5126,ws=35664,ji=35665,ko=35666,_s=5124,Gc=35667,Vu=35668,Mo=35669,Wc=35670,Hc=35671,Vc=35672,qc=35673,Yc=35674,qu=35675,Xc=35676,Qc=35678,u=35680,f=4,h=1028,p=1029,v=2304,x=2305,O=32775,S=32776,P=519,N=7680,L=0,B=1,z=32774,ie=513,oe=36160,G=36064,X={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},J={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},ue={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},le={cw:v,ccw:x};function te(F){return Array.isArray(F)||tn(F)||ni(F)}function Pe(F){return F.sort(function(H,K){return H===Ui?-1:K===Ui?1:H<K?-1:1})}function Ue(F,H,K,Ee){this.thisDep=F,this.contextDep=H,this.propDep=K,this.append=Ee}function tt(F){return F&&!(F.thisDep||F.contextDep||F.propDep)}function je(F){return new Ue(!1,!1,!1,F)}function at(F,H){var K=F.type;if(K===Du){var Ee=F.data.length;return new Ue(!0,Ee>=1,Ee>=2,H)}else if(K===za){var Me=F.data;return new Ue(Me.thisDep,Me.contextDep,Me.propDep,H)}else{if(K===kc)return new Ue(!1,!1,!1,H);if(K===hv){for(var ye=!1,we=!1,Ye=!1,Xe=0;Xe<F.data.length;++Xe){var et=F.data[Xe];if(et.type===fs)Ye=!0;else if(et.type===Oc)we=!0;else if(et.type===cs)ye=!0;else if(et.type===Du){ye=!0;var ft=et.data;ft>=1&&(we=!0),ft>=2&&(Ye=!0)}else et.type===za&&(ye=ye||et.data.thisDep,we=we||et.data.contextDep,Ye=Ye||et.data.propDep)}return new Ue(ye,we,Ye,H)}else return new Ue(K===cs,K===Oc,K===fs,H)}}var vt=new Ue(!1,!1,!1,function(){});function Gt(F,H,K,Ee,Me,ye,we,Ye,Xe,et,ft,It,St,it,Ge,he){var Te=et.Record,qe={add:32774,subtract:32778,"reverse subtract":32779};K.ext_blend_minmax&&(qe.min=O,qe.max=S);var Ke=K.angle_instanced_arrays,Ne=K.webgl_draw_buffers,pt=K.oes_vertex_array_object,ot={dirty:!0,profile:he.profile},Pt={},$e=[],Ie={},mt={};function Ae(U){return U.replace(".","_")}function ht(U,V,ee){var _e=Ae(U);$e.push(U),Pt[_e]=ot[_e]=!!ee,Ie[_e]=V}function Je(U,V,ee){var _e=Ae(U);$e.push(U),Array.isArray(ee)?(ot[_e]=ee.slice(),Pt[_e]=ee.slice()):ot[_e]=Pt[_e]=ee,mt[_e]=V}function Ft(U){return!!isNaN(U)}ht(dv,bv),ht(pv,Fy),Je(vv,"blendColor",[0,0,0,0]),Je(hs,"blendEquationSeparate",[z,z]),Je(ds,"blendFuncSeparate",[B,L,B,L]),ht(Mc,xs,!0),Je(Ic,"depthFunc",ie),Je(mv,"depthRange",[0,1]),Je($u,"depthMask",!0),Je(Pc,Pc,[!0,!0,!0,!0]),ht(gv,Py),Je(Fc,"cullFace",p),Je(ps,ps,x),Je(Rc,Rc,1),ht(Bu,bs),Je(Eo,"polygonOffset",[0,0]),ht(Nc,Sv),ht(Lc,Hu),Je(zu,"sampleCoverage",[1,!1]),ht(qn,wv),Je(Dc,"stencilMask",-1),Je($c,"stencilFunc",[P,0,-1]),Je(Uu,"stencilOpSeparate",[h,N,N,N]),Je(Ua,"stencilOpSeparate",[p,N,N,N]),ht(yv,_v),Je(vs,"scissor",[0,0,F.drawingBufferWidth,F.drawingBufferHeight]),Je(Ui,Ui,[0,0,F.drawingBufferWidth,F.drawingBufferHeight]);var er={gl:F,context:St,strings:H,next:Pt,current:ot,draw:It,elements:ye,buffer:Me,shader:ft,attributes:et.state,vao:et,uniforms:Xe,framebuffer:Ye,extensions:K,timer:it,isBufferArgs:te},xt={primTypes:rn,compareFuncs:J,blendFuncs:X,blendEquations:qe,stencilOps:ue,glTypes:Eu,orientationType:le};Ne&&(xt.backBuffer=[p],xt.drawBuffer=Se(Ee.maxDrawbuffers,function(U){return U===0?[0]:Se(U,function(V){return G+V})}));var Bt=0;function lt(){var U=ky({cache:Ge}),V=U.link,ee=U.global;U.id=Bt++,U.batchId="0";var _e=V(er),pe=U.shared={props:"a0"};Object.keys(er).forEach(function(ne){pe[ne]=ee.def(_e,".",ne)});var de=U.next={},ce=U.current={};Object.keys(mt).forEach(function(ne){Array.isArray(ot[ne])&&(de[ne]=ee.def(pe.next,".",ne),ce[ne]=ee.def(pe.current,".",ne))});var se=U.constants={};Object.keys(xt).forEach(function(ne){se[ne]=ee.def(JSON.stringify(xt[ne]))}),U.invoke=function(ne,Q){switch(Q.type){case Du:var ve=["this",pe.context,pe.props,U.batchId];return ne.def(V(Q.data),".call(",ve.slice(0,Math.max(Q.data.length+1,4)),")");case fs:return ne.def(pe.props,Q.data);case Oc:return ne.def(pe.context,Q.data);case cs:return ne.def("this",Q.data);case za:return Q.data.append(U,ne),Q.data.ref;case kc:return Q.data.toString();case hv:return Q.data.map(function(Oe){return U.invoke(ne,Oe)})}},U.attribCache={};var Z={};return U.scopeAttrib=function(ne){var Q=H.id(ne);if(Q in Z)return Z[Q];var ve=et.scope[Q];ve||(ve=et.scope[Q]=new Te);var Oe=Z[Q]=V(ve);return Oe},U}function tr(U){var V=U.static,ee=U.dynamic,_e;if(ja in V){var pe=!!V[ja];_e=je(function(ce,se){return pe}),_e.enable=pe}else if(ja in ee){var de=ee[ja];_e=at(de,function(ce,se){return ce.invoke(se,de)})}return _e}function ur(U,V){var ee=U.static,_e=U.dynamic;if(aa in ee){var pe=ee[aa];return pe?(pe=Ye.getFramebuffer(pe),je(function(ce,se){var Z=ce.link(pe),ne=ce.shared;se.set(ne.framebuffer,".next",Z);var Q=ne.context;return se.set(Q,"."+Co,Z+".width"),se.set(Q,"."+Oo,Z+".height"),Z})):je(function(ce,se){var Z=ce.shared;se.set(Z.framebuffer,".next","null");var ne=Z.context;return se.set(ne,"."+Co,ne+"."+zc),se.set(ne,"."+Oo,ne+"."+Uc),"null"})}else if(aa in _e){var de=_e[aa];return at(de,function(ce,se){var Z=ce.invoke(se,de),ne=ce.shared,Q=ne.framebuffer,ve=se.def(Q,".getFramebuffer(",Z,")");se.set(Q,".next",ve);var Oe=ne.context;return se.set(Oe,"."+Co,ve+"?"+ve+".width:"+Oe+"."+zc),se.set(Oe,"."+Oo,ve+"?"+ve+".height:"+Oe+"."+Uc),ve})}else return null}function hr(U,V,ee){var _e=U.static,pe=U.dynamic;function de(Z){if(Z in _e){var ne=_e[Z],Q=!0,ve=ne.x|0,Oe=ne.y|0,Be,Lt;return"width"in ne?Be=ne.width|0:Q=!1,"height"in ne?Lt=ne.height|0:Q=!1,new Ue(!Q&&V&&V.thisDep,!Q&&V&&V.contextDep,!Q&&V&&V.propDep,function(Rt,Et){var Dt=Rt.shared.context,wt=Be;"width"in ne||(wt=Et.def(Dt,".",Co,"-",ve));var Ot=Lt;return"height"in ne||(Ot=Et.def(Dt,".",Oo,"-",Oe)),[ve,Oe,wt,Ot]})}else if(Z in pe){var Mt=pe[Z],gt=at(Mt,function(Rt,Et){var Dt=Rt.invoke(Et,Mt),wt=Rt.shared.context,Ot=Et.def(Dt,".x|0"),kt=Et.def(Dt,".y|0"),Vt=Et.def('"width" in ',Dt,"?",Dt,".width|0:","(",wt,".",Co,"-",Ot,")"),Pr=Et.def('"height" in ',Dt,"?",Dt,".height|0:","(",wt,".",Oo,"-",kt,")");return[Ot,kt,Vt,Pr]});return V&&(gt.thisDep=gt.thisDep||V.thisDep,gt.contextDep=gt.contextDep||V.contextDep,gt.propDep=gt.propDep||V.propDep),gt}else return V?new Ue(V.thisDep,V.contextDep,V.propDep,function(Rt,Et){var Dt=Rt.shared.context;return[0,0,Et.def(Dt,".",Co),Et.def(Dt,".",Oo)]}):null}var ce=de(Ui);if(ce){var se=ce;ce=new Ue(ce.thisDep,ce.contextDep,ce.propDep,function(Z,ne){var Q=se.append(Z,ne),ve=Z.shared.context;return ne.set(ve,"."+My,Q[2]),ne.set(ve,"."+xv,Q[3]),Q})}return{viewport:ce,scissor_box:de(vs)}}function on(U,V){var ee=U.static,_e=typeof ee[ms]=="string"&&typeof ee[ju]=="string";if(_e){if(Object.keys(V.dynamic).length>0)return null;var pe=V.static,de=Object.keys(pe);if(de.length>0&&typeof pe[de[0]]=="number"){for(var ce=[],se=0;se<de.length;++se)ce.push([pe[de[se]]|0,de[se]]);return ce}}return null}function lr(U,V,ee){var _e=U.static,pe=U.dynamic;function de(Q){if(Q in _e){var ve=H.id(_e[Q]),Oe=je(function(){return ve});return Oe.id=ve,Oe}else if(Q in pe){var Be=pe[Q];return at(Be,function(Lt,Mt){var gt=Lt.invoke(Mt,Be),Rt=Mt.def(Lt.shared.strings,".id(",gt,")");return Rt})}return null}var ce=de(ms),se=de(ju),Z=null,ne;return tt(ce)&&tt(se)?(Z=ft.program(se.id,ce.id,null,ee),ne=je(function(Q,ve){return Q.link(Z)})):ne=new Ue(ce&&ce.thisDep||se&&se.thisDep,ce&&ce.contextDep||se&&se.contextDep,ce&&ce.propDep||se&&se.propDep,function(Q,ve){var Oe=Q.shared.shader,Be;ce?Be=ce.append(Q,ve):Be=ve.def(Oe,".",ms);var Lt;se?Lt=se.append(Q,ve):Lt=ve.def(Oe,".",ju);var Mt=Oe+".program("+Lt+","+Be;return ve.def(Mt+")")}),{frag:ce,vert:se,progVar:ne,program:Z}}function Yn(U,V){var ee=U.static,_e=U.dynamic,pe={},de=!1;function ce(){if(fi in ee){var Et=ee[fi];return Et!==null&&et.getVAO(Et)===null&&(Et=et.createVAO(Et)),de=!0,pe.vao=Et,je(function(wt){var Ot=et.getVAO(Et);return Ot?wt.link(Ot):"null"})}else if(fi in _e){de=!0;var Dt=_e[fi];return at(Dt,function(wt,Ot){var kt=wt.invoke(Ot,Dt);return Ot.def(wt.shared.vao+".getVAO("+kt+")")})}return null}var se=ce(),Z=!1;function ne(){if(Ao in ee){var Et=ee[Ao];if(pe.elements=Et,te(Et)){var Dt=pe.elements=ye.create(Et,!0);Et=ye.getElements(Dt),Z=!0}else Et&&(Et=ye.getElements(Et),Z=!0);var wt=je(function(kt,Vt){if(Et){var Pr=kt.link(Et);return kt.ELEMENTS=Pr,Pr}return kt.ELEMENTS=null,null});return wt.value=Et,wt}else if(Ao in _e){Z=!0;var Ot=_e[Ao];return at(Ot,function(kt,Vt){var Pr=kt.shared,Qn=Pr.isBufferArgs,Wa=Pr.elements,Io=kt.invoke(Vt,Ot),Po=Vt.def("null"),wi=Vt.def(Qn,"(",Io,")"),Zc=kt.cond(wi).then(Po,"=",Wa,".createStream(",Io,");").else(Po,"=",Wa,".getElements(",Io,");");return Vt.entry(Zc),Vt.exit(kt.cond(wi).then(Wa,".destroyStream(",Po,");")),kt.ELEMENTS=Po,Po})}else if(de)return new Ue(se.thisDep,se.contextDep,se.propDep,function(kt,Vt){return Vt.def(kt.shared.vao+".currentVAO?"+kt.shared.elements+".getElements("+kt.shared.vao+".currentVAO.elements):null")});return null}var Q=ne();function ve(){if(To in ee){var Et=ee[To];return pe.primitive=Et,je(function(wt,Ot){return rn[Et]})}else if(To in _e){var Dt=_e[To];return at(Dt,function(wt,Ot){var kt=wt.constants.primTypes,Vt=wt.invoke(Ot,Dt);return Ot.def(kt,"[",Vt,"]")})}else{if(Z)return tt(Q)?Q.value?je(function(wt,Ot){return Ot.def(wt.ELEMENTS,".primType")}):je(function(){return f}):new Ue(Q.thisDep,Q.contextDep,Q.propDep,function(wt,Ot){var kt=wt.ELEMENTS;return Ot.def(kt,"?",kt,".primType:",f)});if(de)return new Ue(se.thisDep,se.contextDep,se.propDep,function(wt,Ot){return Ot.def(wt.shared.vao+".currentVAO?"+wt.shared.vao+".currentVAO.primitive:"+f)})}return null}function Oe(Et,Dt){if(Et in ee){var wt=ee[Et]|0;return Dt?pe.offset=wt:pe.instances=wt,je(function(kt,Vt){return Dt&&(kt.OFFSET=wt),wt})}else if(Et in _e){var Ot=_e[Et];return at(Ot,function(kt,Vt){var Pr=kt.invoke(Vt,Ot);return Dt&&(kt.OFFSET=Pr),Pr})}else if(Dt){if(Z)return je(function(kt,Vt){return kt.OFFSET=0,0});if(de)return new Ue(se.thisDep,se.contextDep,se.propDep,function(kt,Vt){return Vt.def(kt.shared.vao+".currentVAO?"+kt.shared.vao+".currentVAO.offset:0")})}else if(de)return new Ue(se.thisDep,se.contextDep,se.propDep,function(kt,Vt){return Vt.def(kt.shared.vao+".currentVAO?"+kt.shared.vao+".currentVAO.instances:-1")});return null}var Be=Oe(gs,!0);function Lt(){if(nn in ee){var Et=ee[nn]|0;return pe.count=Et,je(function(){return Et})}else if(nn in _e){var Dt=_e[nn];return at(Dt,function(Vt,Pr){var Qn=Vt.invoke(Pr,Dt);return Qn})}else if(Z)if(tt(Q)){if(Q)return Be?new Ue(Be.thisDep,Be.contextDep,Be.propDep,function(Vt,Pr){var Qn=Pr.def(Vt.ELEMENTS,".vertCount-",Vt.OFFSET);return Qn}):je(function(Vt,Pr){return Pr.def(Vt.ELEMENTS,".vertCount")});var wt=je(function(){return-1});return wt}else{var Ot=new Ue(Q.thisDep||Be.thisDep,Q.contextDep||Be.contextDep,Q.propDep||Be.propDep,function(Vt,Pr){var Qn=Vt.ELEMENTS;return Vt.OFFSET?Pr.def(Qn,"?",Qn,".vertCount-",Vt.OFFSET,":-1"):Pr.def(Qn,"?",Qn,".vertCount:-1")});return Ot}else if(de){var kt=new Ue(se.thisDep,se.contextDep,se.propDep,function(Vt,Pr){return Pr.def(Vt.shared.vao,".currentVAO?",Vt.shared.vao,".currentVAO.count:-1")});return kt}return null}var Mt=ve(),gt=Lt(),Rt=Oe(ys,!1);return{elements:Q,primitive:Mt,count:gt,instances:Rt,offset:Be,vao:se,vaoActive:de,elementsActive:Z,static:pe}}function Er(U,V){var ee=U.static,_e=U.dynamic,pe={};return $e.forEach(function(de){var ce=Ae(de);function se(Z,ne){if(de in ee){var Q=Z(ee[de]);pe[ce]=je(function(){return Q})}else if(de in _e){var ve=_e[de];pe[ce]=at(ve,function(Oe,Be){return ne(Oe,Be,Oe.invoke(Be,ve))})}}switch(de){case gv:case pv:case dv:case qn:case Mc:case yv:case Bu:case Nc:case Lc:case $u:return se(function(Z){return Z},function(Z,ne,Q){return Q});case Ic:return se(function(Z){return J[Z]},function(Z,ne,Q){var ve=Z.constants.compareFuncs;return ne.def(ve,"[",Q,"]")});case mv:return se(function(Z){return Z},function(Z,ne,Q){var ve=ne.def("+",Q,"[0]"),Oe=ne.def("+",Q,"[1]");return[ve,Oe]});case ds:return se(function(Z){var ne="srcRGB"in Z?Z.srcRGB:Z.src,Q="srcAlpha"in Z?Z.srcAlpha:Z.src,ve="dstRGB"in Z?Z.dstRGB:Z.dst,Oe="dstAlpha"in Z?Z.dstAlpha:Z.dst;return[X[ne],X[ve],X[Q],X[Oe]]},function(Z,ne,Q){var ve=Z.constants.blendFuncs;function Oe(Dt,wt){var Ot=ne.def('"',Dt,wt,'" in ',Q,"?",Q,".",Dt,wt,":",Q,".",Dt);return Ot}var Be=Oe("src","RGB"),Lt=Oe("dst","RGB"),Mt=ne.def(ve,"[",Be,"]"),gt=ne.def(ve,"[",Oe("src","Alpha"),"]"),Rt=ne.def(ve,"[",Lt,"]"),Et=ne.def(ve,"[",Oe("dst","Alpha"),"]");return[Mt,Rt,gt,Et]});case hs:return se(function(Z){if(typeof Z=="string")return[qe[Z],qe[Z]];if(typeof Z=="object")return[qe[Z.rgb],qe[Z.alpha]]},function(Z,ne,Q){var ve=Z.constants.blendEquations,Oe=ne.def(),Be=ne.def(),Lt=Z.cond("typeof ",Q,'==="string"');return Lt.then(Oe,"=",Be,"=",ve,"[",Q,"];"),Lt.else(Oe,"=",ve,"[",Q,".rgb];",Be,"=",ve,"[",Q,".alpha];"),ne(Lt),[Oe,Be]});case vv:return se(function(Z){return Se(4,function(ne){return+Z[ne]})},function(Z,ne,Q){return Se(4,function(ve){return ne.def("+",Q,"[",ve,"]")})});case Dc:return se(function(Z){return Z|0},function(Z,ne,Q){return ne.def(Q,"|0")});case $c:return se(function(Z){var ne=Z.cmp||"keep",Q=Z.ref||0,ve="mask"in Z?Z.mask:-1;return[J[ne],Q,ve]},function(Z,ne,Q){var ve=Z.constants.compareFuncs,Oe=ne.def('"cmp" in ',Q,"?",ve,"[",Q,".cmp]",":",N),Be=ne.def(Q,".ref|0"),Lt=ne.def('"mask" in ',Q,"?",Q,".mask|0:-1");return[Oe,Be,Lt]});case Uu:case Ua:return se(function(Z){var ne=Z.fail||"keep",Q=Z.zfail||"keep",ve=Z.zpass||"keep";return[de===Ua?p:h,ue[ne],ue[Q],ue[ve]]},function(Z,ne,Q){var ve=Z.constants.stencilOps;function Oe(Be){return ne.def('"',Be,'" in ',Q,"?",ve,"[",Q,".",Be,"]:",N)}return[de===Ua?p:h,Oe("fail"),Oe("zfail"),Oe("zpass")]});case Eo:return se(function(Z){var ne=Z.factor|0,Q=Z.units|0;return[ne,Q]},function(Z,ne,Q){var ve=ne.def(Q,".factor|0"),Oe=ne.def(Q,".units|0");return[ve,Oe]});case Fc:return se(function(Z){var ne=0;return Z==="front"?ne=h:Z==="back"&&(ne=p),ne},function(Z,ne,Q){return ne.def(Q,'==="front"?',h,":",p)});case Rc:return se(function(Z){return Z},function(Z,ne,Q){return Q});case ps:return se(function(Z){return le[Z]},function(Z,ne,Q){return ne.def(Q+'==="cw"?'+v+":"+x)});case Pc:return se(function(Z){return Z.map(function(ne){return!!ne})},function(Z,ne,Q){return Se(4,function(ve){return"!!"+Q+"["+ve+"]"})});case zu:return se(function(Z){var ne="value"in Z?Z.value:1,Q=!!Z.invert;return[ne,Q]},function(Z,ne,Q){var ve=ne.def('"value" in ',Q,"?+",Q,".value:1"),Oe=ne.def("!!",Q,".invert");return[ve,Oe]})}}),pe}function En(U,V){var ee=U.static,_e=U.dynamic,pe={};return Object.keys(ee).forEach(function(de){var ce=ee[de],se;if(typeof ce=="number"||typeof ce=="boolean")se=je(function(){return ce});else if(typeof ce=="function"){var Z=ce._reglType;Z==="texture2d"||Z==="textureCube"?se=je(function(ne){return ne.link(ce)}):(Z==="framebuffer"||Z==="framebufferCube")&&(se=je(function(ne){return ne.link(ce.color[0])}))}else ai(ce)&&(se=je(function(ne){var Q=ne.global.def("[",Se(ce.length,function(ve){return ce[ve]}),"]");return Q}));se.value=ce,pe[de]=se}),Object.keys(_e).forEach(function(de){var ce=_e[de];pe[de]=at(ce,function(se,Z){return se.invoke(Z,ce)})}),pe}function Xn(U,V){var ee=U.static,_e=U.dynamic,pe={};return Object.keys(ee).forEach(function(de){var ce=ee[de],se=H.id(de),Z=new Te;if(te(ce))Z.state=Ba,Z.buffer=Me.getBuffer(Me.create(ce,Ga,!1,!0)),Z.type=0;else{var ne=Me.getBuffer(ce);if(ne)Z.state=Ba,Z.buffer=ne,Z.type=0;else if("constant"in ce){var Q=ce.constant;Z.buffer="null",Z.state=Lu,typeof Q=="number"?Z.x=Q:$a.forEach(function(Rt,Et){Et<Q.length&&(Z[Rt]=Q[Et])})}else{te(ce.buffer)?ne=Me.getBuffer(Me.create(ce.buffer,Ga,!1,!0)):ne=Me.getBuffer(ce.buffer);var ve=ce.offset|0,Oe=ce.stride|0,Be=ce.size|0,Lt=!!ce.normalized,Mt=0;"type"in ce&&(Mt=Eu[ce.type]);var gt=ce.divisor|0;Z.buffer=ne,Z.state=Ba,Z.size=Be,Z.normalized=Lt,Z.type=Mt||ne.dtype,Z.offset=ve,Z.stride=Oe,Z.divisor=gt}}pe[de]=je(function(Rt,Et){var Dt=Rt.attribCache;if(se in Dt)return Dt[se];var wt={isStream:!1};return Object.keys(Z).forEach(function(Ot){wt[Ot]=Z[Ot]}),Z.buffer&&(wt.buffer=Rt.link(Z.buffer),wt.type=wt.type||wt.buffer+".dtype"),Dt[se]=wt,wt})}),Object.keys(_e).forEach(function(de){var ce=_e[de];function se(Z,ne){var Q=Z.invoke(ne,ce),ve=Z.shared,Oe=Z.constants,Be=ve.isBufferArgs,Lt=ve.buffer,Mt={isStream:ne.def(!1)},gt=new Te;gt.state=Ba,Object.keys(gt).forEach(function(wt){Mt[wt]=ne.def(""+gt[wt])});var Rt=Mt.buffer,Et=Mt.type;ne("if(",Be,"(",Q,")){",Mt.isStream,"=true;",Rt,"=",Lt,".createStream(",Ga,",",Q,");",Et,"=",Rt,".dtype;","}else{",Rt,"=",Lt,".getBuffer(",Q,");","if(",Rt,"){",Et,"=",Rt,".dtype;",'}else if("constant" in ',Q,"){",Mt.state,"=",Lu,";","if(typeof "+Q+'.constant === "number"){',Mt[$a[0]],"=",Q,".constant;",$a.slice(1).map(function(wt){return Mt[wt]}).join("="),"=0;","}else{",$a.map(function(wt,Ot){return Mt[wt]+"="+Q+".constant.length>"+Ot+"?"+Q+".constant["+Ot+"]:0;"}).join(""),"}}else{","if(",Be,"(",Q,".buffer)){",Rt,"=",Lt,".createStream(",Ga,",",Q,".buffer);","}else{",Rt,"=",Lt,".getBuffer(",Q,".buffer);","}",Et,'="type" in ',Q,"?",Oe.glTypes,"[",Q,".type]:",Rt,".dtype;",Mt.normalized,"=!!",Q,".normalized;");function Dt(wt){ne(Mt[wt],"=",Q,".",wt,"|0;")}return Dt("size"),Dt("offset"),Dt("stride"),Dt("divisor"),ne("}}"),ne.exit("if(",Mt.isStream,"){",Lt,".destroyStream(",Rt,");","}"),Mt}pe[de]=at(ce,se)}),pe}function Fn(U){var V=U.static,ee=U.dynamic,_e={};return Object.keys(V).forEach(function(pe){var de=V[pe];_e[pe]=je(function(ce,se){return typeof de=="number"||typeof de=="boolean"?""+de:ce.link(de)})}),Object.keys(ee).forEach(function(pe){var de=ee[pe];_e[pe]=at(de,function(ce,se){return ce.invoke(se,de)})}),_e}function Gi(U,V,ee,_e,pe){U.static,U.dynamic;var de=on(U,V),ce=ur(U),se=hr(U,ce),Z=Yn(U),ne=Er(U),Q=lr(U,pe,de);function ve(Rt){var Et=se[Rt];Et&&(ne[Rt]=Et)}ve(Ui),ve(Ae(vs));var Oe=Object.keys(ne).length>0,Be={framebuffer:ce,draw:Z,shader:Q,state:ne,dirty:Oe,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Be.profile=tr(U),Be.uniforms=En(ee),Be.drawVAO=Be.scopeVAO=Z.vao,!Be.drawVAO&&Q.program&&!de&&K.angle_instanced_arrays&&Z.static.elements){var Lt=!0,Mt=Q.program.attributes.map(function(Rt){var Et=V.static[Rt];return Lt=Lt&&!!Et,Et});if(Lt&&Mt.length>0){var gt=et.getVAO(et.createVAO({attributes:Mt,elements:Z.static.elements}));Be.drawVAO=new Ue(null,null,null,function(Rt,Et){return Rt.link(gt)}),Be.useVAO=!0}}return de?Be.useVAO=!0:Be.attributes=Xn(V),Be.context=Fn(_e),Be}function un(U,V,ee){var _e=U.shared,pe=_e.context,de=U.scope();Object.keys(ee).forEach(function(ce){V.save(pe,"."+ce);var se=ee[ce],Z=se.append(U,V);Array.isArray(Z)?de(pe,".",ce,"=[",Z.join(),"];"):de(pe,".",ce,"=",Z,";")}),V(de)}function ln(U,V,ee,_e){var pe=U.shared,de=pe.gl,ce=pe.framebuffer,se;Ne&&(se=V.def(pe.extensions,".webgl_draw_buffers"));var Z=U.constants,ne=Z.drawBuffer,Q=Z.backBuffer,ve;ee?ve=ee.append(U,V):ve=V.def(ce,".next"),_e||V("if(",ve,"!==",ce,".cur){"),V("if(",ve,"){",de,".bindFramebuffer(",oe,",",ve,".framebuffer);"),Ne&&V(se,".drawBuffersWEBGL(",ne,"[",ve,".colorAttachments.length]);"),V("}else{",de,".bindFramebuffer(",oe,",null);"),Ne&&V(se,".drawBuffersWEBGL(",Q,");"),V("}",ce,".cur=",ve,";"),_e||V("}")}function Xt(U,V,ee){var _e=U.shared,pe=_e.gl,de=U.current,ce=U.next,se=_e.current,Z=_e.next,ne=U.cond(se,".dirty");$e.forEach(function(Q){var ve=Ae(Q);if(!(ve in ee.state)){var Oe,Be;if(ve in ce){Oe=ce[ve],Be=de[ve];var Lt=Se(ot[ve].length,function(gt){return ne.def(Oe,"[",gt,"]")});ne(U.cond(Lt.map(function(gt,Rt){return gt+"!=="+Be+"["+Rt+"]"}).join("||")).then(pe,".",mt[ve],"(",Lt,");",Lt.map(function(gt,Rt){return Be+"["+Rt+"]="+gt}).join(";"),";"))}else{Oe=ne.def(Z,".",ve);var Mt=U.cond(Oe,"!==",se,".",ve);ne(Mt),ve in Ie?Mt(U.cond(Oe).then(pe,".enable(",Ie[ve],");").else(pe,".disable(",Ie[ve],");"),se,".",ve,"=",Oe,";"):Mt(pe,".",mt[ve],"(",Oe,");",se,".",ve,"=",Oe,";")}}}),Object.keys(ee.state).length===0&&ne(se,".dirty=false;"),V(ne)}function ci(U,V,ee,_e){var pe=U.shared,de=U.current,ce=pe.current,se=pe.gl,Z;Pe(Object.keys(ee)).forEach(function(ne){var Q=ee[ne];if(!(_e&&!_e(Q))){var ve=Q.append(U,V);if(Ie[ne]){var Oe=Ie[ne];tt(Q)?(Z=U.link(ve,{stable:!0}),V(U.cond(Z).then(se,".enable(",Oe,");").else(se,".disable(",Oe,");")),V(ce,".",ne,"=",Z,";")):(V(U.cond(ve).then(se,".enable(",Oe,");").else(se,".disable(",Oe,");")),V(ce,".",ne,"=",ve,";"))}else if(ai(ve)){var Be=de[ne];V(se,".",mt[ne],"(",ve,");",ve.map(function(Lt,Mt){return Be+"["+Mt+"]="+Lt}).join(";"),";")}else tt(Q)?(Z=U.link(ve,{stable:!0}),V(se,".",mt[ne],"(",Z,");",ce,".",ne,"=",Z,";")):V(se,".",mt[ne],"(",ve,");",ce,".",ne,"=",ve,";")}})}function br(U,V){Ke&&(U.instancing=V.def(U.shared.extensions,".angle_instanced_arrays"))}function sn(U,V,ee,_e,pe){var de=U.shared,ce=U.stats,se=de.current,Z=de.timer,ne=ee.profile;function Q(){return typeof performance>"u"?"Date.now()":"performance.now()"}var ve,Oe;function Be(Dt){ve=V.def(),Dt(ve,"=",Q(),";"),typeof pe=="string"?Dt(ce,".count+=",pe,";"):Dt(ce,".count++;"),it&&(_e?(Oe=V.def(),Dt(Oe,"=",Z,".getNumPendingQueries();")):Dt(Z,".beginQuery(",ce,");"))}function Lt(Dt){Dt(ce,".cpuTime+=",Q(),"-",ve,";"),it&&(_e?Dt(Z,".pushScopeStats(",Oe,",",Z,".getNumPendingQueries(),",ce,");"):Dt(Z,".endQuery();"))}function Mt(Dt){var wt=V.def(se,".profile");V(se,".profile=",Dt,";"),V.exit(se,".profile=",wt,";")}var gt;if(ne){if(tt(ne)){ne.enable?(Be(V),Lt(V.exit),Mt("true")):Mt("false");return}gt=ne.append(U,V),Mt(gt)}else gt=V.def(se,".profile");var Rt=U.block();Be(Rt),V("if(",gt,"){",Rt,"}");var Et=U.block();Lt(Et),V.exit("if(",gt,"){",Et,"}")}function zn(U,V,ee,_e,pe){var de=U.shared;function ce(Z){switch(Z){case ws:case Gc:case Hc:return 2;case ji:case Vu:case Vc:return 3;case ko:case Mo:case qc:return 4;default:return 1}}function se(Z,ne,Q){var ve=de.gl,Oe=V.def(Z,".location"),Be=V.def(de.attributes,"[",Oe,"]"),Lt=Q.state,Mt=Q.buffer,gt=[Q.x,Q.y,Q.z,Q.w],Rt=["buffer","normalized","offset","stride"];function Et(){V("if(!",Be,".buffer){",ve,".enableVertexAttribArray(",Oe,");}");var wt=Q.type,Ot;if(Q.size?Ot=V.def(Q.size,"||",ne):Ot=ne,V("if(",Be,".type!==",wt,"||",Be,".size!==",Ot,"||",Rt.map(function(Vt){return Be+"."+Vt+"!=="+Q[Vt]}).join("||"),"){",ve,".bindBuffer(",Ga,",",Mt,".buffer);",ve,".vertexAttribPointer(",[Oe,Ot,wt,Q.normalized,Q.stride,Q.offset],");",Be,".type=",wt,";",Be,".size=",Ot,";",Rt.map(function(Vt){return Be+"."+Vt+"="+Q[Vt]+";"}).join(""),"}"),Ke){var kt=Q.divisor;V("if(",Be,".divisor!==",kt,"){",U.instancing,".vertexAttribDivisorANGLE(",[Oe,kt],");",Be,".divisor=",kt,";}")}}function Dt(){V("if(",Be,".buffer){",ve,".disableVertexAttribArray(",Oe,");",Be,".buffer=null;","}if(",$a.map(function(wt,Ot){return Be+"."+wt+"!=="+gt[Ot]}).join("||"),"){",ve,".vertexAttrib4f(",Oe,",",gt,");",$a.map(function(wt,Ot){return Be+"."+wt+"="+gt[Ot]+";"}).join(""),"}")}Lt===Ba?Et():Lt===Lu?Dt():(V("if(",Lt,"===",Ba,"){"),Et(),V("}else{"),Dt(),V("}"))}_e.forEach(function(Z){var ne=Z.name,Q=ee.attributes[ne],ve;if(Q){if(!pe(Q))return;ve=Q.append(U,V)}else{if(!pe(vt))return;var Oe=U.scopeAttrib(ne);ve={},Object.keys(new Te).forEach(function(Be){ve[Be]=V.def(Oe,".",Be)})}se(U.link(Z),ce(Z.info.type),ve)})}function Un(U,V,ee,_e,pe,de){for(var ce=U.shared,se=ce.gl,Z,ne=0;ne<_e.length;++ne){var Q=_e[ne],ve=Q.name,Oe=Q.info.type,Be=ee.uniforms[ve],Lt=U.link(Q),Mt=Lt+".location",gt;if(Be){if(!pe(Be))continue;if(tt(Be)){var Rt=Be.value;if(Oe===Qc||Oe===u){var Et=U.link(Rt._texture||Rt.color[0]._texture);V(se,".uniform1i(",Mt,",",Et+".bind());"),V.exit(Et,".unbind();")}else if(Oe===Yc||Oe===qu||Oe===Xc){var Dt=U.global.def("new Float32Array(["+Array.prototype.slice.call(Rt)+"])"),wt=2;Oe===qu?wt=3:Oe===Xc&&(wt=4),V(se,".uniformMatrix",wt,"fv(",Mt,",false,",Dt,");")}else{switch(Oe){case $r:Z="1f";break;case ws:Z="2f";break;case ji:Z="3f";break;case ko:Z="4f";break;case Wc:Z="1i";break;case _s:Z="1i";break;case Hc:Z="2i";break;case Gc:Z="2i";break;case Vc:Z="3i";break;case Vu:Z="3i";break;case qc:Z="4i";break;case Mo:Z="4i";break}V(se,".uniform",Z,"(",Mt,",",ai(Rt)?Array.prototype.slice.call(Rt):Rt,");")}continue}else gt=Be.append(U,V)}else{if(!pe(vt))continue;gt=V.def(ce.uniforms,"[",H.id(ve),"]")}Oe===Qc?V("if(",gt,"&&",gt,'._reglType==="framebuffer"){',gt,"=",gt,".color[0];","}"):Oe===u&&V("if(",gt,"&&",gt,'._reglType==="framebufferCube"){',gt,"=",gt,".color[0];","}");var Ot=1;switch(Oe){case Qc:case u:var kt=V.def(gt,"._texture");V(se,".uniform1i(",Mt,",",kt,".bind());"),V.exit(kt,".unbind();");continue;case _s:case Wc:Z="1i";break;case Gc:case Hc:Z="2i",Ot=2;break;case Vu:case Vc:Z="3i",Ot=3;break;case Mo:case qc:Z="4i",Ot=4;break;case $r:Z="1f";break;case ws:Z="2f",Ot=2;break;case ji:Z="3f",Ot=3;break;case ko:Z="4f",Ot=4;break;case Yc:Z="Matrix2fv";break;case qu:Z="Matrix3fv";break;case Xc:Z="Matrix4fv";break}if(Z.charAt(0)==="M"){V(se,".uniform",Z,"(",Mt,",");var Vt=Math.pow(Oe-Yc+2,2),Pr=U.global.def("new Float32Array(",Vt,")");Array.isArray(gt)?V("false,(",Se(Vt,function(wi){return Pr+"["+wi+"]="+gt[wi]}),",",Pr,")"):V("false,(Array.isArray(",gt,")||",gt," instanceof Float32Array)?",gt,":(",Se(Vt,function(wi){return Pr+"["+wi+"]="+gt+"["+wi+"]"}),",",Pr,")"),V(");")}else if(Ot>1){for(var Qn=[],Wa=[],Io=0;Io<Ot;++Io)Array.isArray(gt)?Wa.push(gt[Io]):Wa.push(V.def(gt+"["+Io+"]")),de&&Qn.push(V.def());de&&V("if(!",U.batchId,"||",Qn.map(function(wi,Zc){return wi+"!=="+Wa[Zc]}).join("||"),"){",Qn.map(function(wi,Zc){return wi+"="+Wa[Zc]+";"}).join("")),V(se,".uniform",Z,"(",Mt,",",Wa.join(","),");"),de&&V("}")}else{if(de){var Po=V.def();V("if(!",U.batchId,"||",Po,"!==",gt,"){",Po,"=",gt,";")}V(se,".uniform",Z,"(",Mt,",",gt,");"),de&&V("}")}}}function Zt(U,V,ee,_e){var pe=U.shared,de=pe.gl,ce=pe.draw,se=_e.draw;function Z(){var Ot=se.elements,kt,Vt=V;return Ot?((Ot.contextDep&&_e.contextDynamic||Ot.propDep)&&(Vt=ee),kt=Ot.append(U,Vt),se.elementsActive&&Vt("if("+kt+")"+de+".bindBuffer("+jc+","+kt+".buffer.buffer);")):(kt=Vt.def(),Vt(kt,"=",ce,".",Ao,";","if(",kt,"){",de,".bindBuffer(",jc,",",kt,".buffer.buffer);}","else if(",pe.vao,".currentVAO){",kt,"=",U.shared.elements+".getElements("+pe.vao,".currentVAO.elements);",pt?"":"if("+kt+")"+de+".bindBuffer("+jc+","+kt+".buffer.buffer);","}")),kt}function ne(){var Ot=se.count,kt,Vt=V;return Ot?((Ot.contextDep&&_e.contextDynamic||Ot.propDep)&&(Vt=ee),kt=Ot.append(U,Vt)):kt=Vt.def(ce,".",nn),kt}var Q=Z();function ve(Ot){var kt=se[Ot];return kt?kt.contextDep&&_e.contextDynamic||kt.propDep?kt.append(U,ee):kt.append(U,V):V.def(ce,".",Ot)}var Oe=ve(To),Be=ve(gs),Lt=ne();if(typeof Lt=="number"){if(Lt===0)return}else ee("if(",Lt,"){"),ee.exit("}");var Mt,gt;Ke&&(Mt=ve(ys),gt=U.instancing);var Rt=Q+".type",Et=se.elements&&tt(se.elements)&&!se.vaoActive;function Dt(){function Ot(){ee(gt,".drawElementsInstancedANGLE(",[Oe,Lt,Rt,Be+"<<(("+Rt+"-"+Cc+")>>1)",Mt],");")}function kt(){ee(gt,".drawArraysInstancedANGLE(",[Oe,Be,Lt,Mt],");")}Q&&Q!=="null"?Et?Ot():(ee("if(",Q,"){"),Ot(),ee("}else{"),kt(),ee("}")):kt()}function wt(){function Ot(){ee(de+".drawElements("+[Oe,Lt,Rt,Be+"<<(("+Rt+"-"+Cc+")>>1)"]+");")}function kt(){ee(de+".drawArrays("+[Oe,Be,Lt]+");")}Q&&Q!=="null"?Et?Ot():(ee("if(",Q,"){"),Ot(),ee("}else{"),kt(),ee("}")):kt()}Ke&&(typeof Mt!="number"||Mt>=0)?typeof Mt=="string"?(ee("if(",Mt,">0){"),Dt(),ee("}else if(",Mt,"<0){"),wt(),ee("}")):Dt():wt()}function fr(U,V,ee,_e,pe){var de=lt(),ce=de.proc("body",pe);return Ke&&(de.instancing=ce.def(de.shared.extensions,".angle_instanced_arrays")),U(de,ce,ee,_e),de.compile().body}function Cr(U,V,ee,_e){br(U,V),ee.useVAO?ee.drawVAO?V(U.shared.vao,".setVAO(",ee.drawVAO.append(U,V),");"):V(U.shared.vao,".setVAO(",U.shared.vao,".targetVAO);"):(V(U.shared.vao,".setVAO(null);"),zn(U,V,ee,_e.attributes,function(){return!0})),Un(U,V,ee,_e.uniforms,function(){return!0},!1),Zt(U,V,V,ee)}function fn(U,V){var ee=U.proc("draw",1);br(U,ee),un(U,ee,V.context),ln(U,ee,V.framebuffer),Xt(U,ee,V),ci(U,ee,V.state),sn(U,ee,V,!1,!0);var _e=V.shader.progVar.append(U,ee);if(ee(U.shared.gl,".useProgram(",_e,".program);"),V.shader.program)Cr(U,ee,V,V.shader.program);else{ee(U.shared.vao,".setVAO(null);");var pe=U.global.def("{}"),de=ee.def(_e,".id"),ce=ee.def(pe,"[",de,"]");ee(U.cond(ce).then(ce,".call(this,a0);").else(ce,"=",pe,"[",de,"]=",U.link(function(se){return fr(Cr,U,V,se,1)}),"(",_e,");",ce,".call(this,a0);"))}Object.keys(V.state).length>0&&ee(U.shared.current,".dirty=true;"),U.shared.vao&&ee(U.shared.vao,".setVAO(null);")}function q(U,V,ee,_e){U.batchId="a1",br(U,V);function pe(){return!0}zn(U,V,ee,_e.attributes,pe),Un(U,V,ee,_e.uniforms,pe,!1),Zt(U,V,V,ee)}function xe(U,V,ee,_e){br(U,V);var pe=ee.contextDep,de=V.def(),ce="a0",se="a1",Z=V.def();U.shared.props=Z,U.batchId=de;var ne=U.scope(),Q=U.scope();V(ne.entry,"for(",de,"=0;",de,"<",se,";++",de,"){",Z,"=",ce,"[",de,"];",Q,"}",ne.exit);function ve(Rt){return Rt.contextDep&&pe||Rt.propDep}function Oe(Rt){return!ve(Rt)}if(ee.needsContext&&un(U,Q,ee.context),ee.needsFramebuffer&&ln(U,Q,ee.framebuffer),ci(U,Q,ee.state,ve),ee.profile&&ve(ee.profile)&&sn(U,Q,ee,!1,!0),_e)ee.useVAO?ee.drawVAO?ve(ee.drawVAO)?Q(U.shared.vao,".setVAO(",ee.drawVAO.append(U,Q),");"):ne(U.shared.vao,".setVAO(",ee.drawVAO.append(U,ne),");"):ne(U.shared.vao,".setVAO(",U.shared.vao,".targetVAO);"):(ne(U.shared.vao,".setVAO(null);"),zn(U,ne,ee,_e.attributes,Oe),zn(U,Q,ee,_e.attributes,ve)),Un(U,ne,ee,_e.uniforms,Oe,!1),Un(U,Q,ee,_e.uniforms,ve,!0),Zt(U,ne,Q,ee);else{var Be=U.global.def("{}"),Lt=ee.shader.progVar.append(U,Q),Mt=Q.def(Lt,".id"),gt=Q.def(Be,"[",Mt,"]");Q(U.shared.gl,".useProgram(",Lt,".program);","if(!",gt,"){",gt,"=",Be,"[",Mt,"]=",U.link(function(Rt){return fr(q,U,ee,Rt,2)}),"(",Lt,");}",gt,".call(this,a0[",de,"],",de,");")}}function ge(U,V){var ee=U.proc("batch",2);U.batchId="0",br(U,ee);var _e=!1,pe=!0;Object.keys(V.context).forEach(function(Be){_e=_e||V.context[Be].propDep}),_e||(un(U,ee,V.context),pe=!1);var de=V.framebuffer,ce=!1;de?(de.propDep?_e=ce=!0:de.contextDep&&_e&&(ce=!0),ce||ln(U,ee,de)):ln(U,ee,null),V.state.viewport&&V.state.viewport.propDep&&(_e=!0);function se(Be){return Be.contextDep&&_e||Be.propDep}Xt(U,ee,V),ci(U,ee,V.state,function(Be){return!se(Be)}),(!V.profile||!se(V.profile))&&sn(U,ee,V,!1,"a1"),V.contextDep=_e,V.needsContext=pe,V.needsFramebuffer=ce;var Z=V.shader.progVar;if(Z.contextDep&&_e||Z.propDep)xe(U,ee,V,null);else{var ne=Z.append(U,ee);if(ee(U.shared.gl,".useProgram(",ne,".program);"),V.shader.program)xe(U,ee,V,V.shader.program);else{ee(U.shared.vao,".setVAO(null);");var Q=U.global.def("{}"),ve=ee.def(ne,".id"),Oe=ee.def(Q,"[",ve,"]");ee(U.cond(Oe).then(Oe,".call(this,a0,a1);").else(Oe,"=",Q,"[",ve,"]=",U.link(function(Be){return fr(xe,U,V,Be,2)}),"(",ne,");",Oe,".call(this,a0,a1);"))}}Object.keys(V.state).length>0&&ee(U.shared.current,".dirty=true;"),U.shared.vao&&ee(U.shared.vao,".setVAO(null);")}function Tt(U,V){var ee=U.proc("scope",3);U.batchId="a2";var _e=U.shared,pe=_e.current;if(un(U,ee,V.context),V.framebuffer&&V.framebuffer.append(U,ee),Pe(Object.keys(V.state)).forEach(function(se){var Z=V.state[se],ne=Z.append(U,ee);ai(ne)?ne.forEach(function(Q,ve){Ft(Q)?ee.set(U.next[se],"["+ve+"]",Q):ee.set(U.next[se],"["+ve+"]",U.link(Q,{stable:!0}))}):tt(Z)?ee.set(_e.next,"."+se,U.link(ne,{stable:!0})):ee.set(_e.next,"."+se,ne)}),sn(U,ee,V,!0,!0),[Ao,gs,nn,ys,To].forEach(function(se){var Z=V.draw[se];if(!!Z){var ne=Z.append(U,ee);Ft(ne)?ee.set(_e.draw,"."+se,ne):ee.set(_e.draw,"."+se,U.link(ne),{stable:!0})}}),Object.keys(V.uniforms).forEach(function(se){var Z=V.uniforms[se].append(U,ee);Array.isArray(Z)&&(Z="["+Z.map(function(ne){return Ft(ne)?ne:U.link(ne,{stable:!0})})+"]"),ee.set(_e.uniforms,"["+U.link(H.id(se),{stable:!0})+"]",Z)}),Object.keys(V.attributes).forEach(function(se){var Z=V.attributes[se].append(U,ee),ne=U.scopeAttrib(se);Object.keys(new Te).forEach(function(Q){ee.set(ne,"."+Q,Z[Q])})}),V.scopeVAO){var de=V.scopeVAO.append(U,ee);Ft(de)?ee.set(_e.vao,".targetVAO",de):ee.set(_e.vao,".targetVAO",U.link(de,{stable:!0}))}function ce(se){var Z=V.shader[se];if(Z){var ne=Z.append(U,ee);Ft(ne)?ee.set(_e.shader,"."+se,ne):ee.set(_e.shader,"."+se,U.link(ne,{stable:!0}))}}ce(ju),ce(ms),Object.keys(V.state).length>0&&(ee(pe,".dirty=true;"),ee.exit(pe,".dirty=true;")),ee("a1(",U.shared.context,",a0,",U.batchId,");")}function rr(U){if(!(typeof U!="object"||ai(U))){for(var V=Object.keys(U),ee=0;ee<V.length;++ee)if(E.isDynamic(U[V[ee]]))return!0;return!1}}function Ir(U,V,ee){var _e=V.static[ee];if(!_e||!rr(_e))return;var pe=U.global,de=Object.keys(_e),ce=!1,se=!1,Z=!1,ne=U.global.def("{}");de.forEach(function(ve){var Oe=_e[ve];if(E.isDynamic(Oe)){typeof Oe=="function"&&(Oe=_e[ve]=E.unbox(Oe));var Be=at(Oe,null);ce=ce||Be.thisDep,Z=Z||Be.propDep,se=se||Be.contextDep}else{switch(pe(ne,".",ve,"="),typeof Oe){case"number":pe(Oe);break;case"string":pe('"',Oe,'"');break;case"object":Array.isArray(Oe)&&pe("[",Oe.join(),"]");break;default:pe(U.link(Oe));break}pe(";")}});function Q(ve,Oe){de.forEach(function(Be){var Lt=_e[Be];if(!!E.isDynamic(Lt)){var Mt=ve.invoke(Oe,Lt);Oe(ne,".",Be,"=",Mt,";")}})}V.dynamic[ee]=new E.DynamicVariable(za,{thisDep:ce,contextDep:se,propDep:Z,ref:ne,append:Q}),delete V.static[ee]}function Ct(U,V,ee,_e,pe){var de=lt();de.stats=de.link(pe),Object.keys(V.static).forEach(function(se){Ir(de,V,se)}),Iy.forEach(function(se){Ir(de,U,se)});var ce=Gi(U,V,ee,_e,de);return ce.shader.program&&(ce.shader.program.attributes.sort(function(se,Z){return se.name<Z.name?-1:1}),ce.shader.program.uniforms.sort(function(se,Z){return se.name<Z.name?-1:1})),fn(de,ce),Tt(de,ce),ge(de,ce),r(de.compile(),{destroy:function(){ce.shader.program.destroy()}})}return{next:Pt,current:ot,procs:function(){var U=lt(),V=U.proc("poll"),ee=U.proc("refresh"),_e=U.block();V(_e),ee(_e);var pe=U.shared,de=pe.gl,ce=pe.next,se=pe.current;_e(se,".dirty=false;"),ln(U,V),ln(U,ee,null,!0);var Z;Ke&&(Z=U.link(Ke)),K.oes_vertex_array_object&&ee(U.link(K.oes_vertex_array_object),".bindVertexArrayOES(null);");var ne=ee.def(pe.attributes),Q=ee.def(0),ve=U.cond(Q,".buffer");ve.then(de,".enableVertexAttribArray(i);",de,".bindBuffer(",Ga,",",Q,".buffer.buffer);",de,".vertexAttribPointer(i,",Q,".size,",Q,".type,",Q,".normalized,",Q,".stride,",Q,".offset);").else(de,".disableVertexAttribArray(i);",de,".vertexAttrib4f(i,",Q,".x,",Q,".y,",Q,".z,",Q,".w);",Q,".buffer=null;");var Oe=U.link(Ee.maxAttributes,{stable:!0});return ee("for(var i=0;i<",Oe,";++i){",Q,"=",ne,"[i];",ve,"}"),Ke&&ee("for(var i=0;i<",Oe,";++i){",Z,".vertexAttribDivisorANGLE(i,",ne,"[i].divisor);","}"),ee(U.shared.vao,".currentVAO=null;",U.shared.vao,".setVAO(",U.shared.vao,".targetVAO);"),Object.keys(Ie).forEach(function(Be){var Lt=Ie[Be],Mt=_e.def(ce,".",Be),gt=U.block();gt("if(",Mt,"){",de,".enable(",Lt,")}else{",de,".disable(",Lt,")}",se,".",Be,"=",Mt,";"),ee(gt),V("if(",Mt,"!==",se,".",Be,"){",gt,"}")}),Object.keys(mt).forEach(function(Be){var Lt=mt[Be],Mt=ot[Be],gt,Rt,Et=U.block();if(Et(de,".",Lt,"("),ai(Mt)){var Dt=Mt.length;gt=U.global.def(ce,".",Be),Rt=U.global.def(se,".",Be),Et(Se(Dt,function(wt){return gt+"["+wt+"]"}),");",Se(Dt,function(wt){return Rt+"["+wt+"]="+gt+"["+wt+"];"}).join("")),V("if(",Se(Dt,function(wt){return gt+"["+wt+"]!=="+Rt+"["+wt+"]"}).join("||"),"){",Et,"}")}else gt=_e.def(ce,".",Be),Rt=_e.def(se,".",Be),Et(gt,");",se,".",Be,"=",gt,";"),V("if(",gt,"!==",Rt,"){",Et,"}");ee(Et)}),U.compile()}(),compile:Ct}}function bt(){return{vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0}}var zt=34918,ar=34919,Mr=35007,dr=function(F,H){if(!H.ext_disjoint_timer_query)return null;var K=[];function Ee(){return K.pop()||H.ext_disjoint_timer_query.createQueryEXT()}function Me(qe){K.push(qe)}var ye=[];function we(qe){var Ke=Ee();H.ext_disjoint_timer_query.beginQueryEXT(Mr,Ke),ye.push(Ke),it(ye.length-1,ye.length,qe)}function Ye(){H.ext_disjoint_timer_query.endQueryEXT(Mr)}function Xe(){this.startQueryIndex=-1,this.endQueryIndex=-1,this.sum=0,this.stats=null}var et=[];function ft(){return et.pop()||new Xe}function It(qe){et.push(qe)}var St=[];function it(qe,Ke,Ne){var pt=ft();pt.startQueryIndex=qe,pt.endQueryIndex=Ke,pt.sum=0,pt.stats=Ne,St.push(pt)}var Ge=[],he=[];function Te(){var qe,Ke,Ne=ye.length;if(Ne!==0){he.length=Math.max(he.length,Ne+1),Ge.length=Math.max(Ge.length,Ne+1),Ge[0]=0,he[0]=0;var pt=0;for(qe=0,Ke=0;Ke<ye.length;++Ke){var ot=ye[Ke];H.ext_disjoint_timer_query.getQueryObjectEXT(ot,ar)?(pt+=H.ext_disjoint_timer_query.getQueryObjectEXT(ot,zt),Me(ot)):ye[qe++]=ot,Ge[Ke+1]=pt,he[Ke+1]=qe}for(ye.length=qe,qe=0,Ke=0;Ke<St.length;++Ke){var Pt=St[Ke],$e=Pt.startQueryIndex,Ie=Pt.endQueryIndex;Pt.sum+=Ge[Ie]-Ge[$e];var mt=he[$e],Ae=he[Ie];Ae===mt?(Pt.stats.gpuTime+=Pt.sum/1e6,It(Pt)):(Pt.startQueryIndex=mt,Pt.endQueryIndex=Ae,St[qe++]=Pt)}St.length=qe}}return{beginQuery:we,endQuery:Ye,pushScopeStats:it,update:Te,getNumPendingQueries:function(){return ye.length},clear:function(){K.push.apply(K,ye);for(var qe=0;qe<K.length;qe++)H.ext_disjoint_timer_query.deleteQueryEXT(K[qe]);ye.length=0,K.length=0},restore:function(){ye.length=0,K.length=0}}},rt=16384,Wt=256,Yt=1024,or=34962,Sr="webglcontextlost",Br="webglcontextrestored",Yr=1,pn=2,Sn=3;function an(F,H){for(var K=0;K<F.length;++K)if(F[K]===H)return K;return-1}function Pn(F){var H=j(F);if(!H)return null;var K=H.gl,Ee=K.getContextAttributes();K.isContextLost();var Me=re(K,H);if(!Me)return null;var ye=w(),we=bt(),Ye=H.cachedCode||{},Xe=Me.extensions,et=dr(K,Xe),ft=b(),It=K.drawingBufferWidth,St=K.drawingBufferHeight,it={tick:0,time:0,viewportWidth:It,viewportHeight:St,framebufferWidth:It,framebufferHeight:St,drawingBufferWidth:It,drawingBufferHeight:St,pixelRatio:H.pixelRatio},Ge={},he={elements:null,primitive:4,count:-1,offset:0,instances:-1},Te=Ul(K,Xe),qe=xp(K,we,H,pt),Ke=ql(K,Xe,qe,we),Ne=by(K,Xe,Te,we,qe,Ke,he);function pt(Zt){return Ne.destroyBuffer(Zt)}var ot=nv(K,ye,we,H),Pt=py(K,Xe,Te,function(){mt.procs.poll()},it,we,H),$e=Kp(K,Xe,Te,we,H),Ie=yc(K,Xe,Te,Pt,$e,we),mt=Gt(K,ye,Xe,Te,qe,Ke,Pt,Ie,Ge,Ne,ot,he,it,et,Ye,H),Ae=av(K,Ie,mt.procs.poll,it),ht=mt.next,Je=K.canvas,Ft=[],er=[],xt=[],Bt=[H.onDestroy],lt=null;function tr(){if(Ft.length===0){et&&et.update(),lt=null;return}lt=M.next(tr),ln();for(var Zt=Ft.length-1;Zt>=0;--Zt){var fr=Ft[Zt];fr&&fr(it,null,0)}K.flush(),et&&et.update()}function ur(){!lt&&Ft.length>0&&(lt=M.next(tr))}function hr(){lt&&(M.cancel(tr),lt=null)}function on(Zt){Zt.preventDefault(),hr(),er.forEach(function(fr){fr()})}function lr(Zt){K.getError(),Me.restore(),ot.restore(),qe.restore(),Pt.restore(),$e.restore(),Ie.restore(),Ne.restore(),et&&et.restore(),mt.procs.refresh(),ur(),xt.forEach(function(fr){fr()})}Je&&(Je.addEventListener(Sr,on,!1),Je.addEventListener(Br,lr,!1));function Yn(){Ft.length=0,hr(),Je&&(Je.removeEventListener(Sr,on),Je.removeEventListener(Br,lr)),ot.clear(),Ie.clear(),$e.clear(),Ne.clear(),Pt.clear(),Ke.clear(),qe.clear(),et&&et.clear(),Bt.forEach(function(Zt){Zt()})}function Er(Zt){function fr(pe){var de=r({},pe);delete de.uniforms,delete de.attributes,delete de.context,delete de.vao,"stencil"in de&&de.stencil.op&&(de.stencil.opBack=de.stencil.opFront=de.stencil.op,delete de.stencil.op);function ce(se){if(se in de){var Z=de[se];delete de[se],Object.keys(Z).forEach(function(ne){de[se+"."+ne]=Z[ne]})}}return ce("blend"),ce("depth"),ce("cull"),ce("stencil"),ce("polygonOffset"),ce("scissor"),ce("sample"),"vao"in pe&&(de.vao=pe.vao),de}function Cr(pe,de){var ce={},se={};return Object.keys(pe).forEach(function(Z){var ne=pe[Z];if(E.isDynamic(ne)){se[Z]=E.unbox(ne,Z);return}else if(de&&Array.isArray(ne)){for(var Q=0;Q<ne.length;++Q)if(E.isDynamic(ne[Q])){se[Z]=E.unbox(ne,Z);return}}ce[Z]=ne}),{dynamic:se,static:ce}}var fn=Cr(Zt.context||{},!0),q=Cr(Zt.uniforms||{},!0),xe=Cr(Zt.attributes||{},!1),ge=Cr(fr(Zt),!1),Tt={gpuTime:0,cpuTime:0,count:0},rr=mt.compile(ge,xe,q,fn,Tt),Ir=rr.draw,Ct=rr.batch,U=rr.scope,V=[];function ee(pe){for(;V.length<pe;)V.push(null);return V}function _e(pe,de){var ce;if(typeof pe=="function")return U.call(this,null,pe,0);if(typeof de=="function")if(typeof pe=="number")for(ce=0;ce<pe;++ce)U.call(this,null,de,ce);else if(Array.isArray(pe))for(ce=0;ce<pe.length;++ce)U.call(this,pe[ce],de,ce);else return U.call(this,pe,de,0);else if(typeof pe=="number"){if(pe>0)return Ct.call(this,ee(pe|0),pe|0)}else if(Array.isArray(pe)){if(pe.length)return Ct.call(this,pe,pe.length)}else return Ir.call(this,pe)}return r(_e,{stats:Tt,destroy:function(){rr.destroy()}})}var En=Ie.setFBO=Er({framebuffer:E.define.call(null,Yr,"framebuffer")});function Xn(Zt,fr){var Cr=0;mt.procs.poll();var fn=fr.color;fn&&(K.clearColor(+fn[0]||0,+fn[1]||0,+fn[2]||0,+fn[3]||0),Cr|=rt),"depth"in fr&&(K.clearDepth(+fr.depth),Cr|=Wt),"stencil"in fr&&(K.clearStencil(fr.stencil|0),Cr|=Yt),K.clear(Cr)}function Fn(Zt){if("framebuffer"in Zt)if(Zt.framebuffer&&Zt.framebuffer_reglType==="framebufferCube")for(var fr=0;fr<6;++fr)En(r({framebuffer:Zt.framebuffer.faces[fr]},Zt),Xn);else En(Zt,Xn);else Xn(null,Zt)}function Gi(Zt){Ft.push(Zt);function fr(){var Cr=an(Ft,Zt);function fn(){var q=an(Ft,fn);Ft[q]=Ft[Ft.length-1],Ft.length-=1,Ft.length<=0&&hr()}Ft[Cr]=fn}return ur(),{cancel:fr}}function un(){var Zt=ht.viewport,fr=ht.scissor_box;Zt[0]=Zt[1]=fr[0]=fr[1]=0,it.viewportWidth=it.framebufferWidth=it.drawingBufferWidth=Zt[2]=fr[2]=K.drawingBufferWidth,it.viewportHeight=it.framebufferHeight=it.drawingBufferHeight=Zt[3]=fr[3]=K.drawingBufferHeight}function ln(){it.tick+=1,it.time=ci(),un(),mt.procs.poll()}function Xt(){Pt.refresh(),un(),mt.procs.refresh(),et&&et.update()}function ci(){return(b()-ft)/1e3}Xt();function br(Zt,fr){var Cr;switch(Zt){case"frame":return Gi(fr);case"lost":Cr=er;break;case"restore":Cr=xt;break;case"destroy":Cr=Bt;break}return Cr.push(fr),{cancel:function(){for(var fn=0;fn<Cr.length;++fn)if(Cr[fn]===fr){Cr[fn]=Cr[Cr.length-1],Cr.pop();return}}}}function sn(){return Ye}function zn(Zt){Object.entries(Zt).forEach(function(fr){Ye[fr[0]]=fr[1]})}var Un=r(Er,{clear:Fn,prop:E.define.bind(null,Yr),context:E.define.bind(null,pn),this:E.define.bind(null,Sn),draw:Er({}),buffer:function(Zt){return qe.create(Zt,or,!1,!1)},elements:function(Zt){return Ke.create(Zt,!1)},texture:Pt.create2D,cube:Pt.createCube,renderbuffer:$e.create,framebuffer:Ie.create,framebufferCube:Ie.createCube,vao:Ne.createVAO,attributes:Ee,frame:Gi,on:br,limits:Te,hasExtension:function(Zt){return Te.extensions.indexOf(Zt.toLowerCase())>=0},read:Ae,destroy:Yn,_gl:K,_refresh:Xt,poll:function(){ln(),et&&et.update()},now:ci,stats:we,getCachedCode:sn,preloadCachedCode:zn});return H.onDone(null,Un),Un}return Pn})})(gF);var iH=yu,aH=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},_C(t)?t={container:t}:oH(t)?t={container:t}:uH(t)?t={gl:t}:t=iH(t,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),t.pixelRatio||(t.pixelRatio=Ar.pixelRatio||1),t.gl)return t.gl;if(t.canvas&&(t.container=t.canvas.parentNode),t.container){if(typeof t.container=="string"){var r=document.querySelector(t.container);if(!r)throw Error("Element "+t.container+" is not found");t.container=r}_C(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=SC(),t.container.appendChild(t.canvas),wC(t))}else if(!t.canvas)if(typeof document<"u")t.container=document.body||document.documentElement,t.canvas=SC(),t.container.appendChild(t.canvas),wC(t);else throw Error("Not DOM environment. Use headless-gl.");return t.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(n){try{t.gl=t.canvas.getContext(n,t.attrs)}catch{}return t.gl}),t.gl};function wC(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*Ar.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*Ar.innerHeight);else{var t=e.container.getBoundingClientRect();e.canvas.width=e.width||t.right-t.left,e.canvas.height=e.height||t.bottom-t.top}}function _C(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function oH(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function uH(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function SC(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}var lH=mF,sH=[32,126],fH=cH;function cH(e){e=e||{};var t=e.shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],r=e.canvas||document.createElement("canvas"),n=e.font,i=typeof e.step=="number"?[e.step,e.step]:e.step||[32,32],a=e.chars||sH;if(n&&typeof n!="string"&&(n=lH(n)),!Array.isArray(a))a=String(a).split("");else if(a.length===2&&typeof a[0]=="number"&&typeof a[1]=="number"){for(var o=[],l=a[0],s=0;l<=a[1];l++)o[s++]=String.fromCharCode(l);a=o}t=t.slice(),r.width=t[0],r.height=t[1];var c=r.getContext("2d");c.fillStyle="#000",c.fillRect(0,0,r.width,r.height),c.font=n,c.textAlign="center",c.textBaseline="middle",c.fillStyle="#fff";for(var d=i[0]/2,y=i[1]/2,l=0;l<a.length;l++)c.fillText(a[l],d,y),(d+=i[0])>t[0]-i[0]/2&&(d=i[0]/2,y+=i[1]);return r}var pr={},jr={},lS=32;jr.INT_BITS=lS;jr.INT_MAX=2147483647;jr.INT_MIN=-1<<lS-1;jr.sign=function(e){return(e>0)-(e<0)};jr.abs=function(e){var t=e>>lS-1;return(e^t)-t};jr.min=function(e,t){return t^(e^t)&-(e<t)};jr.max=function(e,t){return e^(e^t)&-(e<t)};jr.isPow2=function(e){return!(e&e-1)&&!!e};jr.log2=function(e){var t,r;return t=(e>65535)<<4,e>>>=t,r=(e>255)<<3,e>>>=r,t|=r,r=(e>15)<<2,e>>>=r,t|=r,r=(e>3)<<1,e>>>=r,t|=r,t|e>>1};jr.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0};jr.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function yF(e){var t=32;return e&=-e,e&&t--,e&65535&&(t-=16),e&16711935&&(t-=8),e&252645135&&(t-=4),e&858993459&&(t-=2),e&1431655765&&(t-=1),t}jr.countTrailingZeros=yF;jr.nextPow2=function(e){return e+=e===0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1};jr.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};jr.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var Ph=new Array(256);(function(e){for(var t=0;t<256;++t){var r=t,n=t,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=r&1,--i;e[t]=n<<i&255}})(Ph);jr.reverse=function(e){return Ph[e&255]<<24|Ph[e>>>8&255]<<16|Ph[e>>>16&255]<<8|Ph[e>>>24&255]};jr.interleave2=function(e,t){return e&=65535,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t&=65535,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1};jr.deinterleave2=function(e,t){return e=e>>>t&1431655765,e=(e|e>>>1)&858993459,e=(e|e>>>2)&252645135,e=(e|e>>>4)&16711935,e=(e|e>>>16)&65535,e<<16>>16};jr.interleave3=function(e,t,r){return e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,e|=t<<1,r&=1023,r=(r|r<<16)&4278190335,r=(r|r<<8)&251719695,r=(r|r<<4)&3272356035,r=(r|r<<2)&1227133513,e|r<<2};jr.deinterleave3=function(e,t){return e=e>>>t&1227133513,e=(e|e>>>2)&3272356035,e=(e|e>>>4)&251719695,e=(e|e>>>8)&4278190335,e=(e|e>>>16)&1023,e<<22>>22};jr.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>yF(e)+1};function xF(e,t,r){var n=e[r]|0;if(n<=0)return[];var i=new Array(n),a;if(r===e.length-1)for(a=0;a<n;++a)i[a]=t;else for(a=0;a<n;++a)i[a]=xF(e,t,r+1);return i}function hH(e,t){var r,n;for(r=new Array(e),n=0;n<e;++n)r[n]=t;return r}function dH(e,t){switch(typeof t>"u"&&(t=0),typeof e){case"number":if(e>0)return hH(e|0,t);break;case"object":if(typeof e.length=="number")return xF(e,t,0);break}return[]}var pH=dH,bF={},_g={};_g.byteLength=gH;_g.toByteArray=xH;_g.fromByteArray=_H;var sa=[],Ei=[],vH=typeof Uint8Array<"u"?Uint8Array:Array,$x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Os=0,mH=$x.length;Os<mH;++Os)sa[Os]=$x[Os],Ei[$x.charCodeAt(Os)]=Os;Ei["-".charCodeAt(0)]=62;Ei["_".charCodeAt(0)]=63;function wF(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function gH(e){var t=wF(e),r=t[0],n=t[1];return(r+n)*3/4-n}function yH(e,t,r){return(t+r)*3/4-r}function xH(e){var t,r=wF(e),n=r[0],i=r[1],a=new vH(yH(e,n,i)),o=0,l=i>0?n-4:n,s;for(s=0;s<l;s+=4)t=Ei[e.charCodeAt(s)]<<18|Ei[e.charCodeAt(s+1)]<<12|Ei[e.charCodeAt(s+2)]<<6|Ei[e.charCodeAt(s+3)],a[o++]=t>>16&255,a[o++]=t>>8&255,a[o++]=t&255;return i===2&&(t=Ei[e.charCodeAt(s)]<<2|Ei[e.charCodeAt(s+1)]>>4,a[o++]=t&255),i===1&&(t=Ei[e.charCodeAt(s)]<<10|Ei[e.charCodeAt(s+1)]<<4|Ei[e.charCodeAt(s+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function bH(e){return sa[e>>18&63]+sa[e>>12&63]+sa[e>>6&63]+sa[e&63]}function wH(e,t,r){for(var n,i=[],a=t;a<r;a+=3)n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(bH(n));return i.join("")}function _H(e){for(var t,r=e.length,n=r%3,i=[],a=16383,o=0,l=r-n;o<l;o+=a)i.push(wH(e,o,o+a>l?l:o+a));return n===1?(t=e[r-1],i.push(sa[t>>2]+sa[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(sa[t>>10]+sa[t>>4&63]+sa[t<<2&63]+"=")),i.join("")}var sS={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */sS.read=function(e,t,r,n,i){var a,o,l=i*8-n-1,s=(1<<l)-1,c=s>>1,d=-7,y=r?i-1:0,g=r?-1:1,m=e[t+y];for(y+=g,a=m&(1<<-d)-1,m>>=-d,d+=l;d>0;a=a*256+e[t+y],y+=g,d-=8);for(o=a&(1<<-d)-1,a>>=-d,d+=n;d>0;o=o*256+e[t+y],y+=g,d-=8);if(a===0)a=1-c;else{if(a===s)return o?NaN:(m?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-c}return(m?-1:1)*o*Math.pow(2,a-n)};sS.write=function(e,t,r,n,i,a){var o,l,s,c=a*8-i-1,d=(1<<c)-1,y=d>>1,g=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=n?0:a-1,E=n?1:-1,M=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,o=d):(o=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-o))<1&&(o--,s*=2),o+y>=1?t+=g/s:t+=g*Math.pow(2,1-y),t*s>=2&&(o++,s/=2),o+y>=d?(l=0,o=d):o+y>=1?(l=(t*s-1)*Math.pow(2,i),o=o+y):(l=t*Math.pow(2,y-1)*Math.pow(2,i),o=0));i>=8;e[r+m]=l&255,m+=E,l/=256,i-=8);for(o=o<<i|l,c+=i;c>0;e[r+m]=o&255,m+=E,o/=256,c-=8);e[r+m-E]|=M*128};/*!
|
|
286
|
-
* The buffer module from node.js, for the browser.
|
|
287
|
-
*
|
|
288
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
289
|
-
* @license MIT
|
|
290
|
-
*/(function(e){var t=_g,r=sS;e.Buffer=o,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50;var n=2147483647;e.kMaxLength=n,o.TYPED_ARRAY_SUPPORT=i(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{var I=new Uint8Array(1);return I.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},I.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(!!o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(!!o.isBuffer(this))return this.byteOffset}});function a(I){if(I>n)throw new RangeError('The value "'+I+'" is invalid for option "size"');var A=new Uint8Array(I);return A.__proto__=o.prototype,A}function o(I,A,k){if(typeof I=="number"){if(typeof A=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(I)}return l(I,A,k)}typeof Symbol<"u"&&Symbol.species!=null&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),o.poolSize=8192;function l(I,A,k){if(typeof I=="string")return y(I,A);if(ArrayBuffer.isView(I))return g(I);if(I==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I);if(W(I,ArrayBuffer)||I&&W(I.buffer,ArrayBuffer))return m(I,A,k);if(typeof I=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var $=I.valueOf&&I.valueOf();if($!=null&&$!==I)return o.from($,A,k);var fe=E(I);if(fe)return fe;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof I[Symbol.toPrimitive]=="function")return o.from(I[Symbol.toPrimitive]("string"),A,k);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I)}o.from=function(I,A,k){return l(I,A,k)},o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array;function s(I){if(typeof I!="number")throw new TypeError('"size" argument must be of type number');if(I<0)throw new RangeError('The value "'+I+'" is invalid for option "size"')}function c(I,A,k){return s(I),I<=0?a(I):A!==void 0?typeof k=="string"?a(I).fill(A,k):a(I).fill(A):a(I)}o.alloc=function(I,A,k){return c(I,A,k)};function d(I){return s(I),a(I<0?0:M(I)|0)}o.allocUnsafe=function(I){return d(I)},o.allocUnsafeSlow=function(I){return d(I)};function y(I,A){if((typeof A!="string"||A==="")&&(A="utf8"),!o.isEncoding(A))throw new TypeError("Unknown encoding: "+A);var k=w(I,A)|0,$=a(k),fe=$.write(I,A);return fe!==k&&($=$.slice(0,fe)),$}function g(I){for(var A=I.length<0?0:M(I.length)|0,k=a(A),$=0;$<A;$+=1)k[$]=I[$]&255;return k}function m(I,A,k){if(A<0||I.byteLength<A)throw new RangeError('"offset" is outside of buffer bounds');if(I.byteLength<A+(k||0))throw new RangeError('"length" is outside of buffer bounds');var $;return A===void 0&&k===void 0?$=new Uint8Array(I):k===void 0?$=new Uint8Array(I,A):$=new Uint8Array(I,A,k),$.__proto__=o.prototype,$}function E(I){if(o.isBuffer(I)){var A=M(I.length)|0,k=a(A);return k.length===0||I.copy(k,0,0,A),k}if(I.length!==void 0)return typeof I.length!="number"||ae(I.length)?a(0):g(I);if(I.type==="Buffer"&&Array.isArray(I.data))return g(I.data)}function M(I){if(I>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return I|0}function b(I){return+I!=I&&(I=0),o.alloc(+I)}o.isBuffer=function(A){return A!=null&&A._isBuffer===!0&&A!==o.prototype},o.compare=function(A,k){if(W(A,Uint8Array)&&(A=o.from(A,A.offset,A.byteLength)),W(k,Uint8Array)&&(k=o.from(k,k.offset,k.byteLength)),!o.isBuffer(A)||!o.isBuffer(k))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(A===k)return 0;for(var $=A.length,fe=k.length,Fe=0,ze=Math.min($,fe);Fe<ze;++Fe)if(A[Fe]!==k[Fe]){$=A[Fe],fe=k[Fe];break}return $<fe?-1:fe<$?1:0},o.isEncoding=function(A){switch(String(A).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(A,k){if(!Array.isArray(A))throw new TypeError('"list" argument must be an Array of Buffers');if(A.length===0)return o.alloc(0);var $;if(k===void 0)for(k=0,$=0;$<A.length;++$)k+=A[$].length;var fe=o.allocUnsafe(k),Fe=0;for($=0;$<A.length;++$){var ze=A[$];if(W(ze,Uint8Array)&&(ze=o.from(ze)),!o.isBuffer(ze))throw new TypeError('"list" argument must be an Array of Buffers');ze.copy(fe,Fe),Fe+=ze.length}return fe};function w(I,A){if(o.isBuffer(I))return I.length;if(ArrayBuffer.isView(I)||W(I,ArrayBuffer))return I.byteLength;if(typeof I!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof I);var k=I.length,$=arguments.length>2&&arguments[2]===!0;if(!$&&k===0)return 0;for(var fe=!1;;)switch(A){case"ascii":case"latin1":case"binary":return k;case"utf8":case"utf-8":return qt(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k*2;case"hex":return k>>>1;case"base64":return jt(I).length;default:if(fe)return $?-1:qt(I).length;A=(""+A).toLowerCase(),fe=!0}}o.byteLength=w;function _(I,A,k){var $=!1;if((A===void 0||A<0)&&(A=0),A>this.length||((k===void 0||k>this.length)&&(k=this.length),k<=0)||(k>>>=0,A>>>=0,k<=A))return"";for(I||(I="utf8");;)switch(I){case"hex":return We(this,A,k);case"utf8":case"utf-8":return Re(this,A,k);case"ascii":return nt(this,A,k);case"latin1":case"binary":return De(this,A,k);case"base64":return ke(this,A,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _t(this,A,k);default:if($)throw new TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),$=!0}}o.prototype._isBuffer=!0;function C(I,A,k){var $=I[A];I[A]=I[k],I[k]=$}o.prototype.swap16=function(){var A=this.length;if(A%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var k=0;k<A;k+=2)C(this,k,k+1);return this},o.prototype.swap32=function(){var A=this.length;if(A%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var k=0;k<A;k+=4)C(this,k,k+3),C(this,k+1,k+2);return this},o.prototype.swap64=function(){var A=this.length;if(A%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var k=0;k<A;k+=8)C(this,k,k+7),C(this,k+1,k+6),C(this,k+2,k+5),C(this,k+3,k+4);return this},o.prototype.toString=function(){var A=this.length;return A===0?"":arguments.length===0?Re(this,0,A):_.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(A){if(!o.isBuffer(A))throw new TypeError("Argument must be a Buffer");return this===A?!0:o.compare(this,A)===0},o.prototype.inspect=function(){var A="",k=e.INSPECT_MAX_BYTES;return A=this.toString("hex",0,k).replace(/(.{2})/g,"$1 ").trim(),this.length>k&&(A+=" ... "),"<Buffer "+A+">"},o.prototype.compare=function(A,k,$,fe,Fe){if(W(A,Uint8Array)&&(A=o.from(A,A.offset,A.byteLength)),!o.isBuffer(A))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof A);if(k===void 0&&(k=0),$===void 0&&($=A?A.length:0),fe===void 0&&(fe=0),Fe===void 0&&(Fe=this.length),k<0||$>A.length||fe<0||Fe>this.length)throw new RangeError("out of range index");if(fe>=Fe&&k>=$)return 0;if(fe>=Fe)return-1;if(k>=$)return 1;if(k>>>=0,$>>>=0,fe>>>=0,Fe>>>=0,this===A)return 0;for(var ze=Fe-fe,Qt=$-k,sr=Math.min(ze,Qt),nr=this.slice(fe,Fe),qr=A.slice(k,$),kr=0;kr<sr;++kr)if(nr[kr]!==qr[kr]){ze=nr[kr],Qt=qr[kr];break}return ze<Qt?-1:Qt<ze?1:0};function T(I,A,k,$,fe){if(I.length===0)return-1;if(typeof k=="string"?($=k,k=0):k>2147483647?k=2147483647:k<-2147483648&&(k=-2147483648),k=+k,ae(k)&&(k=fe?0:I.length-1),k<0&&(k=I.length+k),k>=I.length){if(fe)return-1;k=I.length-1}else if(k<0)if(fe)k=0;else return-1;if(typeof A=="string"&&(A=o.from(A,$)),o.isBuffer(A))return A.length===0?-1:R(I,A,k,$,fe);if(typeof A=="number")return A=A&255,typeof Uint8Array.prototype.indexOf=="function"?fe?Uint8Array.prototype.indexOf.call(I,A,k):Uint8Array.prototype.lastIndexOf.call(I,A,k):R(I,[A],k,$,fe);throw new TypeError("val must be string, number or Buffer")}function R(I,A,k,$,fe){var Fe=1,ze=I.length,Qt=A.length;if($!==void 0&&($=String($).toLowerCase(),$==="ucs2"||$==="ucs-2"||$==="utf16le"||$==="utf-16le")){if(I.length<2||A.length<2)return-1;Fe=2,ze/=2,Qt/=2,k/=2}function sr(bu,Ea){return Fe===1?bu[Ea]:bu.readUInt16BE(Ea*Fe)}var nr;if(fe){var qr=-1;for(nr=k;nr<ze;nr++)if(sr(I,nr)===sr(A,qr===-1?0:nr-qr)){if(qr===-1&&(qr=nr),nr-qr+1===Qt)return qr*Fe}else qr!==-1&&(nr-=nr-qr),qr=-1}else for(k+Qt>ze&&(k=ze-Qt),nr=k;nr>=0;nr--){for(var kr=!0,Ki=0;Ki<Qt;Ki++)if(sr(I,nr+Ki)!==sr(A,Ki)){kr=!1;break}if(kr)return nr}return-1}o.prototype.includes=function(A,k,$){return this.indexOf(A,k,$)!==-1},o.prototype.indexOf=function(A,k,$){return T(this,A,k,$,!0)},o.prototype.lastIndexOf=function(A,k,$){return T(this,A,k,$,!1)};function D(I,A,k,$){k=Number(k)||0;var fe=I.length-k;$?($=Number($),$>fe&&($=fe)):$=fe;var Fe=A.length;$>Fe/2&&($=Fe/2);for(var ze=0;ze<$;++ze){var Qt=parseInt(A.substr(ze*2,2),16);if(ae(Qt))return ze;I[k+ze]=Qt}return ze}function Y(I,A,k,$){return Ce(qt(A,I.length-k),I,k,$)}function j(I,A,k,$){return Ce(Ze(A),I,k,$)}function re(I,A,k,$){return j(I,A,k,$)}function Se(I,A,k,$){return Ce(jt(A),I,k,$)}function me(I,A,k,$){return Ce(At(A,I.length-k),I,k,$)}o.prototype.write=function(A,k,$,fe){if(k===void 0)fe="utf8",$=this.length,k=0;else if($===void 0&&typeof k=="string")fe=k,$=this.length,k=0;else if(isFinite(k))k=k>>>0,isFinite($)?($=$>>>0,fe===void 0&&(fe="utf8")):(fe=$,$=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Fe=this.length-k;if(($===void 0||$>Fe)&&($=Fe),A.length>0&&($<0||k<0)||k>this.length)throw new RangeError("Attempt to write outside buffer bounds");fe||(fe="utf8");for(var ze=!1;;)switch(fe){case"hex":return D(this,A,k,$);case"utf8":case"utf-8":return Y(this,A,k,$);case"ascii":return j(this,A,k,$);case"latin1":case"binary":return re(this,A,k,$);case"base64":return Se(this,A,k,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return me(this,A,k,$);default:if(ze)throw new TypeError("Unknown encoding: "+fe);fe=(""+fe).toLowerCase(),ze=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ke(I,A,k){return A===0&&k===I.length?t.fromByteArray(I):t.fromByteArray(I.slice(A,k))}function Re(I,A,k){k=Math.min(I.length,k);for(var $=[],fe=A;fe<k;){var Fe=I[fe],ze=null,Qt=Fe>239?4:Fe>223?3:Fe>191?2:1;if(fe+Qt<=k){var sr,nr,qr,kr;switch(Qt){case 1:Fe<128&&(ze=Fe);break;case 2:sr=I[fe+1],(sr&192)===128&&(kr=(Fe&31)<<6|sr&63,kr>127&&(ze=kr));break;case 3:sr=I[fe+1],nr=I[fe+2],(sr&192)===128&&(nr&192)===128&&(kr=(Fe&15)<<12|(sr&63)<<6|nr&63,kr>2047&&(kr<55296||kr>57343)&&(ze=kr));break;case 4:sr=I[fe+1],nr=I[fe+2],qr=I[fe+3],(sr&192)===128&&(nr&192)===128&&(qr&192)===128&&(kr=(Fe&15)<<18|(sr&63)<<12|(nr&63)<<6|qr&63,kr>65535&&kr<1114112&&(ze=kr))}}ze===null?(ze=65533,Qt=1):ze>65535&&(ze-=65536,$.push(ze>>>10&1023|55296),ze=56320|ze&1023),$.push(ze),fe+=Qt}return ut($)}var Le=4096;function ut(I){var A=I.length;if(A<=Le)return String.fromCharCode.apply(String,I);for(var k="",$=0;$<A;)k+=String.fromCharCode.apply(String,I.slice($,$+=Le));return k}function nt(I,A,k){var $="";k=Math.min(I.length,k);for(var fe=A;fe<k;++fe)$+=String.fromCharCode(I[fe]&127);return $}function De(I,A,k){var $="";k=Math.min(I.length,k);for(var fe=A;fe<k;++fe)$+=String.fromCharCode(I[fe]);return $}function We(I,A,k){var $=I.length;(!A||A<0)&&(A=0),(!k||k<0||k>$)&&(k=$);for(var fe="",Fe=A;Fe<k;++Fe)fe+=Ht(I[Fe]);return fe}function _t(I,A,k){for(var $=I.slice(A,k),fe="",Fe=0;Fe<$.length;Fe+=2)fe+=String.fromCharCode($[Fe]+$[Fe+1]*256);return fe}o.prototype.slice=function(A,k){var $=this.length;A=~~A,k=k===void 0?$:~~k,A<0?(A+=$,A<0&&(A=0)):A>$&&(A=$),k<0?(k+=$,k<0&&(k=0)):k>$&&(k=$),k<A&&(k=A);var fe=this.subarray(A,k);return fe.__proto__=o.prototype,fe};function He(I,A,k){if(I%1!==0||I<0)throw new RangeError("offset is not uint");if(I+A>k)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUIntLE=function(A,k,$){A=A>>>0,k=k>>>0,$||He(A,k,this.length);for(var fe=this[A],Fe=1,ze=0;++ze<k&&(Fe*=256);)fe+=this[A+ze]*Fe;return fe},o.prototype.readUIntBE=function(A,k,$){A=A>>>0,k=k>>>0,$||He(A,k,this.length);for(var fe=this[A+--k],Fe=1;k>0&&(Fe*=256);)fe+=this[A+--k]*Fe;return fe},o.prototype.readUInt8=function(A,k){return A=A>>>0,k||He(A,1,this.length),this[A]},o.prototype.readUInt16LE=function(A,k){return A=A>>>0,k||He(A,2,this.length),this[A]|this[A+1]<<8},o.prototype.readUInt16BE=function(A,k){return A=A>>>0,k||He(A,2,this.length),this[A]<<8|this[A+1]},o.prototype.readUInt32LE=function(A,k){return A=A>>>0,k||He(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+this[A+3]*16777216},o.prototype.readUInt32BE=function(A,k){return A=A>>>0,k||He(A,4,this.length),this[A]*16777216+(this[A+1]<<16|this[A+2]<<8|this[A+3])},o.prototype.readIntLE=function(A,k,$){A=A>>>0,k=k>>>0,$||He(A,k,this.length);for(var fe=this[A],Fe=1,ze=0;++ze<k&&(Fe*=256);)fe+=this[A+ze]*Fe;return Fe*=128,fe>=Fe&&(fe-=Math.pow(2,8*k)),fe},o.prototype.readIntBE=function(A,k,$){A=A>>>0,k=k>>>0,$||He(A,k,this.length);for(var fe=k,Fe=1,ze=this[A+--fe];fe>0&&(Fe*=256);)ze+=this[A+--fe]*Fe;return Fe*=128,ze>=Fe&&(ze-=Math.pow(2,8*k)),ze},o.prototype.readInt8=function(A,k){return A=A>>>0,k||He(A,1,this.length),this[A]&128?(255-this[A]+1)*-1:this[A]},o.prototype.readInt16LE=function(A,k){A=A>>>0,k||He(A,2,this.length);var $=this[A]|this[A+1]<<8;return $&32768?$|4294901760:$},o.prototype.readInt16BE=function(A,k){A=A>>>0,k||He(A,2,this.length);var $=this[A+1]|this[A]<<8;return $&32768?$|4294901760:$},o.prototype.readInt32LE=function(A,k){return A=A>>>0,k||He(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},o.prototype.readInt32BE=function(A,k){return A=A>>>0,k||He(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},o.prototype.readFloatLE=function(A,k){return A=A>>>0,k||He(A,4,this.length),r.read(this,A,!0,23,4)},o.prototype.readFloatBE=function(A,k){return A=A>>>0,k||He(A,4,this.length),r.read(this,A,!1,23,4)},o.prototype.readDoubleLE=function(A,k){return A=A>>>0,k||He(A,8,this.length),r.read(this,A,!0,52,8)},o.prototype.readDoubleBE=function(A,k){return A=A>>>0,k||He(A,8,this.length),r.read(this,A,!1,52,8)};function be(I,A,k,$,fe,Fe){if(!o.isBuffer(I))throw new TypeError('"buffer" argument must be a Buffer instance');if(A>fe||A<Fe)throw new RangeError('"value" argument is out of bounds');if(k+$>I.length)throw new RangeError("Index out of range")}o.prototype.writeUIntLE=function(A,k,$,fe){if(A=+A,k=k>>>0,$=$>>>0,!fe){var Fe=Math.pow(2,8*$)-1;be(this,A,k,$,Fe,0)}var ze=1,Qt=0;for(this[k]=A&255;++Qt<$&&(ze*=256);)this[k+Qt]=A/ze&255;return k+$},o.prototype.writeUIntBE=function(A,k,$,fe){if(A=+A,k=k>>>0,$=$>>>0,!fe){var Fe=Math.pow(2,8*$)-1;be(this,A,k,$,Fe,0)}var ze=$-1,Qt=1;for(this[k+ze]=A&255;--ze>=0&&(Qt*=256);)this[k+ze]=A/Qt&255;return k+$},o.prototype.writeUInt8=function(A,k,$){return A=+A,k=k>>>0,$||be(this,A,k,1,255,0),this[k]=A&255,k+1},o.prototype.writeUInt16LE=function(A,k,$){return A=+A,k=k>>>0,$||be(this,A,k,2,65535,0),this[k]=A&255,this[k+1]=A>>>8,k+2},o.prototype.writeUInt16BE=function(A,k,$){return A=+A,k=k>>>0,$||be(this,A,k,2,65535,0),this[k]=A>>>8,this[k+1]=A&255,k+2},o.prototype.writeUInt32LE=function(A,k,$){return A=+A,k=k>>>0,$||be(this,A,k,4,4294967295,0),this[k+3]=A>>>24,this[k+2]=A>>>16,this[k+1]=A>>>8,this[k]=A&255,k+4},o.prototype.writeUInt32BE=function(A,k,$){return A=+A,k=k>>>0,$||be(this,A,k,4,4294967295,0),this[k]=A>>>24,this[k+1]=A>>>16,this[k+2]=A>>>8,this[k+3]=A&255,k+4},o.prototype.writeIntLE=function(A,k,$,fe){if(A=+A,k=k>>>0,!fe){var Fe=Math.pow(2,8*$-1);be(this,A,k,$,Fe-1,-Fe)}var ze=0,Qt=1,sr=0;for(this[k]=A&255;++ze<$&&(Qt*=256);)A<0&&sr===0&&this[k+ze-1]!==0&&(sr=1),this[k+ze]=(A/Qt>>0)-sr&255;return k+$},o.prototype.writeIntBE=function(A,k,$,fe){if(A=+A,k=k>>>0,!fe){var Fe=Math.pow(2,8*$-1);be(this,A,k,$,Fe-1,-Fe)}var ze=$-1,Qt=1,sr=0;for(this[k+ze]=A&255;--ze>=0&&(Qt*=256);)A<0&&sr===0&&this[k+ze+1]!==0&&(sr=1),this[k+ze]=(A/Qt>>0)-sr&255;return k+$},o.prototype.writeInt8=function(A,k,$){return A=+A,k=k>>>0,$||be(this,A,k,1,127,-128),A<0&&(A=255+A+1),this[k]=A&255,k+1},o.prototype.writeInt16LE=function(A,k,$){return A=+A,k=k>>>0,$||be(this,A,k,2,32767,-32768),this[k]=A&255,this[k+1]=A>>>8,k+2},o.prototype.writeInt16BE=function(A,k,$){return A=+A,k=k>>>0,$||be(this,A,k,2,32767,-32768),this[k]=A>>>8,this[k+1]=A&255,k+2},o.prototype.writeInt32LE=function(A,k,$){return A=+A,k=k>>>0,$||be(this,A,k,4,2147483647,-2147483648),this[k]=A&255,this[k+1]=A>>>8,this[k+2]=A>>>16,this[k+3]=A>>>24,k+4},o.prototype.writeInt32BE=function(A,k,$){return A=+A,k=k>>>0,$||be(this,A,k,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),this[k]=A>>>24,this[k+1]=A>>>16,this[k+2]=A>>>8,this[k+3]=A&255,k+4};function Ve(I,A,k,$,fe,Fe){if(k+$>I.length)throw new RangeError("Index out of range");if(k<0)throw new RangeError("Index out of range")}function st(I,A,k,$,fe){return A=+A,k=k>>>0,fe||Ve(I,A,k,4),r.write(I,A,k,$,23,4),k+4}o.prototype.writeFloatLE=function(A,k,$){return st(this,A,k,!0,$)},o.prototype.writeFloatBE=function(A,k,$){return st(this,A,k,!1,$)};function Qe(I,A,k,$,fe){return A=+A,k=k>>>0,fe||Ve(I,A,k,8),r.write(I,A,k,$,52,8),k+8}o.prototype.writeDoubleLE=function(A,k,$){return Qe(this,A,k,!0,$)},o.prototype.writeDoubleBE=function(A,k,$){return Qe(this,A,k,!1,$)},o.prototype.copy=function(A,k,$,fe){if(!o.isBuffer(A))throw new TypeError("argument should be a Buffer");if($||($=0),!fe&&fe!==0&&(fe=this.length),k>=A.length&&(k=A.length),k||(k=0),fe>0&&fe<$&&(fe=$),fe===$||A.length===0||this.length===0)return 0;if(k<0)throw new RangeError("targetStart out of bounds");if($<0||$>=this.length)throw new RangeError("Index out of range");if(fe<0)throw new RangeError("sourceEnd out of bounds");fe>this.length&&(fe=this.length),A.length-k<fe-$&&(fe=A.length-k+$);var Fe=fe-$;if(this===A&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(k,$,fe);else if(this===A&&$<k&&k<fe)for(var ze=Fe-1;ze>=0;--ze)A[ze+k]=this[ze+$];else Uint8Array.prototype.set.call(A,this.subarray($,fe),k);return Fe},o.prototype.fill=function(A,k,$,fe){if(typeof A=="string"){if(typeof k=="string"?(fe=k,k=0,$=this.length):typeof $=="string"&&(fe=$,$=this.length),fe!==void 0&&typeof fe!="string")throw new TypeError("encoding must be a string");if(typeof fe=="string"&&!o.isEncoding(fe))throw new TypeError("Unknown encoding: "+fe);if(A.length===1){var Fe=A.charCodeAt(0);(fe==="utf8"&&Fe<128||fe==="latin1")&&(A=Fe)}}else typeof A=="number"&&(A=A&255);if(k<0||this.length<k||this.length<$)throw new RangeError("Out of range index");if($<=k)return this;k=k>>>0,$=$===void 0?this.length:$>>>0,A||(A=0);var ze;if(typeof A=="number")for(ze=k;ze<$;++ze)this[ze]=A;else{var Qt=o.isBuffer(A)?A:o.from(A,fe),sr=Qt.length;if(sr===0)throw new TypeError('The value "'+A+'" is invalid for argument "value"');for(ze=0;ze<$-k;++ze)this[ze+k]=Qt[ze%sr]}return this};var ct=/[^+/0-9A-Za-z-_]/g;function yt(I){if(I=I.split("=")[0],I=I.trim().replace(ct,""),I.length<2)return"";for(;I.length%4!==0;)I=I+"=";return I}function Ht(I){return I<16?"0"+I.toString(16):I.toString(16)}function qt(I,A){A=A||1/0;for(var k,$=I.length,fe=null,Fe=[],ze=0;ze<$;++ze){if(k=I.charCodeAt(ze),k>55295&&k<57344){if(!fe){if(k>56319){(A-=3)>-1&&Fe.push(239,191,189);continue}else if(ze+1===$){(A-=3)>-1&&Fe.push(239,191,189);continue}fe=k;continue}if(k<56320){(A-=3)>-1&&Fe.push(239,191,189),fe=k;continue}k=(fe-55296<<10|k-56320)+65536}else fe&&(A-=3)>-1&&Fe.push(239,191,189);if(fe=null,k<128){if((A-=1)<0)break;Fe.push(k)}else if(k<2048){if((A-=2)<0)break;Fe.push(k>>6|192,k&63|128)}else if(k<65536){if((A-=3)<0)break;Fe.push(k>>12|224,k>>6&63|128,k&63|128)}else if(k<1114112){if((A-=4)<0)break;Fe.push(k>>18|240,k>>12&63|128,k>>6&63|128,k&63|128)}else throw new Error("Invalid code point")}return Fe}function Ze(I){for(var A=[],k=0;k<I.length;++k)A.push(I.charCodeAt(k)&255);return A}function At(I,A){for(var k,$,fe,Fe=[],ze=0;ze<I.length&&!((A-=2)<0);++ze)k=I.charCodeAt(ze),$=k>>8,fe=k%256,Fe.push(fe),Fe.push($);return Fe}function jt(I){return t.toByteArray(yt(I))}function Ce(I,A,k,$){for(var fe=0;fe<$&&!(fe+k>=A.length||fe>=I.length);++fe)A[fe+k]=I[fe];return fe}function W(I,A){return I instanceof A||I!=null&&I.constructor!=null&&I.constructor.name!=null&&I.constructor.name===A.name}function ae(I){return I!==I}})(bF);var lu=jr,Tn=pH,_F=bF.Buffer;Ar.__TYPEDARRAY_POOL||(Ar.__TYPEDARRAY_POOL={UINT8:Tn([32,0]),UINT16:Tn([32,0]),UINT32:Tn([32,0]),BIGUINT64:Tn([32,0]),INT8:Tn([32,0]),INT16:Tn([32,0]),INT32:Tn([32,0]),BIGINT64:Tn([32,0]),FLOAT:Tn([32,0]),DOUBLE:Tn([32,0]),DATA:Tn([32,0]),UINT8C:Tn([32,0]),BUFFER:Tn([32,0])});var SH=typeof Uint8ClampedArray<"u",EH=typeof BigUint64Array<"u",AH=typeof BigInt64Array<"u",Xr=Ar.__TYPEDARRAY_POOL;Xr.UINT8C||(Xr.UINT8C=Tn([32,0]));Xr.BIGUINT64||(Xr.BIGUINT64=Tn([32,0]));Xr.BIGINT64||(Xr.BIGINT64=Tn([32,0]));Xr.BUFFER||(Xr.BUFFER=Tn([32,0]));var Sg=Xr.DATA,Eg=Xr.BUFFER;pr.free=function(t){if(_F.isBuffer(t))Eg[lu.log2(t.length)].push(t);else{if(Object.prototype.toString.call(t)!=="[object ArrayBuffer]"&&(t=t.buffer),!t)return;var r=t.length||t.byteLength,n=lu.log2(r)|0;Sg[n].push(t)}};function SF(e){if(!!e){var t=e.length||e.byteLength,r=lu.log2(t);Sg[r].push(e)}}function TH(e){SF(e.buffer)}pr.freeUint8=pr.freeUint16=pr.freeUint32=pr.freeBigUint64=pr.freeInt8=pr.freeInt16=pr.freeInt32=pr.freeBigInt64=pr.freeFloat32=pr.freeFloat=pr.freeFloat64=pr.freeDouble=pr.freeUint8Clamped=pr.freeDataView=TH;pr.freeArrayBuffer=SF;pr.freeBuffer=function(t){Eg[lu.log2(t.length)].push(t)};pr.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return ri(t);switch(r){case"uint8":return fS(t);case"uint16":return EF(t);case"uint32":return AF(t);case"int8":return TF(t);case"int16":return CF(t);case"int32":return OF(t);case"float":case"float32":return kF(t);case"double":case"float64":return MF(t);case"uint8_clamped":return IF(t);case"bigint64":return FF(t);case"biguint64":return PF(t);case"buffer":return NF(t);case"data":case"dataview":return RF(t);default:return null}return null};function ri(t){var t=lu.nextPow2(t),r=lu.log2(t),n=Sg[r];return n.length>0?n.pop():new ArrayBuffer(t)}pr.mallocArrayBuffer=ri;function fS(e){return new Uint8Array(ri(e),0,e)}pr.mallocUint8=fS;function EF(e){return new Uint16Array(ri(2*e),0,e)}pr.mallocUint16=EF;function AF(e){return new Uint32Array(ri(4*e),0,e)}pr.mallocUint32=AF;function TF(e){return new Int8Array(ri(e),0,e)}pr.mallocInt8=TF;function CF(e){return new Int16Array(ri(2*e),0,e)}pr.mallocInt16=CF;function OF(e){return new Int32Array(ri(4*e),0,e)}pr.mallocInt32=OF;function kF(e){return new Float32Array(ri(4*e),0,e)}pr.mallocFloat32=pr.mallocFloat=kF;function MF(e){return new Float64Array(ri(8*e),0,e)}pr.mallocFloat64=pr.mallocDouble=MF;function IF(e){return SH?new Uint8ClampedArray(ri(e),0,e):fS(e)}pr.mallocUint8Clamped=IF;function PF(e){return EH?new BigUint64Array(ri(8*e),0,e):null}pr.mallocBigUint64=PF;function FF(e){return AH?new BigInt64Array(ri(8*e),0,e):null}pr.mallocBigInt64=FF;function RF(e){return new DataView(ri(e),0,e)}pr.mallocDataView=RF;function NF(e){e=lu.nextPow2(e);var t=lu.log2(e),r=Eg[t];return r.length>0?r.pop():new _F(e)}pr.mallocBuffer=NF;pr.clearCache=function(){for(var t=0;t<32;++t)Xr.UINT8[t].length=0,Xr.UINT16[t].length=0,Xr.UINT32[t].length=0,Xr.INT8[t].length=0,Xr.INT16[t].length=0,Xr.INT32[t].length=0,Xr.FLOAT[t].length=0,Xr.DOUBLE[t].length=0,Xr.BIGUINT64[t].length=0,Xr.BIGINT64[t].length=0,Xr.UINT8C[t].length=0,Sg[t].length=0,Eg[t].length=0};var LF=function(t,r){r||(r=[0,""]),t=String(t);var n=parseFloat(t,10);return r[0]=n,r[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||"",r},CH=LF,OH=DF,_h=96;function Kw(e,t){var r=CH(getComputedStyle(e).getPropertyValue(t));return r[0]*DF(r[1],e)}function kH(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var n=Kw(r,"font-size")/128;return t.removeChild(r),n}function DF(e,t){switch(t=t||document.body,e=(e||"px").trim().toLowerCase(),(t===window||t===document)&&(t=document.body),e){case"%":return t.clientHeight/100;case"ch":case"ex":return kH(e,t);case"em":return Kw(t,"font-size");case"rem":return Kw(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return _h;case"cm":return _h/2.54;case"mm":return _h/25.4;case"pt":return _h/72;case"pc":return _h/6}return 1}var MH=Ag,IH=Ag.canvas=document.createElement("canvas"),Zv=IH.getContext("2d"),$F=Pm([32,126]);Ag.createPairs=Pm;Ag.ascii=$F;function Ag(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},n,i=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?n=Pm(t):Array.isArray(t)?n=t:(t.o?n=Pm(t.o):t.pairs&&(n=t.pairs),t.fontSize&&(i=t.fontSize),t.threshold!=null&&(a=t.threshold))),n||(n=$F),Zv.font=i+"px "+e;for(var o=0;o<n.length;o++){var l=n[o],s=Zv.measureText(l[0]).width+Zv.measureText(l[1]).width,c=Zv.measureText(l).width;if(Math.abs(s-c)>i*a){var d=(c-s)/i;r[l]=d*1e3}}return r}function Pm(e){for(var t=[],r=e[0];r<=e[1];r++)for(var n=String.fromCharCode(r),i=e[0];i<e[1];i++){var a=String.fromCharCode(i),o=n+a;t.push(o)}return t}var PH=zo;zo.canvas=document.createElement("canvas");zo.cache={};function zo(o,t){t||(t={}),(typeof o=="string"||Array.isArray(o))&&(t.family=o);var r=Array.isArray(t.family)?t.family.join(", "):t.family;if(!r)throw Error("`family` must be defined");var n=t.size||t.fontSize||t.em||48,i=t.weight||t.fontWeight||"",a=t.style||t.fontStyle||"",o=[a,i,n].join(" ")+"px "+r,l=t.origin||"top";if(zo.cache[r]&&n<=zo.cache[r].em)return EC(zo.cache[r],l);var s=t.canvas||zo.canvas,c=s.getContext("2d"),d={upper:t.upper!==void 0?t.upper:"H",lower:t.lower!==void 0?t.lower:"x",descent:t.descent!==void 0?t.descent:"p",ascent:t.ascent!==void 0?t.ascent:"h",tittle:t.tittle!==void 0?t.tittle:"i",overshoot:t.overshoot!==void 0?t.overshoot:"O"},y=Math.ceil(n*1.5);s.height=y,s.width=y*.5,c.font=o;var g="H",m={top:0};c.clearRect(0,0,y,y),c.textBaseline="top",c.fillStyle="black",c.fillText(g,0,0);var E=oa(c.getImageData(0,0,y,y));c.clearRect(0,0,y,y),c.textBaseline="bottom",c.fillText(g,0,y);var M=oa(c.getImageData(0,0,y,y));m.lineHeight=m.bottom=y-M+E,c.clearRect(0,0,y,y),c.textBaseline="alphabetic",c.fillText(g,0,y);var b=oa(c.getImageData(0,0,y,y)),w=y-b-1+E;m.baseline=m.alphabetic=w,c.clearRect(0,0,y,y),c.textBaseline="middle",c.fillText(g,0,y*.5);var _=oa(c.getImageData(0,0,y,y));m.median=m.middle=y-_-1+E-y*.5,c.clearRect(0,0,y,y),c.textBaseline="hanging",c.fillText(g,0,y*.5);var C=oa(c.getImageData(0,0,y,y));m.hanging=y-C-1+E-y*.5,c.clearRect(0,0,y,y),c.textBaseline="ideographic",c.fillText(g,0,y);var T=oa(c.getImageData(0,0,y,y));if(m.ideographic=y-T-1+E,d.upper&&(c.clearRect(0,0,y,y),c.textBaseline="top",c.fillText(d.upper,0,0),m.upper=oa(c.getImageData(0,0,y,y)),m.capHeight=m.baseline-m.upper),d.lower&&(c.clearRect(0,0,y,y),c.textBaseline="top",c.fillText(d.lower,0,0),m.lower=oa(c.getImageData(0,0,y,y)),m.xHeight=m.baseline-m.lower),d.tittle&&(c.clearRect(0,0,y,y),c.textBaseline="top",c.fillText(d.tittle,0,0),m.tittle=oa(c.getImageData(0,0,y,y))),d.ascent&&(c.clearRect(0,0,y,y),c.textBaseline="top",c.fillText(d.ascent,0,0),m.ascent=oa(c.getImageData(0,0,y,y))),d.descent&&(c.clearRect(0,0,y,y),c.textBaseline="top",c.fillText(d.descent,0,0),m.descent=AC(c.getImageData(0,0,y,y))),d.overshoot){c.clearRect(0,0,y,y),c.textBaseline="top",c.fillText(d.overshoot,0,0);var R=AC(c.getImageData(0,0,y,y));m.overshoot=R-w}for(var D in m)m[D]/=n;return m.em=n,zo.cache[r]=m,EC(m,l)}function EC(e,t){var r={};typeof t=="string"&&(t=e[t]);for(var n in e)n!=="em"&&(r[n]=e[n]-t);return r}function oa(e){for(var t=e.height,r=e.data,n=3;n<r.length;n+=4)if(r[n]!==0)return Math.floor((n-3)*.25/t)}function AC(e){for(var t=e.height,r=e.data,n=r.length-1;n>0;n-=4)if(r[n]!==0)return Math.floor((n-3)*.25/t)}var ks=nH,FH=yu,RH=gF.exports,NH=aH,LH=oF,Bx=hg,DH=fH,Fo=pr,$H=cg,BH=jP,zH=LF,UH=OH,jH=MH,GH=Al,WH=PH,HH=Hd,VH=jr,TC=VH.nextPow2,CC=new LH,L0=!1;if(document.body){var zx=document.body.appendChild(document.createElement("div"));zx.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(zx).fontStretch&&(L0=!0),document.body.removeChild(zx)}var xr=function(t){qH(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=NH(t),this.shader=CC.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||RH({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),CC.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(BH(t)?t:{})};xr.prototype.createShader=function(){var t=this.regl,r=t({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:t.prop("count"),offset:t.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:t.this("sizeBuffer")},width:{offset:0,stride:8,buffer:t.this("sizeBuffer")},char:t.this("charBuffer"),position:t.this("position")},uniforms:{atlasSize:function(i,a){return[a.atlas.width,a.atlas.height]},atlasDim:function(i,a){return[a.atlas.cols,a.atlas.rows]},atlas:function(i,a){return a.atlas.texture},charStep:function(i,a){return a.atlas.step},em:function(i,a){return a.atlas.em},color:t.prop("color"),opacity:t.prop("opacity"),viewport:t.this("viewportArray"),scale:t.this("scale"),align:t.prop("align"),baseline:t.prop("baseline"),translate:t.this("translate"),positionOffset:t.prop("positionOffset")},primitive:"points",viewport:t.this("viewport"),vert:`
|
|
291
|
-
precision highp float;
|
|
292
|
-
attribute float width, charOffset, char;
|
|
293
|
-
attribute vec2 position;
|
|
294
|
-
uniform float fontSize, charStep, em, align, baseline;
|
|
295
|
-
uniform vec4 viewport;
|
|
296
|
-
uniform vec4 color;
|
|
297
|
-
uniform vec2 atlasSize, atlasDim, scale, translate, positionOffset;
|
|
298
|
-
varying vec2 charCoord, charId;
|
|
299
|
-
varying float charWidth;
|
|
300
|
-
varying vec4 fontColor;
|
|
301
|
-
void main () {
|
|
302
|
-
vec2 offset = floor(em * (vec2(align + charOffset, baseline)
|
|
303
|
-
+ vec2(positionOffset.x, -positionOffset.y)))
|
|
304
|
-
/ (viewport.zw * scale.xy);
|
|
305
|
-
|
|
306
|
-
vec2 position = (position + translate) * scale;
|
|
307
|
-
position += offset * scale;
|
|
308
|
-
|
|
309
|
-
charCoord = position * viewport.zw + viewport.xy;
|
|
310
|
-
|
|
311
|
-
gl_Position = vec4(position * 2. - 1., 0, 1);
|
|
312
|
-
|
|
313
|
-
gl_PointSize = charStep;
|
|
314
|
-
|
|
315
|
-
charId.x = mod(char, atlasDim.x);
|
|
316
|
-
charId.y = floor(char / atlasDim.x);
|
|
317
|
-
|
|
318
|
-
charWidth = width * em;
|
|
319
|
-
|
|
320
|
-
fontColor = color / 255.;
|
|
321
|
-
}`,frag:`
|
|
322
|
-
precision highp float;
|
|
323
|
-
uniform float fontSize, charStep, opacity;
|
|
324
|
-
uniform vec2 atlasSize;
|
|
325
|
-
uniform vec4 viewport;
|
|
326
|
-
uniform sampler2D atlas;
|
|
327
|
-
varying vec4 fontColor;
|
|
328
|
-
varying vec2 charCoord, charId;
|
|
329
|
-
varying float charWidth;
|
|
330
|
-
|
|
331
|
-
float lightness(vec4 color) {
|
|
332
|
-
return color.r * 0.299 + color.g * 0.587 + color.b * 0.114;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
void main () {
|
|
336
|
-
vec2 uv = gl_FragCoord.xy - charCoord + charStep * .5;
|
|
337
|
-
float halfCharStep = floor(charStep * .5 + .5);
|
|
338
|
-
|
|
339
|
-
// invert y and shift by 1px (FF expecially needs that)
|
|
340
|
-
uv.y = charStep - uv.y;
|
|
341
|
-
|
|
342
|
-
// ignore points outside of character bounding box
|
|
343
|
-
float halfCharWidth = ceil(charWidth * .5);
|
|
344
|
-
if (floor(uv.x) > halfCharStep + halfCharWidth ||
|
|
345
|
-
floor(uv.x) < halfCharStep - halfCharWidth) return;
|
|
346
|
-
|
|
347
|
-
uv += charId * charStep;
|
|
348
|
-
uv = uv / atlasSize;
|
|
349
|
-
|
|
350
|
-
vec4 color = fontColor;
|
|
351
|
-
vec4 mask = texture2D(atlas, uv);
|
|
352
|
-
|
|
353
|
-
float maskY = lightness(mask);
|
|
354
|
-
// float colorY = lightness(color);
|
|
355
|
-
color.a *= maskY;
|
|
356
|
-
color.a *= opacity;
|
|
357
|
-
|
|
358
|
-
// color.a += .1;
|
|
359
|
-
|
|
360
|
-
// antialiasing, see yiq color space y-channel formula
|
|
361
|
-
// color.rgb += (1. - color.rgb) * (1. - mask.rgb);
|
|
362
|
-
|
|
363
|
-
gl_FragColor = color;
|
|
364
|
-
}`}),n={};return{regl:t,draw:r,atlas:n}};xr.prototype.update=function(t){var r=this;if(typeof t=="string")t={text:t};else if(!t)return;t=FH(t,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0),t.opacity!=null&&(Array.isArray(t.opacity)?this.opacity=t.opacity.map(function(Qe){return parseFloat(Qe)}):this.opacity=parseFloat(t.opacity)),t.viewport!=null&&(this.viewport=$H(t.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),this.viewport==null&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),t.kerning!=null&&(this.kerning=t.kerning),t.offset!=null&&(typeof t.offset=="number"&&(t.offset=[t.offset,0]),this.positionOffset=HH(t.offset)),t.direction&&(this.direction=t.direction),t.range&&(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&&(this.scale=t.scale),t.translate&&(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!t.font&&(t.font=xr.baseFontSize+"px sans-serif");var n=!1,i=!1;if(t.font&&(Array.isArray(t.font)?t.font:[t.font]).forEach(function(Qe,ct){if(typeof Qe=="string")try{Qe=ks.parse(Qe)}catch{Qe=ks.parse(xr.baseFontSize+"px "+Qe)}else Qe=ks.parse(ks.stringify(Qe));var yt=ks.stringify({size:xr.baseFontSize,family:Qe.family,stretch:L0?Qe.stretch:void 0,variant:Qe.variant,weight:Qe.weight,style:Qe.style}),Ht=zH(Qe.size),qt=Math.round(Ht[0]*UH(Ht[1]));if(qt!==r.fontSize[ct]&&(i=!0,r.fontSize[ct]=qt),(!r.font[ct]||yt!=r.font[ct].baseString)&&(n=!0,r.font[ct]=xr.fonts[yt],!r.font[ct])){var Ze=Qe.family.join(", "),At=[Qe.style];Qe.style!=Qe.variant&&At.push(Qe.variant),Qe.variant!=Qe.weight&&At.push(Qe.weight),L0&&Qe.weight!=Qe.stretch&&At.push(Qe.stretch),r.font[ct]={baseString:yt,family:Ze,weight:Qe.weight,stretch:Qe.stretch,style:Qe.style,variant:Qe.variant,width:{},kerning:{},metrics:WH(Ze,{origin:"top",fontSize:xr.baseFontSize,fontStyle:At.join(" ")})},xr.fonts[yt]=r.font[ct]}}),(n||i)&&this.font.forEach(function(Qe,ct){var yt=ks.stringify({size:r.fontSize[ct],family:Qe.family,stretch:L0?Qe.stretch:void 0,variant:Qe.variant,weight:Qe.weight,style:Qe.style});if(r.fontAtlas[ct]=r.shader.atlas[yt],!r.fontAtlas[ct]){var Ht=Qe.metrics;r.shader.atlas[yt]=r.fontAtlas[ct]={fontString:yt,step:Math.ceil(r.fontSize[ct]*Ht.bottom*.5)*2,em:r.fontSize[ct],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:r.regl.texture()}}t.text==null&&(t.text=r.text)}),typeof t.text=="string"&&t.position&&t.position.length>2){for(var a=Array(t.position.length*.5),o=0;o<a.length;o++)a[o]=t.text;t.text=a}var l;if(t.text!=null||n){if(this.textOffsets=[0],Array.isArray(t.text)){this.count=t.text[0].length,this.counts=[this.count];for(var s=1;s<t.text.length;s++)this.textOffsets[s]=this.textOffsets[s-1]+t.text[s-1].length,this.count+=t.text[s].length,this.counts.push(t.text[s].length);this.text=t.text.join("")}else this.text=t.text,this.count=this.text.length,this.counts=[this.count];l=[],this.font.forEach(function(Qe,ct){xr.atlasContext.font=Qe.baseString;for(var yt=r.fontAtlas[ct],Ht=0;Ht<r.text.length;Ht++){var qt=r.text.charAt(Ht);if(yt.ids[qt]==null&&(yt.ids[qt]=yt.chars.length,yt.chars.push(qt),l.push(qt)),Qe.width[qt]==null&&(Qe.width[qt]=xr.atlasContext.measureText(qt).width/xr.baseFontSize,r.kerning)){var Ze=[];for(var At in Qe.width)Ze.push(At+qt,qt+At);GH(Qe.kerning,jH(Qe.family,{pairs:Ze}))}}})}if(t.position)if(t.position.length>2){for(var c=!t.position[0].length,d=Fo.mallocFloat(this.count*2),y=0,g=0;y<this.counts.length;y++){var m=this.counts[y];if(c)for(var E=0;E<m;E++)d[g++]=t.position[y*2],d[g++]=t.position[y*2+1];else for(var M=0;M<m;M++)d[g++]=t.position[y][0],d[g++]=t.position[y][1]}this.position.call?this.position({type:"float",data:d}):this.position=this.regl.buffer({type:"float",data:d}),Fo.freeFloat(d)}else this.position.destroy&&this.position.destroy(),this.position={constant:t.position};if(t.text||n){var b=Fo.mallocUint8(this.count),w=Fo.mallocFloat(this.count*2);this.textWidth=[];for(var _=0,C=0;_<this.counts.length;_++){for(var T=this.counts[_],R=this.font[_]||this.font[0],D=this.fontAtlas[_]||this.fontAtlas[0],Y=0;Y<T;Y++){var j=this.text.charAt(C),re=this.text.charAt(C-1);if(b[C]=D.ids[j],w[C*2]=R.width[j],Y){var Se=w[C*2-2],me=w[C*2],ke=w[C*2-1],Re=ke+Se*.5+me*.5;if(this.kerning){var Le=R.kerning[re+j];Le&&(Re+=Le*.001)}w[C*2+1]=Re}else w[C*2+1]=w[C*2]*.5;C++}this.textWidth.push(w.length?w[C*2-2]*.5+w[C*2-1]:0)}t.align||(t.align=this.align),this.charBuffer({data:b,type:"uint8",usage:"stream"}),this.sizeBuffer({data:w,type:"float",usage:"stream"}),Fo.freeUint8(b),Fo.freeFloat(w),l.length&&this.font.forEach(function(Qe,ct){var yt=r.fontAtlas[ct],Ht=yt.step,qt=Math.floor(xr.maxAtlasSize/Ht),Ze=Math.min(qt,yt.chars.length),At=Math.ceil(yt.chars.length/Ze),jt=TC(Ze*Ht),Ce=TC(At*Ht);yt.width=jt,yt.height=Ce,yt.rows=At,yt.cols=Ze,yt.em&&yt.texture({data:DH({canvas:xr.atlasCanvas,font:yt.fontString,chars:yt.chars,shape:[jt,Ce],step:[Ht,Ht]})})})}if(t.align&&(this.align=t.align,this.alignOffset=this.textWidth.map(function(Qe,ct){var yt=Array.isArray(r.align)?r.align.length>1?r.align[ct]:r.align[0]:r.align;if(typeof yt=="number")return yt;switch(yt){case"right":case"end":return-Qe;case"center":case"centre":case"middle":return-Qe*.5}return 0})),this.baseline==null&&t.baseline==null&&(t.baseline=0),t.baseline!=null&&(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(Qe,ct){var yt=(r.font[ct]||r.font[0]).metrics,Ht=0;return Ht+=yt.bottom*.5,typeof Qe=="number"?Ht+=Qe-yt.baseline:Ht+=-yt[Qe],Ht*=-1,Ht})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=Bx(t.color,"uint8");else{var ut;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var nt=t.color.length;ut=Fo.mallocUint8(nt);for(var De=(t.color.subarray||t.color.slice).bind(t.color),We=0;We<nt;We+=4)ut.set(Bx(De(We,We+4),"uint8"),We)}else{var _t=t.color.length;ut=Fo.mallocUint8(_t*4);for(var He=0;He<_t;He++)ut.set(Bx(t.color[He]||0,"uint8"),He*4)}this.color=ut}if(t.position||t.text||t.color||t.baseline||t.align||t.font||t.offset||t.opacity){var be=this.color.length>4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(be){var Ve=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(Ve);for(var st=0;st<this.batch.length;st++)this.batch[st]={count:this.counts.length>1?this.counts[st]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[st]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(st*4,st*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[st]:this.opacity,baseline:this.baselineOffset[st]!=null?this.baselineOffset[st]:this.baselineOffset[0],align:this.align?this.alignOffset[st]!=null?this.alignOffset[st]:this.alignOffset[0]:0,atlas:this.fontAtlas[st]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(st*2,st*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}};xr.prototype.destroy=function(){};xr.prototype.kerning=!0;xr.prototype.position={constant:new Float32Array(2)};xr.prototype.translate=null;xr.prototype.scale=null;xr.prototype.font=null;xr.prototype.text="";xr.prototype.positionOffset=[0,0];xr.prototype.opacity=1;xr.prototype.color=new Uint8Array([0,0,0,255]);xr.prototype.alignOffset=[0,0];xr.maxAtlasSize=1024;xr.atlasCanvas=document.createElement("canvas");xr.atlasContext=xr.atlasCanvas.getContext("2d",{alpha:!1});xr.baseFontSize=64;xr.fonts={};function qH(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}var ire=xr;function YH(e,t){return e.parent===t.parent?1:2}function XH(e){return e.reduce(QH,0)/e.length}function QH(e,t){return e+t.x}function ZH(e){return 1+e.reduce(KH,0)}function KH(e,t){return Math.max(e,t.y)}function JH(e){for(var t;t=e.children;)e=t[0];return e}function eV(e){for(var t;t=e.children;)e=t[t.length-1];return e}function tV(){var e=YH,t=1,r=1,n=!1;function i(a){var o,l=0;a.eachAfter(function(g){var m=g.children;m?(g.x=XH(m),g.y=ZH(m)):(g.x=o?l+=e(g,o):0,g.y=0,o=g)});var s=JH(a),c=eV(a),d=s.x-e(s,c)/2,y=c.x+e(c,s)/2;return a.eachAfter(n?function(g){g.x=(g.x-a.x)*t,g.y=(a.y-g.y)*r}:function(g){g.x=(g.x-d)/(y-d)*t,g.y=(1-(a.y?g.y/a.y:1))*r})}return i.separation=function(a){return arguments.length?(e=a,i):e},i.size=function(a){return arguments.length?(n=!1,t=+a[0],r=+a[1],i):n?null:[t,r]},i.nodeSize=function(a){return arguments.length?(n=!0,t=+a[0],r=+a[1],i):n?[t,r]:null},i}function rV(e){var t=0,r=e.children,n=r&&r.length;if(!n)t=1;else for(;--n>=0;)t+=r[n].value;e.value=t}function nV(){return this.eachAfter(rV)}function iV(e){var t=this,r,n=[t],i,a,o;do for(r=n.reverse(),n=[];t=r.pop();)if(e(t),i=t.children,i)for(a=0,o=i.length;a<o;++a)n.push(i[a]);while(n.length);return this}function aV(e){for(var t=this,r=[t],n,i;t=r.pop();)if(e(t),n=t.children,n)for(i=n.length-1;i>=0;--i)r.push(n[i]);return this}function oV(e){for(var t=this,r=[t],n=[],i,a,o;t=r.pop();)if(n.push(t),i=t.children,i)for(a=0,o=i.length;a<o;++a)r.push(i[a]);for(;t=n.pop();)e(t);return this}function uV(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,n=t.children,i=n&&n.length;--i>=0;)r+=n[i].value;t.value=r})}function lV(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function sV(e){for(var t=this,r=fV(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var i=n.length;e!==r;)n.splice(i,0,e),e=e.parent;return n}function fV(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),i=null;for(e=r.pop(),t=n.pop();e===t;)i=e,e=r.pop(),t=n.pop();return i}function cV(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function hV(){var e=[];return this.each(function(t){e.push(t)}),e}function dV(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function pV(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function cS(e,t){var r=new _f(e),n=+e.value&&(r.value=e.value),i,a=[r],o,l,s,c;for(t==null&&(t=mV);i=a.pop();)if(n&&(i.value=+i.data.value),(l=t(i.data))&&(c=l.length))for(i.children=new Array(c),s=c-1;s>=0;--s)a.push(o=i.children[s]=new _f(l[s])),o.parent=i,o.depth=i.depth+1;return r.eachBefore(BF)}function vV(){return cS(this).eachBefore(gV)}function mV(e){return e.children}function gV(e){e.data=e.data.data}function BF(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function _f(e){this.data=e,this.depth=this.height=0,this.parent=null}_f.prototype=cS.prototype={constructor:_f,count:nV,each:iV,eachAfter:oV,eachBefore:aV,sum:uV,sort:lV,path:sV,ancestors:cV,descendants:hV,leaves:dV,links:pV,copy:vV};var yV=Array.prototype.slice;function xV(e){for(var t=e.length,r,n;t;)n=Math.random()*t--|0,r=e[t],e[t]=e[n],e[n]=r;return e}function zF(e){for(var t=0,r=(e=xV(yV.call(e))).length,n=[],i,a;t<r;)i=e[t],a&&UF(a,i)?++t:(a=wV(n=bV(n,i)),t=0);return a}function bV(e,t){var r,n;if(Ux(t,e))return[t];for(r=0;r<e.length;++r)if(Kv(t,e[r])&&Ux(Fh(e[r],t),e))return[e[r],t];for(r=0;r<e.length-1;++r)for(n=r+1;n<e.length;++n)if(Kv(Fh(e[r],e[n]),t)&&Kv(Fh(e[r],t),e[n])&&Kv(Fh(e[n],t),e[r])&&Ux(jF(e[r],e[n],t),e))return[e[r],e[n],t];throw new Error}function Kv(e,t){var r=e.r-t.r,n=t.x-e.x,i=t.y-e.y;return r<0||r*r<n*n+i*i}function UF(e,t){var r=e.r-t.r+1e-6,n=t.x-e.x,i=t.y-e.y;return r>0&&r*r>n*n+i*i}function Ux(e,t){for(var r=0;r<t.length;++r)if(!UF(e,t[r]))return!1;return!0}function wV(e){switch(e.length){case 1:return _V(e[0]);case 2:return Fh(e[0],e[1]);case 3:return jF(e[0],e[1],e[2])}}function _V(e){return{x:e.x,y:e.y,r:e.r}}function Fh(e,t){var r=e.x,n=e.y,i=e.r,a=t.x,o=t.y,l=t.r,s=a-r,c=o-n,d=l-i,y=Math.sqrt(s*s+c*c);return{x:(r+a+s/y*d)/2,y:(n+o+c/y*d)/2,r:(y+i+l)/2}}function jF(e,t,r){var n=e.x,i=e.y,a=e.r,o=t.x,l=t.y,s=t.r,c=r.x,d=r.y,y=r.r,g=n-o,m=n-c,E=i-l,M=i-d,b=s-a,w=y-a,_=n*n+i*i-a*a,C=_-o*o-l*l+s*s,T=_-c*c-d*d+y*y,R=m*E-g*M,D=(E*T-M*C)/(R*2)-n,Y=(M*b-E*w)/R,j=(m*C-g*T)/(R*2)-i,re=(g*w-m*b)/R,Se=Y*Y+re*re-1,me=2*(a+D*Y+j*re),ke=D*D+j*j-a*a,Re=-(Se?(me+Math.sqrt(me*me-4*Se*ke))/(2*Se):ke/me);return{x:n+D+Y*Re,y:i+j+re*Re,r:Re}}function OC(e,t,r){var n=e.x-t.x,i,a,o=e.y-t.y,l,s,c=n*n+o*o;c?(a=t.r+r.r,a*=a,s=e.r+r.r,s*=s,a>s?(i=(c+s-a)/(2*c),l=Math.sqrt(Math.max(0,s/c-i*i)),r.x=e.x-i*n-l*o,r.y=e.y-i*o+l*n):(i=(c+a-s)/(2*c),l=Math.sqrt(Math.max(0,a/c-i*i)),r.x=t.x+i*n-l*o,r.y=t.y+i*o+l*n)):(r.x=t.x+r.r,r.y=t.y)}function kC(e,t){var r=e.r+t.r-1e-6,n=t.x-e.x,i=t.y-e.y;return r>0&&r*r>n*n+i*i}function MC(e){var t=e._,r=e.next._,n=t.r+r.r,i=(t.x*r.r+r.x*t.r)/n,a=(t.y*r.r+r.y*t.r)/n;return i*i+a*a}function Jv(e){this._=e,this.next=null,this.previous=null}function GF(e){if(!(i=e.length))return 0;var t,r,n,i,a,o,l,s,c,d,y;if(t=e[0],t.x=0,t.y=0,!(i>1))return t.r;if(r=e[1],t.x=-r.r,r.x=t.r,r.y=0,!(i>2))return t.r+r.r;OC(r,t,n=e[2]),t=new Jv(t),r=new Jv(r),n=new Jv(n),t.next=n.previous=r,r.next=t.previous=n,n.next=r.previous=t;e:for(l=3;l<i;++l){OC(t._,r._,n=e[l]),n=new Jv(n),s=r.next,c=t.previous,d=r._.r,y=t._.r;do if(d<=y){if(kC(s._,n._)){r=s,t.next=r,r.previous=t,--l;continue e}d+=s._.r,s=s.next}else{if(kC(c._,n._)){t=c,t.next=r,r.previous=t,--l;continue e}y+=c._.r,c=c.previous}while(s!==c.next);for(n.previous=t,n.next=r,t.next=r.previous=r=n,a=MC(t);(n=n.next)!==r;)(o=MC(n))<a&&(t=n,a=o);r=t.next}for(t=[r._],n=r;(n=n.next)!==r;)t.push(n._);for(n=zF(t),l=0;l<i;++l)t=e[l],t.x-=n.x,t.y-=n.y;return n.r}function SV(e){return GF(e),e}function EV(e){return e==null?null:Fm(e)}function Fm(e){if(typeof e!="function")throw new Error;return e}function el(){return 0}function Ls(e){return function(){return e}}function AV(e){return Math.sqrt(e.value)}function TV(){var e=null,t=1,r=1,n=el;function i(a){return a.x=t/2,a.y=r/2,e?a.eachBefore(IC(e)).eachAfter(jx(n,.5)).eachBefore(PC(1)):a.eachBefore(IC(AV)).eachAfter(jx(el,1)).eachAfter(jx(n,a.r/Math.min(t,r))).eachBefore(PC(Math.min(t,r)/(2*a.r))),a}return i.radius=function(a){return arguments.length?(e=EV(a),i):e},i.size=function(a){return arguments.length?(t=+a[0],r=+a[1],i):[t,r]},i.padding=function(a){return arguments.length?(n=typeof a=="function"?a:Ls(+a),i):n},i}function IC(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function jx(e,t){return function(r){if(n=r.children){var n,i,a=n.length,o=e(r)*t||0,l;if(o)for(i=0;i<a;++i)n[i].r+=o;if(l=GF(n),o)for(i=0;i<a;++i)n[i].r-=o;r.r=l+o}}}function PC(e){return function(t){var r=t.parent;t.r*=e,r&&(t.x=r.x+e*t.x,t.y=r.y+e*t.y)}}function WF(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function qd(e,t,r,n,i){for(var a=e.children,o,l=-1,s=a.length,c=e.value&&(n-t)/e.value;++l<s;)o=a[l],o.y0=r,o.y1=i,o.x0=t,o.x1=t+=o.value*c}function CV(){var e=1,t=1,r=0,n=!1;function i(o){var l=o.height+1;return o.x0=o.y0=r,o.x1=e,o.y1=t/l,o.eachBefore(a(t,l)),n&&o.eachBefore(WF),o}function a(o,l){return function(s){s.children&&qd(s,s.x0,o*(s.depth+1)/l,s.x1,o*(s.depth+2)/l);var c=s.x0,d=s.y0,y=s.x1-r,g=s.y1-r;y<c&&(c=y=(c+y)/2),g<d&&(d=g=(d+g)/2),s.x0=c,s.y0=d,s.x1=y,s.y1=g}}return i.round=function(o){return arguments.length?(n=!!o,i):n},i.size=function(o){return arguments.length?(e=+o[0],t=+o[1],i):[e,t]},i.padding=function(o){return arguments.length?(r=+o,i):r},i}var FC="$",OV={depth:-1},RC={};function kV(e){return e.id}function MV(e){return e.parentId}function IV(){var e=kV,t=MV;function r(n){var i,a,o=n.length,l,s,c,d=new Array(o),y,g,m={};for(a=0;a<o;++a)i=n[a],c=d[a]=new _f(i),(y=e(i,a,n))!=null&&(y+="")&&(g=FC+(c.id=y),m[g]=g in m?RC:c);for(a=0;a<o;++a)if(c=d[a],y=t(n[a],a,n),y==null||!(y+="")){if(l)throw new Error("multiple roots");l=c}else{if(s=m[FC+y],!s)throw new Error("missing: "+y);if(s===RC)throw new Error("ambiguous: "+y);s.children?s.children.push(c):s.children=[c],c.parent=s}if(!l)throw new Error("no root");if(l.parent=OV,l.eachBefore(function(E){E.depth=E.parent.depth+1,--o}).eachBefore(BF),l.parent=null,o>0)throw new Error("cycle");return l}return r.id=function(n){return arguments.length?(e=Fm(n),r):e},r.parentId=function(n){return arguments.length?(t=Fm(n),r):t},r}function PV(e,t){return e.parent===t.parent?1:2}function Gx(e){var t=e.children;return t?t[0]:e.t}function Wx(e){var t=e.children;return t?t[t.length-1]:e.t}function FV(e,t,r){var n=r/(t.i-e.i);t.c-=n,t.s+=r,e.c+=n,t.z+=r,t.m+=r}function RV(e){for(var t=0,r=0,n=e.children,i=n.length,a;--i>=0;)a=n[i],a.z+=t,a.m+=t,t+=a.s+(r+=a.c)}function NV(e,t,r){return e.a.parent===t.parent?e.a:r}function D0(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}D0.prototype=Object.create(_f.prototype);function LV(e){for(var t=new D0(e,0),r,n=[t],i,a,o,l;r=n.pop();)if(a=r._.children)for(r.children=new Array(l=a.length),o=l-1;o>=0;--o)n.push(i=r.children[o]=new D0(a[o],o)),i.parent=r;return(t.parent=new D0(null,0)).children=[t],t}function DV(){var e=PV,t=1,r=1,n=null;function i(c){var d=LV(c);if(d.eachAfter(a),d.parent.m=-d.z,d.eachBefore(o),n)c.eachBefore(s);else{var y=c,g=c,m=c;c.eachBefore(function(_){_.x<y.x&&(y=_),_.x>g.x&&(g=_),_.depth>m.depth&&(m=_)});var E=y===g?1:e(y,g)/2,M=E-y.x,b=t/(g.x+E+M),w=r/(m.depth||1);c.eachBefore(function(_){_.x=(_.x+M)*b,_.y=_.depth*w})}return c}function a(c){var d=c.children,y=c.parent.children,g=c.i?y[c.i-1]:null;if(d){RV(c);var m=(d[0].z+d[d.length-1].z)/2;g?(c.z=g.z+e(c._,g._),c.m=c.z-m):c.z=m}else g&&(c.z=g.z+e(c._,g._));c.parent.A=l(c,g,c.parent.A||y[0])}function o(c){c._.x=c.z+c.parent.m,c.m+=c.parent.m}function l(c,d,y){if(d){for(var g=c,m=c,E=d,M=g.parent.children[0],b=g.m,w=m.m,_=E.m,C=M.m,T;E=Wx(E),g=Gx(g),E&&g;)M=Gx(M),m=Wx(m),m.a=c,T=E.z+_-g.z-b+e(E._,g._),T>0&&(FV(NV(E,c,y),c,T),b+=T,w+=T),_+=E.m,b+=g.m,C+=M.m,w+=m.m;E&&!Wx(m)&&(m.t=E,m.m+=_-w),g&&!Gx(M)&&(M.t=g,M.m+=b-C,y=c)}return y}function s(c){c.x*=t,c.y=c.depth*r}return i.separation=function(c){return arguments.length?(e=c,i):e},i.size=function(c){return arguments.length?(n=!1,t=+c[0],r=+c[1],i):n?null:[t,r]},i.nodeSize=function(c){return arguments.length?(n=!0,t=+c[0],r=+c[1],i):n?[t,r]:null},i}function Tg(e,t,r,n,i){for(var a=e.children,o,l=-1,s=a.length,c=e.value&&(i-r)/e.value;++l<s;)o=a[l],o.x0=t,o.x1=n,o.y0=r,o.y1=r+=o.value*c}var HF=(1+Math.sqrt(5))/2;function VF(e,t,r,n,i,a){for(var o=[],l=t.children,s,c,d=0,y=0,g=l.length,m,E,M=t.value,b,w,_,C,T,R,D;d<g;){m=i-r,E=a-n;do b=l[y++].value;while(!b&&y<g);for(w=_=b,R=Math.max(E/m,m/E)/(M*e),D=b*b*R,T=Math.max(_/D,D/w);y<g;++y){if(b+=c=l[y].value,c<w&&(w=c),c>_&&(_=c),D=b*b*R,C=Math.max(_/D,D/w),C>T){b-=c;break}T=C}o.push(s={value:b,dice:m<E,children:l.slice(d,y)}),s.dice?qd(s,r,n,i,M?n+=E*b/M:a):Tg(s,r,n,M?r+=m*b/M:i,a),M-=b,d=y}return o}const qF=function e(t){function r(n,i,a,o,l){VF(t,n,i,a,o,l)}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(HF);function $V(){var e=qF,t=!1,r=1,n=1,i=[0],a=el,o=el,l=el,s=el,c=el;function d(g){return g.x0=g.y0=0,g.x1=r,g.y1=n,g.eachBefore(y),i=[0],t&&g.eachBefore(WF),g}function y(g){var m=i[g.depth],E=g.x0+m,M=g.y0+m,b=g.x1-m,w=g.y1-m;b<E&&(E=b=(E+b)/2),w<M&&(M=w=(M+w)/2),g.x0=E,g.y0=M,g.x1=b,g.y1=w,g.children&&(m=i[g.depth+1]=a(g)/2,E+=c(g)-m,M+=o(g)-m,b-=l(g)-m,w-=s(g)-m,b<E&&(E=b=(E+b)/2),w<M&&(M=w=(M+w)/2),e(g,E,M,b,w))}return d.round=function(g){return arguments.length?(t=!!g,d):t},d.size=function(g){return arguments.length?(r=+g[0],n=+g[1],d):[r,n]},d.tile=function(g){return arguments.length?(e=Fm(g),d):e},d.padding=function(g){return arguments.length?d.paddingInner(g).paddingOuter(g):d.paddingInner()},d.paddingInner=function(g){return arguments.length?(a=typeof g=="function"?g:Ls(+g),d):a},d.paddingOuter=function(g){return arguments.length?d.paddingTop(g).paddingRight(g).paddingBottom(g).paddingLeft(g):d.paddingTop()},d.paddingTop=function(g){return arguments.length?(o=typeof g=="function"?g:Ls(+g),d):o},d.paddingRight=function(g){return arguments.length?(l=typeof g=="function"?g:Ls(+g),d):l},d.paddingBottom=function(g){return arguments.length?(s=typeof g=="function"?g:Ls(+g),d):s},d.paddingLeft=function(g){return arguments.length?(c=typeof g=="function"?g:Ls(+g),d):c},d}function BV(e,t,r,n,i){var a=e.children,o,l=a.length,s,c=new Array(l+1);for(c[0]=s=o=0;o<l;++o)c[o+1]=s+=a[o].value;d(0,l,e.value,t,r,n,i);function d(y,g,m,E,M,b,w){if(y>=g-1){var _=a[y];_.x0=E,_.y0=M,_.x1=b,_.y1=w;return}for(var C=c[y],T=m/2+C,R=y+1,D=g-1;R<D;){var Y=R+D>>>1;c[Y]<T?R=Y+1:D=Y}T-c[R-1]<c[R]-T&&y+1<R&&--R;var j=c[R]-C,re=m-j;if(b-E>w-M){var Se=(E*re+b*j)/m;d(y,R,j,E,M,Se,w),d(R,g,re,Se,M,b,w)}else{var me=(M*re+w*j)/m;d(y,R,j,E,M,b,me),d(R,g,re,E,me,b,w)}}}function zV(e,t,r,n,i){(e.depth&1?Tg:qd)(e,t,r,n,i)}const UV=function e(t){function r(n,i,a,o,l){if((s=n._squarify)&&s.ratio===t)for(var s,c,d,y,g=-1,m,E=s.length,M=n.value;++g<E;){for(c=s[g],d=c.children,y=c.value=0,m=d.length;y<m;++y)c.value+=d[y].value;c.dice?qd(c,i,a,o,a+=(l-a)*c.value/M):Tg(c,i,a,i+=(o-i)*c.value/M,l),M-=c.value}else n._squarify=s=VF(t,n,i,a,o,l),s.ratio=t}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(HF),jV=Object.freeze(Object.defineProperty({__proto__:null,cluster:tV,hierarchy:cS,pack:TV,packSiblings:SV,packEnclose:zF,partition:CV,stratify:IV,tree:DV,treemap:$V,treemapBinary:BV,treemapDice:qd,treemapSlice:Tg,treemapSliceDice:zV,treemapSquarify:qF,treemapResquarify:UV},Symbol.toStringTag,{value:"Module"})),are=El(jV);function $f(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Yd(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function xu(){}var xl=.7,Sf=1/xl,sf="\\s*([+-]?\\d+)\\s*",Ad="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ga="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",GV=/^#([0-9a-f]{3,8})$/,WV=new RegExp("^rgb\\("+[sf,sf,sf]+"\\)$"),HV=new RegExp("^rgb\\("+[ga,ga,ga]+"\\)$"),VV=new RegExp("^rgba\\("+[sf,sf,sf,Ad]+"\\)$"),qV=new RegExp("^rgba\\("+[ga,ga,ga,Ad]+"\\)$"),YV=new RegExp("^hsl\\("+[Ad,ga,ga]+"\\)$"),XV=new RegExp("^hsla\\("+[Ad,ga,ga,Ad]+"\\)$"),NC={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};$f(xu,Td,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:LC,formatHex:LC,formatHsl:QV,formatRgb:DC,toString:DC});function LC(){return this.rgb().formatHex()}function QV(){return YF(this).formatHsl()}function DC(){return this.rgb().formatRgb()}function Td(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=GV.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?$C(t):r===3?new kn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?e0(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?e0(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=WV.exec(e))?new kn(t[1],t[2],t[3],1):(t=HV.exec(e))?new kn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=VV.exec(e))?e0(t[1],t[2],t[3],t[4]):(t=qV.exec(e))?e0(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=YV.exec(e))?UC(t[1],t[2]/100,t[3]/100,1):(t=XV.exec(e))?UC(t[1],t[2]/100,t[3]/100,t[4]):NC.hasOwnProperty(e)?$C(NC[e]):e==="transparent"?new kn(NaN,NaN,NaN,0):null}function $C(e){return new kn(e>>16&255,e>>8&255,e&255,1)}function e0(e,t,r,n){return n<=0&&(e=t=r=NaN),new kn(e,t,r,n)}function hS(e){return e instanceof xu||(e=Td(e)),e?(e=e.rgb(),new kn(e.r,e.g,e.b,e.opacity)):new kn}function Rm(e,t,r,n){return arguments.length===1?hS(e):new kn(e,t,r,n??1)}function kn(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}$f(kn,Rm,Yd(xu,{brighter:function(e){return e=e==null?Sf:Math.pow(Sf,e),new kn(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?xl:Math.pow(xl,e),new kn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:BC,formatHex:BC,formatRgb:zC,toString:zC}));function BC(){return"#"+Hx(this.r)+Hx(this.g)+Hx(this.b)}function zC(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function Hx(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function UC(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new fa(e,t,r,n)}function YF(e){if(e instanceof fa)return new fa(e.h,e.s,e.l,e.opacity);if(e instanceof xu||(e=Td(e)),!e)return new fa;if(e instanceof fa)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,l=a-i,s=(a+i)/2;return l?(t===a?o=(r-n)/l+(r<n)*6:r===a?o=(n-t)/l+2:o=(t-r)/l+4,l/=s<.5?a+i:2-a-i,o*=60):l=s>0&&s<1?0:o,new fa(o,l,s,e.opacity)}function Jw(e,t,r,n){return arguments.length===1?YF(e):new fa(e,t,r,n??1)}function fa(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}$f(fa,Jw,Yd(xu,{brighter:function(e){return e=e==null?Sf:Math.pow(Sf,e),new fa(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?xl:Math.pow(xl,e),new fa(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new kn(Vx(e>=240?e-240:e+120,i,n),Vx(e,i,n),Vx(e<120?e+240:e-120,i,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function Vx(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}var XF=Math.PI/180,QF=180/Math.PI,Nm=18,ZF=.96422,KF=1,JF=.82521,eR=4/29,ff=6/29,tR=3*ff*ff,ZV=ff*ff*ff;function rR(e){if(e instanceof ya)return new ya(e.l,e.a,e.b,e.opacity);if(e instanceof Xa)return nR(e);e instanceof kn||(e=hS(e));var t=Qx(e.r),r=Qx(e.g),n=Qx(e.b),i=qx((.2225045*t+.7168786*r+.0606169*n)/KF),a,o;return t===r&&r===n?a=o=i:(a=qx((.4360747*t+.3850649*r+.1430804*n)/ZF),o=qx((.0139322*t+.0971045*r+.7141733*n)/JF)),new ya(116*i-16,500*(a-i),200*(i-o),e.opacity)}function e_(e,t,r,n){return arguments.length===1?rR(e):new ya(e,t,r,n??1)}function ya(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}$f(ya,e_,Yd(xu,{brighter:function(e){return new ya(this.l+Nm*(e??1),this.a,this.b,this.opacity)},darker:function(e){return new ya(this.l-Nm*(e??1),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=ZF*Yx(t),e=KF*Yx(e),r=JF*Yx(r),new kn(Xx(3.1338561*t-1.6168667*e-.4906146*r),Xx(-.9787684*t+1.9161415*e+.033454*r),Xx(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));function qx(e){return e>ZV?Math.pow(e,1/3):e/tR+eR}function Yx(e){return e>ff?e*e*e:tR*(e-eR)}function Xx(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Qx(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function KV(e){if(e instanceof Xa)return new Xa(e.h,e.c,e.l,e.opacity);if(e instanceof ya||(e=rR(e)),e.a===0&&e.b===0)return new Xa(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*QF;return new Xa(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function t_(e,t,r,n){return arguments.length===1?KV(e):new Xa(e,t,r,n??1)}function Xa(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function nR(e){if(isNaN(e.h))return new ya(e.l,0,0,e.opacity);var t=e.h*XF;return new ya(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}$f(Xa,t_,Yd(xu,{brighter:function(e){return new Xa(this.h,this.c,this.l+Nm*(e??1),this.opacity)},darker:function(e){return new Xa(this.h,this.c,this.l-Nm*(e??1),this.opacity)},rgb:function(){return nR(this).rgb()}}));var iR=-.14861,dS=1.78277,pS=-.29227,Cg=-.90649,Cd=1.97294,jC=Cd*Cg,GC=Cd*dS,WC=dS*pS-Cg*iR;function JV(e){if(e instanceof hl)return new hl(e.h,e.s,e.l,e.opacity);e instanceof kn||(e=hS(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(WC*n+jC*t-GC*r)/(WC+jC-GC),a=n-i,o=(Cd*(r-i)-pS*a)/Cg,l=Math.sqrt(o*o+a*a)/(Cd*i*(1-i)),s=l?Math.atan2(o,a)*QF-120:NaN;return new hl(s<0?s+360:s,l,i,e.opacity)}function r_(e,t,r,n){return arguments.length===1?JV(e):new hl(e,t,r,n??1)}function hl(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}$f(hl,r_,Yd(xu,{brighter:function(e){return e=e==null?Sf:Math.pow(Sf,e),new hl(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?xl:Math.pow(xl,e),new hl(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*XF,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new kn(255*(t+r*(iR*n+dS*i)),255*(t+r*(pS*n+Cg*i)),255*(t+r*(Cd*n)),this.opacity)}}));function aR(e,t,r,n,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*n+o*i)/6}function oR(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],o=n>0?e[n-1]:2*i-a,l=n<t-1?e[n+2]:2*a-i;return aR((r-n/t)*t,o,i,a,l)}}function uR(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],a=e[n%t],o=e[(n+1)%t],l=e[(n+2)%t];return aR((r-n/t)*t,i,a,o,l)}}function Og(e){return function(){return e}}function lR(e,t){return function(r){return e+r*t}}function eq(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function kg(e,t){var r=t-e;return r?lR(e,r>180||r<-180?r-360*Math.round(r/360):r):Og(isNaN(e)?t:e)}function tq(e){return(e=+e)==1?yn:function(t,r){return r-t?eq(t,r,e):Og(isNaN(t)?r:t)}}function yn(e,t){var r=t-e;return r?lR(e,r):Og(isNaN(e)?t:e)}const n_=function e(t){var r=tq(t);function n(i,a){var o=r((i=Rm(i)).r,(a=Rm(a)).r),l=r(i.g,a.g),s=r(i.b,a.b),c=yn(i.opacity,a.opacity);return function(d){return i.r=o(d),i.g=l(d),i.b=s(d),i.opacity=c(d),i+""}}return n.gamma=e,n}(1);function sR(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),o,l;for(o=0;o<r;++o)l=Rm(t[o]),n[o]=l.r||0,i[o]=l.g||0,a[o]=l.b||0;return n=e(n),i=e(i),a=e(a),l.opacity=1,function(s){return l.r=n(s),l.g=i(s),l.b=a(s),l+""}}}var rq=sR(oR),nq=sR(uR);function vS(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function fR(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function iq(e,t){return(fR(t)?vS:cR)(e,t)}function cR(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=mS(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(l){for(o=0;o<n;++o)a[o]=i[o](l);return a}}function hR(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function la(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function dR(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=mS(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var i_=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Zx=new RegExp(i_.source,"g");function aq(e){return function(){return e}}function oq(e){return function(t){return e(t)+""}}function pR(e,t){var r=i_.lastIndex=Zx.lastIndex=0,n,i,a,o=-1,l=[],s=[];for(e=e+"",t=t+"";(n=i_.exec(e))&&(i=Zx.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),l[o]?l[o]+=a:l[++o]=a),(n=n[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,s.push({i:o,x:la(n,i)})),r=Zx.lastIndex;return r<t.length&&(a=t.slice(r),l[o]?l[o]+=a:l[++o]=a),l.length<2?s[0]?oq(s[0].x):aq(t):(t=s.length,function(c){for(var d=0,y;d<t;++d)l[(y=s[d]).i]=y.x(c);return l.join("")})}function mS(e,t){var r=typeof t,n;return t==null||r==="boolean"?Og(t):(r==="number"?la:r==="string"?(n=Td(t))?(t=n,n_):pR:t instanceof Td?n_:t instanceof Date?hR:fR(t)?vS:Array.isArray(t)?cR:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?dR:la)(e,t)}function uq(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}function lq(e,t){var r=kg(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}function sq(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var HC=180/Math.PI,a_={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function vR(e,t,r,n,i,a){var o,l,s;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(s=e*r+t*n)&&(r-=e*s,n-=t*s),(l=Math.sqrt(r*r+n*n))&&(r/=l,n/=l,s/=l),e*n<t*r&&(e=-e,t=-t,s=-s,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*HC,skewX:Math.atan(s)*HC,scaleX:o,scaleY:l}}var Sh,Kx,VC,t0;function fq(e){return e==="none"?a_:(Sh||(Sh=document.createElement("DIV"),Kx=document.documentElement,VC=document.defaultView),Sh.style.transform=e,e=VC.getComputedStyle(Kx.appendChild(Sh),null).getPropertyValue("transform"),Kx.removeChild(Sh),e=e.slice(7,-1).split(","),vR(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))}function cq(e){return e==null||(t0||(t0=document.createElementNS("http://www.w3.org/2000/svg","g")),t0.setAttribute("transform",e),!(e=t0.transform.baseVal.consolidate()))?a_:(e=e.matrix,vR(e.a,e.b,e.c,e.d,e.e,e.f))}function mR(e,t,r,n){function i(c){return c.length?c.pop()+" ":""}function a(c,d,y,g,m,E){if(c!==y||d!==g){var M=m.push("translate(",null,t,null,r);E.push({i:M-4,x:la(c,y)},{i:M-2,x:la(d,g)})}else(y||g)&&m.push("translate("+y+t+g+r)}function o(c,d,y,g){c!==d?(c-d>180?d+=360:d-c>180&&(c+=360),g.push({i:y.push(i(y)+"rotate(",null,n)-2,x:la(c,d)})):d&&y.push(i(y)+"rotate("+d+n)}function l(c,d,y,g){c!==d?g.push({i:y.push(i(y)+"skewX(",null,n)-2,x:la(c,d)}):d&&y.push(i(y)+"skewX("+d+n)}function s(c,d,y,g,m,E){if(c!==y||d!==g){var M=m.push(i(m)+"scale(",null,",",null,")");E.push({i:M-4,x:la(c,y)},{i:M-2,x:la(d,g)})}else(y!==1||g!==1)&&m.push(i(m)+"scale("+y+","+g+")")}return function(c,d){var y=[],g=[];return c=e(c),d=e(d),a(c.translateX,c.translateY,d.translateX,d.translateY,y,g),o(c.rotate,d.rotate,y,g),l(c.skewX,d.skewX,y,g),s(c.scaleX,c.scaleY,d.scaleX,d.scaleY,y,g),c=d=null,function(m){for(var E=-1,M=g.length,b;++E<M;)y[(b=g[E]).i]=b.x(m);return y.join("")}}}var hq=mR(fq,"px, ","px)","deg)"),dq=mR(cq,", ",")",")"),Eh=Math.SQRT2,Jx=2,qC=4,pq=1e-12;function YC(e){return((e=Math.exp(e))+1/e)/2}function vq(e){return((e=Math.exp(e))-1/e)/2}function mq(e){return((e=Math.exp(2*e))-1)/(e+1)}function gq(e,t){var r=e[0],n=e[1],i=e[2],a=t[0],o=t[1],l=t[2],s=a-r,c=o-n,d=s*s+c*c,y,g;if(d<pq)g=Math.log(l/i)/Eh,y=function(_){return[r+_*s,n+_*c,i*Math.exp(Eh*_*g)]};else{var m=Math.sqrt(d),E=(l*l-i*i+qC*d)/(2*i*Jx*m),M=(l*l-i*i-qC*d)/(2*l*Jx*m),b=Math.log(Math.sqrt(E*E+1)-E),w=Math.log(Math.sqrt(M*M+1)-M);g=(w-b)/Eh,y=function(_){var C=_*g,T=YC(b),R=i/(Jx*m)*(T*mq(Eh*C+b)-vq(b));return[r+R*s,n+R*c,i*T/YC(Eh*C+b)]}}return y.duration=g*1e3,y}function gR(e){return function(t,r){var n=e((t=Jw(t)).h,(r=Jw(r)).h),i=yn(t.s,r.s),a=yn(t.l,r.l),o=yn(t.opacity,r.opacity);return function(l){return t.h=n(l),t.s=i(l),t.l=a(l),t.opacity=o(l),t+""}}}const yq=gR(kg);var xq=gR(yn);function bq(e,t){var r=yn((e=e_(e)).l,(t=e_(t)).l),n=yn(e.a,t.a),i=yn(e.b,t.b),a=yn(e.opacity,t.opacity);return function(o){return e.l=r(o),e.a=n(o),e.b=i(o),e.opacity=a(o),e+""}}function yR(e){return function(t,r){var n=e((t=t_(t)).h,(r=t_(r)).h),i=yn(t.c,r.c),a=yn(t.l,r.l),o=yn(t.opacity,r.opacity);return function(l){return t.h=n(l),t.c=i(l),t.l=a(l),t.opacity=o(l),t+""}}}const wq=yR(kg);var _q=yR(yn);function xR(e){return function t(r){r=+r;function n(i,a){var o=e((i=r_(i)).h,(a=r_(a)).h),l=yn(i.s,a.s),s=yn(i.l,a.l),c=yn(i.opacity,a.opacity);return function(d){return i.h=o(d),i.s=l(d),i.l=s(Math.pow(d,r)),i.opacity=c(d),i+""}}return n.gamma=t,n}(1)}const Sq=xR(kg);var Eq=xR(yn);function Aq(e,t){for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var l=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[l](o-l)}}function Tq(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e(n/(t-1));return r}const Cq=Object.freeze(Object.defineProperty({__proto__:null,interpolate:mS,interpolateArray:iq,interpolateBasis:oR,interpolateBasisClosed:uR,interpolateDate:hR,interpolateDiscrete:uq,interpolateHue:lq,interpolateNumber:la,interpolateNumberArray:vS,interpolateObject:dR,interpolateRound:sq,interpolateString:pR,interpolateTransformCss:hq,interpolateTransformSvg:dq,interpolateZoom:gq,interpolateRgb:n_,interpolateRgbBasis:rq,interpolateRgbBasisClosed:nq,interpolateHsl:yq,interpolateHslLong:xq,interpolateLab:bq,interpolateHcl:wq,interpolateHclLong:_q,interpolateCubehelix:Sq,interpolateCubehelixLong:Eq,piecewise:Aq,quantize:Tq},Symbol.toStringTag,{value:"Module"})),ore=El(Cq);var Oq="Expected a function",bR="__lodash_hash_undefined__",wR=1/0,kq=9007199254740991,Mq="[object Function]",Iq="[object GeneratorFunction]",Pq="[object Symbol]",Fq=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Rq=/^\w*$/,Nq=/^\./,Lq=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dq=/[\\^$.*+?()[\]{}|]/g,$q=/\\(\\)?/g,Bq=/^\[object .+?Constructor\]$/,zq=/^(?:0|[1-9]\d*)$/,Uq=typeof Ar=="object"&&Ar&&Ar.Object===Object&&Ar,jq=typeof self=="object"&&self&&self.Object===Object&&self,gS=Uq||jq||Function("return this")();function Gq(e,t){return e?.[t]}function Wq(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var Hq=Array.prototype,Vq=Function.prototype,_R=Object.prototype,eb=gS["__core-js_shared__"],XC=function(){var e=/[^.]+$/.exec(eb&&eb.keys&&eb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),SR=Vq.toString,Mg=_R.hasOwnProperty,ER=_R.toString,qq=RegExp("^"+SR.call(Mg).replace(Dq,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),QC=gS.Symbol,Yq=Hq.splice,Xq=AR(gS,"Map"),Od=AR(Object,"create"),ZC=QC?QC.prototype:void 0,KC=ZC?ZC.toString:void 0;function bl(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Qq(){this.__data__=Od?Od(null):{}}function Zq(e){return this.has(e)&&delete this.__data__[e]}function Kq(e){var t=this.__data__;if(Od){var r=t[e];return r===bR?void 0:r}return Mg.call(t,e)?t[e]:void 0}function Jq(e){var t=this.__data__;return Od?t[e]!==void 0:Mg.call(t,e)}function eY(e,t){var r=this.__data__;return r[e]=Od&&t===void 0?bR:t,this}bl.prototype.clear=Qq;bl.prototype.delete=Zq;bl.prototype.get=Kq;bl.prototype.has=Jq;bl.prototype.set=eY;function Bf(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function tY(){this.__data__=[]}function rY(e){var t=this.__data__,r=Ig(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Yq.call(t,r,1),!0}function nY(e){var t=this.__data__,r=Ig(t,e);return r<0?void 0:t[r][1]}function iY(e){return Ig(this.__data__,e)>-1}function aY(e,t){var r=this.__data__,n=Ig(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}Bf.prototype.clear=tY;Bf.prototype.delete=rY;Bf.prototype.get=nY;Bf.prototype.has=iY;Bf.prototype.set=aY;function Nl(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function oY(){this.__data__={hash:new bl,map:new(Xq||Bf),string:new bl}}function uY(e){return Pg(this,e).delete(e)}function lY(e){return Pg(this,e).get(e)}function sY(e){return Pg(this,e).has(e)}function fY(e,t){return Pg(this,e).set(e,t),this}Nl.prototype.clear=oY;Nl.prototype.delete=uY;Nl.prototype.get=lY;Nl.prototype.has=sY;Nl.prototype.set=fY;function cY(e,t,r){var n=e[t];(!(Mg.call(e,t)&&TR(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function Ig(e,t){for(var r=e.length;r--;)if(TR(e[r][0],t))return r;return-1}function hY(e){if(!Lm(e)||xY(e))return!1;var t=SY(e)||Wq(e)?qq:Bq;return t.test(_Y(e))}function dY(e,t,r,n){if(!Lm(e))return e;t=gY(t,e)?[t]:vY(t);for(var i=-1,a=t.length,o=a-1,l=e;l!=null&&++i<a;){var s=wY(t[i]),c=r;if(i!=o){var d=l[s];c=n?n(d,s,l):void 0,c===void 0&&(c=Lm(d)?d:mY(t[i+1])?[]:{})}cY(l,s,c),l=l[s]}return e}function pY(e){if(typeof e=="string")return e;if(xS(e))return KC?KC.call(e):"";var t=e+"";return t=="0"&&1/e==-wR?"-0":t}function vY(e){return CR(e)?e:bY(e)}function Pg(e,t){var r=e.__data__;return yY(t)?r[typeof t=="string"?"string":"hash"]:r.map}function AR(e,t){var r=Gq(e,t);return hY(r)?r:void 0}function mY(e,t){return t=t??kq,!!t&&(typeof e=="number"||zq.test(e))&&e>-1&&e%1==0&&e<t}function gY(e,t){if(CR(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||xS(e)?!0:Rq.test(e)||!Fq.test(e)||t!=null&&e in Object(t)}function yY(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function xY(e){return!!XC&&XC in e}var bY=yS(function(e){e=AY(e);var t=[];return Nq.test(e)&&t.push(""),e.replace(Lq,function(r,n,i,a){t.push(i?a.replace($q,"$1"):n||r)}),t});function wY(e){if(typeof e=="string"||xS(e))return e;var t=e+"";return t=="0"&&1/e==-wR?"-0":t}function _Y(e){if(e!=null){try{return SR.call(e)}catch{}try{return e+""}catch{}}return""}function yS(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(Oq);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o),o};return r.cache=new(yS.Cache||Nl),r}yS.Cache=Nl;function TR(e,t){return e===t||e!==e&&t!==t}var CR=Array.isArray;function SY(e){var t=Lm(e)?ER.call(e):"";return t==Mq||t==Iq}function Lm(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function EY(e){return!!e&&typeof e=="object"}function xS(e){return typeof e=="symbol"||EY(e)&&ER.call(e)==Pq}function AY(e){return e==null?"":pY(e)}function TY(e,t,r){return e==null?e:dY(e,t,r)}var ure=TY,Fg={exports:{}},Xd={};/** @license React v17.0.2
|
|
365
|
-
* react-jsx-runtime.production.min.js
|
|
366
|
-
*
|
|
367
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
368
|
-
*
|
|
369
|
-
* This source code is licensed under the MIT license found in the
|
|
370
|
-
* LICENSE file in the root directory of this source tree.
|
|
371
|
-
*/var CY=Kt.exports,OR=60103;Xd.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var JC=Symbol.for;OR=JC("react.element"),Xd.Fragment=JC("react.fragment")}var OY=CY.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,kY=Object.prototype.hasOwnProperty,MY={key:!0,ref:!0,__self:!0,__source:!0};function kR(e,t,r){var n,i={},a=null,o=null;r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)kY.call(t,n)&&!MY.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:OR,type:e,key:a,ref:o,props:i,_owner:OY.current}}Xd.jsx=kR;Xd.jsxs=kR;(function(e){e.exports=Xd})(Fg);const lre=Fg.exports.Fragment,xa=Fg.exports.jsx,IY=Fg.exports.jsxs;var PY=Rl,MR=function(e,t,r){var n;return isNaN(e)?(n=t,n>=0?r&&n?n-1:n:1):e===!1?!1:PY(e)},Ll={},IR={exports:{}};(function(e){var t=mg,r=rS,n=oo,i=Error.captureStackTrace;e.exports=function(a){var o=new Error(a),l=arguments[1],s=arguments[2];return n(s)||r(l)&&(s=l,l=null),n(s)&&t(o,s),n(l)&&(o.code=l),i&&i(o,e.exports),o}})(IR);var Dm={exports:{}},tb,eO;function PR(){if(eO)return tb;eO=1;var e=Qi,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols;return tb=function(a,o){var l,s=Object(e(o));if(a=Object(e(a)),n(s).forEach(function(c){try{t(a,c,r(o,c))}catch(d){l=d}}),typeof i=="function"&&i(s).forEach(function(c){try{t(a,c,r(o,c))}catch(d){l=d}}),l!==void 0)throw l;return a},tb}var tO=Rl,FR=function(e,t){return t},rb,rO,nO,iO;try{Object.defineProperty(FR,"length",{configurable:!0,writable:!1,enumerable:!1,value:1})}catch{}FR.length===1?(rb={configurable:!0,writable:!1,enumerable:!1},rO=Object.defineProperty,Dm.exports=function(e,t){return t=tO(t),e.length===t?e:(rb.value=t,rO(e,"length",rb))}):(iO=PR(),nO=function(){var e=[];return function(t){var r,n=0;if(e[t])return e[t];for(r=[];t--;)r.push("a"+(++n).toString(36));return new Function("fn","return function ("+r.join(", ")+") { return fn.apply(this, arguments); };")}}(),Dm.exports=function(e,t){var r;if(t=tO(t),e.length===t)return e;r=nO(t)(e);try{iO(r,e)}catch{}return r});var o_={exports:{}};(function(e,t){var r=Fi.exports,n=Sa,i=Function.prototype.apply,a=Function.prototype.call,o=Object.create,l=Object.defineProperty,s=Object.defineProperties,c=Object.prototype.hasOwnProperty,d={configurable:!0,enumerable:!1,writable:!0},y,g,m,E,M,b,w;y=function(_,C){var T;return n(C),c.call(this,"__ee__")?T=this.__ee__:(T=d.value=o(null),l(this,"__ee__",d),d.value=null),T[_]?typeof T[_]=="object"?T[_].push(C):T[_]=[T[_],C]:T[_]=C,this},g=function(_,C){var T,R;return n(C),R=this,y.call(this,_,T=function(){m.call(R,_,T),i.call(C,this,arguments)}),T.__eeOnceListener__=C,this},m=function(_,C){var T,R,D,Y;if(n(C),!c.call(this,"__ee__"))return this;if(T=this.__ee__,!T[_])return this;if(R=T[_],typeof R=="object")for(Y=0;D=R[Y];++Y)(D===C||D.__eeOnceListener__===C)&&(R.length===2?T[_]=R[Y?0:1]:R.splice(Y,1));else(R===C||R.__eeOnceListener__===C)&&delete T[_];return this},E=function(_){var C,T,R,D,Y;if(!!c.call(this,"__ee__")&&(D=this.__ee__[_],!!D))if(typeof D=="object"){for(T=arguments.length,Y=new Array(T-1),C=1;C<T;++C)Y[C-1]=arguments[C];for(D=D.slice(),C=0;R=D[C];++C)i.call(R,this,Y)}else switch(arguments.length){case 1:a.call(D,this);break;case 2:a.call(D,this,arguments[1]);break;case 3:a.call(D,this,arguments[1],arguments[2]);break;default:for(T=arguments.length,Y=new Array(T-1),C=1;C<T;++C)Y[C-1]=arguments[C];i.call(D,this,Y)}},M={on:y,once:g,off:m,emit:E},b={on:r(y),once:r(g),off:r(m),emit:r(E)},w=s({},b),e.exports=t=function(_){return _==null?o(w):s(Object(_),b)},t.methods=M})(o_,o_.exports);var FY=bg(),RY=Array.isArray,NY=function(e){return RY(e)?e:FY(e)},LY=NY,DY=oo,$Y=Sa,BY=Array.prototype.slice,RR;RR=function(e){return this.map(function(t,r){return t?t(e[r]):e[r]}).concat(BY.call(e,this.length))};var zY=function(e){return e=LY(e),e.forEach(function(t){DY(t)&&$Y(t)}),RR.bind(e)},r0=Sa,UY=function(e){var t;return typeof e=="function"?{set:e,get:e}:(t={get:r0(e.get)},e.set!==void 0?(t.set=r0(e.set),e.delete&&(t.delete=r0(e.delete)),e.clear&&(t.clear=r0(e.clear)),t):(t.set=t.get,t))},n0=IR.exports,i0=Dm.exports,Ah=Fi.exports,NR=o_.exports.methods,jY=zY,GY=UY,nb=Function.prototype.apply,ib=Function.prototype.call,aO=Object.create,WY=Object.defineProperties,HY=NR.on,VY=NR.emit,qY=function(e,t,r){var n=aO(null),i,a,o,l,s,c,d,y,g,m,E,M,b,w,_;return t!==!1?a=t:isNaN(e.length)?a=1:a=e.length,r.normalizer&&(m=GY(r.normalizer),o=m.get,l=m.set,s=m.delete,c=m.clear),r.resolvers!=null&&(_=jY(r.resolvers)),o?w=i0(function(C){var T,R,D=arguments;if(_&&(D=_(D)),T=o(D),T!==null&&hasOwnProperty.call(n,T))return E&&i.emit("get",T,D,this),n[T];if(D.length===1?R=ib.call(e,this,D[0]):R=nb.call(e,this,D),T===null){if(T=o(D),T!==null)throw n0("Circular invocation","CIRCULAR_INVOCATION");T=l(D)}else if(hasOwnProperty.call(n,T))throw n0("Circular invocation","CIRCULAR_INVOCATION");return n[T]=R,M&&i.emit("set",T,null,R),R},a):t===0?w=function(){var C;if(hasOwnProperty.call(n,"data"))return E&&i.emit("get","data",arguments,this),n.data;if(arguments.length?C=nb.call(e,this,arguments):C=ib.call(e,this),hasOwnProperty.call(n,"data"))throw n0("Circular invocation","CIRCULAR_INVOCATION");return n.data=C,M&&i.emit("set","data",null,C),C}:w=function(C){var T,R=arguments,D;if(_&&(R=_(arguments)),D=String(R[0]),hasOwnProperty.call(n,D))return E&&i.emit("get",D,R,this),n[D];if(R.length===1?T=ib.call(e,this,R[0]):T=nb.call(e,this,R),hasOwnProperty.call(n,D))throw n0("Circular invocation","CIRCULAR_INVOCATION");return n[D]=T,M&&i.emit("set",D,null,T),T},i={original:e,memoized:w,profileName:r.profileName,get:function(C){return _&&(C=_(C)),o?o(C):String(C[0])},has:function(C){return hasOwnProperty.call(n,C)},delete:function(C){var T;!hasOwnProperty.call(n,C)||(s&&s(C),T=n[C],delete n[C],b&&i.emit("delete",C,T))},clear:function(){var C=n;c&&c(),n=aO(null),i.emit("clear",C)},on:function(C,T){return C==="get"?E=!0:C==="set"?M=!0:C==="delete"&&(b=!0),HY.call(this,C,T)},emit:VY,updateEnv:function(){e=i.original}},o?d=i0(function(C){var T,R=arguments;_&&(R=_(R)),T=o(R),T!==null&&i.delete(T)},a):t===0?d=function(){return i.delete("data")}:d=function(C){return _&&(C=_(arguments)[0]),i.delete(C)},y=i0(function(){var C,T=arguments;return t===0?n.data:(_&&(T=_(T)),o?C=o(T):C=String(T[0]),n[C])}),g=i0(function(){var C,T=arguments;return t===0?i.has("data"):(_&&(T=_(T)),o?C=o(T):C=String(T[0]),C===null?!1:i.has(C))}),WY(w,{__memoized__:Ah(!0),delete:Ah(d),clear:Ah(i.clear),_get:Ah(y),_has:Ah(g)}),i},YY=Sa,XY=wg,oO=Ll,QY=qY,ZY=MR,KY=function e(t){var r,n,i;if(YY(t),r=Object(arguments[1]),r.async&&r.promise)throw new Error("Options 'async' and 'promise' cannot be used together");return hasOwnProperty.call(t,"__memoized__")&&!r.force?t:(n=ZY(r.length,t.length,r.async&&oO.async),i=QY(t,n,r),XY(oO,function(a,o){r[o]&&a(r[o],i,r)}),e.__profiler__&&e.__profiler__(i),i.updateEnv(),i.memoized)},ab,uO;function JY(){return uO||(uO=1,ab=function(e){var t,r,n=e.length;if(!n)return"";for(t=String(e[r=0]);--n;)t+=""+e[++r];return t}),ab}var ob,lO;function eX(){return lO||(lO=1,ob=function(e){return e?function(t){for(var r=String(t[0]),n=0,i=e;--i;)r+=""+t[++n];return r}:function(){return""}}),ob}var ub,sO;function tX(){return sO||(sO=1,ub=function(){var e=Number.isNaN;return typeof e!="function"?!1:!e({})&&e(NaN)&&!e(34)}),ub}var lb,fO;function rX(){return fO||(fO=1,lb=function(e){return e!==e}),lb}var sb,cO;function nX(){return cO||(cO=1,sb=tX()()?Number.isNaN:rX()),sb}var fb,hO;function bS(){if(hO)return fb;hO=1;var e=nX(),t=Rl,r=Qi,n=Array.prototype.indexOf,i=Object.prototype.hasOwnProperty,a=Math.abs,o=Math.floor;return fb=function(l){var s,c,d,y;if(!e(l))return n.apply(this,arguments);for(c=t(r(this).length),d=arguments[1],isNaN(d)?d=0:d>=0?d=o(d):d=t(this.length)-o(a(d)),s=d;s<c;++s)if(i.call(this,s)&&(y=this[s],e(y)))return s;return-1},fb}var cb,dO;function iX(){if(dO)return cb;dO=1;var e=bS(),t=Object.create;return cb=function(){var r=0,n=[],i=t(null);return{get:function(a){var o=0,l=n,s,c=a.length;if(c===0)return l[c]||null;if(l=l[c]){for(;o<c-1;){if(s=e.call(l[0],a[o]),s===-1)return null;l=l[1][s],++o}return s=e.call(l[0],a[o]),s===-1?null:l[1][s]||null}return null},set:function(a){var o=0,l=n,s,c=a.length;if(c===0)l[c]=++r;else{for(l[c]||(l[c]=[[],[]]),l=l[c];o<c-1;)s=e.call(l[0],a[o]),s===-1&&(s=l[0].push(a[o])-1,l[1].push([[],[]])),l=l[1][s],++o;s=e.call(l[0],a[o]),s===-1&&(s=l[0].push(a[o])-1),l[1][s]=++r}return i[r]=a,r},delete:function(a){var o=0,l=n,s,c=i[a],d=c.length,y=[];if(d===0)delete l[d];else if(l=l[d]){for(;o<d-1;){if(s=e.call(l[0],c[o]),s===-1)return;y.push(l,s),l=l[1][s],++o}if(s=e.call(l[0],c[o]),s===-1)return;for(a=l[1][s],l[0].splice(s,1),l[1].splice(s,1);!l[0].length&&y.length;)s=y.pop(),l=y.pop(),l[0].splice(s,1),l[1].splice(s,1)}delete i[a]},clear:function(){n=[],i=t(null)}}},cb}var hb,pO;function aX(){if(pO)return hb;pO=1;var e=bS();return hb=function(){var t=0,r=[],n=[];return{get:function(i){var a=e.call(r,i[0]);return a===-1?null:n[a]},set:function(i){return r.push(i[0]),n.push(++t),t},delete:function(i){var a=e.call(n,i);a!==-1&&(r.splice(a,1),n.splice(a,1))},clear:function(){r=[],n=[]}}},hb}var db,vO;function oX(){if(vO)return db;vO=1;var e=bS(),t=Object.create;return db=function(r){var n=0,i=[[],[]],a=t(null);return{get:function(o){for(var l=0,s=i,c;l<r-1;){if(c=e.call(s[0],o[l]),c===-1)return null;s=s[1][c],++l}return c=e.call(s[0],o[l]),c===-1?null:s[1][c]||null},set:function(o){for(var l=0,s=i,c;l<r-1;)c=e.call(s[0],o[l]),c===-1&&(c=s[0].push(o[l])-1,s[1].push([[],[]])),s=s[1][c],++l;return c=e.call(s[0],o[l]),c===-1&&(c=s[0].push(o[l])-1),s[1][c]=++n,a[n]=o,n},delete:function(o){for(var l=0,s=i,c,d=[],y=a[o];l<r-1;){if(c=e.call(s[0],y[l]),c===-1)return;d.push(s,c),s=s[1][c],++l}if(c=e.call(s[0],y[l]),c!==-1){for(o=s[1][c],s[0].splice(c,1),s[1].splice(c,1);!s[0].length&&d.length;)c=d.pop(),s=d.pop(),s[0].splice(c,1),s[1].splice(c,1);delete a[o]}},clear:function(){i=[[],[]],a=t(null)}}},db}var mO={},pb,gO;function wS(){if(gO)return pb;gO=1;var e=function(r){if(typeof r!="function")throw new TypeError(r+" is not a function");return r},t=function(r){var n=document.createTextNode(""),i,a,o=0;return new r(function(){var l;if(i)a&&(i=a.concat(i));else{if(!a)return;i=a}if(a=i,i=null,typeof a=="function"){l=a,a=null,l();return}for(n.data=o=++o%2;a;)l=a.shift(),a.length||(a=null),l()}).observe(n,{characterData:!0}),function(l){if(e(l),i){typeof i=="function"?i=[i,l]:i.push(l);return}i=l,n.data=o=++o%2}};return pb=function(){if(typeof process=="object"&&process&&typeof process.nextTick=="function")return process.nextTick;if(typeof queueMicrotask=="function")return function(r){queueMicrotask(e(r))};if(typeof document=="object"&&document){if(typeof MutationObserver=="function")return t(MutationObserver);if(typeof WebKitMutationObserver=="function")return t(WebKitMutationObserver)}return typeof setImmediate=="function"?function(r){setImmediate(e(r))}:typeof setTimeout=="function"||typeof setTimeout=="object"?function(r){setTimeout(e(r),0)}:null}(),pb}var yO;function uX(){if(yO)return mO;yO=1;var e=bg(),t=oS(),r=PR(),n=Dm.exports,i=wS(),a=Array.prototype.slice,o=Function.prototype.apply,l=Object.create;return Ll.async=function(s,c){var d=l(null),y=l(null),g=c.memoized,m=c.original,E,M,b;c.memoized=n(function(w){var _=arguments,C=_[_.length-1];return typeof C=="function"&&(E=C,_=a.call(_,0,-1)),g.apply(M=this,b=_)},g);try{r(c.memoized,g)}catch{}c.on("get",function(w){var _,C,T;if(!!E){if(d[w]){typeof d[w]=="function"?d[w]=[d[w],E]:d[w].push(E),E=null;return}_=E,C=M,T=b,E=M=b=null,i(function(){var R;hasOwnProperty.call(y,w)?(R=y[w],c.emit("getasync",w,T,C),o.call(_,R.context,R.args)):(E=_,M=C,b=T,g.apply(C,T))})}}),c.original=function(){var w,_,C,T;return E?(w=e(arguments),_=function R(D){var Y,j,re=R.id;if(re==null){i(o.bind(R,this,arguments));return}if(delete R.id,Y=d[re],delete d[re],!!Y)return j=e(arguments),c.has(re)&&(D?c.delete(re):(y[re]={context:this,args:j},c.emit("setasync",re,typeof Y=="function"?1:Y.length))),typeof Y=="function"?T=o.call(Y,this,j):Y.forEach(function(Se){T=o.call(Se,this,j)},this),T},C=E,E=M=b=null,w.push(_),T=o.call(m,this,w),_.cb=C,E=_,T):o.call(m,this,arguments)},c.on("set",function(w){if(!E){c.delete(w);return}d[w]?typeof d[w]=="function"?d[w]=[d[w],E.cb]:d[w].push(E.cb):d[w]=E.cb,delete E.cb,E.id=w,E=null}),c.on("delete",function(w){var _;hasOwnProperty.call(d,w)||!y[w]||(_=y[w],delete y[w],c.emit("deleteasync",w,a.call(_.args,1)))}),c.on("clear",function(){var w=y;y=l(null),c.emit("clearasync",t(w,function(_){return a.call(_.args,1)}))})},mO}var xO={},vb,bO;function lX(){if(bO)return vb;bO=1;var e=Array.prototype.forEach,t=Object.create;return vb=function(r){var n=t(null);return e.call(arguments,function(i){n[i]=!0}),n},vb}var mb,wO;function LR(){return wO||(wO=1,mb=function(e){return typeof e=="function"}),mb}var gb,_O;function sX(){if(_O)return gb;_O=1;var e=LR();return gb=function(t){try{return t&&e(t.toString)?t.toString():String(t)}catch{throw new TypeError("Passed argument cannot be stringifed")}},gb}var yb,SO;function fX(){if(SO)return yb;SO=1;var e=Qi,t=sX();return yb=function(r){return t(e(r))},yb}var xb,EO;function cX(){if(EO)return xb;EO=1;var e=LR();return xb=function(t){try{return t&&e(t.toString)?t.toString():String(t)}catch{return"<Non-coercible to string value>"}},xb}var bb,AO;function hX(){if(AO)return bb;AO=1;var e=cX(),t=/[\n\r\u2028\u2029]/g;return bb=function(r){var n=e(r);return n.length>100&&(n=n.slice(0,99)+"\u2026"),n=n.replace(t,function(i){return JSON.stringify(i).slice(1,-1)}),n},bb}var a0={exports:{}},TO;function DR(){if(TO)return a0.exports;TO=1,a0.exports=e,a0.exports.default=e;function e(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}return a0.exports}var CO;function dX(){if(CO)return xO;CO=1;var e=oS(),t=lX(),r=fX(),n=hX(),i=DR(),a=wS(),o=Object.create,l=t("then","then:finally","done","done:finally");return Ll.promise=function(s,c){var d=o(null),y=o(null),g=o(null);if(s===!0)s=null;else if(s=r(s),!l[s])throw new TypeError("'"+n(s)+"' is not valid promise mode");c.on("set",function(m,E,M){var b=!1;if(!i(M)){y[m]=M,c.emit("setasync",m,1);return}d[m]=1,g[m]=M;var w=function(R){var D=d[m];if(b)throw new Error(`Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode)
|
|
372
|
-
Consider to rely on 'then' or 'done' mode instead.`);!D||(delete d[m],y[m]=R,c.emit("setasync",m,D))},_=function(){b=!0,d[m]&&(delete d[m],delete g[m],c.delete(m))},C=s;if(C||(C="then"),C==="then"){var T=function(){a(_)};M=M.then(function(R){a(w.bind(this,R))},T),typeof M.finally=="function"&&M.finally(T)}else if(C==="done"){if(typeof M.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");M.done(w,_)}else if(C==="done:finally"){if(typeof M.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof M.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");M.done(w),M.finally(_)}}),c.on("get",function(m,E,M){var b;if(d[m]){++d[m];return}b=g[m];var w=function(){c.emit("getasync",m,E,M)};i(b)?typeof b.done=="function"?b.done(w):b.then(function(){a(w)}):w()}),c.on("delete",function(m){if(delete g[m],d[m]){delete d[m];return}if(!!hasOwnProperty.call(y,m)){var E=y[m];delete y[m],c.emit("deleteasync",m,[E])}}),c.on("clear",function(){var m=y;y=o(null),d=o(null),g=o(null),c.emit("clearasync",e(m,function(E){return[E]}))})},xO}var OO={},kO;function pX(){if(kO)return OO;kO=1;var e=Sa,t=wg,r=Ll,n=Function.prototype.apply;return r.dispose=function(i,a,o){var l;if(e(i),o.async&&r.async||o.promise&&r.promise){a.on("deleteasync",l=function(s,c){n.call(i,null,c)}),a.on("clearasync",function(s){t(s,function(c,d){l(d,c)})});return}a.on("delete",l=function(s,c){i(c)}),a.on("clear",function(s){t(s,function(c,d){l(d,c)})})},OO}var MO={},wb,IO;function vX(){return IO||(IO=1,wb=2147483647),wb}var _b,PO;function mX(){if(PO)return _b;PO=1;var e=Rl,t=vX();return _b=function(r){if(r=e(r),r>t)throw new TypeError(r+" exceeds maximum possible timeout");return r},_b}var FO;function gX(){if(FO)return MO;FO=1;var e=bg(),t=wg,r=wS(),n=DR(),i=mX(),a=Ll,o=Function.prototype,l=Math.max,s=Math.min,c=Object.create;return a.maxAge=function(d,y,g){var m,E,M,b;d=i(d),d&&(m=c(null),E=g.async&&a.async||g.promise&&a.promise?"async":"",y.on("set"+E,function(w){m[w]=setTimeout(function(){y.delete(w)},d),typeof m[w].unref=="function"&&m[w].unref(),b&&(b[w]&&b[w]!=="nextTick"&&clearTimeout(b[w]),b[w]=setTimeout(function(){delete b[w]},M),typeof b[w].unref=="function"&&b[w].unref())}),y.on("delete"+E,function(w){clearTimeout(m[w]),delete m[w],b&&(b[w]!=="nextTick"&&clearTimeout(b[w]),delete b[w])}),g.preFetch&&(g.preFetch===!0||isNaN(g.preFetch)?M=.333:M=l(s(Number(g.preFetch),1),0),M&&(b={},M=(1-M)*d,y.on("get"+E,function(w,_,C){b[w]||(b[w]="nextTick",r(function(){var T;b[w]==="nextTick"&&(delete b[w],y.delete(w),g.async&&(_=e(_),_.push(o)),T=y.memoized.apply(C,_),g.promise&&n(T)&&(typeof T.done=="function"?T.done(o,o):T.then(o,o)))}))}))),y.on("clear"+E,function(){t(m,function(w){clearTimeout(w)}),m={},b&&(t(b,function(w){w!=="nextTick"&&clearTimeout(w)}),b={})}))},MO}var RO={},Sb,NO;function yX(){if(NO)return Sb;NO=1;var e=Rl,t=Object.create,r=Object.prototype.hasOwnProperty;return Sb=function(n){var i=0,a=1,o=t(null),l=t(null),s=0,c;return n=e(n),{hit:function(d){var y=l[d],g=++s;if(o[g]=d,l[d]=g,!y)return++i,i<=n?void 0:(d=o[a],c(d),d);if(delete o[y],a===y)for(;!r.call(o,++a););},delete:c=function(d){var y=l[d];if(!!y&&(delete o[y],delete l[d],--i,a===y)){if(!i){s=0,a=1;return}for(;!r.call(o,++a););}},clear:function(){i=0,a=1,o=t(null),l=t(null),s=0}}},Sb}var LO;function xX(){if(LO)return RO;LO=1;var e=Rl,t=yX(),r=Ll;return r.max=function(n,i,a){var o,l,s;n=e(n),n&&(l=t(n),o=a.async&&r.async||a.promise&&r.promise?"async":"",i.on("set"+o,s=function(c){c=l.hit(c),c!==void 0&&i.delete(c)}),i.on("get"+o,s),i.on("delete"+o,l.delete),i.on("clear"+o,l.clear))},RO}var DO={},$O;function bX(){if($O)return DO;$O=1;var e=Fi.exports,t=Ll,r=Object.create,n=Object.defineProperties;return t.refCounter=function(i,a,o){var l,s;l=r(null),s=o.async&&t.async||o.promise&&t.promise?"async":"",a.on("set"+s,function(c,d){l[c]=d||1}),a.on("get"+s,function(c){++l[c]}),a.on("delete"+s,function(c){delete l[c]}),a.on("clear"+s,function(){l={}}),n(a.memoized,{deleteRef:e(function(){var c=a.get(arguments);return c===null||!l[c]?null:--l[c]?!1:(a.delete(c),!0)}),getRefCount:e(function(){var c=a.get(arguments);return c===null||!l[c]?0:l[c]})})},DO}var wX=aS,_X=MR,SX=KY,sre=function(e){var t=wX(arguments[1]),r;return t.normalizer||(r=t.length=_X(t.length,e.length,t.async),r!==0&&(t.primitive?r===!1?t.normalizer=JY():r>1&&(t.normalizer=eX()(r)):r===!1?t.normalizer=iX()():r===1?t.normalizer=aX()():t.normalizer=oX()(r))),t.async&&uX(),t.promise&&dX(),t.dispose&&pX(),t.maxAge&&gX(),t.max&&xX(),t.refCounter&&bX(),SX(e,t)},EX="Expected a function",BO=0/0,AX="[object Symbol]",TX=/^\s+|\s+$/g,CX=/^[-+]0x[0-9a-f]+$/i,OX=/^0b[01]+$/i,kX=/^0o[0-7]+$/i,MX=parseInt,IX=typeof Ar=="object"&&Ar&&Ar.Object===Object&&Ar,PX=typeof self=="object"&&self&&self.Object===Object&&self,FX=IX||PX||Function("return this")(),RX=Object.prototype,NX=RX.toString,LX=Math.max,DX=Math.min,Eb=function(){return FX.Date.now()};function $X(e,t,r){var n,i,a,o,l,s,c=0,d=!1,y=!1,g=!0;if(typeof e!="function")throw new TypeError(EX);t=zO(t)||0,u_(r)&&(d=!!r.leading,y="maxWait"in r,a=y?LX(zO(r.maxWait)||0,t):a,g="trailing"in r?!!r.trailing:g);function m(D){var Y=n,j=i;return n=i=void 0,c=D,o=e.apply(j,Y),o}function E(D){return c=D,l=setTimeout(w,t),d?m(D):o}function M(D){var Y=D-s,j=D-c,re=t-Y;return y?DX(re,a-j):re}function b(D){var Y=D-s,j=D-c;return s===void 0||Y>=t||Y<0||y&&j>=a}function w(){var D=Eb();if(b(D))return _(D);l=setTimeout(w,M(D))}function _(D){return l=void 0,g&&n?m(D):(n=i=void 0,o)}function C(){l!==void 0&&clearTimeout(l),c=0,n=s=i=l=void 0}function T(){return l===void 0?o:_(Eb())}function R(){var D=Eb(),Y=b(D);if(n=arguments,i=this,s=D,Y){if(l===void 0)return E(s);if(y)return l=setTimeout(w,t),m(s)}return l===void 0&&(l=setTimeout(w,t)),o}return R.cancel=C,R.flush=T,R}function u_(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function BX(e){return!!e&&typeof e=="object"}function zX(e){return typeof e=="symbol"||BX(e)&&NX.call(e)==AX}function zO(e){if(typeof e=="number")return e;if(zX(e))return BO;if(u_(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=u_(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(TX,"");var r=OX.test(e);return r||kX.test(e)?MX(e.slice(2),r?2:8):CX.test(e)?BO:+e}var fre=$X,$R={exports:{}};/*!
|
|
373
|
-
Copyright (c) 2018 Jed Watson.
|
|
374
|
-
Licensed under the MIT License (MIT), see
|
|
375
|
-
http://jedwatson.github.io/classnames
|
|
376
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],i=0;i<arguments.length;i++){var a=arguments[i];if(!!a){var o=typeof a;if(o==="string"||o==="number")n.push(a);else if(Array.isArray(a)){if(a.length){var l=r.apply(null,a);l&&n.push(l)}}else if(o==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){n.push(a.toString());continue}for(var s in a)t.call(a,s)&&a[s]&&n.push(s)}}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})($R);const cre=$R.exports;function ba(){return ba=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ba.apply(this,arguments)}function Ef(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function l_(e,t){return l_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},l_(e,t)}function Qd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,l_(e,t)}function UX(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function jX(e,t){e.classList?e.classList.add(t):UX(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function UO(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function GX(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=UO(e.className,t):e.setAttribute("class",UO(e.className&&e.className.baseVal||"",t))}const jO={disabled:!1},BR=xn.createContext(null);var zR=function(t){return t.scrollTop},Rh="unmounted",Ku="exited",Ju="entering",Ds="entered",s_="exiting",uo=function(e){Qd(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=i,l=o&&!o.isMounting?n.enter:n.appear,s;return a.appearStatus=null,n.in?l?(s=Ku,a.appearStatus=Ju):s=Ds:n.unmountOnExit||n.mountOnEnter?s=Rh:s=Ku,a.state={status:s},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===Rh?{status:Ku}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==Ju&&o!==Ds&&(a=Ju):(o===Ju||o===Ds)&&(a=s_)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a,o,l;return a=o=l=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,l=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:l}},r.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Ju){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Ih.findDOMNode(this);o&&zR(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ku&&this.setState({status:Rh})},r.performEnter=function(i){var a=this,o=this.props.enter,l=this.context?this.context.isMounting:i,s=this.props.nodeRef?[l]:[Ih.findDOMNode(this),l],c=s[0],d=s[1],y=this.getTimeouts(),g=l?y.appear:y.enter;if(!i&&!o||jO.disabled){this.safeSetState({status:Ds},function(){a.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:Ju},function(){a.props.onEntering(c,d),a.onTransitionEnd(g,function(){a.safeSetState({status:Ds},function(){a.props.onEntered(c,d)})})})},r.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),l=this.props.nodeRef?void 0:Ih.findDOMNode(this);if(!a||jO.disabled){this.safeSetState({status:Ku},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:s_},function(){i.props.onExiting(l),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:Ku},function(){i.props.onExited(l)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},r.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(l){o&&(o=!1,a.nextCallback=null,i(l))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:Ih.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!o||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],c=s[0],d=s[1];this.props.addEndListener(c,d)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===Rh)return null;var a=this.props,o=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=Ef(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return xa(BR.Provider,{value:null,children:typeof o=="function"?o(i,l):xn.cloneElement(xn.Children.only(o),l)})},t}(xn.Component);uo.contextType=BR;uo.propTypes={};function Ms(){}uo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ms,onEntering:Ms,onEntered:Ms,onExit:Ms,onExiting:Ms,onExited:Ms};uo.UNMOUNTED=Rh;uo.EXITED=Ku;uo.ENTERING=Ju;uo.ENTERED=Ds;uo.EXITING=s_;const WX=uo;var HX=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return jX(t,n)})},Ab=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return GX(t,n)})},_S=function(e){Qd(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(l,s){var c=n.resolveArguments(l,s),d=c[0],y=c[1];n.removeClasses(d,"exit"),n.addClass(d,y?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(l,s)},n.onEntering=function(l,s){var c=n.resolveArguments(l,s),d=c[0],y=c[1],g=y?"appear":"enter";n.addClass(d,g,"active"),n.props.onEntering&&n.props.onEntering(l,s)},n.onEntered=function(l,s){var c=n.resolveArguments(l,s),d=c[0],y=c[1],g=y?"appear":"enter";n.removeClasses(d,g),n.addClass(d,g,"done"),n.props.onEntered&&n.props.onEntered(l,s)},n.onExit=function(l){var s=n.resolveArguments(l),c=s[0];n.removeClasses(c,"appear"),n.removeClasses(c,"enter"),n.addClass(c,"exit","base"),n.props.onExit&&n.props.onExit(l)},n.onExiting=function(l){var s=n.resolveArguments(l),c=s[0];n.addClass(c,"exit","active"),n.props.onExiting&&n.props.onExiting(l)},n.onExited=function(l){var s=n.resolveArguments(l),c=s[0];n.removeClasses(c,"exit"),n.addClass(c,"exit","done"),n.props.onExited&&n.props.onExited(l)},n.resolveArguments=function(l,s){return n.props.nodeRef?[n.props.nodeRef.current,l]:[l,s]},n.getClassNames=function(l){var s=n.props.classNames,c=typeof s=="string",d=c&&s?s+"-":"",y=c?""+d+l:s[l],g=c?y+"-active":s[l+"Active"],m=c?y+"-done":s[l+"Done"];return{baseClassName:y,activeClassName:g,doneClassName:m}},n}var r=t.prototype;return r.addClass=function(i,a,o){var l=this.getClassNames(a)[o+"ClassName"],s=this.getClassNames("enter"),c=s.doneClassName;a==="appear"&&o==="done"&&c&&(l+=" "+c),o==="active"&&i&&zR(i),l&&(this.appliedClasses[a][o]=l,HX(i,l))},r.removeClasses=function(i,a){var o=this.appliedClasses[a],l=o.base,s=o.active,c=o.done;this.appliedClasses[a]={},l&&Ab(i,l),s&&Ab(i,s),c&&Ab(i,c)},r.render=function(){var i=this.props;i.classNames;var a=Ef(i,["classNames"]);return xa(WX,{...a,onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited})},t}(xn.Component);_S.defaultProps={classNames:""};_S.propTypes={};const hre=_S;function o0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}/**!
|
|
377
|
-
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
|
378
|
-
* @version 1.16.1
|
|
379
|
-
* @license
|
|
380
|
-
* Copyright (c) 2016 Federico Zivolo and contributors
|
|
381
|
-
*
|
|
382
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
383
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
384
|
-
* in the Software without restriction, including without limitation the rights
|
|
385
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
386
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
387
|
-
* furnished to do so, subject to the following conditions:
|
|
388
|
-
*
|
|
389
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
390
|
-
* copies or substantial portions of the Software.
|
|
391
|
-
*
|
|
392
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
393
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
394
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
395
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
396
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
397
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
398
|
-
* SOFTWARE.
|
|
399
|
-
*/var Zd=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",VX=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Zd&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function qX(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function YX(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},VX))}}var XX=Zd&&window.Promise,QX=XX?qX:YX;function UR(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function Dl(e,t){if(e.nodeType!==1)return[];var r=e.ownerDocument.defaultView,n=r.getComputedStyle(e,null);return t?n[t]:n}function SS(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function Kd(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Dl(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(r+i+n)?e:Kd(SS(e))}function jR(e){return e&&e.referenceNode?e.referenceNode:e}var GO=Zd&&!!(window.MSInputMethodContext&&document.documentMode),WO=Zd&&/MSIE 10/.test(navigator.userAgent);function zf(e){return e===11?GO:e===10?WO:GO||WO}function Af(e){if(!e)return document.documentElement;for(var t=zf(10)?document.body:null,r=e.offsetParent||null;r===t&&e.nextElementSibling;)r=(e=e.nextElementSibling).offsetParent;var n=r&&r.nodeName;return!n||n==="BODY"||n==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(r.nodeName)!==-1&&Dl(r,"position")==="static"?Af(r):r}function ZX(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||Af(e.firstElementChild)===e}function f_(e){return e.parentNode!==null?f_(e.parentNode):e}function $m(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var r=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=r?e:t,i=r?t:e,a=document.createRange();a.setStart(n,0),a.setEnd(i,0);var o=a.commonAncestorContainer;if(e!==o&&t!==o||n.contains(i))return ZX(o)?o:Af(o);var l=f_(e);return l.host?$m(l.host,t):$m(e,f_(t).host)}function Tf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",r=t==="top"?"scrollTop":"scrollLeft",n=e.nodeName;if(n==="BODY"||n==="HTML"){var i=e.ownerDocument.documentElement,a=e.ownerDocument.scrollingElement||i;return a[r]}return e[r]}function KX(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=Tf(t,"top"),i=Tf(t,"left"),a=r?-1:1;return e.top+=n*a,e.bottom+=n*a,e.left+=i*a,e.right+=i*a,e}function HO(e,t){var r=t==="x"?"Left":"Top",n=r==="Left"?"Right":"Bottom";return parseFloat(e["border"+r+"Width"])+parseFloat(e["border"+n+"Width"])}function VO(e,t,r,n){return Math.max(t["offset"+e],t["scroll"+e],r["client"+e],r["offset"+e],r["scroll"+e],zf(10)?parseInt(r["offset"+e])+parseInt(n["margin"+(e==="Height"?"Top":"Left")])+parseInt(n["margin"+(e==="Height"?"Bottom":"Right")]):0)}function GR(e){var t=e.body,r=e.documentElement,n=zf(10)&&getComputedStyle(r);return{height:VO("Height",t,r,n),width:VO("Width",t,r,n)}}var JX=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},eQ=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),Cf=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},Ci=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function su(e){return Ci({},e,{right:e.left+e.width,bottom:e.top+e.height})}function c_(e){var t={};try{if(zf(10)){t=e.getBoundingClientRect();var r=Tf(e,"top"),n=Tf(e,"left");t.top+=r,t.left+=n,t.bottom+=r,t.right+=n}else t=e.getBoundingClientRect()}catch{}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a=e.nodeName==="HTML"?GR(e.ownerDocument):{},o=a.width||e.clientWidth||i.width,l=a.height||e.clientHeight||i.height,s=e.offsetWidth-o,c=e.offsetHeight-l;if(s||c){var d=Dl(e);s-=HO(d,"x"),c-=HO(d,"y"),i.width-=s,i.height-=c}return su(i)}function ES(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=zf(10),i=t.nodeName==="HTML",a=c_(e),o=c_(t),l=Kd(e),s=Dl(t),c=parseFloat(s.borderTopWidth),d=parseFloat(s.borderLeftWidth);r&&i&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var y=su({top:a.top-o.top-c,left:a.left-o.left-d,width:a.width,height:a.height});if(y.marginTop=0,y.marginLeft=0,!n&&i){var g=parseFloat(s.marginTop),m=parseFloat(s.marginLeft);y.top-=c-g,y.bottom-=c-g,y.left-=d-m,y.right-=d-m,y.marginTop=g,y.marginLeft=m}return(n&&!r?t.contains(l):t===l&&l.nodeName!=="BODY")&&(y=KX(y,t)),y}function tQ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.ownerDocument.documentElement,n=ES(e,r),i=Math.max(r.clientWidth,window.innerWidth||0),a=Math.max(r.clientHeight,window.innerHeight||0),o=t?0:Tf(r),l=t?0:Tf(r,"left"),s={top:o-n.top+n.marginTop,left:l-n.left+n.marginLeft,width:i,height:a};return su(s)}function WR(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(Dl(e,"position")==="fixed")return!0;var r=SS(e);return r?WR(r):!1}function HR(e){if(!e||!e.parentElement||zf())return document.documentElement;for(var t=e.parentElement;t&&Dl(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function AS(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,a={top:0,left:0},o=i?HR(e):$m(e,jR(t));if(n==="viewport")a=tQ(o,i);else{var l=void 0;n==="scrollParent"?(l=Kd(SS(t)),l.nodeName==="BODY"&&(l=e.ownerDocument.documentElement)):n==="window"?l=e.ownerDocument.documentElement:l=n;var s=ES(l,o,i);if(l.nodeName==="HTML"&&!WR(o)){var c=GR(e.ownerDocument),d=c.height,y=c.width;a.top+=s.top-s.marginTop,a.bottom=d+s.top,a.left+=s.left-s.marginLeft,a.right=y+s.left}else a=s}r=r||0;var g=typeof r=="number";return a.left+=g?r:r.left||0,a.top+=g?r:r.top||0,a.right-=g?r:r.right||0,a.bottom-=g?r:r.bottom||0,a}function rQ(e){var t=e.width,r=e.height;return t*r}function VR(e,t,r,n,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var o=AS(r,n,a,i),l={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},s=Object.keys(l).map(function(g){return Ci({key:g},l[g],{area:rQ(l[g])})}).sort(function(g,m){return m.area-g.area}),c=s.filter(function(g){var m=g.width,E=g.height;return m>=r.clientWidth&&E>=r.clientHeight}),d=c.length>0?c[0].key:s[0].key,y=e.split("-")[1];return d+(y?"-"+y:"")}function qR(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=n?HR(t):$m(t,jR(r));return ES(r,i,n)}function YR(e){var t=e.ownerDocument.defaultView,r=t.getComputedStyle(e),n=parseFloat(r.marginTop||0)+parseFloat(r.marginBottom||0),i=parseFloat(r.marginLeft||0)+parseFloat(r.marginRight||0),a={width:e.offsetWidth+i,height:e.offsetHeight+n};return a}function Bm(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(r){return t[r]})}function XR(e,t,r){r=r.split("-")[0];var n=YR(e),i={width:n.width,height:n.height},a=["right","left"].indexOf(r)!==-1,o=a?"top":"left",l=a?"left":"top",s=a?"height":"width",c=a?"width":"height";return i[o]=t[o]+t[s]/2-n[s]/2,r===l?i[l]=t[l]-n[c]:i[l]=t[Bm(l)],i}function Jd(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function nQ(e,t,r){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===r});var n=Jd(e,function(i){return i[t]===r});return e.indexOf(n)}function QR(e,t,r){var n=r===void 0?e:e.slice(0,nQ(e,"name",r));return n.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var a=i.function||i.fn;i.enabled&&UR(a)&&(t.offsets.popper=su(t.offsets.popper),t.offsets.reference=su(t.offsets.reference),t=a(t,i))}),t}function iQ(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=qR(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=VR(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=XR(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=QR(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function ZR(e,t){return e.some(function(r){var n=r.name,i=r.enabled;return i&&n===t})}function TS(e){for(var t=[!1,"ms","Webkit","Moz","O"],r=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length;n++){var i=t[n],a=i?""+i+r:e;if(typeof document.body.style[a]<"u")return a}return null}function aQ(){return this.state.isDestroyed=!0,ZR(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[TS("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function KR(e){var t=e.ownerDocument;return t?t.defaultView:window}function JR(e,t,r,n){var i=e.nodeName==="BODY",a=i?e.ownerDocument.defaultView:e;a.addEventListener(t,r,{passive:!0}),i||JR(Kd(a.parentNode),t,r,n),n.push(a)}function oQ(e,t,r,n){r.updateBound=n,KR(e).addEventListener("resize",r.updateBound,{passive:!0});var i=Kd(e);return JR(i,"scroll",r.updateBound,r.scrollParents),r.scrollElement=i,r.eventsEnabled=!0,r}function uQ(){this.state.eventsEnabled||(this.state=oQ(this.reference,this.options,this.state,this.scheduleUpdate))}function lQ(e,t){return KR(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(r){r.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function sQ(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=lQ(this.reference,this.state))}function CS(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function h_(e,t){Object.keys(t).forEach(function(r){var n="";["width","height","top","right","bottom","left"].indexOf(r)!==-1&&CS(t[r])&&(n="px"),e.style[r]=t[r]+n})}function fQ(e,t){Object.keys(t).forEach(function(r){var n=t[r];n!==!1?e.setAttribute(r,t[r]):e.removeAttribute(r)})}function cQ(e){return h_(e.instance.popper,e.styles),fQ(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&h_(e.arrowElement,e.arrowStyles),e}function hQ(e,t,r,n,i){var a=qR(i,t,e,r.positionFixed),o=VR(r.placement,a,t,e,r.modifiers.flip.boundariesElement,r.modifiers.flip.padding);return t.setAttribute("x-placement",o),h_(t,{position:r.positionFixed?"fixed":"absolute"}),r}function dQ(e,t){var r=e.offsets,n=r.popper,i=r.reference,a=Math.round,o=Math.floor,l=function(w){return w},s=a(i.width),c=a(n.width),d=["left","right"].indexOf(e.placement)!==-1,y=e.placement.indexOf("-")!==-1,g=s%2===c%2,m=s%2===1&&c%2===1,E=t?d||y||g?a:o:l,M=t?a:l;return{left:E(m&&!y&&t?n.left-1:n.left),top:M(n.top),bottom:M(n.bottom),right:E(n.right)}}var pQ=Zd&&/Firefox/i.test(navigator.userAgent);function vQ(e,t){var r=t.x,n=t.y,i=e.offsets.popper,a=Jd(e.instance.modifiers,function(C){return C.name==="applyStyle"}).gpuAcceleration;a!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o=a!==void 0?a:t.gpuAcceleration,l=Af(e.instance.popper),s=c_(l),c={position:i.position},d=dQ(e,window.devicePixelRatio<2||!pQ),y=r==="bottom"?"top":"bottom",g=n==="right"?"left":"right",m=TS("transform"),E=void 0,M=void 0;if(y==="bottom"?l.nodeName==="HTML"?M=-l.clientHeight+d.bottom:M=-s.height+d.bottom:M=d.top,g==="right"?l.nodeName==="HTML"?E=-l.clientWidth+d.right:E=-s.width+d.right:E=d.left,o&&m)c[m]="translate3d("+E+"px, "+M+"px, 0)",c[y]=0,c[g]=0,c.willChange="transform";else{var b=y==="bottom"?-1:1,w=g==="right"?-1:1;c[y]=M*b,c[g]=E*w,c.willChange=y+", "+g}var _={"x-placement":e.placement};return e.attributes=Ci({},_,e.attributes),e.styles=Ci({},c,e.styles),e.arrowStyles=Ci({},e.offsets.arrow,e.arrowStyles),e}function e4(e,t,r){var n=Jd(e,function(l){var s=l.name;return s===t}),i=!!n&&e.some(function(l){return l.name===r&&l.enabled&&l.order<n.order});if(!i){var a="`"+t+"`",o="`"+r+"`";console.warn(o+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return i}function mQ(e,t){var r;if(!e4(e.instance.modifiers,"arrow","keepTogether"))return e;var n=t.element;if(typeof n=="string"){if(n=e.instance.popper.querySelector(n),!n)return e}else if(!e.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],a=e.offsets,o=a.popper,l=a.reference,s=["left","right"].indexOf(i)!==-1,c=s?"height":"width",d=s?"Top":"Left",y=d.toLowerCase(),g=s?"left":"top",m=s?"bottom":"right",E=YR(n)[c];l[m]-E<o[y]&&(e.offsets.popper[y]-=o[y]-(l[m]-E)),l[y]+E>o[m]&&(e.offsets.popper[y]+=l[y]+E-o[m]),e.offsets.popper=su(e.offsets.popper);var M=l[y]+l[c]/2-E/2,b=Dl(e.instance.popper),w=parseFloat(b["margin"+d]),_=parseFloat(b["border"+d+"Width"]),C=M-e.offsets.popper[y]-w-_;return C=Math.max(Math.min(o[c]-E,C),0),e.arrowElement=n,e.offsets.arrow=(r={},Cf(r,y,Math.round(C)),Cf(r,g,""),r),e}function gQ(e){return e==="end"?"start":e==="start"?"end":e}var t4=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Tb=t4.slice(3);function qO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Tb.indexOf(e),n=Tb.slice(r+1).concat(Tb.slice(0,r));return t?n.reverse():n}var Cb={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function yQ(e,t){if(ZR(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var r=AS(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),n=e.placement.split("-")[0],i=Bm(n),a=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case Cb.FLIP:o=[n,i];break;case Cb.CLOCKWISE:o=qO(n);break;case Cb.COUNTERCLOCKWISE:o=qO(n,!0);break;default:o=t.behavior}return o.forEach(function(l,s){if(n!==l||o.length===s+1)return e;n=e.placement.split("-")[0],i=Bm(n);var c=e.offsets.popper,d=e.offsets.reference,y=Math.floor,g=n==="left"&&y(c.right)>y(d.left)||n==="right"&&y(c.left)<y(d.right)||n==="top"&&y(c.bottom)>y(d.top)||n==="bottom"&&y(c.top)<y(d.bottom),m=y(c.left)<y(r.left),E=y(c.right)>y(r.right),M=y(c.top)<y(r.top),b=y(c.bottom)>y(r.bottom),w=n==="left"&&m||n==="right"&&E||n==="top"&&M||n==="bottom"&&b,_=["top","bottom"].indexOf(n)!==-1,C=!!t.flipVariations&&(_&&a==="start"&&m||_&&a==="end"&&E||!_&&a==="start"&&M||!_&&a==="end"&&b),T=!!t.flipVariationsByContent&&(_&&a==="start"&&E||_&&a==="end"&&m||!_&&a==="start"&&b||!_&&a==="end"&&M),R=C||T;(g||w||R)&&(e.flipped=!0,(g||w)&&(n=o[s+1]),R&&(a=gQ(a)),e.placement=n+(a?"-"+a:""),e.offsets.popper=Ci({},e.offsets.popper,XR(e.instance.popper,e.offsets.reference,e.placement)),e=QR(e.instance.modifiers,e,"flip"))}),e}function xQ(e){var t=e.offsets,r=t.popper,n=t.reference,i=e.placement.split("-")[0],a=Math.floor,o=["top","bottom"].indexOf(i)!==-1,l=o?"right":"bottom",s=o?"left":"top",c=o?"width":"height";return r[l]<a(n[s])&&(e.offsets.popper[s]=a(n[s])-r[c]),r[s]>a(n[l])&&(e.offsets.popper[s]=a(n[l])),e}function bQ(e,t,r,n){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+i[1],o=i[2];if(!a)return e;if(o.indexOf("%")===0){var l=void 0;switch(o){case"%p":l=r;break;case"%":case"%r":default:l=n}var s=su(l);return s[t]/100*a}else if(o==="vh"||o==="vw"){var c=void 0;return o==="vh"?c=Math.max(document.documentElement.clientHeight,window.innerHeight||0):c=Math.max(document.documentElement.clientWidth,window.innerWidth||0),c/100*a}else return a}function wQ(e,t,r,n){var i=[0,0],a=["right","left"].indexOf(n)!==-1,o=e.split(/(\+|\-)/).map(function(d){return d.trim()}),l=o.indexOf(Jd(o,function(d){return d.search(/,|\s/)!==-1}));o[l]&&o[l].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var s=/\s*,\s*|\s+/,c=l!==-1?[o.slice(0,l).concat([o[l].split(s)[0]]),[o[l].split(s)[1]].concat(o.slice(l+1))]:[o];return c=c.map(function(d,y){var g=(y===1?!a:a)?"height":"width",m=!1;return d.reduce(function(E,M){return E[E.length-1]===""&&["+","-"].indexOf(M)!==-1?(E[E.length-1]=M,m=!0,E):m?(E[E.length-1]+=M,m=!1,E):E.concat(M)},[]).map(function(E){return bQ(E,g,t,r)})}),c.forEach(function(d,y){d.forEach(function(g,m){CS(g)&&(i[y]+=g*(d[m-1]==="-"?-1:1))})}),i}function _Q(e,t){var r=t.offset,n=e.placement,i=e.offsets,a=i.popper,o=i.reference,l=n.split("-")[0],s=void 0;return CS(+r)?s=[+r,0]:s=wQ(r,a,o,l),l==="left"?(a.top+=s[0],a.left-=s[1]):l==="right"?(a.top+=s[0],a.left+=s[1]):l==="top"?(a.left+=s[0],a.top-=s[1]):l==="bottom"&&(a.left+=s[0],a.top+=s[1]),e.popper=a,e}function SQ(e,t){var r=t.boundariesElement||Af(e.instance.popper);e.instance.reference===r&&(r=Af(r));var n=TS("transform"),i=e.instance.popper.style,a=i.top,o=i.left,l=i[n];i.top="",i.left="",i[n]="";var s=AS(e.instance.popper,e.instance.reference,t.padding,r,e.positionFixed);i.top=a,i.left=o,i[n]=l,t.boundaries=s;var c=t.priority,d=e.offsets.popper,y={primary:function(m){var E=d[m];return d[m]<s[m]&&!t.escapeWithReference&&(E=Math.max(d[m],s[m])),Cf({},m,E)},secondary:function(m){var E=m==="right"?"left":"top",M=d[E];return d[m]>s[m]&&!t.escapeWithReference&&(M=Math.min(d[E],s[m]-(m==="right"?d.width:d.height))),Cf({},E,M)}};return c.forEach(function(g){var m=["left","top"].indexOf(g)!==-1?"primary":"secondary";d=Ci({},d,y[m](g))}),e.offsets.popper=d,e}function EQ(e){var t=e.placement,r=t.split("-")[0],n=t.split("-")[1];if(n){var i=e.offsets,a=i.reference,o=i.popper,l=["bottom","top"].indexOf(r)!==-1,s=l?"left":"top",c=l?"width":"height",d={start:Cf({},s,a[s]),end:Cf({},s,a[s]+a[c]-o[c])};e.offsets.popper=Ci({},o,d[n])}return e}function AQ(e){if(!e4(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,r=Jd(e.instance.modifiers,function(n){return n.name==="preventOverflow"}).boundaries;if(t.bottom<r.top||t.left>r.right||t.top>r.bottom||t.right<r.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function TQ(e){var t=e.placement,r=t.split("-")[0],n=e.offsets,i=n.popper,a=n.reference,o=["left","right"].indexOf(r)!==-1,l=["top","left"].indexOf(r)===-1;return i[o?"left":"top"]=a[r]-(l?i[o?"width":"height"]:0),e.placement=Bm(t),e.offsets.popper=su(i),e}var CQ={shift:{order:100,enabled:!0,fn:EQ},offset:{order:200,enabled:!0,fn:_Q,offset:0},preventOverflow:{order:300,enabled:!0,fn:SQ,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:xQ},arrow:{order:500,enabled:!0,fn:mQ,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:yQ,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:TQ},hide:{order:800,enabled:!0,fn:AQ},computeStyle:{order:850,enabled:!0,fn:vQ,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:cQ,onLoad:hQ,gpuAcceleration:void 0}},OQ={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:CQ},Rg=function(){function e(t,r){var n=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};JX(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=QX(this.update.bind(this)),this.options=Ci({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(Ci({},e.Defaults.modifiers,i.modifiers)).forEach(function(o){n.options.modifiers[o]=Ci({},e.Defaults.modifiers[o]||{},i.modifiers?i.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return Ci({name:o},n.options.modifiers[o])}).sort(function(o,l){return o.order-l.order}),this.modifiers.forEach(function(o){o.enabled&&UR(o.onLoad)&&o.onLoad(n.reference,n.popper,n.options,o,n.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return eQ(e,[{key:"update",value:function(){return iQ.call(this)}},{key:"destroy",value:function(){return aQ.call(this)}},{key:"enableEventListeners",value:function(){return uQ.call(this)}},{key:"disableEventListeners",value:function(){return sQ.call(this)}}]),e}();Rg.Utils=(typeof window<"u"?window:global).PopperUtils;Rg.placements=t4;Rg.Defaults=OQ;const dre=Rg;function YO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?YO(Object(r),!0).forEach(function(n){hn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zm(e){return zm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zm(e)}function kQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function MQ(e,t,r){return t&&XO(e.prototype,t),r&&XO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function hn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OS(e,t){return PQ(e)||RQ(e,t)||r4(e,t)||LQ()}function ep(e){return IQ(e)||FQ(e)||r4(e)||NQ()}function IQ(e){if(Array.isArray(e))return d_(e)}function PQ(e){if(Array.isArray(e))return e}function FQ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function RQ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,a=!1,o,l;try{for(r=r.call(e);!(i=(o=r.next()).done)&&(n.push(o.value),!(t&&n.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw l}}return n}}function r4(e,t){if(!!e){if(typeof e=="string")return d_(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d_(e,t)}}function d_(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function NQ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
400
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
401
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var QO=function(){},kS={},n4={},i4=null,a4={mark:QO,measure:QO};try{typeof window<"u"&&(kS=window),typeof document<"u"&&(n4=document),typeof MutationObserver<"u"&&(i4=MutationObserver),typeof performance<"u"&&(a4=performance)}catch{}var DQ=kS.navigator||{},ZO=DQ.userAgent,KO=ZO===void 0?"":ZO,fu=kS,Dr=n4,JO=i4,u0=a4;fu.document;var lo=!!Dr.documentElement&&!!Dr.head&&typeof Dr.addEventListener=="function"&&typeof Dr.createElement=="function",o4=~KO.indexOf("MSIE")||~KO.indexOf("Trident/"),l0,s0,f0,c0,h0,Ja="___FONT_AWESOME___",p_=16,u4="fa",l4="svg-inline--fa",wl="data-fa-i2svg",v_="data-fa-pseudo-element",$Q="data-fa-pseudo-element-pending",MS="data-prefix",IS="data-icon",e5="fontawesome-i2svg",BQ="async",zQ=["HTML","HEAD","STYLE","SCRIPT"],s4=function(){try{return!0}catch{return!1}}(),Nr="classic",Hr="sharp",PS=[Nr,Hr];function tp(e){return new Proxy(e,{get:function(r,n){return n in r?r[n]:r[Nr]}})}var kd=tp((l0={},hn(l0,Nr,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),hn(l0,Hr,{fa:"solid",fass:"solid","fa-solid":"solid"}),l0)),Md=tp((s0={},hn(s0,Nr,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),hn(s0,Hr,{solid:"fass"}),s0)),Id=tp((f0={},hn(f0,Nr,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),hn(f0,Hr,{fass:"fa-solid"}),f0)),UQ=tp((c0={},hn(c0,Nr,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),hn(c0,Hr,{"fa-solid":"fass"}),c0)),jQ=/fa(s|r|l|t|d|b|k|ss)?[\-\ ]/,f4="fa-layers-text",GQ=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,WQ=tp((h0={},hn(h0,Nr,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),hn(h0,Hr,{900:"fass"}),h0)),c4=[1,2,3,4,5,6,7,8,9,10],HQ=c4.concat([11,12,13,14,15,16,17,18,19,20]),VQ=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],ul={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Pd=new Set;Object.keys(Md[Nr]).map(Pd.add.bind(Pd));Object.keys(Md[Hr]).map(Pd.add.bind(Pd));var qQ=[].concat(PS,ep(Pd),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",ul.GROUP,ul.SWAP_OPACITY,ul.PRIMARY,ul.SECONDARY]).concat(c4.map(function(e){return"".concat(e,"x")})).concat(HQ.map(function(e){return"w-".concat(e)})),rd=fu.FontAwesomeConfig||{};function YQ(e){var t=Dr.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function XQ(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(Dr&&typeof Dr.querySelector=="function"){var QQ=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];QQ.forEach(function(e){var t=OS(e,2),r=t[0],n=t[1],i=XQ(YQ(r));i!=null&&(rd[n]=i)})}var h4={styleDefault:"solid",familyDefault:"classic",cssPrefix:u4,replacementClass:l4,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};rd.familyPrefix&&(rd.cssPrefix=rd.familyPrefix);var Of=Nt(Nt({},h4),rd);Of.autoReplaceSvg||(Of.observeMutations=!1);var Ut={};Object.keys(h4).forEach(function(e){Object.defineProperty(Ut,e,{enumerable:!0,set:function(r){Of[e]=r,nd.forEach(function(n){return n(Ut)})},get:function(){return Of[e]}})});Object.defineProperty(Ut,"familyPrefix",{enumerable:!0,set:function(t){Of.cssPrefix=t,nd.forEach(function(r){return r(Ut)})},get:function(){return Of.cssPrefix}});fu.FontAwesomeConfig=Ut;var nd=[];function ZQ(e){return nd.push(e),function(){nd.splice(nd.indexOf(e),1)}}var Ro=p_,pa={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function KQ(e){if(!(!e||!lo)){var t=Dr.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var r=Dr.head.childNodes,n=null,i=r.length-1;i>-1;i--){var a=r[i],o=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(n=a)}return Dr.head.insertBefore(t,n),e}}var JQ="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Fd(){for(var e=12,t="";e-- >0;)t+=JQ[Math.random()*62|0];return t}function Uf(e){for(var t=[],r=(e||[]).length>>>0;r--;)t[r]=e[r];return t}function FS(e){return e.classList?Uf(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function d4(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function eZ(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,'="').concat(d4(e[r]),'" ')},"").trim()}function Ng(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,": ").concat(e[r].trim(),";")},"")}function RS(e){return e.size!==pa.size||e.x!==pa.x||e.y!==pa.y||e.rotate!==pa.rotate||e.flipX||e.flipY}function tZ(e){var t=e.transform,r=e.containerWidth,n=e.iconWidth,i={transform:"translate(".concat(r/2," 256)")},a="translate(".concat(t.x*32,", ").concat(t.y*32,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),l="rotate(".concat(t.rotate," 0 0)"),s={transform:"".concat(a," ").concat(o," ").concat(l)},c={transform:"translate(".concat(n/2*-1," -256)")};return{outer:i,inner:s,path:c}}function rZ(e){var t=e.transform,r=e.width,n=r===void 0?p_:r,i=e.height,a=i===void 0?p_:i,o=e.startCentered,l=o===void 0?!1:o,s="";return l&&o4?s+="translate(".concat(t.x/Ro-n/2,"em, ").concat(t.y/Ro-a/2,"em) "):l?s+="translate(calc(-50% + ".concat(t.x/Ro,"em), calc(-50% + ").concat(t.y/Ro,"em)) "):s+="translate(".concat(t.x/Ro,"em, ").concat(t.y/Ro,"em) "),s+="scale(".concat(t.size/Ro*(t.flipX?-1:1),", ").concat(t.size/Ro*(t.flipY?-1:1),") "),s+="rotate(".concat(t.rotate,"deg) "),s}var nZ=`:root, :host {
|
|
402
|
-
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
|
|
403
|
-
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
|
|
404
|
-
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
|
|
405
|
-
--fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";
|
|
406
|
-
--fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
|
|
407
|
-
--fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
|
|
408
|
-
--fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
|
412
|
-
overflow: visible;
|
|
413
|
-
box-sizing: content-box;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
.svg-inline--fa {
|
|
417
|
-
display: var(--fa-display, inline-block);
|
|
418
|
-
height: 1em;
|
|
419
|
-
overflow: visible;
|
|
420
|
-
vertical-align: -0.125em;
|
|
421
|
-
}
|
|
422
|
-
.svg-inline--fa.fa-2xs {
|
|
423
|
-
vertical-align: 0.1em;
|
|
424
|
-
}
|
|
425
|
-
.svg-inline--fa.fa-xs {
|
|
426
|
-
vertical-align: 0em;
|
|
427
|
-
}
|
|
428
|
-
.svg-inline--fa.fa-sm {
|
|
429
|
-
vertical-align: -0.0714285705em;
|
|
430
|
-
}
|
|
431
|
-
.svg-inline--fa.fa-lg {
|
|
432
|
-
vertical-align: -0.2em;
|
|
433
|
-
}
|
|
434
|
-
.svg-inline--fa.fa-xl {
|
|
435
|
-
vertical-align: -0.25em;
|
|
436
|
-
}
|
|
437
|
-
.svg-inline--fa.fa-2xl {
|
|
438
|
-
vertical-align: -0.3125em;
|
|
439
|
-
}
|
|
440
|
-
.svg-inline--fa.fa-pull-left {
|
|
441
|
-
margin-right: var(--fa-pull-margin, 0.3em);
|
|
442
|
-
width: auto;
|
|
443
|
-
}
|
|
444
|
-
.svg-inline--fa.fa-pull-right {
|
|
445
|
-
margin-left: var(--fa-pull-margin, 0.3em);
|
|
446
|
-
width: auto;
|
|
447
|
-
}
|
|
448
|
-
.svg-inline--fa.fa-li {
|
|
449
|
-
width: var(--fa-li-width, 2em);
|
|
450
|
-
top: 0.25em;
|
|
451
|
-
}
|
|
452
|
-
.svg-inline--fa.fa-fw {
|
|
453
|
-
width: var(--fa-fw-width, 1.25em);
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
.fa-layers svg.svg-inline--fa {
|
|
457
|
-
bottom: 0;
|
|
458
|
-
left: 0;
|
|
459
|
-
margin: auto;
|
|
460
|
-
position: absolute;
|
|
461
|
-
right: 0;
|
|
462
|
-
top: 0;
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
.fa-layers-counter, .fa-layers-text {
|
|
466
|
-
display: inline-block;
|
|
467
|
-
position: absolute;
|
|
468
|
-
text-align: center;
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
.fa-layers {
|
|
472
|
-
display: inline-block;
|
|
473
|
-
height: 1em;
|
|
474
|
-
position: relative;
|
|
475
|
-
text-align: center;
|
|
476
|
-
vertical-align: -0.125em;
|
|
477
|
-
width: 1em;
|
|
478
|
-
}
|
|
479
|
-
.fa-layers svg.svg-inline--fa {
|
|
480
|
-
-webkit-transform-origin: center center;
|
|
481
|
-
transform-origin: center center;
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
.fa-layers-text {
|
|
485
|
-
left: 50%;
|
|
486
|
-
top: 50%;
|
|
487
|
-
-webkit-transform: translate(-50%, -50%);
|
|
488
|
-
transform: translate(-50%, -50%);
|
|
489
|
-
-webkit-transform-origin: center center;
|
|
490
|
-
transform-origin: center center;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
.fa-layers-counter {
|
|
494
|
-
background-color: var(--fa-counter-background-color, #ff253a);
|
|
495
|
-
border-radius: var(--fa-counter-border-radius, 1em);
|
|
496
|
-
box-sizing: border-box;
|
|
497
|
-
color: var(--fa-inverse, #fff);
|
|
498
|
-
line-height: var(--fa-counter-line-height, 1);
|
|
499
|
-
max-width: var(--fa-counter-max-width, 5em);
|
|
500
|
-
min-width: var(--fa-counter-min-width, 1.5em);
|
|
501
|
-
overflow: hidden;
|
|
502
|
-
padding: var(--fa-counter-padding, 0.25em 0.5em);
|
|
503
|
-
right: var(--fa-right, 0);
|
|
504
|
-
text-overflow: ellipsis;
|
|
505
|
-
top: var(--fa-top, 0);
|
|
506
|
-
-webkit-transform: scale(var(--fa-counter-scale, 0.25));
|
|
507
|
-
transform: scale(var(--fa-counter-scale, 0.25));
|
|
508
|
-
-webkit-transform-origin: top right;
|
|
509
|
-
transform-origin: top right;
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
.fa-layers-bottom-right {
|
|
513
|
-
bottom: var(--fa-bottom, 0);
|
|
514
|
-
right: var(--fa-right, 0);
|
|
515
|
-
top: auto;
|
|
516
|
-
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
|
|
517
|
-
transform: scale(var(--fa-layers-scale, 0.25));
|
|
518
|
-
-webkit-transform-origin: bottom right;
|
|
519
|
-
transform-origin: bottom right;
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
.fa-layers-bottom-left {
|
|
523
|
-
bottom: var(--fa-bottom, 0);
|
|
524
|
-
left: var(--fa-left, 0);
|
|
525
|
-
right: auto;
|
|
526
|
-
top: auto;
|
|
527
|
-
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
|
|
528
|
-
transform: scale(var(--fa-layers-scale, 0.25));
|
|
529
|
-
-webkit-transform-origin: bottom left;
|
|
530
|
-
transform-origin: bottom left;
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
.fa-layers-top-right {
|
|
534
|
-
top: var(--fa-top, 0);
|
|
535
|
-
right: var(--fa-right, 0);
|
|
536
|
-
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
|
|
537
|
-
transform: scale(var(--fa-layers-scale, 0.25));
|
|
538
|
-
-webkit-transform-origin: top right;
|
|
539
|
-
transform-origin: top right;
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
.fa-layers-top-left {
|
|
543
|
-
left: var(--fa-left, 0);
|
|
544
|
-
right: auto;
|
|
545
|
-
top: var(--fa-top, 0);
|
|
546
|
-
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
|
|
547
|
-
transform: scale(var(--fa-layers-scale, 0.25));
|
|
548
|
-
-webkit-transform-origin: top left;
|
|
549
|
-
transform-origin: top left;
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
.fa-1x {
|
|
553
|
-
font-size: 1em;
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
.fa-2x {
|
|
557
|
-
font-size: 2em;
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
.fa-3x {
|
|
561
|
-
font-size: 3em;
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
.fa-4x {
|
|
565
|
-
font-size: 4em;
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
.fa-5x {
|
|
569
|
-
font-size: 5em;
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
.fa-6x {
|
|
573
|
-
font-size: 6em;
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
.fa-7x {
|
|
577
|
-
font-size: 7em;
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
.fa-8x {
|
|
581
|
-
font-size: 8em;
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
.fa-9x {
|
|
585
|
-
font-size: 9em;
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
.fa-10x {
|
|
589
|
-
font-size: 10em;
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
.fa-2xs {
|
|
593
|
-
font-size: 0.625em;
|
|
594
|
-
line-height: 0.1em;
|
|
595
|
-
vertical-align: 0.225em;
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
.fa-xs {
|
|
599
|
-
font-size: 0.75em;
|
|
600
|
-
line-height: 0.0833333337em;
|
|
601
|
-
vertical-align: 0.125em;
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
.fa-sm {
|
|
605
|
-
font-size: 0.875em;
|
|
606
|
-
line-height: 0.0714285718em;
|
|
607
|
-
vertical-align: 0.0535714295em;
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
.fa-lg {
|
|
611
|
-
font-size: 1.25em;
|
|
612
|
-
line-height: 0.05em;
|
|
613
|
-
vertical-align: -0.075em;
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
.fa-xl {
|
|
617
|
-
font-size: 1.5em;
|
|
618
|
-
line-height: 0.0416666682em;
|
|
619
|
-
vertical-align: -0.125em;
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
.fa-2xl {
|
|
623
|
-
font-size: 2em;
|
|
624
|
-
line-height: 0.03125em;
|
|
625
|
-
vertical-align: -0.1875em;
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
.fa-fw {
|
|
629
|
-
text-align: center;
|
|
630
|
-
width: 1.25em;
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
.fa-ul {
|
|
634
|
-
list-style-type: none;
|
|
635
|
-
margin-left: var(--fa-li-margin, 2.5em);
|
|
636
|
-
padding-left: 0;
|
|
637
|
-
}
|
|
638
|
-
.fa-ul > li {
|
|
639
|
-
position: relative;
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
.fa-li {
|
|
643
|
-
left: calc(var(--fa-li-width, 2em) * -1);
|
|
644
|
-
position: absolute;
|
|
645
|
-
text-align: center;
|
|
646
|
-
width: var(--fa-li-width, 2em);
|
|
647
|
-
line-height: inherit;
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
.fa-border {
|
|
651
|
-
border-color: var(--fa-border-color, #eee);
|
|
652
|
-
border-radius: var(--fa-border-radius, 0.1em);
|
|
653
|
-
border-style: var(--fa-border-style, solid);
|
|
654
|
-
border-width: var(--fa-border-width, 0.08em);
|
|
655
|
-
padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
.fa-pull-left {
|
|
659
|
-
float: left;
|
|
660
|
-
margin-right: var(--fa-pull-margin, 0.3em);
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
.fa-pull-right {
|
|
664
|
-
float: right;
|
|
665
|
-
margin-left: var(--fa-pull-margin, 0.3em);
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
.fa-beat {
|
|
669
|
-
-webkit-animation-name: fa-beat;
|
|
670
|
-
animation-name: fa-beat;
|
|
671
|
-
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
|
672
|
-
animation-delay: var(--fa-animation-delay, 0s);
|
|
673
|
-
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
|
674
|
-
animation-direction: var(--fa-animation-direction, normal);
|
|
675
|
-
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
|
676
|
-
animation-duration: var(--fa-animation-duration, 1s);
|
|
677
|
-
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
678
|
-
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
679
|
-
-webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
|
680
|
-
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
.fa-bounce {
|
|
684
|
-
-webkit-animation-name: fa-bounce;
|
|
685
|
-
animation-name: fa-bounce;
|
|
686
|
-
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
|
687
|
-
animation-delay: var(--fa-animation-delay, 0s);
|
|
688
|
-
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
|
689
|
-
animation-direction: var(--fa-animation-direction, normal);
|
|
690
|
-
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
|
691
|
-
animation-duration: var(--fa-animation-duration, 1s);
|
|
692
|
-
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
693
|
-
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
694
|
-
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
|
|
695
|
-
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
.fa-fade {
|
|
699
|
-
-webkit-animation-name: fa-fade;
|
|
700
|
-
animation-name: fa-fade;
|
|
701
|
-
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
|
702
|
-
animation-delay: var(--fa-animation-delay, 0s);
|
|
703
|
-
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
|
704
|
-
animation-direction: var(--fa-animation-direction, normal);
|
|
705
|
-
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
|
706
|
-
animation-duration: var(--fa-animation-duration, 1s);
|
|
707
|
-
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
708
|
-
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
709
|
-
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
|
710
|
-
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
.fa-beat-fade {
|
|
714
|
-
-webkit-animation-name: fa-beat-fade;
|
|
715
|
-
animation-name: fa-beat-fade;
|
|
716
|
-
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
|
717
|
-
animation-delay: var(--fa-animation-delay, 0s);
|
|
718
|
-
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
|
719
|
-
animation-direction: var(--fa-animation-direction, normal);
|
|
720
|
-
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
|
721
|
-
animation-duration: var(--fa-animation-duration, 1s);
|
|
722
|
-
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
723
|
-
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
724
|
-
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
|
725
|
-
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
.fa-flip {
|
|
729
|
-
-webkit-animation-name: fa-flip;
|
|
730
|
-
animation-name: fa-flip;
|
|
731
|
-
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
|
732
|
-
animation-delay: var(--fa-animation-delay, 0s);
|
|
733
|
-
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
|
734
|
-
animation-direction: var(--fa-animation-direction, normal);
|
|
735
|
-
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
|
736
|
-
animation-duration: var(--fa-animation-duration, 1s);
|
|
737
|
-
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
738
|
-
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
739
|
-
-webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
|
740
|
-
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
|
741
|
-
}
|
|
742
|
-
|
|
743
|
-
.fa-shake {
|
|
744
|
-
-webkit-animation-name: fa-shake;
|
|
745
|
-
animation-name: fa-shake;
|
|
746
|
-
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
|
747
|
-
animation-delay: var(--fa-animation-delay, 0s);
|
|
748
|
-
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
|
749
|
-
animation-direction: var(--fa-animation-direction, normal);
|
|
750
|
-
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
|
751
|
-
animation-duration: var(--fa-animation-duration, 1s);
|
|
752
|
-
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
753
|
-
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
754
|
-
-webkit-animation-timing-function: var(--fa-animation-timing, linear);
|
|
755
|
-
animation-timing-function: var(--fa-animation-timing, linear);
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
.fa-spin {
|
|
759
|
-
-webkit-animation-name: fa-spin;
|
|
760
|
-
animation-name: fa-spin;
|
|
761
|
-
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
|
762
|
-
animation-delay: var(--fa-animation-delay, 0s);
|
|
763
|
-
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
|
764
|
-
animation-direction: var(--fa-animation-direction, normal);
|
|
765
|
-
-webkit-animation-duration: var(--fa-animation-duration, 2s);
|
|
766
|
-
animation-duration: var(--fa-animation-duration, 2s);
|
|
767
|
-
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
768
|
-
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
769
|
-
-webkit-animation-timing-function: var(--fa-animation-timing, linear);
|
|
770
|
-
animation-timing-function: var(--fa-animation-timing, linear);
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
.fa-spin-reverse {
|
|
774
|
-
--fa-animation-direction: reverse;
|
|
775
|
-
}
|
|
776
|
-
|
|
777
|
-
.fa-pulse,
|
|
778
|
-
.fa-spin-pulse {
|
|
779
|
-
-webkit-animation-name: fa-spin;
|
|
780
|
-
animation-name: fa-spin;
|
|
781
|
-
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
|
782
|
-
animation-direction: var(--fa-animation-direction, normal);
|
|
783
|
-
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
|
784
|
-
animation-duration: var(--fa-animation-duration, 1s);
|
|
785
|
-
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
786
|
-
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
787
|
-
-webkit-animation-timing-function: var(--fa-animation-timing, steps(8));
|
|
788
|
-
animation-timing-function: var(--fa-animation-timing, steps(8));
|
|
789
|
-
}
|
|
790
|
-
|
|
791
|
-
@media (prefers-reduced-motion: reduce) {
|
|
792
|
-
.fa-beat,
|
|
793
|
-
.fa-bounce,
|
|
794
|
-
.fa-fade,
|
|
795
|
-
.fa-beat-fade,
|
|
796
|
-
.fa-flip,
|
|
797
|
-
.fa-pulse,
|
|
798
|
-
.fa-shake,
|
|
799
|
-
.fa-spin,
|
|
800
|
-
.fa-spin-pulse {
|
|
801
|
-
-webkit-animation-delay: -1ms;
|
|
802
|
-
animation-delay: -1ms;
|
|
803
|
-
-webkit-animation-duration: 1ms;
|
|
804
|
-
animation-duration: 1ms;
|
|
805
|
-
-webkit-animation-iteration-count: 1;
|
|
806
|
-
animation-iteration-count: 1;
|
|
807
|
-
transition-delay: 0s;
|
|
808
|
-
transition-duration: 0s;
|
|
809
|
-
}
|
|
810
|
-
}
|
|
811
|
-
@-webkit-keyframes fa-beat {
|
|
812
|
-
0%, 90% {
|
|
813
|
-
-webkit-transform: scale(1);
|
|
814
|
-
transform: scale(1);
|
|
815
|
-
}
|
|
816
|
-
45% {
|
|
817
|
-
-webkit-transform: scale(var(--fa-beat-scale, 1.25));
|
|
818
|
-
transform: scale(var(--fa-beat-scale, 1.25));
|
|
819
|
-
}
|
|
820
|
-
}
|
|
821
|
-
@keyframes fa-beat {
|
|
822
|
-
0%, 90% {
|
|
823
|
-
-webkit-transform: scale(1);
|
|
824
|
-
transform: scale(1);
|
|
825
|
-
}
|
|
826
|
-
45% {
|
|
827
|
-
-webkit-transform: scale(var(--fa-beat-scale, 1.25));
|
|
828
|
-
transform: scale(var(--fa-beat-scale, 1.25));
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
@-webkit-keyframes fa-bounce {
|
|
832
|
-
0% {
|
|
833
|
-
-webkit-transform: scale(1, 1) translateY(0);
|
|
834
|
-
transform: scale(1, 1) translateY(0);
|
|
835
|
-
}
|
|
836
|
-
10% {
|
|
837
|
-
-webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
|
838
|
-
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
|
839
|
-
}
|
|
840
|
-
30% {
|
|
841
|
-
-webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
|
|
842
|
-
transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
|
|
843
|
-
}
|
|
844
|
-
50% {
|
|
845
|
-
-webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
|
846
|
-
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
|
847
|
-
}
|
|
848
|
-
57% {
|
|
849
|
-
-webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
|
850
|
-
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
|
851
|
-
}
|
|
852
|
-
64% {
|
|
853
|
-
-webkit-transform: scale(1, 1) translateY(0);
|
|
854
|
-
transform: scale(1, 1) translateY(0);
|
|
855
|
-
}
|
|
856
|
-
100% {
|
|
857
|
-
-webkit-transform: scale(1, 1) translateY(0);
|
|
858
|
-
transform: scale(1, 1) translateY(0);
|
|
859
|
-
}
|
|
860
|
-
}
|
|
861
|
-
@keyframes fa-bounce {
|
|
862
|
-
0% {
|
|
863
|
-
-webkit-transform: scale(1, 1) translateY(0);
|
|
864
|
-
transform: scale(1, 1) translateY(0);
|
|
865
|
-
}
|
|
866
|
-
10% {
|
|
867
|
-
-webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
|
868
|
-
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
|
869
|
-
}
|
|
870
|
-
30% {
|
|
871
|
-
-webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
|
|
872
|
-
transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
|
|
873
|
-
}
|
|
874
|
-
50% {
|
|
875
|
-
-webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
|
876
|
-
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
|
877
|
-
}
|
|
878
|
-
57% {
|
|
879
|
-
-webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
|
880
|
-
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
|
881
|
-
}
|
|
882
|
-
64% {
|
|
883
|
-
-webkit-transform: scale(1, 1) translateY(0);
|
|
884
|
-
transform: scale(1, 1) translateY(0);
|
|
885
|
-
}
|
|
886
|
-
100% {
|
|
887
|
-
-webkit-transform: scale(1, 1) translateY(0);
|
|
888
|
-
transform: scale(1, 1) translateY(0);
|
|
889
|
-
}
|
|
890
|
-
}
|
|
891
|
-
@-webkit-keyframes fa-fade {
|
|
892
|
-
50% {
|
|
893
|
-
opacity: var(--fa-fade-opacity, 0.4);
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
@keyframes fa-fade {
|
|
897
|
-
50% {
|
|
898
|
-
opacity: var(--fa-fade-opacity, 0.4);
|
|
899
|
-
}
|
|
900
|
-
}
|
|
901
|
-
@-webkit-keyframes fa-beat-fade {
|
|
902
|
-
0%, 100% {
|
|
903
|
-
opacity: var(--fa-beat-fade-opacity, 0.4);
|
|
904
|
-
-webkit-transform: scale(1);
|
|
905
|
-
transform: scale(1);
|
|
906
|
-
}
|
|
907
|
-
50% {
|
|
908
|
-
opacity: 1;
|
|
909
|
-
-webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
|
|
910
|
-
transform: scale(var(--fa-beat-fade-scale, 1.125));
|
|
911
|
-
}
|
|
912
|
-
}
|
|
913
|
-
@keyframes fa-beat-fade {
|
|
914
|
-
0%, 100% {
|
|
915
|
-
opacity: var(--fa-beat-fade-opacity, 0.4);
|
|
916
|
-
-webkit-transform: scale(1);
|
|
917
|
-
transform: scale(1);
|
|
918
|
-
}
|
|
919
|
-
50% {
|
|
920
|
-
opacity: 1;
|
|
921
|
-
-webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
|
|
922
|
-
transform: scale(var(--fa-beat-fade-scale, 1.125));
|
|
923
|
-
}
|
|
924
|
-
}
|
|
925
|
-
@-webkit-keyframes fa-flip {
|
|
926
|
-
50% {
|
|
927
|
-
-webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
|
928
|
-
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
|
929
|
-
}
|
|
930
|
-
}
|
|
931
|
-
@keyframes fa-flip {
|
|
932
|
-
50% {
|
|
933
|
-
-webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
|
934
|
-
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
|
935
|
-
}
|
|
936
|
-
}
|
|
937
|
-
@-webkit-keyframes fa-shake {
|
|
938
|
-
0% {
|
|
939
|
-
-webkit-transform: rotate(-15deg);
|
|
940
|
-
transform: rotate(-15deg);
|
|
941
|
-
}
|
|
942
|
-
4% {
|
|
943
|
-
-webkit-transform: rotate(15deg);
|
|
944
|
-
transform: rotate(15deg);
|
|
945
|
-
}
|
|
946
|
-
8%, 24% {
|
|
947
|
-
-webkit-transform: rotate(-18deg);
|
|
948
|
-
transform: rotate(-18deg);
|
|
949
|
-
}
|
|
950
|
-
12%, 28% {
|
|
951
|
-
-webkit-transform: rotate(18deg);
|
|
952
|
-
transform: rotate(18deg);
|
|
953
|
-
}
|
|
954
|
-
16% {
|
|
955
|
-
-webkit-transform: rotate(-22deg);
|
|
956
|
-
transform: rotate(-22deg);
|
|
957
|
-
}
|
|
958
|
-
20% {
|
|
959
|
-
-webkit-transform: rotate(22deg);
|
|
960
|
-
transform: rotate(22deg);
|
|
961
|
-
}
|
|
962
|
-
32% {
|
|
963
|
-
-webkit-transform: rotate(-12deg);
|
|
964
|
-
transform: rotate(-12deg);
|
|
965
|
-
}
|
|
966
|
-
36% {
|
|
967
|
-
-webkit-transform: rotate(12deg);
|
|
968
|
-
transform: rotate(12deg);
|
|
969
|
-
}
|
|
970
|
-
40%, 100% {
|
|
971
|
-
-webkit-transform: rotate(0deg);
|
|
972
|
-
transform: rotate(0deg);
|
|
973
|
-
}
|
|
974
|
-
}
|
|
975
|
-
@keyframes fa-shake {
|
|
976
|
-
0% {
|
|
977
|
-
-webkit-transform: rotate(-15deg);
|
|
978
|
-
transform: rotate(-15deg);
|
|
979
|
-
}
|
|
980
|
-
4% {
|
|
981
|
-
-webkit-transform: rotate(15deg);
|
|
982
|
-
transform: rotate(15deg);
|
|
983
|
-
}
|
|
984
|
-
8%, 24% {
|
|
985
|
-
-webkit-transform: rotate(-18deg);
|
|
986
|
-
transform: rotate(-18deg);
|
|
987
|
-
}
|
|
988
|
-
12%, 28% {
|
|
989
|
-
-webkit-transform: rotate(18deg);
|
|
990
|
-
transform: rotate(18deg);
|
|
991
|
-
}
|
|
992
|
-
16% {
|
|
993
|
-
-webkit-transform: rotate(-22deg);
|
|
994
|
-
transform: rotate(-22deg);
|
|
995
|
-
}
|
|
996
|
-
20% {
|
|
997
|
-
-webkit-transform: rotate(22deg);
|
|
998
|
-
transform: rotate(22deg);
|
|
999
|
-
}
|
|
1000
|
-
32% {
|
|
1001
|
-
-webkit-transform: rotate(-12deg);
|
|
1002
|
-
transform: rotate(-12deg);
|
|
1003
|
-
}
|
|
1004
|
-
36% {
|
|
1005
|
-
-webkit-transform: rotate(12deg);
|
|
1006
|
-
transform: rotate(12deg);
|
|
1007
|
-
}
|
|
1008
|
-
40%, 100% {
|
|
1009
|
-
-webkit-transform: rotate(0deg);
|
|
1010
|
-
transform: rotate(0deg);
|
|
1011
|
-
}
|
|
1012
|
-
}
|
|
1013
|
-
@-webkit-keyframes fa-spin {
|
|
1014
|
-
0% {
|
|
1015
|
-
-webkit-transform: rotate(0deg);
|
|
1016
|
-
transform: rotate(0deg);
|
|
1017
|
-
}
|
|
1018
|
-
100% {
|
|
1019
|
-
-webkit-transform: rotate(360deg);
|
|
1020
|
-
transform: rotate(360deg);
|
|
1021
|
-
}
|
|
1022
|
-
}
|
|
1023
|
-
@keyframes fa-spin {
|
|
1024
|
-
0% {
|
|
1025
|
-
-webkit-transform: rotate(0deg);
|
|
1026
|
-
transform: rotate(0deg);
|
|
1027
|
-
}
|
|
1028
|
-
100% {
|
|
1029
|
-
-webkit-transform: rotate(360deg);
|
|
1030
|
-
transform: rotate(360deg);
|
|
1031
|
-
}
|
|
1032
|
-
}
|
|
1033
|
-
.fa-rotate-90 {
|
|
1034
|
-
-webkit-transform: rotate(90deg);
|
|
1035
|
-
transform: rotate(90deg);
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1038
|
-
.fa-rotate-180 {
|
|
1039
|
-
-webkit-transform: rotate(180deg);
|
|
1040
|
-
transform: rotate(180deg);
|
|
1041
|
-
}
|
|
1042
|
-
|
|
1043
|
-
.fa-rotate-270 {
|
|
1044
|
-
-webkit-transform: rotate(270deg);
|
|
1045
|
-
transform: rotate(270deg);
|
|
1046
|
-
}
|
|
1047
|
-
|
|
1048
|
-
.fa-flip-horizontal {
|
|
1049
|
-
-webkit-transform: scale(-1, 1);
|
|
1050
|
-
transform: scale(-1, 1);
|
|
1051
|
-
}
|
|
1052
|
-
|
|
1053
|
-
.fa-flip-vertical {
|
|
1054
|
-
-webkit-transform: scale(1, -1);
|
|
1055
|
-
transform: scale(1, -1);
|
|
1056
|
-
}
|
|
1057
|
-
|
|
1058
|
-
.fa-flip-both,
|
|
1059
|
-
.fa-flip-horizontal.fa-flip-vertical {
|
|
1060
|
-
-webkit-transform: scale(-1, -1);
|
|
1061
|
-
transform: scale(-1, -1);
|
|
1062
|
-
}
|
|
1063
|
-
|
|
1064
|
-
.fa-rotate-by {
|
|
1065
|
-
-webkit-transform: rotate(var(--fa-rotate-angle, none));
|
|
1066
|
-
transform: rotate(var(--fa-rotate-angle, none));
|
|
1067
|
-
}
|
|
1068
|
-
|
|
1069
|
-
.fa-stack {
|
|
1070
|
-
display: inline-block;
|
|
1071
|
-
vertical-align: middle;
|
|
1072
|
-
height: 2em;
|
|
1073
|
-
position: relative;
|
|
1074
|
-
width: 2.5em;
|
|
1075
|
-
}
|
|
1076
|
-
|
|
1077
|
-
.fa-stack-1x,
|
|
1078
|
-
.fa-stack-2x {
|
|
1079
|
-
bottom: 0;
|
|
1080
|
-
left: 0;
|
|
1081
|
-
margin: auto;
|
|
1082
|
-
position: absolute;
|
|
1083
|
-
right: 0;
|
|
1084
|
-
top: 0;
|
|
1085
|
-
z-index: var(--fa-stack-z-index, auto);
|
|
1086
|
-
}
|
|
1087
|
-
|
|
1088
|
-
.svg-inline--fa.fa-stack-1x {
|
|
1089
|
-
height: 1em;
|
|
1090
|
-
width: 1.25em;
|
|
1091
|
-
}
|
|
1092
|
-
.svg-inline--fa.fa-stack-2x {
|
|
1093
|
-
height: 2em;
|
|
1094
|
-
width: 2.5em;
|
|
1095
|
-
}
|
|
1096
|
-
|
|
1097
|
-
.fa-inverse {
|
|
1098
|
-
color: var(--fa-inverse, #fff);
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
|
-
.sr-only,
|
|
1102
|
-
.fa-sr-only {
|
|
1103
|
-
position: absolute;
|
|
1104
|
-
width: 1px;
|
|
1105
|
-
height: 1px;
|
|
1106
|
-
padding: 0;
|
|
1107
|
-
margin: -1px;
|
|
1108
|
-
overflow: hidden;
|
|
1109
|
-
clip: rect(0, 0, 0, 0);
|
|
1110
|
-
white-space: nowrap;
|
|
1111
|
-
border-width: 0;
|
|
1112
|
-
}
|
|
1113
|
-
|
|
1114
|
-
.sr-only-focusable:not(:focus),
|
|
1115
|
-
.fa-sr-only-focusable:not(:focus) {
|
|
1116
|
-
position: absolute;
|
|
1117
|
-
width: 1px;
|
|
1118
|
-
height: 1px;
|
|
1119
|
-
padding: 0;
|
|
1120
|
-
margin: -1px;
|
|
1121
|
-
overflow: hidden;
|
|
1122
|
-
clip: rect(0, 0, 0, 0);
|
|
1123
|
-
white-space: nowrap;
|
|
1124
|
-
border-width: 0;
|
|
1125
|
-
}
|
|
1126
|
-
|
|
1127
|
-
.svg-inline--fa .fa-primary {
|
|
1128
|
-
fill: var(--fa-primary-color, currentColor);
|
|
1129
|
-
opacity: var(--fa-primary-opacity, 1);
|
|
1130
|
-
}
|
|
1131
|
-
|
|
1132
|
-
.svg-inline--fa .fa-secondary {
|
|
1133
|
-
fill: var(--fa-secondary-color, currentColor);
|
|
1134
|
-
opacity: var(--fa-secondary-opacity, 0.4);
|
|
1135
|
-
}
|
|
1136
|
-
|
|
1137
|
-
.svg-inline--fa.fa-swap-opacity .fa-primary {
|
|
1138
|
-
opacity: var(--fa-secondary-opacity, 0.4);
|
|
1139
|
-
}
|
|
1140
|
-
|
|
1141
|
-
.svg-inline--fa.fa-swap-opacity .fa-secondary {
|
|
1142
|
-
opacity: var(--fa-primary-opacity, 1);
|
|
1143
|
-
}
|
|
1144
|
-
|
|
1145
|
-
.svg-inline--fa mask .fa-primary,
|
|
1146
|
-
.svg-inline--fa mask .fa-secondary {
|
|
1147
|
-
fill: black;
|
|
1148
|
-
}
|
|
1149
|
-
|
|
1150
|
-
.fad.fa-inverse,
|
|
1151
|
-
.fa-duotone.fa-inverse {
|
|
1152
|
-
color: var(--fa-inverse, #fff);
|
|
1153
|
-
}`;function p4(){var e=u4,t=l4,r=Ut.cssPrefix,n=Ut.replacementClass,i=nZ;if(r!==e||n!==t){var a=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(t),"g");i=i.replace(a,".".concat(r,"-")).replace(o,"--".concat(r,"-")).replace(l,".".concat(n))}return i}var t5=!1;function Ob(){Ut.autoAddCss&&!t5&&(KQ(p4()),t5=!0)}var iZ={mixout:function(){return{dom:{css:p4,insertCss:Ob}}},hooks:function(){return{beforeDOMElementCreation:function(){Ob()},beforeI2svg:function(){Ob()}}}},eo=fu||{};eo[Ja]||(eo[Ja]={});eo[Ja].styles||(eo[Ja].styles={});eo[Ja].hooks||(eo[Ja].hooks={});eo[Ja].shims||(eo[Ja].shims=[]);var Yi=eo[Ja],v4=[],aZ=function e(){Dr.removeEventListener("DOMContentLoaded",e),Um=1,v4.map(function(t){return t()})},Um=!1;lo&&(Um=(Dr.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Dr.readyState),Um||Dr.addEventListener("DOMContentLoaded",aZ));function oZ(e){!lo||(Um?setTimeout(e,0):v4.push(e))}function rp(e){var t=e.tag,r=e.attributes,n=r===void 0?{}:r,i=e.children,a=i===void 0?[]:i;return typeof e=="string"?d4(e):"<".concat(t," ").concat(eZ(n),">").concat(a.map(rp).join(""),"</").concat(t,">")}function r5(e,t,r){if(e&&e[t]&&e[t][r])return{prefix:t,iconName:r,icon:e[t][r]}}var uZ=function(t,r){return function(n,i,a,o){return t.call(r,n,i,a,o)}},kb=function(t,r,n,i){var a=Object.keys(t),o=a.length,l=i!==void 0?uZ(r,i):r,s,c,d;for(n===void 0?(s=1,d=t[a[0]]):(s=0,d=n);s<o;s++)c=a[s],d=l(d,t[c],c,t);return d};function lZ(e){for(var t=[],r=0,n=e.length;r<n;){var i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var a=e.charCodeAt(r++);(a&64512)==56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),r--)}else t.push(i)}return t}function m_(e){var t=lZ(e);return t.length===1?t[0].toString(16):null}function sZ(e,t){var r=e.length,n=e.charCodeAt(t),i;return n>=55296&&n<=56319&&r>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(n-55296)*1024+i-56320+65536:n}function n5(e){return Object.keys(e).reduce(function(t,r){var n=e[r],i=!!n.icon;return i?t[n.iconName]=n.icon:t[r]=n,t},{})}function g_(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.skipHooks,i=n===void 0?!1:n,a=n5(t);typeof Yi.hooks.addPack=="function"&&!i?Yi.hooks.addPack(e,n5(t)):Yi.styles[e]=Nt(Nt({},Yi.styles[e]||{}),a),e==="fas"&&g_("fa",t)}var d0,p0,v0,Hs=Yi.styles,fZ=Yi.shims,cZ=(d0={},hn(d0,Nr,Object.values(Id[Nr])),hn(d0,Hr,Object.values(Id[Hr])),d0),NS=null,m4={},g4={},y4={},x4={},b4={},hZ=(p0={},hn(p0,Nr,Object.keys(kd[Nr])),hn(p0,Hr,Object.keys(kd[Hr])),p0);function dZ(e){return~qQ.indexOf(e)}function pZ(e,t){var r=t.split("-"),n=r[0],i=r.slice(1).join("-");return n===e&&i!==""&&!dZ(i)?i:null}var w4=function(){var t=function(a){return kb(Hs,function(o,l,s){return o[s]=kb(l,a,{}),o},{})};m4=t(function(i,a,o){if(a[3]&&(i[a[3]]=o),a[2]){var l=a[2].filter(function(s){return typeof s=="number"});l.forEach(function(s){i[s.toString(16)]=o})}return i}),g4=t(function(i,a,o){if(i[o]=o,a[2]){var l=a[2].filter(function(s){return typeof s=="string"});l.forEach(function(s){i[s]=o})}return i}),b4=t(function(i,a,o){var l=a[2];return i[o]=o,l.forEach(function(s){i[s]=o}),i});var r="far"in Hs||Ut.autoFetchSvg,n=kb(fZ,function(i,a){var o=a[0],l=a[1],s=a[2];return l==="far"&&!r&&(l="fas"),typeof o=="string"&&(i.names[o]={prefix:l,iconName:s}),typeof o=="number"&&(i.unicodes[o.toString(16)]={prefix:l,iconName:s}),i},{names:{},unicodes:{}});y4=n.names,x4=n.unicodes,NS=Lg(Ut.styleDefault,{family:Ut.familyDefault})};ZQ(function(e){NS=Lg(e.styleDefault,{family:Ut.familyDefault})});w4();function LS(e,t){return(m4[e]||{})[t]}function vZ(e,t){return(g4[e]||{})[t]}function ll(e,t){return(b4[e]||{})[t]}function _4(e){return y4[e]||{prefix:null,iconName:null}}function mZ(e){var t=x4[e],r=LS("fas",e);return t||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}function cu(){return NS}var DS=function(){return{prefix:null,iconName:null,rest:[]}};function Lg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.family,n=r===void 0?Nr:r,i=kd[n][e],a=Md[n][e]||Md[n][i],o=e in Yi.styles?e:null;return a||o||null}var i5=(v0={},hn(v0,Nr,Object.keys(Id[Nr])),hn(v0,Hr,Object.keys(Id[Hr])),v0);function Dg(e){var t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.skipLookups,i=n===void 0?!1:n,a=(t={},hn(t,Nr,"".concat(Ut.cssPrefix,"-").concat(Nr)),hn(t,Hr,"".concat(Ut.cssPrefix,"-").concat(Hr)),t),o=null,l=Nr;(e.includes(a[Nr])||e.some(function(c){return i5[Nr].includes(c)}))&&(l=Nr),(e.includes(a[Hr])||e.some(function(c){return i5[Hr].includes(c)}))&&(l=Hr);var s=e.reduce(function(c,d){var y=pZ(Ut.cssPrefix,d);if(Hs[d]?(d=cZ[l].includes(d)?UQ[l][d]:d,o=d,c.prefix=d):hZ[l].indexOf(d)>-1?(o=d,c.prefix=Lg(d,{family:l})):y?c.iconName=y:d!==Ut.replacementClass&&d!==a[Nr]&&d!==a[Hr]&&c.rest.push(d),!i&&c.prefix&&c.iconName){var g=o==="fa"?_4(c.iconName):{},m=ll(c.prefix,c.iconName);g.prefix&&(o=null),c.iconName=g.iconName||m||c.iconName,c.prefix=g.prefix||c.prefix,c.prefix==="far"&&!Hs.far&&Hs.fas&&!Ut.autoFetchSvg&&(c.prefix="fas")}return c},DS());return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),!s.prefix&&l===Hr&&(Hs.fass||Ut.autoFetchSvg)&&(s.prefix="fass",s.iconName=ll(s.prefix,s.iconName)||s.iconName),(s.prefix==="fa"||o==="fa")&&(s.prefix=cu()||"fas"),s}var gZ=function(){function e(){kQ(this,e),this.definitions={}}return MQ(e,[{key:"add",value:function(){for(var r=this,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.reduce(this._pullDefinitions,{});Object.keys(o).forEach(function(l){r.definitions[l]=Nt(Nt({},r.definitions[l]||{}),o[l]),g_(l,o[l]);var s=Id[Nr][l];s&&g_(s,o[l]),w4()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(r,n){var i=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(i).map(function(a){var o=i[a],l=o.prefix,s=o.iconName,c=o.icon,d=c[2];r[l]||(r[l]={}),d.length>0&&d.forEach(function(y){typeof y=="string"&&(r[l][y]=c)}),r[l][s]=c}),r}}]),e}(),a5=[],Vs={},cf={},yZ=Object.keys(cf);function xZ(e,t){var r=t.mixoutsTo;return a5=e,Vs={},Object.keys(cf).forEach(function(n){yZ.indexOf(n)===-1&&delete cf[n]}),a5.forEach(function(n){var i=n.mixout?n.mixout():{};if(Object.keys(i).forEach(function(o){typeof i[o]=="function"&&(r[o]=i[o]),zm(i[o])==="object"&&Object.keys(i[o]).forEach(function(l){r[o]||(r[o]={}),r[o][l]=i[o][l]})}),n.hooks){var a=n.hooks();Object.keys(a).forEach(function(o){Vs[o]||(Vs[o]=[]),Vs[o].push(a[o])})}n.provides&&n.provides(cf)}),r}function y_(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];var a=Vs[e]||[];return a.forEach(function(o){t=o.apply(null,[t].concat(n))}),t}function _l(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=Vs[e]||[];i.forEach(function(a){a.apply(null,r)})}function to(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return cf[e]?cf[e].apply(null,t):void 0}function x_(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,r=e.prefix||cu();if(!!t)return t=ll(r,t)||t,r5(S4.definitions,r,t)||r5(Yi.styles,r,t)}var S4=new gZ,bZ=function(){Ut.autoReplaceSvg=!1,Ut.observeMutations=!1,_l("noAuto")},wZ={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return lo?(_l("beforeI2svg",t),to("pseudoElements2svg",t),to("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.autoReplaceSvgRoot;Ut.autoReplaceSvg===!1&&(Ut.autoReplaceSvg=!0),Ut.observeMutations=!0,oZ(function(){SZ({autoReplaceSvgRoot:r}),_l("watch",t)})}},_Z={icon:function(t){if(t===null)return null;if(zm(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:ll(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var r=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],n=Lg(t[0]);return{prefix:n,iconName:ll(n,r)||r}}if(typeof t=="string"&&(t.indexOf("".concat(Ut.cssPrefix,"-"))>-1||t.match(jQ))){var i=Dg(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||cu(),iconName:ll(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var a=cu();return{prefix:a,iconName:ll(a,t)||t}}}},vi={noAuto:bZ,config:Ut,dom:wZ,parse:_Z,library:S4,findIconDefinition:x_,toHtml:rp},SZ=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.autoReplaceSvgRoot,n=r===void 0?Dr:r;(Object.keys(Yi.styles).length>0||Ut.autoFetchSvg)&&lo&&Ut.autoReplaceSvg&&vi.dom.i2svg({node:n})};function $g(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(n){return rp(n)})}}),Object.defineProperty(e,"node",{get:function(){if(!!lo){var n=Dr.createElement("div");return n.innerHTML=e.html,n.children}}}),e}function EZ(e){var t=e.children,r=e.main,n=e.mask,i=e.attributes,a=e.styles,o=e.transform;if(RS(o)&&r.found&&!n.found){var l=r.width,s=r.height,c={x:l/s/2,y:.5};i.style=Ng(Nt(Nt({},a),{},{"transform-origin":"".concat(c.x+o.x/16,"em ").concat(c.y+o.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function AZ(e){var t=e.prefix,r=e.iconName,n=e.children,i=e.attributes,a=e.symbol,o=a===!0?"".concat(t,"-").concat(Ut.cssPrefix,"-").concat(r):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Nt(Nt({},i),{},{id:o}),children:n}]}]}function $S(e){var t=e.icons,r=t.main,n=t.mask,i=e.prefix,a=e.iconName,o=e.transform,l=e.symbol,s=e.title,c=e.maskId,d=e.titleId,y=e.extra,g=e.watchable,m=g===void 0?!1:g,E=n.found?n:r,M=E.width,b=E.height,w=i==="fak",_=[Ut.replacementClass,a?"".concat(Ut.cssPrefix,"-").concat(a):""].filter(function(re){return y.classes.indexOf(re)===-1}).filter(function(re){return re!==""||!!re}).concat(y.classes).join(" "),C={children:[],attributes:Nt(Nt({},y.attributes),{},{"data-prefix":i,"data-icon":a,class:_,role:y.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(M," ").concat(b)})},T=w&&!~y.classes.indexOf("fa-fw")?{width:"".concat(M/b*16*.0625,"em")}:{};m&&(C.attributes[wl]=""),s&&(C.children.push({tag:"title",attributes:{id:C.attributes["aria-labelledby"]||"title-".concat(d||Fd())},children:[s]}),delete C.attributes.title);var R=Nt(Nt({},C),{},{prefix:i,iconName:a,main:r,mask:n,maskId:c,transform:o,symbol:l,styles:Nt(Nt({},T),y.styles)}),D=n.found&&r.found?to("generateAbstractMask",R)||{children:[],attributes:{}}:to("generateAbstractIcon",R)||{children:[],attributes:{}},Y=D.children,j=D.attributes;return R.children=Y,R.attributes=j,l?AZ(R):EZ(R)}function o5(e){var t=e.content,r=e.width,n=e.height,i=e.transform,a=e.title,o=e.extra,l=e.watchable,s=l===void 0?!1:l,c=Nt(Nt(Nt({},o.attributes),a?{title:a}:{}),{},{class:o.classes.join(" ")});s&&(c[wl]="");var d=Nt({},o.styles);RS(i)&&(d.transform=rZ({transform:i,startCentered:!0,width:r,height:n}),d["-webkit-transform"]=d.transform);var y=Ng(d);y.length>0&&(c.style=y);var g=[];return g.push({tag:"span",attributes:c,children:[t]}),a&&g.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),g}function TZ(e){var t=e.content,r=e.title,n=e.extra,i=Nt(Nt(Nt({},n.attributes),r?{title:r}:{}),{},{class:n.classes.join(" ")}),a=Ng(n.styles);a.length>0&&(i.style=a);var o=[];return o.push({tag:"span",attributes:i,children:[t]}),r&&o.push({tag:"span",attributes:{class:"sr-only"},children:[r]}),o}var Mb=Yi.styles;function b_(e){var t=e[0],r=e[1],n=e.slice(4),i=OS(n,1),a=i[0],o=null;return Array.isArray(a)?o={tag:"g",attributes:{class:"".concat(Ut.cssPrefix,"-").concat(ul.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Ut.cssPrefix,"-").concat(ul.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(Ut.cssPrefix,"-").concat(ul.PRIMARY),fill:"currentColor",d:a[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:a}},{found:!0,width:t,height:r,icon:o}}var CZ={found:!1,width:512,height:512};function OZ(e,t){!s4&&!Ut.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function w_(e,t){var r=t;return t==="fa"&&Ut.styleDefault!==null&&(t=cu()),new Promise(function(n,i){if(to("missingIconAbstract"),r==="fa"){var a=_4(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&Mb[t]&&Mb[t][e]){var o=Mb[t][e];return n(b_(o))}OZ(e,t),n(Nt(Nt({},CZ),{},{icon:Ut.showMissingIcons&&e?to("missingIconAbstract")||{}:{}}))})}var u5=function(){},__=Ut.measurePerformance&&u0&&u0.mark&&u0.measure?u0:{mark:u5,measure:u5},Nh='FA "6.2.1"',kZ=function(t){return __.mark("".concat(Nh," ").concat(t," begins")),function(){return E4(t)}},E4=function(t){__.mark("".concat(Nh," ").concat(t," ends")),__.measure("".concat(Nh," ").concat(t),"".concat(Nh," ").concat(t," begins"),"".concat(Nh," ").concat(t," ends"))},BS={begin:kZ,end:E4},$0=function(){};function l5(e){var t=e.getAttribute?e.getAttribute(wl):null;return typeof t=="string"}function MZ(e){var t=e.getAttribute?e.getAttribute(MS):null,r=e.getAttribute?e.getAttribute(IS):null;return t&&r}function IZ(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Ut.replacementClass)}function PZ(){if(Ut.autoReplaceSvg===!0)return B0.replace;var e=B0[Ut.autoReplaceSvg];return e||B0.replace}function FZ(e){return Dr.createElementNS("http://www.w3.org/2000/svg",e)}function RZ(e){return Dr.createElement(e)}function A4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.ceFn,n=r===void 0?e.tag==="svg"?FZ:RZ:r;if(typeof e=="string")return Dr.createTextNode(e);var i=n(e.tag);Object.keys(e.attributes||[]).forEach(function(o){i.setAttribute(o,e.attributes[o])});var a=e.children||[];return a.forEach(function(o){i.appendChild(A4(o,{ceFn:n}))}),i}function NZ(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var B0={replace:function(t){var r=t[0];if(r.parentNode)if(t[1].forEach(function(i){r.parentNode.insertBefore(A4(i),r)}),r.getAttribute(wl)===null&&Ut.keepOriginalSource){var n=Dr.createComment(NZ(r));r.parentNode.replaceChild(n,r)}else r.remove()},nest:function(t){var r=t[0],n=t[1];if(~FS(r).indexOf(Ut.replacementClass))return B0.replace(t);var i=new RegExp("".concat(Ut.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var a=n[0].attributes.class.split(" ").reduce(function(l,s){return s===Ut.replacementClass||s.match(i)?l.toSvg.push(s):l.toNode.push(s),l},{toNode:[],toSvg:[]});n[0].attributes.class=a.toSvg.join(" "),a.toNode.length===0?r.removeAttribute("class"):r.setAttribute("class",a.toNode.join(" "))}var o=n.map(function(l){return rp(l)}).join(`
|
|
1154
|
-
`);r.setAttribute(wl,""),r.innerHTML=o}};function s5(e){e()}function T4(e,t){var r=typeof t=="function"?t:$0;if(e.length===0)r();else{var n=s5;Ut.mutateApproach===BQ&&(n=fu.requestAnimationFrame||s5),n(function(){var i=PZ(),a=BS.begin("mutate");e.map(i),a(),r()})}}var zS=!1;function C4(){zS=!0}function S_(){zS=!1}var jm=null;function f5(e){if(!!JO&&!!Ut.observeMutations){var t=e.treeCallback,r=t===void 0?$0:t,n=e.nodeCallback,i=n===void 0?$0:n,a=e.pseudoElementsCallback,o=a===void 0?$0:a,l=e.observeMutationsRoot,s=l===void 0?Dr:l;jm=new JO(function(c){if(!zS){var d=cu();Uf(c).forEach(function(y){if(y.type==="childList"&&y.addedNodes.length>0&&!l5(y.addedNodes[0])&&(Ut.searchPseudoElements&&o(y.target),r(y.target)),y.type==="attributes"&&y.target.parentNode&&Ut.searchPseudoElements&&o(y.target.parentNode),y.type==="attributes"&&l5(y.target)&&~VQ.indexOf(y.attributeName))if(y.attributeName==="class"&&MZ(y.target)){var g=Dg(FS(y.target)),m=g.prefix,E=g.iconName;y.target.setAttribute(MS,m||d),E&&y.target.setAttribute(IS,E)}else IZ(y.target)&&i(y.target)})}}),lo&&jm.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function LZ(){!jm||jm.disconnect()}function DZ(e){var t=e.getAttribute("style"),r=[];return t&&(r=t.split(";").reduce(function(n,i){var a=i.split(":"),o=a[0],l=a.slice(1);return o&&l.length>0&&(n[o]=l.join(":").trim()),n},{})),r}function $Z(e){var t=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),n=e.innerText!==void 0?e.innerText.trim():"",i=Dg(FS(e));return i.prefix||(i.prefix=cu()),t&&r&&(i.prefix=t,i.iconName=r),i.iconName&&i.prefix||(i.prefix&&n.length>0&&(i.iconName=vZ(i.prefix,e.innerText)||LS(i.prefix,m_(e.innerText))),!i.iconName&&Ut.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function BZ(e){var t=Uf(e.attributes).reduce(function(i,a){return i.name!=="class"&&i.name!=="style"&&(i[a.name]=a.value),i},{}),r=e.getAttribute("title"),n=e.getAttribute("data-fa-title-id");return Ut.autoA11y&&(r?t["aria-labelledby"]="".concat(Ut.replacementClass,"-title-").concat(n||Fd()):(t["aria-hidden"]="true",t.focusable="false")),t}function zZ(){return{iconName:null,title:null,titleId:null,prefix:null,transform:pa,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function c5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},r=$Z(e),n=r.iconName,i=r.prefix,a=r.rest,o=BZ(e),l=y_("parseNodeAttributes",{},e),s=t.styleParser?DZ(e):[];return Nt({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:pa,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:s,attributes:o}},l)}var UZ=Yi.styles;function O4(e){var t=Ut.autoReplaceSvg==="nest"?c5(e,{styleParser:!1}):c5(e);return~t.extra.classes.indexOf(f4)?to("generateLayersText",e,t):to("generateSvgReplacementMutation",e,t)}var hu=new Set;PS.map(function(e){hu.add("fa-".concat(e))});Object.keys(kd[Nr]).map(hu.add.bind(hu));Object.keys(kd[Hr]).map(hu.add.bind(hu));hu=ep(hu);function h5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!lo)return Promise.resolve();var r=Dr.documentElement.classList,n=function(y){return r.add("".concat(e5,"-").concat(y))},i=function(y){return r.remove("".concat(e5,"-").concat(y))},a=Ut.autoFetchSvg?hu:PS.map(function(d){return"fa-".concat(d)}).concat(Object.keys(UZ));a.includes("fa")||a.push("fa");var o=[".".concat(f4,":not([").concat(wl,"])")].concat(a.map(function(d){return".".concat(d,":not([").concat(wl,"])")})).join(", ");if(o.length===0)return Promise.resolve();var l=[];try{l=Uf(e.querySelectorAll(o))}catch{}if(l.length>0)n("pending"),i("complete");else return Promise.resolve();var s=BS.begin("onTree"),c=l.reduce(function(d,y){try{var g=O4(y);g&&d.push(g)}catch(m){s4||m.name==="MissingIcon"&&console.error(m)}return d},[]);return new Promise(function(d,y){Promise.all(c).then(function(g){T4(g,function(){n("active"),n("complete"),i("pending"),typeof t=="function"&&t(),s(),d()})}).catch(function(g){s(),y(g)})})}function jZ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;O4(e).then(function(r){r&&T4([r],t)})}function GZ(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=(t||{}).icon?t:x_(t||{}),i=r.mask;return i&&(i=(i||{}).icon?i:x_(i||{})),e(n,Nt(Nt({},r),{},{mask:i}))}}var WZ=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.transform,i=n===void 0?pa:n,a=r.symbol,o=a===void 0?!1:a,l=r.mask,s=l===void 0?null:l,c=r.maskId,d=c===void 0?null:c,y=r.title,g=y===void 0?null:y,m=r.titleId,E=m===void 0?null:m,M=r.classes,b=M===void 0?[]:M,w=r.attributes,_=w===void 0?{}:w,C=r.styles,T=C===void 0?{}:C;if(!!t){var R=t.prefix,D=t.iconName,Y=t.icon;return $g(Nt({type:"icon"},t),function(){return _l("beforeDOMElementCreation",{iconDefinition:t,params:r}),Ut.autoA11y&&(g?_["aria-labelledby"]="".concat(Ut.replacementClass,"-title-").concat(E||Fd()):(_["aria-hidden"]="true",_.focusable="false")),$S({icons:{main:b_(Y),mask:s?b_(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:R,iconName:D,transform:Nt(Nt({},pa),i),symbol:o,title:g,maskId:d,titleId:E,extra:{attributes:_,styles:T,classes:b}})})}},HZ={mixout:function(){return{icon:GZ(WZ)}},hooks:function(){return{mutationObserverCallbacks:function(r){return r.treeCallback=h5,r.nodeCallback=jZ,r}}},provides:function(t){t.i2svg=function(r){var n=r.node,i=n===void 0?Dr:n,a=r.callback,o=a===void 0?function(){}:a;return h5(i,o)},t.generateSvgReplacementMutation=function(r,n){var i=n.iconName,a=n.title,o=n.titleId,l=n.prefix,s=n.transform,c=n.symbol,d=n.mask,y=n.maskId,g=n.extra;return new Promise(function(m,E){Promise.all([w_(i,l),d.iconName?w_(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(M){var b=OS(M,2),w=b[0],_=b[1];m([r,$S({icons:{main:w,mask:_},prefix:l,iconName:i,transform:s,symbol:c,maskId:y,title:a,titleId:o,extra:g,watchable:!0})])}).catch(E)})},t.generateAbstractIcon=function(r){var n=r.children,i=r.attributes,a=r.main,o=r.transform,l=r.styles,s=Ng(l);s.length>0&&(i.style=s);var c;return RS(o)&&(c=to("generateAbstractTransformGrouping",{main:a,transform:o,containerWidth:a.width,iconWidth:a.width})),n.push(c||a.icon),{children:n,attributes:i}}}},VZ={mixout:function(){return{layer:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.classes,a=i===void 0?[]:i;return $g({type:"layer"},function(){_l("beforeDOMElementCreation",{assembler:r,params:n});var o=[];return r(function(l){Array.isArray(l)?l.map(function(s){o=o.concat(s.abstract)}):o=o.concat(l.abstract)}),[{tag:"span",attributes:{class:["".concat(Ut.cssPrefix,"-layers")].concat(ep(a)).join(" ")},children:o}]})}}}},qZ={mixout:function(){return{counter:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.title,a=i===void 0?null:i,o=n.classes,l=o===void 0?[]:o,s=n.attributes,c=s===void 0?{}:s,d=n.styles,y=d===void 0?{}:d;return $g({type:"counter",content:r},function(){return _l("beforeDOMElementCreation",{content:r,params:n}),TZ({content:r.toString(),title:a,extra:{attributes:c,styles:y,classes:["".concat(Ut.cssPrefix,"-layers-counter")].concat(ep(l))}})})}}}},YZ={mixout:function(){return{text:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.transform,a=i===void 0?pa:i,o=n.title,l=o===void 0?null:o,s=n.classes,c=s===void 0?[]:s,d=n.attributes,y=d===void 0?{}:d,g=n.styles,m=g===void 0?{}:g;return $g({type:"text",content:r},function(){return _l("beforeDOMElementCreation",{content:r,params:n}),o5({content:r,transform:Nt(Nt({},pa),a),title:l,extra:{attributes:y,styles:m,classes:["".concat(Ut.cssPrefix,"-layers-text")].concat(ep(c))}})})}}},provides:function(t){t.generateLayersText=function(r,n){var i=n.title,a=n.transform,o=n.extra,l=null,s=null;if(o4){var c=parseInt(getComputedStyle(r).fontSize,10),d=r.getBoundingClientRect();l=d.width/c,s=d.height/c}return Ut.autoA11y&&!i&&(o.attributes["aria-hidden"]="true"),Promise.resolve([r,o5({content:r.innerHTML,width:l,height:s,transform:a,title:i,extra:o,watchable:!0})])}}},XZ=new RegExp('"',"ug"),d5=[1105920,1112319];function QZ(e){var t=e.replace(XZ,""),r=sZ(t,0),n=r>=d5[0]&&r<=d5[1],i=t.length===2?t[0]===t[1]:!1;return{value:m_(i?t[0]:t),isSecondary:n||i}}function p5(e,t){var r="".concat($Q).concat(t.replace(":","-"));return new Promise(function(n,i){if(e.getAttribute(r)!==null)return n();var a=Uf(e.children),o=a.filter(function(Y){return Y.getAttribute(v_)===t})[0],l=fu.getComputedStyle(e,t),s=l.getPropertyValue("font-family").match(GQ),c=l.getPropertyValue("font-weight"),d=l.getPropertyValue("content");if(o&&!s)return e.removeChild(o),n();if(s&&d!=="none"&&d!==""){var y=l.getPropertyValue("content"),g=~["Sharp"].indexOf(s[2])?Hr:Nr,m=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?Md[g][s[2].toLowerCase()]:WQ[g][c],E=QZ(y),M=E.value,b=E.isSecondary,w=s[0].startsWith("FontAwesome"),_=LS(m,M),C=_;if(w){var T=mZ(M);T.iconName&&T.prefix&&(_=T.iconName,m=T.prefix)}if(_&&!b&&(!o||o.getAttribute(MS)!==m||o.getAttribute(IS)!==C)){e.setAttribute(r,C),o&&e.removeChild(o);var R=zZ(),D=R.extra;D.attributes[v_]=t,w_(_,m).then(function(Y){var j=$S(Nt(Nt({},R),{},{icons:{main:Y,mask:DS()},prefix:m,iconName:C,extra:D,watchable:!0})),re=Dr.createElement("svg");t==="::before"?e.insertBefore(re,e.firstChild):e.appendChild(re),re.outerHTML=j.map(function(Se){return rp(Se)}).join(`
|
|
1155
|
-
`),e.removeAttribute(r),n()}).catch(i)}else n()}else n()})}function ZZ(e){return Promise.all([p5(e,"::before"),p5(e,"::after")])}function KZ(e){return e.parentNode!==document.head&&!~zQ.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(v_)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function v5(e){if(!!lo)return new Promise(function(t,r){var n=Uf(e.querySelectorAll("*")).filter(KZ).map(ZZ),i=BS.begin("searchPseudoElements");C4(),Promise.all(n).then(function(){i(),S_(),t()}).catch(function(){i(),S_(),r()})})}var JZ={hooks:function(){return{mutationObserverCallbacks:function(r){return r.pseudoElementsCallback=v5,r}}},provides:function(t){t.pseudoElements2svg=function(r){var n=r.node,i=n===void 0?Dr:n;Ut.searchPseudoElements&&v5(i)}}},m5=!1,eK={mixout:function(){return{dom:{unwatch:function(){C4(),m5=!0}}}},hooks:function(){return{bootstrap:function(){f5(y_("mutationObserverCallbacks",{}))},noAuto:function(){LZ()},watch:function(r){var n=r.observeMutationsRoot;m5?S_():f5(y_("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}},g5=function(t){var r={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(n,i){var a=i.toLowerCase().split("-"),o=a[0],l=a.slice(1).join("-");if(o&&l==="h")return n.flipX=!0,n;if(o&&l==="v")return n.flipY=!0,n;if(l=parseFloat(l),isNaN(l))return n;switch(o){case"grow":n.size=n.size+l;break;case"shrink":n.size=n.size-l;break;case"left":n.x=n.x-l;break;case"right":n.x=n.x+l;break;case"up":n.y=n.y-l;break;case"down":n.y=n.y+l;break;case"rotate":n.rotate=n.rotate+l;break}return n},r)},tK={mixout:function(){return{parse:{transform:function(r){return g5(r)}}}},hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-transform");return i&&(r.transform=g5(i)),r}}},provides:function(t){t.generateAbstractTransformGrouping=function(r){var n=r.main,i=r.transform,a=r.containerWidth,o=r.iconWidth,l={transform:"translate(".concat(a/2," 256)")},s="translate(".concat(i.x*32,", ").concat(i.y*32,") "),c="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),d="rotate(".concat(i.rotate," 0 0)"),y={transform:"".concat(s," ").concat(c," ").concat(d)},g={transform:"translate(".concat(o/2*-1," -256)")},m={outer:l,inner:y,path:g};return{tag:"g",attributes:Nt({},m.outer),children:[{tag:"g",attributes:Nt({},m.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:Nt(Nt({},n.icon.attributes),m.path)}]}]}}}},Ib={x:0,y:0,width:"100%",height:"100%"};function y5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function rK(e){return e.tag==="g"?e.children:[e]}var nK={hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-mask"),a=i?Dg(i.split(" ").map(function(o){return o.trim()})):DS();return a.prefix||(a.prefix=cu()),r.mask=a,r.maskId=n.getAttribute("data-fa-mask-id"),r}}},provides:function(t){t.generateAbstractMask=function(r){var n=r.children,i=r.attributes,a=r.main,o=r.mask,l=r.maskId,s=r.transform,c=a.width,d=a.icon,y=o.width,g=o.icon,m=tZ({transform:s,containerWidth:y,iconWidth:c}),E={tag:"rect",attributes:Nt(Nt({},Ib),{},{fill:"white"})},M=d.children?{children:d.children.map(y5)}:{},b={tag:"g",attributes:Nt({},m.inner),children:[y5(Nt({tag:d.tag,attributes:Nt(Nt({},d.attributes),m.path)},M))]},w={tag:"g",attributes:Nt({},m.outer),children:[b]},_="mask-".concat(l||Fd()),C="clip-".concat(l||Fd()),T={tag:"mask",attributes:Nt(Nt({},Ib),{},{id:_,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[E,w]},R={tag:"defs",children:[{tag:"clipPath",attributes:{id:C},children:rK(g)},T]};return n.push(R,{tag:"rect",attributes:Nt({fill:"currentColor","clip-path":"url(#".concat(C,")"),mask:"url(#".concat(_,")")},Ib)}),{children:n,attributes:i}}}},iK={provides:function(t){var r=!1;fu.matchMedia&&(r=fu.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var n=[],i={fill:"currentColor"},a={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:Nt(Nt({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=Nt(Nt({},a),{},{attributeName:"opacity"}),l={tag:"circle",attributes:Nt(Nt({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return r||l.children.push({tag:"animate",attributes:Nt(Nt({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Nt(Nt({},o),{},{values:"1;0;1;1;0;1;"})}),n.push(l),n.push({tag:"path",attributes:Nt(Nt({},i),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:r?[]:[{tag:"animate",attributes:Nt(Nt({},o),{},{values:"1;0;0;0;0;1;"})}]}),r||n.push({tag:"path",attributes:Nt(Nt({},i),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Nt(Nt({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},aK={hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-symbol"),a=i===null?!1:i===""?!0:i;return r.symbol=a,r}}}},oK=[iZ,HZ,VZ,qZ,YZ,JZ,eK,tK,nK,iK,aK];xZ(oK,{mixoutsTo:vi});vi.noAuto;vi.config;vi.library;vi.dom;var E_=vi.parse;vi.findIconDefinition;vi.toHtml;var uK=vi.icon;vi.layer;vi.text;vi.counter;function x5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ho(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?x5(Object(r),!0).forEach(function(n){qs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gm(e){return Gm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gm(e)}function qs(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lK(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function sK(e,t){if(e==null)return{};var r=lK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,n)||(r[n]=e[n]))}return r}function A_(e){return fK(e)||cK(e)||hK(e)||dK()}function fK(e){if(Array.isArray(e))return T_(e)}function cK(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hK(e,t){if(!!e){if(typeof e=="string")return T_(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return T_(e,t)}}function T_(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function dK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1156
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pK(e){var t,r=e.beat,n=e.fade,i=e.beatFade,a=e.bounce,o=e.shake,l=e.flash,s=e.spin,c=e.spinPulse,d=e.spinReverse,y=e.pulse,g=e.fixedWidth,m=e.inverse,E=e.border,M=e.listItem,b=e.flip,w=e.size,_=e.rotation,C=e.pull,T=(t={"fa-beat":r,"fa-fade":n,"fa-beat-fade":i,"fa-bounce":a,"fa-shake":o,"fa-flash":l,"fa-spin":s,"fa-spin-reverse":d,"fa-spin-pulse":c,"fa-pulse":y,"fa-fw":g,"fa-inverse":m,"fa-border":E,"fa-li":M,"fa-flip":b===!0,"fa-flip-horizontal":b==="horizontal"||b==="both","fa-flip-vertical":b==="vertical"||b==="both"},qs(t,"fa-".concat(w),typeof w<"u"&&w!==null),qs(t,"fa-rotate-".concat(_),typeof _<"u"&&_!==null&&_!==0),qs(t,"fa-pull-".concat(C),typeof C<"u"&&C!==null),qs(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(T).map(function(R){return T[R]?R:null}).filter(function(R){return R})}function vK(e){return e=e-0,e===e}function k4(e){return vK(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,r){return r?r.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var mK=["style"];function gK(e){return e.charAt(0).toUpperCase()+e.slice(1)}function yK(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,r){var n=r.indexOf(":"),i=k4(r.slice(0,n)),a=r.slice(n+1).trim();return i.startsWith("webkit")?t[gK(i)]=a:t[i]=a,t},{})}function M4(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var n=(t.children||[]).map(function(s){return M4(e,s)}),i=Object.keys(t.attributes||{}).reduce(function(s,c){var d=t.attributes[c];switch(c){case"class":s.attrs.className=d,delete t.attributes.class;break;case"style":s.attrs.style=yK(d);break;default:c.indexOf("aria-")===0||c.indexOf("data-")===0?s.attrs[c.toLowerCase()]=d:s.attrs[k4(c)]=d}return s},{attrs:{}}),a=r.style,o=a===void 0?{}:a,l=sK(r,mK);return i.attrs.style=Ho(Ho({},i.attrs.style),o),e.apply(void 0,[t.tag,Ho(Ho({},i.attrs),l)].concat(A_(n)))}var I4=!1;try{I4=!0}catch{}function xK(){if(!I4&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function b5(e){if(e&&Gm(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(E_.icon)return E_.icon(e);if(e===null)return null;if(e&&Gm(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Pb(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?qs({},e,t):{}}var Bg=xn.forwardRef(function(e,t){var r=e.icon,n=e.mask,i=e.symbol,a=e.className,o=e.title,l=e.titleId,s=e.maskId,c=b5(r),d=Pb("classes",[].concat(A_(pK(e)),A_(a.split(" ")))),y=Pb("transform",typeof e.transform=="string"?E_.transform(e.transform):e.transform),g=Pb("mask",b5(n)),m=uK(c,Ho(Ho(Ho(Ho({},d),y),g),{},{symbol:i,title:o,titleId:l,maskId:s}));if(!m)return xK("Could not find icon",c),null;var E=m.abstract,M={ref:t};return Object.keys(e).forEach(function(b){Bg.defaultProps.hasOwnProperty(b)||(M[b]=e[b])}),bK(E[0],M)});Bg.displayName="FontAwesomeIcon";Bg.propTypes={beat:cr.exports.bool,border:cr.exports.bool,beatFade:cr.exports.bool,bounce:cr.exports.bool,className:cr.exports.string,fade:cr.exports.bool,flash:cr.exports.bool,mask:cr.exports.oneOfType([cr.exports.object,cr.exports.array,cr.exports.string]),maskId:cr.exports.string,fixedWidth:cr.exports.bool,inverse:cr.exports.bool,flip:cr.exports.oneOf([!0,!1,"horizontal","vertical","both"]),icon:cr.exports.oneOfType([cr.exports.object,cr.exports.array,cr.exports.string]),listItem:cr.exports.bool,pull:cr.exports.oneOf(["right","left"]),pulse:cr.exports.bool,rotation:cr.exports.oneOf([0,90,180,270]),shake:cr.exports.bool,size:cr.exports.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:cr.exports.bool,spinPulse:cr.exports.bool,spinReverse:cr.exports.bool,symbol:cr.exports.oneOfType([cr.exports.bool,cr.exports.string]),title:cr.exports.string,titleId:cr.exports.string,transform:cr.exports.oneOfType([cr.exports.string,cr.exports.object]),swapOpacity:cr.exports.bool};Bg.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var bK=M4.bind(null,xn.createElement),P4={exports:{}},F4={exports:{}},z0=1;function wK(){return z0=(z0*9301+49297)%233280,z0/233280}function _K(e){z0=e}var SK={nextValue:wK,seed:_K},C_=SK,tl="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-",Vo,w5,Lh;function O_(){Lh=!1}function R4(e){if(!e){Vo!==tl&&(Vo=tl,O_());return}if(e!==Vo){if(e.length!==tl.length)throw new Error("Custom alphabet for shortid must be "+tl.length+" unique characters. You submitted "+e.length+" characters: "+e);var t=e.split("").filter(function(r,n,i){return n!==i.lastIndexOf(r)});if(t.length)throw new Error("Custom alphabet for shortid must be "+tl.length+" unique characters. These characters were not unique: "+t.join(", "));Vo=e,O_()}}function EK(e){return R4(e),Vo}function AK(e){C_.seed(e),w5!==e&&(O_(),w5=e)}function TK(){Vo||R4(tl);for(var e=Vo.split(""),t=[],r=C_.nextValue(),n;e.length>0;)r=C_.nextValue(),n=Math.floor(r*e.length),t.push(e.splice(n,1)[0]);return t.join("")}function N4(){return Lh||(Lh=TK(),Lh)}function CK(e){var t=N4();return t[e]}function OK(){return Vo||tl}var US={get:OK,characters:EK,seed:AK,lookup:CK,shuffled:N4},Fb=typeof window=="object"&&(window.crypto||window.msCrypto),k_;!Fb||!Fb.getRandomValues?k_=function(e){for(var t=[],r=0;r<e;r++)t.push(Math.floor(Math.random()*256));return t}:k_=function(e){return Fb.getRandomValues(new Uint8Array(e))};var kK=k_,MK=function(e,t,r){for(var n=(2<<Math.log(t.length-1)/Math.LN2)-1,i=-~(1.6*n*r/t.length),a="";;)for(var o=e(i),l=i;l--;)if(a+=t[o[l]&n]||"",a.length===+r)return a},IK=US,PK=kK,FK=MK;function RK(e){for(var t=0,r,n="";!r;)n=n+FK(PK,IK.get(),1),r=e<Math.pow(16,t+1),t++;return n}var NK=RK,m0=NK,LK=1567752802062,DK=7,g0,_5;function $K(e){var t="",r=Math.floor((Date.now()-LK)*.001);return r===_5?g0++:(g0=0,_5=r),t=t+m0(DK),t=t+m0(e),g0>0&&(t=t+m0(g0)),t=t+m0(r),t}var BK=$K,zK=US;function UK(e){if(!e||typeof e!="string"||e.length<6)return!1;var t=new RegExp("[^"+zK.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]");return!t.test(e)}var jK=UK;(function(e){var t=US,r=BK,n=jK,i=0;function a(c){return t.seed(c),e.exports}function o(c){return i=c,e.exports}function l(c){return c!==void 0&&t.characters(c),t.shuffled()}function s(){return r(i)}e.exports=s,e.exports.generate=s,e.exports.seed=a,e.exports.worker=o,e.exports.characters=l,e.exports.isValid=n})(F4);(function(e){e.exports=F4.exports})(P4);const pre=N_(P4.exports);var GK=xn.createContext(null);function WK(e){e()}var L4=WK,HK=function(t){return L4=t},VK=function(){return L4};function qK(){var e=VK(),t=null,r=null;return{clear:function(){t=null,r=null},notify:function(){e(function(){for(var i=t;i;)i.callback(),i=i.next})},get:function(){for(var i=[],a=t;a;)i.push(a),a=a.next;return i},subscribe:function(i){var a=!0,o=r={callback:i,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){!a||t===null||(a=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var S5={notify:function(){},get:function(){return[]}};function YK(e,t){var r,n=S5;function i(y){return s(),n.subscribe(y)}function a(){n.notify()}function o(){d.onStateChange&&d.onStateChange()}function l(){return Boolean(r)}function s(){r||(r=t?t.addNestedSub(o):e.subscribe(o),n=qK())}function c(){r&&(r(),r=void 0,n.clear(),n=S5)}var d={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:l,trySubscribe:s,tryUnsubscribe:c,getListeners:function(){return n}};return d}var XK=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?Kt.exports.useLayoutEffect:Kt.exports.useEffect,D4={exports:{}},_r={};/** @license React v16.13.1
|
|
1157
|
-
* react-is.production.min.js
|
|
1158
|
-
*
|
|
1159
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1160
|
-
*
|
|
1161
|
-
* This source code is licensed under the MIT license found in the
|
|
1162
|
-
* LICENSE file in the root directory of this source tree.
|
|
1163
|
-
*/var _n=typeof Symbol=="function"&&Symbol.for,jS=_n?Symbol.for("react.element"):60103,GS=_n?Symbol.for("react.portal"):60106,zg=_n?Symbol.for("react.fragment"):60107,Ug=_n?Symbol.for("react.strict_mode"):60108,jg=_n?Symbol.for("react.profiler"):60114,Gg=_n?Symbol.for("react.provider"):60109,Wg=_n?Symbol.for("react.context"):60110,WS=_n?Symbol.for("react.async_mode"):60111,Hg=_n?Symbol.for("react.concurrent_mode"):60111,Vg=_n?Symbol.for("react.forward_ref"):60112,qg=_n?Symbol.for("react.suspense"):60113,QK=_n?Symbol.for("react.suspense_list"):60120,Yg=_n?Symbol.for("react.memo"):60115,Xg=_n?Symbol.for("react.lazy"):60116,ZK=_n?Symbol.for("react.block"):60121,KK=_n?Symbol.for("react.fundamental"):60117,JK=_n?Symbol.for("react.responder"):60118,eJ=_n?Symbol.for("react.scope"):60119;function mi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case jS:switch(e=e.type,e){case WS:case Hg:case zg:case jg:case Ug:case qg:return e;default:switch(e=e&&e.$$typeof,e){case Wg:case Vg:case Xg:case Yg:case Gg:return e;default:return t}}case GS:return t}}}function $4(e){return mi(e)===Hg}_r.AsyncMode=WS;_r.ConcurrentMode=Hg;_r.ContextConsumer=Wg;_r.ContextProvider=Gg;_r.Element=jS;_r.ForwardRef=Vg;_r.Fragment=zg;_r.Lazy=Xg;_r.Memo=Yg;_r.Portal=GS;_r.Profiler=jg;_r.StrictMode=Ug;_r.Suspense=qg;_r.isAsyncMode=function(e){return $4(e)||mi(e)===WS};_r.isConcurrentMode=$4;_r.isContextConsumer=function(e){return mi(e)===Wg};_r.isContextProvider=function(e){return mi(e)===Gg};_r.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===jS};_r.isForwardRef=function(e){return mi(e)===Vg};_r.isFragment=function(e){return mi(e)===zg};_r.isLazy=function(e){return mi(e)===Xg};_r.isMemo=function(e){return mi(e)===Yg};_r.isPortal=function(e){return mi(e)===GS};_r.isProfiler=function(e){return mi(e)===jg};_r.isStrictMode=function(e){return mi(e)===Ug};_r.isSuspense=function(e){return mi(e)===qg};_r.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===zg||e===Hg||e===jg||e===Ug||e===qg||e===QK||typeof e=="object"&&e!==null&&(e.$$typeof===Xg||e.$$typeof===Yg||e.$$typeof===Gg||e.$$typeof===Wg||e.$$typeof===Vg||e.$$typeof===KK||e.$$typeof===JK||e.$$typeof===eJ||e.$$typeof===ZK)};_r.typeOf=mi;(function(e){e.exports=_r})(D4);var HS=D4.exports,tJ={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},rJ={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},nJ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},B4={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},VS={};VS[HS.ForwardRef]=nJ;VS[HS.Memo]=B4;function E5(e){return HS.isMemo(e)?B4:VS[e.$$typeof]||tJ}var iJ=Object.defineProperty,aJ=Object.getOwnPropertyNames,A5=Object.getOwnPropertySymbols,oJ=Object.getOwnPropertyDescriptor,uJ=Object.getPrototypeOf,T5=Object.prototype;function z4(e,t,r){if(typeof t!="string"){if(T5){var n=uJ(t);n&&n!==T5&&z4(e,n,r)}var i=aJ(t);A5&&(i=i.concat(A5(t)));for(var a=E5(e),o=E5(t),l=0;l<i.length;++l){var s=i[l];if(!rJ[s]&&!(r&&r[s])&&!(o&&o[s])&&!(a&&a[s])){var c=oJ(t,s);try{iJ(e,s,c)}catch{}}}}return e}var C5=z4,U4={exports:{}},Or={};/** @license React v17.0.2
|
|
1164
|
-
* react-is.production.min.js
|
|
1165
|
-
*
|
|
1166
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1167
|
-
*
|
|
1168
|
-
* This source code is licensed under the MIT license found in the
|
|
1169
|
-
* LICENSE file in the root directory of this source tree.
|
|
1170
|
-
*/var Qg=60103,Zg=60106,np=60107,ip=60108,ap=60114,op=60109,up=60110,lp=60112,sp=60113,qS=60120,fp=60115,cp=60116,j4=60121,G4=60122,W4=60117,H4=60129,V4=60131;if(typeof Symbol=="function"&&Symbol.for){var An=Symbol.for;Qg=An("react.element"),Zg=An("react.portal"),np=An("react.fragment"),ip=An("react.strict_mode"),ap=An("react.profiler"),op=An("react.provider"),up=An("react.context"),lp=An("react.forward_ref"),sp=An("react.suspense"),qS=An("react.suspense_list"),fp=An("react.memo"),cp=An("react.lazy"),j4=An("react.block"),G4=An("react.server.block"),W4=An("react.fundamental"),H4=An("react.debug_trace_mode"),V4=An("react.legacy_hidden")}function Zi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Qg:switch(e=e.type,e){case np:case ap:case ip:case sp:case qS:return e;default:switch(e=e&&e.$$typeof,e){case up:case lp:case cp:case fp:case op:return e;default:return t}}case Zg:return t}}}var lJ=op,sJ=Qg,fJ=lp,cJ=np,hJ=cp,dJ=fp,pJ=Zg,vJ=ap,mJ=ip,gJ=sp;Or.ContextConsumer=up;Or.ContextProvider=lJ;Or.Element=sJ;Or.ForwardRef=fJ;Or.Fragment=cJ;Or.Lazy=hJ;Or.Memo=dJ;Or.Portal=pJ;Or.Profiler=vJ;Or.StrictMode=mJ;Or.Suspense=gJ;Or.isAsyncMode=function(){return!1};Or.isConcurrentMode=function(){return!1};Or.isContextConsumer=function(e){return Zi(e)===up};Or.isContextProvider=function(e){return Zi(e)===op};Or.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Qg};Or.isForwardRef=function(e){return Zi(e)===lp};Or.isFragment=function(e){return Zi(e)===np};Or.isLazy=function(e){return Zi(e)===cp};Or.isMemo=function(e){return Zi(e)===fp};Or.isPortal=function(e){return Zi(e)===Zg};Or.isProfiler=function(e){return Zi(e)===ap};Or.isStrictMode=function(e){return Zi(e)===ip};Or.isSuspense=function(e){return Zi(e)===sp};Or.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===np||e===ap||e===H4||e===ip||e===sp||e===qS||e===V4||typeof e=="object"&&e!==null&&(e.$$typeof===cp||e.$$typeof===fp||e.$$typeof===op||e.$$typeof===up||e.$$typeof===lp||e.$$typeof===W4||e.$$typeof===j4||e[0]===G4)};Or.typeOf=Zi;(function(e){e.exports=Or})(U4);var yJ=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],xJ=["reactReduxForwardedRef"],bJ=[],wJ=[null,null];function _J(e,t){var r=e[1];return[t.payload,r+1]}function O5(e,t,r){XK(function(){return e.apply(void 0,t)},r)}function SJ(e,t,r,n,i,a,o){e.current=n,t.current=i,r.current=!1,a.current&&(a.current=null,o())}function EJ(e,t,r,n,i,a,o,l,s,c){if(!!e){var d=!1,y=null,g=function(){if(!d){var M=t.getState(),b,w;try{b=n(M,i.current)}catch(_){w=_,y=_}w||(y=null),b===a.current?o.current||s():(a.current=b,l.current=b,o.current=!0,c({type:"STORE_UPDATED",payload:{error:w}}))}};r.onStateChange=g,r.trySubscribe(),g();var m=function(){if(d=!0,r.tryUnsubscribe(),r.onStateChange=null,y)throw y};return m}}var AJ=function(){return[null,0]};function TJ(e,t){t===void 0&&(t={});var r=t,n=r.getDisplayName,i=n===void 0?function(C){return"ConnectAdvanced("+C+")"}:n,a=r.methodName,o=a===void 0?"connectAdvanced":a,l=r.renderCountProp,s=l===void 0?void 0:l,c=r.shouldHandleStateChanges,d=c===void 0?!0:c,y=r.storeKey,g=y===void 0?"store":y;r.withRef;var m=r.forwardRef,E=m===void 0?!1:m,M=r.context,b=M===void 0?GK:M,w=Ef(r,yJ),_=b;return function(T){var R=T.displayName||T.name||"Component",D=i(R),Y=ba({},w,{getDisplayName:i,methodName:o,renderCountProp:s,shouldHandleStateChanges:d,storeKey:g,displayName:D,wrappedComponentName:R,WrappedComponent:T}),j=w.pure;function re(Le){return e(Le.dispatch,Y)}var Se=j?Kt.exports.useMemo:function(Le){return Le()};function me(Le){var ut=Kt.exports.useMemo(function(){var fe=Le.reactReduxForwardedRef,Fe=Ef(Le,xJ);return[Le.context,fe,Fe]},[Le]),nt=ut[0],De=ut[1],We=ut[2],_t=Kt.exports.useMemo(function(){return nt&&nt.Consumer&&U4.exports.isContextConsumer(xn.createElement(nt.Consumer,null))?nt:_},[nt,_]),He=Kt.exports.useContext(_t),be=Boolean(Le.store)&&Boolean(Le.store.getState)&&Boolean(Le.store.dispatch);Boolean(He)&&Boolean(He.store);var Ve=be?Le.store:He.store,st=Kt.exports.useMemo(function(){return re(Ve)},[Ve]),Qe=Kt.exports.useMemo(function(){if(!d)return wJ;var fe=YK(Ve,be?null:He.subscription),Fe=fe.notifyNestedSubs.bind(fe);return[fe,Fe]},[Ve,be,He]),ct=Qe[0],yt=Qe[1],Ht=Kt.exports.useMemo(function(){return be?He:ba({},He,{subscription:ct})},[be,He,ct]),qt=Kt.exports.useReducer(_J,bJ,AJ),Ze=qt[0],At=Ze[0],jt=qt[1];if(At&&At.error)throw At.error;var Ce=Kt.exports.useRef(),W=Kt.exports.useRef(We),ae=Kt.exports.useRef(),I=Kt.exports.useRef(!1),A=Se(function(){return ae.current&&We===W.current?ae.current:st(Ve.getState(),We)},[Ve,At,We]);O5(SJ,[W,Ce,I,We,A,ae,yt]),O5(EJ,[d,Ve,ct,st,W,Ce,I,ae,yt,jt],[Ve,ct,st]);var k=Kt.exports.useMemo(function(){return xa(T,{...A,ref:De})},[De,T,A]),$=Kt.exports.useMemo(function(){return d?xa(_t.Provider,{value:Ht,children:k}):k},[_t,k,Ht]);return $}var ke=j?xn.memo(me):me;if(ke.WrappedComponent=T,ke.displayName=me.displayName=D,E){var Re=xn.forwardRef(function(ut,nt){return xa(ke,{...ut,reactReduxForwardedRef:nt})});return Re.displayName=D,Re.WrappedComponent=T,C5(Re,T)}return C5(ke,T)}}function k5(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Rb(e,t){if(k5(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!k5(e[r[i]],t[r[i]]))return!1;return!0}function CJ(e,t){var r={},n=function(o){var l=e[o];typeof l=="function"&&(r[o]=function(){return t(l.apply(void 0,arguments))})};for(var i in e)n(i);return r}function YS(e){return function(r,n){var i=e(r,n);function a(){return i}return a.dependsOnOwnProps=!1,a}}function M5(e){return e.dependsOnOwnProps!==null&&e.dependsOnOwnProps!==void 0?Boolean(e.dependsOnOwnProps):e.length!==1}function q4(e,t){return function(n,i){i.displayName;var a=function(l,s){return a.dependsOnOwnProps?a.mapToProps(l,s):a.mapToProps(l)};return a.dependsOnOwnProps=!0,a.mapToProps=function(l,s){a.mapToProps=e,a.dependsOnOwnProps=M5(e);var c=a(l,s);return typeof c=="function"&&(a.mapToProps=c,a.dependsOnOwnProps=M5(c),c=a(l,s)),c},a}}function OJ(e){return typeof e=="function"?q4(e):void 0}function kJ(e){return e?void 0:YS(function(t){return{dispatch:t}})}function MJ(e){return e&&typeof e=="object"?YS(function(t){return CJ(e,t)}):void 0}const IJ=[OJ,kJ,MJ];function PJ(e){return typeof e=="function"?q4(e):void 0}function FJ(e){return e?void 0:YS(function(){return{}})}const RJ=[PJ,FJ];function NJ(e,t,r){return ba({},r,e,t)}function LJ(e){return function(r,n){n.displayName;var i=n.pure,a=n.areMergedPropsEqual,o=!1,l;return function(c,d,y){var g=e(c,d,y);return o?(!i||!a(g,l))&&(l=g):(o=!0,l=g),l}}}function DJ(e){return typeof e=="function"?LJ(e):void 0}function $J(e){return e?void 0:function(){return NJ}}const BJ=[DJ,$J];var zJ=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function UJ(e,t,r,n){return function(a,o){return r(e(a,o),t(n,o),o)}}function jJ(e,t,r,n,i){var a=i.areStatesEqual,o=i.areOwnPropsEqual,l=i.areStatePropsEqual,s=!1,c,d,y,g,m;function E(C,T){return c=C,d=T,y=e(c,d),g=t(n,d),m=r(y,g,d),s=!0,m}function M(){return y=e(c,d),t.dependsOnOwnProps&&(g=t(n,d)),m=r(y,g,d),m}function b(){return e.dependsOnOwnProps&&(y=e(c,d)),t.dependsOnOwnProps&&(g=t(n,d)),m=r(y,g,d),m}function w(){var C=e(c,d),T=!l(C,y);return y=C,T&&(m=r(y,g,d)),m}function _(C,T){var R=!o(T,d),D=!a(C,c);return c=C,d=T,R&&D?M():R?b():D?w():m}return function(T,R){return s?_(T,R):E(T,R)}}function GJ(e,t){var r=t.initMapStateToProps,n=t.initMapDispatchToProps,i=t.initMergeProps,a=Ef(t,zJ),o=r(e,a),l=n(e,a),s=i(e,a),c=a.pure?jJ:UJ;return c(o,l,s,e,a)}var WJ=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function Nb(e,t,r){for(var n=t.length-1;n>=0;n--){var i=t[n](e);if(i)return i}return function(a,o){throw new Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+o.wrappedComponentName+".")}}function HJ(e,t){return e===t}function VJ(e){var t=e===void 0?{}:e,r=t.connectHOC,n=r===void 0?TJ:r,i=t.mapStateToPropsFactories,a=i===void 0?RJ:i,o=t.mapDispatchToPropsFactories,l=o===void 0?IJ:o,s=t.mergePropsFactories,c=s===void 0?BJ:s,d=t.selectorFactory,y=d===void 0?GJ:d;return function(m,E,M,b){b===void 0&&(b={});var w=b,_=w.pure,C=_===void 0?!0:_,T=w.areStatesEqual,R=T===void 0?HJ:T,D=w.areOwnPropsEqual,Y=D===void 0?Rb:D,j=w.areStatePropsEqual,re=j===void 0?Rb:j,Se=w.areMergedPropsEqual,me=Se===void 0?Rb:Se,ke=Ef(w,WJ),Re=Nb(m,a,"mapStateToProps"),Le=Nb(E,l,"mapDispatchToProps"),ut=Nb(M,c,"mergeProps");return n(y,ba({methodName:"connect",getDisplayName:function(De){return"Connect("+De+")"},shouldHandleStateChanges:Boolean(m),initMapStateToProps:Re,initMapDispatchToProps:Le,initMergeProps:ut,pure:C,areStatesEqual:R,areOwnPropsEqual:Y,areStatePropsEqual:re,areMergedPropsEqual:me},ke))}}const Y4=VJ();HK(L_.exports.unstable_batchedUpdates);function qJ(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function X4(e,t){var r=Kt.exports.useState(function(){return{inputs:t,result:e()}})[0],n=Kt.exports.useRef(!0),i=Kt.exports.useRef(r),a=n.current||Boolean(t&&i.current.inputs&&qJ(t,i.current.inputs)),o=a?i.current:{inputs:t,result:e()};return Kt.exports.useEffect(function(){n.current=!1,i.current=o},[o]),o.result}function YJ(e,t){return X4(function(){return e},t)}var Gn=X4,mn=YJ,XJ=!0,Lb="Invariant failed";function QJ(e,t){if(!e){if(XJ)throw new Error(Lb);var r=typeof t=="function"?t():t,n=r?Lb+": "+r:Lb;throw new Error(n)}}var Ys=function(t){var r=t.top,n=t.right,i=t.bottom,a=t.left,o=n-a,l=i-r,s={top:r,right:n,bottom:i,left:a,width:o,height:l,x:a,y:r,center:{x:(n+a)/2,y:(i+r)/2}};return s},Q4=function(t,r){return{top:t.top-r.top,left:t.left-r.left,bottom:t.bottom+r.bottom,right:t.right+r.right}},I5=function(t,r){return{top:t.top+r.top,left:t.left+r.left,bottom:t.bottom-r.bottom,right:t.right-r.right}},ZJ=function(t,r){return{top:t.top+r.y,left:t.left+r.x,bottom:t.bottom+r.y,right:t.right+r.x}},Db={top:0,right:0,bottom:0,left:0},XS=function(t){var r=t.borderBox,n=t.margin,i=n===void 0?Db:n,a=t.border,o=a===void 0?Db:a,l=t.padding,s=l===void 0?Db:l,c=Ys(Q4(r,i)),d=Ys(I5(r,o)),y=Ys(I5(d,s));return{marginBox:c,borderBox:Ys(r),paddingBox:d,contentBox:y,margin:i,border:o,padding:s}},Si=function(t){var r=t.slice(0,-2),n=t.slice(-2);if(n!=="px")return 0;var i=Number(r);return isNaN(i)&&QJ(!1),i},KJ=function(){return{x:window.pageXOffset,y:window.pageYOffset}},JJ=function(t,r){var n=t.borderBox,i=t.border,a=t.margin,o=t.padding,l=ZJ(n,r);return XS({borderBox:l,border:i,margin:a,padding:o})},M_=function(t,r){return r===void 0&&(r=KJ()),JJ(t,r)},Z4=function(t,r){var n={top:Si(r.marginTop),right:Si(r.marginRight),bottom:Si(r.marginBottom),left:Si(r.marginLeft)},i={top:Si(r.paddingTop),right:Si(r.paddingRight),bottom:Si(r.paddingBottom),left:Si(r.paddingLeft)},a={top:Si(r.borderTopWidth),right:Si(r.borderRightWidth),bottom:Si(r.borderBottomWidth),left:Si(r.borderLeftWidth)};return XS({borderBox:t,margin:n,padding:i,border:a})},K4=function(t){var r=t.getBoundingClientRect(),n=window.getComputedStyle(t);return Z4(r,n)},eee=function(t){var r=[],n=null,i=function(){for(var o=arguments.length,l=new Array(o),s=0;s<o;s++)l[s]=arguments[s];r=l,!n&&(n=requestAnimationFrame(function(){n=null,t.apply(void 0,r)}))};return i.cancel=function(){!n||(cancelAnimationFrame(n),n=null)},i};const tee=eee;function J4(e,t){}J4.bind(null,"warn");J4.bind(null,"error");function ree(){}function nee(e,t){return ba({},e,{},t)}function iee(e,t,r){var n=t.map(function(i){var a=nee(r,i.options);return e.addEventListener(i.eventName,i.fn,a),function(){e.removeEventListener(i.eventName,i.fn,a)}});return function(){n.forEach(function(a){a()})}}var aee="Invariant failed";function Wm(e){this.message=e}Wm.prototype.toString=function(){return this.message};function hi(e,t){if(!e)throw new Wm(aee)}(function(e){Qd(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a))||this,n.callbacks=null,n.unbind=ree,n.onWindowError=function(l){var s=n.getCallbacks();s.isDragging()&&s.tryAbort();var c=l.error;c instanceof Wm&&l.preventDefault()},n.getCallbacks=function(){if(!n.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return n.callbacks},n.setCallbacks=function(l){n.callbacks=l},n}var r=t.prototype;return r.componentDidMount=function(){this.unbind=iee(window,[{eventName:"error",fn:this.onWindowError}])},r.componentDidCatch=function(i){if(i instanceof Wm){this.setState({});return}throw i},r.componentWillUnmount=function(){this.unbind()},r.render=function(){return this.props.children(this.setCallbacks)},t})(xn.Component);var Sl={x:0,y:0},oee=function(t,r){return{x:t.x-r.x,y:t.y-r.y}},uee=function(t,r){return t.x===r.x&&t.y===r.y},lee=function(t){return{x:t.x!==0?-t.x:0,y:t.y!==0?-t.y:0}},see=function(t,r,n){var i;return n===void 0&&(n=0),i={},i[t]=r,i[t==="x"?"y":"x"]=n,i},fee=function(e,t){var r=Ys({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return r.width<=0||r.height<=0?null:r},cee=function(t,r){return{top:t.top+r.y,left:t.left+r.x,bottom:t.bottom+r.y,right:t.right+r.x}},hee={top:0,right:0,bottom:0,left:0},dee=function(t,r){return r?cee(t,r.scroll.diff.displacement):t},pee=function(t,r,n){if(n&&n.increasedBy){var i;return ba({},t,(i={},i[r.end]=t[r.end]+n.increasedBy[r.line],i))}return t},vee=function(t,r){return r&&r.shouldClipSubject?fee(r.pageMarginBox,t):Ys(t)},mee=function(e){var t=e.page,r=e.withPlaceholder,n=e.axis,i=e.frame,a=dee(t.marginBox,i),o=pee(a,n,r),l=vee(o,i);return{page:t,withPlaceholder:r,active:l}};function eN(e){return Object.values?Object.values(e):Object.keys(e).map(function(t){return e[t]})}function gee(e,t){if(e.findIndex)return e.findIndex(t);for(var r=0;r<e.length;r++)if(t(e[r]))return r;return-1}function tN(e,t){if(e.find)return e.find(t);var r=gee(e,t);if(r!==-1)return e[r]}en(function(e){return e.reduce(function(t,r){return t[r.descriptor.id]=r,t},{})});en(function(e){return e.reduce(function(t,r){return t[r.descriptor.id]=r,t},{})});var yee=en(function(e){return eN(e)}),xee=en(function(e){return eN(e)});en(function(e,t){var r=xee(t).filter(function(n){return e===n.descriptor.droppableId}).sort(function(n,i){return n.descriptor.index-i.descriptor.index});return r});function bee(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}en(function(e,t){return t.filter(function(r){return r.descriptor.id!==e.descriptor.id})});var wee={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},_ee={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};en(function(t,r){var n=r[t.line];return{value:n,point:see(t.line,n)}});var U0=function(e){var t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null},See=function(t){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:t}},Eee=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}},QS={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Rd={opacity:{drop:0,combining:.7},scale:{drop:.75}},Aee={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Xu=Aee.outOfTheWay+"s "+QS.outOfTheWay,j0={fluid:"opacity "+Xu,snap:"transform "+Xu+", opacity "+Xu,drop:function(t){var r=t+"s "+QS.drop;return"transform "+r+", opacity "+r},outOfTheWay:"transform "+Xu,placeholder:"height "+Xu+", width "+Xu+", margin "+Xu},P5=function(t){return uee(t,Sl)?null:"translate("+t.x+"px, "+t.y+"px)"},I_={moveTo:P5,drop:function(t,r){var n=P5(t);return n?r?n+" scale("+Rd.scale.drop+")":n:null}},rN=function(e){var t=e.scrollHeight,r=e.scrollWidth,n=e.height,i=e.width,a=oee({x:r,y:t},{x:i,y:n}),o={x:Math.max(0,a.x),y:Math.max(0,a.y)};return o},Tee=function(){var e=document.documentElement;return e||hi(!1),e},Cee=function(){var e=Tee(),t=rN({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight});return t};en(function(e){return yee(e).filter(function(t){return!(!t.isEnabled||!t.frame)})});var Oee="data-rbd",F5={contextId:Oee+"-scroll-container-context-id"},id=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?Kt.exports.useLayoutEffect:Kt.exports.useEffect,nN=xn.createContext(null),kee=0,Mee={separator:"::"};function iN(e,t){return t===void 0&&(t=Mee),Gn(function(){return""+e+t.separator+kee++},[t.separator,e])}var ZS=xn.createContext(null);function Iee(e){var t=Kt.exports.useRef(e);return Kt.exports.useEffect(function(){t.current=e}),t}var Pee=9,Fee=13,Ree=33,Nee=34,Lee=35,Dee=36,y0;y0={},y0[Fee]=!0,y0[Pee]=!0;(function(){var e="visibilitychange";if(typeof document>"u")return e;var t=[e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],r=tN(t,function(n){return"on"+n in document});return r||e})();var Is;Is={},Is[Nee]=!0,Is[Ree]=!0,Is[Dee]=!0,Is[Lee]=!0;(function(){var e="matches";if(typeof document>"u")return e;var t=[e,"msMatchesSelector","webkitMatchesSelector"],r=tN(t,function(n){return n in Element.prototype});return r||e})();var aN=function(t){return function(r){return t===r}},$ee=aN("scroll"),Bee=aN("auto"),R5=function(t,r){return r(t.overflowX)||r(t.overflowY)},zee=function(t){var r=window.getComputedStyle(t),n={overflowX:r.overflowX,overflowY:r.overflowY};return R5(n,$ee)||R5(n,Bee)},Uee=function(){return!1},jee=function e(t){return t==null?null:t===document.body?Uee()?t:null:t===document.documentElement?null:zee(t)?t:e(t.parentElement)},P_=function(e){return{x:e.scrollLeft,y:e.scrollTop}},Gee=function e(t){if(!t)return!1;var r=window.getComputedStyle(t);return r.position==="fixed"?!0:e(t.parentElement)},Wee=function(e){var t=jee(e),r=Gee(e);return{closestScrollable:t,isFixedOnPage:r}},Hee=function(e){var t=e.descriptor,r=e.isEnabled,n=e.isCombineEnabled,i=e.isFixedOnPage,a=e.direction,o=e.client,l=e.page,s=e.closest,c=function(){if(!s)return null;var m=s.scrollSize,E=s.client,M=rN({scrollHeight:m.scrollHeight,scrollWidth:m.scrollWidth,height:E.paddingBox.height,width:E.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:E,scrollSize:m,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:M,diff:{value:Sl,displacement:Sl}}}}(),d=a==="vertical"?wee:_ee,y=mee({page:l,withPlaceholder:null,axis:d,frame:c}),g={descriptor:t,isCombineEnabled:n,isFixedOnPage:i,axis:d,isEnabled:r,client:o,page:l,frame:c,subject:y};return g},Vee=function(t,r){var n=K4(t);if(!r||t!==r)return n;var i=n.paddingBox.top-r.scrollTop,a=n.paddingBox.left-r.scrollLeft,o=i+r.scrollHeight,l=a+r.scrollWidth,s={top:i,right:l,bottom:o,left:a},c=Q4(s,n.border),d=XS({borderBox:c,margin:n.margin,border:n.border,padding:n.padding});return d},qee=function(e){var t=e.ref,r=e.descriptor,n=e.env,i=e.windowScroll,a=e.direction,o=e.isDropDisabled,l=e.isCombineEnabled,s=e.shouldClipSubject,c=n.closestScrollable,d=Vee(t,c),y=M_(d,i),g=function(){if(!c)return null;var E=K4(c),M={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:E,page:M_(E,i),scroll:P_(c),scrollSize:M,shouldClipSubject:s}}(),m=Hee({descriptor:r,isEnabled:!o,isCombineEnabled:l,isFixedOnPage:n.isFixedOnPage,direction:a,client:d,page:y,closest:g});return m},Yee={passive:!1},Xee={passive:!0},N5=function(e){return e.shouldPublishImmediately?Yee:Xee};function Hm(e){var t=Kt.exports.useContext(e);return t||hi(!1),t}var x0=function(t){return t&&t.env.closestScrollable||null};function Qee(e){var t=Kt.exports.useRef(null),r=Hm(ZS),n=iN("droppable"),i=r.registry,a=r.marshal,o=Iee(e),l=Gn(function(){return{id:e.droppableId,type:e.type,mode:e.mode}},[e.droppableId,e.mode,e.type]),s=Kt.exports.useRef(l),c=Gn(function(){return en(function(T,R){t.current||hi(!1);var D={x:T,y:R};a.updateDroppableScroll(l.id,D)})},[l.id,a]),d=mn(function(){var T=t.current;return!T||!T.env.closestScrollable?Sl:P_(T.env.closestScrollable)},[]),y=mn(function(){var T=d();c(T.x,T.y)},[d,c]),g=Gn(function(){return tee(y)},[y]),m=mn(function(){var T=t.current,R=x0(T);T&&R||hi(!1);var D=T.scrollOptions;if(D.shouldPublishImmediately){y();return}g()},[g,y]),E=mn(function(T,R){t.current&&hi(!1);var D=o.current,Y=D.getDroppableRef();Y||hi(!1);var j=Wee(Y),re={ref:Y,descriptor:l,env:j,scrollOptions:R};t.current=re;var Se=qee({ref:Y,descriptor:l,env:j,windowScroll:T,direction:D.direction,isDropDisabled:D.isDropDisabled,isCombineEnabled:D.isCombineEnabled,shouldClipSubject:!D.ignoreContainerClipping}),me=j.closestScrollable;return me&&(me.setAttribute(F5.contextId,r.contextId),me.addEventListener("scroll",m,N5(re.scrollOptions))),Se},[r.contextId,l,m,o]),M=mn(function(){var T=t.current,R=x0(T);return T&&R||hi(!1),P_(R)},[]),b=mn(function(){var T=t.current;T||hi(!1);var R=x0(T);t.current=null,R&&(g.cancel(),R.removeAttribute(F5.contextId),R.removeEventListener("scroll",m,N5(T.scrollOptions)))},[m,g]),w=mn(function(T){var R=t.current;R||hi(!1);var D=x0(R);D||hi(!1),D.scrollTop+=T.y,D.scrollLeft+=T.x},[]),_=Gn(function(){return{getDimensionAndWatchScroll:E,getScrollWhileDragging:M,dragStopped:b,scroll:w}},[b,E,M,w]),C=Gn(function(){return{uniqueId:n,descriptor:l,callbacks:_}},[_,l,n]);id(function(){return s.current=C.descriptor,i.droppable.register(C),function(){t.current&&b(),i.droppable.unregister(C)}},[_,l,b,C,a,i.droppable]),id(function(){!t.current||a.updateDroppableIsEnabled(s.current.id,!e.isDropDisabled)},[e.isDropDisabled,a]),id(function(){!t.current||a.updateDroppableIsCombineEnabled(s.current.id,e.isCombineEnabled)},[e.isCombineEnabled,a])}function $b(){}var L5={width:0,height:0,margin:hee},Zee=function(t){var r=t.isAnimatingOpenOnMount,n=t.placeholder,i=t.animate;return r||i==="close"?L5:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}},Kee=function(t){var r=t.isAnimatingOpenOnMount,n=t.placeholder,i=t.animate,a=Zee({isAnimatingOpenOnMount:r,placeholder:n,animate:i});return{display:n.display,boxSizing:"border-box",width:a.width,height:a.height,marginTop:a.margin.top,marginRight:a.margin.right,marginBottom:a.margin.bottom,marginLeft:a.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:i!=="none"?j0.placeholder:null}};function Jee(e){var t=Kt.exports.useRef(null),r=mn(function(){!t.current||(clearTimeout(t.current),t.current=null)},[]),n=e.animate,i=e.onTransitionEnd,a=e.onClose,o=e.contextId,l=Kt.exports.useState(e.animate==="open"),s=l[0],c=l[1];Kt.exports.useEffect(function(){return s?n!=="open"?(r(),c(!1),$b):t.current?$b:(t.current=setTimeout(function(){t.current=null,c(!1)}),r):$b},[n,s,r]);var d=mn(function(g){g.propertyName==="height"&&(i(),n==="close"&&a())},[n,a,i]),y=Kee({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return xn.createElement(e.placeholder.tagName,{style:y,"data-rbd-placeholder-context-id":o,onTransitionEnd:d,ref:e.innerRef})}var ete=xn.memo(Jee),KS=xn.createContext(null),tte=function(e){Qd(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a))||this,n.state={isVisible:Boolean(n.props.on),data:n.props.on,animate:n.props.shouldAnimate&&n.props.on?"open":"none"},n.onClose=function(){n.state.animate==="close"&&n.setState({isVisible:!1})},n}t.getDerivedStateFromProps=function(i,a){return i.shouldAnimate?i.on?{isVisible:!0,data:i.on,animate:"open"}:a.isVisible?{isVisible:!0,data:a.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(i.on),data:i.on,animate:"none"}};var r=t.prototype;return r.render=function(){if(!this.state.isVisible)return null;var i={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(i)},t}(xn.PureComponent),D5={dragging:5e3,dropAnimating:4500},rte=function(t,r){return r?j0.drop(r.duration):t?j0.snap:j0.fluid},nte=function(t,r){return t?r?Rd.opacity.drop:Rd.opacity.combining:null},ite=function(t){return t.forceShouldAnimate!=null?t.forceShouldAnimate:t.mode==="SNAP"};function ate(e){var t=e.dimension,r=t.client,n=e.offset,i=e.combineWith,a=e.dropping,o=Boolean(i),l=ite(e),s=Boolean(a),c=s?I_.drop(n,o):I_.moveTo(n),d={position:"fixed",top:r.marginBox.top,left:r.marginBox.left,boxSizing:"border-box",width:r.borderBox.width,height:r.borderBox.height,transition:rte(l,a),transform:c,opacity:nte(o,s),zIndex:s?D5.dropAnimating:D5.dragging,pointerEvents:"none"};return d}function ote(e){return{transform:I_.moveTo(e.offset),transition:e.shouldAnimateDisplacement?null:"none"}}function ute(e){return e.type==="DRAGGING"?ate(e):ote(e)}function lte(e,t,r){r===void 0&&(r=Sl);var n=window.getComputedStyle(t),i=t.getBoundingClientRect(),a=Z4(i,n),o=M_(a,r),l={client:a,tagName:t.tagName.toLowerCase(),display:n.display},s={x:a.marginBox.width,y:a.marginBox.height},c={descriptor:e,placeholder:l,displaceBy:s,client:a,page:o};return c}function ste(e){var t=iN("draggable"),r=e.descriptor,n=e.registry,i=e.getDraggableRef,a=e.canDragInteractiveElements,o=e.shouldRespectForcePress,l=e.isEnabled,s=Gn(function(){return{canDragInteractiveElements:a,shouldRespectForcePress:o,isEnabled:l}},[a,l,o]),c=mn(function(m){var E=i();return E||hi(!1),lte(r,E,m)},[r,i]),d=Gn(function(){return{uniqueId:t,descriptor:r,options:s,getDimension:c}},[r,c,s,t]),y=Kt.exports.useRef(d),g=Kt.exports.useRef(!0);id(function(){return n.draggable.register(y.current),function(){return n.draggable.unregister(y.current)}},[n.draggable]),id(function(){if(g.current){g.current=!1;return}var m=y.current;y.current=d,n.draggable.update(d,m)},[d,n.draggable])}function fte(e){e.preventDefault()}function cte(e){var t=Kt.exports.useRef(null),r=mn(function(re){t.current=re},[]),n=mn(function(){return t.current},[]),i=Hm(ZS),a=i.contextId,o=i.dragHandleUsageInstructionsId,l=i.registry,s=Hm(KS),c=s.type,d=s.droppableId,y=Gn(function(){return{id:e.draggableId,index:e.index,type:c,droppableId:d}},[e.draggableId,e.index,c,d]),g=e.children,m=e.draggableId,E=e.isEnabled,M=e.shouldRespectForcePress,b=e.canDragInteractiveElements,w=e.isClone,_=e.mapped,C=e.dropAnimationFinished;if(!w){var T=Gn(function(){return{descriptor:y,registry:l,getDraggableRef:n,canDragInteractiveElements:b,shouldRespectForcePress:M,isEnabled:E}},[y,l,n,b,M,E]);ste(T)}var R=Gn(function(){return E?{tabIndex:0,role:"button","aria-describedby":o,"data-rbd-drag-handle-draggable-id":m,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:fte}:null},[a,o,m,E]),D=mn(function(re){_.type==="DRAGGING"&&(!_.dropping||re.propertyName==="transform"&&C())},[C,_]),Y=Gn(function(){var re=ute(_),Se=_.type==="DRAGGING"&&_.dropping?D:null,me={innerRef:r,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":m,style:re,onTransitionEnd:Se},dragHandleProps:R};return me},[a,R,m,_,D,r]),j=Gn(function(){return{draggableId:y.id,type:y.type,source:{index:y.index,droppableId:y.droppableId}}},[y.droppableId,y.id,y.index,y.type]);return g(Y,_.snapshot,j)}var oN=function(e,t){return e===t},uN=function(e){var t=e.combine,r=e.destination;return r?r.droppableId:t?t.droppableId:null},hte=function(t){return t.combine?t.combine.draggableId:null},dte=function(t){return t.at&&t.at.type==="COMBINE"?t.at.combine.draggableId:null};function pte(){var e=en(function(i,a){return{x:i,y:a}}),t=en(function(i,a,o,l,s){return{isDragging:!0,isClone:a,isDropAnimating:Boolean(s),dropAnimation:s,mode:i,draggingOver:o,combineWith:l,combineTargetFor:null}}),r=en(function(i,a,o,l,s,c,d){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:s,combineWith:c,mode:a,offset:i,dimension:o,forceShouldAnimate:d,snapshot:t(a,l,s,c,null)}}}),n=function(a,o){if(a.isDragging){if(a.critical.draggable.id!==o.draggableId)return null;var l=a.current.client.offset,s=a.dimensions.draggables[o.draggableId],c=U0(a.impact),d=dte(a.impact),y=a.forceShouldAnimate;return r(e(l.x,l.y),a.movementMode,s,o.isClone,c,d,y)}if(a.phase==="DROP_ANIMATING"){var g=a.completed;if(g.result.draggableId!==o.draggableId)return null;var m=o.isClone,E=a.dimensions.draggables[o.draggableId],M=g.result,b=M.mode,w=uN(M),_=hte(M),C=a.dropDuration,T={duration:C,curve:QS.drop,moveTo:a.newHomeClientOffset,opacity:_?Rd.opacity.drop:null,scale:_?Rd.scale.drop:null};return{mapped:{type:"DRAGGING",offset:a.newHomeClientOffset,dimension:E,dropping:T,draggingOver:w,combineWith:_,mode:b,forceShouldAnimate:null,snapshot:t(b,m,w,_,T)}}}return null};return n}function lN(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var vte={mapped:{type:"SECONDARY",offset:Sl,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:lN(null)}};function mte(){var e=en(function(o,l){return{x:o,y:l}}),t=en(lN),r=en(function(o,l,s){return l===void 0&&(l=null),{mapped:{type:"SECONDARY",offset:o,combineTargetFor:l,shouldAnimateDisplacement:s,snapshot:t(l)}}}),n=function(l){return l?r(Sl,l,!0):null},i=function(l,s,c,d){var y=c.displaced.visible[l],g=Boolean(d.inVirtualList&&d.effected[l]),m=bee(c),E=m&&m.draggableId===l?s:null;if(!y){if(!g)return n(E);if(c.displaced.invisible[l])return null;var M=lee(d.displacedBy.point),b=e(M.x,M.y);return r(b,E,!0)}if(g)return n(E);var w=c.displacedBy.point,_=e(w.x,w.y);return r(_,E,y.shouldAnimate)},a=function(l,s){if(l.isDragging)return l.critical.draggable.id===s.draggableId?null:i(s.draggableId,l.critical.draggable.id,l.impact,l.afterCritical);if(l.phase==="DROP_ANIMATING"){var c=l.completed;return c.result.draggableId===s.draggableId?null:i(s.draggableId,c.result.draggableId,c.impact,c.afterCritical)}return null};return a}var gte=function(){var t=pte(),r=mte(),n=function(a,o){return t(a,o)||r(a,o)||vte};return n},yte={dropAnimationFinished:Eee},xte=Y4(gte,yte,null,{context:nN,pure:!0,areStatePropsEqual:oN})(cte);function sN(e){var t=Hm(KS),r=t.isUsingCloneFor;return r===e.draggableId&&!e.isClone?null:xa(xte,{...e})}function vre(e){var t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,r=Boolean(e.disableInteractiveElementBlocking),n=Boolean(e.shouldRespectForcePress);return xa(sN,{...e,isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:n})}function bte(e){var t=Kt.exports.useContext(ZS);t||hi(!1);var r=t.contextId,n=t.isMovementAllowed,i=Kt.exports.useRef(null),a=Kt.exports.useRef(null),o=e.children,l=e.droppableId,s=e.type,c=e.mode,d=e.direction,y=e.ignoreContainerClipping,g=e.isDropDisabled,m=e.isCombineEnabled,E=e.snapshot,M=e.useClone,b=e.updateViewportMaxScroll,w=e.getContainerForClone,_=mn(function(){return i.current},[]),C=mn(function(me){i.current=me},[]);mn(function(){return a.current},[]);var T=mn(function(me){a.current=me},[]),R=mn(function(){n()&&b({maxScroll:Cee()})},[n,b]);Qee({droppableId:l,type:s,mode:c,direction:d,isDropDisabled:g,isCombineEnabled:m,ignoreContainerClipping:y,getDroppableRef:_});var D=xa(tte,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder,children:function(me){var ke=me.onClose,Re=me.data,Le=me.animate;return xa(ete,{placeholder:Re,onClose:ke,innerRef:T,animate:Le,contextId:r,onTransitionEnd:R})}}),Y=Gn(function(){return{innerRef:C,placeholder:D,droppableProps:{"data-rbd-droppable-id":l,"data-rbd-droppable-context-id":r}}},[r,l,D,C]),j=M?M.dragging.draggableId:null,re=Gn(function(){return{droppableId:l,type:s,isUsingCloneFor:j}},[l,j,s]);function Se(){if(!M)return null;var me=M.dragging,ke=M.render,Re=xa(sN,{draggableId:me.draggableId,index:me.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0,children:function(Le,ut){return ke(Le,ut,me)}});return Ih.createPortal(Re,w())}return IY(KS.Provider,{value:re,children:[o(Y,E),Se()]})}var Bb=function(t,r){return t===r.droppable.type},$5=function(t,r){return r.draggables[t.draggable.id]},wte=function(){var t={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},r=ba({},t,{shouldAnimatePlaceholder:!1}),n=en(function(o){return{draggableId:o.id,type:o.type,source:{index:o.index,droppableId:o.droppableId}}}),i=en(function(o,l,s,c,d,y){var g=d.descriptor.id,m=d.descriptor.droppableId===o;if(m){var E=y?{render:y,dragging:n(d.descriptor)}:null,M={isDraggingOver:s,draggingOverWith:s?g:null,draggingFromThisWith:g,isUsingPlaceholder:!0};return{placeholder:d.placeholder,shouldAnimatePlaceholder:!1,snapshot:M,useClone:E}}if(!l)return r;if(!c)return t;var b={isDraggingOver:s,draggingOverWith:g,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:d.placeholder,shouldAnimatePlaceholder:!0,snapshot:b,useClone:null}}),a=function(l,s){var c=s.droppableId,d=s.type,y=!s.isDropDisabled,g=s.renderClone;if(l.isDragging){var m=l.critical;if(!Bb(d,m))return r;var E=$5(m,l.dimensions),M=U0(l.impact)===c;return i(c,y,M,M,E,g)}if(l.phase==="DROP_ANIMATING"){var b=l.completed;if(!Bb(d,b.critical))return r;var w=$5(b.critical,l.dimensions);return i(c,y,uN(b.result)===c,U0(b.impact)===c,w,g)}if(l.phase==="IDLE"&&l.completed&&!l.shouldFlush){var _=l.completed;if(!Bb(d,_.critical))return r;var C=U0(_.impact)===c,T=Boolean(_.impact.at&&_.impact.at.type==="COMBINE"),R=_.critical.droppable.id===c;return C?T?t:r:R?t:r}return r};return a},_te={updateViewportMaxScroll:See};function Ste(){return document.body||hi(!1),document.body}var Ete={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:Ste},Ate=Y4(wte,_te,null,{context:nN,pure:!0,areStatePropsEqual:oN})(bte);Ate.defaultProps=Ete;var Tte=typeof performance=="object"&&typeof performance.now=="function",B5=Tte?function(){return performance.now()}:function(){return Date.now()};function z5(e){cancelAnimationFrame(e.id)}function Cte(e,t){var r=B5();function n(){B5()-r>=t?e.call(null):i.id=requestAnimationFrame(n)}var i={id:requestAnimationFrame(n)};return i}var Ps=null;function U5(e){if(e===void 0&&(e=!1),Ps===null||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),i=n.style;return i.width="100px",i.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?Ps="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Ps="negative":Ps="positive-ascending"),document.body.removeChild(t),Ps}return Ps}var Ote=150,kte=function(t,r){return t};function Mte(e){var t,r,n=e.getItemOffset,i=e.getEstimatedTotalSize,a=e.getItemSize,o=e.getOffsetForIndexAndAlignment,l=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,c=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,y=e.validateProps;return r=t=function(g){Qd(m,g);function m(M){var b;return b=g.call(this,M)||this,b._instanceProps=c(b.props,o0(o0(b))),b._outerRef=void 0,b._resetIsScrollingTimeoutId=null,b.state={instance:o0(o0(b)),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof b.props.initialScrollOffset=="number"?b.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},b._callOnItemsRendered=void 0,b._callOnItemsRendered=en(function(w,_,C,T){return b.props.onItemsRendered({overscanStartIndex:w,overscanStopIndex:_,visibleStartIndex:C,visibleStopIndex:T})}),b._callOnScroll=void 0,b._callOnScroll=en(function(w,_,C){return b.props.onScroll({scrollDirection:w,scrollOffset:_,scrollUpdateWasRequested:C})}),b._getItemStyle=void 0,b._getItemStyle=function(w){var _=b.props,C=_.direction,T=_.itemSize,R=_.layout,D=b._getItemStyleCache(d&&T,d&&R,d&&C),Y;if(D.hasOwnProperty(w))Y=D[w];else{var j=n(b.props,w,b._instanceProps),re=a(b.props,w,b._instanceProps),Se=C==="horizontal"||R==="horizontal",me=C==="rtl",ke=Se?j:0;D[w]=Y={position:"absolute",left:me?void 0:ke,right:me?ke:void 0,top:Se?0:j,height:Se?"100%":re,width:Se?re:"100%"}}return Y},b._getItemStyleCache=void 0,b._getItemStyleCache=en(function(w,_,C){return{}}),b._onScrollHorizontal=function(w){var _=w.currentTarget,C=_.clientWidth,T=_.scrollLeft,R=_.scrollWidth;b.setState(function(D){if(D.scrollOffset===T)return null;var Y=b.props.direction,j=T;if(Y==="rtl")switch(U5()){case"negative":j=-T;break;case"positive-descending":j=R-C-T;break}return j=Math.max(0,Math.min(j,R-C)),{isScrolling:!0,scrollDirection:D.scrollOffset<T?"forward":"backward",scrollOffset:j,scrollUpdateWasRequested:!1}},b._resetIsScrollingDebounced)},b._onScrollVertical=function(w){var _=w.currentTarget,C=_.clientHeight,T=_.scrollHeight,R=_.scrollTop;b.setState(function(D){if(D.scrollOffset===R)return null;var Y=Math.max(0,Math.min(R,T-C));return{isScrolling:!0,scrollDirection:D.scrollOffset<Y?"forward":"backward",scrollOffset:Y,scrollUpdateWasRequested:!1}},b._resetIsScrollingDebounced)},b._outerRefSetter=function(w){var _=b.props.outerRef;b._outerRef=w,typeof _=="function"?_(w):_!=null&&typeof _=="object"&&_.hasOwnProperty("current")&&(_.current=w)},b._resetIsScrollingDebounced=function(){b._resetIsScrollingTimeoutId!==null&&z5(b._resetIsScrollingTimeoutId),b._resetIsScrollingTimeoutId=Cte(b._resetIsScrolling,Ote)},b._resetIsScrolling=function(){b._resetIsScrollingTimeoutId=null,b.setState({isScrolling:!1},function(){b._getItemStyleCache(-1,null)})},b}m.getDerivedStateFromProps=function(b,w){return Ite(b,w),y(b),null};var E=m.prototype;return E.scrollTo=function(b){b=Math.max(0,b),this.setState(function(w){return w.scrollOffset===b?null:{scrollDirection:w.scrollOffset<b?"forward":"backward",scrollOffset:b,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},E.scrollToItem=function(b,w){w===void 0&&(w="auto");var _=this.props.itemCount,C=this.state.scrollOffset;b=Math.max(0,Math.min(b,_-1)),this.scrollTo(o(this.props,b,w,C,this._instanceProps))},E.componentDidMount=function(){var b=this.props,w=b.direction,_=b.initialScrollOffset,C=b.layout;if(typeof _=="number"&&this._outerRef!=null){var T=this._outerRef;w==="horizontal"||C==="horizontal"?T.scrollLeft=_:T.scrollTop=_}this._callPropsCallbacks()},E.componentDidUpdate=function(){var b=this.props,w=b.direction,_=b.layout,C=this.state,T=C.scrollOffset,R=C.scrollUpdateWasRequested;if(R&&this._outerRef!=null){var D=this._outerRef;if(w==="horizontal"||_==="horizontal")if(w==="rtl")switch(U5()){case"negative":D.scrollLeft=-T;break;case"positive-ascending":D.scrollLeft=T;break;default:var Y=D.clientWidth,j=D.scrollWidth;D.scrollLeft=j-Y-T;break}else D.scrollLeft=T;else D.scrollTop=T}this._callPropsCallbacks()},E.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&z5(this._resetIsScrollingTimeoutId)},E.render=function(){var b=this.props,w=b.children,_=b.className,C=b.direction,T=b.height,R=b.innerRef,D=b.innerElementType,Y=b.innerTagName,j=b.itemCount,re=b.itemData,Se=b.itemKey,me=Se===void 0?kte:Se,ke=b.layout,Re=b.outerElementType,Le=b.outerTagName,ut=b.style,nt=b.useIsScrolling,De=b.width,We=this.state.isScrolling,_t=C==="horizontal"||ke==="horizontal",He=_t?this._onScrollHorizontal:this._onScrollVertical,be=this._getRangeToRender(),Ve=be[0],st=be[1],Qe=[];if(j>0)for(var ct=Ve;ct<=st;ct++)Qe.push(Kt.exports.createElement(w,{data:re,key:me(ct,re),index:ct,isScrolling:nt?We:void 0,style:this._getItemStyle(ct)}));var yt=i(this.props,this._instanceProps);return Kt.exports.createElement(Re||Le||"div",{className:_,onScroll:He,ref:this._outerRefSetter,style:ba({position:"relative",height:T,width:De,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:C},ut)},Kt.exports.createElement(D||Y||"div",{children:Qe,ref:R,style:{height:_t?"100%":yt,pointerEvents:We?"none":void 0,width:_t?yt:"100%"}}))},E._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var b=this.props.itemCount;if(b>0){var w=this._getRangeToRender(),_=w[0],C=w[1],T=w[2],R=w[3];this._callOnItemsRendered(_,C,T,R)}}if(typeof this.props.onScroll=="function"){var D=this.state,Y=D.scrollDirection,j=D.scrollOffset,re=D.scrollUpdateWasRequested;this._callOnScroll(Y,j,re)}},E._getRangeToRender=function(){var b=this.props,w=b.itemCount,_=b.overscanCount,C=this.state,T=C.isScrolling,R=C.scrollDirection,D=C.scrollOffset;if(w===0)return[0,0,0,0];var Y=l(this.props,D,this._instanceProps),j=s(this.props,Y,D,this._instanceProps),re=!T||R==="backward"?Math.max(1,_):1,Se=!T||R==="forward"?Math.max(1,_):1;return[Math.max(0,Y-re),Math.max(0,Math.min(w-1,j+Se)),Y,j]},m}(Kt.exports.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},r}var Ite=function(t,r){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,r.instance},mre=Mte({getItemOffset:function(t,r){var n=t.itemSize;return r*n},getItemSize:function(t,r){var n=t.itemSize;return n},getEstimatedTotalSize:function(t){var r=t.itemCount,n=t.itemSize;return n*r},getOffsetForIndexAndAlignment:function(t,r,n,i){var a=t.direction,o=t.height,l=t.itemCount,s=t.itemSize,c=t.layout,d=t.width,y=a==="horizontal"||c==="horizontal",g=y?d:o,m=Math.max(0,l*s-g),E=Math.min(m,r*s),M=Math.max(0,r*s-g+s);switch(n==="smart"&&(i>=M-g&&i<=E+g?n="auto":n="center"),n){case"start":return E;case"end":return M;case"center":{var b=Math.round(M+(E-M)/2);return b<Math.ceil(g/2)?0:b>m+Math.floor(g/2)?m:b}case"auto":default:return i>=M&&i<=E?i:i<M?M:E}},getStartIndexForOffset:function(t,r){var n=t.itemCount,i=t.itemSize;return Math.max(0,Math.min(n-1,Math.floor(r/i)))},getStopIndexForStartIndex:function(t,r,n){var i=t.direction,a=t.height,o=t.itemCount,l=t.itemSize,s=t.layout,c=t.width,d=i==="horizontal"||s==="horizontal",y=r*l,g=d?c:a,m=Math.ceil((g+n-y)/l);return Math.max(0,Math.min(o-1,r+m-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}}),Pte=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Fte=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),Rte=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nte=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},j5=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},Lte=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var l=t[Symbol.iterator](),s;!(i=(s=l.next()).done)&&(n.push(s.value),!(r&&n.length===r));i=!0);}catch(c){a=!0,o=c}finally{try{!i&&l.return&&l.return()}finally{if(a)throw o}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ki=void 0;typeof window<"u"?ki=window:typeof self<"u"?ki=self:ki=global;var F_=null,R_=null,G5=20,zb=ki.clearTimeout,W5=ki.setTimeout,Ub=ki.cancelAnimationFrame||ki.mozCancelAnimationFrame||ki.webkitCancelAnimationFrame,H5=ki.requestAnimationFrame||ki.mozRequestAnimationFrame||ki.webkitRequestAnimationFrame;Ub==null||H5==null?(F_=zb,R_=function(t){return W5(t,G5)}):(F_=function(t){var r=Lte(t,2),n=r[0],i=r[1];Ub(n),zb(i)},R_=function(t){var r=H5(function(){zb(n),t()}),n=W5(function(){Ub(r),t()},G5);return[r,n]});function Dte(e){var t=void 0,r=void 0,n=void 0,i=void 0,a=void 0,o=void 0,l=void 0,s=typeof document<"u"&&document.attachEvent;if(!s){o=function(T){var R=T.__resizeTriggers__,D=R.firstElementChild,Y=R.lastElementChild,j=D.firstElementChild;Y.scrollLeft=Y.scrollWidth,Y.scrollTop=Y.scrollHeight,j.style.width=D.offsetWidth+1+"px",j.style.height=D.offsetHeight+1+"px",D.scrollLeft=D.scrollWidth,D.scrollTop=D.scrollHeight},a=function(T){return T.offsetWidth!==T.__resizeLast__.width||T.offsetHeight!==T.__resizeLast__.height},l=function(T){if(!(T.target.className&&typeof T.target.className.indexOf=="function"&&T.target.className.indexOf("contract-trigger")<0&&T.target.className.indexOf("expand-trigger")<0)){var R=this;o(this),this.__resizeRAF__&&F_(this.__resizeRAF__),this.__resizeRAF__=R_(function(){a(R)&&(R.__resizeLast__.width=R.offsetWidth,R.__resizeLast__.height=R.offsetHeight,R.__resizeListeners__.forEach(function(j){j.call(R,T)}))})}};var c=!1,d="";n="animationstart";var y="Webkit Moz O ms".split(" "),g="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),m="";{var E=document.createElement("fakeelement");if(E.style.animationName!==void 0&&(c=!0),c===!1){for(var M=0;M<y.length;M++)if(E.style[y[M]+"AnimationName"]!==void 0){m=y[M],d="-"+m.toLowerCase()+"-",n=g[M],c=!0;break}}}r="resizeanim",t="@"+d+"keyframes "+r+" { from { opacity: 0; } to { opacity: 0; } } ",i=d+"animation: 1ms "+r+"; "}var b=function(T){if(!T.getElementById("detectElementResize")){var R=(t||"")+".resize-triggers { "+(i||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',D=T.head||T.getElementsByTagName("head")[0],Y=T.createElement("style");Y.id="detectElementResize",Y.type="text/css",e!=null&&Y.setAttribute("nonce",e),Y.styleSheet?Y.styleSheet.cssText=R:Y.appendChild(T.createTextNode(R)),D.appendChild(Y)}},w=function(T,R){if(s)T.attachEvent("onresize",R);else{if(!T.__resizeTriggers__){var D=T.ownerDocument,Y=ki.getComputedStyle(T);Y&&Y.position==="static"&&(T.style.position="relative"),b(D),T.__resizeLast__={},T.__resizeListeners__=[],(T.__resizeTriggers__=D.createElement("div")).className="resize-triggers";var j=D.createElement("div");j.className="expand-trigger",j.appendChild(D.createElement("div"));var re=D.createElement("div");re.className="contract-trigger",T.__resizeTriggers__.appendChild(j),T.__resizeTriggers__.appendChild(re),T.appendChild(T.__resizeTriggers__),o(T),T.addEventListener("scroll",l,!0),n&&(T.__resizeTriggers__.__animationListener__=function(me){me.animationName===r&&o(T)},T.__resizeTriggers__.addEventListener(n,T.__resizeTriggers__.__animationListener__))}T.__resizeListeners__.push(R)}},_=function(T,R){if(s)T.detachEvent("onresize",R);else if(T.__resizeListeners__.splice(T.__resizeListeners__.indexOf(R),1),!T.__resizeListeners__.length){T.removeEventListener("scroll",l,!0),T.__resizeTriggers__.__animationListener__&&(T.__resizeTriggers__.removeEventListener(n,T.__resizeTriggers__.__animationListener__),T.__resizeTriggers__.__animationListener__=null);try{T.__resizeTriggers__=!T.removeChild(T.__resizeTriggers__)}catch{}}};return{addResizeListener:w,removeResizeListener:_}}var $te=function(e){Nte(t,e);function t(){var r,n,i,a;Pte(this,t);for(var o=arguments.length,l=Array(o),s=0;s<o;s++)l[s]=arguments[s];return a=(n=(i=j5(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(l))),i),i.state={height:i.props.defaultHeight||0,width:i.props.defaultWidth||0},i._onResize=function(){var c=i.props,d=c.disableHeight,y=c.disableWidth,g=c.onResize;if(i._parentNode){var m=i._parentNode.offsetHeight||0,E=i._parentNode.offsetWidth||0,M=window.getComputedStyle(i._parentNode)||{},b=parseInt(M.paddingLeft,10)||0,w=parseInt(M.paddingRight,10)||0,_=parseInt(M.paddingTop,10)||0,C=parseInt(M.paddingBottom,10)||0,T=m-_-C,R=E-b-w;(!d&&i.state.height!==T||!y&&i.state.width!==R)&&(i.setState({height:m-_-C,width:E-b-w}),g({height:m,width:E}))}},i._setRef=function(c){i._autoSizer=c},n),j5(i,a)}return Fte(t,[{key:"componentDidMount",value:function(){var n=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=Dte(n),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var n=this.props,i=n.children,a=n.className,o=n.disableHeight,l=n.disableWidth,s=n.style,c=this.state,d=c.height,y=c.width,g={overflow:"visible"},m={},E=!1;return o||(d===0&&(E=!0),g.height=0,m.height=d),l||(y===0&&(E=!0),g.width=0,m.width=y),Kt.exports.createElement("div",{className:a,ref:this._setRef,style:Rte({},g,s)},!E&&i(m))}}]),t}(Kt.exports.PureComponent);$te.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};var Bte=typeof Ar=="object"&&Ar&&Ar.Object===Object&&Ar,zte=typeof self=="object"&&self&&self.Object===Object&&self,Ute=Bte||zte||Function("return this")(),V5=Ute.Symbol;V5&&V5.isConcatSpreadable;export{Kt as A,cr as B,ure as C,en as D,Gte as E,xa as F,fre as G,sre as H,hre as I,cre as J,IY as K,Ih as L,Bg as M,lre as N,pre as O,dre as P,$te as Q,xn as R,mre as S,vre as T,Ate as U,H2 as V,Hte as a,Qte as b,Zte as c,TB as d,TP as e,Vte as f,qte as g,Yte as h,K2 as i,f9 as j,Jte as k,hg as l,Xte as m,Kte as n,LP as o,NP as p,gF as q,Wte as r,ere as s,b7 as t,tre as u,rre as v,nre as w,ire as x,are as y,ore as z};
|
|
1171
|
-
//# sourceMappingURL=vendor.345ec474.js.map
|