@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.
@@ -0,0 +1,1171 @@
1
+ import{g as N_,c as Ar,a as El}from"./helpers.162e09a8.js";var 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 L_=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 D_(e,t,r){this.props=e,this.context=t,this.refs=ek,this.updater=r||J5}var $_=D_.prototype=new tk;$_.constructor=D_;L_($_,Mf.prototype);$_.isPureReactComponent=!0;var B_={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:B_.current}}function vN(e,t){return{$$typeof:kf,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function z_(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&&(z_(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:B_,IsSomeRendererActing:{current:!1},assign:L_};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(!z_(e))throw Error(Nd(143));return e}};gr.Component=Mf;gr.PureComponent=D_;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=L_({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=B_.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=z_;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 U_={exports:{}},Pi={},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!=null?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!=null?i[c]:void 0,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})(U_);const Ih=N_(U_.exports);var cr={exports:{}},d8="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",p8=d8,v8=p8;function NM(){}function LM(){}LM.resetWarningCache=NM;var m8=function(){function e(n,i,a,o,l,s){if(s!==v8){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:LM,resetWarningCache:NM};return r.PropTypes=r,r};cr.exports=m8();var g8=function(){},y8=g8(),no=function(e){return e!==y8&&e!==null},x8=no,b8=Array.prototype.forEach,w8=Object.create,_8=function(e,t){var r;for(r in e)t[r]=e[r]},F2=function(e){var t=w8(null);return b8.call(arguments,function(r){!x8(r)||_8(Object(r),t)}),t},S8=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1},i1,mA;function E8(){return mA||(mA=1,i1=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}),i1}var A8=S8()?Math.sign:E8(),T8=A8,C8=Math.abs,O8=Math.floor,k8=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:T8(e)*O8(C8(e)))},M8=k8,I8=Math.max,Ml=function(e){return I8(0,M8(e))},P8=Ml,DM=function(e,t,r){var n;return isNaN(e)?(n=t,n>=0?r&&n?n-1:n:1):e===!1?!1:P8(e)},_a=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},F8=no,Qi=function(e){if(!F8(e))throw new TypeError("Cannot use null or undefined");return e},R8=_a,N8=Qi,L8=Function.prototype.bind,gA=Function.prototype.call,D8=Object.keys,$8=Object.prototype.propertyIsEnumerable,B8=function(e,t){return function(r,n){var i,a=arguments[2],o=arguments[3];return r=Object(N8(r)),R8(n),i=D8(r),o&&i.sort(typeof o=="function"?L8.call(o,r):void 0),typeof e!="function"&&(e=i[e]),gA.call(e,i,function(l,s){return $8.call(r,l)?gA.call(n,a,r[l],l,r,s):t})}},og=B8("forEach"),Il={},$M={exports:{}},z8=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")},a1,yA;function U8(){return yA||(yA=1,a1=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),a1}var o1,xA;function j8(){if(xA)return o1;xA=1;var e=no,t=Object.keys;return o1=function(r){return t(e(r)?Object(r):r)},o1}var u1,bA;function G8(){return bA||(bA=1,u1=U8()()?Object.keys:j8()),u1}var l1,wA;function W8(){if(wA)return l1;wA=1;var e=G8(),t=Qi,r=Math.max;return l1=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},l1}var ug=z8()?Object.assign:W8(),H8=no,V8={function:!0,object:!0},R2=function(e){return H8(e)&&V8[typeof e]||!1};(function(e){var t=ug,r=R2,n=no,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}})($M);var hm={exports:{}},s1,_A;function BM(){if(_A)return s1;_A=1;var e=Qi,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols;return s1=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},s1}var SA=Ml,zM=function(e,t){return t},f1,EA,AA,TA;try{Object.defineProperty(zM,"length",{configurable:!0,writable:!1,enumerable:!1,value:1})}catch{}zM.length===1?(f1={configurable:!0,writable:!1,enumerable:!1},EA=Object.defineProperty,hm.exports=function(e,t){return t=SA(t),e.length===t?e:(f1.value=t,EA(e,"length",f1))}):(TA=BM(),AA=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); };")}}(),hm.exports=function(e,t){var r;if(t=SA(t),e.length===t)return e;r=AA(t)(e);try{TA(r,e)}catch{}return r});var Fi={exports:{}},q8=void 0,Lf=function(e){return e!==q8&&e!==null},Y8=Lf,X8={object:!0,function:!0,undefined:!0},N2=function(e){return Y8(e)?hasOwnProperty.call(X8,typeof e):!1},Q8=N2,Z8=function(e){if(!Q8(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch{return!1}},K8=Z8,J8=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!K8(e)},eL=J8,tL=/^\s*class[\s{/}]/,rL=Function.prototype.toString,UM=function(e){return!(!eL(e)||tL.test(rL.call(e)))},c1="razdwatrzy",nL=function(){return typeof c1.contains!="function"?!1:c1.contains("dwa")===!0&&c1.contains("foo")===!1},h1,CA;function iL(){if(CA)return h1;CA=1;var e=String.prototype.indexOf;return h1=function(t){return e.call(this,t,arguments[1])>-1},h1}var jM=nL()?String.prototype.contains:iL(),I0=Lf,OA=UM,GM=ug,WM=F2,Xh=jM,aL=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],I0(e)?(r=Xh.call(e,"c"),n=Xh.call(e,"e"),i=Xh.call(e,"w")):(r=i=!0,n=!1),o={value:t,configurable:r,enumerable:n,writable:i},a?GM(WM(a),o):o};aL.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],I0(t)?OA(t)?I0(r)?OA(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,I0(e)?(n=Xh.call(e,"c"),i=Xh.call(e,"e")):(n=!0,i=!1),o={get:t,set:r,configurable:n,enumerable:i},a?GM(WM(a),o):o};var Ow={exports:{}};(function(e,t){var r=Fi.exports,n=_a,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})(Ow,Ow.exports);var d1,kA;function oL(){return kA||(kA=1,d1=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"))}),d1}var p1,MA;function uL(){return MA||(MA=1,p1=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}),p1}var v1,IA;function lL(){if(IA)return v1;IA=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 v1=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__}}(),v1}var m1,PA;function lg(){return PA||(PA=1,m1=uL()()?globalThis:lL()),m1}var g1,FA;function sL(){if(FA)return g1;FA=1;var e=lg(),t={object:!0,symbol:!0};return g1=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])},g1}var y1,RA;function fL(){return RA||(RA=1,y1=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}),y1}var x1,NA;function HM(){if(NA)return x1;NA=1;var e=fL();return x1=function(t){if(!e(t))throw new TypeError(t+" is not a symbol");return t},x1}var b1,LA;function cL(){if(LA)return b1;LA=1;var e=Fi.exports,t=Object.create,r=Object.defineProperty,n=Object.prototype,i=t(null);return b1=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},b1}var w1,DA;function hL(){if(DA)return w1;DA=1;var e=Fi.exports,t=lg().Symbol;return w1=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"))})},w1}var _1,$A;function dL(){if($A)return _1;$A=1;var e=Fi.exports,t=HM(),r=Object.create(null);return _1=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})})},_1}var S1,BA;function pL(){if(BA)return S1;BA=1;var e=Fi.exports,t=HM(),r=lg().Symbol,n=cL(),i=hL(),a=dL(),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)},S1=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])),S1}var E1,zA;function Pl(){return zA||(zA=1,E1=sL()()?lg().Symbol:pL()),E1}var A1,UA;function sg(){if(UA)return A1;UA=1;var e=Object.prototype.toString,t=e.call(function(){return arguments}());return A1=function(r){return e.call(r)===t},A1}var T1,jA;function vL(){if(jA)return T1;jA=1;var e=Object.prototype.toString,t=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);return T1=function(r){return typeof r=="function"&&t(e.call(r))},T1}var C1,GA;function fg(){if(GA)return C1;GA=1;var e=Object.prototype.toString,t=e.call("");return C1=function(r){return typeof r=="string"||r&&typeof r=="object"&&(r instanceof String||e.call(r)===t)||!1},C1}var O1,WA;function mL(){if(WA)return O1;WA=1;var e=Pl().iterator,t=sg(),r=vL(),n=Ml,i=_a,a=Qi,o=no,l=fg(),s=Array.isArray,c=Function.prototype.call,d={configurable:!0,enumerable:!0,writable:!0,value:null},y=Object.defineProperty;return O1=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),_},O1}var k1,HA;function cg(){return HA||(HA=1,k1=oL()()?Array.from:mL()),k1}var gL=cg(),yL=Array.isArray,xL=function(e){return yL(e)?e:gL(e)},bL=xL,wL=no,_L=_a,SL=Array.prototype.slice,VM;VM=function(e){return this.map(function(t,r){return t?t(e[r]):e[r]}).concat(SL.call(e,this.length))};var EL=function(e){return e=bL(e),e.forEach(function(t){wL(t)&&_L(t)}),VM.bind(e)},Lv=_a,AL=function(e){var t;return typeof e=="function"?{set:e,get:e}:(t={get:Lv(e.get)},e.set!==void 0?(t.set=Lv(e.set),e.delete&&(t.delete=Lv(e.delete)),e.clear&&(t.clear=Lv(e.clear)),t):(t.set=t.get,t))},Dv=$M.exports,$v=hm.exports,fh=Fi.exports,qM=Ow.exports.methods,TL=EL,CL=AL,M1=Function.prototype.apply,I1=Function.prototype.call,VA=Object.create,OL=Object.defineProperties,kL=qM.on,ML=qM.emit,IL=function(e,t,r){var n=VA(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=CL(r.normalizer),o=m.get,l=m.set,s=m.delete,c=m.clear),r.resolvers!=null&&(_=TL(r.resolvers)),o?w=$v(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=I1.call(e,this,D[0]):R=M1.call(e,this,D),T===null){if(T=o(D),T!==null)throw Dv("Circular invocation","CIRCULAR_INVOCATION");T=l(D)}else if(hasOwnProperty.call(n,T))throw Dv("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=M1.call(e,this,arguments):C=I1.call(e,this),hasOwnProperty.call(n,"data"))throw Dv("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=I1.call(e,this,R[0]):T=M1.call(e,this,R),hasOwnProperty.call(n,D))throw Dv("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=VA(null),i.emit("clear",C)},on:function(C,T){return C==="get"?E=!0:C==="set"?M=!0:C==="delete"&&(b=!0),kL.call(this,C,T)},emit:ML,updateEnv:function(){e=i.original}},o?d=$v(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=$v(function(){var C,T=arguments;return t===0?n.data:(_&&(T=_(T)),o?C=o(T):C=String(T[0]),n[C])}),g=$v(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))}),OL(w,{__memoized__:fh(!0),delete:fh(d),clear:fh(i.clear),_get:fh(y),_has:fh(g)}),i},PL=_a,FL=og,qA=Il,RL=IL,NL=DM,LL=function e(t){var r,n,i;if(PL(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=NL(r.length,t.length,r.async&&qA.async),i=RL(t,n,r),FL(qA,function(a,o){r[o]&&a(r[o],i,r)}),e.__profiler__&&e.__profiler__(i),i.updateEnv(),i.memoized)},P1,YA;function DL(){return YA||(YA=1,P1=function(e){var t,r,n=e.length;if(!n)return"";for(t=String(e[r=0]);--n;)t+=""+e[++r];return t}),P1}var F1,XA;function $L(){return XA||(XA=1,F1=function(e){return e?function(t){for(var r=String(t[0]),n=0,i=e;--i;)r+=""+t[++n];return r}:function(){return""}}),F1}var R1,QA;function BL(){return QA||(QA=1,R1=function(){var e=Number.isNaN;return typeof e!="function"?!1:!e({})&&e(NaN)&&!e(34)}),R1}var N1,ZA;function zL(){return ZA||(ZA=1,N1=function(e){return e!==e}),N1}var L1,KA;function UL(){return KA||(KA=1,L1=BL()()?Number.isNaN:zL()),L1}var D1,JA;function L2(){if(JA)return D1;JA=1;var e=UL(),t=Ml,r=Qi,n=Array.prototype.indexOf,i=Object.prototype.hasOwnProperty,a=Math.abs,o=Math.floor;return D1=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},D1}var $1,e3;function jL(){if(e3)return $1;e3=1;var e=L2(),t=Object.create;return $1=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)}}},$1}var B1,t3;function GL(){if(t3)return B1;t3=1;var e=L2();return B1=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=[]}}},B1}var z1,r3;function WL(){if(r3)return z1;r3=1;var e=L2(),t=Object.create;return z1=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)}}},z1}var n3={},U1,i3;function D2(){if(i3)return U1;i3=1;var e=_a,t=og,r=Function.prototype.call;return U1=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},U1}var j1,a3;function $2(){if(a3)return j1;a3=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 j1=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}(),j1}var o3;function HL(){if(o3)return n3;o3=1;var e=cg(),t=D2(),r=BM(),n=hm.exports,i=$2(),a=Array.prototype.slice,o=Function.prototype.apply,l=Object.create;return Il.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)}))})},n3}var u3={},G1,l3;function VL(){if(l3)return G1;l3=1;var e=Array.prototype.forEach,t=Object.create;return G1=function(r){var n=t(null);return e.call(arguments,function(i){n[i]=!0}),n},G1}var W1,s3;function YM(){return s3||(s3=1,W1=function(e){return typeof e=="function"}),W1}var H1,f3;function qL(){if(f3)return H1;f3=1;var e=YM();return H1=function(t){try{return t&&e(t.toString)?t.toString():String(t)}catch{throw new TypeError("Passed argument cannot be stringifed")}},H1}var V1,c3;function YL(){if(c3)return V1;c3=1;var e=Qi,t=qL();return V1=function(r){return t(e(r))},V1}var q1,h3;function XL(){if(h3)return q1;h3=1;var e=YM();return q1=function(t){try{return t&&e(t.toString)?t.toString():String(t)}catch{return"<Non-coercible to string value>"}},q1}var Y1,d3;function QL(){if(d3)return Y1;d3=1;var e=XL(),t=/[\n\r\u2028\u2029]/g;return Y1=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},Y1}var Bv={exports:{}},p3;function XM(){if(p3)return Bv.exports;p3=1,Bv.exports=e,Bv.exports.default=e;function e(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}return Bv.exports}var v3;function ZL(){if(v3)return u3;v3=1;var e=D2(),t=VL(),r=YL(),n=QL(),i=XM(),a=$2(),o=Object.create,l=t("then","then:finally","done","done:finally");return Il.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)
35
+ 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]}))})},u3}var m3={},g3;function KL(){if(g3)return m3;g3=1;var e=_a,t=og,r=Il,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)})})},m3}var y3={},X1,x3;function JL(){return x3||(x3=1,X1=2147483647),X1}var Q1,b3;function eD(){if(b3)return Q1;b3=1;var e=Ml,t=JL();return Q1=function(r){if(r=e(r),r>t)throw new TypeError(r+" exceeds maximum possible timeout");return r},Q1}var w3;function tD(){if(w3)return y3;w3=1;var e=cg(),t=og,r=$2(),n=XM(),i=eD(),a=Il,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={})}))},y3}var _3={},Z1,S3;function rD(){if(S3)return Z1;S3=1;var e=Ml,t=Object.create,r=Object.prototype.hasOwnProperty;return Z1=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}}},Z1}var E3;function nD(){if(E3)return _3;E3=1;var e=Ml,t=rD(),r=Il;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))},_3}var A3={},T3;function iD(){if(T3)return A3;T3=1;var e=Fi.exports,t=Il,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]})})},A3}var aD=F2,oD=DM,uD=LL,Gte=function(e){var t=aD(arguments[1]),r;return t.normalizer||(r=t.length=oD(t.length,e.length,t.async),r!==0&&(t.primitive?r===!1?t.normalizer=DL():r>1&&(t.normalizer=$L()(r)):r===!1?t.normalizer=jL()():r===1?t.normalizer=GL()():t.normalizer=WL()(r))),t.async&&HL(),t.promise&&ZL(),t.dispose&&KL(),t.maxAge&&tD(),t.max&&nD(),t.refCounter&&iD(),uD(e,t)},QM={exports:{}};/*!
36
+ Copyright (c) 2018 Jed Watson.
37
+ Licensed under the MIT License (MIT), see
38
+ http://jedwatson.github.io/classnames
39
+ */(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})()})(QM);const Wte=QM.exports;var lD="Expected a function",C3=0/0,sD="[object Symbol]",fD=/^\s+|\s+$/g,cD=/^[-+]0x[0-9a-f]+$/i,hD=/^0b[01]+$/i,dD=/^0o[0-7]+$/i,pD=parseInt,vD=typeof Ar=="object"&&Ar&&Ar.Object===Object&&Ar,mD=typeof self=="object"&&self&&self.Object===Object&&self,gD=vD||mD||Function("return this")(),yD=Object.prototype,xD=yD.toString,bD=Math.max,wD=Math.min,K1=function(){return gD.Date.now()};function _D(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(lD);t=O3(t)||0,kw(r)&&(d=!!r.leading,y="maxWait"in r,a=y?bD(O3(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?wD(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=K1();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:_(K1())}function R(){var D=K1(),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 kw(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function SD(e){return!!e&&typeof e=="object"}function ED(e){return typeof e=="symbol"||SD(e)&&xD.call(e)==sD}function O3(e){if(typeof e=="number")return e;if(ED(e))return C3;if(kw(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=kw(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(fD,"");var r=hD.test(e);return r||dD.test(e)?pD(e.slice(2),r?2:8):cD.test(e)?C3:+e}var Hte=_D;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 mf(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 Mw(e,t){return Mw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Mw(e,t)}function Ud(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Mw(e,t)}function AD(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function TD(e,t){e.classList?e.classList.add(t):AD(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function k3(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function CD(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=k3(e.className,t):e.setAttribute("class",k3(e.className&&e.className.baseVal||"",t))}const M3={disabled:!1},ZM=xn.createContext(null);var KM=function(t){return t.scrollTop},hg={exports:{}},jd={};/** @license React v17.0.2
40
+ * react-jsx-runtime.production.min.js
41
+ *
42
+ * Copyright (c) Facebook, Inc. and its affiliates.
43
+ *
44
+ * This source code is licensed under the MIT license found in the
45
+ * LICENSE file in the root directory of this source tree.
46
+ */var OD=Kt.exports,JM=60103;jd.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var I3=Symbol.for;JM=I3("react.element"),jd.Fragment=I3("react.fragment")}var kD=OD.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,MD=Object.prototype.hasOwnProperty,ID={key:!0,ref:!0,__self:!0,__source:!0};function eI(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)MD.call(t,n)&&!ID.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:JM,type:e,key:a,ref:o,props:i,_owner:kD.current}}jd.jsx=eI;jd.jsxs=eI;(function(e){e.exports=jd})(hg);const Vte=hg.exports.Fragment,ga=hg.exports.jsx,PD=hg.exports.jsxs;var Ph="unmounted",Zu="exited",Ku="entering",Ns="entered",Iw="exiting",io=function(e){Ud(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=Zu,a.appearStatus=Ku):s=Ns:n.unmountOnExit||n.mountOnEnter?s=Ph:s=Zu,a.state={status:s},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===Ph?{status:Zu}: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!==Ku&&o!==Ns&&(a=Ku):(o===Ku||o===Ns)&&(a=Iw)}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===Ku){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Ih.findDOMNode(this);o&&KM(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Zu&&this.setState({status:Ph})},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||M3.disabled){this.safeSetState({status:Ns},function(){a.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:Ku},function(){a.props.onEntering(c,d),a.onTransitionEnd(g,function(){a.safeSetState({status:Ns},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||M3.disabled){this.safeSetState({status:Zu},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Iw},function(){i.props.onExiting(l),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:Zu},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===Ph)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=mf(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ga(ZM.Provider,{value:null,children:typeof o=="function"?o(i,l):xn.cloneElement(xn.Children.only(o),l)})},t}(xn.Component);io.contextType=ZM;io.propTypes={};function Es(){}io.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Es,onEntering:Es,onEntered:Es,onExit:Es,onExiting:Es,onExited:Es};io.UNMOUNTED=Ph;io.EXITED=Zu;io.ENTERING=Ku;io.ENTERED=Ns;io.EXITING=Iw;const FD=io;var RD=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return TD(t,n)})},J1=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return CD(t,n)})},B2=function(e){Ud(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&&KM(i),l&&(this.appliedClasses[a][o]=l,RD(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&&J1(i,l),s&&J1(i,s),c&&J1(i,c)},r.render=function(){var i=this.props;i.classNames;var a=mf(i,["classNames"]);return ga(FD,{...a,onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited})},t}(xn.Component);B2.defaultProps={classNames:""};B2.propTypes={};const qte=B2;function zv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}/**!
47
+ * @fileOverview Kickass library to create and place poppers near their reference elements.
48
+ * @version 1.16.1
49
+ * @license
50
+ * Copyright (c) 2016 Federico Zivolo and contributors
51
+ *
52
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
53
+ * of this software and associated documentation files (the "Software"), to deal
54
+ * in the Software without restriction, including without limitation the rights
55
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
56
+ * copies of the Software, and to permit persons to whom the Software is
57
+ * furnished to do so, subject to the following conditions:
58
+ *
59
+ * The above copyright notice and this permission notice shall be included in all
60
+ * copies or substantial portions of the Software.
61
+ *
62
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
63
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
64
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
65
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
66
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
67
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
68
+ * SOFTWARE.
69
+ */var Gd=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",ND=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Gd&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function LD(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function DD(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},ND))}}var $D=Gd&&window.Promise,BD=$D?LD:DD;function tI(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function Fl(e,t){if(e.nodeType!==1)return[];var r=e.ownerDocument.defaultView,n=r.getComputedStyle(e,null);return t?n[t]:n}function z2(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function Wd(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Fl(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(r+i+n)?e:Wd(z2(e))}function rI(e){return e&&e.referenceNode?e.referenceNode:e}var P3=Gd&&!!(window.MSInputMethodContext&&document.documentMode),F3=Gd&&/MSIE 10/.test(navigator.userAgent);function Df(e){return e===11?P3:e===10?F3:P3||F3}function gf(e){if(!e)return document.documentElement;for(var t=Df(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&&Fl(r,"position")==="static"?gf(r):r}function zD(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||gf(e.firstElementChild)===e}function Pw(e){return e.parentNode!==null?Pw(e.parentNode):e}function dm(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 zD(o)?o:gf(o);var l=Pw(e);return l.host?dm(l.host,t):dm(e,Pw(t).host)}function yf(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 UD(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=yf(t,"top"),i=yf(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 R3(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 N3(e,t,r,n){return Math.max(t["offset"+e],t["scroll"+e],r["client"+e],r["offset"+e],r["scroll"+e],Df(10)?parseInt(r["offset"+e])+parseInt(n["margin"+(e==="Height"?"Top":"Left")])+parseInt(n["margin"+(e==="Height"?"Bottom":"Right")]):0)}function nI(e){var t=e.body,r=e.documentElement,n=Df(10)&&getComputedStyle(r);return{height:N3("Height",t,r,n),width:N3("Width",t,r,n)}}var jD=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},GD=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}}(),xf=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 ou(e){return Ci({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Fw(e){var t={};try{if(Df(10)){t=e.getBoundingClientRect();var r=yf(e,"top"),n=yf(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"?nI(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=Fl(e);s-=R3(d,"x"),c-=R3(d,"y"),i.width-=s,i.height-=c}return ou(i)}function U2(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=Df(10),i=t.nodeName==="HTML",a=Fw(e),o=Fw(t),l=Wd(e),s=Fl(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=ou({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=UD(y,t)),y}function WD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.ownerDocument.documentElement,n=U2(e,r),i=Math.max(r.clientWidth,window.innerWidth||0),a=Math.max(r.clientHeight,window.innerHeight||0),o=t?0:yf(r),l=t?0:yf(r,"left"),s={top:o-n.top+n.marginTop,left:l-n.left+n.marginLeft,width:i,height:a};return ou(s)}function iI(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(Fl(e,"position")==="fixed")return!0;var r=z2(e);return r?iI(r):!1}function aI(e){if(!e||!e.parentElement||Df())return document.documentElement;for(var t=e.parentElement;t&&Fl(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function j2(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,a={top:0,left:0},o=i?aI(e):dm(e,rI(t));if(n==="viewport")a=WD(o,i);else{var l=void 0;n==="scrollParent"?(l=Wd(z2(t)),l.nodeName==="BODY"&&(l=e.ownerDocument.documentElement)):n==="window"?l=e.ownerDocument.documentElement:l=n;var s=U2(l,o,i);if(l.nodeName==="HTML"&&!iI(o)){var c=nI(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 HD(e){var t=e.width,r=e.height;return t*r}function oI(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=j2(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:HD(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 uI(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=n?aI(t):dm(t,rI(r));return U2(r,i,n)}function lI(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 pm(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 sI(e,t,r){r=r.split("-")[0];var n=lI(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[pm(l)],i}function Hd(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function VD(e,t,r){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===r});var n=Hd(e,function(i){return i[t]===r});return e.indexOf(n)}function fI(e,t,r){var n=r===void 0?e:e.slice(0,VD(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&&tI(a)&&(t.offsets.popper=ou(t.offsets.popper),t.offsets.reference=ou(t.offsets.reference),t=a(t,i))}),t}function qD(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=uI(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=oI(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=sI(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=fI(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function cI(e,t){return e.some(function(r){var n=r.name,i=r.enabled;return i&&n===t})}function G2(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 YD(){return this.state.isDestroyed=!0,cI(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[G2("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function hI(e){var t=e.ownerDocument;return t?t.defaultView:window}function dI(e,t,r,n){var i=e.nodeName==="BODY",a=i?e.ownerDocument.defaultView:e;a.addEventListener(t,r,{passive:!0}),i||dI(Wd(a.parentNode),t,r,n),n.push(a)}function XD(e,t,r,n){r.updateBound=n,hI(e).addEventListener("resize",r.updateBound,{passive:!0});var i=Wd(e);return dI(i,"scroll",r.updateBound,r.scrollParents),r.scrollElement=i,r.eventsEnabled=!0,r}function QD(){this.state.eventsEnabled||(this.state=XD(this.reference,this.options,this.state,this.scheduleUpdate))}function ZD(e,t){return hI(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 KD(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=ZD(this.reference,this.state))}function W2(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function Rw(e,t){Object.keys(t).forEach(function(r){var n="";["width","height","top","right","bottom","left"].indexOf(r)!==-1&&W2(t[r])&&(n="px"),e.style[r]=t[r]+n})}function JD(e,t){Object.keys(t).forEach(function(r){var n=t[r];n!==!1?e.setAttribute(r,t[r]):e.removeAttribute(r)})}function e$(e){return Rw(e.instance.popper,e.styles),JD(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&Rw(e.arrowElement,e.arrowStyles),e}function t$(e,t,r,n,i){var a=uI(i,t,e,r.positionFixed),o=oI(r.placement,a,t,e,r.modifiers.flip.boundariesElement,r.modifiers.flip.padding);return t.setAttribute("x-placement",o),Rw(t,{position:r.positionFixed?"fixed":"absolute"}),r}function r$(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 n$=Gd&&/Firefox/i.test(navigator.userAgent);function i$(e,t){var r=t.x,n=t.y,i=e.offsets.popper,a=Hd(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=gf(e.instance.popper),s=Fw(l),c={position:i.position},d=r$(e,window.devicePixelRatio<2||!n$),y=r==="bottom"?"top":"bottom",g=n==="right"?"left":"right",m=G2("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 pI(e,t,r){var n=Hd(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 a$(e,t){var r;if(!pI(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=lI(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=ou(e.offsets.popper);var M=l[y]+l[c]/2-E/2,b=Fl(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={},xf(r,y,Math.round(C)),xf(r,g,""),r),e}function o$(e){return e==="end"?"start":e==="start"?"end":e}var vI=["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"],ex=vI.slice(3);function L3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=ex.indexOf(e),n=ex.slice(r+1).concat(ex.slice(0,r));return t?n.reverse():n}var tx={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function u$(e,t){if(cI(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var r=j2(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),n=e.placement.split("-")[0],i=pm(n),a=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case tx.FLIP:o=[n,i];break;case tx.CLOCKWISE:o=L3(n);break;case tx.COUNTERCLOCKWISE:o=L3(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=pm(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=o$(a)),e.placement=n+(a?"-"+a:""),e.offsets.popper=Ci({},e.offsets.popper,sI(e.instance.popper,e.offsets.reference,e.placement)),e=fI(e.instance.modifiers,e,"flip"))}),e}function l$(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 s$(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=ou(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 f$(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(Hd(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 s$(E,g,t,r)})}),c.forEach(function(d,y){d.forEach(function(g,m){W2(g)&&(i[y]+=g*(d[m-1]==="-"?-1:1))})}),i}function c$(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 W2(+r)?s=[+r,0]:s=f$(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 h$(e,t){var r=t.boundariesElement||gf(e.instance.popper);e.instance.reference===r&&(r=gf(r));var n=G2("transform"),i=e.instance.popper.style,a=i.top,o=i.left,l=i[n];i.top="",i.left="",i[n]="";var s=j2(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])),xf({},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))),xf({},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 d$(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:xf({},s,a[s]),end:xf({},s,a[s]+a[c]-o[c])};e.offsets.popper=Ci({},o,d[n])}return e}function p$(e){if(!pI(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,r=Hd(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 v$(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=pm(t),e.offsets.popper=ou(i),e}var m$={shift:{order:100,enabled:!0,fn:d$},offset:{order:200,enabled:!0,fn:c$,offset:0},preventOverflow:{order:300,enabled:!0,fn:h$,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:l$},arrow:{order:500,enabled:!0,fn:a$,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:u$,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:v$},hide:{order:800,enabled:!0,fn:p$},computeStyle:{order:850,enabled:!0,fn:i$,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:e$,onLoad:t$,gpuAcceleration:void 0}},g$={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:m$},dg=function(){function e(t,r){var n=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};jD(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=BD(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&&tI(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 GD(e,[{key:"update",value:function(){return qD.call(this)}},{key:"destroy",value:function(){return YD.call(this)}},{key:"enableEventListeners",value:function(){return QD.call(this)}},{key:"disableEventListeners",value:function(){return KD.call(this)}}]),e}();dg.Utils=(typeof window<"u"?window:global).PopperUtils;dg.placements=vI;dg.Defaults=g$;const Yte=dg;function H2(e,t,...r){if(!e)throw new TypeError(mI(t,r))}function mI(e,t){let r=0;return e.replace(/%[os]/gu,()=>gI(t[r++]))}function gI(e){return typeof e!="object"||e===null?String(e):Object.prototype.toString.call(e)}let y$;function x$(e){try{const t=e instanceof Error?e:new Error(gI(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 b$;class ao{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,`
70
+ `);console.warn(this.message,...t,n)}catch{}}}const w$=new ao("W01","Unable to initialize event under dispatching."),_$=new ao("W02","Assigning any falsy value to 'cancelBubble' property has no effect."),S$=new ao("W03","Assigning any truthy value to 'returnValue' property has no effect."),E$=new ao("W04","Unable to preventDefault on non-cancelable events."),A$=new ao("W05","Unable to preventDefault inside passive event listener invocation."),T$=new ao("W06","An event listener wasn't added because it has been added already: %o, %o"),rx=new ao("W07","The %o option value was abandoned because the event listener wasn't added as duplicated."),D3=new ao("W08","The 'callback' argument must be a function or an object that has 'handleEvent' method: %o");new ao("W09","Event attribute handler must be a function: %o");class oo{static get NONE(){return $3}static get CAPTURING_PHASE(){return B3}static get AT_TARGET(){return z3}static get BUBBLING_PHASE(){return U3}constructor(t,r){Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});const n=r!=null?r:{};Nw.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 $3}get CAPTURING_PHASE(){return B3}get AT_TARGET(){return z3}get BUBBLING_PHASE(){return U3}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:_$.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?S$.warn():j3(Jr(this))}preventDefault(){j3(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){w$.warn();return}Nw.set(this,{...i,type:String(t),bubbles:Boolean(r),cancelable:Boolean(n),target:null,currentTarget:null,stopPropagationFlag:!1,stopImmediatePropagationFlag:!1,canceledFlag:!1})}}const $3=0,B3=1,z3=2,U3=3,Nw=new WeakMap;function Jr(e,t="this"){const r=Nw.get(e);return H2(r!=null,"'%s' must be an object that Event constructor created, but got another one: %o",t,e),r}function j3(e){if(e.inPassiveListenerFlag){A$.warn();return}if(!e.cancelable){E$.warn();return}e.canceledFlag=!0}Object.defineProperty(oo,"NONE",{enumerable:!0});Object.defineProperty(oo,"CAPTURING_PHASE",{enumerable:!0});Object.defineProperty(oo,"AT_TARGET",{enumerable:!0});Object.defineProperty(oo,"BUBBLING_PHASE",{enumerable:!0});const nx=Object.getOwnPropertyNames(oo.prototype);for(let e=0;e<nx.length;++e)nx[e]!=="constructor"&&Object.defineProperty(oo.prototype,nx[e],{enumerable:!0});typeof Xi<"u"&&typeof Xi.Event<"u"&&Object.setPrototypeOf(oo.prototype,Xi.Event.prototype);function C$(e){return Xi.DOMException?new Xi.DOMException(e,"InvalidStateError"):(As==null&&(As=class yI extends Error{constructor(r){super(r),Error.captureStackTrace&&Error.captureStackTrace(this,yI)}get code(){return 11}get name(){return"InvalidStateError"}},Object.defineProperties(As.prototype,{code:{enumerable:!0},name:{enumerable:!0}}),W3(As),W3(As.prototype)),new As(e))}let As;const G3={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 W3(e){const t=Object.keys(G3);for(let r=0;r<t.length;++r){const n=t[r],i=G3[n];Object.defineProperty(e,n,{get(){return i},configurable:!0,enumerable:!0})}}class pg extends oo{static wrap(t){return new(bI(t))(t)}constructor(t){super(t.type,{bubbles:t.bubbles,cancelable:t.cancelable,composed:t.composed}),t.cancelBubble&&super.stopPropagation(),t.defaultPrevented&&super.preventDefault(),xI.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,wI(t,i))}}stopPropagation(){super.stopPropagation();const{original:t}=Lo(this);"stopPropagation"in t&&t.stopPropagation()}get cancelBubble(){return super.cancelBubble}set cancelBubble(t){super.cancelBubble=t;const{original:r}=Lo(this);"cancelBubble"in r&&(r.cancelBubble=t)}stopImmediatePropagation(){super.stopImmediatePropagation();const{original:t}=Lo(this);"stopImmediatePropagation"in t&&t.stopImmediatePropagation()}get returnValue(){return super.returnValue}set returnValue(t){super.returnValue=t;const{original:r}=Lo(this);"returnValue"in r&&(r.returnValue=t)}preventDefault(){super.preventDefault();const{original:t}=Lo(this);"preventDefault"in t&&t.preventDefault()}get timeStamp(){const{original:t}=Lo(this);return"timeStamp"in t?t.timeStamp:super.timeStamp}}const xI=new WeakMap;function Lo(e){const t=xI.get(e);return H2(t!=null,"'this' is expected an Event object, but got",e),t}const vm=new WeakMap;vm.set(Object.prototype,pg);typeof Xi<"u"&&typeof Xi.Event<"u"&&vm.set(Xi.Event.prototype,pg);function bI(e){const t=Object.getPrototypeOf(e);if(t==null)return pg;let r=vm.get(t);return r==null&&(r=O$(bI(t),t),vm.set(t,r)),r}function O$(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],wI(t,n[i]));return r}function wI(e,t){const r=Object.getOwnPropertyDescriptor(e,t);return{get(){const n=Lo(this).original,i=n[t];return typeof i=="function"?i.bind(n):i},set(n){const i=Lo(this).original;i[t]=n},configurable:r.configurable,enumerable:r.enumerable}}function k$(e,t,r,n,i,a){return{callback:e,flags:(t?1:0)|(r?2:0)|(n?4:0),signal:i,signalListener:a}}function M$(e){e.flags|=8}function _I(e){return(e.flags&1)===1}function SI(e){return(e.flags&2)===2}function EI(e){return(e.flags&4)===4}function I$(e){return(e.flags&8)===8}function P$({callback:e},t,r){try{typeof e=="function"?e.call(t,r):typeof e.handleEvent=="function"&&e.handleEvent(r)}catch(n){x$(n)}}function AI({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 F$(e,t,r,n,i,a){let o;a&&(o=TI.bind(null,e,t,r),a.addEventListener("abort",o));const l=k$(t,r,n,i,a,o);return e.cow?(e.cow=!1,e.listeners=[...e.listeners,l]):e.listeners.push(l),l}function TI(e,t,r){const n=AI(e,t,r);return n!==-1?CI(e,n):!1}function CI(e,t,r=!1){const n=e.listeners[t];return M$(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 R$(){return Object.create(null)}function N$(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 V2{constructor(){OI.set(this,R$())}addEventListener(t,r,n){const i=ix(this),{callback:a,capture:o,once:l,passive:s,signal:c,type:d}=L$(t,r,n);if(a==null||(c==null?void 0:c.aborted))return;const y=N$(i,d),g=AI(y,a,o);if(g!==-1){$$(y.listeners[g],s,l,c);return}F$(y,a,o,s,l,c)}removeEventListener(t,r,n){const i=ix(this),{callback:a,capture:o,type:l}=D$(t,r,n),s=i[l];a!=null&&s&&TI(s,a,o)}dispatchEvent(t){const r=ix(this)[String(t.type)];if(r==null)return!0;const n=t instanceof oo?t:pg.wrap(t),i=Jr(n,"event");if(i.dispatchFlag)throw C$("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(!I$(s)&&(EI(s)&&CI(r,l,!a)&&(l-=1),i.inPassiveListenerFlag=SI(s),P$(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 OI=new WeakMap;function ix(e,t="this"){const r=OI.get(e);return H2(r!=null,"'%s' must be an object that EventTarget constructor created, but got another one: %o",t,e),r}function L$(e,t,r){var n;return kI(t),typeof r=="object"&&r!==null?{type:String(e),callback:t!=null?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!=null?t:void 0,capture:Boolean(r),passive:!1,once:!1,signal:void 0}}function D$(e,t,r){return kI(t),typeof r=="object"&&r!==null?{type:String(e),callback:t!=null?t:void 0,capture:Boolean(r.capture)}:{type:String(e),callback:t!=null?t:void 0,capture:Boolean(r)}}function kI(e){if(!(typeof e=="function"||typeof e=="object"&&e!==null&&typeof e.handleEvent=="function")){if(e==null||typeof e=="object"){D3.warn(e);return}throw new TypeError(mI(D3.message,[e]))}}function $$(e,t,r,n){T$.warn(_I(e)?"capture":"bubble",e.callback),SI(e)!==t&&rx.warn("passive"),EI(e)!==r&&rx.warn("once"),e.signal!==n&&rx.warn("signal")}const ax=Object.getOwnPropertyNames(V2.prototype);for(let e=0;e<ax.length;++e)ax[e]!=="constructor"&&Object.defineProperty(V2.prototype,ax[e],{enumerable:!0});typeof Xi<"u"&&typeof Xi.EventTarget<"u"&&Object.setPrototypeOf(V2.prototype,Xi.EventTarget.prototype);function H3(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?H3(Object(r),!0).forEach(function(n){hn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mm(e){return mm=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},mm(e)}function B$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V3(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 z$(e,t,r){return t&&V3(e.prototype,t),r&&V3(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 q2(e,t){return j$(e)||W$(e,t)||MI(e,t)||V$()}function Vd(e){return U$(e)||G$(e)||MI(e)||H$()}function U$(e){if(Array.isArray(e))return Lw(e)}function j$(e){if(Array.isArray(e))return e}function G$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function W$(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 MI(e,t){if(!!e){if(typeof e=="string")return Lw(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 Lw(e,t)}}function Lw(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 H$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
71
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function V$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
72
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var q3=function(){},Y2={},II={},PI=null,FI={mark:q3,measure:q3};try{typeof window<"u"&&(Y2=window),typeof document<"u"&&(II=document),typeof MutationObserver<"u"&&(PI=MutationObserver),typeof performance<"u"&&(FI=performance)}catch{}var q$=Y2.navigator||{},Y3=q$.userAgent,X3=Y3===void 0?"":Y3,uu=Y2,Dr=II,Q3=PI,Uv=FI;uu.document;var uo=!!Dr.documentElement&&!!Dr.head&&typeof Dr.addEventListener=="function"&&typeof Dr.createElement=="function",RI=~X3.indexOf("MSIE")||~X3.indexOf("Trident/"),jv,Gv,Wv,Hv,Vv,Ka="___FONT_AWESOME___",Dw=16,NI="fa",LI="svg-inline--fa",ml="data-fa-i2svg",$w="data-fa-pseudo-element",Y$="data-fa-pseudo-element-pending",X2="data-prefix",Q2="data-icon",Z3="fontawesome-i2svg",X$="async",Q$=["HTML","HEAD","STYLE","SCRIPT"],DI=function(){try{return!0}catch{return!1}}(),Nr="classic",Hr="sharp",Z2=[Nr,Hr];function qd(e){return new Proxy(e,{get:function(r,n){return n in r?r[n]:r[Nr]}})}var xd=qd((jv={},hn(jv,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(jv,Hr,{fa:"solid",fass:"solid","fa-solid":"solid"}),jv)),bd=qd((Gv={},hn(Gv,Nr,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),hn(Gv,Hr,{solid:"fass"}),Gv)),wd=qd((Wv={},hn(Wv,Nr,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),hn(Wv,Hr,{fass:"fa-solid"}),Wv)),Z$=qd((Hv={},hn(Hv,Nr,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),hn(Hv,Hr,{"fa-solid":"fass"}),Hv)),K$=/fa(s|r|l|t|d|b|k|ss)?[\-\ ]/,$I="fa-layers-text",J$=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,eB=qd((Vv={},hn(Vv,Nr,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),hn(Vv,Hr,{900:"fass"}),Vv)),BI=[1,2,3,4,5,6,7,8,9,10],tB=BI.concat([11,12,13,14,15,16,17,18,19,20]),rB=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],ul={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},_d=new Set;Object.keys(bd[Nr]).map(_d.add.bind(_d));Object.keys(bd[Hr]).map(_d.add.bind(_d));var nB=[].concat(Z2,Vd(_d),["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(BI.map(function(e){return"".concat(e,"x")})).concat(tB.map(function(e){return"w-".concat(e)})),Qh=uu.FontAwesomeConfig||{};function iB(e){var t=Dr.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function aB(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(Dr&&typeof Dr.querySelector=="function"){var oB=[["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"]];oB.forEach(function(e){var t=q2(e,2),r=t[0],n=t[1],i=aB(iB(r));i!=null&&(Qh[n]=i)})}var zI={styleDefault:"solid",familyDefault:"classic",cssPrefix:NI,replacementClass:LI,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Qh.familyPrefix&&(Qh.cssPrefix=Qh.familyPrefix);var bf=Nt(Nt({},zI),Qh);bf.autoReplaceSvg||(bf.observeMutations=!1);var Ut={};Object.keys(zI).forEach(function(e){Object.defineProperty(Ut,e,{enumerable:!0,set:function(r){bf[e]=r,Zh.forEach(function(n){return n(Ut)})},get:function(){return bf[e]}})});Object.defineProperty(Ut,"familyPrefix",{enumerable:!0,set:function(t){bf.cssPrefix=t,Zh.forEach(function(r){return r(Ut)})},get:function(){return bf.cssPrefix}});uu.FontAwesomeConfig=Ut;var Zh=[];function uB(e){return Zh.push(e),function(){Zh.splice(Zh.indexOf(e),1)}}var Fo=Dw,pa={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function lB(e){if(!(!e||!uo)){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 sB="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Sd(){for(var e=12,t="";e-- >0;)t+=sB[Math.random()*62|0];return t}function $f(e){for(var t=[],r=(e||[]).length>>>0;r--;)t[r]=e[r];return t}function K2(e){return e.classList?$f(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function UI(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function fB(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,'="').concat(UI(e[r]),'" ')},"").trim()}function vg(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,": ").concat(e[r].trim(),";")},"")}function J2(e){return e.size!==pa.size||e.x!==pa.x||e.y!==pa.y||e.rotate!==pa.rotate||e.flipX||e.flipY}function cB(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 hB(e){var t=e.transform,r=e.width,n=r===void 0?Dw:r,i=e.height,a=i===void 0?Dw:i,o=e.startCentered,l=o===void 0?!1:o,s="";return l&&RI?s+="translate(".concat(t.x/Fo-n/2,"em, ").concat(t.y/Fo-a/2,"em) "):l?s+="translate(calc(-50% + ".concat(t.x/Fo,"em), calc(-50% + ").concat(t.y/Fo,"em)) "):s+="translate(".concat(t.x/Fo,"em, ").concat(t.y/Fo,"em) "),s+="scale(".concat(t.size/Fo*(t.flipX?-1:1),", ").concat(t.size/Fo*(t.flipY?-1:1),") "),s+="rotate(".concat(t.rotate,"deg) "),s}var dB=`:root, :host {
73
+ --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
74
+ --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
75
+ --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
76
+ --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";
77
+ --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
78
+ --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
79
+ --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
80
+ }
81
+
82
+ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
83
+ overflow: visible;
84
+ box-sizing: content-box;
85
+ }
86
+
87
+ .svg-inline--fa {
88
+ display: var(--fa-display, inline-block);
89
+ height: 1em;
90
+ overflow: visible;
91
+ vertical-align: -0.125em;
92
+ }
93
+ .svg-inline--fa.fa-2xs {
94
+ vertical-align: 0.1em;
95
+ }
96
+ .svg-inline--fa.fa-xs {
97
+ vertical-align: 0em;
98
+ }
99
+ .svg-inline--fa.fa-sm {
100
+ vertical-align: -0.0714285705em;
101
+ }
102
+ .svg-inline--fa.fa-lg {
103
+ vertical-align: -0.2em;
104
+ }
105
+ .svg-inline--fa.fa-xl {
106
+ vertical-align: -0.25em;
107
+ }
108
+ .svg-inline--fa.fa-2xl {
109
+ vertical-align: -0.3125em;
110
+ }
111
+ .svg-inline--fa.fa-pull-left {
112
+ margin-right: var(--fa-pull-margin, 0.3em);
113
+ width: auto;
114
+ }
115
+ .svg-inline--fa.fa-pull-right {
116
+ margin-left: var(--fa-pull-margin, 0.3em);
117
+ width: auto;
118
+ }
119
+ .svg-inline--fa.fa-li {
120
+ width: var(--fa-li-width, 2em);
121
+ top: 0.25em;
122
+ }
123
+ .svg-inline--fa.fa-fw {
124
+ width: var(--fa-fw-width, 1.25em);
125
+ }
126
+
127
+ .fa-layers svg.svg-inline--fa {
128
+ bottom: 0;
129
+ left: 0;
130
+ margin: auto;
131
+ position: absolute;
132
+ right: 0;
133
+ top: 0;
134
+ }
135
+
136
+ .fa-layers-counter, .fa-layers-text {
137
+ display: inline-block;
138
+ position: absolute;
139
+ text-align: center;
140
+ }
141
+
142
+ .fa-layers {
143
+ display: inline-block;
144
+ height: 1em;
145
+ position: relative;
146
+ text-align: center;
147
+ vertical-align: -0.125em;
148
+ width: 1em;
149
+ }
150
+ .fa-layers svg.svg-inline--fa {
151
+ -webkit-transform-origin: center center;
152
+ transform-origin: center center;
153
+ }
154
+
155
+ .fa-layers-text {
156
+ left: 50%;
157
+ top: 50%;
158
+ -webkit-transform: translate(-50%, -50%);
159
+ transform: translate(-50%, -50%);
160
+ -webkit-transform-origin: center center;
161
+ transform-origin: center center;
162
+ }
163
+
164
+ .fa-layers-counter {
165
+ background-color: var(--fa-counter-background-color, #ff253a);
166
+ border-radius: var(--fa-counter-border-radius, 1em);
167
+ box-sizing: border-box;
168
+ color: var(--fa-inverse, #fff);
169
+ line-height: var(--fa-counter-line-height, 1);
170
+ max-width: var(--fa-counter-max-width, 5em);
171
+ min-width: var(--fa-counter-min-width, 1.5em);
172
+ overflow: hidden;
173
+ padding: var(--fa-counter-padding, 0.25em 0.5em);
174
+ right: var(--fa-right, 0);
175
+ text-overflow: ellipsis;
176
+ top: var(--fa-top, 0);
177
+ -webkit-transform: scale(var(--fa-counter-scale, 0.25));
178
+ transform: scale(var(--fa-counter-scale, 0.25));
179
+ -webkit-transform-origin: top right;
180
+ transform-origin: top right;
181
+ }
182
+
183
+ .fa-layers-bottom-right {
184
+ bottom: var(--fa-bottom, 0);
185
+ right: var(--fa-right, 0);
186
+ top: auto;
187
+ -webkit-transform: scale(var(--fa-layers-scale, 0.25));
188
+ transform: scale(var(--fa-layers-scale, 0.25));
189
+ -webkit-transform-origin: bottom right;
190
+ transform-origin: bottom right;
191
+ }
192
+
193
+ .fa-layers-bottom-left {
194
+ bottom: var(--fa-bottom, 0);
195
+ left: var(--fa-left, 0);
196
+ right: auto;
197
+ top: auto;
198
+ -webkit-transform: scale(var(--fa-layers-scale, 0.25));
199
+ transform: scale(var(--fa-layers-scale, 0.25));
200
+ -webkit-transform-origin: bottom left;
201
+ transform-origin: bottom left;
202
+ }
203
+
204
+ .fa-layers-top-right {
205
+ top: var(--fa-top, 0);
206
+ right: var(--fa-right, 0);
207
+ -webkit-transform: scale(var(--fa-layers-scale, 0.25));
208
+ transform: scale(var(--fa-layers-scale, 0.25));
209
+ -webkit-transform-origin: top right;
210
+ transform-origin: top right;
211
+ }
212
+
213
+ .fa-layers-top-left {
214
+ left: var(--fa-left, 0);
215
+ right: auto;
216
+ top: var(--fa-top, 0);
217
+ -webkit-transform: scale(var(--fa-layers-scale, 0.25));
218
+ transform: scale(var(--fa-layers-scale, 0.25));
219
+ -webkit-transform-origin: top left;
220
+ transform-origin: top left;
221
+ }
222
+
223
+ .fa-1x {
224
+ font-size: 1em;
225
+ }
226
+
227
+ .fa-2x {
228
+ font-size: 2em;
229
+ }
230
+
231
+ .fa-3x {
232
+ font-size: 3em;
233
+ }
234
+
235
+ .fa-4x {
236
+ font-size: 4em;
237
+ }
238
+
239
+ .fa-5x {
240
+ font-size: 5em;
241
+ }
242
+
243
+ .fa-6x {
244
+ font-size: 6em;
245
+ }
246
+
247
+ .fa-7x {
248
+ font-size: 7em;
249
+ }
250
+
251
+ .fa-8x {
252
+ font-size: 8em;
253
+ }
254
+
255
+ .fa-9x {
256
+ font-size: 9em;
257
+ }
258
+
259
+ .fa-10x {
260
+ font-size: 10em;
261
+ }
262
+
263
+ .fa-2xs {
264
+ font-size: 0.625em;
265
+ line-height: 0.1em;
266
+ vertical-align: 0.225em;
267
+ }
268
+
269
+ .fa-xs {
270
+ font-size: 0.75em;
271
+ line-height: 0.0833333337em;
272
+ vertical-align: 0.125em;
273
+ }
274
+
275
+ .fa-sm {
276
+ font-size: 0.875em;
277
+ line-height: 0.0714285718em;
278
+ vertical-align: 0.0535714295em;
279
+ }
280
+
281
+ .fa-lg {
282
+ font-size: 1.25em;
283
+ line-height: 0.05em;
284
+ vertical-align: -0.075em;
285
+ }
286
+
287
+ .fa-xl {
288
+ font-size: 1.5em;
289
+ line-height: 0.0416666682em;
290
+ vertical-align: -0.125em;
291
+ }
292
+
293
+ .fa-2xl {
294
+ font-size: 2em;
295
+ line-height: 0.03125em;
296
+ vertical-align: -0.1875em;
297
+ }
298
+
299
+ .fa-fw {
300
+ text-align: center;
301
+ width: 1.25em;
302
+ }
303
+
304
+ .fa-ul {
305
+ list-style-type: none;
306
+ margin-left: var(--fa-li-margin, 2.5em);
307
+ padding-left: 0;
308
+ }
309
+ .fa-ul > li {
310
+ position: relative;
311
+ }
312
+
313
+ .fa-li {
314
+ left: calc(var(--fa-li-width, 2em) * -1);
315
+ position: absolute;
316
+ text-align: center;
317
+ width: var(--fa-li-width, 2em);
318
+ line-height: inherit;
319
+ }
320
+
321
+ .fa-border {
322
+ border-color: var(--fa-border-color, #eee);
323
+ border-radius: var(--fa-border-radius, 0.1em);
324
+ border-style: var(--fa-border-style, solid);
325
+ border-width: var(--fa-border-width, 0.08em);
326
+ padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
327
+ }
328
+
329
+ .fa-pull-left {
330
+ float: left;
331
+ margin-right: var(--fa-pull-margin, 0.3em);
332
+ }
333
+
334
+ .fa-pull-right {
335
+ float: right;
336
+ margin-left: var(--fa-pull-margin, 0.3em);
337
+ }
338
+
339
+ .fa-beat {
340
+ -webkit-animation-name: fa-beat;
341
+ animation-name: fa-beat;
342
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
343
+ animation-delay: var(--fa-animation-delay, 0s);
344
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
345
+ animation-direction: var(--fa-animation-direction, normal);
346
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
347
+ animation-duration: var(--fa-animation-duration, 1s);
348
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
349
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
350
+ -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
351
+ animation-timing-function: var(--fa-animation-timing, ease-in-out);
352
+ }
353
+
354
+ .fa-bounce {
355
+ -webkit-animation-name: fa-bounce;
356
+ animation-name: fa-bounce;
357
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
358
+ animation-delay: var(--fa-animation-delay, 0s);
359
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
360
+ animation-direction: var(--fa-animation-direction, normal);
361
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
362
+ animation-duration: var(--fa-animation-duration, 1s);
363
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
364
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
365
+ -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
366
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
367
+ }
368
+
369
+ .fa-fade {
370
+ -webkit-animation-name: fa-fade;
371
+ animation-name: fa-fade;
372
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
373
+ animation-delay: var(--fa-animation-delay, 0s);
374
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
375
+ animation-direction: var(--fa-animation-direction, normal);
376
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
377
+ animation-duration: var(--fa-animation-duration, 1s);
378
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
379
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
380
+ -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
381
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
382
+ }
383
+
384
+ .fa-beat-fade {
385
+ -webkit-animation-name: fa-beat-fade;
386
+ animation-name: fa-beat-fade;
387
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
388
+ animation-delay: var(--fa-animation-delay, 0s);
389
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
390
+ animation-direction: var(--fa-animation-direction, normal);
391
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
392
+ animation-duration: var(--fa-animation-duration, 1s);
393
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
394
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
395
+ -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
396
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
397
+ }
398
+
399
+ .fa-flip {
400
+ -webkit-animation-name: fa-flip;
401
+ animation-name: fa-flip;
402
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
403
+ animation-delay: var(--fa-animation-delay, 0s);
404
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
405
+ animation-direction: var(--fa-animation-direction, normal);
406
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
407
+ animation-duration: var(--fa-animation-duration, 1s);
408
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
409
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
410
+ -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
411
+ animation-timing-function: var(--fa-animation-timing, ease-in-out);
412
+ }
413
+
414
+ .fa-shake {
415
+ -webkit-animation-name: fa-shake;
416
+ animation-name: fa-shake;
417
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
418
+ animation-delay: var(--fa-animation-delay, 0s);
419
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
420
+ animation-direction: var(--fa-animation-direction, normal);
421
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
422
+ animation-duration: var(--fa-animation-duration, 1s);
423
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
424
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
425
+ -webkit-animation-timing-function: var(--fa-animation-timing, linear);
426
+ animation-timing-function: var(--fa-animation-timing, linear);
427
+ }
428
+
429
+ .fa-spin {
430
+ -webkit-animation-name: fa-spin;
431
+ animation-name: fa-spin;
432
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
433
+ animation-delay: var(--fa-animation-delay, 0s);
434
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
435
+ animation-direction: var(--fa-animation-direction, normal);
436
+ -webkit-animation-duration: var(--fa-animation-duration, 2s);
437
+ animation-duration: var(--fa-animation-duration, 2s);
438
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
439
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
440
+ -webkit-animation-timing-function: var(--fa-animation-timing, linear);
441
+ animation-timing-function: var(--fa-animation-timing, linear);
442
+ }
443
+
444
+ .fa-spin-reverse {
445
+ --fa-animation-direction: reverse;
446
+ }
447
+
448
+ .fa-pulse,
449
+ .fa-spin-pulse {
450
+ -webkit-animation-name: fa-spin;
451
+ animation-name: fa-spin;
452
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
453
+ animation-direction: var(--fa-animation-direction, normal);
454
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
455
+ animation-duration: var(--fa-animation-duration, 1s);
456
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
457
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
458
+ -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));
459
+ animation-timing-function: var(--fa-animation-timing, steps(8));
460
+ }
461
+
462
+ @media (prefers-reduced-motion: reduce) {
463
+ .fa-beat,
464
+ .fa-bounce,
465
+ .fa-fade,
466
+ .fa-beat-fade,
467
+ .fa-flip,
468
+ .fa-pulse,
469
+ .fa-shake,
470
+ .fa-spin,
471
+ .fa-spin-pulse {
472
+ -webkit-animation-delay: -1ms;
473
+ animation-delay: -1ms;
474
+ -webkit-animation-duration: 1ms;
475
+ animation-duration: 1ms;
476
+ -webkit-animation-iteration-count: 1;
477
+ animation-iteration-count: 1;
478
+ transition-delay: 0s;
479
+ transition-duration: 0s;
480
+ }
481
+ }
482
+ @-webkit-keyframes fa-beat {
483
+ 0%, 90% {
484
+ -webkit-transform: scale(1);
485
+ transform: scale(1);
486
+ }
487
+ 45% {
488
+ -webkit-transform: scale(var(--fa-beat-scale, 1.25));
489
+ transform: scale(var(--fa-beat-scale, 1.25));
490
+ }
491
+ }
492
+ @keyframes fa-beat {
493
+ 0%, 90% {
494
+ -webkit-transform: scale(1);
495
+ transform: scale(1);
496
+ }
497
+ 45% {
498
+ -webkit-transform: scale(var(--fa-beat-scale, 1.25));
499
+ transform: scale(var(--fa-beat-scale, 1.25));
500
+ }
501
+ }
502
+ @-webkit-keyframes fa-bounce {
503
+ 0% {
504
+ -webkit-transform: scale(1, 1) translateY(0);
505
+ transform: scale(1, 1) translateY(0);
506
+ }
507
+ 10% {
508
+ -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
509
+ transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
510
+ }
511
+ 30% {
512
+ -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));
513
+ 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));
514
+ }
515
+ 50% {
516
+ -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
517
+ transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
518
+ }
519
+ 57% {
520
+ -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
521
+ transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
522
+ }
523
+ 64% {
524
+ -webkit-transform: scale(1, 1) translateY(0);
525
+ transform: scale(1, 1) translateY(0);
526
+ }
527
+ 100% {
528
+ -webkit-transform: scale(1, 1) translateY(0);
529
+ transform: scale(1, 1) translateY(0);
530
+ }
531
+ }
532
+ @keyframes fa-bounce {
533
+ 0% {
534
+ -webkit-transform: scale(1, 1) translateY(0);
535
+ transform: scale(1, 1) translateY(0);
536
+ }
537
+ 10% {
538
+ -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
539
+ transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
540
+ }
541
+ 30% {
542
+ -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));
543
+ 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));
544
+ }
545
+ 50% {
546
+ -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
547
+ transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
548
+ }
549
+ 57% {
550
+ -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
551
+ transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
552
+ }
553
+ 64% {
554
+ -webkit-transform: scale(1, 1) translateY(0);
555
+ transform: scale(1, 1) translateY(0);
556
+ }
557
+ 100% {
558
+ -webkit-transform: scale(1, 1) translateY(0);
559
+ transform: scale(1, 1) translateY(0);
560
+ }
561
+ }
562
+ @-webkit-keyframes fa-fade {
563
+ 50% {
564
+ opacity: var(--fa-fade-opacity, 0.4);
565
+ }
566
+ }
567
+ @keyframes fa-fade {
568
+ 50% {
569
+ opacity: var(--fa-fade-opacity, 0.4);
570
+ }
571
+ }
572
+ @-webkit-keyframes fa-beat-fade {
573
+ 0%, 100% {
574
+ opacity: var(--fa-beat-fade-opacity, 0.4);
575
+ -webkit-transform: scale(1);
576
+ transform: scale(1);
577
+ }
578
+ 50% {
579
+ opacity: 1;
580
+ -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
581
+ transform: scale(var(--fa-beat-fade-scale, 1.125));
582
+ }
583
+ }
584
+ @keyframes fa-beat-fade {
585
+ 0%, 100% {
586
+ opacity: var(--fa-beat-fade-opacity, 0.4);
587
+ -webkit-transform: scale(1);
588
+ transform: scale(1);
589
+ }
590
+ 50% {
591
+ opacity: 1;
592
+ -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
593
+ transform: scale(var(--fa-beat-fade-scale, 1.125));
594
+ }
595
+ }
596
+ @-webkit-keyframes fa-flip {
597
+ 50% {
598
+ -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
599
+ transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
600
+ }
601
+ }
602
+ @keyframes fa-flip {
603
+ 50% {
604
+ -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
605
+ transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
606
+ }
607
+ }
608
+ @-webkit-keyframes fa-shake {
609
+ 0% {
610
+ -webkit-transform: rotate(-15deg);
611
+ transform: rotate(-15deg);
612
+ }
613
+ 4% {
614
+ -webkit-transform: rotate(15deg);
615
+ transform: rotate(15deg);
616
+ }
617
+ 8%, 24% {
618
+ -webkit-transform: rotate(-18deg);
619
+ transform: rotate(-18deg);
620
+ }
621
+ 12%, 28% {
622
+ -webkit-transform: rotate(18deg);
623
+ transform: rotate(18deg);
624
+ }
625
+ 16% {
626
+ -webkit-transform: rotate(-22deg);
627
+ transform: rotate(-22deg);
628
+ }
629
+ 20% {
630
+ -webkit-transform: rotate(22deg);
631
+ transform: rotate(22deg);
632
+ }
633
+ 32% {
634
+ -webkit-transform: rotate(-12deg);
635
+ transform: rotate(-12deg);
636
+ }
637
+ 36% {
638
+ -webkit-transform: rotate(12deg);
639
+ transform: rotate(12deg);
640
+ }
641
+ 40%, 100% {
642
+ -webkit-transform: rotate(0deg);
643
+ transform: rotate(0deg);
644
+ }
645
+ }
646
+ @keyframes fa-shake {
647
+ 0% {
648
+ -webkit-transform: rotate(-15deg);
649
+ transform: rotate(-15deg);
650
+ }
651
+ 4% {
652
+ -webkit-transform: rotate(15deg);
653
+ transform: rotate(15deg);
654
+ }
655
+ 8%, 24% {
656
+ -webkit-transform: rotate(-18deg);
657
+ transform: rotate(-18deg);
658
+ }
659
+ 12%, 28% {
660
+ -webkit-transform: rotate(18deg);
661
+ transform: rotate(18deg);
662
+ }
663
+ 16% {
664
+ -webkit-transform: rotate(-22deg);
665
+ transform: rotate(-22deg);
666
+ }
667
+ 20% {
668
+ -webkit-transform: rotate(22deg);
669
+ transform: rotate(22deg);
670
+ }
671
+ 32% {
672
+ -webkit-transform: rotate(-12deg);
673
+ transform: rotate(-12deg);
674
+ }
675
+ 36% {
676
+ -webkit-transform: rotate(12deg);
677
+ transform: rotate(12deg);
678
+ }
679
+ 40%, 100% {
680
+ -webkit-transform: rotate(0deg);
681
+ transform: rotate(0deg);
682
+ }
683
+ }
684
+ @-webkit-keyframes fa-spin {
685
+ 0% {
686
+ -webkit-transform: rotate(0deg);
687
+ transform: rotate(0deg);
688
+ }
689
+ 100% {
690
+ -webkit-transform: rotate(360deg);
691
+ transform: rotate(360deg);
692
+ }
693
+ }
694
+ @keyframes fa-spin {
695
+ 0% {
696
+ -webkit-transform: rotate(0deg);
697
+ transform: rotate(0deg);
698
+ }
699
+ 100% {
700
+ -webkit-transform: rotate(360deg);
701
+ transform: rotate(360deg);
702
+ }
703
+ }
704
+ .fa-rotate-90 {
705
+ -webkit-transform: rotate(90deg);
706
+ transform: rotate(90deg);
707
+ }
708
+
709
+ .fa-rotate-180 {
710
+ -webkit-transform: rotate(180deg);
711
+ transform: rotate(180deg);
712
+ }
713
+
714
+ .fa-rotate-270 {
715
+ -webkit-transform: rotate(270deg);
716
+ transform: rotate(270deg);
717
+ }
718
+
719
+ .fa-flip-horizontal {
720
+ -webkit-transform: scale(-1, 1);
721
+ transform: scale(-1, 1);
722
+ }
723
+
724
+ .fa-flip-vertical {
725
+ -webkit-transform: scale(1, -1);
726
+ transform: scale(1, -1);
727
+ }
728
+
729
+ .fa-flip-both,
730
+ .fa-flip-horizontal.fa-flip-vertical {
731
+ -webkit-transform: scale(-1, -1);
732
+ transform: scale(-1, -1);
733
+ }
734
+
735
+ .fa-rotate-by {
736
+ -webkit-transform: rotate(var(--fa-rotate-angle, none));
737
+ transform: rotate(var(--fa-rotate-angle, none));
738
+ }
739
+
740
+ .fa-stack {
741
+ display: inline-block;
742
+ vertical-align: middle;
743
+ height: 2em;
744
+ position: relative;
745
+ width: 2.5em;
746
+ }
747
+
748
+ .fa-stack-1x,
749
+ .fa-stack-2x {
750
+ bottom: 0;
751
+ left: 0;
752
+ margin: auto;
753
+ position: absolute;
754
+ right: 0;
755
+ top: 0;
756
+ z-index: var(--fa-stack-z-index, auto);
757
+ }
758
+
759
+ .svg-inline--fa.fa-stack-1x {
760
+ height: 1em;
761
+ width: 1.25em;
762
+ }
763
+ .svg-inline--fa.fa-stack-2x {
764
+ height: 2em;
765
+ width: 2.5em;
766
+ }
767
+
768
+ .fa-inverse {
769
+ color: var(--fa-inverse, #fff);
770
+ }
771
+
772
+ .sr-only,
773
+ .fa-sr-only {
774
+ position: absolute;
775
+ width: 1px;
776
+ height: 1px;
777
+ padding: 0;
778
+ margin: -1px;
779
+ overflow: hidden;
780
+ clip: rect(0, 0, 0, 0);
781
+ white-space: nowrap;
782
+ border-width: 0;
783
+ }
784
+
785
+ .sr-only-focusable:not(:focus),
786
+ .fa-sr-only-focusable:not(:focus) {
787
+ position: absolute;
788
+ width: 1px;
789
+ height: 1px;
790
+ padding: 0;
791
+ margin: -1px;
792
+ overflow: hidden;
793
+ clip: rect(0, 0, 0, 0);
794
+ white-space: nowrap;
795
+ border-width: 0;
796
+ }
797
+
798
+ .svg-inline--fa .fa-primary {
799
+ fill: var(--fa-primary-color, currentColor);
800
+ opacity: var(--fa-primary-opacity, 1);
801
+ }
802
+
803
+ .svg-inline--fa .fa-secondary {
804
+ fill: var(--fa-secondary-color, currentColor);
805
+ opacity: var(--fa-secondary-opacity, 0.4);
806
+ }
807
+
808
+ .svg-inline--fa.fa-swap-opacity .fa-primary {
809
+ opacity: var(--fa-secondary-opacity, 0.4);
810
+ }
811
+
812
+ .svg-inline--fa.fa-swap-opacity .fa-secondary {
813
+ opacity: var(--fa-primary-opacity, 1);
814
+ }
815
+
816
+ .svg-inline--fa mask .fa-primary,
817
+ .svg-inline--fa mask .fa-secondary {
818
+ fill: black;
819
+ }
820
+
821
+ .fad.fa-inverse,
822
+ .fa-duotone.fa-inverse {
823
+ color: var(--fa-inverse, #fff);
824
+ }`;function jI(){var e=NI,t=LI,r=Ut.cssPrefix,n=Ut.replacementClass,i=dB;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 K3=!1;function ox(){Ut.autoAddCss&&!K3&&(lB(jI()),K3=!0)}var pB={mixout:function(){return{dom:{css:jI,insertCss:ox}}},hooks:function(){return{beforeDOMElementCreation:function(){ox()},beforeI2svg:function(){ox()}}}},Ja=uu||{};Ja[Ka]||(Ja[Ka]={});Ja[Ka].styles||(Ja[Ka].styles={});Ja[Ka].hooks||(Ja[Ka].hooks={});Ja[Ka].shims||(Ja[Ka].shims=[]);var Yi=Ja[Ka],GI=[],vB=function e(){Dr.removeEventListener("DOMContentLoaded",e),gm=1,GI.map(function(t){return t()})},gm=!1;uo&&(gm=(Dr.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Dr.readyState),gm||Dr.addEventListener("DOMContentLoaded",vB));function mB(e){!uo||(gm?setTimeout(e,0):GI.push(e))}function Yd(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"?UI(e):"<".concat(t," ").concat(fB(n),">").concat(a.map(Yd).join(""),"</").concat(t,">")}function J3(e,t,r){if(e&&e[t]&&e[t][r])return{prefix:t,iconName:r,icon:e[t][r]}}var gB=function(t,r){return function(n,i,a,o){return t.call(r,n,i,a,o)}},ux=function(t,r,n,i){var a=Object.keys(t),o=a.length,l=i!==void 0?gB(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 yB(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 Bw(e){var t=yB(e);return t.length===1?t[0].toString(16):null}function xB(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 eT(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 zw(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.skipHooks,i=n===void 0?!1:n,a=eT(t);typeof Yi.hooks.addPack=="function"&&!i?Yi.hooks.addPack(e,eT(t)):Yi.styles[e]=Nt(Nt({},Yi.styles[e]||{}),a),e==="fas"&&zw("fa",t)}var qv,Yv,Xv,Ws=Yi.styles,bB=Yi.shims,wB=(qv={},hn(qv,Nr,Object.values(wd[Nr])),hn(qv,Hr,Object.values(wd[Hr])),qv),eS=null,WI={},HI={},VI={},qI={},YI={},_B=(Yv={},hn(Yv,Nr,Object.keys(xd[Nr])),hn(Yv,Hr,Object.keys(xd[Hr])),Yv);function SB(e){return~nB.indexOf(e)}function EB(e,t){var r=t.split("-"),n=r[0],i=r.slice(1).join("-");return n===e&&i!==""&&!SB(i)?i:null}var XI=function(){var t=function(a){return ux(Ws,function(o,l,s){return o[s]=ux(l,a,{}),o},{})};WI=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}),HI=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}),YI=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 Ws||Ut.autoFetchSvg,n=ux(bB,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:{}});VI=n.names,qI=n.unicodes,eS=mg(Ut.styleDefault,{family:Ut.familyDefault})};uB(function(e){eS=mg(e.styleDefault,{family:Ut.familyDefault})});XI();function tS(e,t){return(WI[e]||{})[t]}function AB(e,t){return(HI[e]||{})[t]}function ll(e,t){return(YI[e]||{})[t]}function QI(e){return VI[e]||{prefix:null,iconName:null}}function TB(e){var t=qI[e],r=tS("fas",e);return t||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}function lu(){return eS}var rS=function(){return{prefix:null,iconName:null,rest:[]}};function mg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.family,n=r===void 0?Nr:r,i=xd[n][e],a=bd[n][e]||bd[n][i],o=e in Yi.styles?e:null;return a||o||null}var tT=(Xv={},hn(Xv,Nr,Object.keys(wd[Nr])),hn(Xv,Hr,Object.keys(wd[Hr])),Xv);function gg(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 tT[Nr].includes(c)}))&&(l=Nr),(e.includes(a[Hr])||e.some(function(c){return tT[Hr].includes(c)}))&&(l=Hr);var s=e.reduce(function(c,d){var y=EB(Ut.cssPrefix,d);if(Ws[d]?(d=wB[l].includes(d)?Z$[l][d]:d,o=d,c.prefix=d):_B[l].indexOf(d)>-1?(o=d,c.prefix=mg(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"?QI(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"&&!Ws.far&&Ws.fas&&!Ut.autoFetchSvg&&(c.prefix="fas")}return c},rS());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&&(Ws.fass||Ut.autoFetchSvg)&&(s.prefix="fass",s.iconName=ll(s.prefix,s.iconName)||s.iconName),(s.prefix==="fa"||o==="fa")&&(s.prefix=lu()||"fas"),s}var CB=function(){function e(){B$(this,e),this.definitions={}}return z$(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]),zw(l,o[l]);var s=wd[Nr][l];s&&zw(s,o[l]),XI()})}},{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}(),rT=[],Hs={},of={},OB=Object.keys(of);function kB(e,t){var r=t.mixoutsTo;return rT=e,Hs={},Object.keys(of).forEach(function(n){OB.indexOf(n)===-1&&delete of[n]}),rT.forEach(function(n){var i=n.mixout?n.mixout():{};if(Object.keys(i).forEach(function(o){typeof i[o]=="function"&&(r[o]=i[o]),mm(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){Hs[o]||(Hs[o]=[]),Hs[o].push(a[o])})}n.provides&&n.provides(of)}),r}function Uw(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=Hs[e]||[];return a.forEach(function(o){t=o.apply(null,[t].concat(n))}),t}function gl(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=Hs[e]||[];i.forEach(function(a){a.apply(null,r)})}function eo(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return of[e]?of[e].apply(null,t):void 0}function jw(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,r=e.prefix||lu();if(!!t)return t=ll(r,t)||t,J3(ZI.definitions,r,t)||J3(Yi.styles,r,t)}var ZI=new CB,MB=function(){Ut.autoReplaceSvg=!1,Ut.observeMutations=!1,gl("noAuto")},IB={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return uo?(gl("beforeI2svg",t),eo("pseudoElements2svg",t),eo("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,mB(function(){FB({autoReplaceSvgRoot:r}),gl("watch",t)})}},PB={icon:function(t){if(t===null)return null;if(mm(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=mg(t[0]);return{prefix:n,iconName:ll(n,r)||r}}if(typeof t=="string"&&(t.indexOf("".concat(Ut.cssPrefix,"-"))>-1||t.match(K$))){var i=gg(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||lu(),iconName:ll(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var a=lu();return{prefix:a,iconName:ll(a,t)||t}}}},vi={noAuto:MB,config:Ut,dom:IB,parse:PB,library:ZI,findIconDefinition:jw,toHtml:Yd},FB=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)&&uo&&Ut.autoReplaceSvg&&vi.dom.i2svg({node:n})};function yg(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(n){return Yd(n)})}}),Object.defineProperty(e,"node",{get:function(){if(!!uo){var n=Dr.createElement("div");return n.innerHTML=e.html,n.children}}}),e}function RB(e){var t=e.children,r=e.main,n=e.mask,i=e.attributes,a=e.styles,o=e.transform;if(J2(o)&&r.found&&!n.found){var l=r.width,s=r.height,c={x:l/s/2,y:.5};i.style=vg(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 NB(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 nS(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[ml]=""),s&&(C.children.push({tag:"title",attributes:{id:C.attributes["aria-labelledby"]||"title-".concat(d||Sd())},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?eo("generateAbstractMask",R)||{children:[],attributes:{}}:eo("generateAbstractIcon",R)||{children:[],attributes:{}},Y=D.children,j=D.attributes;return R.children=Y,R.attributes=j,l?NB(R):RB(R)}function nT(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[ml]="");var d=Nt({},o.styles);J2(i)&&(d.transform=hB({transform:i,startCentered:!0,width:r,height:n}),d["-webkit-transform"]=d.transform);var y=vg(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 LB(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=vg(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 lx=Yi.styles;function Gw(e){var t=e[0],r=e[1],n=e.slice(4),i=q2(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 DB={found:!1,width:512,height:512};function $B(e,t){!DI&&!Ut.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Ww(e,t){var r=t;return t==="fa"&&Ut.styleDefault!==null&&(t=lu()),new Promise(function(n,i){if(eo("missingIconAbstract"),r==="fa"){var a=QI(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&lx[t]&&lx[t][e]){var o=lx[t][e];return n(Gw(o))}$B(e,t),n(Nt(Nt({},DB),{},{icon:Ut.showMissingIcons&&e?eo("missingIconAbstract")||{}:{}}))})}var iT=function(){},Hw=Ut.measurePerformance&&Uv&&Uv.mark&&Uv.measure?Uv:{mark:iT,measure:iT},Fh='FA "6.2.1"',BB=function(t){return Hw.mark("".concat(Fh," ").concat(t," begins")),function(){return KI(t)}},KI=function(t){Hw.mark("".concat(Fh," ").concat(t," ends")),Hw.measure("".concat(Fh," ").concat(t),"".concat(Fh," ").concat(t," begins"),"".concat(Fh," ").concat(t," ends"))},iS={begin:BB,end:KI},P0=function(){};function aT(e){var t=e.getAttribute?e.getAttribute(ml):null;return typeof t=="string"}function zB(e){var t=e.getAttribute?e.getAttribute(X2):null,r=e.getAttribute?e.getAttribute(Q2):null;return t&&r}function UB(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Ut.replacementClass)}function jB(){if(Ut.autoReplaceSvg===!0)return F0.replace;var e=F0[Ut.autoReplaceSvg];return e||F0.replace}function GB(e){return Dr.createElementNS("http://www.w3.org/2000/svg",e)}function WB(e){return Dr.createElement(e)}function JI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.ceFn,n=r===void 0?e.tag==="svg"?GB:WB: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(JI(o,{ceFn:n}))}),i}function HB(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var F0={replace:function(t){var r=t[0];if(r.parentNode)if(t[1].forEach(function(i){r.parentNode.insertBefore(JI(i),r)}),r.getAttribute(ml)===null&&Ut.keepOriginalSource){var n=Dr.createComment(HB(r));r.parentNode.replaceChild(n,r)}else r.remove()},nest:function(t){var r=t[0],n=t[1];if(~K2(r).indexOf(Ut.replacementClass))return F0.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 Yd(l)}).join(`
825
+ `);r.setAttribute(ml,""),r.innerHTML=o}};function oT(e){e()}function eP(e,t){var r=typeof t=="function"?t:P0;if(e.length===0)r();else{var n=oT;Ut.mutateApproach===X$&&(n=uu.requestAnimationFrame||oT),n(function(){var i=jB(),a=iS.begin("mutate");e.map(i),a(),r()})}}var aS=!1;function tP(){aS=!0}function Vw(){aS=!1}var ym=null;function uT(e){if(!!Q3&&!!Ut.observeMutations){var t=e.treeCallback,r=t===void 0?P0:t,n=e.nodeCallback,i=n===void 0?P0:n,a=e.pseudoElementsCallback,o=a===void 0?P0:a,l=e.observeMutationsRoot,s=l===void 0?Dr:l;ym=new Q3(function(c){if(!aS){var d=lu();$f(c).forEach(function(y){if(y.type==="childList"&&y.addedNodes.length>0&&!aT(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"&&aT(y.target)&&~rB.indexOf(y.attributeName))if(y.attributeName==="class"&&zB(y.target)){var g=gg(K2(y.target)),m=g.prefix,E=g.iconName;y.target.setAttribute(X2,m||d),E&&y.target.setAttribute(Q2,E)}else UB(y.target)&&i(y.target)})}}),uo&&ym.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function VB(){!ym||ym.disconnect()}function qB(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 YB(e){var t=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),n=e.innerText!==void 0?e.innerText.trim():"",i=gg(K2(e));return i.prefix||(i.prefix=lu()),t&&r&&(i.prefix=t,i.iconName=r),i.iconName&&i.prefix||(i.prefix&&n.length>0&&(i.iconName=AB(i.prefix,e.innerText)||tS(i.prefix,Bw(e.innerText))),!i.iconName&&Ut.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function XB(e){var t=$f(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||Sd()):(t["aria-hidden"]="true",t.focusable="false")),t}function QB(){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 lT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},r=YB(e),n=r.iconName,i=r.prefix,a=r.rest,o=XB(e),l=Uw("parseNodeAttributes",{},e),s=t.styleParser?qB(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 ZB=Yi.styles;function rP(e){var t=Ut.autoReplaceSvg==="nest"?lT(e,{styleParser:!1}):lT(e);return~t.extra.classes.indexOf($I)?eo("generateLayersText",e,t):eo("generateSvgReplacementMutation",e,t)}var su=new Set;Z2.map(function(e){su.add("fa-".concat(e))});Object.keys(xd[Nr]).map(su.add.bind(su));Object.keys(xd[Hr]).map(su.add.bind(su));su=Vd(su);function sT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!uo)return Promise.resolve();var r=Dr.documentElement.classList,n=function(y){return r.add("".concat(Z3,"-").concat(y))},i=function(y){return r.remove("".concat(Z3,"-").concat(y))},a=Ut.autoFetchSvg?su:Z2.map(function(d){return"fa-".concat(d)}).concat(Object.keys(ZB));a.includes("fa")||a.push("fa");var o=[".".concat($I,":not([").concat(ml,"])")].concat(a.map(function(d){return".".concat(d,":not([").concat(ml,"])")})).join(", ");if(o.length===0)return Promise.resolve();var l=[];try{l=$f(e.querySelectorAll(o))}catch{}if(l.length>0)n("pending"),i("complete");else return Promise.resolve();var s=iS.begin("onTree"),c=l.reduce(function(d,y){try{var g=rP(y);g&&d.push(g)}catch(m){DI||m.name==="MissingIcon"&&console.error(m)}return d},[]);return new Promise(function(d,y){Promise.all(c).then(function(g){eP(g,function(){n("active"),n("complete"),i("pending"),typeof t=="function"&&t(),s(),d()})}).catch(function(g){s(),y(g)})})}function KB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;rP(e).then(function(r){r&&eP([r],t)})}function JB(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=(t||{}).icon?t:jw(t||{}),i=r.mask;return i&&(i=(i||{}).icon?i:jw(i||{})),e(n,Nt(Nt({},r),{},{mask:i}))}}var ez=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 yg(Nt({type:"icon"},t),function(){return gl("beforeDOMElementCreation",{iconDefinition:t,params:r}),Ut.autoA11y&&(g?_["aria-labelledby"]="".concat(Ut.replacementClass,"-title-").concat(E||Sd()):(_["aria-hidden"]="true",_.focusable="false")),nS({icons:{main:Gw(Y),mask:s?Gw(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}})})}},tz={mixout:function(){return{icon:JB(ez)}},hooks:function(){return{mutationObserverCallbacks:function(r){return r.treeCallback=sT,r.nodeCallback=KB,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 sT(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([Ww(i,l),d.iconName?Ww(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(M){var b=q2(M,2),w=b[0],_=b[1];m([r,nS({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=vg(l);s.length>0&&(i.style=s);var c;return J2(o)&&(c=eo("generateAbstractTransformGrouping",{main:a,transform:o,containerWidth:a.width,iconWidth:a.width})),n.push(c||a.icon),{children:n,attributes:i}}}},rz={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 yg({type:"layer"},function(){gl("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(Vd(a)).join(" ")},children:o}]})}}}},nz={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 yg({type:"counter",content:r},function(){return gl("beforeDOMElementCreation",{content:r,params:n}),LB({content:r.toString(),title:a,extra:{attributes:c,styles:y,classes:["".concat(Ut.cssPrefix,"-layers-counter")].concat(Vd(l))}})})}}}},iz={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 yg({type:"text",content:r},function(){return gl("beforeDOMElementCreation",{content:r,params:n}),nT({content:r,transform:Nt(Nt({},pa),a),title:l,extra:{attributes:y,styles:m,classes:["".concat(Ut.cssPrefix,"-layers-text")].concat(Vd(c))}})})}}},provides:function(t){t.generateLayersText=function(r,n){var i=n.title,a=n.transform,o=n.extra,l=null,s=null;if(RI){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,nT({content:r.innerHTML,width:l,height:s,transform:a,title:i,extra:o,watchable:!0})])}}},az=new RegExp('"',"ug"),fT=[1105920,1112319];function oz(e){var t=e.replace(az,""),r=xB(t,0),n=r>=fT[0]&&r<=fT[1],i=t.length===2?t[0]===t[1]:!1;return{value:Bw(i?t[0]:t),isSecondary:n||i}}function cT(e,t){var r="".concat(Y$).concat(t.replace(":","-"));return new Promise(function(n,i){if(e.getAttribute(r)!==null)return n();var a=$f(e.children),o=a.filter(function(Y){return Y.getAttribute($w)===t})[0],l=uu.getComputedStyle(e,t),s=l.getPropertyValue("font-family").match(J$),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])?bd[g][s[2].toLowerCase()]:eB[g][c],E=oz(y),M=E.value,b=E.isSecondary,w=s[0].startsWith("FontAwesome"),_=tS(m,M),C=_;if(w){var T=TB(M);T.iconName&&T.prefix&&(_=T.iconName,m=T.prefix)}if(_&&!b&&(!o||o.getAttribute(X2)!==m||o.getAttribute(Q2)!==C)){e.setAttribute(r,C),o&&e.removeChild(o);var R=QB(),D=R.extra;D.attributes[$w]=t,Ww(_,m).then(function(Y){var j=nS(Nt(Nt({},R),{},{icons:{main:Y,mask:rS()},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 Yd(Se)}).join(`
826
+ `),e.removeAttribute(r),n()}).catch(i)}else n()}else n()})}function uz(e){return Promise.all([cT(e,"::before"),cT(e,"::after")])}function lz(e){return e.parentNode!==document.head&&!~Q$.indexOf(e.tagName.toUpperCase())&&!e.getAttribute($w)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function hT(e){if(!!uo)return new Promise(function(t,r){var n=$f(e.querySelectorAll("*")).filter(lz).map(uz),i=iS.begin("searchPseudoElements");tP(),Promise.all(n).then(function(){i(),Vw(),t()}).catch(function(){i(),Vw(),r()})})}var sz={hooks:function(){return{mutationObserverCallbacks:function(r){return r.pseudoElementsCallback=hT,r}}},provides:function(t){t.pseudoElements2svg=function(r){var n=r.node,i=n===void 0?Dr:n;Ut.searchPseudoElements&&hT(i)}}},dT=!1,fz={mixout:function(){return{dom:{unwatch:function(){tP(),dT=!0}}}},hooks:function(){return{bootstrap:function(){uT(Uw("mutationObserverCallbacks",{}))},noAuto:function(){VB()},watch:function(r){var n=r.observeMutationsRoot;dT?Vw():uT(Uw("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}},pT=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)},cz={mixout:function(){return{parse:{transform:function(r){return pT(r)}}}},hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-transform");return i&&(r.transform=pT(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)}]}]}}}},sx={x:0,y:0,width:"100%",height:"100%"};function vT(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 hz(e){return e.tag==="g"?e.children:[e]}var dz={hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-mask"),a=i?gg(i.split(" ").map(function(o){return o.trim()})):rS();return a.prefix||(a.prefix=lu()),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=cB({transform:s,containerWidth:y,iconWidth:c}),E={tag:"rect",attributes:Nt(Nt({},sx),{},{fill:"white"})},M=d.children?{children:d.children.map(vT)}:{},b={tag:"g",attributes:Nt({},m.inner),children:[vT(Nt({tag:d.tag,attributes:Nt(Nt({},d.attributes),m.path)},M))]},w={tag:"g",attributes:Nt({},m.outer),children:[b]},_="mask-".concat(l||Sd()),C="clip-".concat(l||Sd()),T={tag:"mask",attributes:Nt(Nt({},sx),{},{id:_,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[E,w]},R={tag:"defs",children:[{tag:"clipPath",attributes:{id:C},children:hz(g)},T]};return n.push(R,{tag:"rect",attributes:Nt({fill:"currentColor","clip-path":"url(#".concat(C,")"),mask:"url(#".concat(_,")")},sx)}),{children:n,attributes:i}}}},pz={provides:function(t){var r=!1;uu.matchMedia&&(r=uu.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}}}},vz={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}}}},mz=[pB,tz,rz,nz,iz,sz,fz,cz,dz,pz,vz];kB(mz,{mixoutsTo:vi});vi.noAuto;vi.config;vi.library;vi.dom;var qw=vi.parse;vi.findIconDefinition;vi.toHtml;var gz=vi.icon;vi.layer;vi.text;vi.counter;function mT(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 Wo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mT(Object(r),!0).forEach(function(n){Vs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xm(e){return xm=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},xm(e)}function Vs(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yz(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 xz(e,t){if(e==null)return{};var r=yz(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 Yw(e){return bz(e)||wz(e)||_z(e)||Sz()}function bz(e){if(Array.isArray(e))return Xw(e)}function wz(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _z(e,t){if(!!e){if(typeof e=="string")return Xw(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 Xw(e,t)}}function Xw(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 Sz(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
827
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ez(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"},Vs(t,"fa-".concat(w),typeof w<"u"&&w!==null),Vs(t,"fa-rotate-".concat(_),typeof _<"u"&&_!==null&&_!==0),Vs(t,"fa-pull-".concat(C),typeof C<"u"&&C!==null),Vs(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 Az(e){return e=e-0,e===e}function nP(e){return Az(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,r){return r?r.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var Tz=["style"];function Cz(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Oz(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,r){var n=r.indexOf(":"),i=nP(r.slice(0,n)),a=r.slice(n+1).trim();return i.startsWith("webkit")?t[Cz(i)]=a:t[i]=a,t},{})}function iP(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 iP(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=Oz(d);break;default:c.indexOf("aria-")===0||c.indexOf("data-")===0?s.attrs[c.toLowerCase()]=d:s.attrs[nP(c)]=d}return s},{attrs:{}}),a=r.style,o=a===void 0?{}:a,l=xz(r,Tz);return i.attrs.style=Wo(Wo({},i.attrs.style),o),e.apply(void 0,[t.tag,Wo(Wo({},i.attrs),l)].concat(Yw(n)))}var aP=!1;try{aP=!0}catch{}function kz(){if(!aP&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function gT(e){if(e&&xm(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(qw.icon)return qw.icon(e);if(e===null)return null;if(e&&xm(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 fx(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Vs({},e,t):{}}var xg=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=gT(r),d=fx("classes",[].concat(Yw(Ez(e)),Yw(a.split(" ")))),y=fx("transform",typeof e.transform=="string"?qw.transform(e.transform):e.transform),g=fx("mask",gT(n)),m=gz(c,Wo(Wo(Wo(Wo({},d),y),g),{},{symbol:i,title:o,titleId:l,maskId:s}));if(!m)return kz("Could not find icon",c),null;var E=m.abstract,M={ref:t};return Object.keys(e).forEach(function(b){xg.defaultProps.hasOwnProperty(b)||(M[b]=e[b])}),Mz(E[0],M)});xg.displayName="FontAwesomeIcon";xg.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};xg.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 Mz=iP.bind(null,xn.createElement),oP={exports:{}},uP={exports:{}},R0=1;function Iz(){return R0=(R0*9301+49297)%233280,R0/233280}function Pz(e){R0=e}var Fz={nextValue:Iz,seed:Pz},Qw=Fz,el="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-",Ho,yT,Rh;function Zw(){Rh=!1}function lP(e){if(!e){Ho!==el&&(Ho=el,Zw());return}if(e!==Ho){if(e.length!==el.length)throw new Error("Custom alphabet for shortid must be "+el.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 "+el.length+" unique characters. These characters were not unique: "+t.join(", "));Ho=e,Zw()}}function Rz(e){return lP(e),Ho}function Nz(e){Qw.seed(e),yT!==e&&(Zw(),yT=e)}function Lz(){Ho||lP(el);for(var e=Ho.split(""),t=[],r=Qw.nextValue(),n;e.length>0;)r=Qw.nextValue(),n=Math.floor(r*e.length),t.push(e.splice(n,1)[0]);return t.join("")}function sP(){return Rh||(Rh=Lz(),Rh)}function Dz(e){var t=sP();return t[e]}function $z(){return Ho||el}var oS={get:$z,characters:Rz,seed:Nz,lookup:Dz,shuffled:sP},cx=typeof window=="object"&&(window.crypto||window.msCrypto),Kw;!cx||!cx.getRandomValues?Kw=function(e){for(var t=[],r=0;r<e;r++)t.push(Math.floor(Math.random()*256));return t}:Kw=function(e){return cx.getRandomValues(new Uint8Array(e))};var Bz=Kw,zz=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},Uz=oS,jz=Bz,Gz=zz;function Wz(e){for(var t=0,r,n="";!r;)n=n+Gz(jz,Uz.get(),1),r=e<Math.pow(16,t+1),t++;return n}var Hz=Wz,Qv=Hz,Vz=1567752802062,qz=7,Zv,xT;function Yz(e){var t="",r=Math.floor((Date.now()-Vz)*.001);return r===xT?Zv++:(Zv=0,xT=r),t=t+Qv(qz),t=t+Qv(e),Zv>0&&(t=t+Qv(Zv)),t=t+Qv(r),t}var Xz=Yz,Qz=oS;function Zz(e){if(!e||typeof e!="string"||e.length<6)return!1;var t=new RegExp("[^"+Qz.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]");return!t.test(e)}var Kz=Zz;(function(e){var t=oS,r=Xz,n=Kz,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})(uP);(function(e){e.exports=uP.exports})(oP);const Xte=N_(oP.exports);var Jz=xn.createContext(null);function e7(e){e()}var fP=e7,t7=function(t){return fP=t},r7=function(){return fP};function n7(){var e=r7(),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 bT={notify:function(){},get:function(){return[]}};function i7(e,t){var r,n=bT;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=n7())}function c(){r&&(r(),r=void 0,n.clear(),n=bT)}var d={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:l,trySubscribe:s,tryUnsubscribe:c,getListeners:function(){return n}};return d}var a7=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?Kt.exports.useLayoutEffect:Kt.exports.useEffect,cP={exports:{}},_r={};/** @license React v16.13.1
828
+ * react-is.production.min.js
829
+ *
830
+ * Copyright (c) Facebook, Inc. and its affiliates.
831
+ *
832
+ * This source code is licensed under the MIT license found in the
833
+ * LICENSE file in the root directory of this source tree.
834
+ */var wn=typeof Symbol=="function"&&Symbol.for,uS=wn?Symbol.for("react.element"):60103,lS=wn?Symbol.for("react.portal"):60106,bg=wn?Symbol.for("react.fragment"):60107,wg=wn?Symbol.for("react.strict_mode"):60108,_g=wn?Symbol.for("react.profiler"):60114,Sg=wn?Symbol.for("react.provider"):60109,Eg=wn?Symbol.for("react.context"):60110,sS=wn?Symbol.for("react.async_mode"):60111,Ag=wn?Symbol.for("react.concurrent_mode"):60111,Tg=wn?Symbol.for("react.forward_ref"):60112,Cg=wn?Symbol.for("react.suspense"):60113,o7=wn?Symbol.for("react.suspense_list"):60120,Og=wn?Symbol.for("react.memo"):60115,kg=wn?Symbol.for("react.lazy"):60116,u7=wn?Symbol.for("react.block"):60121,l7=wn?Symbol.for("react.fundamental"):60117,s7=wn?Symbol.for("react.responder"):60118,f7=wn?Symbol.for("react.scope"):60119;function mi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case uS:switch(e=e.type,e){case sS:case Ag:case bg:case _g:case wg:case Cg:return e;default:switch(e=e&&e.$$typeof,e){case Eg:case Tg:case kg:case Og:case Sg:return e;default:return t}}case lS:return t}}}function hP(e){return mi(e)===Ag}_r.AsyncMode=sS;_r.ConcurrentMode=Ag;_r.ContextConsumer=Eg;_r.ContextProvider=Sg;_r.Element=uS;_r.ForwardRef=Tg;_r.Fragment=bg;_r.Lazy=kg;_r.Memo=Og;_r.Portal=lS;_r.Profiler=_g;_r.StrictMode=wg;_r.Suspense=Cg;_r.isAsyncMode=function(e){return hP(e)||mi(e)===sS};_r.isConcurrentMode=hP;_r.isContextConsumer=function(e){return mi(e)===Eg};_r.isContextProvider=function(e){return mi(e)===Sg};_r.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===uS};_r.isForwardRef=function(e){return mi(e)===Tg};_r.isFragment=function(e){return mi(e)===bg};_r.isLazy=function(e){return mi(e)===kg};_r.isMemo=function(e){return mi(e)===Og};_r.isPortal=function(e){return mi(e)===lS};_r.isProfiler=function(e){return mi(e)===_g};_r.isStrictMode=function(e){return mi(e)===wg};_r.isSuspense=function(e){return mi(e)===Cg};_r.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===bg||e===Ag||e===_g||e===wg||e===Cg||e===o7||typeof e=="object"&&e!==null&&(e.$$typeof===kg||e.$$typeof===Og||e.$$typeof===Sg||e.$$typeof===Eg||e.$$typeof===Tg||e.$$typeof===l7||e.$$typeof===s7||e.$$typeof===f7||e.$$typeof===u7)};_r.typeOf=mi;(function(e){e.exports=_r})(cP);var fS=cP.exports,c7={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},h7={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},d7={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},dP={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},cS={};cS[fS.ForwardRef]=d7;cS[fS.Memo]=dP;function wT(e){return fS.isMemo(e)?dP:cS[e.$$typeof]||c7}var p7=Object.defineProperty,v7=Object.getOwnPropertyNames,_T=Object.getOwnPropertySymbols,m7=Object.getOwnPropertyDescriptor,g7=Object.getPrototypeOf,ST=Object.prototype;function pP(e,t,r){if(typeof t!="string"){if(ST){var n=g7(t);n&&n!==ST&&pP(e,n,r)}var i=v7(t);_T&&(i=i.concat(_T(t)));for(var a=wT(e),o=wT(t),l=0;l<i.length;++l){var s=i[l];if(!h7[s]&&!(r&&r[s])&&!(o&&o[s])&&!(a&&a[s])){var c=m7(t,s);try{p7(e,s,c)}catch{}}}}return e}var ET=pP,vP={exports:{}},Or={};/** @license React v17.0.2
835
+ * react-is.production.min.js
836
+ *
837
+ * Copyright (c) Facebook, Inc. and its affiliates.
838
+ *
839
+ * This source code is licensed under the MIT license found in the
840
+ * LICENSE file in the root directory of this source tree.
841
+ */var Mg=60103,Ig=60106,Xd=60107,Qd=60108,Zd=60114,Kd=60109,Jd=60110,ep=60112,tp=60113,hS=60120,rp=60115,np=60116,mP=60121,gP=60122,yP=60117,xP=60129,bP=60131;if(typeof Symbol=="function"&&Symbol.for){var An=Symbol.for;Mg=An("react.element"),Ig=An("react.portal"),Xd=An("react.fragment"),Qd=An("react.strict_mode"),Zd=An("react.profiler"),Kd=An("react.provider"),Jd=An("react.context"),ep=An("react.forward_ref"),tp=An("react.suspense"),hS=An("react.suspense_list"),rp=An("react.memo"),np=An("react.lazy"),mP=An("react.block"),gP=An("react.server.block"),yP=An("react.fundamental"),xP=An("react.debug_trace_mode"),bP=An("react.legacy_hidden")}function Zi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Mg:switch(e=e.type,e){case Xd:case Zd:case Qd:case tp:case hS:return e;default:switch(e=e&&e.$$typeof,e){case Jd:case ep:case np:case rp:case Kd:return e;default:return t}}case Ig:return t}}}var y7=Kd,x7=Mg,b7=ep,w7=Xd,_7=np,S7=rp,E7=Ig,A7=Zd,T7=Qd,C7=tp;Or.ContextConsumer=Jd;Or.ContextProvider=y7;Or.Element=x7;Or.ForwardRef=b7;Or.Fragment=w7;Or.Lazy=_7;Or.Memo=S7;Or.Portal=E7;Or.Profiler=A7;Or.StrictMode=T7;Or.Suspense=C7;Or.isAsyncMode=function(){return!1};Or.isConcurrentMode=function(){return!1};Or.isContextConsumer=function(e){return Zi(e)===Jd};Or.isContextProvider=function(e){return Zi(e)===Kd};Or.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Mg};Or.isForwardRef=function(e){return Zi(e)===ep};Or.isFragment=function(e){return Zi(e)===Xd};Or.isLazy=function(e){return Zi(e)===np};Or.isMemo=function(e){return Zi(e)===rp};Or.isPortal=function(e){return Zi(e)===Ig};Or.isProfiler=function(e){return Zi(e)===Zd};Or.isStrictMode=function(e){return Zi(e)===Qd};Or.isSuspense=function(e){return Zi(e)===tp};Or.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Xd||e===Zd||e===xP||e===Qd||e===tp||e===hS||e===bP||typeof e=="object"&&e!==null&&(e.$$typeof===np||e.$$typeof===rp||e.$$typeof===Kd||e.$$typeof===Jd||e.$$typeof===ep||e.$$typeof===yP||e.$$typeof===mP||e[0]===gP)};Or.typeOf=Zi;(function(e){e.exports=Or})(vP);var O7=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],k7=["reactReduxForwardedRef"],M7=[],I7=[null,null];function P7(e,t){var r=e[1];return[t.payload,r+1]}function AT(e,t,r){a7(function(){return e.apply(void 0,t)},r)}function F7(e,t,r,n,i,a,o){e.current=n,t.current=i,r.current=!1,a.current&&(a.current=null,o())}function R7(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 N7=function(){return[null,0]};function L7(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?Jz:M,w=mf(r,O7),_=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=mf(Le,k7);return[Le.context,fe,Fe]},[Le]),nt=ut[0],De=ut[1],We=ut[2],_t=Kt.exports.useMemo(function(){return nt&&nt.Consumer&&vP.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 I7;var fe=i7(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(P7,M7,N7),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]);AT(F7,[W,Ce,I,We,A,ae,yt]),AT(R7,[d,Ve,ct,st,W,Ce,I,ae,yt,jt],[Ve,ct,st]);var k=Kt.exports.useMemo(function(){return ga(T,{...A,ref:De})},[De,T,A]),$=Kt.exports.useMemo(function(){return d?ga(_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 ga(ke,{...ut,reactReduxForwardedRef:nt})});return Re.displayName=D,Re.WrappedComponent=T,ET(Re,T)}return ET(ke,T)}}function TT(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function hx(e,t){if(TT(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])||!TT(e[r[i]],t[r[i]]))return!1;return!0}function D7(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 dS(e){return function(r,n){var i=e(r,n);function a(){return i}return a.dependsOnOwnProps=!1,a}}function CT(e){return e.dependsOnOwnProps!==null&&e.dependsOnOwnProps!==void 0?Boolean(e.dependsOnOwnProps):e.length!==1}function wP(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=CT(e);var c=a(l,s);return typeof c=="function"&&(a.mapToProps=c,a.dependsOnOwnProps=CT(c),c=a(l,s)),c},a}}function $7(e){return typeof e=="function"?wP(e):void 0}function B7(e){return e?void 0:dS(function(t){return{dispatch:t}})}function z7(e){return e&&typeof e=="object"?dS(function(t){return D7(e,t)}):void 0}const U7=[$7,B7,z7];function j7(e){return typeof e=="function"?wP(e):void 0}function G7(e){return e?void 0:dS(function(){return{}})}const W7=[j7,G7];function H7(e,t,r){return ba({},r,e,t)}function V7(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 q7(e){return typeof e=="function"?V7(e):void 0}function Y7(e){return e?void 0:function(){return H7}}const X7=[q7,Y7];var Q7=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function Z7(e,t,r,n){return function(a,o){return r(e(a,o),t(n,o),o)}}function K7(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 J7(e,t){var r=t.initMapStateToProps,n=t.initMapDispatchToProps,i=t.initMergeProps,a=mf(t,Q7),o=r(e,a),l=n(e,a),s=i(e,a),c=a.pure?K7:Z7;return c(o,l,s,e,a)}var e9=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function dx(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 t9(e,t){return e===t}function r9(e){var t=e===void 0?{}:e,r=t.connectHOC,n=r===void 0?L7:r,i=t.mapStateToPropsFactories,a=i===void 0?W7:i,o=t.mapDispatchToPropsFactories,l=o===void 0?U7:o,s=t.mergePropsFactories,c=s===void 0?X7:s,d=t.selectorFactory,y=d===void 0?J7: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?t9:T,D=w.areOwnPropsEqual,Y=D===void 0?hx:D,j=w.areStatePropsEqual,re=j===void 0?hx:j,Se=w.areMergedPropsEqual,me=Se===void 0?hx:Se,ke=mf(w,e9),Re=dx(m,a,"mapStateToProps"),Le=dx(E,l,"mapDispatchToProps"),ut=dx(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 _P=r9();t7(U_.exports.unstable_batchedUpdates);function n9(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 SP(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&&n9(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 i9(e,t){return SP(function(){return e},t)}var Gn=SP,mn=i9,a9=!0,px="Invariant failed";function o9(e,t){if(!e){if(a9)throw new Error(px);var r=typeof t=="function"?t():t,n=r?px+": "+r:px;throw new Error(n)}}var qs=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},EP=function(t,r){return{top:t.top-r.top,left:t.left-r.left,bottom:t.bottom+r.bottom,right:t.right+r.right}},OT=function(t,r){return{top:t.top+r.top,left:t.left+r.left,bottom:t.bottom-r.bottom,right:t.right-r.right}},u9=function(t,r){return{top:t.top+r.y,left:t.left+r.x,bottom:t.bottom+r.y,right:t.right+r.x}},vx={top:0,right:0,bottom:0,left:0},pS=function(t){var r=t.borderBox,n=t.margin,i=n===void 0?vx:n,a=t.border,o=a===void 0?vx:a,l=t.padding,s=l===void 0?vx:l,c=qs(EP(r,i)),d=qs(OT(r,o)),y=qs(OT(d,s));return{marginBox:c,borderBox:qs(r),paddingBox:d,contentBox:y,margin:i,border:o,padding:s}},_i=function(t){var r=t.slice(0,-2),n=t.slice(-2);if(n!=="px")return 0;var i=Number(r);return isNaN(i)&&o9(!1),i},l9=function(){return{x:window.pageXOffset,y:window.pageYOffset}},s9=function(t,r){var n=t.borderBox,i=t.border,a=t.margin,o=t.padding,l=u9(n,r);return pS({borderBox:l,border:i,margin:a,padding:o})},Jw=function(t,r){return r===void 0&&(r=l9()),s9(t,r)},AP=function(t,r){var n={top:_i(r.marginTop),right:_i(r.marginRight),bottom:_i(r.marginBottom),left:_i(r.marginLeft)},i={top:_i(r.paddingTop),right:_i(r.paddingRight),bottom:_i(r.paddingBottom),left:_i(r.paddingLeft)},a={top:_i(r.borderTopWidth),right:_i(r.borderRightWidth),bottom:_i(r.borderBottomWidth),left:_i(r.borderLeftWidth)};return pS({borderBox:t,margin:n,padding:i,border:a})},TP=function(t){var r=t.getBoundingClientRect(),n=window.getComputedStyle(t);return AP(r,n)},kT=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function f9(e,t){return!!(e===t||kT(e)&&kT(t))}function c9(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!f9(e[r],t[r]))return!1;return!0}function en(e,t){t===void 0&&(t=c9);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 h9=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 d9=h9;function CP(e,t){}CP.bind(null,"warn");CP.bind(null,"error");function p9(){}function v9(e,t){return ba({},e,{},t)}function m9(e,t,r){var n=t.map(function(i){var a=v9(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 g9="Invariant failed";function bm(e){this.message=e}bm.prototype.toString=function(){return this.message};function hi(e,t){if(!e)throw new bm(g9)}(function(e){Ud(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=p9,n.onWindowError=function(l){var s=n.getCallbacks();s.isDragging()&&s.tryAbort();var c=l.error;c instanceof bm&&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=m9(window,[{eventName:"error",fn:this.onWindowError}])},r.componentDidCatch=function(i){if(i instanceof bm){this.setState({});return}throw i},r.componentWillUnmount=function(){this.unbind()},r.render=function(){return this.props.children(this.setCallbacks)},t})(xn.Component);var yl={x:0,y:0},y9=function(t,r){return{x:t.x-r.x,y:t.y-r.y}},x9=function(t,r){return t.x===r.x&&t.y===r.y},b9=function(t){return{x:t.x!==0?-t.x:0,y:t.y!==0?-t.y:0}},w9=function(t,r,n){var i;return n===void 0&&(n=0),i={},i[t]=r,i[t==="x"?"y":"x"]=n,i},_9=function(e,t){var r=qs({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},S9=function(t,r){return{top:t.top+r.y,left:t.left+r.x,bottom:t.bottom+r.y,right:t.right+r.x}},E9={top:0,right:0,bottom:0,left:0},A9=function(t,r){return r?S9(t,r.scroll.diff.displacement):t},T9=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},C9=function(t,r){return r&&r.shouldClipSubject?_9(r.pageMarginBox,t):qs(t)},O9=function(e){var t=e.page,r=e.withPlaceholder,n=e.axis,i=e.frame,a=A9(t.marginBox,i),o=T9(a,n,r),l=C9(o,i);return{page:t,withPlaceholder:r,active:l}};function OP(e){return Object.values?Object.values(e):Object.keys(e).map(function(t){return e[t]})}function k9(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 kP(e,t){if(e.find)return e.find(t);var r=k9(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 M9=en(function(e){return OP(e)}),I9=en(function(e){return OP(e)});en(function(e,t){var r=I9(t).filter(function(n){return e===n.descriptor.droppableId}).sort(function(n,i){return n.descriptor.index-i.descriptor.index});return r});function P9(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 F9={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},R9={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:w9(t.line,n)}});var N0=function(e){var t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null},N9=function(t){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:t}},L9=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}},vS={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Ed={opacity:{drop:0,combining:.7},scale:{drop:.75}},D9={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Yu=D9.outOfTheWay+"s "+vS.outOfTheWay,L0={fluid:"opacity "+Yu,snap:"transform "+Yu+", opacity "+Yu,drop:function(t){var r=t+"s "+vS.drop;return"transform "+r+", opacity "+r},outOfTheWay:"transform "+Yu,placeholder:"height "+Yu+", width "+Yu+", margin "+Yu},MT=function(t){return x9(t,yl)?null:"translate("+t.x+"px, "+t.y+"px)"},e_={moveTo:MT,drop:function(t,r){var n=MT(t);return n?r?n+" scale("+Ed.scale.drop+")":n:null}},MP=function(e){var t=e.scrollHeight,r=e.scrollWidth,n=e.height,i=e.width,a=y9({x:r,y:t},{x:i,y:n}),o={x:Math.max(0,a.x),y:Math.max(0,a.y)};return o},$9=function(){var e=document.documentElement;return e||hi(!1),e},B9=function(){var e=$9(),t=MP({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight});return t};en(function(e){return M9(e).filter(function(t){return!(!t.isEnabled||!t.frame)})});var z9="data-rbd",IT={contextId:z9+"-scroll-container-context-id"},Kh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?Kt.exports.useLayoutEffect:Kt.exports.useEffect,IP=xn.createContext(null),U9=0,j9={separator:"::"};function PP(e,t){return t===void 0&&(t=j9),Gn(function(){return""+e+t.separator+U9++},[t.separator,e])}var mS=xn.createContext(null);function G9(e){var t=Kt.exports.useRef(e);return Kt.exports.useEffect(function(){t.current=e}),t}var W9=9,H9=13,V9=33,q9=34,Y9=35,X9=36,Kv;Kv={},Kv[H9]=!0,Kv[W9]=!0;(function(){var e="visibilitychange";if(typeof document>"u")return e;var t=[e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],r=kP(t,function(n){return"on"+n in document});return r||e})();var Ts;Ts={},Ts[q9]=!0,Ts[V9]=!0,Ts[X9]=!0,Ts[Y9]=!0;(function(){var e="matches";if(typeof document>"u")return e;var t=[e,"msMatchesSelector","webkitMatchesSelector"],r=kP(t,function(n){return n in Element.prototype});return r||e})();var FP=function(t){return function(r){return t===r}},Q9=FP("scroll"),Z9=FP("auto"),PT=function(t,r){return r(t.overflowX)||r(t.overflowY)},K9=function(t){var r=window.getComputedStyle(t),n={overflowX:r.overflowX,overflowY:r.overflowY};return PT(n,Q9)||PT(n,Z9)},J9=function(){return!1},eU=function e(t){return t==null?null:t===document.body?J9()?t:null:t===document.documentElement?null:K9(t)?t:e(t.parentElement)},t_=function(e){return{x:e.scrollLeft,y:e.scrollTop}},tU=function e(t){if(!t)return!1;var r=window.getComputedStyle(t);return r.position==="fixed"?!0:e(t.parentElement)},rU=function(e){var t=eU(e),r=tU(e);return{closestScrollable:t,isFixedOnPage:r}},nU=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=MP({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:yl,displacement:yl}}}}(),d=a==="vertical"?F9:R9,y=O9({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},iU=function(t,r){var n=TP(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=EP(s,n.border),d=pS({borderBox:c,margin:n.margin,border:n.border,padding:n.padding});return d},aU=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=iU(t,c),y=Jw(d,i),g=function(){if(!c)return null;var E=TP(c),M={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:E,page:Jw(E,i),scroll:t_(c),scrollSize:M,shouldClipSubject:s}}(),m=nU({descriptor:r,isEnabled:!o,isCombineEnabled:l,isFixedOnPage:n.isFixedOnPage,direction:a,client:d,page:y,closest:g});return m},oU={passive:!1},uU={passive:!0},FT=function(e){return e.shouldPublishImmediately?oU:uU};function wm(e){var t=Kt.exports.useContext(e);return t||hi(!1),t}var Jv=function(t){return t&&t.env.closestScrollable||null};function lU(e){var t=Kt.exports.useRef(null),r=wm(mS),n=PP("droppable"),i=r.registry,a=r.marshal,o=G9(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?yl:t_(T.env.closestScrollable)},[]),y=mn(function(){var T=d();c(T.x,T.y)},[d,c]),g=Gn(function(){return d9(y)},[y]),m=mn(function(){var T=t.current,R=Jv(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=rU(Y),re={ref:Y,descriptor:l,env:j,scrollOptions:R};t.current=re;var Se=aU({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(IT.contextId,r.contextId),me.addEventListener("scroll",m,FT(re.scrollOptions))),Se},[r.contextId,l,m,o]),M=mn(function(){var T=t.current,R=Jv(T);return T&&R||hi(!1),t_(R)},[]),b=mn(function(){var T=t.current;T||hi(!1);var R=Jv(T);t.current=null,R&&(g.cancel(),R.removeAttribute(IT.contextId),R.removeEventListener("scroll",m,FT(T.scrollOptions)))},[m,g]),w=mn(function(T){var R=t.current;R||hi(!1);var D=Jv(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]);Kh(function(){return s.current=C.descriptor,i.droppable.register(C),function(){t.current&&b(),i.droppable.unregister(C)}},[_,l,b,C,a,i.droppable]),Kh(function(){!t.current||a.updateDroppableIsEnabled(s.current.id,!e.isDropDisabled)},[e.isDropDisabled,a]),Kh(function(){!t.current||a.updateDroppableIsCombineEnabled(s.current.id,e.isCombineEnabled)},[e.isCombineEnabled,a])}function mx(){}var RT={width:0,height:0,margin:E9},sU=function(t){var r=t.isAnimatingOpenOnMount,n=t.placeholder,i=t.animate;return r||i==="close"?RT:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}},fU=function(t){var r=t.isAnimatingOpenOnMount,n=t.placeholder,i=t.animate,a=sU({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"?L0.placeholder:null}};function cU(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),mx):t.current?mx:(t.current=setTimeout(function(){t.current=null,c(!1)}),r):mx},[n,s,r]);var d=mn(function(g){g.propertyName==="height"&&(i(),n==="close"&&a())},[n,a,i]),y=fU({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 hU=xn.memo(cU),gS=xn.createContext(null),dU=function(e){Ud(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),NT={dragging:5e3,dropAnimating:4500},pU=function(t,r){return r?L0.drop(r.duration):t?L0.snap:L0.fluid},vU=function(t,r){return t?r?Ed.opacity.drop:Ed.opacity.combining:null},mU=function(t){return t.forceShouldAnimate!=null?t.forceShouldAnimate:t.mode==="SNAP"};function gU(e){var t=e.dimension,r=t.client,n=e.offset,i=e.combineWith,a=e.dropping,o=Boolean(i),l=mU(e),s=Boolean(a),c=s?e_.drop(n,o):e_.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:pU(l,a),transform:c,opacity:vU(o,s),zIndex:s?NT.dropAnimating:NT.dragging,pointerEvents:"none"};return d}function yU(e){return{transform:e_.moveTo(e.offset),transition:e.shouldAnimateDisplacement?null:"none"}}function xU(e){return e.type==="DRAGGING"?gU(e):yU(e)}function bU(e,t,r){r===void 0&&(r=yl);var n=window.getComputedStyle(t),i=t.getBoundingClientRect(),a=AP(i,n),o=Jw(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 wU(e){var t=PP("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),bU(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);Kh(function(){return n.draggable.register(y.current),function(){return n.draggable.unregister(y.current)}},[n.draggable]),Kh(function(){if(g.current){g.current=!1;return}var m=y.current;y.current=d,n.draggable.update(d,m)},[d,n.draggable])}function _U(e){e.preventDefault()}function SU(e){var t=Kt.exports.useRef(null),r=mn(function(re){t.current=re},[]),n=mn(function(){return t.current},[]),i=wm(mS),a=i.contextId,o=i.dragHandleUsageInstructionsId,l=i.registry,s=wm(gS),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]);wU(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:_U}:null},[a,o,m,E]),D=mn(function(re){_.type==="DRAGGING"&&(!_.dropping||re.propertyName==="transform"&&C())},[C,_]),Y=Gn(function(){var re=xU(_),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 RP=function(e,t){return e===t},NP=function(e){var t=e.combine,r=e.destination;return r?r.droppableId:t?t.droppableId:null},EU=function(t){return t.combine?t.combine.draggableId:null},AU=function(t){return t.at&&t.at.type==="COMBINE"?t.at.combine.draggableId:null};function TU(){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=N0(a.impact),d=AU(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=NP(M),_=EU(M),C=a.dropDuration,T={duration:C,curve:vS.drop,moveTo:a.newHomeClientOffset,opacity:_?Ed.opacity.drop:null,scale:_?Ed.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 LP(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var CU={mapped:{type:"SECONDARY",offset:yl,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:LP(null)}};function OU(){var e=en(function(o,l){return{x:o,y:l}}),t=en(LP),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(yl,l,!0):null},i=function(l,s,c,d){var y=c.displaced.visible[l],g=Boolean(d.inVirtualList&&d.effected[l]),m=P9(c),E=m&&m.draggableId===l?s:null;if(!y){if(!g)return n(E);if(c.displaced.invisible[l])return null;var M=b9(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 kU=function(){var t=TU(),r=OU(),n=function(a,o){return t(a,o)||r(a,o)||CU};return n},MU={dropAnimationFinished:L9},IU=_P(kU,MU,null,{context:IP,pure:!0,areStatePropsEqual:RP})(SU);function DP(e){var t=wm(gS),r=t.isUsingCloneFor;return r===e.draggableId&&!e.isClone?null:ga(IU,{...e})}function Qte(e){var t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,r=Boolean(e.disableInteractiveElementBlocking),n=Boolean(e.shouldRespectForcePress);return ga(DP,{...e,isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:n})}function PU(e){var t=Kt.exports.useContext(mS);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:B9()})},[n,b]);lU({droppableId:l,type:s,mode:c,direction:d,isDropDisabled:g,isCombineEnabled:m,ignoreContainerClipping:y,getDroppableRef:_});var D=ga(dU,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder,children:function(me){var ke=me.onClose,Re=me.data,Le=me.animate;return ga(hU,{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=ga(DP,{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 PD(gS.Provider,{value:re,children:[o(Y,E),Se()]})}var gx=function(t,r){return t===r.droppable.type},LT=function(t,r){return r.draggables[t.draggable.id]},FU=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(!gx(d,m))return r;var E=LT(m,l.dimensions),M=N0(l.impact)===c;return i(c,y,M,M,E,g)}if(l.phase==="DROP_ANIMATING"){var b=l.completed;if(!gx(d,b.critical))return r;var w=LT(b.critical,l.dimensions);return i(c,y,NP(b.result)===c,N0(b.impact)===c,w,g)}if(l.phase==="IDLE"&&l.completed&&!l.shouldFlush){var _=l.completed;if(!gx(d,_.critical))return r;var C=N0(_.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},RU={updateViewportMaxScroll:N9};function NU(){return document.body||hi(!1),document.body}var LU={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:NU},DU=_P(FU,RU,null,{context:IP,pure:!0,areStatePropsEqual:RP})(PU);DU.defaultProps=LU;var $U=typeof performance=="object"&&typeof performance.now=="function",DT=$U?function(){return performance.now()}:function(){return Date.now()};function $T(e){cancelAnimationFrame(e.id)}function BU(e,t){var r=DT();function n(){DT()-r>=t?e.call(null):i.id=requestAnimationFrame(n)}var i={id:requestAnimationFrame(n)};return i}var Cs=null;function BT(e){if(e===void 0&&(e=!1),Cs===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?Cs="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Cs="negative":Cs="positive-ascending"),document.body.removeChild(t),Cs}return Cs}var zU=150,UU=function(t,r){return t};function jU(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){Ud(m,g);function m(M){var b;return b=g.call(this,M)||this,b._instanceProps=c(b.props,zv(zv(b))),b._outerRef=void 0,b._resetIsScrollingTimeoutId=null,b.state={instance:zv(zv(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(BT()){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&&$T(b._resetIsScrollingTimeoutId),b._resetIsScrollingTimeoutId=BU(b._resetIsScrolling,zU)},b._resetIsScrolling=function(){b._resetIsScrollingTimeoutId=null,b.setState({isScrolling:!1},function(){b._getItemStyleCache(-1,null)})},b}m.getDerivedStateFromProps=function(b,w){return GU(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(BT()){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&&$T(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?UU: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 GU=function(t,r){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,r.instance},Zte=jU({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}}),WU=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},HU=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}}(),VU=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},qU=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)},zT=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},YU=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 r_=null,n_=null,UT=20,yx=ki.clearTimeout,jT=ki.setTimeout,xx=ki.cancelAnimationFrame||ki.mozCancelAnimationFrame||ki.webkitCancelAnimationFrame,GT=ki.requestAnimationFrame||ki.mozRequestAnimationFrame||ki.webkitRequestAnimationFrame;xx==null||GT==null?(r_=yx,n_=function(t){return jT(t,UT)}):(r_=function(t){var r=YU(t,2),n=r[0],i=r[1];xx(n),yx(i)},n_=function(t){var r=GT(function(){yx(n),t()}),n=jT(function(){xx(r),t()},UT);return[r,n]});function XU(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__&&r_(this.__resizeRAF__),this.__resizeRAF__=n_(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 QU=function(e){qU(t,e);function t(){var r,n,i,a;WU(this,t);for(var o=arguments.length,l=Array(o),s=0;s<o;s++)l[s]=arguments[s];return a=(n=(i=zT(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),zT(i,a)}return HU(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=XU(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:VU({},g,s)},!E&&i(m))}}]),t}(Kt.exports.PureComponent);QU.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};var ZU=typeof Ar=="object"&&Ar&&Ar.Object===Object&&Ar,KU=typeof self=="object"&&self&&self.Object===Object&&self,JU=ZU||KU||Function("return this")(),WT=JU.Symbol;WT&&WT.isConcatSpreadable;var HT=Object.prototype.toString,$P=function(t){var r=HT.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&HT.call(t.callee)==="[object Function]"),n},bx,VT;function ej(){if(VT)return bx;VT=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=$P,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 bx=e,bx}var tj=Array.prototype.slice,rj=$P,qT=Object.keys,D0=qT?function(t){return qT(t)}:ej(),YT=Object.keys;D0.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 rj(n)?YT(tj.call(n)):YT(n)})}else Object.keys=D0;return Object.keys||D0};var yS=D0,Pg=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},nj=Pg,vu=function(){return nj()&&!!Symbol.toStringTag},XT=typeof Symbol<"u"&&Symbol,ij=Pg,xS=function(){return typeof XT!="function"||typeof Symbol!="function"||typeof XT("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:ij()},aj="Function.prototype.bind called on incompatible ",wx=Array.prototype.slice,oj=Object.prototype.toString,uj="[object Function]",lj=function(t){var r=this;if(typeof r!="function"||oj.call(r)!==uj)throw new TypeError(aj+r);for(var n=wx.call(arguments,1),i,a=function(){if(this instanceof i){var d=r.apply(this,n.concat(wx.call(arguments)));return Object(d)===d?d:this}else return r.apply(t,n.concat(wx.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},sj=lj,bS=Function.prototype.bind||sj,fj=bS,cj=fj.call(Function.call,Object.prototype.hasOwnProperty),vr,wf=SyntaxError,BP=Function,uf=TypeError,_x=function(e){try{return BP('"use strict"; return ('+e+").constructor;")()}catch{}},fl=Object.getOwnPropertyDescriptor;if(fl)try{fl({},"")}catch{fl=null}var Sx=function(){throw new uf},hj=fl?function(){try{return arguments.callee,Sx}catch{try{return fl(arguments,"callee").get}catch{return Sx}}}():Sx,Os=xS(),Do=Object.getPrototypeOf||function(e){return e.__proto__},Ls={},dj=typeof Uint8Array>"u"?vr:Do(Uint8Array),lf={"%AggregateError%":typeof AggregateError>"u"?vr:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?vr:ArrayBuffer,"%ArrayIteratorPrototype%":Os?Do([][Symbol.iterator]()):vr,"%AsyncFromSyncIteratorPrototype%":vr,"%AsyncFunction%":Ls,"%AsyncGenerator%":Ls,"%AsyncGeneratorFunction%":Ls,"%AsyncIteratorPrototype%":Ls,"%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%":BP,"%GeneratorFunction%":Ls,"%Int8Array%":typeof Int8Array>"u"?vr:Int8Array,"%Int16Array%":typeof Int16Array>"u"?vr:Int16Array,"%Int32Array%":typeof Int32Array>"u"?vr:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Os?Do(Do([][Symbol.iterator]())):vr,"%JSON%":typeof JSON=="object"?JSON:vr,"%Map%":typeof Map>"u"?vr:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Os?vr:Do(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"||!Os?vr:Do(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?vr:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Os?Do(""[Symbol.iterator]()):vr,"%Symbol%":Os?Symbol:vr,"%SyntaxError%":wf,"%ThrowTypeError%":hj,"%TypedArray%":dj,"%TypeError%":uf,"%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},pj=function e(t){var r;if(t==="%AsyncFunction%")r=_x("async function () {}");else if(t==="%GeneratorFunction%")r=_x("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=_x("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&(r=Do(i.prototype))}return lf[t]=r,r},QT={"%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"]},ip=bS,_m=cj,vj=ip.call(Function.call,Array.prototype.concat),mj=ip.call(Function.apply,Array.prototype.splice),ZT=ip.call(Function.call,String.prototype.replace),Sm=ip.call(Function.call,String.prototype.slice),gj=ip.call(Function.call,RegExp.prototype.exec),yj=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,xj=/\\(\\)?/g,bj=function(t){var r=Sm(t,0,1),n=Sm(t,-1);if(r==="%"&&n!=="%")throw new wf("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new wf("invalid intrinsic syntax, expected opening `%`");var i=[];return ZT(t,yj,function(a,o,l,s){i[i.length]=l?ZT(s,xj,"$1"):o||a}),i},wj=function(t,r){var n=t,i;if(_m(QT,n)&&(i=QT[n],n="%"+i[0]+"%"),_m(lf,n)){var a=lf[n];if(a===Ls&&(a=pj(n)),typeof a>"u"&&!r)throw new uf("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new wf("intrinsic "+t+" does not exist!")},mu=function(t,r){if(typeof t!="string"||t.length===0)throw new uf("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new uf('"allowMissing" argument must be a boolean');if(gj(/^%?[^%]*%?$/,t)===null)throw new wf("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=bj(t),i=n.length>0?n[0]:"",a=wj("%"+i+"%",r),o=a.name,l=a.value,s=!1,c=a.alias;c&&(i=c[0],mj(n,vj([0,1],c)));for(var d=1,y=!0;d<n.length;d+=1){var g=n[d],m=Sm(g,0,1),E=Sm(g,-1);if((m==='"'||m==="'"||m==="`"||E==='"'||E==="'"||E==="`")&&m!==E)throw new wf("property names with quotes must have matching quotes");if((g==="constructor"||!y)&&(s=!0),i+="."+g,o="%"+i+"%",_m(lf,o))l=lf[o];else if(l!=null){if(!(g in l)){if(!r)throw new uf("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=_m(l,g),l=l[g];y&&!s&&(lf[o]=l)}}return l},ap={exports:{}};(function(e){var t=bS,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})(ap);var zP=mu,UP=ap.exports,_j=UP(zP("String.prototype.indexOf")),Sa=function(t,r){var n=zP(t,!!r);return typeof n=="function"&&_j(t,".prototype.")>-1?UP(n):n},Sj=vu(),Ej=Sa,i_=Ej("Object.prototype.toString"),Fg=function(t){return Sj&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:i_(t)==="[object Arguments]"},jP=function(t){return Fg(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&i_(t)!=="[object Array]"&&i_(t.callee)==="[object Function]"},Aj=function(){return Fg(arguments)}();Fg.isLegacyArguments=jP;var GP=Aj?Fg:jP,Tj=mu,a_=Tj("%Object.defineProperty%",!0),o_=function(){if(a_)try{return a_({},"a",{value:1}),!0}catch{return!1}return!1};o_.hasArrayLengthDefineBug=function(){if(!o_())return null;try{return a_([],"length",{value:1}).length!==1}catch{return!0}};var Cj=o_,Oj=yS,kj=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",Mj=Object.prototype.toString,Ij=Array.prototype.concat,WP=Object.defineProperty,Pj=function(e){return typeof e=="function"&&Mj.call(e)==="[object Function]"},Fj=Cj(),HP=WP&&Fj,Rj=function(e,t,r,n){t in e&&(!Pj(n)||!n())||(HP?WP(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},VP=function(e,t){var r=arguments.length>2?arguments[2]:{},n=Oj(t);kj&&(n=Ij.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i<n.length;i+=1)Rj(e,n[i],t[n[i]],r[n[i]])};VP.supportsDescriptors=!!HP;var Rl=VP,KT=function(e){return e!==e},qP=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||KT(t)&&KT(r))},Nj=qP,YP=function(){return typeof Object.is=="function"?Object.is:Nj},Lj=YP,Dj=Rl,$j=function(){var t=Lj();return Dj(Object,{is:t},{is:function(){return Object.is!==t}}),t},Bj=Rl,zj=ap.exports,Uj=qP,XP=YP,jj=$j,QP=zj(XP(),Object);Bj(QP,{getPolyfill:XP,implementation:Uj,shim:jj});var Gj=QP,u_=Sa,ZP=vu(),KP,JP,l_,s_;if(ZP){KP=u_("Object.prototype.hasOwnProperty"),JP=u_("RegExp.prototype.exec"),l_={};var Ex=function(){throw l_};s_={toString:Ex,valueOf:Ex},typeof Symbol.toPrimitive=="symbol"&&(s_[Symbol.toPrimitive]=Ex)}var Wj=u_("Object.prototype.toString"),Hj=Object.getOwnPropertyDescriptor,Vj="[object RegExp]",qj=ZP?function(t){if(!t||typeof t!="object")return!1;var r=Hj(t,"lastIndex"),n=r&&KP(r,"value");if(!n)return!1;try{JP(t,s_)}catch(i){return i===l_}}:function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:Wj(t)===Vj},wS={exports:{}},Ad=function(){return typeof function(){}.name=="string"},Jh=Object.getOwnPropertyDescriptor;if(Jh)try{Jh([],"length")}catch{Jh=null}Ad.functionsHaveConfigurableNames=function(){if(!Ad()||!Jh)return!1;var t=Jh(function(){},"name");return!!t&&!!t.configurable};var Yj=Function.prototype.bind;Ad.boundFunctionsHaveNames=function(){return Ad()&&typeof Yj=="function"&&function(){}.bind().name!==""};var Xj=Ad;(function(e){var t=Xj.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"})})(wS);var Qj=wS.exports,Zj=Rl.supportsDescriptors,Kj=Object.getOwnPropertyDescriptor,eF=function(){if(Zj&&/a/mig.flags==="gim"){var t=Kj(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 Qj},Jj=Rl.supportsDescriptors,eG=eF,tG=Object.getOwnPropertyDescriptor,rG=Object.defineProperty,nG=TypeError,JT=Object.getPrototypeOf,iG=/a/,aG=function(){if(!Jj||!JT)throw new nG("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=eG(),r=JT(iG),n=tG(r,"flags");return(!n||n.get!==t)&&rG(r,"flags",{configurable:!0,enumerable:!1,get:t}),t},oG=Rl,uG=ap.exports,lG=wS.exports,tF=eF,sG=aG,rF=uG(tF());oG(rF,{getPolyfill:tF,implementation:lG,shim:sG});var fG=rF,cG={}.toString,nF=Array.isArray||function(e){return cG.call(e)=="[object Array]"},hG=Date.prototype.getDay,dG=function(t){try{return hG.call(t),!0}catch{return!1}},pG=Object.prototype.toString,vG="[object Date]",mG=vu(),gG=function(t){return typeof t!="object"||t===null?!1:mG?dG(t):pG.call(t)===vG},yG=String.prototype.valueOf,xG=function(t){try{return yG.call(t),!0}catch{return!1}},bG=Object.prototype.toString,wG="[object String]",_G=vu(),iF=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:_G?xG(t):bG.call(t)===wG},SG=Number.prototype.toString,EG=function(t){try{return SG.call(t),!0}catch{return!1}},AG=Object.prototype.toString,TG="[object Number]",CG=vu(),OG=function(t){return typeof t=="number"?!0:typeof t!="object"?!1:CG?EG(t):AG.call(t)===TG},aF=Sa,kG=aF("Boolean.prototype.toString"),MG=aF("Object.prototype.toString"),IG=function(t){try{return kG(t),!0}catch{return!1}},PG="[object Boolean]",FG=vu(),RG=function(t){return typeof t=="boolean"?!0:t===null||typeof t!="object"?!1:FG&&Symbol.toStringTag in t?IG(t):MG(t)===PG},f_={exports:{}},NG=Object.prototype.toString,LG=xS();if(LG){var DG=Symbol.prototype.toString,$G=/^Symbol\(.*\)$/,BG=function(t){return typeof t.valueOf()!="symbol"?!1:$G.test(DG.call(t))};f_.exports=function(t){if(typeof t=="symbol")return!0;if(NG.call(t)!=="[object Symbol]")return!1;try{return BG(t)}catch{return!1}}}else f_.exports=function(t){return!1};var c_={exports:{}},eC=typeof BigInt<"u"&&BigInt,zG=function(){return typeof eC=="function"&&typeof BigInt=="function"&&typeof eC(42)=="bigint"&&typeof BigInt(42)=="bigint"},UG=zG();if(UG){var jG=BigInt.prototype.valueOf,GG=function(t){try{return jG.call(t),!0}catch{}return!1};c_.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:GG(t)}}else c_.exports=function(t){return!1};var WG=iF,HG=OG,VG=RG,qG=f_.exports,YG=c_.exports,XG=function(t){if(t==null||typeof t!="object"&&typeof t!="function")return null;if(WG(t))return"String";if(HG(t))return"Number";if(VG(t))return"Boolean";if(qG(t))return"Symbol";if(YG(t))return"BigInt"},_S=typeof Map=="function"&&Map.prototype?Map:null,QG=typeof Set=="function"&&Set.prototype?Set:null,Em;_S||(Em=function(t){return!1});var oF=_S?Map.prototype.has:null,tC=QG?Set.prototype.has:null;!Em&&!oF&&(Em=function(t){return!1});var uF=Em||function(t){if(!t||typeof t!="object")return!1;try{if(oF.call(t),tC)try{tC.call(t)}catch{return!0}return t instanceof _S}catch{}return!1},ZG=typeof Map=="function"&&Map.prototype?Map:null,SS=typeof Set=="function"&&Set.prototype?Set:null,Am;SS||(Am=function(t){return!1});var rC=ZG?Map.prototype.has:null,lF=SS?Set.prototype.has:null;!Am&&!lF&&(Am=function(t){return!1});var sF=Am||function(t){if(!t||typeof t!="object")return!1;try{if(lF.call(t),rC)try{rC.call(t)}catch{return!0}return t instanceof SS}catch{}return!1},Tm=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,nC=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,Cm;Tm||(Cm=function(t){return!1});var h_=Tm?Tm.prototype.has:null,Ax=nC?nC.prototype.has:null;!Cm&&!h_&&(Cm=function(t){return!1});var KG=Cm||function(t){if(!t||typeof t!="object")return!1;try{if(h_.call(t,h_),Ax)try{Ax.call(t,Ax)}catch{return!0}return t instanceof Tm}catch{}return!1},d_={exports:{}},JG=mu,fF=Sa,eW=JG("%WeakSet%",!0),Tx=fF("WeakSet.prototype.has",!0);if(Tx){var Cx=fF("WeakMap.prototype.has",!0);d_.exports=function(t){if(!t||typeof t!="object")return!1;try{if(Tx(t,Tx),Cx)try{Cx(t,Cx)}catch{return!0}return t instanceof eW}catch{}return!1}}else d_.exports=function(t){return!1};var tW=uF,rW=sF,nW=KG,iW=d_.exports,aW=function(t){if(t&&typeof t=="object"){if(tW(t))return"Map";if(rW(t))return"Set";if(nW(t))return"WeakMap";if(iW(t))return"WeakSet"}return!1},$0={exports:{}},iC=GP;if(xS()||Pg()){var Ox=Symbol.iterator;$0.exports=function(t){if(t!=null&&typeof t[Ox]<"u")return t[Ox]();if(iC(t))return Array.prototype[Ox].call(t)}}else{var oW=nF,uW=iF,aC=mu,lW=aC("%Map%",!0),sW=aC("%Set%",!0),Hi=Sa,oC=Hi("Array.prototype.push"),uC=Hi("String.prototype.charCodeAt"),fW=Hi("String.prototype.slice"),cW=function(t,r){var n=t.length;if(r+1>=n)return r+1;var i=uC(t,r);if(i<55296||i>56319)return r+1;var a=uC(t,r+1);return a<56320||a>57343?r+1:r+2},kx=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}}}},lC=function(t,r){if(oW(t)||iC(t))return kx(t);if(uW(t)){var n=0;return{next:function(){var a=cW(t,n),o=fW(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(!lW&&!sW)$0.exports=function(t){if(t!=null)return lC(t,!0)};else{var hW=uF,dW=sF,sC=Hi("Map.prototype.forEach",!0),fC=Hi("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var cC=Hi("Map.prototype.iterator",!0),hC=Hi("Set.prototype.iterator",!0),dC=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 pC=Hi("Map.prototype.@@iterator",!0)||Hi("Map.prototype._es6-shim iterator_",!0),vC=Hi("Set.prototype.@@iterator",!0)||Hi("Set.prototype._es6-shim iterator_",!0),pW=function(t){if(hW(t)){if(cC)return dC(cC(t));if(pC)return pC(t);if(sC){var r=[];return sC(t,function(i,a){oC(r,[a,i])}),kx(r)}}if(dW(t)){if(hC)return dC(hC(t));if(vC)return vC(t);if(fC){var n=[];return fC(t,function(i){oC(n,i)}),kx(n)}}};$0.exports=function(t){return pW(t)||lC(t)}}}const vW={},mW=Object.freeze(Object.defineProperty({__proto__:null,default:vW},Symbol.toStringTag,{value:"Module"})),gW=El(mW);var ES=typeof Map=="function"&&Map.prototype,Mx=Object.getOwnPropertyDescriptor&&ES?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Om=ES&&Mx&&typeof Mx.get=="function"?Mx.get:null,yW=ES&&Map.prototype.forEach,AS=typeof Set=="function"&&Set.prototype,Ix=Object.getOwnPropertyDescriptor&&AS?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,km=AS&&Ix&&typeof Ix.get=="function"?Ix.get:null,xW=AS&&Set.prototype.forEach,bW=typeof WeakMap=="function"&&WeakMap.prototype,ed=bW?WeakMap.prototype.has:null,wW=typeof WeakSet=="function"&&WeakSet.prototype,td=wW?WeakSet.prototype.has:null,_W=typeof WeakRef=="function"&&WeakRef.prototype,mC=_W?WeakRef.prototype.deref:null,SW=Boolean.prototype.valueOf,EW=Object.prototype.toString,AW=Function.prototype.toString,TW=String.prototype.match,TS=String.prototype.slice,Vo=String.prototype.replace,CW=String.prototype.toUpperCase,gC=String.prototype.toLowerCase,cF=RegExp.prototype.test,yC=Array.prototype.concat,ua=Array.prototype.join,OW=Array.prototype.slice,xC=Math.floor,p_=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Px=Object.getOwnPropertySymbols,v_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,_f=typeof Symbol=="function"&&typeof Symbol.iterator=="object",$n=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===_f?"object":"symbol")?Symbol.toStringTag:null,hF=Object.prototype.propertyIsEnumerable,bC=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function wC(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||cF.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-xC(-e):xC(e);if(n!==e){var i=String(n),a=TS.call(t,i.length+1);return Vo.call(i,r,"$&_")+"."+Vo.call(Vo.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Vo.call(t,r,"$&_")}var m_=gW,_C=m_.custom,SC=pF(_C)?_C:null,kW=function e(t,r,n,i){var a=r||{};if($o(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if($o(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=$o(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($o(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($o(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 mF(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var s=String(t);return l?wC(t,s):s}if(typeof t=="bigint"){var c=String(t)+"n";return l?wC(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 g_(t)?"[Array]":"[Object]";var y=qW(a,n);if(typeof i>"u")i=[];else if(vF(i,t)>=0)return"[Circular]";function g(Re,Le,ut){if(Le&&(i=OW.call(i),i.push(Le)),ut){var nt={depth:a.depth};return $o(a,"quoteStyle")&&(nt.quoteStyle=a.quoteStyle),e(Re,nt,n+1,i)}return e(Re,a,n+1,i)}if(typeof t=="function"&&!EC(t)){var m=$W(t),E=e0(t,g);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(E.length>0?" { "+ua.call(E,", ")+" }":"")}if(pF(t)){var M=_f?Vo.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):v_.call(t);return typeof t=="object"&&!_f?ch(M):M}if(WW(t)){for(var b="<"+gC.call(String(t.nodeName)),w=t.attributes||[],_=0;_<w.length;_++)b+=" "+w[_].name+"="+dF(MW(w[_].value),"double",a);return b+=">",t.childNodes&&t.childNodes.length&&(b+="..."),b+="</"+gC.call(String(t.nodeName))+">",b}if(g_(t)){if(t.length===0)return"[]";var C=e0(t,g);return y&&!VW(C)?"["+y_(C,y)+"]":"[ "+ua.call(C,", ")+" ]"}if(PW(t)){var T=e0(t,g);return!("cause"in Error.prototype)&&"cause"in t&&!hF.call(t,"cause")?"{ ["+String(t)+"] "+ua.call(yC.call("[cause]: "+g(t.cause),T),", ")+" }":T.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+ua.call(T,", ")+" }"}if(typeof t=="object"&&o){if(SC&&typeof t[SC]=="function"&&m_)return m_(t,{depth:d-n});if(o!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(BW(t)){var R=[];return yW.call(t,function(Re,Le){R.push(g(Le,t,!0)+" => "+g(Re,t))}),AC("Map",Om.call(t),R,y)}if(jW(t)){var D=[];return xW.call(t,function(Re){D.push(g(Re,t))}),AC("Set",km.call(t),D,y)}if(zW(t))return Fx("WeakMap");if(GW(t))return Fx("WeakSet");if(UW(t))return Fx("WeakRef");if(RW(t))return ch(g(Number(t)));if(LW(t))return ch(g(p_.call(t)));if(NW(t))return ch(SW.call(t));if(FW(t))return ch(g(String(t)));if(!IW(t)&&!EC(t)){var Y=e0(t,g),j=bC?bC(t)===Object.prototype:t instanceof Object||t.constructor===Object,re=t instanceof Object?"":"null prototype",Se=!j&&$n&&Object(t)===t&&$n in t?TS.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(yC.call([],Se||[],re||[]),": ")+"] ":"");return Y.length===0?ke+"{}":y?ke+"{"+y_(Y,y)+"}":ke+"{ "+ua.call(Y,", ")+" }"}return String(t)};function dF(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function MW(e){return Vo.call(String(e),/"/g,"&quot;")}function g_(e){return gu(e)==="[object Array]"&&(!$n||!(typeof e=="object"&&$n in e))}function IW(e){return gu(e)==="[object Date]"&&(!$n||!(typeof e=="object"&&$n in e))}function EC(e){return gu(e)==="[object RegExp]"&&(!$n||!(typeof e=="object"&&$n in e))}function PW(e){return gu(e)==="[object Error]"&&(!$n||!(typeof e=="object"&&$n in e))}function FW(e){return gu(e)==="[object String]"&&(!$n||!(typeof e=="object"&&$n in e))}function RW(e){return gu(e)==="[object Number]"&&(!$n||!(typeof e=="object"&&$n in e))}function NW(e){return gu(e)==="[object Boolean]"&&(!$n||!(typeof e=="object"&&$n in e))}function pF(e){if(_f)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!v_)return!1;try{return v_.call(e),!0}catch{}return!1}function LW(e){if(!e||typeof e!="object"||!p_)return!1;try{return p_.call(e),!0}catch{}return!1}var DW=Object.prototype.hasOwnProperty||function(e){return e in this};function $o(e,t){return DW.call(e,t)}function gu(e){return EW.call(e)}function $W(e){if(e.name)return e.name;var t=TW.call(AW.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function vF(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 BW(e){if(!Om||!e||typeof e!="object")return!1;try{Om.call(e);try{km.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function zW(e){if(!ed||!e||typeof e!="object")return!1;try{ed.call(e,ed);try{td.call(e,td)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function UW(e){if(!mC||!e||typeof e!="object")return!1;try{return mC.call(e),!0}catch{}return!1}function jW(e){if(!km||!e||typeof e!="object")return!1;try{km.call(e);try{Om.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function GW(e){if(!td||!e||typeof e!="object")return!1;try{td.call(e,td);try{ed.call(e,ed)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function WW(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function mF(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return mF(TS.call(e,0,t.maxStringLength),t)+n}var i=Vo.call(Vo.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,HW);return dF(i,"single",t)}function HW(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":"")+CW.call(t.toString(16))}function ch(e){return"Object("+e+")"}function Fx(e){return e+" { ? }"}function AC(e,t,r,n){var i=n?y_(r,n):ua.call(r,", ");return e+" ("+t+") {"+i+"}"}function VW(e){for(var t=0;t<e.length;t++)if(vF(e[t],`
842
+ `)>=0)return!1;return!0}function qW(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 y_(e,t){if(e.length===0)return"";var r=`
843
+ `+t.prev+t.base;return r+ua.call(e,","+r)+`
844
+ `+t.prev}function e0(e,t){var r=g_(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=$o(e,i)?t(e[i],e):""}var a=typeof Px=="function"?Px(e):[],o;if(_f){o={};for(var l=0;l<a.length;l++)o["$"+a[l]]=a[l]}for(var s in e)!$o(e,s)||r&&String(Number(s))===s&&s<e.length||_f&&o["$"+s]instanceof Symbol||(cF.call(/[^\w$]/,s)?n.push(t(s,e)+": "+t(e[s],e)):n.push(s+": "+t(e[s],e)));if(typeof Px=="function")for(var c=0;c<a.length;c++)hF.call(e,a[c])&&n.push("["+t(a[c])+"]: "+t(e[a[c]],e));return n}var CS=mu,Bf=Sa,YW=kW,XW=CS("%TypeError%"),t0=CS("%WeakMap%",!0),r0=CS("%Map%",!0),QW=Bf("WeakMap.prototype.get",!0),ZW=Bf("WeakMap.prototype.set",!0),KW=Bf("WeakMap.prototype.has",!0),JW=Bf("Map.prototype.get",!0),eH=Bf("Map.prototype.set",!0),tH=Bf("Map.prototype.has",!0),OS=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},rH=function(e,t){var r=OS(e,t);return r&&r.value},nH=function(e,t,r){var n=OS(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},iH=function(e,t){return!!OS(e,t)},aH=function(){var t,r,n,i={assert:function(a){if(!i.has(a))throw new XW("Side channel does not contain "+YW(a))},get:function(a){if(t0&&a&&(typeof a=="object"||typeof a=="function")){if(t)return QW(t,a)}else if(r0){if(r)return JW(r,a)}else if(n)return rH(n,a)},has:function(a){if(t0&&a&&(typeof a=="object"||typeof a=="function")){if(t)return KW(t,a)}else if(r0){if(r)return tH(r,a)}else if(n)return iH(n,a);return!1},set:function(a,o){t0&&a&&(typeof a=="object"||typeof a=="function")?(t||(t=new t0),ZW(t,a,o)):r0?(r||(r=new r0),eH(r,a,o)):(n||(n={key:{},next:null}),nH(n,a,o))}};return i},oH=Object.prototype.hasOwnProperty,uH=Object.prototype.toString,gF=function(t,r,n){if(uH.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)oH.call(t,o)&&r.call(n,t[o],o,t)},Rx=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],lH=typeof globalThis>"u"?Ar:globalThis,yF=function(){for(var t=[],r=0;r<Rx.length;r++)typeof lH[Rx[r]]=="function"&&(t[t.length]=Rx[r]);return t},Nx={exports:{}},Lx,TC;function sH(){if(TC)return Lx;TC=1;var e=mu,t=e("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch{t=null}return Lx=t,Lx}var CC;function xF(){return CC||(CC=1,function(e){e.exports=sH()}(Nx)),Nx.exports}var Dx,OC;function fH(){if(OC)return Dx;OC=1;var e=gF,t=yF,r=Sa,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=xF(),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 Dx=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},Dx}var bF=gF,cH=yF,wF=Sa,hH=wF("Object.prototype.toString"),_F=vu(),kC=typeof globalThis>"u"?Ar:globalThis,dH=cH(),pH=wF("String.prototype.slice"),SF={},$x=xF(),Bx=Object.getPrototypeOf;_F&&$x&&Bx&&bF(dH,function(e){if(typeof kC[e]=="function"){var t=new kC[e];if(Symbol.toStringTag in t){var r=Bx(t),n=$x(r,Symbol.toStringTag);if(!n){var i=Bx(r);n=$x(i,Symbol.toStringTag)}SF[e]=n.get}}});var vH=function(t){var r=!1;return bF(SF,function(n,i){if(!r)try{var a=n.call(t);a===i&&(r=a)}catch{}}),r},mH=fH(),gH=function(t){return mH(t)?!_F||!(Symbol.toStringTag in t)?pH(hH(t),8,-1):vH(t):!1},yH=yS,EF=Pg(),AF=Sa,MC=Object,xH=AF("Array.prototype.push"),IC=AF("Object.prototype.propertyIsEnumerable"),bH=EF?Object.getOwnPropertySymbols:null,TF=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=MC(t);if(arguments.length===1)return n;for(var i=1;i<arguments.length;++i){var a=MC(arguments[i]),o=yH(a),l=EF&&(Object.getOwnPropertySymbols||bH);if(l)for(var s=l(a),c=0;c<s.length;++c){var d=s[c];IC(a,d)&&xH(o,d)}for(var y=0;y<o.length;++y){var g=o[y];if(IC(a,g)){var m=a[g];n[g]=m}}}return n},zx=TF,wH=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},_H=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},CF=function(){return!Object.assign||wH()||_H()?zx:Object.assign},SH=Rl,EH=CF,AH=function(){var t=EH();return SH(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t},TH=Rl,CH=ap.exports,OH=TF,OF=CF,kH=AH,MH=CH.apply(OF()),kF=function(t,r){return MH(Object,arguments)};TH(kF,{getPolyfill:OF,implementation:OH,shim:kH});var IH=kF,PC=yS,FC=GP,RC=Gj,NC=qj,LC=fG,DC=nF,$C=gG,BC=XG,PH=mu,lo=Sa,zC=aW,Sf=$0.exports,FH=aH,UC=gH,MF=IH,jC=lo("Date.prototype.getTime"),Ux=Object.getPrototypeOf,GC=lo("Object.prototype.toString"),Mm=PH("%Set%",!0),x_=lo("Map.prototype.has",!0),Im=lo("Map.prototype.get",!0),WC=lo("Map.prototype.size",!0),Pm=lo("Set.prototype.add",!0),IF=lo("Set.prototype.delete",!0),Fm=lo("Set.prototype.has",!0),B0=lo("Set.prototype.size",!0);function HC(e,t,r,n){for(var i=Sf(e),a;(a=i.next())&&!a.done;)if(to(t,a.value,r,n))return IF(e,a.value),!0;return!1}function PF(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 RH(e,t,r,n,i,a){var o=PF(r);if(o!=null)return o;var l=Im(t,o),s=MF({},i,{strict:!1});return typeof l>"u"&&!x_(t,o)||!to(n,l,s,a)?!1:!x_(e,o)&&to(n,l,s,a)}function NH(e,t,r){var n=PF(r);return n!=null?n:Fm(t,n)&&!Fm(e,n)}function VC(e,t,r,n,i,a){for(var o=Sf(e),l,s;(l=o.next())&&!l.done;)if(s=l.value,to(r,s,i,a)&&to(n,Im(t,s),i,a))return IF(e,s),!0;return!1}function to(e,t,r,n){var i=r||{};if(i.strict?RC(e,t):e===t)return!0;var a=BC(e),o=BC(t);if(a!==o)return!1;if(!e||!t||typeof e!="object"&&typeof t!="object")return i.strict?RC(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),$H(e,t,i,n)}function qC(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 LH(e,t,r,n){if(B0(e)!==B0(t))return!1;for(var i=Sf(e),a=Sf(t),o,l,s;(o=i.next())&&!o.done;)if(o.value&&typeof o.value=="object")s||(s=new Mm),Pm(s,o.value);else if(!Fm(t,o.value)){if(r.strict||!NH(e,t,o.value))return!1;s||(s=new Mm),Pm(s,o.value)}if(s){for(;(l=a.next())&&!l.done;)if(l.value&&typeof l.value=="object"){if(!HC(s,l.value,r.strict,n))return!1}else if(!r.strict&&!Fm(e,l.value)&&!HC(s,l.value,r.strict,n))return!1;return B0(s)===0}return!0}function DH(e,t,r,n){if(WC(e)!==WC(t))return!1;for(var i=Sf(e),a=Sf(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 Mm),Pm(s,c);else if(y=Im(t,c),typeof y>"u"&&!x_(t,c)||!to(d,y,r,n)){if(r.strict||!RH(e,t,c,d,r,n))return!1;s||(s=new Mm),Pm(s,c)}if(s){for(;(l=a.next())&&!l.done;)if(c=l.value[0],y=l.value[1],c&&typeof c=="object"){if(!VC(s,e,c,y,r,n))return!1}else if(!r.strict&&(!e.has(c)||!to(Im(e,c),y,r,n))&&!VC(s,e,c,y,MF({},r,{strict:!1}),n))return!1;return B0(s)===0}return!0}function $H(e,t,r,n){var i,a;if(typeof e!=typeof t||e==null||t==null||GC(e)!==GC(t)||FC(e)!==FC(t))return!1;var o=DC(e),l=DC(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=NC(e),y=NC(t);if(d!==y||(d||y)&&(e.source!==t.source||LC(e)!==LC(t)))return!1;var g=$C(e),m=$C(t);if(g!==m||(g||m)&&jC(e)!==jC(t)||r.strict&&Ux&&Ux(e)!==Ux(t)||UC(e)!==UC(t))return!1;var E=qC(e),M=qC(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=PC(e),w=PC(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],!to(e[a],t[a],r,n))return!1;var _=zC(e),C=zC(t);return _!==C?!1:_==="Set"||C==="Set"?LH(e,t,r,n):_==="Map"?DH(e,t,r,n):!0}var Kte=function(t,r,n){return to(t,r,n,FH())},BH={exports:{}};/*! Native Promise Only
845
+ v0.8.1 (c) Kyle Simpson
846
+ MIT License: http://getify.mit-license.org
847
+ */(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})})(BH);var zH={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==null?"":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==null?"":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?null:B),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+`
848
+ ]`),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(`
849
+ `)},v.formatRows=function(N){return N.map(S).join(`
850
+ `)};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==null?yo:P,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==null?z.ticks?z.ticks.apply(z,x):z.domain():O,oe=S==null?z.tickFormat?z.tickFormat.apply(z,x):nt:S,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)})(zH);var jx=new Date,Gx=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 jx.setTime(+a),Gx.setTime(+o),e(jx),e(Gx),Math.floor(r(jx,Gx))},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 Rm=dn(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Rm.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}):Rm};const YC=Rm;var XC=Rm.range,Nm=1e3,xl=6e4,Lm=36e5,FF=864e5,RF=6048e5,NF=dn(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Nm)},function(e,t){return(t-e)/Nm},function(e){return e.getUTCSeconds()});const QC=NF;var ZC=NF.range,LF=dn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Nm)},function(e,t){e.setTime(+e+t*xl)},function(e,t){return(t-e)/xl},function(e){return e.getMinutes()});const UH=LF;var jH=LF.range,DF=dn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Nm-e.getMinutes()*xl)},function(e,t){e.setTime(+e+t*Lm)},function(e,t){return(t-e)/Lm},function(e){return e.getHours()});const GH=DF;var WH=DF.range,$F=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())*xl)/FF},function(e){return e.getDate()-1});const kS=$F;var HH=$F.range;function Nl(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())*xl)/RF})}var Dm=Nl(0),Td=Nl(1),BF=Nl(2),zF=Nl(3),bl=Nl(4),UF=Nl(5),jF=Nl(6),KC=Dm.range,VH=Td.range,qH=BF.range,YH=zF.range,XH=bl.range,QH=UF.range,ZH=jF.range,GF=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 KH=GF;var JH=GF.range,MS=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()});MS.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 Ef=MS;var eV=MS.range,WF=dn(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*xl)},function(e,t){return(t-e)/xl},function(e){return e.getUTCMinutes()});const tV=WF;var rV=WF.range,HF=dn(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Lm)},function(e,t){return(t-e)/Lm},function(e){return e.getUTCHours()});const nV=HF;var iV=HF.range,VF=dn(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/FF},function(e){return e.getUTCDate()-1});const IS=VF;var aV=VF.range;function Ll(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)/RF})}var $m=Ll(0),Cd=Ll(1),qF=Ll(2),YF=Ll(3),wl=Ll(4),XF=Ll(5),QF=Ll(6),JC=$m.range,oV=Cd.range,uV=qF.range,lV=YF.range,sV=wl.range,fV=XF.range,cV=QF.range,ZF=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 hV=ZF;var dV=ZF.range,PS=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()});PS.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 Af=PS;var pV=PS.range;const vV=Object.freeze(Object.defineProperty({__proto__:null,timeInterval:dn,timeMillisecond:YC,timeMilliseconds:XC,utcMillisecond:YC,utcMilliseconds:XC,timeSecond:QC,timeSeconds:ZC,utcSecond:QC,utcSeconds:ZC,timeMinute:UH,timeMinutes:jH,timeHour:GH,timeHours:WH,timeDay:kS,timeDays:HH,timeWeek:Dm,timeWeeks:KC,timeSunday:Dm,timeSundays:KC,timeMonday:Td,timeMondays:VH,timeTuesday:BF,timeTuesdays:qH,timeWednesday:zF,timeWednesdays:YH,timeThursday:bl,timeThursdays:XH,timeFriday:UF,timeFridays:QH,timeSaturday:jF,timeSaturdays:ZH,timeMonth:KH,timeMonths:JH,timeYear:Ef,timeYears:eV,utcMinute:tV,utcMinutes:rV,utcHour:nV,utcHours:iV,utcDay:IS,utcDays:aV,utcWeek:$m,utcWeeks:JC,utcSunday:$m,utcSundays:JC,utcMonday:Cd,utcMondays:oV,utcTuesday:qF,utcTuesdays:uV,utcWednesday:YF,utcWednesdays:lV,utcThursday:wl,utcThursdays:sV,utcFriday:XF,utcFridays:fV,utcSaturday:QF,utcSaturdays:cV,utcMonth:hV,utcMonths:dV,utcYear:Af,utcYears:pV},Symbol.toStringTag,{value:"Module"}));function Wx(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 Hx(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 hh(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function KF(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=dh(i),d=ph(i),y=dh(a),g=ph(a),m=dh(o),E=ph(o),M=dh(l),b=ph(l),w=dh(s),_=ph(s),C={a:De,A:We,b:_t,B:He,c:null,d:aO,e:aO,f:$V,g:YV,G:QV,H:NV,I:LV,j:DV,L:JF,m:BV,M:zV,p:be,q:Ve,Q:lO,s:sO,S:UV,u:jV,U:GV,V:WV,w:HV,W:VV,x:null,X:null,y:qV,Y:XV,Z:ZV,"%":uO},T={a:st,A:Qe,b:ct,B:yt,c:null,d:oO,e:oO,f:tq,g:cq,G:dq,H:KV,I:JV,j:eq,L:tR,m:rq,M:nq,p:Ht,q:qt,Q:lO,s:sO,S:iq,u:aq,U:oq,V:uq,w:lq,W:sq,x:null,X:null,y:fq,Y:hq,Z:pq,"%":uO},R={a:Se,A:me,b:ke,B:Re,c:Le,d:nO,e:nO,f:IV,g:rO,G:tO,H:iO,I:iO,j:CV,L:MV,m:TV,M:OV,p:re,q:AV,Q:FV,s:RV,S:kV,u:bV,U:wV,V:_V,w:xV,W:SV,x:ut,X:nt,y:rO,Y:tO,Z:EV,"%":PV};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=eO[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=hh(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=Hx(hh(Ce.y,0,1)),I=ae.getUTCDay(),ae=I>4||I===0?Cd.ceil(ae):Cd(ae),ae=IS.offset(ae,(Ce.V-1)*7),Ce.y=ae.getUTCFullYear(),Ce.m=ae.getUTCMonth(),Ce.d=ae.getUTCDate()+(Ce.w+6)%7):(ae=Wx(hh(Ce.y,0,1)),I=ae.getDay(),ae=I>4||I===0?Td.ceil(ae):Td(ae),ae=kS.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?Hx(hh(Ce.y,0,1)).getUTCDay():Wx(hh(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,Hx(Ce)):Wx(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 eO?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 eO={"-":"",_:" ",0:"0"},_n=/^\s*\d+/,mV=/^%/,gV=/[\\^$*+?|[\]().{}]/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 yV(e){return e.replace(gV,"\\$&")}function dh(e){return new RegExp("^(?:"+e.map(yV).join("|")+")","i")}function ph(e){for(var t={},r=-1,n=e.length;++r<n;)t[e[r].toLowerCase()]=r;return t}function xV(e,t,r){var n=_n.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function bV(e,t,r){var n=_n.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function wV(e,t,r){var n=_n.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function _V(e,t,r){var n=_n.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function SV(e,t,r){var n=_n.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function tO(e,t,r){var n=_n.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function rO(e,t,r){var n=_n.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function EV(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 AV(e,t,r){var n=_n.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function TV(e,t,r){var n=_n.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function nO(e,t,r){var n=_n.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function CV(e,t,r){var n=_n.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function iO(e,t,r){var n=_n.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function OV(e,t,r){var n=_n.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function kV(e,t,r){var n=_n.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function MV(e,t,r){var n=_n.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function IV(e,t,r){var n=_n.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function PV(e,t,r){var n=mV.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function FV(e,t,r){var n=_n.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function RV(e,t,r){var n=_n.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function aO(e,t){return yr(e.getDate(),t,2)}function NV(e,t){return yr(e.getHours(),t,2)}function LV(e,t){return yr(e.getHours()%12||12,t,2)}function DV(e,t){return yr(1+kS.count(Ef(e),e),t,3)}function JF(e,t){return yr(e.getMilliseconds(),t,3)}function $V(e,t){return JF(e,t)+"000"}function BV(e,t){return yr(e.getMonth()+1,t,2)}function zV(e,t){return yr(e.getMinutes(),t,2)}function UV(e,t){return yr(e.getSeconds(),t,2)}function jV(e){var t=e.getDay();return t===0?7:t}function GV(e,t){return yr(Dm.count(Ef(e)-1,e),t,2)}function eR(e){var t=e.getDay();return t>=4||t===0?bl(e):bl.ceil(e)}function WV(e,t){return e=eR(e),yr(bl.count(Ef(e),e)+(Ef(e).getDay()===4),t,2)}function HV(e){return e.getDay()}function VV(e,t){return yr(Td.count(Ef(e)-1,e),t,2)}function qV(e,t){return yr(e.getFullYear()%100,t,2)}function YV(e,t){return e=eR(e),yr(e.getFullYear()%100,t,2)}function XV(e,t){return yr(e.getFullYear()%1e4,t,4)}function QV(e,t){var r=e.getDay();return e=r>=4||r===0?bl(e):bl.ceil(e),yr(e.getFullYear()%1e4,t,4)}function ZV(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+yr(t/60|0,"0",2)+yr(t%60,"0",2)}function oO(e,t){return yr(e.getUTCDate(),t,2)}function KV(e,t){return yr(e.getUTCHours(),t,2)}function JV(e,t){return yr(e.getUTCHours()%12||12,t,2)}function eq(e,t){return yr(1+IS.count(Af(e),e),t,3)}function tR(e,t){return yr(e.getUTCMilliseconds(),t,3)}function tq(e,t){return tR(e,t)+"000"}function rq(e,t){return yr(e.getUTCMonth()+1,t,2)}function nq(e,t){return yr(e.getUTCMinutes(),t,2)}function iq(e,t){return yr(e.getUTCSeconds(),t,2)}function aq(e){var t=e.getUTCDay();return t===0?7:t}function oq(e,t){return yr($m.count(Af(e)-1,e),t,2)}function rR(e){var t=e.getUTCDay();return t>=4||t===0?wl(e):wl.ceil(e)}function uq(e,t){return e=rR(e),yr(wl.count(Af(e),e)+(Af(e).getUTCDay()===4),t,2)}function lq(e){return e.getUTCDay()}function sq(e,t){return yr(Cd.count(Af(e)-1,e),t,2)}function fq(e,t){return yr(e.getUTCFullYear()%100,t,2)}function cq(e,t){return e=rR(e),yr(e.getUTCFullYear()%100,t,2)}function hq(e,t){return yr(e.getUTCFullYear()%1e4,t,4)}function dq(e,t){var r=e.getUTCDay();return e=r>=4||r===0?wl(e):wl.ceil(e),yr(e.getUTCFullYear()%1e4,t,4)}function pq(){return"+0000"}function uO(){return"%"}function lO(e){return+e}function sO(e){return Math.floor(+e/1e3)}var ks,nR,iR,FS,RS;aR({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 aR(e){return ks=KF(e),nR=ks.format,iR=ks.parse,FS=ks.utcFormat,RS=ks.utcParse,ks}var oR="%Y-%m-%dT%H:%M:%S.%LZ";function vq(e){return e.toISOString()}var mq=Date.prototype.toISOString?vq:FS(oR);const gq=mq;function yq(e){var t=new Date(e);return isNaN(t)?null:t}var xq=+new Date("2000-01-01T00:00:00.000Z")?yq:RS(oR);const bq=xq,wq=Object.freeze(Object.defineProperty({__proto__:null,timeFormatDefaultLocale:aR,get timeFormat(){return nR},get timeParse(){return iR},get utcFormat(){return FS},get utcParse(){return RS},timeFormatLocale:KF,isoFormat:gq,isoParse:bq},Symbol.toStringTag,{value:"Module"})),Jte=El(wq);function _q(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Bm(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 Tf(e){return e=Bm(Math.abs(e)),e?e[1]:NaN}function Sq(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 Eq(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var Aq=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function zm(e){if(!(t=Aq.exec(e)))throw new Error("invalid format: "+e);var t;return new Rg({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]})}zm.prototype=Rg.prototype;function Rg(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+""}Rg.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 Tq(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 uR;function Cq(e,t){var r=Bm(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(uR=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")+Bm(e,Math.max(0,t+a-1))[0]}function fO(e,t){var r=Bm(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 cO={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:_q,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 fO(e*100,t)},r:fO,s:Cq,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function hO(e){return e}var dO=Array.prototype.map,pO=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function lR(e){var t=e.grouping===void 0||e.thousands===void 0?hO:Sq(dO.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?hO:Eq(dO.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=zm(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"):cO[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=cO[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=Tq(me)),De&&+me==0&&E!=="+"&&(De=!1),ke=(De?E==="("?E:l:E==="-"||E==="("?"":E)+ke,Re=(R==="s"?pO[8+uR/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=zm(y),y.type="f",y)),E=Math.max(-8,Math.min(8,Math.floor(Tf(g)/3)))*3,M=Math.pow(10,-E),b=pO[8+E/3];return function(w){return m(M*w)+b}}return{format:c,formatPrefix:d}}var n0,sR,fR;cR({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function cR(e){return n0=lR(e),sR=n0.format,fR=n0.formatPrefix,n0}function Oq(e){return Math.max(0,-Tf(Math.abs(e)))}function kq(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Tf(t)/3)))*3-Tf(Math.abs(e)))}function Mq(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Tf(t)-Tf(e))+1}const Iq=Object.freeze(Object.defineProperty({__proto__:null,formatDefaultLocale:cR,get format(){return sR},get formatPrefix(){return fR},formatLocale:lR,formatSpecifier:zm,FormatSpecifier:Rg,precisionFixed:Oq,precisionPrefix:kq,precisionRound:Mq},Symbol.toStringTag,{value:"Module"})),ere=El(Iq);var Pq=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},Fq=Pq,tre=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&Fq(r))return!1}else if(t!=="number")return!1;return e-e<1},Rq={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)})(Rq);var Nq=Lq;function Lq(){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 Dq=$q;function $q(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 Bq=zq;function zq(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 hR=Uq;function Uq(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 jq=Gq;function Gq(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 Wq=Hq;function Hq(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 Vq=qq;function qq(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 Yq=Xq;function Xq(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 Qq=Zq;function Zq(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 Kq=Jq;function Jq(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 eY=tY;function tY(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 rY=nY;function nY(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 iY=aY;function aY(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 oY=uY;function uY(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 lY=sY;function sY(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 fY=cY;function cY(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 hY=dY;function dY(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 pY=vY;function vY(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 mY=gY;function gY(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 yY=xY;function xY(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 bY=wY;function wY(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 _Y=SY;function SY(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 EY=AY;function AY(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 TY=CY;function CY(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 OY=kY;function kY(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 MY=IY;function IY(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 PY=FY;function FY(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 RY=hR,NY=LY;function LY(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?RY(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 DY=$Y;function $Y(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 rre={create:Nq,clone:Dq,copy:Bq,identity:hR,transpose:jq,invert:Wq,adjoint:Vq,determinant:Yq,multiply:Qq,translate:Kq,scale:eY,rotate:rY,rotateX:iY,rotateY:oY,rotateZ:lY,fromRotation:fY,fromRotationTranslation:hY,fromScaling:pY,fromTranslation:mY,fromXRotation:yY,fromYRotation:bY,fromZRotation:_Y,fromQuat:EY,frustum:TY,perspective:OY,perspectiveFromFieldOfView:MY,ortho:PY,lookAt:NY,str:DY},NS={exports:{}};NS.exports=LS;NS.exports.isMobile=LS;NS.exports.default=LS;const BY=/(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,zY=/CrOS/,UY=/android|ipad|playbook|silk/i;function LS(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=BY.test(t)&&!zY.test(t)||!!e.tablet&&UY.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}var jY=!0,GY=jY,b_;typeof Ar.matchMedia=="function"?b_=!Ar.matchMedia("(hover: none)").matches:b_=GY;var nre=b_,dR={exports:{}},sf=typeof Reflect=="object"?Reflect:null,vO=sf&&typeof sf.apply=="function"?sf.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},z0;sf&&typeof sf.ownKeys=="function"?z0=sf.ownKeys:Object.getOwnPropertySymbols?z0=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:z0=function(t){return Object.getOwnPropertyNames(t)};function WY(e){console&&console.warn&&console.warn(e)}var pR=Number.isNaN||function(t){return t!==t};function Tr(){Tr.init.call(this)}dR.exports=Tr;dR.exports.once=YY;Tr.EventEmitter=Tr;Tr.prototype._events=void 0;Tr.prototype._eventsCount=0;Tr.prototype._maxListeners=void 0;var mO=10;function Ng(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 mO},set:function(e){if(typeof e!="number"||e<0||pR(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");mO=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||pR(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 vR(e){return e._maxListeners===void 0?Tr.defaultMaxListeners:e._maxListeners}Tr.prototype.getMaxListeners=function(){return vR(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")vO(s,this,r);else for(var c=s.length,d=bR(s,c),n=0;n<c;++n)vO(d[n],this,r);return!0};function mR(e,t,r,n){var i,a,o;if(Ng(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=vR(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,WY(l)}return e}Tr.prototype.addListener=function(t,r){return mR(this,t,r,!1)};Tr.prototype.on=Tr.prototype.addListener;Tr.prototype.prependListener=function(t,r){return mR(this,t,r,!0)};function HY(){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 gR(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=HY.bind(n);return i.listener=r,n.wrapFn=i,i}Tr.prototype.once=function(t,r){return Ng(r),this.on(t,gR(this,t,r)),this};Tr.prototype.prependOnceListener=function(t,r){return Ng(r),this.prependListener(t,gR(this,t,r)),this};Tr.prototype.removeListener=function(t,r){var n,i,a,o,l;if(Ng(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():VY(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 yR(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?qY(i):bR(i,i.length)}Tr.prototype.listeners=function(t){return yR(this,t,!0)};Tr.prototype.rawListeners=function(t){return yR(this,t,!1)};Tr.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):xR.call(e,t)};Tr.prototype.listenerCount=xR;function xR(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?z0(this._events):[]};function bR(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function VY(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function qY(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function YY(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))}wR(e,t,a,{once:!0}),t!=="error"&&XY(e,i,{once:!0})})}function XY(e,t,r){typeof e.on=="function"&&wR(e,"error",t,r)}function wR(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 _R=ZY,Vx={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},QY=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function ZY(e){var t=[];return e.replace(QY,function(r,n,i){var a=n.toLowerCase();for(i=JY(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==Vx[a])return i.unshift(n),t.push(i);if(i.length<Vx[a])throw new Error("malformed path data");t.push([n].concat(i.splice(0,Vx[a])))}}),t}var KY=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig;function JY(e){var t=e.match(KY);return t?t.map(Number):[]}var eX={left:0,top:0},ire=tX;function tX(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=rX(t);return r[0]=n-a.left,r[1]=i-a.top,r}function rX(e){return e===window||e===document||e===document.body?eX:e.getBoundingClientRect()}function nX(){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 are=nX();function iX(){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 aX=iX;function oX(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 uX=oX,lX={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}},sX=lX,vh=sX;function fX(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=vh.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=vh.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=vh.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=vh.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(vh.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 cX=fX;function hX(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 dX=hX;function mh(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 pX={union:function(e,t){return mh(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return mh(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return mh(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return mh(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return mh(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}},vX=pX,mX={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}}},gX=mX;/*
851
+ * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc
852
+ * @license MIT
853
+ * @preserve Project Home: https://github.com/voidqk/polybooljs
854
+ */var yX=aX,xX=uX,gO=cX,bX=dX,gh=vX,yO=gX,Si=!1,yh=xX(),Jn;Jn={buildLog:function(e){return e===!0?Si=yX():e===!1&&(Si=!1),Si===!1?!1:Si.list},epsilon:function(e){return yh.epsilon(e)},segments:function(e){var t=gO(!0,yh,Si);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=gO(!1,yh,Si);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:gh.union(e.combined,Si),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:gh.intersect(e.combined,Si),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:gh.difference(e.combined,Si),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:gh.differenceRev(e.combined,Si),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:gh.xor(e.combined,Si),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:bX(e.segments,yh,Si),inverted:e.inverted}},polygonFromGeoJSON:function(e){return yO.toPolygon(Jn,e)},polygonToGeoJSON:function(e){return yO.fromPolygon(Jn,yh,e)},union:function(e,t){return xh(e,t,Jn.selectUnion)},intersect:function(e,t){return xh(e,t,Jn.selectIntersect)},difference:function(e,t){return xh(e,t,Jn.selectDifference)},differenceRev:function(e,t){return xh(e,t,Jn.selectDifferenceRev)},xor:function(e,t){return xh(e,t,Jn.selectXor)}};function xh(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 ore=Jn,ure=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 lre=El(vV);var SR={exports:{}};function wX(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 _X(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 SX(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 EX(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 AX(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 bh(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 TX={ge:function(e,t,r,n,i){return bh(e,t,r,n,i,wX)},gt:function(e,t,r,n,i){return bh(e,t,r,n,i,_X)},lt:function(e,t,r,n,i){return bh(e,t,r,n,i,SX)},le:function(e,t,r,n,i){return bh(e,t,r,n,i,EX)},eq:function(e,t,r,n,i){return bh(e,t,r,n,i,AX)}},op=CX;function CX(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=xO(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]=xO(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},qx={};function xO(e){return qx[e]?qx[e]:(typeof e=="string"&&(e=qx[e]=e.split(/\s*,\s*|\s+/)),e)}var OX=yu,Lg=kX;function kX(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=OX(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 up=MX;function MX(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 ER=function(){for(var e=0;e<arguments.length;e++)if(arguments[e]!==void 0)return arguments[e]},DS=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}},bO=DS,lp=IX;function IX(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(bO(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=bO(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 PX=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")},FX=Math.log2||function(e){return Math.log(e)*Math.LOG2E};const wO=TX,_O=op,RX=Lg,NX=up,SO=yu,Yx=ER,LX=lp,DX=PX,$X=DS,EO=FX,BX=1073741824;var zX=function(t,r){r||(r={}),t=LX(t,"float64"),r=SO(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=Yx(r.maxDepth,255),i=Yx(r.bounds,NX(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=AO(t,i),o=t.length>>>1,l;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?l=new($X(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>BX){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(DX(w[w.length-1])){let nt=w.pop();!w.length&&(nt.x!=null||nt.l!=null||nt.left!=null)&&(w=[nt],_={}),_=SO(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=RX(...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]=AO([T,R,D,Y],i),ke=Yx(_.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(-EO(Math.abs(nt[0])/(i[2]-i[0]))),Math.ceil(-EO(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=wO.ge(j,Se),Re=wO.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 AO(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]=_O((e[2*c]-r)*o,0,1),s[2*c+1]=_O((e[2*c+1]-n)*l,0,1);return s}(function(e){e.exports=zX})(SR);var AR=UX;function UX(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 jX=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")}}(),rd=Math.PI*2,Xx=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}},GX=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}]},TO=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)},WX=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=TO(1,0,D,Y),me=TO(D,Y,j,re);return s===0&&me>0&&(me-=rd),s===1&&me<0&&(me+=rd),[T,R,Se,me]},HX=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*rd/360),b=Math.cos(c*rd/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=WX(r,n,i,a,o,l,y,m,M,b,w,_),R=jX(T,4),D=R[0],Y=R[1],j=R[2],re=R[3],Se=Math.abs(re)/(rd/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(GX(j,re)),j+=re;return E.map(function(Re){var Le=Xx(Re[0],o,l,b,M,D,Y),ut=Le.x,nt=Le.y,De=Xx(Re[1],o,l,b,M,D,Y),We=De.x,_t=De.y,He=Xx(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 VX=Object.freeze(Object.defineProperty({__proto__:null,default:HX},Symbol.toStringTag,{value:"Module"})),qX=El(VX);var YX=QX,XX=qX;function QX(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=XX({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=CO(c,d,l,s,m[1],m[2]);break;case"Q":l=m[1],s=m[2],m=CO(c,d,m[1],m[2],m[3],m[4]);break;case"L":m=i0(c,d,m[1],m[2]);break;case"H":m=i0(c,d,m[1],d);break;case"V":m=i0(c,d,c,m[1]);break;case"Z":m=i0(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 i0(e,t,r,n){return["C",e,t,r,n,r,n]}function CO(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 TR=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))},ZX=_R,KX=AR,JX=YX,eQ=TR,tQ=rQ;function rQ(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"){if(!eQ(e))throw Error("String is not an SVG path.");e=ZX(e)}if(!Array.isArray(e))throw Error("Argument should be a string or an array of path segments.");if(e=KX(e),e=JX(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 Ju=Math.PI,OO=OR(120),nQ=iQ;function iQ(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=CR(c,d,m[1],m[2],OR(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=kO(c,d,l,s,m[1],m[2]);break;case"Q":l=m[1],s=m[2],m=kO(c,d,m[1],m[2],m[3],m[4]);break;case"L":m=a0(c,d,m[1],m[2]);break;case"H":m=a0(c,d,m[1],d);break;case"V":m=a0(c,d,c,m[1]);break;case"Z":m=a0(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 a0(e,t,r,n){return["C",e,t,r,n,r,n]}function kO(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 CR(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=Qx(e,t,-i);e=d.x,t=d.y,d=Qx(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?Ju-C:C,T=l<w?Ju-T:T,C<0&&(C=Ju*2+C),T<0&&(T=Ju*2+T),o&&C>T&&(C=C-Ju*2),!o&&T>C&&(T=T-Ju*2)}if(Math.abs(T-C)>OO){var R=T,D=l,Y=s;T=C+OO*(o&&T>C?1:-1),l=w+r*Math.cos(T),s=_+n*Math.sin(T);var j=CR(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=Qx(ke[Re],ke[Re+1],i);ke[Re++]=Le.x,ke[Re++]=Le.y}return ke}function Qx(e,t,r){return{x:e*Math.cos(r)-t*Math.sin(r),y:e*Math.sin(r)+t*Math.cos(r)}}function OR(e){return e*(Ju/180)}var aQ=AR,oQ=nQ,uQ={M:"moveTo",C:"bezierCurveTo"},lQ=function(e,t){e.beginPath(),oQ(aQ(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[uQ[n]].apply(e,i)}),e.closePath()},sQ=op,fQ=cQ,nd=1e20;function cQ(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?nd:Math.pow(Math.max(0,.5-D),2),w[E]=D===1?nd:D===0?0:Math.pow(Math.max(0,D-.5),2)}MO(b,a,o,_,C,R,T),MO(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]=sQ(1-((b[E]-w[E])/n+r),0,1);return Y}function MO(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(IO(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(IO(n,i,a,o,t),l=0;l<t;l++)e[s*t+l]=Math.sqrt(i[l])}}function IO(e,t,r,n,i){r[0]=0,n[0]=-nd,n[1]=+nd;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]=+nd}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 hQ=tQ,dQ=_R,pQ=lQ,vQ=TR,mQ=fQ,w_=document.createElement("canvas"),jn=w_.getContext("2d"),sre=gQ;function gQ(e,t){if(!vQ(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=w_.width=t.w||t.width||200,n=w_.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,o=t.viewbox||t.viewBox||hQ(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),yQ()){var c=new Path2D(e);jn.fill(c),a&&jn.stroke(c)}else{var d=dQ(e);pQ(jn,d),jn.fill(),a&&jn.stroke()}jn.setTransform(1,0,0,1,0,0);var y=mQ(jn,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return y}var o0;function yQ(){if(o0!=null)return o0;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return o0=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return o0=r&&r.data&&r.data[3]===255}var xQ={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]},bQ=Object.prototype.toString,kR=function(e){var t;return bQ.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))},PO=xQ,wQ=kR,Xu=ER,_Q=SQ,FO={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function SQ(e){var t,r=[],n=1,i;if(typeof e=="string")if(PO[e])r=PO[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(FO[m]!==void 0)return FO[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(wQ(e)){var d=Xu(e.r,e.red,e.R,null);d!==null?(i="rgb",r=[d,Xu(e.g,e.green,e.G),Xu(e.b,e.blue,e.B)]):(i="hsl",r=[Xu(e.h,e.hue,e.H),Xu(e.s,e.saturation,e.S),Xu(e.l,e.lightness,e.L,e.b,e.brightness)]),n=Xu(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 EQ={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}},AQ=_Q,TQ=EQ,u0=op,CQ=function(t){var r,n=AQ(t);return n.space?(r=Array(3),r[0]=u0(n.values[0],0,255),r[1]=u0(n.values[1],0,255),r[2]=u0(n.values[2],0,255),n.space[0]==="h"&&(r=TQ.rgb(r)),r.push(u0(n.alpha,0,1)),r):[]},OQ=CQ,l0=op,kQ=DS,Dg=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=kQ(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=OQ(t),t[0]/=255,t[1]/=255,t[2]/=255),MQ(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]=l0(Math.floor(t[0]*255),0,255),i[1]=l0(Math.floor(t[1]*255),0,255),i[2]=l0(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:l0(Math.floor(t[3]*255),0,255)),i)};function MQ(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 $g={exports:{}},s0=op;$g.exports=MR;$g.exports.to=MR;$g.exports.from=IQ;function MR(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=s0(r,0,255)&255,n=s0(n,0,255)&255,i=s0(i,0,255)&255,a=s0(a,0,255)&255;var o=r*16777216+(n<<16)+(i<<8)+a;return o}function IQ(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 IR=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("")},PR=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},PQ=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)),fu={exports:{}};fu.exports=id;fu.exports.float32=fu.exports.float=id;fu.exports.fract32=fu.exports.fract=FQ;var RO=new Float32Array(1);function FQ(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=id(e));for(var r=0,n=t.length;r<n;r++)t[r]=e[r]-t[r];return t}return id(e-id(e))}function id(e){return e.length?e instanceof Float32Array?e:new Float32Array(e):(RO[0]=e,RO[0])}function RQ(e,t){return DQ(e)||BQ(e,t)||FR(e,t)||UQ()}function NQ(e){return LQ(e)||$Q(e)||FR(e)||zQ()}function LQ(e){if(Array.isArray(e))return __(e)}function DQ(e){if(Array.isArray(e))return e}function $Q(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function BQ(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 FR(e,t){if(!!e){if(typeof e=="string")return __(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 __(e,t)}}function __(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 zQ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
855
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
856
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var jQ=Dg,GQ=up,WQ=$g.exports,HQ=SR.exports,cl=Al,f0=IR,VQ=yu,qQ=PR,YQ=lp,NO=PQ,c0=fu.exports,XQ=Lg,QQ=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=NO,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=f0([`precision highp float;
857
+ #define GLSLIFY 1
858
+
859
+ uniform float opacity;
860
+ uniform sampler2D markerTexture;
861
+
862
+ varying vec4 fragColor, fragBorderColor;
863
+ varying float fragWidth, fragBorderColorLevel, fragColorLevel;
864
+
865
+ float smoothStep(float x, float y) {
866
+ return 1.0 / (1.0 + exp(50.0*(x - y)));
867
+ }
868
+
869
+ void main() {
870
+ float dist = texture2D(markerTexture, gl_PointCoord).r, delta = fragWidth;
871
+
872
+ // max-distance alpha
873
+ if (dist < 0.003) discard;
874
+
875
+ // null-border case
876
+ if (fragBorderColorLevel == fragColorLevel || fragBorderColor.a == 0.) {
877
+ float colorAmt = smoothstep(.5 - delta, .5 + delta, dist);
878
+ gl_FragColor = vec4(fragColor.rgb, colorAmt * fragColor.a * opacity);
879
+ }
880
+ else {
881
+ float borderColorAmt = smoothstep(fragBorderColorLevel - delta, fragBorderColorLevel + delta, dist);
882
+ float colorAmt = smoothstep(fragColorLevel - delta, fragColorLevel + delta, dist);
883
+
884
+ vec4 color = fragBorderColor;
885
+ color.a *= borderColorAmt;
886
+ color = mix(color, fragColor, colorAmt);
887
+ color.a *= opacity;
888
+
889
+ gl_FragColor = color;
890
+ }
891
+
892
+ }
893
+ `]),m.vert=f0([`precision highp float;
894
+ #define GLSLIFY 1
895
+
896
+ attribute float x, y, xFract, yFract;
897
+ attribute float size, borderSize;
898
+ attribute vec4 colorId, borderColorId;
899
+ attribute float isActive;
900
+
901
+ uniform bool constPointSize;
902
+ uniform float pixelRatio;
903
+ uniform vec2 scale, scaleFract, translate, translateFract, paletteSize;
904
+ uniform sampler2D paletteTexture;
905
+
906
+ const float maxSize = 100.;
907
+ const float borderLevel = .5;
908
+
909
+ varying vec4 fragColor, fragBorderColor;
910
+ varying float fragPointSize, fragBorderRadius, fragWidth, fragBorderColorLevel, fragColorLevel;
911
+
912
+ float pointSizeScale = (constPointSize) ? 2. : pixelRatio;
913
+
914
+ bool isDirect = (paletteSize.x < 1.);
915
+
916
+ vec4 getColor(vec4 id) {
917
+ return isDirect ? id / 255. : texture2D(paletteTexture,
918
+ vec2(
919
+ (id.x + .5) / paletteSize.x,
920
+ (id.y + .5) / paletteSize.y
921
+ )
922
+ );
923
+ }
924
+
925
+ void main() {
926
+ // ignore inactive points
927
+ if (isActive == 0.) return;
928
+
929
+ vec2 position = vec2(x, y);
930
+ vec2 positionFract = vec2(xFract, yFract);
931
+
932
+ vec4 color = getColor(colorId);
933
+ vec4 borderColor = getColor(borderColorId);
934
+
935
+ float size = size * maxSize / 255.;
936
+ float borderSize = borderSize * maxSize / 255.;
937
+
938
+ gl_PointSize = 2. * size * pointSizeScale;
939
+ fragPointSize = size * pixelRatio;
940
+
941
+ vec2 pos = (position + translate) * scale
942
+ + (positionFract + translateFract) * scale
943
+ + (position + translate) * scaleFract
944
+ + (positionFract + translateFract) * scaleFract;
945
+
946
+ gl_Position = vec4(pos * 2. - 1., 0., 1.);
947
+
948
+ fragColor = color;
949
+ fragBorderColor = borderColor;
950
+ fragWidth = 1. / gl_PointSize;
951
+
952
+ fragBorderColorLevel = clamp(borderLevel - borderLevel * borderSize / size, 0., 1.);
953
+ fragColorLevel = clamp(borderLevel + (1. - borderLevel) * borderSize / size, 0., 1.);
954
+ }`]),this.drawMarker=e(m);var E=cl({},g);E.frag=f0([`precision highp float;
955
+ #define GLSLIFY 1
956
+
957
+ varying vec4 fragColor, fragBorderColor;
958
+ varying float fragBorderRadius, fragWidth;
959
+
960
+ uniform float opacity;
961
+
962
+ float smoothStep(float edge0, float edge1, float x) {
963
+ float t;
964
+ t = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);
965
+ return t * t * (3.0 - 2.0 * t);
966
+ }
967
+
968
+ void main() {
969
+ float radius, alpha = 1.0, delta = fragWidth;
970
+
971
+ radius = length(2.0 * gl_PointCoord.xy - 1.0);
972
+
973
+ if (radius > 1.0 + delta) {
974
+ discard;
975
+ }
976
+
977
+ alpha -= smoothstep(1.0 - delta, 1.0 + delta, radius);
978
+
979
+ float borderRadius = fragBorderRadius;
980
+ float ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius);
981
+ vec4 color = mix(fragColor, fragBorderColor, ratio);
982
+ color.a *= alpha * opacity;
983
+ gl_FragColor = color;
984
+ }
985
+ `]),E.vert=f0([`precision highp float;
986
+ #define GLSLIFY 1
987
+
988
+ attribute float x, y, xFract, yFract;
989
+ attribute float size, borderSize;
990
+ attribute vec4 colorId, borderColorId;
991
+ attribute float isActive;
992
+
993
+ uniform bool constPointSize;
994
+ uniform float pixelRatio;
995
+ uniform vec2 paletteSize, scale, scaleFract, translate, translateFract;
996
+ uniform sampler2D paletteTexture;
997
+
998
+ const float maxSize = 100.;
999
+
1000
+ varying vec4 fragColor, fragBorderColor;
1001
+ varying float fragBorderRadius, fragWidth;
1002
+
1003
+ float pointSizeScale = (constPointSize) ? 2. : pixelRatio;
1004
+
1005
+ bool isDirect = (paletteSize.x < 1.);
1006
+
1007
+ vec4 getColor(vec4 id) {
1008
+ return isDirect ? id / 255. : texture2D(paletteTexture,
1009
+ vec2(
1010
+ (id.x + .5) / paletteSize.x,
1011
+ (id.y + .5) / paletteSize.y
1012
+ )
1013
+ );
1014
+ }
1015
+
1016
+ void main() {
1017
+ // ignore inactive points
1018
+ if (isActive == 0.) return;
1019
+
1020
+ vec2 position = vec2(x, y);
1021
+ vec2 positionFract = vec2(xFract, yFract);
1022
+
1023
+ vec4 color = getColor(colorId);
1024
+ vec4 borderColor = getColor(borderColorId);
1025
+
1026
+ float size = size * maxSize / 255.;
1027
+ float borderSize = borderSize * maxSize / 255.;
1028
+
1029
+ gl_PointSize = (size + borderSize) * pointSizeScale;
1030
+
1031
+ vec2 pos = (position + translate) * scale
1032
+ + (positionFract + translateFract) * scale
1033
+ + (position + translate) * scaleFract
1034
+ + (positionFract + translateFract) * scaleFract;
1035
+
1036
+ gl_Position = vec4(pos * 2. - 1., 0., 1.);
1037
+
1038
+ fragBorderRadius = 1. - 2. * borderSize / (size + borderSize);
1039
+ fragColor = color;
1040
+ fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;
1041
+ fragWidth = 1. / gl_PointSize;
1042
+ }
1043
+ `]),NO&&(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,NQ(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=RQ(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=VQ(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(qQ(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=YQ(De,"float64");var Qe=We.count=Math.floor(De.length/2),ct=We.bounds=Qe?GQ(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=HQ(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=c0.float32(De);be({data:Ht,usage:"dynamic"});var qt=c0.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=c0.fract(We.scale),We.translateFract=c0.fract(We.translate),De},viewport:function(De){var We=XQ(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=jQ(c,"uint8");var d=WQ(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 ZQ=Al,KQ=function(t,r){var n=new QQ(t,r),i=n.render.bind(n);return ZQ(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},fre=KQ,$S={exports:{}};$S.exports=Bg;$S.exports.default=Bg;function Bg(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=RR(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=nZ(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 Od(a,o,r,l,s,m),o}function RR(e,t,r,n,i){var a,o;if(i===A_(e,t,r,n)>0)for(a=t;a<r;a+=n)o=LO(a,e[a],e[a+1],o);else for(a=r-n;a>=t;a-=n)o=LO(a,e[a],e[a+1],o);return o&&zg(o,o.next)&&(Md(o),o=o.next),o}function cu(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(zg(r,r.next)||Ur(r.prev,r,r.next)===0)){if(Md(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function Od(e,t,r,n,i,a,o){if(!!e){!o&&a&&lZ(e,n,i,a);for(var l=e,s,c;e.prev!==e.next;){if(s=e.prev,c=e.next,a?eZ(e,n,i,a):JQ(e)){t.push(s.i/r),t.push(e.i/r),t.push(c.i/r),Md(e),e=c.next,l=c.next;continue}if(e=c,e===l){o?o===1?(e=tZ(cu(e),t,r),Od(e,t,r,n,i,a,2)):o===2&&rZ(e,t,r,n,i,a):Od(cu(e),t,r,n,i,a,1);break}}}}function JQ(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(Ys(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 eZ(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=S_(l,s,t,r,n),g=S_(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&&Ys(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&&Ys(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&&Ys(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&&Ys(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 tZ(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!zg(i,a)&&NR(i,n,n.next,a)&&kd(i,a)&&kd(a,i)&&(t.push(i.i/r),t.push(n.i/r),t.push(a.i/r),Md(n),Md(n.next),n=e=a),n=n.next}while(n!==e);return cu(n)}function rZ(e,t,r,n,i,a){var o=e;do{for(var l=o.next.next;l!==o.prev;){if(o.i!==l.i&&cZ(o,l)){var s=LR(o,l);o=cu(o,o.next),s=cu(s,s.next),Od(o,t,r,n,i,a),Od(s,t,r,n,i,a);return}l=l.next}o=o.next}while(o!==e)}function nZ(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=RR(e,l,s,n,!1),c===c.next&&(c.steiner=!0),i.push(fZ(c));for(i.sort(iZ),a=0;a<i.length;a++)r=aZ(i[a],r),r=cu(r,r.next);return r}function iZ(e,t){return e.x-t.x}function aZ(e,t){var r=oZ(e,t);if(!r)return t;var n=LR(r,e),i=cu(r,r.next);return cu(n,n.next),t===r?i:t}function oZ(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&&Ys(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),kd(r,e)&&(g<y||g===y&&(r.x>o.x||r.x===o.x&&uZ(o,r)))&&(o=r,y=g)),r=r.next;while(r!==s);return o}function uZ(e,t){return Ur(e.prev,e,t.prev)<0&&Ur(t.next,e,e.next)<0}function lZ(e,t,r,n){var i=e;do i.z===null&&(i.z=S_(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,sZ(i)}function sZ(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 S_(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 fZ(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 Ys(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 cZ(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!hZ(e,t)&&(kd(e,t)&&kd(t,e)&&dZ(e,t)&&(Ur(e.prev,e,t.prev)||Ur(e,t.prev,t))||zg(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 zg(e,t){return e.x===t.x&&e.y===t.y}function NR(e,t,r,n){var i=d0(Ur(e,t,r)),a=d0(Ur(e,t,n)),o=d0(Ur(r,n,e)),l=d0(Ur(r,n,t));return!!(i!==a&&o!==l||i===0&&h0(e,r,t)||a===0&&h0(e,n,t)||o===0&&h0(r,e,n)||l===0&&h0(r,t,n))}function h0(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 d0(e){return e>0?1:e<0?-1:0}function hZ(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&&NR(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function kd(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 dZ(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 LR(e,t){var r=new E_(e.i,e.x,e.y),n=new E_(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 LO(e,t,r,n){var i=new E_(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 Md(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 E_(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}Bg.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,o=Math.abs(A_(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(A_(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 A_(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}Bg.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 pZ=up,vZ=mZ;function mZ(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=pZ(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 gZ=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")},Zx,DO;function DR(){if(DO)return Zx;DO=1;var e=Object.create,t=Object.getPrototypeOf,r={};return Zx=function(){var n=Object.setPrototypeOf,i=arguments[0]||e;return typeof n!="function"?!1:t(n(i(null),r))===r},Zx}var Kx,$O;function yZ(){if($O)return Kx;$O=1;var e=Object.create,t;return DR()()||(t=$R()),Kx=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)})}(),Kx}var Jx,BO;function $R(){if(BO)return Jx;BO=1;var e=R2,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")},Jx=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)}()),yZ(),Jx}var eb,zO;function BS(){return zO||(zO=1,eb=DR()()?Object.setPrototypeOf:$R()),eb}var tb,UO;function xZ(){if(UO)return tb;UO=1;var e=R2;return tb=function(t){if(!e(t))throw new TypeError(t+" is not an Object");return t},tb}var rb,jO;function bZ(){if(jO)return rb;jO=1;var e=Object.create(null),t=Math.random;return rb=function(){var r;do r=t().toString(36).slice(2);while(e[r]);return r},rb}var nb={exports:{}},ib,GO;function wZ(){if(GO)return ib;GO=1;var e=Qi;return ib=function(){return e(this).length=0,this},ib}var ab,WO;function _Z(){if(WO)return ab;WO=1;var e=Lf,t=N2,r=Object.prototype.toString;return ab=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}},ab}var ob,HO;function SZ(){return HO||(HO=1,ob=function(e){try{return e.toString()}catch{try{return String(e)}catch{return null}}}),ob}var ub,VO;function EZ(){if(VO)return ub;VO=1;var e=SZ(),t=/[\n\r\u2028\u2029]/g;return ub=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`
1044
+ `:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),n)},ub}var lb,qO;function BR(){if(qO)return lb;qO=1;var e=Lf,t=N2,r=_Z(),n=EZ(),i=function(a,o){return a.replace("%v",n(o))};return lb=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))},lb}var sb,YO;function AZ(){if(YO)return sb;YO=1;var e=BR(),t=Lf;return sb=function(r){return t(r)?r:e(r,"Cannot use %v",arguments[1])},sb}var fb,XO;function TZ(){if(XO)return fb;XO=1;var e=BR(),t=UM;return fb=function(r){return t(r)?r:e(r,"%v is not a plain function",arguments[1])},fb}var cb,QO;function CZ(){if(QO)return cb;QO=1;var e=cg(),t=ug,r=Qi;return cb=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},cb}var hb,ZO;function OZ(){if(ZO)return hb;ZO=1;var e=Lf,t=AZ(),r=TZ(),n=CZ(),i=F2,a=D2(),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},hb=function(d){var y=i(arguments[1]);return e(y.resolveContext)&&r(y.resolveContext),a(d,function(g,m){return c(m,g,y)})},hb}var db,KO;function zR(){if(KO)return db;KO=1;var e=wZ(),t=ug,r=_a,n=Qi,i=Fi.exports,a=OZ(),o=Pl(),l=Object.defineProperty,s=Object.defineProperties,c;return db=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})),db}var JO;function kZ(){if(JO)return nb.exports;JO=1;var e=BS(),t=jM,r=Fi.exports,n=Pl(),i=zR(),a=Object.defineProperty,o;return o=nb.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")),nb.exports}var pb={exports:{}},e5;function MZ(){if(e5)return pb.exports;e5=1;var e=BS(),t=Fi.exports,r=Pl(),n=zR(),i=Object.defineProperty,a;return a=pb.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")),pb.exports}var vb,t5;function IZ(){if(t5)return vb;t5=1;var e=sg(),t=no,r=fg(),n=Pl().iterator,i=Array.isArray;return vb=function(a){return t(a)?i(a)||r(a)||e(a)?!0:typeof a[n]=="function":!1},vb}var mb,r5;function PZ(){if(r5)return mb;r5=1;var e=IZ();return mb=function(t){if(!e(t))throw new TypeError(t+" is not iterable");return t},mb}var gb,n5;function UR(){if(n5)return gb;n5=1;var e=sg(),t=fg(),r=kZ(),n=MZ(),i=PZ(),a=Pl().iterator;return gb=function(o){return typeof i(o)[a]=="function"?o[a]():e(o)?new r(o):t(o)?new n(o):new r(o)},gb}var yb,i5;function FZ(){if(i5)return yb;i5=1;var e=sg(),t=_a,r=fg(),n=UR(),i=Array.isArray,a=Function.prototype.call,o=Array.prototype.some;return yb=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()}},yb}var xb,a5;function RZ(){return a5||(a5=1,xb=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()),xb}var bb,o5;function NZ(){if(o5)return bb;o5=1;var e=no,t=BS(),r=xZ(),n=Qi,i=bZ(),a=Fi.exports,o=UR(),l=FZ(),s=Pl().toStringTag,c=RZ(),d=Array.isArray,y=Object.defineProperty,g=Object.prototype.hasOwnProperty,m=Object.getPrototypeOf,E;return bb=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")),bb}var jR=gZ()?WeakMap:NZ(),LZ=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 p0=Dg,DZ=up,T_=Al,Ms=IR,$Z=yu,BZ=lp,u5=$S.exports,zZ=vZ,{float32:UZ,fract32:wb}=fu.exports,jZ=jR,l5=Lg,GZ=LZ;var cre=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 jZ;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(T_({vert:Ms("./rect-vert.glsl"),frag:Ms("./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(T_({cull:{enable:!0,face:"back"},vert:Ms("./miter-vert.glsl"),frag:Ms("./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:Ms("./fill-vert.glsl"),frag:Ms("./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=$Z(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=T_({},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?p0(i.fill,"uint8"):null),i.viewport!=null&&(o.viewport=l5(i.viewport)),o.viewport||(o.viewport=l5([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=BZ(i.positions,"float64"),d=o.count=Math.floor(c.length/2);let y=o.bounds=DZ(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=GZ(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=u5(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=u5(E,o.hole||[]);for(let _=0,C=w.length;_<C;_++)M[w[_]]!=null&&(w[_]=M[w[_]]);o.triangles=w}}let g=new Float64Array(c);zZ(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=UZ(m);o.positionBuffer(l);var s=wb(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=wb(o.scale),o.translateFract=wb(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=p0(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=p0(d[g],"uint8");y.set(m,g*4)}y.set(p0(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 WZ=up,HZ=Dg,VZ=PR,qZ=yu,s5=Al,f5=lp,{float32:YZ,fract32:_b}=fu.exports;var hre=XZ;const c5=[[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 XZ(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:c5}),E(t),n=e({vert:`
1045
+ precision highp float;
1046
+
1047
+ attribute vec2 position, positionFract;
1048
+ attribute vec4 error;
1049
+ attribute vec4 color;
1050
+
1051
+ attribute vec2 direction, lineOffset, capOffset;
1052
+
1053
+ uniform vec4 viewport;
1054
+ uniform float lineWidth, capSize;
1055
+ uniform vec2 scale, scaleFract, translate, translateFract;
1056
+
1057
+ varying vec4 fragColor;
1058
+
1059
+ void main() {
1060
+ fragColor = color / 255.;
1061
+
1062
+ vec2 pixelOffset = lineWidth * lineOffset + (capSize + lineWidth) * capOffset;
1063
+
1064
+ vec2 dxy = -step(.5, direction.xy) * error.xz + step(direction.xy, vec2(-.5)) * error.yw;
1065
+
1066
+ vec2 position = position + dxy;
1067
+
1068
+ vec2 pos = (position + translate) * scale
1069
+ + (positionFract + translateFract) * scale
1070
+ + (position + translate) * scaleFract
1071
+ + (positionFract + translateFract) * scaleFract;
1072
+
1073
+ pos += pixelOffset / viewport.zw;
1074
+
1075
+ gl_Position = vec4(pos * 2. - 1., 0, 1);
1076
+ }
1077
+ `,frag:`
1078
+ precision highp float;
1079
+
1080
+ varying vec4 fragColor;
1081
+
1082
+ uniform float opacity;
1083
+
1084
+ void main() {
1085
+ gl_FragColor = fragColor;
1086
+ gl_FragColor.a *= opacity;
1087
+ }
1088
+ `,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:c5.length}),s5(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=qZ(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=s5({},c,R)),VZ(Y,R,[{lineWidth:j=>+j*.5,capSize:j=>+j*.5,opacity:parseFloat,errors:j=>(j=f5(j),_+=j.length,j),positions:(j,re)=>(j=f5(j,"float64"),re.count=Math.floor(j.length/2),re.bounds=WZ(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=HZ(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=_b(re.scale),re.translateFract=_b(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=YZ(D);i(C);var T=_b(D,C);a(T),o(Y),l(j)}}function M(){i.destroy(),a.destroy(),o.destroy(),l.destroy(),s.destroy()}}var h5=/[\'\"]/,QZ=function(t){return t?(h5.test(t.charAt(0))&&(t=t.substr(1)),h5.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""};const GR=["inherit","initial","unset"],WR=["caption","icon","menu","message-box","small-caption","status-bar"],HR=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"],VR=["normal","italic","oblique"],qR=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"];function YR(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 XR(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 zS(e,t){return Array.isArray(e)?XR(e,t):YR(e,t)}zS.parse=YR;zS.stringify=XR;var ZZ=zS,d5=ZZ,KZ=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=d5.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]=d5.stringify(i,{flat:!0});return o};const JZ=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"];var eK=JZ,QR={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||eK.indexOf(t)!==-1}},tK=QZ,rK=GR,nK=WR,iK=HR,aK=VR,oK=qR,Sb=KZ,uK=QR.isSize,lK=ZR,wh=ZR.cache={};function ZR(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(wh[e])return wh[e];if(e==="")throw new Error("Cannot parse an empty string.");if(nK.indexOf(e)!==-1)return wh[e]={system:e};for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},r=Sb(e,/\s+/),n;n=r.shift();){if(rK.indexOf(n)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=n}),wh[e]=t;if(aK.indexOf(n)!==-1){t.style=n;continue}if(n==="normal"||n==="small-caps"){t.variant=n;continue}if(oK.indexOf(n)!==-1){t.stretch=n;continue}if(iK.indexOf(n)!==-1){t.weight=n;continue}if(uK(n)){var i=Sb(n,"/");if(t.size=i[0],i[1]!=null?t.lineHeight=p5(i[1]):r[0]==="/"&&(r.shift(),t.lineHeight=p5(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=Sb(r.join(" "),/\s*,\s*/).map(tK),wh[e]=t}throw new Error("Unknown or unsupported font token: "+n)}throw new Error("Missing required font-size.")}function p5(e){var t=parseFloat(e);return t.toString()===e?t:e}var sK=yu,fK=QR.isSize,cK=sp(GR),hK=sp(WR),dK=sp(HR),pK=sp(VR),vK=sp(qR),mK={normal:1,"small-caps":1},gK={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},Eb={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"},KR=function(t){if(t=sK(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&&_h(t.system,hK),t.system;if(_h(t.style,pK),_h(t.variant,mK),_h(t.weight,dK),_h(t.stretch,vK),t.size==null&&(t.size=Eb.size),typeof t.size=="number"&&(t.size+="px"),!fK)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=Eb.family),Array.isArray(t.family)&&(t.family.length||(t.family=[Eb.family]),t.family=t.family.map(function(n){return gK[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 _h(e,t){if(e&&!t[e]&&!cK[e])throw Error("Unknown keyword `"+e+"`");return e}function sp(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=1;return t}var yK={parse:lK,stringify:KR},JR={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]&&lt(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,`;
1089
+ `).replace(/}/g,`}
1090
+ `).replace(/{/g,`{
1091
+ `),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})})(JR);var xK=yu,bK=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},m5(t)?t={container:t}:wK(t)?t={container:t}:_K(t)?t={gl:t}:t=xK(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}m5(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=g5(),t.container.appendChild(t.canvas),v5(t))}else if(!t.canvas)if(typeof document<"u")t.container=document.body||document.documentElement,t.canvas=g5(),t.container.appendChild(t.canvas),v5(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 v5(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 m5(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function wK(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function _K(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function g5(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}var SK=KR,EK=[32,126],AK=TK;function TK(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||EK;if(n&&typeof n!="string"&&(n=SK(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={},US=32;jr.INT_BITS=US;jr.INT_MAX=2147483647;jr.INT_MIN=-1<<US-1;jr.sign=function(e){return(e>0)-(e<0)};jr.abs=function(e){var t=e>>US-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 e4(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=e4;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 Nh=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}})(Nh);jr.reverse=function(e){return Nh[e&255]<<24|Nh[e>>>8&255]<<16|Nh[e>>>16&255]<<8|Nh[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>>>e4(e)+1};function t4(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]=t4(e,t,r+1);return i}function CK(e,t){var r,n;for(r=new Array(e),n=0;n<e;++n)r[n]=t;return r}function OK(e,t){switch(typeof t>"u"&&(t=0),typeof e){case"number":if(e>0)return CK(e|0,t);break;case"object":if(typeof e.length=="number")return t4(e,t,0);break}return[]}var kK=OK,r4={},Ug={};Ug.byteLength=PK;Ug.toByteArray=RK;Ug.fromByteArray=DK;var sa=[],Ei=[],MK=typeof Uint8Array<"u"?Uint8Array:Array,Ab="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Is=0,IK=Ab.length;Is<IK;++Is)sa[Is]=Ab[Is],Ei[Ab.charCodeAt(Is)]=Is;Ei["-".charCodeAt(0)]=62;Ei["_".charCodeAt(0)]=63;function n4(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 PK(e){var t=n4(e),r=t[0],n=t[1];return(r+n)*3/4-n}function FK(e,t,r){return(t+r)*3/4-r}function RK(e){var t,r=n4(e),n=r[0],i=r[1],a=new MK(FK(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 NK(e){return sa[e>>18&63]+sa[e>>12&63]+sa[e>>6&63]+sa[e&63]}function LK(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(NK(n));return i.join("")}function DK(e){for(var t,r=e.length,n=r%3,i=[],a=16383,o=0,l=r-n;o<l;o+=a)i.push(LK(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 jS={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */jS.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)};jS.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};/*!
1092
+ * The buffer module from node.js, for the browser.
1093
+ *
1094
+ * @author Feross Aboukhadijeh <https://feross.org>
1095
+ * @license MIT
1096
+ */(function(e){var t=Ug,r=jS;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}})(r4);var hu=jr,Tn=kK,i4=r4.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 $K=typeof Uint8ClampedArray<"u",BK=typeof BigUint64Array<"u",zK=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 jg=Xr.DATA,Gg=Xr.BUFFER;pr.free=function(t){if(i4.isBuffer(t))Gg[hu.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=hu.log2(r)|0;jg[n].push(t)}};function a4(e){if(!!e){var t=e.length||e.byteLength,r=hu.log2(t);jg[r].push(e)}}function UK(e){a4(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=UK;pr.freeArrayBuffer=a4;pr.freeBuffer=function(t){Gg[hu.log2(t.length)].push(t)};pr.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return ri(t);switch(r){case"uint8":return GS(t);case"uint16":return o4(t);case"uint32":return u4(t);case"int8":return l4(t);case"int16":return s4(t);case"int32":return f4(t);case"float":case"float32":return c4(t);case"double":case"float64":return h4(t);case"uint8_clamped":return d4(t);case"bigint64":return v4(t);case"biguint64":return p4(t);case"buffer":return g4(t);case"data":case"dataview":return m4(t);default:return null}return null};function ri(t){var t=hu.nextPow2(t),r=hu.log2(t),n=jg[r];return n.length>0?n.pop():new ArrayBuffer(t)}pr.mallocArrayBuffer=ri;function GS(e){return new Uint8Array(ri(e),0,e)}pr.mallocUint8=GS;function o4(e){return new Uint16Array(ri(2*e),0,e)}pr.mallocUint16=o4;function u4(e){return new Uint32Array(ri(4*e),0,e)}pr.mallocUint32=u4;function l4(e){return new Int8Array(ri(e),0,e)}pr.mallocInt8=l4;function s4(e){return new Int16Array(ri(2*e),0,e)}pr.mallocInt16=s4;function f4(e){return new Int32Array(ri(4*e),0,e)}pr.mallocInt32=f4;function c4(e){return new Float32Array(ri(4*e),0,e)}pr.mallocFloat32=pr.mallocFloat=c4;function h4(e){return new Float64Array(ri(8*e),0,e)}pr.mallocFloat64=pr.mallocDouble=h4;function d4(e){return $K?new Uint8ClampedArray(ri(e),0,e):GS(e)}pr.mallocUint8Clamped=d4;function p4(e){return BK?new BigUint64Array(ri(8*e),0,e):null}pr.mallocBigUint64=p4;function v4(e){return zK?new BigInt64Array(ri(8*e),0,e):null}pr.mallocBigInt64=v4;function m4(e){return new DataView(ri(e),0,e)}pr.mallocDataView=m4;function g4(e){e=hu.nextPow2(e);var t=hu.log2(e),r=Gg[t];return r.length>0?r.pop():new i4(e)}pr.mallocBuffer=g4;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,jg[t].length=0,Gg[t].length=0};var y4=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},jK=y4,GK=x4,Sh=96;function C_(e,t){var r=jK(getComputedStyle(e).getPropertyValue(t));return r[0]*x4(r[1],e)}function WK(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var n=C_(r,"font-size")/128;return t.removeChild(r),n}function x4(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 WK(e,t);case"em":return C_(t,"font-size");case"rem":return C_(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 Sh;case"cm":return Sh/2.54;case"mm":return Sh/25.4;case"pt":return Sh/72;case"pc":return Sh/6}return 1}var HK=Wg,VK=Wg.canvas=document.createElement("canvas"),v0=VK.getContext("2d"),b4=Um([32,126]);Wg.createPairs=Um;Wg.ascii=b4;function Wg(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},n,i=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?n=Um(t):Array.isArray(t)?n=t:(t.o?n=Um(t.o):t.pairs&&(n=t.pairs),t.fontSize&&(i=t.fontSize),t.threshold!=null&&(a=t.threshold))),n||(n=b4),v0.font=i+"px "+e;for(var o=0;o<n.length;o++){var l=n[o],s=v0.measureText(l[0]).width+v0.measureText(l[1]).width,c=v0.measureText(l).width;if(Math.abs(s-c)>i*a){var d=(c-s)/i;r[l]=d*1e3}}return r}function Um(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 qK=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 y5(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=x5(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=x5(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,y5(m,l)}function y5(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 x5(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 Ps=yK,YK=yu,XK=JR.exports,QK=bK,ZK=jR,Tb=Dg,KK=AK,Ro=pr,JK=Lg,eJ=kR,tJ=y4,rJ=GK,nJ=HK,iJ=Al,aJ=qK,oJ=lp,uJ=jr,b5=uJ.nextPow2,w5=new ZK,U0=!1;if(document.body){var Cb=document.body.appendChild(document.createElement("div"));Cb.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(Cb).fontStretch&&(U0=!0),document.body.removeChild(Cb)}var xr=function(t){lJ(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=QK(t),this.shader=w5.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||XK({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(),w5.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(eJ(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:`
1097
+ precision highp float;
1098
+ attribute float width, charOffset, char;
1099
+ attribute vec2 position;
1100
+ uniform float fontSize, charStep, em, align, baseline;
1101
+ uniform vec4 viewport;
1102
+ uniform vec4 color;
1103
+ uniform vec2 atlasSize, atlasDim, scale, translate, positionOffset;
1104
+ varying vec2 charCoord, charId;
1105
+ varying float charWidth;
1106
+ varying vec4 fontColor;
1107
+ void main () {
1108
+ vec2 offset = floor(em * (vec2(align + charOffset, baseline)
1109
+ + vec2(positionOffset.x, -positionOffset.y)))
1110
+ / (viewport.zw * scale.xy);
1111
+
1112
+ vec2 position = (position + translate) * scale;
1113
+ position += offset * scale;
1114
+
1115
+ charCoord = position * viewport.zw + viewport.xy;
1116
+
1117
+ gl_Position = vec4(position * 2. - 1., 0, 1);
1118
+
1119
+ gl_PointSize = charStep;
1120
+
1121
+ charId.x = mod(char, atlasDim.x);
1122
+ charId.y = floor(char / atlasDim.x);
1123
+
1124
+ charWidth = width * em;
1125
+
1126
+ fontColor = color / 255.;
1127
+ }`,frag:`
1128
+ precision highp float;
1129
+ uniform float fontSize, charStep, opacity;
1130
+ uniform vec2 atlasSize;
1131
+ uniform vec4 viewport;
1132
+ uniform sampler2D atlas;
1133
+ varying vec4 fontColor;
1134
+ varying vec2 charCoord, charId;
1135
+ varying float charWidth;
1136
+
1137
+ float lightness(vec4 color) {
1138
+ return color.r * 0.299 + color.g * 0.587 + color.b * 0.114;
1139
+ }
1140
+
1141
+ void main () {
1142
+ vec2 uv = gl_FragCoord.xy - charCoord + charStep * .5;
1143
+ float halfCharStep = floor(charStep * .5 + .5);
1144
+
1145
+ // invert y and shift by 1px (FF expecially needs that)
1146
+ uv.y = charStep - uv.y;
1147
+
1148
+ // ignore points outside of character bounding box
1149
+ float halfCharWidth = ceil(charWidth * .5);
1150
+ if (floor(uv.x) > halfCharStep + halfCharWidth ||
1151
+ floor(uv.x) < halfCharStep - halfCharWidth) return;
1152
+
1153
+ uv += charId * charStep;
1154
+ uv = uv / atlasSize;
1155
+
1156
+ vec4 color = fontColor;
1157
+ vec4 mask = texture2D(atlas, uv);
1158
+
1159
+ float maskY = lightness(mask);
1160
+ // float colorY = lightness(color);
1161
+ color.a *= maskY;
1162
+ color.a *= opacity;
1163
+
1164
+ // color.a += .1;
1165
+
1166
+ // antialiasing, see yiq color space y-channel formula
1167
+ // color.rgb += (1. - color.rgb) * (1. - mask.rgb);
1168
+
1169
+ gl_FragColor = color;
1170
+ }`}),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=YK(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=JK(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=oJ(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=Ps.parse(Qe)}catch{Qe=Ps.parse(xr.baseFontSize+"px "+Qe)}else Qe=Ps.parse(Ps.stringify(Qe));var yt=Ps.stringify({size:xr.baseFontSize,family:Qe.family,stretch:U0?Qe.stretch:void 0,variant:Qe.variant,weight:Qe.weight,style:Qe.style}),Ht=tJ(Qe.size),qt=Math.round(Ht[0]*rJ(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),U0&&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:aJ(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=Ps.stringify({size:r.fontSize[ct],family:Qe.family,stretch:U0?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);iJ(Qe.kerning,nJ(Qe.family,{pairs:Ze}))}}})}if(t.position)if(t.position.length>2){for(var c=!t.position[0].length,d=Ro.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}),Ro.freeFloat(d)}else this.position.destroy&&this.position.destroy(),this.position={constant:t.position};if(t.text||n){var b=Ro.mallocUint8(this.count),w=Ro.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"}),Ro.freeUint8(b),Ro.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=b5(Ze*Ht),Ce=b5(At*Ht);yt.width=jt,yt.height=Ce,yt.rows=At,yt.cols=Ze,yt.em&&yt.texture({data:KK({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=Tb(t.color,"uint8");else{var ut;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var nt=t.color.length;ut=Ro.mallocUint8(nt);for(var De=(t.color.subarray||t.color.slice).bind(t.color),We=0;We<nt;We+=4)ut.set(Tb(De(We,We+4),"uint8"),We)}else{var _t=t.color.length;ut=Ro.mallocUint8(_t*4);for(var He=0;He<_t;He++)ut.set(Tb(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 lJ(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}var dre=xr;function sJ(e,t){return e.parent===t.parent?1:2}function fJ(e){return e.reduce(cJ,0)/e.length}function cJ(e,t){return e+t.x}function hJ(e){return 1+e.reduce(dJ,0)}function dJ(e,t){return Math.max(e,t.y)}function pJ(e){for(var t;t=e.children;)e=t[0];return e}function vJ(e){for(var t;t=e.children;)e=t[t.length-1];return e}function mJ(){var e=sJ,t=1,r=1,n=!1;function i(a){var o,l=0;a.eachAfter(function(g){var m=g.children;m?(g.x=fJ(m),g.y=hJ(m)):(g.x=o?l+=e(g,o):0,g.y=0,o=g)});var s=pJ(a),c=vJ(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 gJ(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 yJ(){return this.eachAfter(gJ)}function xJ(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 bJ(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 wJ(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 _J(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 SJ(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function EJ(e){for(var t=this,r=AJ(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 AJ(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 TJ(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function CJ(){var e=[];return this.each(function(t){e.push(t)}),e}function OJ(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function kJ(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function WS(e,t){var r=new Cf(e),n=+e.value&&(r.value=e.value),i,a=[r],o,l,s,c;for(t==null&&(t=IJ);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 Cf(l[s])),o.parent=i,o.depth=i.depth+1;return r.eachBefore(w4)}function MJ(){return WS(this).eachBefore(PJ)}function IJ(e){return e.children}function PJ(e){e.data=e.data.data}function w4(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Cf(e){this.data=e,this.depth=this.height=0,this.parent=null}Cf.prototype=WS.prototype={constructor:Cf,count:yJ,each:xJ,eachAfter:wJ,eachBefore:bJ,sum:_J,sort:SJ,path:EJ,ancestors:TJ,descendants:CJ,leaves:OJ,links:kJ,copy:MJ};var FJ=Array.prototype.slice;function RJ(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 _4(e){for(var t=0,r=(e=RJ(FJ.call(e))).length,n=[],i,a;t<r;)i=e[t],a&&S4(a,i)?++t:(a=LJ(n=NJ(n,i)),t=0);return a}function NJ(e,t){var r,n;if(Ob(t,e))return[t];for(r=0;r<e.length;++r)if(m0(t,e[r])&&Ob(Lh(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(m0(Lh(e[r],e[n]),t)&&m0(Lh(e[r],t),e[n])&&m0(Lh(e[n],t),e[r])&&Ob(E4(e[r],e[n],t),e))return[e[r],e[n],t];throw new Error}function m0(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 S4(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 Ob(e,t){for(var r=0;r<t.length;++r)if(!S4(e,t[r]))return!1;return!0}function LJ(e){switch(e.length){case 1:return DJ(e[0]);case 2:return Lh(e[0],e[1]);case 3:return E4(e[0],e[1],e[2])}}function DJ(e){return{x:e.x,y:e.y,r:e.r}}function Lh(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 E4(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 _5(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 S5(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 E5(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 g0(e){this._=e,this.next=null,this.previous=null}function A4(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;_5(r,t,n=e[2]),t=new g0(t),r=new g0(r),n=new g0(n),t.next=n.previous=r,r.next=t.previous=n,n.next=r.previous=t;e:for(l=3;l<i;++l){_5(t._,r._,n=e[l]),n=new g0(n),s=r.next,c=t.previous,d=r._.r,y=t._.r;do if(d<=y){if(S5(s._,n._)){r=s,t.next=r,r.previous=t,--l;continue e}d+=s._.r,s=s.next}else{if(S5(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=E5(t);(n=n.next)!==r;)(o=E5(n))<a&&(t=n,a=o);r=t.next}for(t=[r._],n=r;(n=n.next)!==r;)t.push(n._);for(n=_4(t),l=0;l<i;++l)t=e[l],t.x-=n.x,t.y-=n.y;return n.r}function $J(e){return A4(e),e}function BJ(e){return e==null?null:jm(e)}function jm(e){if(typeof e!="function")throw new Error;return e}function tl(){return 0}function Ds(e){return function(){return e}}function zJ(e){return Math.sqrt(e.value)}function UJ(){var e=null,t=1,r=1,n=tl;function i(a){return a.x=t/2,a.y=r/2,e?a.eachBefore(A5(e)).eachAfter(kb(n,.5)).eachBefore(T5(1)):a.eachBefore(A5(zJ)).eachAfter(kb(tl,1)).eachAfter(kb(n,a.r/Math.min(t,r))).eachBefore(T5(Math.min(t,r)/(2*a.r))),a}return i.radius=function(a){return arguments.length?(e=BJ(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:Ds(+a),i):n},i}function A5(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function kb(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=A4(n),o)for(i=0;i<a;++i)n[i].r-=o;r.r=l+o}}}function T5(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 T4(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 fp(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 jJ(){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(T4),o}function a(o,l){return function(s){s.children&&fp(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 C5="$",GJ={depth:-1},O5={};function WJ(e){return e.id}function HJ(e){return e.parentId}function VJ(){var e=WJ,t=HJ;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 Cf(i),(y=e(i,a,n))!=null&&(y+="")&&(g=C5+(c.id=y),m[g]=g in m?O5: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[C5+y],!s)throw new Error("missing: "+y);if(s===O5)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=GJ,l.eachBefore(function(E){E.depth=E.parent.depth+1,--o}).eachBefore(w4),l.parent=null,o>0)throw new Error("cycle");return l}return r.id=function(n){return arguments.length?(e=jm(n),r):e},r.parentId=function(n){return arguments.length?(t=jm(n),r):t},r}function qJ(e,t){return e.parent===t.parent?1:2}function Mb(e){var t=e.children;return t?t[0]:e.t}function Ib(e){var t=e.children;return t?t[t.length-1]:e.t}function YJ(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 XJ(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 QJ(e,t,r){return e.a.parent===t.parent?e.a:r}function j0(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}j0.prototype=Object.create(Cf.prototype);function ZJ(e){for(var t=new j0(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 j0(a[o],o)),i.parent=r;return(t.parent=new j0(null,0)).children=[t],t}function KJ(){var e=qJ,t=1,r=1,n=null;function i(c){var d=ZJ(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){XJ(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=Ib(E),g=Mb(g),E&&g;)M=Mb(M),m=Ib(m),m.a=c,T=E.z+_-g.z-b+e(E._,g._),T>0&&(YJ(QJ(E,c,y),c,T),b+=T,w+=T),_+=E.m,b+=g.m,C+=M.m,w+=m.m;E&&!Ib(m)&&(m.t=E,m.m+=_-w),g&&!Mb(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 Hg(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 C4=(1+Math.sqrt(5))/2;function O4(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?fp(s,r,n,i,M?n+=E*b/M:a):Hg(s,r,n,M?r+=m*b/M:i,a),M-=b,d=y}return o}const k4=function e(t){function r(n,i,a,o,l){O4(t,n,i,a,o,l)}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(C4);function JJ(){var e=k4,t=!1,r=1,n=1,i=[0],a=tl,o=tl,l=tl,s=tl,c=tl;function d(g){return g.x0=g.y0=0,g.x1=r,g.y1=n,g.eachBefore(y),i=[0],t&&g.eachBefore(T4),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=jm(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:Ds(+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:Ds(+g),d):o},d.paddingRight=function(g){return arguments.length?(l=typeof g=="function"?g:Ds(+g),d):l},d.paddingBottom=function(g){return arguments.length?(s=typeof g=="function"?g:Ds(+g),d):s},d.paddingLeft=function(g){return arguments.length?(c=typeof g=="function"?g:Ds(+g),d):c},d}function eee(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 tee(e,t,r,n,i){(e.depth&1?Hg:fp)(e,t,r,n,i)}const ree=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?fp(c,i,a,o,a+=(l-a)*c.value/M):Hg(c,i,a,i+=(o-i)*c.value/M,l),M-=c.value}else n._squarify=s=O4(t,n,i,a,o,l),s.ratio=t}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(C4),nee=Object.freeze(Object.defineProperty({__proto__:null,cluster:mJ,hierarchy:WS,pack:UJ,packSiblings:$J,packEnclose:_4,partition:jJ,stratify:VJ,tree:KJ,treemap:JJ,treemapBinary:eee,treemapDice:fp,treemapSlice:Hg,treemapSliceDice:tee,treemapSquarify:k4,treemapResquarify:ree},Symbol.toStringTag,{value:"Module"})),pre=El(nee);function zf(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function cp(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function xu(){}var _l=.7,Of=1/_l,ff="\\s*([+-]?\\d+)\\s*",Id="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ya="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",iee=/^#([0-9a-f]{3,8})$/,aee=new RegExp("^rgb\\("+[ff,ff,ff]+"\\)$"),oee=new RegExp("^rgb\\("+[ya,ya,ya]+"\\)$"),uee=new RegExp("^rgba\\("+[ff,ff,ff,Id]+"\\)$"),lee=new RegExp("^rgba\\("+[ya,ya,ya,Id]+"\\)$"),see=new RegExp("^hsl\\("+[Id,ya,ya]+"\\)$"),fee=new RegExp("^hsla\\("+[Id,ya,ya,Id]+"\\)$"),k5={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};zf(xu,Pd,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:M5,formatHex:M5,formatHsl:cee,formatRgb:I5,toString:I5});function M5(){return this.rgb().formatHex()}function cee(){return M4(this).formatHsl()}function I5(){return this.rgb().formatRgb()}function Pd(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=iee.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?P5(t):r===3?new kn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?y0(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?y0(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=aee.exec(e))?new kn(t[1],t[2],t[3],1):(t=oee.exec(e))?new kn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=uee.exec(e))?y0(t[1],t[2],t[3],t[4]):(t=lee.exec(e))?y0(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=see.exec(e))?N5(t[1],t[2]/100,t[3]/100,1):(t=fee.exec(e))?N5(t[1],t[2]/100,t[3]/100,t[4]):k5.hasOwnProperty(e)?P5(k5[e]):e==="transparent"?new kn(NaN,NaN,NaN,0):null}function P5(e){return new kn(e>>16&255,e>>8&255,e&255,1)}function y0(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=Pd(e)),e?(e=e.rgb(),new kn(e.r,e.g,e.b,e.opacity)):new kn}function Gm(e,t,r,n){return arguments.length===1?HS(e):new kn(e,t,r,n==null?1:n)}function kn(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}zf(kn,Gm,cp(xu,{brighter:function(e){return e=e==null?Of:Math.pow(Of,e),new kn(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?_l:Math.pow(_l,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:F5,formatHex:F5,formatRgb:R5,toString:R5}));function F5(){return"#"+Pb(this.r)+Pb(this.g)+Pb(this.b)}function R5(){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 Pb(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function N5(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 M4(e){if(e instanceof fa)return new fa(e.h,e.s,e.l,e.opacity);if(e instanceof xu||(e=Pd(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 O_(e,t,r,n){return arguments.length===1?M4(e):new fa(e,t,r,n==null?1:n)}function fa(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}zf(fa,O_,cp(xu,{brighter:function(e){return e=e==null?Of:Math.pow(Of,e),new fa(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?_l:Math.pow(_l,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(Fb(e>=240?e-240:e+120,i,n),Fb(e,i,n),Fb(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 Fb(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 I4=Math.PI/180,P4=180/Math.PI,Wm=18,F4=.96422,R4=1,N4=.82521,L4=4/29,cf=6/29,D4=3*cf*cf,hee=cf*cf*cf;function $4(e){if(e instanceof xa)return new xa(e.l,e.a,e.b,e.opacity);if(e instanceof Xa)return B4(e);e instanceof kn||(e=HS(e));var t=Db(e.r),r=Db(e.g),n=Db(e.b),i=Rb((.2225045*t+.7168786*r+.0606169*n)/R4),a,o;return t===r&&r===n?a=o=i:(a=Rb((.4360747*t+.3850649*r+.1430804*n)/F4),o=Rb((.0139322*t+.0971045*r+.7141733*n)/N4)),new xa(116*i-16,500*(a-i),200*(i-o),e.opacity)}function k_(e,t,r,n){return arguments.length===1?$4(e):new xa(e,t,r,n==null?1:n)}function xa(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}zf(xa,k_,cp(xu,{brighter:function(e){return new xa(this.l+Wm*(e==null?1:e),this.a,this.b,this.opacity)},darker:function(e){return new xa(this.l-Wm*(e==null?1:e),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=F4*Nb(t),e=R4*Nb(e),r=N4*Nb(r),new kn(Lb(3.1338561*t-1.6168667*e-.4906146*r),Lb(-.9787684*t+1.9161415*e+.033454*r),Lb(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));function Rb(e){return e>hee?Math.pow(e,1/3):e/D4+L4}function Nb(e){return e>cf?e*e*e:D4*(e-L4)}function Lb(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Db(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function dee(e){if(e instanceof Xa)return new Xa(e.h,e.c,e.l,e.opacity);if(e instanceof xa||(e=$4(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)*P4;return new Xa(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function M_(e,t,r,n){return arguments.length===1?dee(e):new Xa(e,t,r,n==null?1:n)}function Xa(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function B4(e){if(isNaN(e.h))return new xa(e.l,0,0,e.opacity);var t=e.h*I4;return new xa(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}zf(Xa,M_,cp(xu,{brighter:function(e){return new Xa(this.h,this.c,this.l+Wm*(e==null?1:e),this.opacity)},darker:function(e){return new Xa(this.h,this.c,this.l-Wm*(e==null?1:e),this.opacity)},rgb:function(){return B4(this).rgb()}}));var z4=-.14861,VS=1.78277,qS=-.29227,Vg=-.90649,Fd=1.97294,L5=Fd*Vg,D5=Fd*VS,$5=VS*qS-Vg*z4;function pee(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=($5*n+L5*t-D5*r)/($5+L5-D5),a=n-i,o=(Fd*(r-i)-qS*a)/Vg,l=Math.sqrt(o*o+a*a)/(Fd*i*(1-i)),s=l?Math.atan2(o,a)*P4-120:NaN;return new hl(s<0?s+360:s,l,i,e.opacity)}function I_(e,t,r,n){return arguments.length===1?pee(e):new hl(e,t,r,n==null?1:n)}function hl(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}zf(hl,I_,cp(xu,{brighter:function(e){return e=e==null?Of:Math.pow(Of,e),new hl(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?_l:Math.pow(_l,e),new hl(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*I4,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*(z4*n+VS*i)),255*(t+r*(qS*n+Vg*i)),255*(t+r*(Fd*n)),this.opacity)}}));function U4(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 j4(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 U4((r-n/t)*t,o,i,a,l)}}function G4(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 U4((r-n/t)*t,i,a,o,l)}}function qg(e){return function(){return e}}function W4(e,t){return function(r){return e+r*t}}function vee(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 Yg(e,t){var r=t-e;return r?W4(e,r>180||r<-180?r-360*Math.round(r/360):r):qg(isNaN(e)?t:e)}function mee(e){return(e=+e)==1?yn:function(t,r){return r-t?vee(t,r,e):qg(isNaN(t)?r:t)}}function yn(e,t){var r=t-e;return r?W4(e,r):qg(isNaN(e)?t:e)}const P_=function e(t){var r=mee(t);function n(i,a){var o=r((i=Gm(i)).r,(a=Gm(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 H4(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=Gm(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 gee=H4(j4),yee=H4(G4);function YS(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 V4(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function xee(e,t){return(V4(t)?YS:q4)(e,t)}function q4(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]=XS(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 Y4(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 X4(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]=XS(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var F_=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,$b=new RegExp(F_.source,"g");function bee(e){return function(){return e}}function wee(e){return function(t){return e(t)+""}}function Q4(e,t){var r=F_.lastIndex=$b.lastIndex=0,n,i,a,o=-1,l=[],s=[];for(e=e+"",t=t+"";(n=F_.exec(e))&&(i=$b.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=$b.lastIndex;return r<t.length&&(a=t.slice(r),l[o]?l[o]+=a:l[++o]=a),l.length<2?s[0]?wee(s[0].x):bee(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 XS(e,t){var r=typeof t,n;return t==null||r==="boolean"?qg(t):(r==="number"?la:r==="string"?(n=Pd(t))?(t=n,P_):Q4:t instanceof Pd?P_:t instanceof Date?Y4:V4(t)?YS:Array.isArray(t)?q4:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?X4:la)(e,t)}function _ee(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}function See(e,t){var r=Yg(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}function Eee(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var B5=180/Math.PI,R_={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Z4(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)*B5,skewX:Math.atan(s)*B5,scaleX:o,scaleY:l}}var Eh,Bb,z5,x0;function Aee(e){return e==="none"?R_:(Eh||(Eh=document.createElement("DIV"),Bb=document.documentElement,z5=document.defaultView),Eh.style.transform=e,e=z5.getComputedStyle(Bb.appendChild(Eh),null).getPropertyValue("transform"),Bb.removeChild(Eh),e=e.slice(7,-1).split(","),Z4(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))}function Tee(e){return e==null||(x0||(x0=document.createElementNS("http://www.w3.org/2000/svg","g")),x0.setAttribute("transform",e),!(e=x0.transform.baseVal.consolidate()))?R_:(e=e.matrix,Z4(e.a,e.b,e.c,e.d,e.e,e.f))}function K4(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 Cee=K4(Aee,"px, ","px)","deg)"),Oee=K4(Tee,", ",")",")"),Ah=Math.SQRT2,zb=2,U5=4,kee=1e-12;function j5(e){return((e=Math.exp(e))+1/e)/2}function Mee(e){return((e=Math.exp(e))-1/e)/2}function Iee(e){return((e=Math.exp(2*e))-1)/(e+1)}function Pee(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<kee)g=Math.log(l/i)/Ah,y=function(_){return[r+_*s,n+_*c,i*Math.exp(Ah*_*g)]};else{var m=Math.sqrt(d),E=(l*l-i*i+U5*d)/(2*i*zb*m),M=(l*l-i*i-U5*d)/(2*l*zb*m),b=Math.log(Math.sqrt(E*E+1)-E),w=Math.log(Math.sqrt(M*M+1)-M);g=(w-b)/Ah,y=function(_){var C=_*g,T=j5(b),R=i/(zb*m)*(T*Iee(Ah*C+b)-Mee(b));return[r+R*s,n+R*c,i*T/j5(Ah*C+b)]}}return y.duration=g*1e3,y}function J4(e){return function(t,r){var n=e((t=O_(t)).h,(r=O_(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 Fee=J4(Yg);var Ree=J4(yn);function Nee(e,t){var r=yn((e=k_(e)).l,(t=k_(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 eN(e){return function(t,r){var n=e((t=M_(t)).h,(r=M_(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 Lee=eN(Yg);var Dee=eN(yn);function tN(e){return function t(r){r=+r;function n(i,a){var o=e((i=I_(i)).h,(a=I_(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 $ee=tN(Yg);var Bee=tN(yn);function zee(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 Uee(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e(n/(t-1));return r}const jee=Object.freeze(Object.defineProperty({__proto__:null,interpolate:XS,interpolateArray:xee,interpolateBasis:j4,interpolateBasisClosed:G4,interpolateDate:Y4,interpolateDiscrete:_ee,interpolateHue:See,interpolateNumber:la,interpolateNumberArray:YS,interpolateObject:X4,interpolateRound:Eee,interpolateString:Q4,interpolateTransformCss:Cee,interpolateTransformSvg:Oee,interpolateZoom:Pee,interpolateRgb:P_,interpolateRgbBasis:gee,interpolateRgbBasisClosed:yee,interpolateHsl:Fee,interpolateHslLong:Ree,interpolateLab:Nee,interpolateHcl:Lee,interpolateHclLong:Dee,interpolateCubehelix:$ee,interpolateCubehelixLong:Bee,piecewise:zee,quantize:Uee},Symbol.toStringTag,{value:"Module"})),vre=El(jee);var Gee="Expected a function",rN="__lodash_hash_undefined__",nN=1/0,Wee=9007199254740991,Hee="[object Function]",Vee="[object GeneratorFunction]",qee="[object Symbol]",Yee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xee=/^\w*$/,Qee=/^\./,Zee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Kee=/[\\^$.*+?()[\]{}|]/g,Jee=/\\(\\)?/g,ete=/^\[object .+?Constructor\]$/,tte=/^(?:0|[1-9]\d*)$/,rte=typeof Ar=="object"&&Ar&&Ar.Object===Object&&Ar,nte=typeof self=="object"&&self&&self.Object===Object&&self,QS=rte||nte||Function("return this")();function ite(e,t){return e==null?void 0:e[t]}function ate(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var ote=Array.prototype,ute=Function.prototype,iN=Object.prototype,Ub=QS["__core-js_shared__"],G5=function(){var e=/[^.]+$/.exec(Ub&&Ub.keys&&Ub.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),aN=ute.toString,Xg=iN.hasOwnProperty,oN=iN.toString,lte=RegExp("^"+aN.call(Xg).replace(Kee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),W5=QS.Symbol,ste=ote.splice,fte=uN(QS,"Map"),Rd=uN(Object,"create"),H5=W5?W5.prototype:void 0,V5=H5?H5.toString:void 0;function Sl(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 cte(){this.__data__=Rd?Rd(null):{}}function hte(e){return this.has(e)&&delete this.__data__[e]}function dte(e){var t=this.__data__;if(Rd){var r=t[e];return r===rN?void 0:r}return Xg.call(t,e)?t[e]:void 0}function pte(e){var t=this.__data__;return Rd?t[e]!==void 0:Xg.call(t,e)}function vte(e,t){var r=this.__data__;return r[e]=Rd&&t===void 0?rN:t,this}Sl.prototype.clear=cte;Sl.prototype.delete=hte;Sl.prototype.get=dte;Sl.prototype.has=pte;Sl.prototype.set=vte;function Uf(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 mte(){this.__data__=[]}function gte(e){var t=this.__data__,r=Qg(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():ste.call(t,r,1),!0}function yte(e){var t=this.__data__,r=Qg(t,e);return r<0?void 0:t[r][1]}function xte(e){return Qg(this.__data__,e)>-1}function bte(e,t){var r=this.__data__,n=Qg(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}Uf.prototype.clear=mte;Uf.prototype.delete=gte;Uf.prototype.get=yte;Uf.prototype.has=xte;Uf.prototype.set=bte;function Dl(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 wte(){this.__data__={hash:new Sl,map:new(fte||Uf),string:new Sl}}function _te(e){return Zg(this,e).delete(e)}function Ste(e){return Zg(this,e).get(e)}function Ete(e){return Zg(this,e).has(e)}function Ate(e,t){return Zg(this,e).set(e,t),this}Dl.prototype.clear=wte;Dl.prototype.delete=_te;Dl.prototype.get=Ste;Dl.prototype.has=Ete;Dl.prototype.set=Ate;function Tte(e,t,r){var n=e[t];(!(Xg.call(e,t)&&lN(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function Qg(e,t){for(var r=e.length;r--;)if(lN(e[r][0],t))return r;return-1}function Cte(e){if(!Hm(e)||Rte(e))return!1;var t=$te(e)||ate(e)?lte:ete;return t.test(Dte(e))}function Ote(e,t,r,n){if(!Hm(e))return e;t=Pte(t,e)?[t]:Mte(t);for(var i=-1,a=t.length,o=a-1,l=e;l!=null&&++i<a;){var s=Lte(t[i]),c=r;if(i!=o){var d=l[s];c=n?n(d,s,l):void 0,c===void 0&&(c=Hm(d)?d:Ite(t[i+1])?[]:{})}Tte(l,s,c),l=l[s]}return e}function kte(e){if(typeof e=="string")return e;if(KS(e))return V5?V5.call(e):"";var t=e+"";return t=="0"&&1/e==-nN?"-0":t}function Mte(e){return sN(e)?e:Nte(e)}function Zg(e,t){var r=e.__data__;return Fte(t)?r[typeof t=="string"?"string":"hash"]:r.map}function uN(e,t){var r=ite(e,t);return Cte(r)?r:void 0}function Ite(e,t){return t=t==null?Wee:t,!!t&&(typeof e=="number"||tte.test(e))&&e>-1&&e%1==0&&e<t}function Pte(e,t){if(sN(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||KS(e)?!0:Xee.test(e)||!Yee.test(e)||t!=null&&e in Object(t)}function Fte(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Rte(e){return!!G5&&G5 in e}var Nte=ZS(function(e){e=zte(e);var t=[];return Qee.test(e)&&t.push(""),e.replace(Zee,function(r,n,i,a){t.push(i?a.replace(Jee,"$1"):n||r)}),t});function Lte(e){if(typeof e=="string"||KS(e))return e;var t=e+"";return t=="0"&&1/e==-nN?"-0":t}function Dte(e){if(e!=null){try{return aN.call(e)}catch{}try{return e+""}catch{}}return""}function ZS(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(Gee);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(ZS.Cache||Dl),r}ZS.Cache=Dl;function lN(e,t){return e===t||e!==e&&t!==t}var sN=Array.isArray;function $te(e){var t=Hm(e)?oN.call(e):"";return t==Hee||t==Vee}function Hm(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Bte(e){return!!e&&typeof e=="object"}function KS(e){return typeof e=="symbol"||Bte(e)&&oN.call(e)==qee}function zte(e){return e==null?"":kte(e)}function Ute(e,t,r){return e==null?e:Ote(e,t,r)}var mre=Ute;export{Kt as A,cr as B,ga as C,qte as D,Wte as E,PD as F,Ih as G,Gte as H,Hte as I,xg as J,Vte as K,Xte as L,QU as M,Zte as N,Qte as O,Yte as P,DU as Q,xn as R,V2 as S,mre as T,en as U,Kte as V,ere as a,are as b,ore as c,zH as d,dR as e,tre as f,rre as g,nre as h,NS as i,EY as j,lre as k,Dg as l,ire as m,ure as n,SR as o,_R as p,JR as q,Jte as r,sre as s,Rq as t,fre as u,cre as v,hre as w,dre as x,pre as y,vre as z};
1171
+ //# sourceMappingURL=vendor.cb50d8fc.js.map