@hpcc-js/composite 3.1.0 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,11 +1,4 @@
1
- var oh=Object.defineProperty;var c=(i,o)=>oh(i,"name",{value:o,configurable:!0}),xd=(i=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(i,{get:(o,l)=>(typeof require<"u"?require:o)[l]}):i)(function(i){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+i+'" is not supported')});var lh=(i,o)=>{for(var l in o)oh(i,l,{get:o[l],enumerable:!0})};var Ly="@hpcc-js/composite",Ay="3.1.0",Oy="3.2.0";import{HTMLWidget as ky}from"@hpcc-js/common";import{HTMLWidget as am}from"@hpcc-js/common";import{FAChar as sm,HTMLWidget as um}from"@hpcc-js/common";import{d3Event as Od,HTMLWidget as np,Platform as dm,select as Tr,selectAll as cm,Utility as hm}from"@hpcc-js/common";import{drag as pm}from"@hpcc-js/common";import{select as fm,selectAll as gm}from"@hpcc-js/common";import{HTMLWidget as mm}from"@hpcc-js/common";import{select as es}from"@hpcc-js/common";import{HTMLWidget as ym,Platform as op}from"@hpcc-js/common";import{HTMLWidget as bm}from"@hpcc-js/common";import{select as vm}from"@hpcc-js/common";import"@hpcc-js/common";import{Button as lp,IconBar as wm,ProgressBar as _m,Spacer as ap,SVGWidget as sp,Text as xm,TitleBar as Cm,ToggleButton as Wd,Utility as up}from"@hpcc-js/common";import{HTMLWidget as Ff}from"@hpcc-js/common";import{format as Yg,timeFormat as Xg,timeParse as Kg}from"@hpcc-js/common";var wf=Object.create,zd=Object.defineProperty,_f=Object.getOwnPropertyDescriptor,xf=Object.getOwnPropertyNames,Cf=Object.getPrototypeOf,Sf=Object.prototype.hasOwnProperty,u=c((i,o)=>zd(i,"name",{value:o,configurable:!0}),"i"),ni=c((i,o)=>()=>(o||i((o={exports:{}}).exports,o),o.exports),"ht"),kf=c((i,o,l,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let h of xf(o))!Sf.call(i,h)&&h!==l&&zd(i,h,{get:c(()=>o[h],"get"),enumerable:!(s=_f(o,h))||s.enumerable});return i},"Ch"),on=c((i,o,l)=>(l=i!=null?wf(Cf(i)):{},kf(o||!i||!i.__esModule?zd(l,"default",{value:i,enumerable:!0}):l,i)),"qt"),Tf=ni(i=>{"use strict";var o=Symbol.for("react.element"),l=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),m=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),I=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),z=Symbol.iterator;function R(x){return x===null||typeof x!="object"?null:(x=z&&x[z]||x["@@iterator"],typeof x=="function"?x:null)}c(R,"Nh"),u(R,"A");var M={isMounted:u(function(){return!1},"isMounted"),enqueueForceUpdate:u(function(){},"enqueueForceUpdate"),enqueueReplaceState:u(function(){},"enqueueReplaceState"),enqueueSetState:u(function(){},"enqueueSetState")},N=Object.assign,F={};function D(x,H,me){this.props=x,this.context=H,this.refs=F,this.updater=me||M}c(D,"Pn"),u(D,"E"),D.prototype.isReactComponent={},D.prototype.setState=function(x,H){if(typeof x!="object"&&typeof x!="function"&&x!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,x,H,"setState")},D.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function Y(){}c(Y,"Ea"),u(Y,"F"),Y.prototype=D.prototype;function j(x,H,me){this.props=x,this.context=H,this.refs=F,this.updater=me||M}c(j,"Ci"),u(j,"G");var G=j.prototype=new Y;G.constructor=j,N(G,D.prototype),G.isPureReactComponent=!0;var K=Array.isArray,X=Object.prototype.hasOwnProperty,E={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function Q(x,H,me){var ke,we={},q=null,be=null;if(H!=null)for(ke in H.ref!==void 0&&(be=H.ref),H.key!==void 0&&(q=""+H.key),H)X.call(H,ke)&&!k.hasOwnProperty(ke)&&(we[ke]=H[ke]);var Ce=arguments.length-2;if(Ce===1)we.children=me;else if(1<Ce){for(var ze=Array(Ce),Ze=0;Ze<Ce;Ze++)ze[Ze]=arguments[Ze+2];we.children=ze}if(x&&x.defaultProps)for(ke in Ce=x.defaultProps,Ce)we[ke]===void 0&&(we[ke]=Ce[ke]);return{$$typeof:o,type:x,key:q,ref:be,props:we,_owner:E.current}}c(Q,"za"),u(Q,"M");function ae(x,H){return{$$typeof:o,type:x.type,key:H,ref:x.ref,props:x.props,_owner:x._owner}}c(ae,"Dh"),u(ae,"N");function ye(x){return typeof x=="object"&&x!==null&&x.$$typeof===o}c(ye,"xi"),u(ye,"O");function ge(x){var H={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(me){return H[me]})}c(ge,"Lh"),u(ge,"escape");var ce=/\/+/g;function Fe(x,H){return typeof x=="object"&&x!==null&&x.key!=null?ge(""+x.key):H.toString(36)}c(Fe,"wi"),u(Fe,"Q");function Se(x,H,me,ke,we){var q=typeof x;(q==="undefined"||q==="boolean")&&(x=null);var be=!1;if(x===null)be=!0;else switch(q){case"string":case"number":be=!0;break;case"object":switch(x.$$typeof){case o:case l:be=!0}}if(be)return be=x,we=we(be),x=ke===""?"."+Fe(be,0):ke,K(we)?(me="",x!=null&&(me=x.replace(ce,"$&/")+"/"),Se(we,H,me,"",function(Ze){return Ze})):we!=null&&(ye(we)&&(we=ae(we,me+(!we.key||be&&be.key===we.key?"":(""+we.key).replace(ce,"$&/")+"/")+x)),H.push(we)),1;if(be=0,ke=ke===""?".":ke+":",K(x))for(var Ce=0;Ce<x.length;Ce++){q=x[Ce];var ze=ke+Fe(q,Ce);be+=Se(q,H,me,ze,we)}else if(ze=R(x),typeof ze=="function")for(x=ze.call(x),Ce=0;!(q=x.next()).done;)q=q.value,ze=ke+Fe(q,Ce++),be+=Se(q,H,me,ze,we);else if(q==="object")throw H=String(x),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.");return be}c(Se,"Po"),u(Se,"R");function Pe(x,H,me){if(x==null)return x;var ke=[],we=0;return Se(x,ke,"","",function(q){return H.call(me,q,we++)}),ke}c(Pe,"zo"),u(Pe,"S");function Le(x){if(x._status===-1){var H=x._result;H=H(),H.then(function(me){(x._status===0||x._status===-1)&&(x._status=1,x._result=me)},function(me){(x._status===0||x._status===-1)&&(x._status=2,x._result=me)}),x._status===-1&&(x._status=0,x._result=H)}if(x._status===1)return x._result.default;throw x._result}c(Le,"Fh"),u(Le,"T");var U={current:null},de={transition:null},ne={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:de,ReactCurrentOwner:E};function ee(){throw Error("act(...) is not supported in production builds of React.")}c(ee,"Pa"),u(ee,"X"),i.Children={map:Pe,forEach:u(function(x,H,me){Pe(x,function(){H.apply(this,arguments)},me)},"forEach"),count:u(function(x){var H=0;return Pe(x,function(){H++}),H},"count"),toArray:u(function(x){return Pe(x,function(H){return H})||[]},"toArray"),only:u(function(x){if(!ye(x))throw Error("React.Children.only expected to receive a single React element child.");return x},"only")},i.Component=D,i.Fragment=s,i.Profiler=p,i.PureComponent=j,i.StrictMode=h,i.Suspense=_,i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ne,i.act=ee,i.cloneElement=function(x,H,me){if(x==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+x+".");var ke=N({},x.props),we=x.key,q=x.ref,be=x._owner;if(H!=null){if(H.ref!==void 0&&(q=H.ref,be=E.current),H.key!==void 0&&(we=""+H.key),x.type&&x.type.defaultProps)var Ce=x.type.defaultProps;for(ze in H)X.call(H,ze)&&!k.hasOwnProperty(ze)&&(ke[ze]=H[ze]===void 0&&Ce!==void 0?Ce[ze]:H[ze])}var ze=arguments.length-2;if(ze===1)ke.children=me;else if(1<ze){Ce=Array(ze);for(var Ze=0;Ze<ze;Ze++)Ce[Ze]=arguments[Ze+2];ke.children=Ce}return{$$typeof:o,type:x.type,key:we,ref:q,props:ke,_owner:be}},i.createContext=function(x){return x={$$typeof:m,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},x.Provider={$$typeof:f,_context:x},x.Consumer=x},i.createElement=Q,i.createFactory=function(x){var H=Q.bind(null,x);return H.type=x,H},i.createRef=function(){return{current:null}},i.forwardRef=function(x){return{$$typeof:b,render:x}},i.isValidElement=ye,i.lazy=function(x){return{$$typeof:P,_payload:{_status:-1,_result:x},_init:Le}},i.memo=function(x,H){return{$$typeof:I,type:x,compare:H===void 0?null:H}},i.startTransition=function(x){var H=de.transition;de.transition={};try{x()}finally{de.transition=H}},i.unstable_act=ee,i.useCallback=function(x,H){return U.current.useCallback(x,H)},i.useContext=function(x){return U.current.useContext(x)},i.useDebugValue=function(){},i.useDeferredValue=function(x){return U.current.useDeferredValue(x)},i.useEffect=function(x,H){return U.current.useEffect(x,H)},i.useId=function(){return U.current.useId()},i.useImperativeHandle=function(x,H,me){return U.current.useImperativeHandle(x,H,me)},i.useInsertionEffect=function(x,H){return U.current.useInsertionEffect(x,H)},i.useLayoutEffect=function(x,H){return U.current.useLayoutEffect(x,H)},i.useMemo=function(x,H){return U.current.useMemo(x,H)},i.useReducer=function(x,H,me){return U.current.useReducer(x,H,me)},i.useRef=function(x){return U.current.useRef(x)},i.useState=function(x){return U.current.useState(x)},i.useSyncExternalStore=function(x,H,me){return U.current.useSyncExternalStore(x,H,me)},i.useTransition=function(){return U.current.useTransition()},i.version="18.3.1"}),to=ni((i,o)=>{"use strict";o.exports=Tf()}),Pf=ni(i=>{"use strict";function o(U,de){var ne=U.length;U.push(de);e:for(;0<ne;){var ee=ne-1>>>1,x=U[ee];if(0<h(x,de))U[ee]=de,U[ne]=x,ne=ee;else break e}}c(o,"zi"),u(o,"f");function l(U){return U.length===0?null:U[0]}c(l,"Je"),u(l,"h");function s(U){if(U.length===0)return null;var de=U[0],ne=U.pop();if(ne!==de){U[0]=ne;e:for(var ee=0,x=U.length,H=x>>>1;ee<H;){var me=2*(ee+1)-1,ke=U[me],we=me+1,q=U[we];if(0>h(ke,ne))we<x&&0>h(q,ke)?(U[ee]=q,U[we]=ne,ee=we):(U[ee]=ke,U[me]=ne,ee=me);else if(we<x&&0>h(q,ne))U[ee]=q,U[we]=ne,ee=we;else break e}}return de}c(s,"Do"),u(s,"k");function h(U,de){var ne=U.sortIndex-de.sortIndex;return ne!==0?ne:U.id-de.id}c(h,"Io"),u(h,"g"),typeof performance=="object"&&typeof performance.now=="function"?(p=performance,i.unstable_now=function(){return p.now()}):(f=Date,m=f.now(),i.unstable_now=function(){return f.now()-m});var p,f,m,b=[],_=[],I=1,P=null,z=3,R=!1,M=!1,N=!1,F=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function j(U){for(var de=l(_);de!==null;){if(de.callback===null)s(_);else if(de.startTime<=U)s(_),de.sortIndex=de.expirationTime,o(b,de);else break;de=l(_)}}c(j,"Pi"),u(j,"G");function G(U){if(N=!1,j(U),!M)if(l(b)!==null)M=!0,Pe(K);else{var de=l(_);de!==null&&Le(G,de.startTime-U)}}c(G,"Ti"),u(G,"H");function K(U,de){M=!1,N&&(N=!1,D(k),k=-1),R=!0;var ne=z;try{for(j(de),P=l(b);P!==null&&(!(P.expirationTime>de)||U&&!ye());){var ee=P.callback;if(typeof ee=="function"){P.callback=null,z=P.priorityLevel;var x=ee(P.expirationTime<=de);de=i.unstable_now(),typeof x=="function"?P.callback=x:P===l(b)&&s(b),j(de)}else s(b);P=l(b)}if(P!==null)var H=!0;else{var me=l(_);me!==null&&Le(G,me.startTime-de),H=!1}return H}finally{P=null,z=ne,R=!1}}c(K,"Ii"),u(K,"J");var X=!1,E=null,k=-1,Q=5,ae=-1;function ye(){return!(i.unstable_now()-ae<Q)}c(ye,"Aa"),u(ye,"M");function ge(){if(E!==null){var U=i.unstable_now();ae=U;var de=!0;try{de=E(!0,U)}finally{de?ce():(X=!1,E=null)}}else X=!1}c(ge,"Ri"),u(ge,"R");var ce;typeof Y=="function"?ce=u(function(){Y(ge)},"S"):typeof MessageChannel<"u"?(Fe=new MessageChannel,Se=Fe.port2,Fe.port1.onmessage=ge,ce=u(function(){Se.postMessage(null)},"S")):ce=u(function(){F(ge,0)},"S");var Fe,Se;function Pe(U){E=U,X||(X=!0,ce())}c(Pe,"Ni"),u(Pe,"I");function Le(U,de){k=F(function(){U(i.unstable_now())},de)}c(Le,"Di"),u(Le,"K"),i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(U){U.callback=null},i.unstable_continueExecution=function(){M||R||(M=!0,Pe(K))},i.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<U?Math.floor(1e3/U):5},i.unstable_getCurrentPriorityLevel=function(){return z},i.unstable_getFirstCallbackNode=function(){return l(b)},i.unstable_next=function(U){switch(z){case 1:case 2:case 3:var de=3;break;default:de=z}var ne=z;z=de;try{return U()}finally{z=ne}},i.unstable_pauseExecution=function(){},i.unstable_requestPaint=function(){},i.unstable_runWithPriority=function(U,de){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var ne=z;z=U;try{return de()}finally{z=ne}},i.unstable_scheduleCallback=function(U,de,ne){var ee=i.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?ee+ne:ee):ne=ee,U){case 1:var x=-1;break;case 2:x=250;break;case 5:x=1073741823;break;case 4:x=1e4;break;default:x=5e3}return x=ne+x,U={id:I++,callback:de,priorityLevel:U,startTime:ne,expirationTime:x,sortIndex:-1},ne>ee?(U.sortIndex=ne,o(_,U),l(b)===null&&U===l(_)&&(N?(D(k),k=-1):N=!0,Le(G,ne-ee))):(U.sortIndex=x,o(b,U),M||R||(M=!0,Pe(K))),U},i.unstable_shouldYield=ye,i.unstable_wrapCallback=function(U){var de=z;return function(){var ne=z;z=de;try{return U.apply(this,arguments)}finally{z=ne}}}}),zf=ni((i,o)=>{"use strict";o.exports=Pf()}),If=ni(i=>{"use strict";var o=to(),l=zf();function s(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."}c(s,"_"),u(s,"p");var h=new Set,p={};function f(e,t){m(e,t),m(e+"Capture",t)}c(f,"hn"),u(f,"fa");function m(e,t){for(p[e]=t,e=0;e<t.length;e++)h.add(t[e])}c(m,"Xn"),u(m,"ha");var b=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_=Object.prototype.hasOwnProperty,I=/^[: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]*$/,P={},z={};function R(e){return _.call(z,e)?!0:_.call(P,e)?!1:I.test(e)?z[e]=!0:(P[e]=!0,!1)}c(R,"Ah"),u(R,"oa");function M(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}}c(M,"Uh"),u(M,"pa");function N(e,t,r,n){if(t===null||typeof t>"u"||M(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}c(N,"$h"),u(N,"qa");function F(e,t,r,n,a,d,g){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=d,this.removeEmptyString=g}c(F,"xe"),u(F,"v");var D={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){D[e]=new F(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];D[t]=new F(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){D[e]=new F(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){D[e]=new F(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){D[e]=new F(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){D[e]=new F(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){D[e]=new F(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){D[e]=new F(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){D[e]=new F(e,5,!1,e.toLowerCase(),null,!1,!1)});var Y=/[\-:]([a-z])/g;function j(e){return e[1].toUpperCase()}c(j,"Yu"),u(j,"sa"),"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(Y,j);D[t]=new F(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(Y,j);D[t]=new F(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(Y,j);D[t]=new F(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){D[e]=new F(e,1,!1,e.toLowerCase(),null,!1,!1)}),D.xlinkHref=new F("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){D[e]=new F(e,1,!1,e.toLowerCase(),null,!0,!0)});function G(e,t,r,n){var a=D.hasOwnProperty(t)?D[t]:null;(a!==null?a.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(N(t,r,a,n)&&(r=null),n||a===null?R(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):a.mustUseProperty?e[a.propertyName]=r===null?a.type===3?!1:"":r:(t=a.attributeName,n=a.attributeNamespace,r===null?e.removeAttribute(t):(a=a.type,r=a===3||a===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}c(G,"Xu"),u(G,"ta");var K=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,X=Symbol.for("react.element"),E=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),ye=Symbol.for("react.provider"),ge=Symbol.for("react.context"),ce=Symbol.for("react.forward_ref"),Fe=Symbol.for("react.suspense"),Se=Symbol.for("react.suspense_list"),Pe=Symbol.for("react.memo"),Le=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var U=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var de=Symbol.iterator;function ne(e){return e===null||typeof e!="object"?null:(e=de&&e[de]||e["@@iterator"],typeof e=="function"?e:null)}c(ne,"Cr"),u(ne,"Ka");var ee=Object.assign,x;function H(e){if(x===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);x=t&&t[1]||""}return`
2
- `+x+e}c(H,"Pr"),u(H,"Ma");var me=!1;function ke(e,t){if(!e||me)return"";me=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=u(function(){throw Error()},"b"),Object.defineProperty(t.prototype,"props",{set:u(function(){throw Error()},"set")}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(T){var n=T}Reflect.construct(e,[],t)}else{try{t.call()}catch(T){n=T}e.call(t.prototype)}else{try{throw Error()}catch(T){n=T}e()}}catch(T){if(T&&n&&typeof T.stack=="string"){for(var a=T.stack.split(`
3
- `),d=n.stack.split(`
4
- `),g=a.length-1,y=d.length-1;1<=g&&0<=y&&a[g]!==d[y];)y--;for(;1<=g&&0<=y;g--,y--)if(a[g]!==d[y]){if(g!==1||y!==1)do if(g--,y--,0>y||a[g]!==d[y]){var v=`
5
- `+a[g].replace(" at new "," at ");return e.displayName&&v.includes("<anonymous>")&&(v=v.replace("<anonymous>",e.displayName)),v}while(1<=g&&0<=y);break}}}finally{me=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?H(e):""}c(ke,"Oi"),u(ke,"Oa");function we(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return e=ke(e.type,!1),e;case 11:return e=ke(e.type.render,!1),e;case 1:return e=ke(e.type,!0),e;default:return""}}c(we,"Wh"),u(we,"Pa");function q(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 k:return"Fragment";case E:return"Portal";case ae:return"Profiler";case Q:return"StrictMode";case Fe:return"Suspense";case Se:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ge:return(e.displayName||"Context")+".Consumer";case ye:return(e._context.displayName||"Context")+".Provider";case ce:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Pe:return t=e.displayName||null,t!==null?t:q(e.type)||"Memo";case Le:t=e._payload,e=e._init;try{return q(e(t))}catch{}}return null}c(q,"lu"),u(q,"Qa");function be(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return q(t);case 8:return t===Q?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}c(be,"Vh"),u(be,"Ra");function Ce(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}c(Ce,"Kt"),u(Ce,"Sa");function ze(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}c(ze,"bc"),u(ze,"Ta");function Ze(e){var t=ze(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 a=r.get,d=r.set;return Object.defineProperty(e,t,{configurable:!0,get:u(function(){return a.call(this)},"get"),set:u(function(g){n=""+g,d.call(this,g)},"set")}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:u(function(){return n},"getValue"),setValue:u(function(g){n=""+g},"setValue"),stopTracking:u(function(){e._valueTracker=null,delete e[t]},"stopTracking")}}}c(Ze,"Bh"),u(Ze,"Ua");function gr(e){e._valueTracker||(e._valueTracker=Ze(e))}c(gr,"Mo"),u(gr,"Va");function Er(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=ze(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}c(Er,"ed"),u(Er,"Wa");function jt(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}}c(jt,"cl"),u(jt,"Xa");function er(e,t){var r=t.checked;return ee({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}c(er,"iu"),u(er,"Ya");function Rr(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Ce(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}}c(Rr,"Ga"),u(Rr,"Za");function Mr(e,t){t=t.checked,t!=null&&G(e,"checked",t,!1)}c(Mr,"td"),u(Mr,"ab");function tr(e,t){Mr(e,t);var r=Ce(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")?li(e,t.type,r):t.hasOwnProperty("defaultValue")&&li(e,t.type,Ce(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}c(tr,"uu"),u(tr,"bb");function mr(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)}c(mr,"Qa"),u(mr,"db");function li(e,t,r){(t!=="number"||jt(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}c(li,"su"),u(li,"cb");var rr=Array.isArray;function St(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a<r.length;a++)t["$"+r[a]]=!0;for(r=0;r<e.length;r++)a=t.hasOwnProperty("$"+e[r].value),e[r].selected!==a&&(e[r].selected=a),a&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Ce(r),t=null,a=0;a<e.length;a++){if(e[a].value===r){e[a].selected=!0,n&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}c(St,"Vn"),u(St,"fb");function ir(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(s(91));return ee({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}c(ir,"au"),u(ir,"gb");function un(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(s(92));if(rr(r)){if(1<r.length)throw Error(s(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Ce(r)}}c(un,"Ya"),u(un,"hb");function dn(e,t){var r=Ce(t.value),n=Ce(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)}c(dn,"nd"),u(dn,"ib");function no(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}c(no,"Xa"),u(no,"jb");function Dr(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"}}c(Dr,"rd"),u(Dr,"kb");function cn(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Dr(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}c(cn,"cu"),u(cn,"lb");var Br,oo=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,a){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,a)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Br=Br||document.createElement("div"),Br.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Br.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fr(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}c(Fr,"Wr"),u(Fr,"ob");var Ut={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xl=["Webkit","ms","Moz","O"];Object.keys(Ut).forEach(function(e){xl.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ut[t]=Ut[e]})});function hn(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Ut.hasOwnProperty(e)&&Ut[e]?(""+t).trim():t+"px"}c(hn,"ld"),u(hn,"rb");function lo(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=hn(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}c(lo,"id"),u(lo,"sb");var Je=ee({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 Mi(e,t){if(t){if(Je[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(s(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(s(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(t.style!=null&&typeof t.style!="object")throw Error(s(62))}}c(Mi,"du"),u(Mi,"ub");function at(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}}c(at,"fu"),u(at,"vb");var nr=null;function pn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}c(pn,"bu"),u(pn,"xb");var fn=null,ai=null,si=null;function ao(e){if(e=Nn(e)){if(typeof fn!="function")throw Error(s(280));var t=e.stateNode;t&&(t=Fo(t),fn(e.stateNode,e.type,t))}}c(ao,"Za"),u(ao,"Bb");function Lr(e){ai?si?si.push(e):si=[e]:ai=e}c(Lr,"ud"),u(Lr,"Eb");function yr(){if(ai){var e=ai,t=si;if(si=ai=null,ao(e),t)for(e=0;e<t.length;e++)ao(t[e])}}c(yr,"sd"),u(yr,"Fb");function gn(e,t){return e(t)}c(gn,"ad"),u(gn,"Gb");function br(){}c(br,"cd"),u(br,"Hb");var Di=!1;function st(e,t,r){if(Di)return e(t,r);Di=!0;try{return gn(e,t,r)}finally{Di=!1,(ai!==null||si!==null)&&(br(),yr())}}c(st,"dd"),u(st,"Jb");function or(e,t){var r=e.stateNode;if(r===null)return null;var n=Fo(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(s(231,t,typeof r));return r}c(or,"Vr"),u(or,"Kb");var lr=!1;if(b)try{J={},Object.defineProperty(J,"passive",{get:u(function(){lr=!0},"get")}),window.addEventListener("test",J,J),window.removeEventListener("test",J,J)}catch{lr=!1}var J;function Ar(e,t,r,n,a,d,g,y,v){var T=Array.prototype.slice.call(arguments,3);try{t.apply(r,T)}catch(O){this.onError(O)}}c(Ar,"Qh"),u(Ar,"Nb");var Or=!1,Bi=null,Fi=!1,ui=null,mn={onError:u(function(e){Or=!0,Bi=e},"onError")};function yn(e,t,r,n,a,d,g,y,v){Or=!1,Bi=null,Ar.apply(mn,arguments)}c(yn,"Xh"),u(yn,"Tb");function bn(e,t,r,n,a,d,g,y,v){if(yn.apply(this,arguments),Or){if(Or){var T=Bi;Or=!1,Bi=null}else throw Error(s(198));Fi||(Fi=!0,ui=T)}}c(bn,"Zh"),u(bn,"Ub");function ar(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}c(ar,"mn"),u(ar,"Vb");function di(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}c(di,"fd"),u(di,"Wb");function Li(e){if(ar(e)!==e)throw Error(s(188))}c(Li,"Ja"),u(Li,"Xb");function so(e){var t=e.alternate;if(!t){if(t=ar(e),t===null)throw Error(s(188));return t!==e?null:e}for(var r=e,n=t;;){var a=r.return;if(a===null)break;var d=a.alternate;if(d===null){if(n=a.return,n!==null){r=n;continue}break}if(a.child===d.child){for(d=a.child;d;){if(d===r)return Li(a),e;if(d===n)return Li(a),t;d=d.sibling}throw Error(s(188))}if(r.return!==n.return)r=a,n=d;else{for(var g=!1,y=a.child;y;){if(y===r){g=!0,r=a,n=d;break}if(y===n){g=!0,n=a,r=d;break}y=y.sibling}if(!g){for(y=d.child;y;){if(y===r){g=!0,r=d,n=a;break}if(y===n){g=!0,n=d,r=a;break}y=y.sibling}if(!g)throw Error(s(189))}}if(r.alternate!==n)throw Error(s(190))}if(r.tag!==3)throw Error(s(188));return r.stateNode.current===r?e:t}c(so,"Jh"),u(so,"Yb");function uo(e){return e=so(e),e!==null?vn(e):null}c(uo,"pd"),u(uo,"Zb");function vn(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=vn(e);if(t!==null)return t;e=e.sibling}return null}c(vn,"hd"),u(vn,"$b");var co=l.unstable_scheduleCallback,Cl=l.unstable_cancelCallback,ls=l.unstable_shouldYield,Ai=l.unstable_requestPaint,Ae=l.unstable_now,ho=l.unstable_getCurrentPriorityLevel,po=l.unstable_ImmediatePriority,fo=l.unstable_UserBlockingPriority,wn=l.unstable_NormalPriority,Sl=l.unstable_LowPriority,sr=l.unstable_IdlePriority,_n=null,Vt=null;function kl(e){if(Vt&&typeof Vt.onCommitFiberRoot=="function")try{Vt.onCommitFiberRoot(_n,e,void 0,(e.current.flags&128)===128)}catch{}}c(kl,"nm"),u(kl,"mc");var it=Math.clz32?Math.clz32:Tl,go=Math.log,xn=Math.LN2;function Tl(e){return e>>>=0,e===0?32:31-(go(e)/xn|0)|0}c(Tl,"lm"),u(Tl,"nc");var Cn=64,Sn=4194304;function ci(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}c(ci,"Ir"),u(ci,"tc");function Oi(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,d=e.pingedLanes,g=r&268435455;if(g!==0){var y=g&~a;y!==0?n=ci(y):(d&=g,d!==0&&(n=ci(d)))}else g=r&~a,g!==0?n=ci(g):d!==0&&(n=ci(d));if(n===0)return 0;if(t!==0&&t!==n&&!(t&a)&&(a=n&-n,d=t&-t,a>=d||a===16&&(d&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-it(t),a=1<<r,n|=e[r],t&=~a;return n}c(Oi,"hl"),u(Oi,"uc");function Pl(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}c(Pl,"im"),u(Pl,"vc");function zl(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,d=e.pendingLanes;0<d;){var g=31-it(d),y=1<<g,v=a[g];v===-1?(!(y&r)||y&n)&&(a[g]=Pl(y,t)):v<=t&&(e.expiredLanes|=y),d&=~y}}c(zl,"um"),u(zl,"wc");function kn(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}c(kn,"yu"),u(kn,"xc");function mo(){var e=Cn;return Cn<<=1,!(Cn&4194240)&&(Cn=64),e}c(mo,"vd"),u(mo,"yc");function Tn(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}c(Tn,"ji"),u(Tn,"zc");function vr(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-it(t),e[t]=r}c(vr,"oo"),u(vr,"Ac");function yo(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var a=31-it(r),d=1<<a;t[a]=0,n[a]=-1,e[a]=-1,r&=~d}}c(yo,"sm"),u(yo,"Bc");function hi(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-it(r),a=1<<n;a&t|e[n]&t&&(e[n]|=t),r&=~a}}c(hi,"ts"),u(hi,"Cc");var Re=0;function Wi(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}c(Wi,"wd"),u(Wi,"Dc");var bo,Pn,pi,zn,vo,In=!1,Ni=[],$t=null,ft=null,Dt=null,fi=new Map,Wr=new Map,kt=[],gi="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 En(e,t){switch(e){case"focusin":case"focusout":$t=null;break;case"dragenter":case"dragleave":ft=null;break;case"mouseover":case"mouseout":Dt=null;break;case"pointerover":case"pointerout":fi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wr.delete(t.pointerId)}}c(En,"ba"),u(En,"Sc");function wr(e,t,r,n,a,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:d,targetContainers:[a]},t!==null&&(t=Nn(t),t!==null&&Pn(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}c(wr,"Sr"),u(wr,"Tc");function wo(e,t,r,n,a){switch(t){case"focusin":return $t=wr($t,e,t,r,n,a),!0;case"dragenter":return ft=wr(ft,e,t,r,n,a),!0;case"mouseover":return Dt=wr(Dt,e,t,r,n,a),!0;case"pointerover":var d=a.pointerId;return fi.set(d,wr(fi.get(d)||null,e,t,r,n,a)),!0;case"gotpointercapture":return d=a.pointerId,Wr.set(d,wr(Wr.get(d)||null,e,t,r,n,a)),!0}return!1}c(wo,"cm"),u(wo,"Uc");function Hi(e){var t=yi(e.target);if(t!==null){var r=ar(t);if(r!==null){if(t=r.tag,t===13){if(t=di(r),t!==null){e.blockedOn=t,vo(e.priority,function(){pi(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}c(Hi,"Ed"),u(Hi,"Vc");function mi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Me(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);nr=n,r.target.dispatchEvent(n),nr=null}else return t=Nn(r),t!==null&&Pn(t),e.blockedOn=r,!1;t.shift()}return!0}c(mi,"el"),u(mi,"Xc");function Rn(e,t,r){mi(e)&&r.delete(t)}c(Rn,"ec"),u(Rn,"Zc");function Nr(){In=!1,$t!==null&&mi($t)&&($t=null),ft!==null&&mi(ft)&&(ft=null),Dt!==null&&mi(Dt)&&(Dt=null),fi.forEach(Rn),Wr.forEach(Rn)}c(Nr,"dm"),u(Nr,"$c");function Hr(e,t){e.blockedOn===t&&(e.blockedOn=null,In||(In=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,Nr)))}c(Hr,"kr"),u(Hr,"ad");function ur(e){function t(a){return Hr(a,e)}if(c(t,"t"),u(t,"b"),0<Ni.length){Hr(Ni[0],e);for(var r=1;r<Ni.length;r++){var n=Ni[r];n.blockedOn===e&&(n.blockedOn=null)}}for($t!==null&&Hr($t,e),ft!==null&&Hr(ft,e),Dt!==null&&Hr(Dt,e),fi.forEach(t),Wr.forEach(t),r=0;r<kt.length;r++)n=kt[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<kt.length&&(r=kt[0],r.blockedOn===null);)Hi(r),r.blockedOn===null&&kt.shift()}c(ur,"Gr"),u(ur,"bd");var jr=K.ReactCurrentBatchConfig,L=!0;function V(e,t,r,n){var a=Re,d=jr.transition;jr.transition=null;try{Re=1,ue(e,t,r,n)}finally{Re=a,jr.transition=d}}c(V,"fm"),u(V,"ed");function se(e,t,r,n){var a=Re,d=jr.transition;jr.transition=null;try{Re=4,ue(e,t,r,n)}finally{Re=a,jr.transition=d}}c(se,"pm"),u(se,"gd");function ue(e,t,r,n){if(L){var a=Me(e,t,r,n);if(a===null)Al(e,t,n,Te,r),En(e,n);else if(wo(a,e,t,r,n))n.stopPropagation();else if(En(e,n),t&4&&-1<gi.indexOf(e)){for(;a!==null;){var d=Nn(a);if(d!==null&&bo(d),d=Me(e,t,r,n),d===null&&Al(e,t,n,Te,r),d===a)break;a=d}a!==null&&n.stopPropagation()}else Al(e,t,n,null,r)}}c(ue,"rs"),u(ue,"fd");var Te=null;function Me(e,t,r,n){if(Te=null,e=pn(n),e=yi(e),e!==null)if(t=ar(e),t===null)e=null;else if(r=t.tag,r===13){if(e=di(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Te=e,null}c(Me,"wu"),u(Me,"Yc");function Oe(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ho()){case po:return 1;case fo:return 4;case wn:case Sl:return 16;case sr:return 536870912;default:return 16}default:return 16}}c(Oe,"Rd"),u(Oe,"jd");var Be=null,ut=null,wt=null;function Tt(){if(wt)return wt;var e,t=ut,r=t.length,n,a="value"in Be?Be.value:Be.textContent,d=a.length;for(e=0;e<r&&t[e]===a[e];e++);var g=r-e;for(n=1;n<=g&&t[r-n]===a[d-n];n++);return wt=a.slice(e,1<n?1-n:void 0)}c(Tt,"_d"),u(Tt,"nd");function ji(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}c(ji,"nl"),u(ji,"od");function Ur(){return!0}c(Ur,"$o"),u(Ur,"pd");function Ui(){return!1}c(Ui,"tc"),u(Ui,"qd");function gt(e){function t(r,n,a,d,g){this._reactName=r,this._targetInst=a,this.type=n,this.nativeEvent=d,this.target=g,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(r=e[y],this[y]=r?r(d):d[y]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?Ur:Ui,this.isPropagationStopped=Ui,this}return c(t,"t"),u(t,"b"),ee(t.prototype,{preventDefault:u(function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Ur)},"preventDefault"),stopPropagation:u(function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Ur)},"stopPropagation"),persist:u(function(){},"persist"),isPersistent:Ur}),t}c(gt,"je"),u(gt,"rd");var Mn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:u(function(e){return e.timeStamp||Date.now()},"timeStamp"),defaultPrevented:0,isTrusted:0},as=gt(Mn),_o=ee({},Mn,{view:0,detail:0}),Ip=gt(_o),ss,us,xo,Il=ee({},_o,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:El,button:0,buttons:0,relatedTarget:u(function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},"relatedTarget"),movementX:u(function(e){return"movementX"in e?e.movementX:(e!==xo&&(xo&&e.type==="mousemove"?(ss=e.screenX-xo.screenX,us=e.screenY-xo.screenY):us=ss=0,xo=e),ss)},"movementX"),movementY:u(function(e){return"movementY"in e?e.movementY:us},"movementY")}),ec=gt(Il),Ep=ee({},Il,{dataTransfer:0}),Rp=gt(Ep),Mp=ee({},_o,{relatedTarget:0}),ds=gt(Mp),Dp=ee({},Mn,{animationName:0,elapsedTime:0,pseudoElement:0}),Bp=gt(Dp),Fp=ee({},Mn,{clipboardData:u(function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData},"clipboardData")}),Lp=gt(Fp),Ap=ee({},Mn,{data:0}),tc=gt(Ap),Op={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Wp={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"},Np={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rc(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Np[e])?!!t[e]:!1}c(rc,"_m"),u(rc,"Pd");function El(){return rc}c(El,"is"),u(El,"zd");var Hp=ee({},_o,{key:u(function(e){if(e.key){var t=Op[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ji(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Wp[e.keyCode]||"Unidentified":""},"key"),code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:El,charCode:u(function(e){return e.type==="keypress"?ji(e):0},"charCode"),keyCode:u(function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},"keyCode"),which:u(function(e){return e.type==="keypress"?ji(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0},"which")}),jp=gt(Hp),Up=ee({},Il,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ic=gt(Up),Vp=ee({},_o,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:El}),$p=gt(Vp),Gp=ee({},Mn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Yp=gt(Gp),Xp=ee({},Il,{deltaX:u(function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},"deltaX"),deltaY:u(function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},"deltaY"),deltaZ:0,deltaMode:0}),Kp=gt(Xp),qp=[9,13,27,32],cs=b&&"CompositionEvent"in window,Co=null;b&&"documentMode"in document&&(Co=document.documentMode);var Qp=b&&"TextEvent"in window&&!Co,nc=b&&(!cs||Co&&8<Co&&11>=Co),oc=" ",lc=!1;function hs(e,t){switch(e){case"keyup":return qp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}c(hs,"Pd"),u(hs,"ge");function ps(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}c(ps,"Td"),u(ps,"he");var Dn=!1;function ac(e,t){switch(e){case"compositionend":return ps(t);case"keypress":return t.which!==32?null:(lc=!0,oc);case"textInput":return e=t.data,e===oc&&lc?null:e;default:return null}}c(ac,"Hm"),u(ac,"je");function sc(e,t){if(Dn)return e==="compositionend"||!cs&&hs(e,t)?(e=Tt(),wt=ut=Be=null,Dn=!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 nc&&t.locale!=="ko"?null:t.data;default:return null}}c(sc,"Am"),u(sc,"ke");var Zp={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 fs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Zp[e.type]:t==="textarea"}c(fs,"uc"),u(fs,"me");function gs(e,t,r,n){Lr(n),t=Ro(t,"onChange"),0<t.length&&(r=new as("onChange","change",null,r,n),e.push({event:r,listeners:t}))}c(gs,"Id"),u(gs,"ne");var So=null,ko=null;function uc(e){Is(e,0)}c(uc,"$m"),u(uc,"re");function To(e){var t=$i(e);if(Er(t))return e}c(To,"Ml"),u(To,"te");function dc(e,t){if(e==="change")return t}c(dc,"Wm"),u(dc,"ve");var cc=!1;b&&(b?(Rl="oninput"in document,Rl||(ys=document.createElement("div"),ys.setAttribute("oninput","return;"),Rl=typeof ys.oninput=="function"),ms=Rl):ms=!1,cc=ms&&(!document.documentMode||9<document.documentMode));var ms,Rl,ys;function bs(){So&&(So.detachEvent("onpropertychange",vs),ko=So=null)}c(bs,"sc"),u(bs,"Ae");function vs(e){if(e.propertyName==="value"&&To(ko)){var t=[];gs(t,ko,e,pn(e)),st(uc,t)}}c(vs,"Dd"),u(vs,"Be");function hc(e,t,r){e==="focusin"?(bs(),So=t,ko=r,So.attachEvent("onpropertychange",vs)):e==="focusout"&&bs()}c(hc,"Vm"),u(hc,"Ce");function pc(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return To(ko)}c(pc,"Bm"),u(pc,"De");function fc(e,t){if(e==="click")return To(t)}c(fc,"Km"),u(fc,"Ee");function gc(e,t){if(e==="input"||e==="change")return To(t)}c(gc,"Gm"),u(gc,"Fe");function mc(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}c(mc,"Qm"),u(mc,"Ge");var dr=typeof Object.is=="function"?Object.is:mc;function Bn(e,t){if(dr(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++){var a=r[n];if(!_.call(t,a)||!dr(e[a],t[a]))return!1}return!0}c(Bn,"Yr"),u(Bn,"Ie");function ws(e){for(;e&&e.firstChild;)e=e.firstChild;return e}c(ws,"ac"),u(ws,"Je");function _s(e,t){var r=ws(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=ws(r)}}c(_s,"cc"),u(_s,"Ke");function xs(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xs(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}c(xs,"Ld"),u(xs,"Le");function Cs(){for(var e=window,t=jt();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=jt(e.document)}return t}c(Cs,"Fd"),u(Cs,"Me");function Ml(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")}c(Ml,"ss"),u(Ml,"Ne");function yc(e){var t=Cs(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&xs(r.ownerDocument.documentElement,r)){if(n!==null&&Ml(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,d=Math.min(n.start,a);n=n.end===void 0?d:Math.min(n.end,a),!e.extend&&d>n&&(a=n,n=d,d=a),a=_s(r,d);var g=_s(r,n);a&&g&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==g.node||e.focusOffset!==g.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),d>n?(e.addRange(t),e.extend(g.node,g.offset)):(t.setEnd(g.node,g.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}c(yc,"Ym"),u(yc,"Oe");var Jp=b&&"documentMode"in document&&11>=document.documentMode,Fn=null,Ss=null,Po=null,ks=!1;function Ts(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;ks||Fn==null||Fn!==jt(n)||(n=Fn,"selectionStart"in n&&Ml(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}),Po&&Bn(Po,n)||(Po=n,n=Ro(Ss,"onSelect"),0<n.length&&(t=new as("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Fn)))}c(Ts,"dc"),u(Ts,"Ue");function zo(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}c(zo,"Bo"),u(zo,"Ve");var Ln={animationend:zo("Animation","AnimationEnd"),animationiteration:zo("Animation","AnimationIteration"),animationstart:zo("Animation","AnimationStart"),transitionend:zo("Transition","TransitionEnd")},Ps={},bc={};b&&(bc=document.createElement("div").style,"AnimationEvent"in window||(delete Ln.animationend.animation,delete Ln.animationiteration.animation,delete Ln.animationstart.animation),"TransitionEvent"in window||delete Ln.transitionend.transition);function Io(e){if(Ps[e])return Ps[e];if(!Ln[e])return e;var t=Ln[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in bc)return Ps[e]=t[r];return e}c(Io,"jl"),u(Io,"Ze");var vc=Io("animationend"),wc=Io("animationiteration"),_c=Io("animationstart"),xc=Io("transitionend"),Cc=new Map,Sc="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Vr(e,t){Cc.set(e,t),f(t,[e])}for(c(Vr,"Qt"),u(Vr,"ff"),Bl=0;Bl<Sc.length;Bl++)Dl=Sc[Bl],kc=Dl.toLowerCase(),Tc=Dl[0].toUpperCase()+Dl.slice(1),Vr(kc,"on"+Tc);var Dl,kc,Tc,Bl;Vr(vc,"onAnimationEnd"),Vr(wc,"onAnimationIteration"),Vr(_c,"onAnimationStart"),Vr("dblclick","onDoubleClick"),Vr("focusin","onFocus"),Vr("focusout","onBlur"),Vr(xc,"onTransitionEnd"),m("onMouseEnter",["mouseout","mouseover"]),m("onMouseLeave",["mouseout","mouseover"]),m("onPointerEnter",["pointerout","pointerover"]),m("onPointerLeave",["pointerout","pointerover"]),f("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),f("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),f("onBeforeInput",["compositionend","keypress","textInput","paste"]),f("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Eo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ef=new Set("cancel close invalid load scroll toggle".split(" ").concat(Eo));function zs(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,bn(n,t,void 0,e),e.currentTarget=null}c(zs,"mc"),u(zs,"nf");function Is(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],a=n.event;n=n.listeners;e:{var d=void 0;if(t)for(var g=n.length-1;0<=g;g--){var y=n[g],v=y.instance,T=y.currentTarget;if(y=y.listener,v!==d&&a.isPropagationStopped())break e;zs(a,y,T),d=v}else for(g=0;g<n.length;g++){if(y=n[g],v=y.instance,T=y.currentTarget,y=y.listener,v!==d&&a.isPropagationStopped())break e;zs(a,y,T),d=v}}}if(Fi)throw e=ui,Fi=!1,ui=null,e}c(Is,"$d"),u(Is,"se");function Ne(e,t){var r=t[As];r===void 0&&(r=t[As]=new Set);var n=e+"__bubble";r.has(n)||(Es(t,e,2,!1),r.add(n))}c(Ne,"Y"),u(Ne,"D");function Fl(e,t,r){var n=0;t&&(n|=4),Es(r,e,n,t)}c(Fl,"Vi"),u(Fl,"qf");var Ll="_reactListening"+Math.random().toString(36).slice(2);function An(e){if(!e[Ll]){e[Ll]=!0,h.forEach(function(r){r!=="selectionchange"&&(ef.has(r)||Fl(r,!1,e),Fl(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ll]||(t[Ll]=!0,Fl("selectionchange",!1,t))}}c(An,"Xr"),u(An,"sf");function Es(e,t,r,n){switch(Oe(t)){case 1:var a=V;break;case 4:a=se;break;default:a=ue}r=a.bind(null,t,r,e),a=void 0,!lr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),n?a!==void 0?e.addEventListener(t,r,{capture:!0,passive:a}):e.addEventListener(t,r,!0):a!==void 0?e.addEventListener(t,r,{passive:a}):e.addEventListener(t,r,!1)}c(Es,"Wd"),u(Es,"pf");function Al(e,t,r,n,a){var d=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var g=n.tag;if(g===3||g===4){var y=n.stateNode.containerInfo;if(y===a||y.nodeType===8&&y.parentNode===a)break;if(g===4)for(g=n.return;g!==null;){var v=g.tag;if((v===3||v===4)&&(v=g.stateNode.containerInfo,v===a||v.nodeType===8&&v.parentNode===a))return;g=g.return}for(;y!==null;){if(g=yi(y),g===null)return;if(v=g.tag,v===5||v===6){n=d=g;continue e}y=y.parentNode}}n=n.return}st(function(){var T=d,O=pn(r),W=[];e:{var A=Cc.get(e);if(A!==void 0){var Z=as,re=e;switch(e){case"keypress":if(ji(r)===0)break e;case"keydown":case"keyup":Z=jp;break;case"focusin":re="focus",Z=ds;break;case"focusout":re="blur",Z=ds;break;case"beforeblur":case"afterblur":Z=ds;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":Z=ec;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z=Rp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z=$p;break;case vc:case wc:case _c:Z=Bp;break;case xc:Z=Yp;break;case"scroll":Z=Ip;break;case"wheel":Z=Kp;break;case"copy":case"cut":case"paste":Z=Lp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z=ic}var ie=(t&4)!==0,Ye=!ie&&e==="scroll",C=ie?A!==null?A+"Capture":null:A;ie=[];for(var w=T,S;w!==null;){S=w;var $=S.stateNode;if(S.tag===5&&$!==null&&(S=$,C!==null&&($=or(w,C),$!=null&&ie.push(On(w,$,S)))),Ye)break;w=w.return}0<ie.length&&(A=new Z(A,re,null,r,O),W.push({event:A,listeners:ie}))}}if(!(t&7)){e:{if(A=e==="mouseover"||e==="pointerover",Z=e==="mouseout"||e==="pointerout",A&&r!==nr&&(re=r.relatedTarget||r.fromElement)&&(yi(re)||re[Gr]))break e;if((Z||A)&&(A=O.window===O?O:(A=O.ownerDocument)?A.defaultView||A.parentWindow:window,Z?(re=r.relatedTarget||r.toElement,Z=T,re=re?yi(re):null,re!==null&&(Ye=ar(re),re!==Ye||re.tag!==5&&re.tag!==6)&&(re=null)):(Z=null,re=T),Z!==re)){if(ie=ec,$="onMouseLeave",C="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(ie=ic,$="onPointerLeave",C="onPointerEnter",w="pointer"),Ye=Z==null?A:$i(Z),S=re==null?A:$i(re),A=new ie($,w+"leave",Z,r,O),A.target=Ye,A.relatedTarget=S,$=null,yi(O)===T&&(ie=new ie(C,w+"enter",re,r,O),ie.target=S,ie.relatedTarget=Ye,$=ie),Ye=$,Z&&re)t:{for(ie=Z,C=re,w=0,S=ie;S;S=Vi(S))w++;for(S=0,$=C;$;$=Vi($))S++;for(;0<w-S;)ie=Vi(ie),w--;for(;0<S-w;)C=Vi(C),S--;for(;w--;){if(ie===C||C!==null&&ie===C.alternate)break t;ie=Vi(ie),C=Vi(C)}ie=null}else ie=null;Z!==null&&Rs(W,A,Z,ie,!1),re!==null&&Ye!==null&&Rs(W,Ye,re,ie,!0)}}e:{if(A=T?$i(T):window,Z=A.nodeName&&A.nodeName.toLowerCase(),Z==="select"||Z==="input"&&A.type==="file")var le=dc;else if(fs(A))if(cc)le=gc;else{le=pc;var he=hc}else(Z=A.nodeName)&&Z.toLowerCase()==="input"&&(A.type==="checkbox"||A.type==="radio")&&(le=fc);if(le&&(le=le(e,T))){gs(W,le,r,O);break e}he&&he(e,A,T),e==="focusout"&&(he=A._wrapperState)&&he.controlled&&A.type==="number"&&li(A,"number",A.value)}switch(he=T?$i(T):window,e){case"focusin":(fs(he)||he.contentEditable==="true")&&(Fn=he,Ss=T,Po=null);break;case"focusout":Po=Ss=Fn=null;break;case"mousedown":ks=!0;break;case"contextmenu":case"mouseup":case"dragend":ks=!1,Ts(W,r,O);break;case"selectionchange":if(Jp)break;case"keydown":case"keyup":Ts(W,r,O)}var pe;if(cs)e:{switch(e){case"compositionstart":var ve="onCompositionStart";break e;case"compositionend":ve="onCompositionEnd";break e;case"compositionupdate":ve="onCompositionUpdate";break e}ve=void 0}else Dn?hs(e,r)&&(ve="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(ve="onCompositionStart");ve&&(nc&&r.locale!=="ko"&&(Dn||ve!=="onCompositionStart"?ve==="onCompositionEnd"&&Dn&&(pe=Tt()):(Be=O,ut="value"in Be?Be.value:Be.textContent,Dn=!0)),he=Ro(T,ve),0<he.length&&(ve=new tc(ve,e,null,r,O),W.push({event:ve,listeners:he}),pe?ve.data=pe:(pe=ps(r),pe!==null&&(ve.data=pe)))),(pe=Qp?ac(e,r):sc(e,r))&&(T=Ro(T,"onBeforeInput"),0<T.length&&(O=new tc("onBeforeInput","beforeinput",null,r,O),W.push({event:O,listeners:T}),O.data=pe))}Is(W,t)})}c(Al,"Bi"),u(Al,"hd");function On(e,t,r){return{instance:e,listener:t,currentTarget:r}}c(On,"Zr"),u(On,"tf");function Ro(e,t){for(var r=t+"Capture",n=[];e!==null;){var a=e,d=a.stateNode;a.tag===5&&d!==null&&(a=d,d=or(e,r),d!=null&&n.unshift(On(e,d,a)),d=or(e,t),d!=null&&n.push(On(e,d,a))),e=e.return}return n}c(Ro,"yl"),u(Ro,"oe");function Vi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}c(Vi,"In"),u(Vi,"vf");function Rs(e,t,r,n,a){for(var d=t._reactName,g=[];r!==null&&r!==n;){var y=r,v=y.alternate,T=y.stateNode;if(v!==null&&v===n)break;y.tag===5&&T!==null&&(y=T,a?(v=or(r,d),v!=null&&g.unshift(On(r,v,y))):a||(v=or(r,d),v!=null&&g.push(On(r,v,y)))),r=r.return}g.length!==0&&e.push({event:t,listeners:g})}c(Rs,"gc"),u(Rs,"wf");var tf=/\r\n?/g,rf=/\u0000|\uFFFD/g;function Ms(e){return(typeof e=="string"?e:""+e).replace(tf,`
6
- `).replace(rf,"")}c(Ms,"yc"),u(Ms,"zf");function Mo(e,t,r){if(t=Ms(t),Ms(e)!==t&&r)throw Error(s(425))}c(Mo,"Yo"),u(Mo,"Af");function Do(){}c(Do,"vl"),u(Do,"Bf");var Ds=null,Bs=null;function Ol(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}c(Ol,"Eu"),u(Ol,"Ef");var Fs=typeof setTimeout=="function"?setTimeout:void 0,nf=typeof clearTimeout=="function"?clearTimeout:void 0,Pc=typeof Promise=="function"?Promise:void 0,of=typeof queueMicrotask=="function"?queueMicrotask:typeof Pc<"u"?function(e){return Pc.resolve(null).then(e).catch(zc)}:Fs;function zc(e){setTimeout(function(){throw e})}c(zc,"tg"),u(zc,"If");function Wl(e,t){var r=t,n=0;do{var a=r.nextSibling;if(e.removeChild(r),a&&a.nodeType===8)if(r=a.data,r==="/$"){if(n===0){e.removeChild(a),ur(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=a}while(r);ur(t)}c(Wl,"Ki"),u(Wl,"Kf");function $r(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}c($r,"Ut"),u($r,"Lf");function Ls(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}c(Ls,"wc"),u(Ls,"Mf");var Wn=Math.random().toString(36).slice(2),_r="__reactFiber$"+Wn,Bo="__reactProps$"+Wn,Gr="__reactContainer$"+Wn,As="__reactEvents$"+Wn,lf="__reactListeners$"+Wn,af="__reactHandles$"+Wn;function yi(e){var t=e[_r];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Gr]||r[_r]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Ls(e);e!==null;){if(r=e[_r])return r;e=Ls(e)}return t}e=r,r=e.parentNode}return null}c(yi,"rn"),u(yi,"Wc");function Nn(e){return e=e[_r]||e[Gr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}c(Nn,"io"),u(Nn,"Cb");function $i(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(s(33))}c($i,"Mn"),u($i,"ue");function Fo(e){return e[Bo]||null}c(Fo,"Hl"),u(Fo,"Db");var Os=[],Hn=-1;function Yr(e){return{current:e}}c(Yr,"Yt"),u(Yr,"Uf");function He(e){0>Hn||(e.current=Os[Hn],Os[Hn]=null,Hn--)}c(He,"X"),u(He,"E");function We(e,t){Hn++,Os[Hn]=e.current,e.current=t}c(We,"Q"),u(We,"G");var bi={},mt=Yr(bi),Pt=Yr(!1),Gi=bi;function Yi(e,t){var r=e.type.contextTypes;if(!r)return bi;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},d;for(d in r)a[d]=t[d];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}c(Yi,"Zn"),u(Yi,"Yf");function _t(e){return e=e.childContextTypes,e!=null}c(_t,"Te"),u(_t,"Zf");function Lo(){He(Pt),He(mt)}c(Lo,"wl"),u(Lo,"$f");function Ws(e,t,r){if(mt.current!==bi)throw Error(s(168));We(mt,t),We(Pt,r)}c(Ws,"Cc"),u(Ws,"ag");function Ns(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in t))throw Error(s(108,be(e)||"Unknown",a));return ee({},r,n)}c(Ns,"Vd"),u(Ns,"bg");function Ao(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||bi,Gi=mt.current,We(mt,e),We(Pt,Pt.current),!0}c(Ao,"Cl"),u(Ao,"cg");function Hs(e,t,r){var n=e.stateNode;if(!n)throw Error(s(169));r?(e=Ns(e,t,Gi),n.__reactInternalMemoizedMergedChildContext=e,He(Pt),He(mt),We(mt,e)):He(Pt),We(Pt,r)}c(Hs,"Sc"),u(Hs,"dg");var Xr=null,Nl=!1,js=!1;function Us(e){Xr===null?Xr=[e]:Xr.push(e)}c(Us,"Bd"),u(Us,"hg");function Ic(e){Nl=!0,Us(e)}c(Ic,"og"),u(Ic,"ig");function Kr(){if(!js&&Xr!==null){js=!0;var e=0,t=Re;try{var r=Xr;for(Re=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Xr=null,Nl=!1}catch(a){throw Xr!==null&&(Xr=Xr.slice(e+1)),co(po,Kr),a}finally{Re=t,js=!1}}return null}c(Kr,"Xt"),u(Kr,"jg");var jn=[],Un=0,Hl=null,jl=0,Gt=[],Yt=0,Xi=null,qr=1,Qr="";function vi(e,t){jn[Un++]=jl,jn[Un++]=Hl,Hl=e,jl=t}c(vi,"tn"),u(vi,"tg");function Vs(e,t,r){Gt[Yt++]=qr,Gt[Yt++]=Qr,Gt[Yt++]=Xi,Xi=e;var n=qr;e=Qr;var a=32-it(n)-1;n&=~(1<<a),r+=1;var d=32-it(t)+a;if(30<d){var g=a-a%5;d=(n&(1<<g)-1).toString(32),n>>=g,a-=g,qr=1<<32-it(t)+a|r<<a|n,Qr=d+e}else qr=1<<d|r<<a|n,Qr=e}c(Vs,"Kd"),u(Vs,"ug");function Ul(e){e.return!==null&&(vi(e,1),Vs(e,1,0))}c(Ul,"as"),u(Ul,"vg");function Vl(e){for(;e===Hl;)Hl=jn[--Un],jn[Un]=null,jl=jn[--Un],jn[Un]=null;for(;e===Xi;)Xi=Gt[--Yt],Gt[Yt]=null,Qr=Gt[--Yt],Gt[Yt]=null,qr=Gt[--Yt],Gt[Yt]=null}c(Vl,"cs"),u(Vl,"wg");var Bt=null,Ft=null,je=!1,cr=null;function $s(e,t){var r=Wt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}c($s,"Gd"),u($s,"Ag");function Gs(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,Bt=e,Ft=$r(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Bt=e,Ft=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Xi!==null?{id:qr,overflow:Qr}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Wt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Bt=e,Ft=null,!0):!1;default:return!1}}c(Gs,"kc"),u(Gs,"Cg");function $l(e){return(e.mode&1)!==0&&(e.flags&128)===0}c($l,"Pu"),u($l,"Dg");function Gl(e){if(je){var t=Ft;if(t){var r=t;if(!Gs(e,t)){if($l(e))throw Error(s(418));t=$r(r.nextSibling);var n=Bt;t&&Gs(e,t)?$s(n,r):(e.flags=e.flags&-4097|2,je=!1,Bt=e)}}else{if($l(e))throw Error(s(418));e.flags=e.flags&-4097|2,je=!1,Bt=e}}}c(Gl,"Tu"),u(Gl,"Eg");function Ys(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Bt=e}c(Ys,"xc"),u(Ys,"Fg");function Oo(e){if(e!==Bt)return!1;if(!je)return Ys(e),je=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ol(e.type,e.memoizedProps)),t&&(t=Ft)){if($l(e))throw Xs(),Error(s(418));for(;t;)$s(e,t),t=$r(t.nextSibling)}if(Ys(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Ft=$r(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Ft=null}}else Ft=Bt?$r(e.stateNode.nextSibling):null;return!0}c(Oo,"Xo"),u(Oo,"Gg");function Xs(){for(var e=Ft;e;)e=$r(e.nextSibling)}c(Xs,"Qd"),u(Xs,"Hg");function Ki(){Ft=Bt=null,je=!1}c(Ki,"Jn"),u(Ki,"Ig");function Yl(e){cr===null?cr=[e]:cr.push(e)}c(Yl,"ds"),u(Yl,"Jg");var sf=K.ReactCurrentBatchConfig;function Vn(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(s(309));var n=r.stateNode}if(!n)throw Error(s(147,e));var a=n,d=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===d?t.ref:(t=u(function(g){var y=a.refs;g===null?delete y[d]:y[d]=g},"b"),t._stringRef=d,t)}if(typeof e!="string")throw Error(s(284));if(!r._owner)throw Error(s(290,e))}return e}c(Vn,"Er"),u(Vn,"Lg");function Wo(e,t){throw e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}c(Wo,"Zo"),u(Wo,"Mg");function Ks(e){var t=e._init;return t(e._payload)}c(Ks,"Ec"),u(Ks,"Ng");function qs(e){function t(C,w){if(e){var S=C.deletions;S===null?(C.deletions=[w],C.flags|=16):S.push(w)}}c(t,"t"),u(t,"b");function r(C,w){if(!e)return null;for(;w!==null;)t(C,w),w=w.sibling;return null}c(r,"n"),u(r,"c");function n(C,w){for(C=new Map;w!==null;)w.key!==null?C.set(w.key,w):C.set(w.index,w),w=w.sibling;return C}c(n,"r"),u(n,"d");function a(C,w){return C=ii(C,w),C.index=0,C.sibling=null,C}c(a,"o"),u(a,"e");function d(C,w,S){return C.index=S,e?(S=C.alternate,S!==null?(S=S.index,S<w?(C.flags|=2,w):S):(C.flags|=2,w)):(C.flags|=1048576,w)}c(d,"l"),u(d,"f");function g(C){return e&&C.alternate===null&&(C.flags|=2),C}c(g,"u"),u(g,"g");function y(C,w,S,$){return w===null||w.tag!==6?(w=Ha(S,C.mode,$),w.return=C,w):(w=a(w,S),w.return=C,w)}c(y,"s"),u(y,"h");function v(C,w,S,$){var le=S.type;return le===k?O(C,w,S.props.children,$,S.key):w!==null&&(w.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===Le&&Ks(le)===w.type)?($=a(w,S.props),$.ref=Vn(C,w,S),$.return=C,$):($=il(S.type,S.key,S.props,null,C.mode,$),$.ref=Vn(C,w,S),$.return=C,$)}c(v,"a"),u(v,"k");function T(C,w,S,$){return w===null||w.tag!==4||w.stateNode.containerInfo!==S.containerInfo||w.stateNode.implementation!==S.implementation?(w=ja(S,C.mode,$),w.return=C,w):(w=a(w,S.children||[]),w.return=C,w)}c(T,"f"),u(T,"l");function O(C,w,S,$,le){return w===null||w.tag!==7?(w=Pi(S,C.mode,$,le),w.return=C,w):(w=a(w,S),w.return=C,w)}c(O,"v"),u(O,"m");function W(C,w,S){if(typeof w=="string"&&w!==""||typeof w=="number")return w=Ha(""+w,C.mode,S),w.return=C,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case X:return S=il(w.type,w.key,w.props,null,C.mode,S),S.ref=Vn(C,null,w),S.return=C,S;case E:return w=ja(w,C.mode,S),w.return=C,w;case Le:var $=w._init;return W(C,$(w._payload),S)}if(rr(w)||ne(w))return w=Pi(w,C.mode,S,null),w.return=C,w;Wo(C,w)}return null}c(W,"g"),u(W,"q");function A(C,w,S,$){var le=w!==null?w.key:null;if(typeof S=="string"&&S!==""||typeof S=="number")return le!==null?null:y(C,w,""+S,$);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case X:return S.key===le?v(C,w,S,$):null;case E:return S.key===le?T(C,w,S,$):null;case Le:return le=S._init,A(C,w,le(S._payload),$)}if(rr(S)||ne(S))return le!==null?null:O(C,w,S,$,null);Wo(C,S)}return null}c(A,"h"),u(A,"r");function Z(C,w,S,$,le){if(typeof $=="string"&&$!==""||typeof $=="number")return C=C.get(S)||null,y(w,C,""+$,le);if(typeof $=="object"&&$!==null){switch($.$$typeof){case X:return C=C.get($.key===null?S:$.key)||null,v(w,C,$,le);case E:return C=C.get($.key===null?S:$.key)||null,T(w,C,$,le);case Le:var he=$._init;return Z(C,w,S,he($._payload),le)}if(rr($)||ne($))return C=C.get(S)||null,O(w,C,$,le,null);Wo(w,$)}return null}c(Z,"y"),u(Z,"y");function re(C,w,S,$){for(var le=null,he=null,pe=w,ve=w=0,lt=null;pe!==null&&ve<S.length;ve++){pe.index>ve?(lt=pe,pe=null):lt=pe.sibling;var De=A(C,pe,S[ve],$);if(De===null){pe===null&&(pe=lt);break}e&&pe&&De.alternate===null&&t(C,pe),w=d(De,w,ve),he===null?le=De:he.sibling=De,he=De,pe=lt}if(ve===S.length)return r(C,pe),je&&vi(C,ve),le;if(pe===null){for(;ve<S.length;ve++)pe=W(C,S[ve],$),pe!==null&&(w=d(pe,w,ve),he===null?le=pe:he.sibling=pe,he=pe);return je&&vi(C,ve),le}for(pe=n(C,pe);ve<S.length;ve++)lt=Z(pe,C,ve,S[ve],$),lt!==null&&(e&&lt.alternate!==null&&pe.delete(lt.key===null?ve:lt.key),w=d(lt,w,ve),he===null?le=lt:he.sibling=lt,he=lt);return e&&pe.forEach(function(zi){return t(C,zi)}),je&&vi(C,ve),le}c(re,"x"),u(re,"n");function ie(C,w,S,$){var le=ne(S);if(typeof le!="function")throw Error(s(150));if(S=le.call(S),S==null)throw Error(s(151));for(var he=le=null,pe=w,ve=w=0,lt=null,De=S.next();pe!==null&&!De.done;ve++,De=S.next()){pe.index>ve?(lt=pe,pe=null):lt=pe.sibling;var zi=A(C,pe,De.value,$);if(zi===null){pe===null&&(pe=lt);break}e&&pe&&zi.alternate===null&&t(C,pe),w=d(zi,w,ve),he===null?le=zi:he.sibling=zi,he=zi,pe=lt}if(De.done)return r(C,pe),je&&vi(C,ve),le;if(pe===null){for(;!De.done;ve++,De=S.next())De=W(C,De.value,$),De!==null&&(w=d(De,w,ve),he===null?le=De:he.sibling=De,he=De);return je&&vi(C,ve),le}for(pe=n(C,pe);!De.done;ve++,De=S.next())De=Z(pe,C,ve,De.value,$),De!==null&&(e&&De.alternate!==null&&pe.delete(De.key===null?ve:De.key),w=d(De,w,ve),he===null?le=De:he.sibling=De,he=De);return e&&pe.forEach(function(vf){return t(C,vf)}),je&&vi(C,ve),le}c(ie,"S"),u(ie,"t");function Ye(C,w,S,$){if(typeof S=="object"&&S!==null&&S.type===k&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case X:e:{for(var le=S.key,he=w;he!==null;){if(he.key===le){if(le=S.type,le===k){if(he.tag===7){r(C,he.sibling),w=a(he,S.props.children),w.return=C,C=w;break e}}else if(he.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===Le&&Ks(le)===he.type){r(C,he.sibling),w=a(he,S.props),w.ref=Vn(C,he,S),w.return=C,C=w;break e}r(C,he);break}else t(C,he);he=he.sibling}S.type===k?(w=Pi(S.props.children,C.mode,$,S.key),w.return=C,C=w):($=il(S.type,S.key,S.props,null,C.mode,$),$.ref=Vn(C,w,S),$.return=C,C=$)}return g(C);case E:e:{for(he=S.key;w!==null;){if(w.key===he)if(w.tag===4&&w.stateNode.containerInfo===S.containerInfo&&w.stateNode.implementation===S.implementation){r(C,w.sibling),w=a(w,S.children||[]),w.return=C,C=w;break e}else{r(C,w);break}else t(C,w);w=w.sibling}w=ja(S,C.mode,$),w.return=C,C=w}return g(C);case Le:return he=S._init,Ye(C,w,he(S._payload),$)}if(rr(S))return re(C,w,S,$);if(ne(S))return ie(C,w,S,$);Wo(C,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,w!==null&&w.tag===6?(r(C,w.sibling),w=a(w,S),w.return=C,C=w):(r(C,w),w=Ha(S,C.mode,$),w.return=C,C=w),g(C)):r(C,w)}return c(Ye,"P"),u(Ye,"J"),Ye}c(qs,"Yd"),u(qs,"Og");var $n=qs(!0),Ec=qs(!1),Xl=Yr(null),Kl=null,Gn=null,Qs=null;function ql(){Qs=Gn=Kl=null}c(ql,"ps"),u(ql,"$g");function Ql(e){var t=Xl.current;He(Xl),e._currentValue=t}c(Ql,"hs"),u(Ql,"ah");function Zl(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}c(Zl,"Iu"),u(Zl,"bh");function qi(e,t){Kl=e,Qs=Gn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(zt=!0),e.firstContext=null)}c(qi,"Qn"),u(qi,"ch");function Lt(e){var t=e._currentValue;if(Qs!==e)if(e={context:e,memoizedValue:t,next:null},Gn===null){if(Kl===null)throw Error(s(308));Gn=e,Kl.dependencies={lanes:0,firstContext:e}}else Gn=Gn.next=e;return t}c(Lt,"Qe"),u(Lt,"eh");var Qi=null;function Jl(e){Qi===null?Qi=[e]:Qi.push(e)}c(Jl,"ms"),u(Jl,"gh");function Zs(e,t,r,n){var a=t.interleaved;return a===null?(r.next=r,Jl(t)):(r.next=a.next,a.next=r),t.interleaved=r,xr(e,n)}c(Zs,"Zd"),u(Zs,"hh");function xr(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}c(xr,"kt"),u(xr,"ih");var wi=!1;function ea(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}c(ea,"gs"),u(ea,"kh");function Js(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})}c(Js,"Jd"),u(Js,"lh");function Cr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}c(Cr,"wt"),u(Cr,"mh");function Zr(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Ie&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,xr(e,r)}return a=n.interleaved,a===null?(t.next=t,Jl(n)):(t.next=a.next,a.next=t),n.interleaved=t,xr(e,r)}c(Zr,"$t"),u(Zr,"nh");function No(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,hi(e,r)}}c(No,"rl"),u(No,"oh");function eu(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,d=null;if(r=r.firstBaseUpdate,r!==null){do{var g={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};d===null?a=d=g:d=d.next=g,r=r.next}while(r!==null);d===null?a=d=t:d=d.next=t}else a=d=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:d,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}c(eu,"Rc"),u(eu,"ph");function Ho(e,t,r,n){var a=e.updateQueue;wi=!1;var d=a.firstBaseUpdate,g=a.lastBaseUpdate,y=a.shared.pending;if(y!==null){a.shared.pending=null;var v=y,T=v.next;v.next=null,g===null?d=T:g.next=T,g=v;var O=e.alternate;O!==null&&(O=O.updateQueue,y=O.lastBaseUpdate,y!==g&&(y===null?O.firstBaseUpdate=T:y.next=T,O.lastBaseUpdate=v))}if(d!==null){var W=a.baseState;g=0,O=T=v=null,y=d;do{var A=y.lane,Z=y.eventTime;if((n&A)===A){O!==null&&(O=O.next={eventTime:Z,lane:0,tag:y.tag,payload:y.payload,callback:y.callback,next:null});e:{var re=e,ie=y;switch(A=t,Z=r,ie.tag){case 1:if(re=ie.payload,typeof re=="function"){W=re.call(Z,W,A);break e}W=re;break e;case 3:re.flags=re.flags&-65537|128;case 0:if(re=ie.payload,A=typeof re=="function"?re.call(Z,W,A):re,A==null)break e;W=ee({},W,A);break e;case 2:wi=!0}}y.callback!==null&&y.lane!==0&&(e.flags|=64,A=a.effects,A===null?a.effects=[y]:A.push(y))}else Z={eventTime:Z,lane:A,tag:y.tag,payload:y.payload,callback:y.callback,next:null},O===null?(T=O=Z,v=W):O=O.next=Z,g|=A;if(y=y.next,y===null){if(y=a.shared.pending,y===null)break;A=y,y=A.next,A.next=null,a.lastBaseUpdate=A,a.shared.pending=null}}while(!0);if(O===null&&(v=W),a.baseState=v,a.firstBaseUpdate=T,a.lastBaseUpdate=O,t=a.shared.interleaved,t!==null){a=t;do g|=a.lane,a=a.next;while(a!==t)}else d===null&&(a.shared.lanes=0);rn|=g,e.lanes=g,e.memoizedState=W}}c(Ho,"Rl"),u(Ho,"qh");function tu(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],a=n.callback;if(a!==null){if(n.callback=null,n=r,typeof a!="function")throw Error(s(191,a));a.call(n)}}}c(tu,"_c"),u(tu,"sh");var jo={},Sr=Yr(jo),Uo=Yr(jo),Vo=Yr(jo);function _i(e){if(e===jo)throw Error(s(174));return e}c(_i,"ln"),u(_i,"xh");function ta(e,t){switch(We(Vo,t),We(Uo,e),We(Sr,jo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:cn(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=cn(t,e)}He(Sr),We(Sr,t)}c(ta,"ys"),u(ta,"yh");function Zi(){He(Sr),He(Uo),He(Vo)}c(Zi,"bn"),u(Zi,"zh");function ru(e){_i(Vo.current);var t=_i(Sr.current),r=cn(t,e.type);t!==r&&(We(Uo,e),We(Sr,r))}c(ru,"qd"),u(ru,"Ah");function ra(e){Uo.current===e&&(He(Sr),He(Uo))}c(ra,"vs"),u(ra,"Bh");var Ue=Yr(0);function $o(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&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}c($o,"_l"),u($o,"Ch");var iu=[];function ia(){for(var e=0;e<iu.length;e++)iu[e]._workInProgressVersionPrimary=null;iu.length=0}c(ia,"ws"),u(ia,"Eh");var na=K.ReactCurrentDispatcher,nu=K.ReactCurrentBatchConfig,Ji=0,Ve=null,et=null,nt=null,oa=!1,Go=!1,Yo=0,uf=0;function dt(){throw Error(s(321))}c(dt,"ge"),u(dt,"P");function la(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!dr(e[r],t[r]))return!1;return!0}c(la,"Cs"),u(la,"Mh");function aa(e,t,r,n,a,d){if(Ji=d,Ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,na.current=e===null||e.memoizedState===null?df:cf,e=r(n,a),Go){d=0;do{if(Go=!1,Yo=0,25<=d)throw Error(s(301));d+=1,nt=et=null,t.updateQueue=null,na.current=hf,e=r(n,a)}while(Go)}if(na.current=pa,t=et!==null&&et.next!==null,Ji=0,nt=et=Ve=null,oa=!1,t)throw Error(s(300));return e}c(aa,"Ss"),u(aa,"Nh");function sa(){var e=Yo!==0;return Yo=0,e}c(sa,"ks"),u(sa,"Sh");function hr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nt===null?Ve.memoizedState=nt=e:nt=nt.next=e,nt}c(hr,"at"),u(hr,"Th");function At(){if(et===null){var e=Ve.alternate;e=e!==null?e.memoizedState:null}else e=et.next;var t=nt===null?Ve.memoizedState:nt.next;if(t!==null)nt=t,et=e;else{if(e===null)throw Error(s(310));et=e,e={memoizedState:et.memoizedState,baseState:et.baseState,baseQueue:et.baseQueue,queue:et.queue,next:null},nt===null?Ve.memoizedState=nt=e:nt=nt.next=e}return nt}c(At,"Ye"),u(At,"Uh");function Yn(e,t){return typeof t=="function"?t(e):t}c(Yn,"to"),u(Yn,"Vh");function ua(e){var t=At(),r=t.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=e;var n=et,a=n.baseQueue,d=r.pending;if(d!==null){if(a!==null){var g=a.next;a.next=d.next,d.next=g}n.baseQueue=a=d,r.pending=null}if(a!==null){d=a.next,n=n.baseState;var y=g=null,v=null,T=d;do{var O=T.lane;if((Ji&O)===O)v!==null&&(v=v.next={lane:0,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),n=T.hasEagerState?T.eagerState:e(n,T.action);else{var W={lane:O,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null};v===null?(y=v=W,g=n):v=v.next=W,Ve.lanes|=O,rn|=O}T=T.next}while(T!==null&&T!==d);v===null?g=n:v.next=y,dr(n,t.memoizedState)||(zt=!0),t.memoizedState=n,t.baseState=g,t.baseQueue=v,r.lastRenderedState=n}if(e=r.interleaved,e!==null){a=e;do d=a.lane,Ve.lanes|=d,rn|=d,a=a.next;while(a!==e)}else a===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}c(ua,"Xi"),u(ua,"Wh");function da(e){var t=At(),r=t.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=e;var n=r.dispatch,a=r.pending,d=t.memoizedState;if(a!==null){r.pending=null;var g=a=a.next;do d=e(d,g.action),g=g.next;while(g!==a);dr(d,t.memoizedState)||(zt=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),r.lastRenderedState=d}return[d,n]}c(da,"Zi"),u(da,"Xh");function ou(){}c(ou,"bd"),u(ou,"Yh");function lu(e,t){var r=Ve,n=At(),a=t(),d=!dr(n.memoizedState,a);if(d&&(n.memoizedState=a,zt=!0),n=n.queue,ca(uu.bind(null,r,n,e),[e]),n.getSnapshot!==t||d||nt!==null&&nt.memoizedState.tag&1){if(r.flags|=2048,Xn(9,su.bind(null,r,n,a,t),void 0,null),ot===null)throw Error(s(349));Ji&30||au(r,t,a)}return a}c(lu,"ef"),u(lu,"Zh");function au(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Ve.updateQueue,t===null?(t={lastEffect:null,stores:null},Ve.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}c(au,"tf"),u(au,"di");function su(e,t,r,n){t.value=r,t.getSnapshot=n,du(t)&&cu(e)}c(su,"nf"),u(su,"ci");function uu(e,t,r){return r(function(){du(t)&&cu(e)})}c(uu,"rf"),u(uu,"ai");function du(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!dr(e,r)}catch{return!0}}c(du,"of"),u(du,"ei");function cu(e){var t=xr(e,1);t!==null&&Qt(t,e,1,-1)}c(cu,"lf"),u(cu,"fi");function hu(e){var t=hr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Yn,lastRenderedState:e},t.queue=e,e=e.dispatch=Dc.bind(null,Ve,e),[t.memoizedState,e]}c(hu,"zc"),u(hu,"hi");function Xn(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Ve.updateQueue,t===null?(t={lastEffect:null,stores:null},Ve.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}c(Xn,"no"),u(Xn,"bi");function pu(){return At().memoizedState}c(pu,"uf"),u(pu,"ji");function Xo(e,t,r,n){var a=hr();Ve.flags|=e,a.memoizedState=Xn(1|t,r,void 0,n===void 0?null:n)}c(Xo,"ll"),u(Xo,"ki");function Ko(e,t,r,n){var a=At();n=n===void 0?null:n;var d=void 0;if(et!==null){var g=et.memoizedState;if(d=g.destroy,n!==null&&la(n,g.deps)){a.memoizedState=Xn(t,r,d,n);return}}Ve.flags|=e,a.memoizedState=Xn(1|t,r,d,n)}c(Ko,"Ul"),u(Ko,"li");function fu(e,t){return Xo(8390656,8,e,t)}c(fu,"Pc"),u(fu,"mi");function ca(e,t){return Ko(2048,8,e,t)}c(ca,"xs"),u(ca,"$h");function gu(e,t){return Ko(4,2,e,t)}c(gu,"sf"),u(gu,"ni");function mu(e,t){return Ko(4,4,e,t)}c(mu,"af"),u(mu,"oi");function yu(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}}c(yu,"cf"),u(yu,"pi");function bu(e,t,r){return r=r!=null?r.concat([e]):null,Ko(4,4,yu.bind(null,t,e),r)}c(bu,"df"),u(bu,"qi");function ha(){}c(ha,"Es"),u(ha,"ri");function vu(e,t){var r=At();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&la(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}c(vu,"ff"),u(vu,"si");function wu(e,t){var r=At();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&la(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}c(wu,"pf"),u(wu,"ti");function _u(e,t,r){return Ji&21?(dr(r,t)||(r=mo(),Ve.lanes|=r,rn|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,zt=!0),e.memoizedState=r)}c(_u,"hf"),u(_u,"ui");function Rc(e,t){var r=Re;Re=r!==0&&4>r?r:4,e(!0);var n=nu.transition;nu.transition={};try{e(!1),t()}finally{Re=r,nu.transition=n}}c(Rc,"ug"),u(Rc,"vi");function xu(){return At().memoizedState}c(xu,"mf"),u(xu,"wi");function Mc(e,t,r){var n=ti(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Cu(e))Su(t,r);else if(r=Zs(e,t,r,n),r!==null){var a=vt();Qt(r,e,n,a),ku(r,t,n)}}c(Mc,"sg"),u(Mc,"xi");function Dc(e,t,r){var n=ti(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Cu(e))Su(t,a);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var g=t.lastRenderedState,y=d(g,r);if(a.hasEagerState=!0,a.eagerState=y,dr(y,g)){var v=t.interleaved;v===null?(a.next=a,Jl(t)):(a.next=v.next,v.next=a),t.interleaved=a;return}}catch{}finally{}r=Zs(e,t,a,n),r!==null&&(a=vt(),Qt(r,e,n,a),ku(r,t,n))}}c(Dc,"ag"),u(Dc,"ii");function Cu(e){var t=e.alternate;return e===Ve||t!==null&&t===Ve}c(Cu,"gf"),u(Cu,"zi");function Su(e,t){Go=oa=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}c(Su,"yf"),u(Su,"Ai");function ku(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,hi(e,r)}}c(ku,"vf"),u(ku,"Bi");var pa={readContext:Lt,useCallback:dt,useContext:dt,useEffect:dt,useImperativeHandle:dt,useInsertionEffect:dt,useLayoutEffect:dt,useMemo:dt,useReducer:dt,useRef:dt,useState:dt,useDebugValue:dt,useDeferredValue:dt,useTransition:dt,useMutableSource:dt,useSyncExternalStore:dt,useId:dt,unstable_isNewReconciler:!1},df={readContext:Lt,useCallback:u(function(e,t){return hr().memoizedState=[e,t===void 0?null:t],e},"useCallback"),useContext:Lt,useEffect:fu,useImperativeHandle:u(function(e,t,r){return r=r!=null?r.concat([e]):null,Xo(4194308,4,yu.bind(null,t,e),r)},"useImperativeHandle"),useLayoutEffect:u(function(e,t){return Xo(4194308,4,e,t)},"useLayoutEffect"),useInsertionEffect:u(function(e,t){return Xo(4,2,e,t)},"useInsertionEffect"),useMemo:u(function(e,t){var r=hr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},"useMemo"),useReducer:u(function(e,t,r){var n=hr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Mc.bind(null,Ve,e),[n.memoizedState,e]},"useReducer"),useRef:u(function(e){var t=hr();return e={current:e},t.memoizedState=e},"useRef"),useState:hu,useDebugValue:ha,useDeferredValue:u(function(e){return hr().memoizedState=e},"useDeferredValue"),useTransition:u(function(){var e=hu(!1),t=e[0];return e=Rc.bind(null,e[1]),hr().memoizedState=e,[t,e]},"useTransition"),useMutableSource:u(function(){},"useMutableSource"),useSyncExternalStore:u(function(e,t,r){var n=Ve,a=hr();if(je){if(r===void 0)throw Error(s(407));r=r()}else{if(r=t(),ot===null)throw Error(s(349));Ji&30||au(n,t,r)}a.memoizedState=r;var d={value:r,getSnapshot:t};return a.queue=d,fu(uu.bind(null,n,d,e),[e]),n.flags|=2048,Xn(9,su.bind(null,n,d,r,t),void 0,null),r},"useSyncExternalStore"),useId:u(function(){var e=hr(),t=ot.identifierPrefix;if(je){var r=Qr,n=qr;r=(n&~(1<<32-it(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Yo++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=uf++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},"useId"),unstable_isNewReconciler:!1},cf={readContext:Lt,useCallback:vu,useContext:Lt,useEffect:ca,useImperativeHandle:bu,useInsertionEffect:gu,useLayoutEffect:mu,useMemo:wu,useReducer:ua,useRef:pu,useState:u(function(){return ua(Yn)},"useState"),useDebugValue:ha,useDeferredValue:u(function(e){var t=At();return _u(t,et.memoizedState,e)},"useDeferredValue"),useTransition:u(function(){var e=ua(Yn)[0],t=At().memoizedState;return[e,t]},"useTransition"),useMutableSource:ou,useSyncExternalStore:lu,useId:xu,unstable_isNewReconciler:!1},hf={readContext:Lt,useCallback:vu,useContext:Lt,useEffect:ca,useImperativeHandle:bu,useInsertionEffect:gu,useLayoutEffect:mu,useMemo:wu,useReducer:da,useRef:pu,useState:u(function(){return da(Yn)},"useState"),useDebugValue:ha,useDeferredValue:u(function(e){var t=At();return et===null?t.memoizedState=e:_u(t,et.memoizedState,e)},"useDeferredValue"),useTransition:u(function(){var e=da(Yn)[0],t=At().memoizedState;return[e,t]},"useTransition"),useMutableSource:ou,useSyncExternalStore:lu,useId:xu,unstable_isNewReconciler:!1};function Xt(e,t){if(e&&e.defaultProps){t=ee({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}c(Xt,"be"),u(Xt,"Ci");function fa(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:ee({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}c(fa,"Nu"),u(fa,"Di");var ga={isMounted:u(function(e){return(e=e._reactInternals)?ar(e)===e:!1},"isMounted"),enqueueSetState:u(function(e,t,r){e=e._reactInternals;var n=vt(),a=ti(e),d=Cr(n,a);d.payload=t,r!=null&&(d.callback=r),t=Zr(e,d,a),t!==null&&(Qt(t,e,a,n),No(t,e,a))},"enqueueSetState"),enqueueReplaceState:u(function(e,t,r){e=e._reactInternals;var n=vt(),a=ti(e),d=Cr(n,a);d.tag=1,d.payload=t,r!=null&&(d.callback=r),t=Zr(e,d,a),t!==null&&(Qt(t,e,a,n),No(t,e,a))},"enqueueReplaceState"),enqueueForceUpdate:u(function(e,t){e=e._reactInternals;var r=vt(),n=ti(e),a=Cr(r,n);a.tag=2,t!=null&&(a.callback=t),t=Zr(e,a,n),t!==null&&(Qt(t,e,n,r),No(t,e,n))},"enqueueForceUpdate")};function Tu(e,t,r,n,a,d,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,d,g):t.prototype&&t.prototype.isPureReactComponent?!Bn(r,n)||!Bn(a,d):!0}c(Tu,"Tc"),u(Tu,"Fi");function Pu(e,t,r){var n=!1,a=bi,d=t.contextType;return typeof d=="object"&&d!==null?d=Lt(d):(a=_t(t)?Gi:mt.current,n=t.contextTypes,d=(n=n!=null)?Yi(e,a):bi),t=new t(r,d),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ga,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=d),t}c(Pu,"wf"),u(Pu,"Gi");function zu(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&&ga.enqueueReplaceState(t,t.state,null)}c(zu,"Ic"),u(zu,"Hi");function ma(e,t,r,n){var a=e.stateNode;a.props=r,a.state=e.memoizedState,a.refs={},ea(e);var d=t.contextType;typeof d=="object"&&d!==null?a.context=Lt(d):(d=_t(t)?Gi:mt.current,a.context=Yi(e,d)),a.state=e.memoizedState,d=t.getDerivedStateFromProps,typeof d=="function"&&(fa(e,t,d,r),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&ga.enqueueReplaceState(a,a.state,null),Ho(e,r,a,n),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}c(ma,"Du"),u(ma,"Ii");function en(e,t){try{var r="",n=t;do r+=we(n),n=n.return;while(n);var a=r}catch(d){a=`
7
- Error generating stack: `+d.message+`
8
- `+d.stack}return{value:e,source:t,stack:a,digest:null}}c(en,"er"),u(en,"Ji");function ya(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}c(ya,"Ji"),u(ya,"Ki");function ba(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}c(ba,"Lu"),u(ba,"Li");var pf=typeof WeakMap=="function"?WeakMap:Map;function Iu(e,t,r){r=Cr(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Ea||(Ea=!0,ad=n),ba(e,t)},r}c(Iu,"Cf"),u(Iu,"Ni");function Eu(e,t,r){r=Cr(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var a=t.value;r.payload=function(){return n(a)},r.callback=function(){ba(e,t)}}var d=e.stateNode;return d!==null&&typeof d.componentDidCatch=="function"&&(r.callback=function(){ba(e,t),typeof n!="function"&&(xi===null?xi=new Set([this]):xi.add(this));var g=t.stack;this.componentDidCatch(t.value,{componentStack:g!==null?g:""})}),r}c(Eu,"Sf"),u(Eu,"Qi");function Ru(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new pf;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(r)||(a.add(r),e=Xc.bind(null,e,t,r),t.then(e,e))}c(Ru,"Nc"),u(Ru,"Si");function Mu(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}c(Mu,"Dc"),u(Mu,"Ui");function Du(e,t,r,n,a){return e.mode&1?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Cr(-1,1),t.tag=2,Zr(r,t,1))),r.lanes|=1),e)}c(Du,"Lc"),u(Du,"Vi");var ff=K.ReactCurrentOwner,zt=!1;function yt(e,t,r,n){t.child=e===null?Ec(t,null,r,n):$n(t,e.child,r,n)}c(yt,"Se"),u(yt,"Xi");function Bu(e,t,r,n,a){r=r.render;var d=t.ref;return qi(t,a),n=aa(e,t,r,n,d,a),r=sa(),e!==null&&!zt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,kr(e,t,a)):(je&&r&&Ul(t),t.flags|=1,yt(e,t,n,a),t.child)}c(Bu,"Fc"),u(Bu,"Yi");function Fu(e,t,r,n,a){if(e===null){var d=r.type;return typeof d=="function"&&!Na(d)&&d.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=d,Lu(e,t,d,n,a)):(e=il(r.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!(e.lanes&a)){var g=d.memoizedProps;if(r=r.compare,r=r!==null?r:Bn,r(g,n)&&e.ref===t.ref)return kr(e,t,a)}return t.flags|=1,e=ii(d,n),e.ref=t.ref,e.return=t,t.child=e}c(Fu,"Oc"),u(Fu,"$i");function Lu(e,t,r,n,a){if(e!==null){var d=e.memoizedProps;if(Bn(d,n)&&e.ref===t.ref)if(zt=!1,t.pendingProps=n=d,(e.lanes&a)!==0)e.flags&131072&&(zt=!0);else return t.lanes=e.lanes,kr(e,t,a)}return va(e,t,r,n,a)}c(Lu,"kf"),u(Lu,"bj");function Au(e,t,r){var n=t.pendingProps,a=n.children,d=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},We(Qn,Ot),Ot|=r;else{if(!(r&1073741824))return e=d!==null?d.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,We(Qn,Ot),Ot|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=d!==null?d.baseLanes:r,We(Qn,Ot),Ot|=n}else d!==null?(n=d.baseLanes|r,t.memoizedState=null):n=r,We(Qn,Ot),Ot|=n;return yt(e,t,a,r),t.child}c(Au,"xf"),u(Au,"dj");function Ou(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}c(Ou,"Ef"),u(Ou,"gj");function va(e,t,r,n,a){var d=_t(r)?Gi:mt.current;return d=Yi(t,d),qi(t,a),r=aa(e,t,r,n,d,a),n=sa(),e!==null&&!zt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,kr(e,t,a)):(je&&n&&Ul(t),t.flags|=1,yt(e,t,r,a),t.child)}c(va,"Fu"),u(va,"cj");function Wu(e,t,r,n,a){if(_t(r)){var d=!0;Ao(t)}else d=!1;if(qi(t,a),t.stateNode===null)Qo(e,t),Pu(t,r,n),ma(t,r,n,a),n=!0;else if(e===null){var g=t.stateNode,y=t.memoizedProps;g.props=y;var v=g.context,T=r.contextType;typeof T=="object"&&T!==null?T=Lt(T):(T=_t(r)?Gi:mt.current,T=Yi(t,T));var O=r.getDerivedStateFromProps,W=typeof O=="function"||typeof g.getSnapshotBeforeUpdate=="function";W||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(y!==n||v!==T)&&zu(t,g,n,T),wi=!1;var A=t.memoizedState;g.state=A,Ho(t,n,g,a),v=t.memoizedState,y!==n||A!==v||Pt.current||wi?(typeof O=="function"&&(fa(t,r,O,n),v=t.memoizedState),(y=wi||Tu(t,r,y,n,A,v,T))?(W||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(t.flags|=4194308)):(typeof g.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=v),g.props=n,g.state=v,g.context=T,n=y):(typeof g.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{g=t.stateNode,Js(e,t),y=t.memoizedProps,T=t.type===t.elementType?y:Xt(t.type,y),g.props=T,W=t.pendingProps,A=g.context,v=r.contextType,typeof v=="object"&&v!==null?v=Lt(v):(v=_t(r)?Gi:mt.current,v=Yi(t,v));var Z=r.getDerivedStateFromProps;(O=typeof Z=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(y!==W||A!==v)&&zu(t,g,n,v),wi=!1,A=t.memoizedState,g.state=A,Ho(t,n,g,a);var re=t.memoizedState;y!==W||A!==re||Pt.current||wi?(typeof Z=="function"&&(fa(t,r,Z,n),re=t.memoizedState),(T=wi||Tu(t,r,T,n,A,re,v)||!1)?(O||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(n,re,v),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(n,re,v)),typeof g.componentDidUpdate=="function"&&(t.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof g.componentDidUpdate!="function"||y===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=re),g.props=n,g.state=re,g.context=v,n=T):(typeof g.componentDidUpdate!="function"||y===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),n=!1)}return wa(e,t,r,n,d,a)}c(Wu,"Mc"),u(Wu,"hj");function wa(e,t,r,n,a,d){Ou(e,t);var g=(t.flags&128)!==0;if(!n&&!g)return a&&Hs(t,r,!1),kr(e,t,d);n=t.stateNode,ff.current=t;var y=g&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&g?(t.child=$n(t,e.child,null,d),t.child=$n(t,null,y,d)):yt(e,t,y,d),t.memoizedState=n.state,a&&Hs(t,r,!0),t.child}c(wa,"Ou"),u(wa,"jj");function Nu(e){var t=e.stateNode;t.pendingContext?Ws(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ws(e,t.context,!1),ta(e,t.containerInfo)}c(Nu,"Rf"),u(Nu,"kj");function Hu(e,t,r,n,a){return Ki(),Yl(a),t.flags|=256,yt(e,t,r,n),t.child}c(Hu,"jc"),u(Hu,"lj");var ju={dehydrated:null,treeContext:null,retryLane:0};function _a(e){return{baseLanes:e,cachePool:null,transitions:null}}c(_a,"ju"),u(_a,"nj");function Uu(e,t,r){var n=t.pendingProps,a=Ue.current,d=!1,g=(t.flags&128)!==0,y;if((y=g)||(y=e!==null&&e.memoizedState===null?!1:(a&2)!==0),y?(d=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),We(Ue,a&1),e===null)return Gl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(g=n.children,e=n.fallback,d?(n=t.mode,d=t.child,g={mode:"hidden",children:g},!(n&1)&&d!==null?(d.childLanes=0,d.pendingProps=g):d=nl(g,n,0,null),e=Pi(e,n,r,null),d.return=t,e.return=t,d.sibling=e,t.child=d,t.child.memoizedState=_a(r),t.memoizedState=ju,e):xa(t,g));if(a=e.memoizedState,a!==null&&(y=a.dehydrated,y!==null))return Bc(e,t,g,n,y,a,r);if(d){d=n.fallback,g=t.mode,a=e.child,y=a.sibling;var v={mode:"hidden",children:n.children};return!(g&1)&&t.child!==a?(n=t.child,n.childLanes=0,n.pendingProps=v,t.deletions=null):(n=ii(a,v),n.subtreeFlags=a.subtreeFlags&14680064),y!==null?d=ii(y,d):(d=Pi(d,g,r,null),d.flags|=2),d.return=t,n.return=t,n.sibling=d,t.child=n,n=d,d=t.child,g=e.child.memoizedState,g=g===null?_a(r):{baseLanes:g.baseLanes|r,cachePool:null,transitions:g.transitions},d.memoizedState=g,d.childLanes=e.childLanes&~r,t.memoizedState=ju,n}return d=e.child,e=d.sibling,n=ii(d,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}c(Uu,"_f"),u(Uu,"oj");function xa(e,t){return t=nl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}c(xa,"Rs"),u(xa,"qj");function qo(e,t,r,n){return n!==null&&Yl(n),$n(t,e.child,null,r),e=xa(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}c(qo,"Jo"),u(qo,"sj");function Bc(e,t,r,n,a,d,g){if(r)return t.flags&256?(t.flags&=-257,n=ya(Error(s(422))),qo(e,t,g,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(d=n.fallback,a=t.mode,n=nl({mode:"visible",children:n.children},a,0,null),d=Pi(d,a,g,null),d.flags|=2,n.return=t,d.return=t,n.sibling=d,t.child=n,t.mode&1&&$n(t,e.child,null,g),t.child.memoizedState=_a(g),t.memoizedState=ju,d);if(!(t.mode&1))return qo(e,t,g,null);if(a.data==="$!"){if(n=a.nextSibling&&a.nextSibling.dataset,n)var y=n.dgst;return n=y,d=Error(s(419)),n=ya(d,n,void 0),qo(e,t,g,n)}if(y=(g&e.childLanes)!==0,zt||y){if(n=ot,n!==null){switch(g&-g){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(n.suspendedLanes|g)?0:a,a!==0&&a!==d.retryLane&&(d.retryLane=a,xr(e,a),Qt(n,e,a,-1))}return Wa(),n=ya(Error(s(421))),qo(e,t,g,n)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=Kc.bind(null,e),a._reactRetry=t,null):(e=d.treeContext,Ft=$r(a.nextSibling),Bt=t,je=!0,cr=null,e!==null&&(Gt[Yt++]=qr,Gt[Yt++]=Qr,Gt[Yt++]=Xi,qr=e.id,Qr=e.overflow,Xi=t),t=xa(t,n.children),t.flags|=4096,t)}c(Bc,"mg"),u(Bc,"rj");function Vu(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Zl(e.return,t,r)}c(Vu,"Hc"),u(Vu,"vj");function Ca(e,t,r,n,a){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:a}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=n,d.tail=r,d.tailMode=a)}c(Ca,"qi"),u(Ca,"wj");function $u(e,t,r){var n=t.pendingProps,a=n.revealOrder,d=n.tail;if(yt(e,t,n.children,r),n=Ue.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Vu(e,r,t);else if(e.tag===19)Vu(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(We(Ue,n),!(t.mode&1))t.memoizedState=null;else switch(a){case"forwards":for(r=t.child,a=null;r!==null;)e=r.alternate,e!==null&&$o(e)===null&&(a=r),r=r.sibling;r=a,r===null?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),Ca(t,!1,a,r,d);break;case"backwards":for(r=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&$o(e)===null){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}Ca(t,!0,r,null,d);break;case"together":Ca(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}c($u,"zf"),u($u,"xj");function Qo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}c(Qo,"il"),u(Qo,"ij");function kr(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),rn|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,r=ii(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=ii(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}c(kr,"xt"),u(kr,"Zi");function Fc(e,t,r){switch(t.tag){case 3:Nu(t),Ki();break;case 5:ru(t);break;case 1:_t(t.type)&&Ao(t);break;case 4:ta(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,a=t.memoizedProps.value;We(Xl,n._currentValue),n._currentValue=a;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(We(Ue,Ue.current&1),t.flags|=128,null):r&t.child.childLanes?Uu(e,t,r):(We(Ue,Ue.current&1),e=kr(e,t,r),e!==null?e.sibling:null);We(Ue,Ue.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return $u(e,t,r);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),We(Ue,Ue.current),n)break;return null;case 22:case 23:return t.lanes=0,Au(e,t,r)}return kr(e,t,r)}c(Fc,"gg"),u(Fc,"yj");var Lc,Gu,Ac,Oc;Lc=u(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}},"zj"),Gu=u(function(){},"Aj"),Ac=u(function(e,t,r,n){var a=e.memoizedProps;if(a!==n){e=t.stateNode,_i(Sr.current);var d=null;switch(r){case"input":a=er(e,a),n=er(e,n),d=[];break;case"select":a=ee({},a,{value:void 0}),n=ee({},n,{value:void 0}),d=[];break;case"textarea":a=ir(e,a),n=ir(e,n),d=[];break;default:typeof a.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Do)}Mi(r,n);var g;r=null;for(T in a)if(!n.hasOwnProperty(T)&&a.hasOwnProperty(T)&&a[T]!=null)if(T==="style"){var y=a[T];for(g in y)y.hasOwnProperty(g)&&(r||(r={}),r[g]="")}else T!=="dangerouslySetInnerHTML"&&T!=="children"&&T!=="suppressContentEditableWarning"&&T!=="suppressHydrationWarning"&&T!=="autoFocus"&&(p.hasOwnProperty(T)?d||(d=[]):(d=d||[]).push(T,null));for(T in n){var v=n[T];if(y=a?.[T],n.hasOwnProperty(T)&&v!==y&&(v!=null||y!=null))if(T==="style")if(y){for(g in y)!y.hasOwnProperty(g)||v&&v.hasOwnProperty(g)||(r||(r={}),r[g]="");for(g in v)v.hasOwnProperty(g)&&y[g]!==v[g]&&(r||(r={}),r[g]=v[g])}else r||(d||(d=[]),d.push(T,r)),r=v;else T==="dangerouslySetInnerHTML"?(v=v?v.__html:void 0,y=y?y.__html:void 0,v!=null&&y!==v&&(d=d||[]).push(T,v)):T==="children"?typeof v!="string"&&typeof v!="number"||(d=d||[]).push(T,""+v):T!=="suppressContentEditableWarning"&&T!=="suppressHydrationWarning"&&(p.hasOwnProperty(T)?(v!=null&&T==="onScroll"&&Ne("scroll",e),d||y===v||(d=[])):(d=d||[]).push(T,v))}r&&(d=d||[]).push("style",r);var T=d;(t.updateQueue=T)&&(t.flags|=4)}},"Bj"),Oc=u(function(e,t,r,n){r!==n&&(t.flags|=4)},"Cj");function Kn(e,t){if(!je)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}}c(Kn,"Rr"),u(Kn,"Dj");function ct(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags&14680064,n|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}c(ct,"ye"),u(ct,"S");function Wc(e,t,r){var n=t.pendingProps;switch(Vl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ct(t),null;case 1:return _t(t.type)&&Lo(),ct(t),null;case 3:return n=t.stateNode,Zi(),He(Pt),He(mt),ia(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Oo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,cr!==null&&(La(cr),cr=null))),Gu(e,t),ct(t),null;case 5:ra(t);var a=_i(Vo.current);if(r=t.type,e!==null&&t.stateNode!=null)Ac(e,t,r,n,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(s(166));return ct(t),null}if(e=_i(Sr.current),Oo(t)){n=t.stateNode,r=t.type;var d=t.memoizedProps;switch(n[_r]=t,n[Bo]=d,e=(t.mode&1)!==0,r){case"dialog":Ne("cancel",n),Ne("close",n);break;case"iframe":case"object":case"embed":Ne("load",n);break;case"video":case"audio":for(a=0;a<Eo.length;a++)Ne(Eo[a],n);break;case"source":Ne("error",n);break;case"img":case"image":case"link":Ne("error",n),Ne("load",n);break;case"details":Ne("toggle",n);break;case"input":Rr(n,d),Ne("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!d.multiple},Ne("invalid",n);break;case"textarea":un(n,d),Ne("invalid",n)}Mi(r,d),a=null;for(var g in d)if(d.hasOwnProperty(g)){var y=d[g];g==="children"?typeof y=="string"?n.textContent!==y&&(d.suppressHydrationWarning!==!0&&Mo(n.textContent,y,e),a=["children",y]):typeof y=="number"&&n.textContent!==""+y&&(d.suppressHydrationWarning!==!0&&Mo(n.textContent,y,e),a=["children",""+y]):p.hasOwnProperty(g)&&y!=null&&g==="onScroll"&&Ne("scroll",n)}switch(r){case"input":gr(n),mr(n,d,!0);break;case"textarea":gr(n),no(n);break;case"select":case"option":break;default:typeof d.onClick=="function"&&(n.onclick=Do)}n=a,t.updateQueue=n,n!==null&&(t.flags|=4)}else{g=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Dr(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=g.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=g.createElement(r,{is:n.is}):(e=g.createElement(r),r==="select"&&(g=e,n.multiple?g.multiple=!0:n.size&&(g.size=n.size))):e=g.createElementNS(e,r),e[_r]=t,e[Bo]=n,Lc(e,t,!1,!1),t.stateNode=e;e:{switch(g=at(r,n),r){case"dialog":Ne("cancel",e),Ne("close",e),a=n;break;case"iframe":case"object":case"embed":Ne("load",e),a=n;break;case"video":case"audio":for(a=0;a<Eo.length;a++)Ne(Eo[a],e);a=n;break;case"source":Ne("error",e),a=n;break;case"img":case"image":case"link":Ne("error",e),Ne("load",e),a=n;break;case"details":Ne("toggle",e),a=n;break;case"input":Rr(e,n),a=er(e,n),Ne("invalid",e);break;case"option":a=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},a=ee({},n,{value:void 0}),Ne("invalid",e);break;case"textarea":un(e,n),a=ir(e,n),Ne("invalid",e);break;default:a=n}Mi(r,a),y=a;for(d in y)if(y.hasOwnProperty(d)){var v=y[d];d==="style"?lo(e,v):d==="dangerouslySetInnerHTML"?(v=v?v.__html:void 0,v!=null&&oo(e,v)):d==="children"?typeof v=="string"?(r!=="textarea"||v!=="")&&Fr(e,v):typeof v=="number"&&Fr(e,""+v):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(p.hasOwnProperty(d)?v!=null&&d==="onScroll"&&Ne("scroll",e):v!=null&&G(e,d,v,g))}switch(r){case"input":gr(e),mr(e,n,!1);break;case"textarea":gr(e),no(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Ce(n.value));break;case"select":e.multiple=!!n.multiple,d=n.value,d!=null?St(e,!!n.multiple,d,!1):n.defaultValue!=null&&St(e,!!n.multiple,n.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=Do)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ct(t),null;case 6:if(e&&t.stateNode!=null)Oc(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(s(166));if(r=_i(Vo.current),_i(Sr.current),Oo(t)){if(n=t.stateNode,r=t.memoizedProps,n[_r]=t,(d=n.nodeValue!==r)&&(e=Bt,e!==null))switch(e.tag){case 3:Mo(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Mo(n.nodeValue,r,(e.mode&1)!==0)}d&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[_r]=t,t.stateNode=n}return ct(t),null;case 13:if(He(Ue),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(je&&Ft!==null&&t.mode&1&&!(t.flags&128))Xs(),Ki(),t.flags|=98560,d=!1;else if(d=Oo(t),n!==null&&n.dehydrated!==null){if(e===null){if(!d)throw Error(s(318));if(d=t.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(s(317));d[_r]=t}else Ki(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ct(t),d=!1}else cr!==null&&(La(cr),cr=null),d=!0;if(!d)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||Ue.current&1?tt===0&&(tt=3):Wa())),t.updateQueue!==null&&(t.flags|=4),ct(t),null);case 4:return Zi(),Gu(e,t),e===null&&An(t.stateNode.containerInfo),ct(t),null;case 10:return Ql(t.type._context),ct(t),null;case 17:return _t(t.type)&&Lo(),ct(t),null;case 19:if(He(Ue),d=t.memoizedState,d===null)return ct(t),null;if(n=(t.flags&128)!==0,g=d.rendering,g===null)if(n)Kn(d,!1);else{if(tt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(g=$o(e),g!==null){for(t.flags|=128,Kn(d,!1),n=g.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)d=r,e=n,d.flags&=14680066,g=d.alternate,g===null?(d.childLanes=0,d.lanes=e,d.child=null,d.subtreeFlags=0,d.memoizedProps=null,d.memoizedState=null,d.updateQueue=null,d.dependencies=null,d.stateNode=null):(d.childLanes=g.childLanes,d.lanes=g.lanes,d.child=g.child,d.subtreeFlags=0,d.deletions=null,d.memoizedProps=g.memoizedProps,d.memoizedState=g.memoizedState,d.updateQueue=g.updateQueue,d.type=g.type,e=g.dependencies,d.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return We(Ue,Ue.current&1|2),t.child}e=e.sibling}d.tail!==null&&Ae()>Zn&&(t.flags|=128,n=!0,Kn(d,!1),t.lanes=4194304)}else{if(!n)if(e=$o(g),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Kn(d,!0),d.tail===null&&d.tailMode==="hidden"&&!g.alternate&&!je)return ct(t),null}else 2*Ae()-d.renderingStartTime>Zn&&r!==1073741824&&(t.flags|=128,n=!0,Kn(d,!1),t.lanes=4194304);d.isBackwards?(g.sibling=t.child,t.child=g):(r=d.last,r!==null?r.sibling=g:t.child=g,d.last=g)}return d.tail!==null?(t=d.tail,d.rendering=t,d.tail=t.sibling,d.renderingStartTime=Ae(),t.sibling=null,r=Ue.current,We(Ue,n?r&1|2:r&1),t):(ct(t),null);case 22:case 23:return Oa(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Ot&1073741824&&(ct(t),t.subtreeFlags&6&&(t.flags|=8192)):ct(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}c(Wc,"yg"),u(Wc,"Ej");function Nc(e,t){switch(Vl(t),t.tag){case 1:return _t(t.type)&&Lo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zi(),He(Pt),He(mt),ia(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ra(t),null;case 13:if(He(Ue),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Ki()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return He(Ue),null;case 4:return Zi(),null;case 10:return Ql(t.type._context),null;case 22:case 23:return Oa(),null;case 24:return null;default:return null}}c(Nc,"vg"),u(Nc,"Ij");var Sa=!1,bt=!1,gf=typeof WeakSet=="function"?WeakSet:Set,te=null;function tn(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){$e(e,t,n)}else r.current=null}c(tn,"$n"),u(tn,"Lj");function Yu(e,t,r){try{r()}catch(n){$e(e,t,n)}}c(Yu,"Au"),u(Yu,"Mj");var Hc=!1;function jc(e,t){if(Ds=L,e=Cs(),Ml(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,d=n.focusNode;n=n.focusOffset;try{r.nodeType,d.nodeType}catch{r=null;break e}var g=0,y=-1,v=-1,T=0,O=0,W=e,A=null;t:for(;;){for(var Z;W!==r||a!==0&&W.nodeType!==3||(y=g+a),W!==d||n!==0&&W.nodeType!==3||(v=g+n),W.nodeType===3&&(g+=W.nodeValue.length),(Z=W.firstChild)!==null;)A=W,W=Z;for(;;){if(W===e)break t;if(A===r&&++T===a&&(y=g),A===d&&++O===n&&(v=g),(Z=W.nextSibling)!==null)break;W=A,A=W.parentNode}W=Z}r=y===-1||v===-1?null:{start:y,end:v}}else r=null}r=r||{start:0,end:0}}else r=null;for(Bs={focusedElem:e,selectionRange:r},L=!1,te=t;te!==null;)if(t=te,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,te=e;else for(;te!==null;){t=te;try{var re=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(re!==null){var ie=re.memoizedProps,Ye=re.memoizedState,C=t.stateNode,w=C.getSnapshotBeforeUpdate(t.elementType===t.type?ie:Xt(t.type,ie),Ye);C.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch($){$e(t,t.return,$)}if(e=t.sibling,e!==null){e.return=t.return,te=e;break}te=t.return}return re=Hc,Hc=!1,re}c(jc,"Cg"),u(jc,"Oj");function qn(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var d=a.destroy;a.destroy=void 0,d!==void 0&&Yu(t,r,d)}a=a.next}while(a!==n)}}c(qn,"Hr"),u(qn,"Pj");function Zo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}c(Zo,"Wl"),u(Zo,"Qj");function ka(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}c(ka,"Uu"),u(ka,"Rj");function Xu(e){var t=e.alternate;t!==null&&(e.alternate=null,Xu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_r],delete t[Bo],delete t[As],delete t[lf],delete t[af])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}c(Xu,"Nf"),u(Xu,"Sj");function Ku(e){return e.tag===5||e.tag===3||e.tag===4}c(Ku,"Df"),u(Ku,"Tj");function qu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ku(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}c(qu,"Uc"),u(qu,"Uj");function Ta(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,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=Do));else if(n!==4&&(e=e.child,e!==null))for(Ta(e,t,r),e=e.sibling;e!==null;)Ta(e,t,r),e=e.sibling}c(Ta,"$u"),u(Ta,"Vj");function Pa(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Pa(e,t,r),e=e.sibling;e!==null;)Pa(e,t,r),e=e.sibling}c(Pa,"Wu"),u(Pa,"Wj");var ht=null,pr=!1;function Jr(e,t,r){for(r=r.child;r!==null;)Qu(e,t,r),r=r.sibling}c(Jr,"It"),u(Jr,"Yj");function Qu(e,t,r){if(Vt&&typeof Vt.onCommitFiberUnmount=="function")try{Vt.onCommitFiberUnmount(_n,r)}catch{}switch(r.tag){case 5:bt||tn(r,t);case 6:var n=ht,a=pr;ht=null,Jr(e,t,r),ht=n,pr=a,ht!==null&&(pr?(e=ht,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):ht.removeChild(r.stateNode));break;case 18:ht!==null&&(pr?(e=ht,r=r.stateNode,e.nodeType===8?Wl(e.parentNode,r):e.nodeType===1&&Wl(e,r),ur(e)):Wl(ht,r.stateNode));break;case 4:n=ht,a=pr,ht=r.stateNode.containerInfo,pr=!0,Jr(e,t,r),ht=n,pr=a;break;case 0:case 11:case 14:case 15:if(!bt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var d=a,g=d.destroy;d=d.tag,g!==void 0&&(d&2||d&4)&&Yu(r,t,g),a=a.next}while(a!==n)}Jr(e,t,r);break;case 1:if(!bt&&(tn(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(y){$e(r,t,y)}Jr(e,t,r);break;case 21:Jr(e,t,r);break;case 22:r.mode&1?(bt=(n=bt)||r.memoizedState!==null,Jr(e,t,r),bt=n):Jr(e,t,r);break;default:Jr(e,t,r)}}c(Qu,"Lf"),u(Qu,"Zj");function Zu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new gf),t.forEach(function(n){var a=qc.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}c(Zu,"$c"),u(Zu,"ak");function Kt(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var a=r[n];try{var d=e,g=t,y=g;e:for(;y!==null;){switch(y.tag){case 5:ht=y.stateNode,pr=!1;break e;case 3:ht=y.stateNode.containerInfo,pr=!0;break e;case 4:ht=y.stateNode.containerInfo,pr=!0;break e}y=y.return}if(ht===null)throw Error(s(160));Qu(d,g,a),ht=null,pr=!1;var v=a.alternate;v!==null&&(v.return=null),a.return=null}catch(T){$e(a,t,T)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ju(t,e),t=t.sibling}c(Kt,"qe"),u(Kt,"ck");function Ju(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Kt(t,e),fr(e),n&4){try{qn(3,e,e.return),Zo(3,e)}catch(ie){$e(e,e.return,ie)}try{qn(5,e,e.return)}catch(ie){$e(e,e.return,ie)}}break;case 1:Kt(t,e),fr(e),n&512&&r!==null&&tn(r,r.return);break;case 5:if(Kt(t,e),fr(e),n&512&&r!==null&&tn(r,r.return),e.flags&32){var a=e.stateNode;try{Fr(a,"")}catch(ie){$e(e,e.return,ie)}}if(n&4&&(a=e.stateNode,a!=null)){var d=e.memoizedProps,g=r!==null?r.memoizedProps:d,y=e.type,v=e.updateQueue;if(e.updateQueue=null,v!==null)try{y==="input"&&d.type==="radio"&&d.name!=null&&Mr(a,d),at(y,g);var T=at(y,d);for(g=0;g<v.length;g+=2){var O=v[g],W=v[g+1];O==="style"?lo(a,W):O==="dangerouslySetInnerHTML"?oo(a,W):O==="children"?Fr(a,W):G(a,O,W,T)}switch(y){case"input":tr(a,d);break;case"textarea":dn(a,d);break;case"select":var A=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!d.multiple;var Z=d.value;Z!=null?St(a,!!d.multiple,Z,!1):A!==!!d.multiple&&(d.defaultValue!=null?St(a,!!d.multiple,d.defaultValue,!0):St(a,!!d.multiple,d.multiple?[]:"",!1))}a[Bo]=d}catch(ie){$e(e,e.return,ie)}}break;case 6:if(Kt(t,e),fr(e),n&4){if(e.stateNode===null)throw Error(s(162));a=e.stateNode,d=e.memoizedProps;try{a.nodeValue=d}catch(ie){$e(e,e.return,ie)}}break;case 3:if(Kt(t,e),fr(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{ur(t.containerInfo)}catch(ie){$e(e,e.return,ie)}break;case 4:Kt(t,e),fr(e);break;case 13:Kt(t,e),fr(e),a=e.child,a.flags&8192&&(d=a.memoizedState!==null,a.stateNode.isHidden=d,!d||a.alternate!==null&&a.alternate.memoizedState!==null||(ld=Ae())),n&4&&Zu(e);break;case 22:if(O=r!==null&&r.memoizedState!==null,e.mode&1?(bt=(T=bt)||O,Kt(t,e),bt=T):Kt(t,e),fr(e),n&8192){if(T=e.memoizedState!==null,(e.stateNode.isHidden=T)&&!O&&e.mode&1)for(te=e,O=e.child;O!==null;){for(W=te=O;te!==null;){switch(A=te,Z=A.child,A.tag){case 0:case 11:case 14:case 15:qn(4,A,A.return);break;case 1:tn(A,A.return);var re=A.stateNode;if(typeof re.componentWillUnmount=="function"){n=A,r=A.return;try{t=n,re.props=t.memoizedProps,re.state=t.memoizedState,re.componentWillUnmount()}catch(ie){$e(n,r,ie)}}break;case 5:tn(A,A.return);break;case 22:if(A.memoizedState!==null){rd(W);continue}}Z!==null?(Z.return=A,te=Z):rd(W)}O=O.sibling}e:for(O=null,W=e;;){if(W.tag===5){if(O===null){O=W;try{a=W.stateNode,T?(d=a.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none"):(y=W.stateNode,v=W.memoizedProps.style,g=v!=null&&v.hasOwnProperty("display")?v.display:null,y.style.display=hn("display",g))}catch(ie){$e(e,e.return,ie)}}}else if(W.tag===6){if(O===null)try{W.stateNode.nodeValue=T?"":W.memoizedProps}catch(ie){$e(e,e.return,ie)}}else if((W.tag!==22&&W.tag!==23||W.memoizedState===null||W===e)&&W.child!==null){W.child.return=W,W=W.child;continue}if(W===e)break e;for(;W.sibling===null;){if(W.return===null||W.return===e)break e;O===W&&(O=null),W=W.return}O===W&&(O=null),W.sibling.return=W.return,W=W.sibling}}break;case 19:Kt(t,e),fr(e),n&4&&Zu(e);break;case 21:break;default:Kt(t,e),fr(e)}}c(Ju,"Ff"),u(Ju,"dk");function fr(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Ku(r)){var n=r;break e}r=r.return}throw Error(s(160))}switch(n.tag){case 5:var a=n.stateNode;n.flags&32&&(Fr(a,""),n.flags&=-33);var d=qu(e);Pa(e,d,a);break;case 3:case 4:var g=n.stateNode.containerInfo,y=qu(e);Ta(e,y,g);break;default:throw Error(s(161))}}catch(v){$e(e,e.return,v)}e.flags&=-3}t&4096&&(e.flags&=-4097)}c(fr,"st"),u(fr,"ek");function Uc(e,t,r){te=e,ed(e,t,r)}c(Uc,"Sg"),u(Uc,"hk");function ed(e,t,r){for(var n=(e.mode&1)!==0;te!==null;){var a=te,d=a.child;if(a.tag===22&&n){var g=a.memoizedState!==null||Sa;if(!g){var y=a.alternate,v=y!==null&&y.memoizedState!==null||bt;y=Sa;var T=bt;if(Sa=g,(bt=v)&&!T)for(te=a;te!==null;)g=te,v=g.child,g.tag===22&&g.memoizedState!==null?id(a):v!==null?(v.return=g,te=v):id(a);for(;d!==null;)te=d,ed(d,t,r),d=d.sibling;te=a,Sa=y,bt=T}td(e,t,r)}else a.subtreeFlags&8772&&d!==null?(d.return=a,te=d):td(e,t,r)}}c(ed,"Of"),u(ed,"ik");function td(e){for(;te!==null;){var t=te;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:bt||Zo(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!bt)if(r===null)n.componentDidMount();else{var a=t.elementType===t.type?r.memoizedProps:Xt(t.type,r.memoizedProps);n.componentDidUpdate(a,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var d=t.updateQueue;d!==null&&tu(t,d,n);break;case 3:var g=t.updateQueue;if(g!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}tu(t,g,r)}break;case 5:var y=t.stateNode;if(r===null&&t.flags&4){r=y;var v=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":v.autoFocus&&r.focus();break;case"img":v.src&&(r.src=v.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var T=t.alternate;if(T!==null){var O=T.memoizedState;if(O!==null){var W=O.dehydrated;W!==null&&ur(W)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(s(163))}bt||t.flags&512&&ka(t)}catch(A){$e(t,t.return,A)}}if(t===e){te=null;break}if(r=t.sibling,r!==null){r.return=t.return,te=r;break}te=t.return}}c(td,"Wc"),u(td,"kk");function rd(e){for(;te!==null;){var t=te;if(t===e){te=null;break}var r=t.sibling;if(r!==null){r.return=t.return,te=r;break}te=t.return}}c(rd,"Vc"),u(rd,"gk");function id(e){for(;te!==null;){var t=te;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Zo(4,t)}catch(v){$e(t,r,v)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var a=t.return;try{n.componentDidMount()}catch(v){$e(t,a,v)}}var d=t.return;try{ka(t)}catch(v){$e(t,d,v)}break;case 5:var g=t.return;try{ka(t)}catch(v){$e(t,g,v)}}}catch(v){$e(t,t.return,v)}if(t===e){te=null;break}var y=t.sibling;if(y!==null){y.return=t.return,te=y;break}te=t.return}}c(id,"Bc"),u(id,"jk");var mf=Math.ceil,za=K.ReactCurrentDispatcher,nd=K.ReactCurrentOwner,qt=K.ReactCurrentBatchConfig,Ie=0,ot=null,Ke=null,pt=0,Ot=0,Qn=Yr(0),tt=0,Jo=null,rn=0,Ia=0,od=0,el=null,It=null,ld=0,Zn=1/0,ei=null,Ea=!1,ad=null,xi=null,Ra=!1,Ci=null,Ma=0,tl=0,sd=null,Da=-1,Ba=0;function vt(){return Ie&6?Ae():Da!==-1?Da:Da=Ae()}c(vt,"ke"),u(vt,"R");function ti(e){return e.mode&1?Ie&2&&pt!==0?pt&-pt:sf.transition!==null?(Ba===0&&(Ba=mo()),Ba):(e=Re,e!==0||(e=window.event,e=e===void 0?16:Oe(e.type)),e):1}c(ti,"Vt"),u(ti,"yi");function Qt(e,t,r,n){if(50<tl)throw tl=0,sd=null,Error(s(185));vr(e,r,n),(!(Ie&2)||e!==ot)&&(e===ot&&(!(Ie&2)&&(Ia|=r),tt===4&&ri(e,pt)),xt(e,n),r===1&&Ie===0&&!(t.mode&1)&&(Zn=Ae()+500,Nl&&Kr()))}c(Qt,"rt"),u(Qt,"gi");function xt(e,t){var r=e.callbackNode;zl(e,t);var n=Oi(e,e===ot?pt:0);if(n===0)r!==null&&Cl(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&Cl(r),t===1)e.tag===0?Ic(dd.bind(null,e)):Us(dd.bind(null,e)),of(function(){!(Ie&6)&&Kr()}),r=null;else{switch(Wi(n)){case 1:r=po;break;case 4:r=fo;break;case 16:r=wn;break;case 536870912:r=sr;break;default:r=wn}r=yd(r,ud.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}c(xt,"Ie"),u(xt,"Dk");function ud(e,t){if(Da=-1,Ba=0,Ie&6)throw Error(s(327));var r=e.callbackNode;if(nn()&&e.callbackNode!==r)return null;var n=Oi(e,e===ot?pt:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=rl(e,n);else{t=n;var a=Ie;Ie|=2;var d=hd();(ot!==e||pt!==t)&&(ei=null,Zn=Ae()+500,ki(e,t));do try{Gc();break}catch(y){cd(e,y)}while(!0);ql(),za.current=d,Ie=a,Ke!==null?t=0:(ot=null,pt=0,t=tt)}if(t!==0){if(t===2&&(a=kn(e),a!==0&&(n=a,t=Fa(e,a))),t===1)throw r=Jo,ki(e,0),ri(e,n),xt(e,Ae()),r;if(t===6)ri(e,n);else{if(a=e.current.alternate,!(n&30)&&!Vc(a)&&(t=rl(e,n),t===2&&(d=kn(e),d!==0&&(n=d,t=Fa(e,d))),t===1))throw r=Jo,ki(e,0),ri(e,n),xt(e,Ae()),r;switch(e.finishedWork=a,e.finishedLanes=n,t){case 0:case 1:throw Error(s(345));case 2:Ti(e,It,ei);break;case 3:if(ri(e,n),(n&130023424)===n&&(t=ld+500-Ae(),10<t)){if(Oi(e,0)!==0)break;if(a=e.suspendedLanes,(a&n)!==n){vt(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Fs(Ti.bind(null,e,It,ei),t);break}Ti(e,It,ei);break;case 4:if(ri(e,n),(n&4194240)===n)break;for(t=e.eventTimes,a=-1;0<n;){var g=31-it(n);d=1<<g,g=t[g],g>a&&(a=g),n&=~d}if(n=a,n=Ae()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*mf(n/1960))-n,10<n){e.timeoutHandle=Fs(Ti.bind(null,e,It,ei),n);break}Ti(e,It,ei);break;case 5:Ti(e,It,ei);break;default:throw Error(s(329))}}}return xt(e,Ae()),e.callbackNode===r?ud.bind(null,e):null}c(ud,"Mf"),u(ud,"Gk");function Fa(e,t){var r=el;return e.current.memoizedState.isDehydrated&&(ki(e,t).flags|=256),e=rl(e,t),e!==2&&(t=It,It=r,t!==null&&La(t)),e}c(Fa,"Ku"),u(Fa,"Nk");function La(e){It===null?It=e:It.push.apply(It,e)}c(La,"Gu"),u(La,"Fj");function Vc(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var a=r[n],d=a.getSnapshot;a=a.value;try{if(!dr(d(),a))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}c(Vc,"xg"),u(Vc,"Ok");function ri(e,t){for(t&=~od,t&=~Ia,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-it(t),n=1<<r;e[r]=-1,t&=~n}}c(ri,"Ft"),u(ri,"Ck");function dd(e){if(Ie&6)throw Error(s(327));nn();var t=Oi(e,0);if(!(t&1))return xt(e,Ae()),null;var r=rl(e,t);if(e.tag!==0&&r===2){var n=kn(e);n!==0&&(t=n,r=Fa(e,n))}if(r===1)throw r=Jo,ki(e,0),ri(e,t),xt(e,Ae()),r;if(r===6)throw Error(s(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ti(e,It,ei),xt(e,Ae()),null}c(dd,"Kc"),u(dd,"Ek");function Aa(e,t){var r=Ie;Ie|=1;try{return e(t)}finally{Ie=r,Ie===0&&(Zn=Ae()+500,Nl&&Kr())}}c(Aa,"Ts"),u(Aa,"Qk");function Si(e){Ci!==null&&Ci.tag===0&&!(Ie&6)&&nn();var t=Ie;Ie|=1;var r=qt.transition,n=Re;try{if(qt.transition=null,Re=1,e)return e()}finally{Re=n,qt.transition=r,Ie=t,!(Ie&6)&&Kr()}}c(Si,"pn"),u(Si,"Rk");function Oa(){Ot=Qn.current,He(Qn)}c(Oa,"Is"),u(Oa,"Hj");function ki(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,nf(r)),Ke!==null)for(r=Ke.return;r!==null;){var n=r;switch(Vl(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Lo();break;case 3:Zi(),He(Pt),He(mt),ia();break;case 5:ra(n);break;case 4:Zi();break;case 13:He(Ue);break;case 19:He(Ue);break;case 10:Ql(n.type._context);break;case 22:case 23:Oa()}r=r.return}if(ot=e,Ke=e=ii(e.current,null),pt=Ot=t,tt=0,Jo=null,od=Ia=rn=0,It=el=null,Qi!==null){for(t=0;t<Qi.length;t++)if(r=Qi[t],n=r.interleaved,n!==null){r.interleaved=null;var a=n.next,d=r.pending;if(d!==null){var g=d.next;d.next=a,n.next=g}r.pending=n}Qi=null}return e}c(ki,"un"),u(ki,"Kk");function cd(e,t){do{var r=Ke;try{if(ql(),na.current=pa,oa){for(var n=Ve.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}oa=!1}if(Ji=0,nt=et=Ve=null,Go=!1,Yo=0,nd.current=null,r===null||r.return===null){tt=1,Jo=t,Ke=null;break}e:{var d=e,g=r.return,y=r,v=t;if(t=pt,y.flags|=32768,v!==null&&typeof v=="object"&&typeof v.then=="function"){var T=v,O=y,W=O.tag;if(!(O.mode&1)&&(W===0||W===11||W===15)){var A=O.alternate;A?(O.updateQueue=A.updateQueue,O.memoizedState=A.memoizedState,O.lanes=A.lanes):(O.updateQueue=null,O.memoizedState=null)}var Z=Mu(g);if(Z!==null){Z.flags&=-257,Du(Z,g,y,d,t),Z.mode&1&&Ru(d,T,t),t=Z,v=T;var re=t.updateQueue;if(re===null){var ie=new Set;ie.add(v),t.updateQueue=ie}else re.add(v);break e}else{if(!(t&1)){Ru(d,T,t),Wa();break e}v=Error(s(426))}}else if(je&&y.mode&1){var Ye=Mu(g);if(Ye!==null){!(Ye.flags&65536)&&(Ye.flags|=256),Du(Ye,g,y,d,t),Yl(en(v,y));break e}}d=v=en(v,y),tt!==4&&(tt=2),el===null?el=[d]:el.push(d),d=g;do{switch(d.tag){case 3:d.flags|=65536,t&=-t,d.lanes|=t;var C=Iu(d,v,t);eu(d,C);break e;case 1:y=v;var w=d.type,S=d.stateNode;if(!(d.flags&128)&&(typeof w.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(xi===null||!xi.has(S)))){d.flags|=65536,t&=-t,d.lanes|=t;var $=Eu(d,y,t);eu(d,$);break e}}d=d.return}while(d!==null)}fd(r)}catch(le){t=le,Ke===r&&r!==null&&(Ke=r=r.return);continue}break}while(!0)}c(cd,"jf"),u(cd,"Mk");function hd(){var e=za.current;return za.current=pa,e===null?pa:e}c(hd,"Hf"),u(hd,"Jk");function Wa(){(tt===0||tt===3||tt===2)&&(tt=4),ot===null||!(rn&268435455)&&!(Ia&268435455)||ri(ot,pt)}c(Wa,"Ns"),u(Wa,"tj");function rl(e,t){var r=Ie;Ie|=2;var n=hd();(ot!==e||pt!==t)&&(ei=null,ki(e,t));do try{$c();break}catch(a){cd(e,a)}while(!0);if(ql(),Ie=r,za.current=n,Ke!==null)throw Error(s(261));return ot=null,pt=0,tt}c(rl,"Dl"),u(rl,"Ik");function $c(){for(;Ke!==null;)pd(Ke)}c($c,"Eg"),u($c,"Tk");function Gc(){for(;Ke!==null&&!ls();)pd(Ke)}c(Gc,"Rg"),u(Gc,"Lk");function pd(e){var t=Qc(e.alternate,e,Ot);e.memoizedProps=e.pendingProps,t===null?fd(e):Ke=t,nd.current=null}c(pd,"Af"),u(pd,"Uk");function fd(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=Nc(r,t),r!==null){r.flags&=32767,Ke=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{tt=6,Ke=null;return}}else if(r=Wc(r,t,Ot),r!==null){Ke=r;return}if(t=t.sibling,t!==null){Ke=t;return}Ke=t=e}while(t!==null);tt===0&&(tt=5)}c(fd,"Uf"),u(fd,"Sk");function Ti(e,t,r){var n=Re,a=qt.transition;try{qt.transition=null,Re=1,Yc(e,t,r,n)}finally{qt.transition=a,Re=n}return null}c(Ti,"nn"),u(Ti,"Pk");function Yc(e,t,r,n){do nn();while(Ci!==null);if(Ie&6)throw Error(s(327));r=e.finishedWork;var a=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0;var d=r.lanes|r.childLanes;if(yo(e,d),e===ot&&(Ke=ot=null,pt=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Ra||(Ra=!0,yd(wn,function(){return nn(),null})),d=(r.flags&15990)!==0,r.subtreeFlags&15990||d){d=qt.transition,qt.transition=null;var g=Re;Re=1;var y=Ie;Ie|=4,nd.current=null,jc(e,r),Ju(r,e),yc(Bs),L=!!Ds,Bs=Ds=null,e.current=r,Uc(r,e,a),Ai(),Ie=y,Re=g,qt.transition=d}else e.current=r;if(Ra&&(Ra=!1,Ci=e,Ma=a),d=e.pendingLanes,d===0&&(xi=null),kl(r.stateNode,n),xt(e,Ae()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)a=t[r],n(a.value,{componentStack:a.stack,digest:a.digest});if(Ea)throw Ea=!1,e=ad,ad=null,e;return Ma&1&&e.tag!==0&&nn(),d=e.pendingLanes,d&1?e===sd?tl++:(tl=0,sd=e):tl=0,Kr(),null}c(Yc,"_g"),u(Yc,"Wk");function nn(){if(Ci!==null){var e=Wi(Ma),t=qt.transition,r=Re;try{if(qt.transition=null,Re=16>e?16:e,Ci===null)var n=!1;else{if(e=Ci,Ci=null,Ma=0,Ie&6)throw Error(s(331));var a=Ie;for(Ie|=4,te=e.current;te!==null;){var d=te,g=d.child;if(te.flags&16){var y=d.deletions;if(y!==null){for(var v=0;v<y.length;v++){var T=y[v];for(te=T;te!==null;){var O=te;switch(O.tag){case 0:case 11:case 15:qn(8,O,d)}var W=O.child;if(W!==null)W.return=O,te=W;else for(;te!==null;){O=te;var A=O.sibling,Z=O.return;if(Xu(O),O===T){te=null;break}if(A!==null){A.return=Z,te=A;break}te=Z}}}var re=d.alternate;if(re!==null){var ie=re.child;if(ie!==null){re.child=null;do{var Ye=ie.sibling;ie.sibling=null,ie=Ye}while(ie!==null)}}te=d}}if(d.subtreeFlags&2064&&g!==null)g.return=d,te=g;else e:for(;te!==null;){if(d=te,d.flags&2048)switch(d.tag){case 0:case 11:case 15:qn(9,d,d.return)}var C=d.sibling;if(C!==null){C.return=d.return,te=C;break e}te=d.return}}var w=e.current;for(te=w;te!==null;){g=te;var S=g.child;if(g.subtreeFlags&2064&&S!==null)S.return=g,te=S;else e:for(g=w;te!==null;){if(y=te,y.flags&2048)try{switch(y.tag){case 0:case 11:case 15:Zo(9,y)}}catch(le){$e(y,y.return,le)}if(y===g){te=null;break e}var $=y.sibling;if($!==null){$.return=y.return,te=$;break e}te=y.return}}if(Ie=a,Kr(),Vt&&typeof Vt.onPostCommitFiberRoot=="function")try{Vt.onPostCommitFiberRoot(_n,e)}catch{}n=!0}return n}finally{Re=r,qt.transition=t}}return!1}c(nn,"Yn"),u(nn,"Hk");function gd(e,t,r){t=en(r,t),t=Iu(e,t,1),e=Zr(e,t,1),t=vt(),e!==null&&(vr(e,1,t),xt(e,t))}c(gd,"Gc"),u(gd,"Xk");function $e(e,t,r){if(e.tag===3)gd(e,e,r);else for(;t!==null;){if(t.tag===3){gd(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(xi===null||!xi.has(n))){e=en(r,e),e=Eu(t,e,1),t=Zr(t,e,1),e=vt(),t!==null&&(vr(t,1,e),xt(t,e));break}}t=t.return}}c($e,"oe"),u($e,"W");function Xc(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=vt(),e.pingedLanes|=e.suspendedLanes&r,ot===e&&(pt&r)===r&&(tt===4||tt===3&&(pt&130023424)===pt&&500>Ae()-ld?ki(e,0):od|=r),xt(e,t)}c(Xc,"zg"),u(Xc,"Ti");function md(e,t){t===0&&(e.mode&1?(t=Sn,Sn<<=1,!(Sn&130023424)&&(Sn=4194304)):t=1);var r=vt();e=xr(e,t),e!==null&&(vr(e,t,r),xt(e,r))}c(md,"$f"),u(md,"Yk");function Kc(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),md(e,r)}c(Kc,"Pg"),u(Kc,"uj");function qc(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(s(314))}n!==null&&n.delete(t),md(e,r)}c(qc,"Tg"),u(qc,"bk");var Qc;Qc=u(function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Pt.current)zt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return zt=!1,Fc(e,t,r);zt=!!(e.flags&131072)}else zt=!1,je&&t.flags&1048576&&Vs(t,jl,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Qo(e,t),e=t.pendingProps;var a=Yi(t,mt.current);qi(t,r),a=aa(null,t,n,e,a,r);var d=sa();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,_t(n)?(d=!0,Ao(t)):d=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,ea(t),a.updater=ga,t.stateNode=a,a._reactInternals=t,ma(t,n,e,r),t=wa(null,t,n,!0,d,r)):(t.tag=0,je&&d&&Ul(t),yt(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Qo(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=Jc(n),e=Xt(n,e),a){case 0:t=va(null,t,n,e,r);break e;case 1:t=Wu(null,t,n,e,r);break e;case 11:t=Bu(null,t,n,e,r);break e;case 14:t=Fu(null,t,n,Xt(n.type,e),r);break e}throw Error(s(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Xt(n,a),va(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Xt(n,a),Wu(e,t,n,a,r);case 3:e:{if(Nu(t),e===null)throw Error(s(387));n=t.pendingProps,d=t.memoizedState,a=d.element,Js(e,t),Ho(t,n,null,r);var g=t.memoizedState;if(n=g.element,d.isDehydrated)if(d={element:n,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){a=en(Error(s(423)),t),t=Hu(e,t,n,r,a);break e}else if(n!==a){a=en(Error(s(424)),t),t=Hu(e,t,n,r,a);break e}else for(Ft=$r(t.stateNode.containerInfo.firstChild),Bt=t,je=!0,cr=null,r=Ec(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Ki(),n===a){t=kr(e,t,r);break e}yt(e,t,n,r)}t=t.child}return t;case 5:return ru(t),e===null&&Gl(t),n=t.type,a=t.pendingProps,d=e!==null?e.memoizedProps:null,g=a.children,Ol(n,a)?g=null:d!==null&&Ol(n,d)&&(t.flags|=32),Ou(e,t),yt(e,t,g,r),t.child;case 6:return e===null&&Gl(t),null;case 13:return Uu(e,t,r);case 4:return ta(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=$n(t,null,n,r):yt(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Xt(n,a),Bu(e,t,n,a,r);case 7:return yt(e,t,t.pendingProps,r),t.child;case 8:return yt(e,t,t.pendingProps.children,r),t.child;case 12:return yt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,d=t.memoizedProps,g=a.value,We(Xl,n._currentValue),n._currentValue=g,d!==null)if(dr(d.value,g)){if(d.children===a.children&&!Pt.current){t=kr(e,t,r);break e}}else for(d=t.child,d!==null&&(d.return=t);d!==null;){var y=d.dependencies;if(y!==null){g=d.child;for(var v=y.firstContext;v!==null;){if(v.context===n){if(d.tag===1){v=Cr(-1,r&-r),v.tag=2;var T=d.updateQueue;if(T!==null){T=T.shared;var O=T.pending;O===null?v.next=v:(v.next=O.next,O.next=v),T.pending=v}}d.lanes|=r,v=d.alternate,v!==null&&(v.lanes|=r),Zl(d.return,r,t),y.lanes|=r;break}v=v.next}}else if(d.tag===10)g=d.type===t.type?null:d.child;else if(d.tag===18){if(g=d.return,g===null)throw Error(s(341));g.lanes|=r,y=g.alternate,y!==null&&(y.lanes|=r),Zl(g,r,t),g=d.sibling}else g=d.child;if(g!==null)g.return=d;else for(g=d;g!==null;){if(g===t){g=null;break}if(d=g.sibling,d!==null){d.return=g.return,g=d;break}g=g.return}d=g}yt(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,qi(t,r),a=Lt(a),n=n(a),t.flags|=1,yt(e,t,n,r),t.child;case 14:return n=t.type,a=Xt(n,t.pendingProps),a=Xt(n.type,a),Fu(e,t,n,a,r);case 15:return Lu(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Xt(n,a),Qo(e,t),t.tag=1,_t(n)?(e=!0,Ao(t)):e=!1,qi(t,r),Pu(t,n,a),ma(t,n,a,r),wa(null,t,n,!0,e,r);case 19:return $u(e,t,r);case 22:return Au(e,t,r)}throw Error(s(156,t.tag))},"Vk");function yd(e,t){return co(e,t)}c(yd,"Vf"),u(yd,"Fk");function Zc(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.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}c(Zc,"Ig"),u(Zc,"$k");function Wt(e,t,r,n){return new Zc(e,t,r,n)}c(Wt,"Ke"),u(Wt,"Bg");function Na(e){return e=e.prototype,!(!e||!e.isReactComponent)}c(Na,"Ds"),u(Na,"aj");function Jc(e){if(typeof e=="function")return Na(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ce)return 11;if(e===Pe)return 14}return 2}c(Jc,"Ng"),u(Jc,"Zk");function ii(e,t){var r=e.alternate;return r===null?(r=Wt(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.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,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}c(ii,"Bt"),u(ii,"Pg");function il(e,t,r,n,a,d){var g=2;if(n=e,typeof e=="function")Na(e)&&(g=1);else if(typeof e=="string")g=5;else e:switch(e){case k:return Pi(r.children,a,d,t);case Q:g=8,a|=8;break;case ae:return e=Wt(12,r,t,a|2),e.elementType=ae,e.lanes=d,e;case Fe:return e=Wt(13,r,t,a),e.elementType=Fe,e.lanes=d,e;case Se:return e=Wt(19,r,t,a),e.elementType=Se,e.lanes=d,e;case U:return nl(r,a,d,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ye:g=10;break e;case ge:g=9;break e;case ce:g=11;break e;case Pe:g=14;break e;case Le:g=16,n=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=Wt(g,r,t,a),t.elementType=e,t.type=n,t.lanes=d,t}c(il,"al"),u(il,"Rg");function Pi(e,t,r,n){return e=Wt(7,e,n,t),e.lanes=r,e}c(Pi,"sn"),u(Pi,"Tg");function nl(e,t,r,n){return e=Wt(22,e,n,t),e.elementType=U,e.lanes=r,e.stateNode={isHidden:!1},e}c(nl,"Bl"),u(nl,"pj");function Ha(e,t,r){return e=Wt(6,e,null,t),e.lanes=r,e}c(Ha,"bi"),u(Ha,"Qg");function ja(e,t,r){return t=Wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}c(ja,"eu"),u(ja,"Sg");function eh(e,t,r,n,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Tn(0),this.expirationTimes=Tn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tn(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}c(eh,"Dg"),u(eh,"al");function Ua(e,t,r,n,a,d,g,y,v){return e=new eh(e,t,r,y,v),t===1?(t=1,d===!0&&(t|=8)):t=0,d=Wt(3,null,null,t),e.current=d,d.stateNode=e,d.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},ea(d),e}c(Ua,"Ls"),u(Ua,"bl");function th(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:E,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}c(th,"Lg"),u(th,"cl");function bd(e){if(!e)return bi;e=e._reactInternals;e:{if(ar(e)!==e||e.tag!==1)throw Error(s(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(_t(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(s(171))}if(e.tag===1){var r=e.type;if(_t(r))return Ns(e,r,t)}return t}c(bd,"Bf"),u(bd,"dl");function vd(e,t,r,n,a,d,g,y,v){return e=Ua(r,n,!0,e,a,d,g,y,v),e.context=bd(null),r=e.current,n=vt(),a=ti(r),d=Cr(n,a),d.callback=t??null,Zr(r,d,a),e.current.lanes=a,vr(e,a,n),xt(e,n),e}c(vd,"Kf"),u(vd,"el");function ol(e,t,r,n){var a=t.current,d=vt(),g=ti(a);return r=bd(r),t.context===null?t.context=r:t.pendingContext=r,t=Cr(d,g),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=Zr(a,t,g),e!==null&&(Qt(e,a,g,d),No(e,a,g)),g}c(ol,"Kl"),u(ol,"fl");function ll(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}c(ll,"Ll"),u(ll,"gl");function wd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}c(wd,"Qc"),u(wd,"hl");function Va(e,t){wd(e,t),(e=e.alternate)&&wd(e,t)}c(Va,"Fs"),u(Va,"il");function rh(){return null}c(rh,"Fg"),u(rh,"jl");var ih=typeof reportError=="function"?reportError:function(e){console.error(e)};function $a(e){this._internalRoot=e}c($a,"Os"),u($a,"ll"),al.prototype.render=$a.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));ol(e,t,null,null)},al.prototype.unmount=$a.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Si(function(){ol(null,e,null,null)}),t[Gr]=null}};function al(e){this._internalRoot=e}c(al,"Gl"),u(al,"ml"),al.prototype.unstable_scheduleHydration=function(e){if(e){var t=zn();e={blockedOn:null,target:e,priority:t};for(var r=0;r<kt.length&&t!==0&&t<kt[r].priority;r++);kt.splice(r,0,e),r===0&&Hi(e)}};function Ga(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}c(Ga,"Ms"),u(Ga,"nl");function sl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}c(sl,"Ql"),u(sl,"ol");function _d(){}c(_d,"Yc"),u(_d,"pl");function nh(e,t,r,n,a){if(a){if(typeof n=="function"){var d=n;n=u(function(){var T=ll(g);d.call(T)},"d")}var g=vd(t,n,e,0,null,!1,!1,"",_d);return e._reactRootContainer=g,e[Gr]=g.current,An(e.nodeType===8?e.parentNode:e),Si(),g}for(;a=e.lastChild;)e.removeChild(a);if(typeof n=="function"){var y=n;n=u(function(){var T=ll(v);y.call(T)},"d")}var v=Ua(e,0,!1,null,null,!1,!1,"",_d);return e._reactRootContainer=v,e[Gr]=v.current,An(e.nodeType===8?e.parentNode:e),Si(function(){ol(t,v,r,n)}),v}c(nh,"Og"),u(nh,"ql");function ul(e,t,r,n,a){var d=r._reactRootContainer;if(d){var g=d;if(typeof a=="function"){var y=a;a=u(function(){var v=ll(g);y.call(v)},"e")}ol(t,g,e,a)}else g=nh(r,t,e,a,n);return ll(g)}c(ul,"Yl"),u(ul,"rl"),bo=u(function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=ci(t.pendingLanes);r!==0&&(hi(t,r|1),xt(t,Ae()),!(Ie&6)&&(Zn=Ae()+500,Kr()))}break;case 13:Si(function(){var n=xr(e,1);if(n!==null){var a=vt();Qt(n,e,1,a)}}),Va(e,1)}},"Ec"),Pn=u(function(e){if(e.tag===13){var t=xr(e,134217728);if(t!==null){var r=vt();Qt(t,e,134217728,r)}Va(e,134217728)}},"Fc"),pi=u(function(e){if(e.tag===13){var t=ti(e),r=xr(e,t);if(r!==null){var n=vt();Qt(r,e,t,n)}Va(e,t)}},"Gc"),zn=u(function(){return Re},"Hc"),vo=u(function(e,t){var r=Re;try{return Re=e,t()}finally{Re=r}},"Ic"),fn=u(function(e,t,r){switch(t){case"input":if(tr(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 a=Fo(n);if(!a)throw Error(s(90));Er(n),tr(n,a)}}}break;case"textarea":dn(e,r);break;case"select":t=r.value,t!=null&&St(e,!!r.multiple,t,!1)}},"yb"),gn=Aa,br=Si;var yf={usingClientEntryPoint:!1,Events:[Nn,$i,Fo,Lr,yr,Aa]},dl={findFiberByHostInstance:yi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},bf={bundleType:dl.bundleType,version:dl.version,rendererPackageName:dl.rendererPackageName,rendererConfig:dl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:K.ReactCurrentDispatcher,findHostInstanceByFiber:u(function(e){return e=uo(e),e===null?null:e.stateNode},"findHostInstanceByFiber"),findFiberByHostInstance:dl.findFiberByHostInstance||rh,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(cl=__REACT_DEVTOOLS_GLOBAL_HOOK__,!cl.isDisabled&&cl.supportsFiber))try{_n=cl.inject(bf),Vt=cl}catch{}var cl;i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=yf,i.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ga(t))throw Error(s(200));return th(e,t,null,r)},i.createRoot=function(e,t){if(!Ga(e))throw Error(s(299));var r=!1,n="",a=ih;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=Ua(e,1,!1,null,null,r,!1,n,a),e[Gr]=t.current,An(e.nodeType===8?e.parentNode:e),new $a(t)},i.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(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=uo(t),e=e===null?null:e.stateNode,e},i.flushSync=function(e){return Si(e)},i.hydrate=function(e,t,r){if(!sl(t))throw Error(s(200));return ul(null,e,t,!0,r)},i.hydrateRoot=function(e,t,r){if(!Ga(e))throw Error(s(405));var n=r!=null&&r.hydratedSources||null,a=!1,d="",g=ih;if(r!=null&&(r.unstable_strictMode===!0&&(a=!0),r.identifierPrefix!==void 0&&(d=r.identifierPrefix),r.onRecoverableError!==void 0&&(g=r.onRecoverableError)),t=vd(t,null,e,1,r??null,a,!1,d,g),e[Gr]=t.current,An(e),n)for(e=0;e<n.length;e++)r=n[e],a=r._getVersion,a=a(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,a]:t.mutableSourceEagerHydrationData.push(r,a);return new al(t)},i.render=function(e,t,r){if(!sl(t))throw Error(s(200));return ul(null,e,t,!1,r)},i.unmountComponentAtNode=function(e){if(!sl(e))throw Error(s(40));return e._reactRootContainer?(Si(function(){ul(null,null,e,!1,function(){e._reactRootContainer=null,e[Gr]=null})}),!0):!1},i.unstable_batchedUpdates=Aa,i.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!sl(r))throw Error(s(200));if(e==null||e._reactInternals===void 0)throw Error(s(38));return ul(e,t,r,!1,n)},i.version="18.3.1-next-f1338f8080-20240426"}),dh=ni((i,o)=>{"use strict";function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(s){console.error(s)}}c(l,"Yf"),u(l,"checkDCE"),l(),o.exports=If()}),Ef=ni(i=>{"use strict";var o=dh();i.createRoot=o.createRoot,i.hydrateRoot=o.hydrateRoot;var l}),Rf=ni(i=>{"use strict";var o=to(),l=Symbol.for("react.element"),s=Symbol.for("react.fragment"),h=Object.prototype.hasOwnProperty,p=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function m(b,_,I){var P,z={},R=null,M=null;I!==void 0&&(R=""+I),_.key!==void 0&&(R=""+_.key),_.ref!==void 0&&(M=_.ref);for(P in _)h.call(_,P)&&!f.hasOwnProperty(P)&&(z[P]=_[P]);if(b&&b.defaultProps)for(P in _=b.defaultProps,_)z[P]===void 0&&(z[P]=_[P]);return{$$typeof:l,type:b,key:R,ref:M,props:z,_owner:p.current}}c(m,"bf"),u(m,"q"),i.Fragment=s,i.jsx=m,i.jsxs=m}),Mf=ni((i,o)=>{"use strict";o.exports=Rf()});var Df=on(to(),1),Bf=on(Ef(),1),Et=on(to(),1),oe=on(to(),1),Ka=on(dh(),1);function Id(i){var o,l,s="";if(typeof i=="string"||typeof i=="number")s+=i;else if(typeof i=="object")if(Array.isArray(i)){var h=i.length;for(o=0;o<h;o++)i[o]&&(l=Id(i[o]))&&(s&&(s+=" "),s+=l)}else for(l in i)i[l]&&(s&&(s+=" "),s+=l);return s}c(Id,"qf");u(Id,"r");function ch(){for(var i,o,l=0,s="",h=arguments.length;l<h;l++)(i=arguments[l])&&(o=Id(i))&&(s&&(s+=" "),s+=o);return s}c(ch,"Hg");u(ch,"clsx");var Ii=ch,fe=on(Mf(),1);function Nt(i,o,l){let s=typeof i.colSpan=="function"?i.colSpan(l):1;if(Number.isInteger(s)&&s>1&&(!i.frozen||i.idx+s-1<=o))return s}c(Nt,"Xe");u(Nt,"getColSpan");function hh(i){i.stopPropagation()}c(hh,"Kg");u(hh,"stopPropagation");function hl(i){i?.scrollIntoView({inline:"nearest",block:"nearest"})}c(hl,"Zl");u(hl,"scrollIntoView");function Jn(i){let o=!1,l={...i,preventGridDefault(){o=!0},isGridDefaultPrevented(){return o}};return Object.setPrototypeOf(l,Object.getPrototypeOf(i)),l}c(Jn,"so");u(Jn,"createCellEvent");var Lf=new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function qa(i){return(i.ctrlKey||i.metaKey)&&i.key!=="Control"}c(qa,"$s");u(qa,"isCtrlKeyHeldDown");function ph(i){return qa(i)&&i.keyCode!==86?!1:!Lf.has(i.key)}c(ph,"Qg");u(ph,"isDefaultCellInput");function fh({key:i,target:o}){return i==="Tab"&&(o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement||o instanceof HTMLSelectElement)?o.closest(".rdg-editor-container")?.querySelectorAll("input, textarea, select").length===1:!1}c(fh,"Yg");u(fh,"onEditorNavigation");var Af="mlln6zg7-0-0-beta-47";function gh(i){return i.map(({key:o,idx:l,minWidth:s,maxWidth:h})=>(0,fe.jsx)("div",{className:Af,style:{gridColumnStart:l+1,minWidth:s,maxWidth:h},"data-measuring-cell-key":o},o))}c(gh,"Zg");u(gh,"renderMeasuringCells");function mh({selectedPosition:i,columns:o,rows:l}){let s=o[i.idx],h=l[i.rowIdx];return Ed(s,h)}c(mh,"Jg");u(mh,"isSelectedCellEditable");function Ed(i,o){return i.renderEditCell!=null&&(typeof i.editable=="function"?i.editable(o):i.editable)!==!1}c(Ed,"sp");u(Ed,"isCellEditableUtil");function yh({rows:i,topSummaryRows:o,bottomSummaryRows:l,rowIdx:s,mainHeaderRowIdx:h,lastFrozenColumnIndex:p,column:f}){let m=o?.length??0;if(s===h)return Nt(f,p,{type:"HEADER"});if(o&&s>h&&s<=m+h)return Nt(f,p,{type:"SUMMARY",row:o[s+m]});if(s>=0&&s<i.length){let b=i[s];return Nt(f,p,{type:"ROW",row:b})}if(l)return Nt(f,p,{type:"SUMMARY",row:l[s-i.length]})}c(yh,"qg");u(yh,"getSelectedCellColSpan");function bh({moveUp:i,moveNext:o,cellNavigationMode:l,columns:s,colSpanColumns:h,rows:p,topSummaryRows:f,bottomSummaryRows:m,minRowIdx:b,mainHeaderRowIdx:_,maxRowIdx:I,currentPosition:{idx:P,rowIdx:z},nextPosition:R,lastFrozenColumnIndex:M,isCellWithinBounds:N}){let{idx:F,rowIdx:D}=R,Y=s.length,j=u(X=>{for(let E of h){let k=E.idx;if(k>F)break;let Q=yh({rows:p,topSummaryRows:f,bottomSummaryRows:m,rowIdx:D,mainHeaderRowIdx:_,lastFrozenColumnIndex:M,column:E});if(Q&&F>k&&F<Q+k){F=k+(X?Q:0);break}}},"setColSpan"),G=u(X=>X.level+_,"getParentRowIdx"),K=u(()=>{if(o){let X=s[F].parent;for(;X!==void 0;){let E=G(X);if(D===E){F=X.idx+X.colSpan;break}X=X.parent}}else if(i){let X=s[F].parent,E=!1;for(;X!==void 0;){let k=G(X);if(D>=k){F=X.idx,D=k,E=!0;break}X=X.parent}E||(F=P,D=z)}},"setHeaderGroupColAndRowSpan");if(N(R)&&(j(o),D<_&&K()),l==="CHANGE_ROW"&&(F===Y?D===I||(F=0,D+=1):F===-1&&(D===b||(D-=1,F=Y-1),j(!1))),D<_){let X=s[F].parent,E=D;for(D=_;X!==void 0;){let k=G(X);k>=E&&(D=k,F=X.idx),X=X.parent}}return{idx:F,rowIdx:D}}c(bh,"bg");u(bh,"getNextSelectedCellPosition");function vh({maxColIdx:i,minRowIdx:o,maxRowIdx:l,selectedPosition:{rowIdx:s,idx:h},shiftKey:p}){return p?h===0&&s===o:h===i&&s===l}c(vh,"e0");u(vh,"canExitGrid");var Of="cj343x07-0-0-beta-47",wh=`rdg-cell ${Of}`,Wf="csofj7r7-0-0-beta-47",Nf=`rdg-cell-frozen ${Wf}`;function Rd(i){return{"--rdg-grid-row-start":i}}c(Rd,"cp");u(Rd,"getRowStyle");function Md(i,o,l){let s=o+1,h=`calc(${l-1} * var(--rdg-header-row-height))`;return i.parent===void 0?{insetBlockStart:0,gridRowStart:1,gridRowEnd:s,paddingBlockStart:h}:{insetBlockStart:`calc(${o-l} * var(--rdg-header-row-height))`,gridRowStart:s-l,gridRowEnd:s,paddingBlockStart:h}}c(Md,"dp");u(Md,"getHeaderCellStyle");function ro(i,o=1){let l=i.idx+1;return{gridColumnStart:l,gridColumnEnd:l+o,insetInlineStart:i.frozen?`var(--rdg-frozen-left-${i.idx})`:void 0}}c(ro,"fo");u(ro,"getCellStyle");function fl(i,...o){return Ii(wh,...o,i.frozen&&Nf)}c(fl,"ql");u(fl,"getCellClassname");var{min:pl,max:Qa,floor:ah,sign:Hf,abs:jf}=Math;function Ya(i){if(typeof i!="function")throw new Error("Please specify the rowKeyGetter prop to use selection")}c(Ya,"As");u(Ya,"assertIsValidKeyGetter");function Dd(i,{minWidth:o,maxWidth:l}){return i=Qa(i,o),typeof l=="number"&&l>=o?pl(i,l):i}c(Dd,"fp");u(Dd,"clampColumnWidth");function Bd(i,o){return i.parent===void 0?o:i.level-i.parent.level}c(Bd,"pp");u(Bd,"getHeaderCellRowSpan");var Uf="c1bn88vv7-0-0-beta-47",Vf=`rdg-checkbox-input ${Uf}`;function _h({onChange:i,indeterminate:o,...l}){function s(h){i(h.target.checked,h.nativeEvent.shiftKey)}return c(s,"r"),u(s,"handleChange"),(0,fe.jsx)("input",{ref:u(h=>{h&&(h.indeterminate=o===!0)},"ref"),type:"checkbox",className:Vf,onChange:s,...l})}c(_h,"s0");u(_h,"renderCheckbox");var $f="g1s9ylgp7-0-0-beta-47",Hy=`rdg-group-cell-content ${$f}`,Gf="cz54e4y7-0-0-beta-47",jy=`rdg-caret ${Gf}`;function xh(i){try{return i.row[i.column.key]}catch{return null}}c(xh,"d0");u(xh,"renderValue");var Ch=(0,oe.createContext)(void 0),Yf=Ch.Provider;function Za(){return(0,oe.useContext)(Ch)}c(Za,"Vs");u(Za,"useDefaultRenderers");function Ja({value:i,tabIndex:o,indeterminate:l,disabled:s,onChange:h,"aria-label":p,"aria-labelledby":f}){let m=Za().renderCheckbox;return m({"aria-label":p,"aria-labelledby":f,tabIndex:o,indeterminate:l,disabled:s,checked:i,onChange:h})}c(Ja,"Bs");u(Ja,"SelectCellFormatter");var Sh=(0,oe.createContext)(void 0),Xf=Sh.Provider,kh=(0,oe.createContext)(void 0),Kf=kh.Provider;function Fd(){let i=(0,oe.useContext)(Sh),o=(0,oe.useContext)(kh);if(i===void 0||o===void 0)throw new Error("useRowSelection must be used within DataGrid cells");return{isRowSelectionDisabled:i.isRowSelectionDisabled,isRowSelected:i.isRowSelected,onRowSelectionChange:o}}c(Fd,"yp");u(Fd,"useRowSelection");var Th=(0,oe.createContext)(void 0),qf=Th.Provider,Ph=(0,oe.createContext)(void 0),Qf=Ph.Provider;function zh(){let i=(0,oe.useContext)(Th),o=(0,oe.useContext)(Ph);if(i===void 0||o===void 0)throw new Error("useHeaderRowSelection must be used within DataGrid cells");return{isIndeterminate:i.isIndeterminate,isRowSelected:i.isRowSelected,onRowSelectionChange:o}}c(zh,"y0");u(zh,"useHeaderRowSelection");var Cd="rdg-select-column";function Ih(i){let{isIndeterminate:o,isRowSelected:l,onRowSelectionChange:s}=zh();return(0,fe.jsx)(Ja,{"aria-label":"Select All",tabIndex:i.tabIndex,indeterminate:o,value:l,onChange:u(h=>{s({checked:o?!1:h})},"onChange")})}c(Ih,"v0");u(Ih,"HeaderRenderer");function Eh(i){let{isRowSelectionDisabled:o,isRowSelected:l,onRowSelectionChange:s}=Fd();return(0,fe.jsx)(Ja,{"aria-label":"Select",tabIndex:i.tabIndex,disabled:o,value:l,onChange:u((h,p)=>{s({row:i.row,checked:h,isShiftClick:p})},"onChange")})}c(Eh,"w0");u(Eh,"SelectFormatter");function Rh(i){let{isRowSelected:o,onRowSelectionChange:l}=Fd();return(0,fe.jsx)(Ja,{"aria-label":"Select Group",tabIndex:i.tabIndex,value:o,onChange:u(s=>{l({row:i.row,checked:s,isShiftClick:!1})},"onChange")})}c(Rh,"C0");u(Rh,"SelectGroupFormatter");var Zf={key:Cd,name:"",width:35,minWidth:35,maxWidth:35,resizable:!1,sortable:!1,frozen:!0,renderHeaderCell(i){return(0,fe.jsx)(Ih,{...i})},renderCell(i){return(0,fe.jsx)(Eh,{...i})},renderGroupCell(i){return(0,fe.jsx)(Rh,{...i})}},Jf="auto",eg=50;function Mh({rawColumns:i,defaultColumnOptions:o,getColumnWidth:l,viewportWidth:s,scrollLeft:h,enableVirtualization:p}){let f=o?.width??Jf,m=o?.minWidth??eg,b=o?.maxWidth??void 0,_=o?.renderCell??xh,I=o?.sortable??!1,P=o?.resizable??!1,z=o?.draggable??!1,{columns:R,colSpanColumns:M,lastFrozenColumnIndex:N,headerRowsCount:F}=(0,oe.useMemo)(()=>{let E=-1,k=1,Q=[];ae(i,1);function ae(ge,ce,Fe){for(let Se of ge){if("children"in Se){let U={name:Se.name,parent:Fe,idx:-1,colSpan:0,level:0,headerCellClass:Se.headerCellClass};ae(Se.children,ce+1,U);continue}let Pe=Se.frozen??!1,Le={...Se,parent:Fe,idx:0,level:0,frozen:Pe,width:Se.width??f,minWidth:Se.minWidth??m,maxWidth:Se.maxWidth??b,sortable:Se.sortable??I,resizable:Se.resizable??P,draggable:Se.draggable??z,renderCell:Se.renderCell??_};Q.push(Le),Pe&&E++,ce>k&&(k=ce)}}c(ae,"T"),u(ae,"collectColumns"),Q.sort(({key:ge,frozen:ce},{key:Fe,frozen:Se})=>ge===Cd?-1:Fe===Cd?1:ce?Se?0:-1:Se?1:0);let ye=[];return Q.forEach((ge,ce)=>{ge.idx=ce,Ld(ge,ce,0),ge.colSpan!=null&&ye.push(ge)}),{columns:Q,colSpanColumns:ye,lastFrozenColumnIndex:E,headerRowsCount:k}},[i,f,m,b,_,P,I,z]),{templateColumns:D,layoutCssVars:Y,totalFrozenColumnWidth:j,columnMetrics:G}=(0,oe.useMemo)(()=>{let E=new Map,k=0,Q=0,ae=[];for(let ge of R){let ce=l(ge);typeof ce=="number"?ce=Dd(ce,ge):ce=ge.minWidth,ae.push(`${ce}px`),E.set(ge,{width:ce,left:k}),k+=ce}if(N!==-1){let ge=E.get(R[N]);Q=ge.left+ge.width}let ye={};for(let ge=0;ge<=N;ge++){let ce=R[ge];ye[`--rdg-frozen-left-${ce.idx}`]=`${E.get(ce).left}px`}return{templateColumns:ae,layoutCssVars:ye,totalFrozenColumnWidth:Q,columnMetrics:E}},[l,R,N]),[K,X]=(0,oe.useMemo)(()=>{if(!p)return[0,R.length-1];let E=h+j,k=h+s,Q=R.length-1,ae=pl(N+1,Q);if(E>=k)return[ae,ae];let ye=ae;for(;ye<Q;){let{left:Se,width:Pe}=G.get(R[ye]);if(Se+Pe>E)break;ye++}let ge=ye;for(;ge<Q;){let{left:Se,width:Pe}=G.get(R[ge]);if(Se+Pe>=k)break;ge++}let ce=Qa(ae,ye-1),Fe=pl(Q,ge+1);return[ce,Fe]},[G,R,N,h,j,s,p]);return{columns:R,colSpanColumns:M,colOverscanStartIdx:K,colOverscanEndIdx:X,templateColumns:D,layoutCssVars:Y,headerRowsCount:F,lastFrozenColumnIndex:N,totalFrozenColumnWidth:j}}c(Mh,"x0");u(Mh,"useCalculatedColumns");function Ld(i,o,l){if(l<i.level&&(i.level=l),i.parent!==void 0){let{parent:s}=i;s.idx===-1&&(s.idx=o),s.colSpan+=1,Ld(s,o,l-1)}}c(Ld,"Sp");u(Ld,"updateColumnParent");var eo=typeof window>"u"?oe.useEffect:oe.useLayoutEffect;function Dh(i,o,l,s,h,p,f,m,b,_){let I=(0,oe.useRef)(h),P=i.length===o.length,z=P&&h!==I.current,R=[...l],M=[];for(let{key:Y,idx:j,width:G}of o)typeof G=="string"&&(z||!f.has(Y))&&!p.has(Y)&&(R[j]=G,M.push(Y));let N=R.join(" ");eo(()=>{I.current=h,F(M)});function F(Y){Y.length!==0&&b(j=>{let G=new Map(j),K=!1;for(let X of Y){let E=Sd(s,X);K||=E!==j.get(X),E===void 0?G.delete(X):G.set(X,E)}return K?G:j})}c(F,"P"),u(F,"updateMeasuredWidths");function D(Y,j){let{key:G}=Y,K=[...l],X=[];for(let{key:k,idx:Q,width:ae}of o)if(G===k){let ye=typeof j=="number"?`${j}px`:j;K[Q]=ye}else P&&typeof ae=="string"&&!p.has(k)&&(K[Q]=ae,X.push(k));s.current.style.gridTemplateColumns=K.join(" ");let E=typeof j=="number"?j:Sd(s,G);(0,Ka.flushSync)(()=>{m(k=>{let Q=new Map(k);return Q.set(G,E),Q}),F(X)}),_?.(Y.idx,E)}return c(D,"d"),u(D,"handleColumnResize"),{gridTemplateColumns:N,handleColumnResize:D}}c(Dh,"E0");u(Dh,"useColumnWidths");function Sd(i,o){let l=`[data-measuring-cell-key="${CSS.escape(o)}"]`;return i.current?.querySelector(l)?.getBoundingClientRect().width}c(Sd,"op");u(Sd,"measureColumnWidth");function Bh(){let i=(0,oe.useRef)(null),[o,l]=(0,oe.useState)(1),[s,h]=(0,oe.useState)(1),[p,f]=(0,oe.useState)(0);return eo(()=>{let{ResizeObserver:m}=window;if(m==null)return;let{clientWidth:b,clientHeight:_,offsetWidth:I,offsetHeight:P}=i.current,{width:z,height:R}=i.current.getBoundingClientRect(),M=P-_,N=z-I+b,F=R-M;l(N),h(F),f(M);let D=new m(Y=>{let j=Y[0].contentBoxSize[0],{clientHeight:G,offsetHeight:K}=i.current;(0,Ka.flushSync)(()=>{l(j.inlineSize),h(j.blockSize),f(K-G)})});return D.observe(i.current),()=>{D.disconnect()}},[]),[i,o,s,p]}c(Bh,"R0");u(Bh,"useGridDimensions");function Rt(i){let o=(0,oe.useRef)(i);(0,oe.useEffect)(()=>{o.current=i});let l=(0,oe.useCallback)((...s)=>{o.current(...s)},[]);return i&&l}c(Rt,"Ae");u(Rt,"useLatestFunc");function gl(i){let[o,l]=(0,oe.useState)(!1);o&&!i&&l(!1);function s(h){h.target!==h.currentTarget&&l(!0)}return c(s,"r"),u(s,"onFocus"),{tabIndex:i&&!o?0:-1,childTabIndex:i?0:-1,onFocus:i?s:void 0}}c(gl,"bl");u(gl,"useRovingTabIndex");function Fh({columns:i,colSpanColumns:o,rows:l,topSummaryRows:s,bottomSummaryRows:h,colOverscanStartIdx:p,colOverscanEndIdx:f,lastFrozenColumnIndex:m,rowOverscanStartIdx:b,rowOverscanEndIdx:_}){let I=(0,oe.useMemo)(()=>{if(p===0)return 0;let P=p,z=u((R,M)=>M!==void 0&&R+M>p?(P=R,!0):!1,"updateStartIdx");for(let R of o){let M=R.idx;if(M>=P||z(M,Nt(R,m,{type:"HEADER"})))break;for(let N=b;N<=_;N++){let F=l[N];if(z(M,Nt(R,m,{type:"ROW",row:F})))break}if(s!=null){for(let N of s)if(z(M,Nt(R,m,{type:"SUMMARY",row:N})))break}if(h!=null){for(let N of h)if(z(M,Nt(R,m,{type:"SUMMARY",row:N})))break}}return P},[b,_,l,s,h,p,m,o]);return(0,oe.useMemo)(()=>{let P=[];for(let z=0;z<=f;z++){let R=i[z];z<I&&!R.frozen||P.push(R)}return P},[I,f,i])}c(Fh,"_0");u(Fh,"useViewportColumns");function Lh({rows:i,rowHeight:o,clientHeight:l,scrollTop:s,enableVirtualization:h}){let{totalRowHeight:p,gridTemplateRows:f,getRowTop:m,getRowHeight:b,findRowIdx:_}=(0,oe.useMemo)(()=>{if(typeof o=="number")return{totalRowHeight:o*i.length,gridTemplateRows:` repeat(${i.length}, ${o}px)`,getRowTop:u(F=>F*o,"getRowTop"),getRowHeight:u(()=>o,"getRowHeight"),findRowIdx:u(F=>ah(F/o),"findRowIdx")};let z=0,R=" ",M=i.map(F=>{let D=o(F),Y={top:z,height:D};return R+=`${D}px `,z+=D,Y}),N=u(F=>Qa(0,pl(i.length-1,F)),"validateRowIdx");return{totalRowHeight:z,gridTemplateRows:R,getRowTop:u(F=>M[N(F)].top,"getRowTop"),getRowHeight:u(F=>M[N(F)].height,"getRowHeight"),findRowIdx(F){let D=0,Y=M.length-1;for(;D<=Y;){let j=D+ah((Y-D)/2),G=M[j].top;if(G===F)return j;if(G<F?D=j+1:G>F&&(Y=j-1),D>Y)return Y}return 0}}},[o,i]),I=0,P=i.length-1;if(h){let z=_(s),R=_(s+l);I=Qa(0,z-4),P=pl(i.length-1,R+4)}return{rowOverscanStartIdx:I,rowOverscanEndIdx:P,totalRowHeight:p,gridTemplateRows:f,getRowTop:m,getRowHeight:b,findRowIdx:_}}c(Lh,"z0");u(Lh,"useViewportRows");var tg="c1w9bbhr7-0-0-beta-47",rg="c1creorc7-0-0-beta-47",ig=`rdg-cell-drag-handle ${tg}`;function Ah({gridRowStart:i,rows:o,column:l,columnWidth:s,maxColIdx:h,isLastRow:p,selectedPosition:f,latestDraggedOverRowIdx:m,isCellEditable:b,onRowsChange:_,onFill:I,onClick:P,setDragging:z,setDraggedOverRowIdx:R}){let{idx:M,rowIdx:N}=f;function F(K){if(K.preventDefault(),K.buttons!==1)return;z(!0),window.addEventListener("mouseover",X),window.addEventListener("mouseup",E);function X(k){k.buttons!==1&&E()}c(X,"R"),u(X,"onMouseOver");function E(){window.removeEventListener("mouseover",X),window.removeEventListener("mouseup",E),z(!1),D()}c(E,"w"),u(E,"onMouseUp")}c(F,"P"),u(F,"handleMouseDown");function D(){let K=m.current;if(K===void 0)return;let X=N<K?N+1:K,E=N<K?K+1:N;j(X,E),R(void 0)}c(D,"d"),u(D,"handleDragEnd");function Y(K){K.stopPropagation(),j(N+1,o.length)}c(Y,"c"),u(Y,"handleDoubleClick");function j(K,X){let E=o[N],k=[...o],Q=[];for(let ae=K;ae<X;ae++)if(b({rowIdx:ae,idx:M})){let ye=I({columnKey:l.key,sourceRow:E,targetRow:o[ae]});ye!==o[ae]&&(k[ae]=ye,Q.push(ae))}Q.length>0&&_?.(k,{indexes:Q,column:l})}c(j,"p"),u(j,"updateRows");function G(){let K=l.colSpan?.({type:"ROW",row:o[N]})??1,{insetInlineStart:X,...E}=ro(l,K),k="calc(var(--rdg-drag-handle-size) * -0.5 + 1px)",Q=l.idx+K-1===h;return{...E,gridRowStart:i,marginInlineEnd:Q?void 0:k,marginBlockEnd:p?void 0:k,insetInlineStart:X?`calc(${X} + ${s}px + var(--rdg-drag-handle-size) * -0.5 - 1px)`:void 0}}return c(G,"m"),u(G,"getStyle"),(0,fe.jsx)("div",{style:G(),className:Ii(ig,l.frozen&&rg),onClick:P,onMouseDown:F,onDoubleClick:Y})}c(Ah,"N0");u(Ah,"DragHandle");var ng="cis5rrm7-0-0-beta-47";function Oh({column:i,colSpan:o,row:l,rowIdx:s,onRowChange:h,closeEditor:p,onKeyDown:f,navigate:m}){let b=(0,oe.useRef)(void 0),_=i.editorOptions?.commitOnOutsideClick!==!1,I=Rt(()=>{R(!0,!1)});(0,oe.useEffect)(()=>{if(!_)return;function D(){b.current=requestAnimationFrame(I)}return c(D,"d"),u(D,"onWindowCaptureMouseDown"),addEventListener("mousedown",D,{capture:!0}),()=>{removeEventListener("mousedown",D,{capture:!0}),P()}},[_,I]);function P(){cancelAnimationFrame(b.current)}c(P,"g"),u(P,"cancelFrameRequest");function z(D){if(f){let Y=Jn(D);if(f({mode:"EDIT",row:l,column:i,rowIdx:s,navigate(){m(D)},onClose:R},Y),Y.isGridDefaultPrevented())return}D.key==="Escape"?R():D.key==="Enter"?R(!0):fh(D)&&m(D)}c(z,"h"),u(z,"handleKeyDown");function R(D=!1,Y=!0){D?h(l,!0,Y):p(Y)}c(R,"y"),u(R,"onClose");function M(D,Y=!1){h(D,Y,Y)}c(M,"x"),u(M,"onEditorRowChange");let{cellClass:N}=i,F=fl(i,"rdg-editor-container",typeof N=="function"?N(l):N,!i.editorOptions?.displayCellContent&&ng);return(0,fe.jsx)("div",{role:"gridcell","aria-colindex":i.idx+1,"aria-colspan":o,"aria-selected":!0,className:F,style:ro(i,o),onKeyDown:z,onMouseDownCapture:P,children:i.renderEditCell!=null&&(0,fe.jsxs)(fe.Fragment,{children:[i.renderEditCell({column:i,row:l,rowIdx:s,onRowChange:M,onClose:R}),i.editorOptions?.displayCellContent&&i.renderCell({column:i,row:l,rowIdx:s,isCellEditable:!0,tabIndex:-1,onRowChange:M})]})})}c(Oh,"L0");u(Oh,"EditCell");function Wh({column:i,rowIdx:o,isCellSelected:l,selectCell:s}){let{tabIndex:h,onFocus:p}=gl(l),{colSpan:f}=i,m=Bd(i,o),b=i.idx+1;function _(){s({idx:i.idx,rowIdx:o})}return c(_,"f"),u(_,"onClick"),(0,fe.jsx)("div",{role:"columnheader","aria-colindex":b,"aria-colspan":f,"aria-rowspan":m,"aria-selected":l,tabIndex:h,className:Ii(wh,i.headerCellClass),style:{...Md(i,o,m),gridColumnStart:b,gridColumnEnd:b+f},onFocus:p,onClick:_,children:i.name})}c(Wh,"F0");u(Wh,"GroupedColumnHeaderCell");var og="h44jtk67-0-0-beta-47",lg="hcgkhxz7-0-0-beta-47",ag=`rdg-header-sort-name ${lg}`;function Nh({column:i,sortDirection:o,priority:l}){return i.sortable?(0,fe.jsx)(Hh,{sortDirection:o,priority:l,children:i.name}):i.name}c(Nh,"H0");u(Nh,"renderHeaderCell");function Hh({sortDirection:i,priority:o,children:l}){let s=Za().renderSortStatus;return(0,fe.jsxs)("span",{className:og,children:[(0,fe.jsx)("span",{className:ag,children:l}),(0,fe.jsx)("span",{children:s({sortDirection:i,priority:o})})]})}c(Hh,"A0");u(Hh,"SortableHeaderCell");var sg="c6l2wv17-0-0-beta-47",ug="c1kqdw7y7-0-0-beta-47",dg=`rdg-cell-resizable ${ug}`,cg="r1y6ywlx7-0-0-beta-47",hg="rdg-cell-draggable",pg="c1bezg5o7-0-0-beta-47",fg=`rdg-cell-dragging ${pg}`,gg="c1vc96037-0-0-beta-47",mg=`rdg-cell-drag-over ${gg}`;function jh({column:i,colSpan:o,rowIdx:l,isCellSelected:s,onColumnResize:h,onColumnsReorder:p,sortColumns:f,onSortColumnsChange:m,selectCell:b,shouldFocusGrid:_,direction:I,dragDropKey:P}){let[z,R]=(0,oe.useState)(!1),[M,N]=(0,oe.useState)(!1),F=I==="rtl",D=Bd(i,l),{tabIndex:Y,childTabIndex:j,onFocus:G}=gl(s),K=f?.findIndex(q=>q.columnKey===i.key),X=K!==void 0&&K>-1?f[K]:void 0,E=X?.direction,k=X!==void 0&&f.length>1?K+1:void 0,Q=E&&!k?E==="ASC"?"ascending":"descending":void 0,{sortable:ae,resizable:ye,draggable:ge}=i,ce=fl(i,i.headerCellClass,ae&&sg,ye&&dg,ge&&hg,z&&fg,M&&mg),Fe=i.renderHeaderCell??Nh;function Se(q){if(q.pointerType==="mouse"&&q.buttons!==1)return;q.preventDefault();let{currentTarget:be,pointerId:Ce}=q,ze=be.parentElement,{right:Ze,left:gr}=ze.getBoundingClientRect(),Er=F?q.clientX-gr:Ze-q.clientX,jt=!1;function er(tr){let{width:mr,right:li,left:rr}=ze.getBoundingClientRect(),St=F?li+Er-tr.clientX:tr.clientX+Er-rr;St=Dd(St,i),mr>0&&St!==mr&&h(i,St)}c(er,"sr"),u(er,"onPointerMove");function Rr(){jt=!0,h(i,"max-content")}c(Rr,"go"),u(Rr,"onDoubleClick");function Mr(tr){jt||er(tr),be.removeEventListener("pointermove",er),be.removeEventListener("dblclick",Rr),be.removeEventListener("lostpointercapture",Mr)}c(Mr,"yo"),u(Mr,"onLostPointerCapture"),be.setPointerCapture(Ce),be.addEventListener("pointermove",er),be.addEventListener("dblclick",Rr),be.addEventListener("lostpointercapture",Mr)}c(Se,"Z"),u(Se,"onPointerDown");function Pe(q){if(m==null)return;let{sortDescendingFirst:be}=i;if(X===void 0){let Ce={columnKey:i.key,direction:be?"DESC":"ASC"};m(f&&q?[...f,Ce]:[Ce])}else{let Ce;if((be===!0&&E==="DESC"||be!==!0&&E==="ASC")&&(Ce={columnKey:i.key,direction:E==="ASC"?"DESC":"ASC"}),q){let ze=[...f];Ce?ze[K]=Ce:ze.splice(K,1),m(ze)}else m(Ce?[Ce]:[])}}c(Pe,"Ze"),u(Pe,"onSort");function Le(q){b({idx:i.idx,rowIdx:l}),ae&&Pe(q.ctrlKey||q.metaKey)}c(Le,"lr"),u(Le,"onClick");function U(q){G?.(q),_&&b({idx:0,rowIdx:l})}c(U,"ir"),u(U,"handleFocus");function de(q){(q.key===" "||q.key==="Enter")&&(q.preventDefault(),Pe(q.ctrlKey||q.metaKey))}c(de,"ei"),u(de,"onKeyDown");function ne(q){q.dataTransfer.setData(P,i.key),q.dataTransfer.dropEffect="move",R(!0)}c(ne,"ti"),u(ne,"onDragStart");function ee(){R(!1)}c(ee,"ni"),u(ee,"onDragEnd");function x(q){q.preventDefault(),q.dataTransfer.dropEffect="move"}c(x,"ri"),u(x,"onDragOver");function H(q){if(N(!1),q.dataTransfer.types.includes(P.toLowerCase())){let be=q.dataTransfer.getData(P.toLowerCase());be!==i.key&&(q.preventDefault(),p?.(be,i.key))}}c(H,"oi"),u(H,"onDrop");function me(q){kd(q)&&N(!0)}c(me,"gn"),u(me,"onDragEnter");function ke(q){kd(q)&&N(!1)}c(ke,"po"),u(ke,"onDragLeave");let we;return ge&&(we={draggable:!0,onDragStart:ne,onDragEnd:ee,onDragOver:x,onDragEnter:me,onDragLeave:ke,onDrop:H}),(0,fe.jsxs)("div",{role:"columnheader","aria-colindex":i.idx+1,"aria-colspan":o,"aria-rowspan":D,"aria-selected":s,"aria-sort":Q,tabIndex:_?0:Y,className:ce,style:{...Md(i,l,D),...ro(i,o)},onFocus:U,onClick:Le,onKeyDown:ae?de:void 0,...we,children:[Fe({column:i,sortDirection:E,priority:k,tabIndex:j}),ye&&(0,fe.jsx)("div",{className:cg,onClick:hh,onPointerDown:Se})]})}c(jh,"X0");u(jh,"HeaderCell");function kd(i){let o=i.relatedTarget;return!i.currentTarget.contains(o)}c(kd,"lp");u(kd,"isEventPertinent");var yg="r1upfr807-0-0-beta-47",Uh=`rdg-row ${yg}`,bg="r190mhd37-0-0-beta-47",Ad="rdg-row-selected",vg="r139qu9m7-0-0-beta-47",wg="rdg-top-summary-row",_g="rdg-bottom-summary-row",xg="h10tskcx7-0-0-beta-47",Vh=`rdg-header-row ${xg}`;function $h({rowIdx:i,columns:o,onColumnResize:l,onColumnsReorder:s,sortColumns:h,onSortColumnsChange:p,lastFrozenColumnIndex:f,selectedCellIdx:m,selectCell:b,shouldFocusGrid:_,direction:I}){let P=(0,oe.useId)(),z=[];for(let R=0;R<o.length;R++){let M=o[R],N=Nt(M,f,{type:"HEADER"});N!==void 0&&(R+=N-1),z.push((0,fe.jsx)(jh,{column:M,colSpan:N,rowIdx:i,isCellSelected:m===M.idx,onColumnResize:l,onColumnsReorder:s,onSortColumnsChange:p,sortColumns:h,selectCell:b,shouldFocusGrid:_&&R===0,direction:I,dragDropKey:P},M.key))}return(0,fe.jsx)("div",{role:"row","aria-rowindex":i,className:Ii(Vh,m===-1&&Ad),children:z})}c($h,"ny");u($h,"HeaderRow");var Cg=(0,oe.memo)($h);function Gh({rowIdx:i,level:o,columns:l,selectedCellIdx:s,selectCell:h}){let p=[],f=new Set;for(let m of l){let{parent:b}=m;if(b!==void 0){for(;b.level>o&&b.parent!==void 0;)b=b.parent;if(b.level===o&&!f.has(b)){f.add(b);let{idx:_}=b;p.push((0,fe.jsx)(Wh,{column:b,rowIdx:i,isCellSelected:s===_,selectCell:h},_))}}}return(0,fe.jsx)("div",{role:"row","aria-rowindex":i,className:Vh,children:p})}c(Gh,"oy");u(Gh,"GroupedColumnHeaderRow");var Sg=(0,oe.memo)(Gh),kg="c6ra8a37-0-0-beta-47",Tg=`rdg-cell-copied ${kg}`,Pg="cq910m07-0-0-beta-47",zg=`rdg-cell-dragged-over ${Pg}`;function Yh({column:i,colSpan:o,isCellSelected:l,isCopied:s,isDraggedOver:h,row:p,rowIdx:f,onClick:m,onDoubleClick:b,onContextMenu:_,onRowChange:I,selectCell:P,...z}){let{tabIndex:R,childTabIndex:M,onFocus:N}=gl(l),{cellClass:F}=i,D=fl(i,typeof F=="function"?F(p):F,s&&Tg,h&&zg),Y=Ed(i,p);function j(k){P({rowIdx:f,idx:i.idx},k)}c(j,"p"),u(j,"selectCellWrapper");function G(k){if(m){let Q=Jn(k);if(m({row:p,column:i,selectCell:j},Q),Q.isGridDefaultPrevented())return}j()}c(G,"m"),u(G,"handleClick");function K(k){if(_){let Q=Jn(k);if(_({row:p,column:i,selectCell:j},Q),Q.isGridDefaultPrevented())return}j()}c(K,"k"),u(K,"handleContextMenu");function X(k){if(b){let Q=Jn(k);if(b({row:p,column:i,selectCell:j},Q),Q.isGridDefaultPrevented())return}j(!0)}c(X,"R"),u(X,"handleDoubleClick");function E(k){I(i,k)}return c(E,"w"),u(E,"handleRowChange"),(0,fe.jsx)("div",{role:"gridcell","aria-colindex":i.idx+1,"aria-colspan":o,"aria-selected":l,"aria-readonly":!Y||void 0,tabIndex:R,className:D,style:ro(i,o),onClick:G,onDoubleClick:X,onContextMenu:K,onFocus:N,...z,children:i.renderCell({column:i,row:p,rowIdx:f,isCellEditable:Y,tabIndex:M,onRowChange:E})})}c(Yh,"cy");u(Yh,"Cell");var Ig=(0,oe.memo)(Yh);function Xh({className:i,rowIdx:o,gridRowStart:l,selectedCellIdx:s,isRowSelectionDisabled:h,isRowSelected:p,copiedCellIdx:f,draggedOverCellIdx:m,lastFrozenColumnIndex:b,row:_,viewportColumns:I,selectedCellEditor:P,onCellClick:z,onCellDoubleClick:R,onCellContextMenu:M,rowClass:N,setDraggedOverRowIdx:F,onMouseEnter:D,onRowChange:Y,selectCell:j,...G},K){let X=Rt((ae,ye)=>{Y(ae,o,ye)});function E(ae){F?.(o),D?.(ae)}c(E,"w"),u(E,"handleDragEnter"),i=Ii(Uh,`rdg-row-${o%2===0?"even":"odd"}`,N?.(_,o),i,s===-1&&Ad);let k=[];for(let ae=0;ae<I.length;ae++){let ye=I[ae],{idx:ge}=ye,ce=Nt(ye,b,{type:"ROW",row:_});ce!==void 0&&(ae+=ce-1);let Fe=s===ge;Fe&&P?k.push(P):k.push((0,fe.jsx)(Ig,{column:ye,colSpan:ce,row:_,rowIdx:o,isCopied:f===ge,isDraggedOver:m===ge,isCellSelected:Fe,onClick:z,onDoubleClick:R,onContextMenu:M,onRowChange:X,selectCell:j},ye.key))}let Q=(0,oe.useMemo)(()=>({isRowSelected:p,isRowSelectionDisabled:h}),[h,p]);return(0,fe.jsx)(Xf,{value:Q,children:(0,fe.jsx)("div",{role:"row",ref:K,className:i,onMouseEnter:E,style:Rd(l),...G,children:k})})}c(Xh,"fy");u(Xh,"Row");var Eg=(0,oe.memo)((0,oe.forwardRef)(Xh));function Kh(i,o){return(0,fe.jsx)(Eg,{...o},i)}c(Kh,"hy");u(Kh,"defaultRenderRow");function qh({scrollToPosition:{idx:i,rowIdx:o},gridElement:l,setScrollToCellPosition:s}){let h=(0,oe.useRef)(null);return eo(()=>{hl(h.current)}),eo(()=>{function p(){s(null)}c(p,"l"),u(p,"removeScrollToCell");let f=new IntersectionObserver(p,{root:l,threshold:1});return f.observe(h.current),()=>{f.disconnect()}},[l,s]),(0,fe.jsx)("div",{ref:h,style:{gridColumn:i===void 0?"1/-1":i+1,gridRow:o===void 0?"1/-1":o+2}})}c(qh,"my");u(qh,"ScrollToCell");var Rg="a3ejtar7-0-0-beta-47",Mg=`rdg-sort-arrow ${Rg}`;function Qh({sortDirection:i,priority:o}){return(0,fe.jsxs)(fe.Fragment,{children:[Zh({sortDirection:i}),Jh({priority:o})]})}c(Qh,"vy");u(Qh,"renderSortStatus");function Zh({sortDirection:i}){return i===void 0?null:(0,fe.jsx)("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:Mg,"aria-hidden":!0,children:(0,fe.jsx)("path",{d:i==="ASC"?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}c(Zh,"wy");u(Zh,"renderSortIcon");function Jh({priority:i}){return i}c(Jh,"Cy");u(Jh,"renderSortPriority");var Dg="rnvodz57-0-0-beta-47",Bg=`rdg ${Dg}`,Fg="vlqv91k7-0-0-beta-47",Lg=`rdg-viewport-dragging ${Fg}`,Ag="f1lsfrzw7-0-0-beta-47",Og="f1cte0lg7-0-0-beta-47",Wg="s8wc6fl7-0-0-beta-47";function ep({column:i,colSpan:o,row:l,rowIdx:s,isCellSelected:h,selectCell:p}){let{tabIndex:f,childTabIndex:m,onFocus:b}=gl(h),{summaryCellClass:_}=i,I=fl(i,Wg,typeof _=="function"?_(l):_);function P(){p({rowIdx:s,idx:i.idx})}return c(P,"g"),u(P,"onClick"),(0,fe.jsx)("div",{role:"gridcell","aria-colindex":i.idx+1,"aria-colspan":o,"aria-selected":h,tabIndex:f,className:I,style:ro(i,o),onClick:P,onFocus:b,children:i.renderSummaryCell?.({column:i,row:l,tabIndex:m})})}c(ep,"Py");u(ep,"SummaryCell");var Ng=(0,oe.memo)(ep),Hg="skuhp557-0-0-beta-47",jg="tf8l5ub7-0-0-beta-47",Ug=`rdg-summary-row ${Hg}`;function tp({rowIdx:i,gridRowStart:o,row:l,viewportColumns:s,top:h,bottom:p,lastFrozenColumnIndex:f,selectedCellIdx:m,isTop:b,selectCell:_,"aria-rowindex":I}){let P=[];for(let z=0;z<s.length;z++){let R=s[z],M=Nt(R,f,{type:"SUMMARY",row:l});M!==void 0&&(z+=M-1);let N=m===R.idx;P.push((0,fe.jsx)(Ng,{column:R,colSpan:M,row:l,rowIdx:i,isCellSelected:N,selectCell:_},R.key))}return(0,fe.jsx)("div",{role:"row","aria-rowindex":I,className:Ii(Uh,`rdg-row-${i%2===0?"even":"odd"}`,Ug,b?`${wg} ${jg}`:_g,m===-1&&Ad),style:{...Rd(o),"--rdg-summary-row-top":h!==void 0?`${h}px`:void 0,"--rdg-summary-row-bottom":p!==void 0?`${p}px`:void 0},children:P})}c(tp,"Ly");u(tp,"SummaryRow");var sh=(0,oe.memo)(tp);function rp(i,o){let{columns:l,rows:s,topSummaryRows:h,bottomSummaryRows:p,rowKeyGetter:f,onRowsChange:m,rowHeight:b,headerRowHeight:_,summaryRowHeight:I,selectedRows:P,isRowSelectionDisabled:z,onSelectedRowsChange:R,sortColumns:M,onSortColumnsChange:N,defaultColumnOptions:F,onCellClick:D,onCellDoubleClick:Y,onCellContextMenu:j,onCellKeyDown:G,onSelectedCellChange:K,onScroll:X,onColumnResize:E,onColumnsReorder:k,onFill:Q,onCopy:ae,onPaste:ye,enableVirtualization:ge,renderers:ce,className:Fe,style:Se,rowClass:Pe,direction:Le,role:U,"aria-label":de,"aria-labelledby":ne,"aria-describedby":ee,"aria-rowcount":x,"data-testid":H}=i,me=Za(),ke=U??"grid",we=b??35,q=_??(typeof we=="number"?we:35),be=I??(typeof we=="number"?we:35),Ce=ce?.renderRow??me?.renderRow??Kh,ze=ce?.renderSortStatus??me?.renderSortStatus??Qh,Ze=ce?.renderCheckbox??me?.renderCheckbox??_h,gr=ce?.noRowsFallback??me?.noRowsFallback,Er=ge??!0,jt=Le??"ltr",[er,Rr]=(0,oe.useState)(0),[Mr,tr]=(0,oe.useState)(0),[mr,li]=(0,oe.useState)(()=>new Map),[rr,St]=(0,oe.useState)(()=>new Map),[ir,un]=(0,oe.useState)(null),[dn,no]=(0,oe.useState)(!1),[Dr,cn]=(0,oe.useState)(void 0),[Br,oo]=(0,oe.useState)(null),Fr=(0,oe.useCallback)(L=>mr.get(L.key)??rr.get(L.key)??L.width,[rr,mr]),[Ut,xl,hn,lo]=Bh(),{columns:Je,colSpanColumns:Mi,lastFrozenColumnIndex:at,headerRowsCount:nr,colOverscanStartIdx:pn,colOverscanEndIdx:fn,templateColumns:ai,layoutCssVars:si,totalFrozenColumnWidth:ao}=Mh({rawColumns:l,defaultColumnOptions:F,getColumnWidth:Fr,scrollLeft:Mr,viewportWidth:xl,enableVirtualization:Er}),Lr=h?.length??0,yr=p?.length??0,gn=Lr+yr,br=nr+Lr,Di=nr-1,st=-br,or=st+Di,lr=s.length+yr-1,[J,Ar]=(0,oe.useState)(()=>({idx:-1,rowIdx:st-1,mode:"SELECT"})),Or=(0,oe.useRef)(J),Bi=(0,oe.useRef)(Dr),Fi=(0,oe.useRef)(-1),ui=(0,oe.useRef)(null),mn=(0,oe.useRef)(!1),yn=ke==="treegrid",bn=nr*q,ar=gn*be,di=hn-bn-ar,Li=P!=null&&R!=null,so=jt==="rtl",uo=so?"ArrowRight":"ArrowLeft",vn=so?"ArrowLeft":"ArrowRight",co=x??nr+s.length+gn,Cl=(0,oe.useMemo)(()=>({renderCheckbox:Ze,renderSortStatus:ze}),[Ze,ze]),ls=(0,oe.useMemo)(()=>{let L=!1,V=!1;if(f!=null&&P!=null&&P.size>0){for(let se of s)if(P.has(f(se))?L=!0:V=!0,L&&V)break}return{isRowSelected:L&&!V,isIndeterminate:L&&V}},[s,P,f]),{rowOverscanStartIdx:Ai,rowOverscanEndIdx:Ae,totalRowHeight:ho,gridTemplateRows:po,getRowTop:fo,getRowHeight:wn,findRowIdx:Sl}=Lh({rows:s,rowHeight:we,clientHeight:di,scrollTop:er,enableVirtualization:Er}),sr=Fh({columns:Je,colSpanColumns:Mi,colOverscanStartIdx:pn,colOverscanEndIdx:fn,lastFrozenColumnIndex:at,rowOverscanStartIdx:Ai,rowOverscanEndIdx:Ae,rows:s,topSummaryRows:h,bottomSummaryRows:p}),{gridTemplateColumns:_n,handleColumnResize:Vt}=Dh(Je,sr,ai,Ut,xl,mr,rr,li,St,E),kl=yn?-1:0,it=Je.length-1,go=Dt(J),xn=Wr(J),Tl=q+ho+ar+lo,Cn=Rt(Vt),Sn=Rt(k),ci=Rt(N),Oi=Rt(D),Pl=Rt(Y),zl=Rt(j),kn=Rt(Re),mo=Rt(Wi),Tn=Rt(pi),vr=Rt(gi),yo=Rt(({idx:L,rowIdx:V})=>{gi({rowIdx:st+V-1,idx:L})});eo(()=>{if(!go||Xa(J,Or.current)){Or.current=J;return}Or.current=J,J.idx===-1&&(ui.current.focus({preventScroll:!0}),hl(ui.current))}),eo(()=>{mn.current&&(mn.current=!1,Hi())}),(0,oe.useImperativeHandle)(o,()=>({element:Ut.current,scrollToCell({idx:L,rowIdx:V}){let se=L!==void 0&&L>at&&L<Je.length?L:void 0,ue=V!==void 0&&ft(V)?V:void 0;(se!==void 0||ue!==void 0)&&oo({idx:se,rowIdx:ue})},selectCell:gi}));let hi=(0,oe.useCallback)(L=>{cn(L),Bi.current=L},[]);function Re(L){if(!R)return;Ya(f);let V=new Set(P);for(let se of s){if(z?.(se)===!0)continue;let ue=f(se);L.checked?V.add(ue):V.delete(ue)}R(V)}c(Re,"th"),u(Re,"selectHeaderRow");function Wi(L){if(!R)return;Ya(f);let{row:V,checked:se,isShiftClick:ue}=L;if(z?.(V)===!0)return;let Te=new Set(P),Me=f(V),Oe=Fi.current,Be=s.indexOf(V);if(Fi.current=Be,se?Te.add(Me):Te.delete(Me),ue&&Oe!==-1&&Oe!==Be&&Oe<s.length){let ut=Hf(Be-Oe);for(let wt=Oe+ut;wt!==Be;wt+=ut){let Tt=s[wt];z?.(Tt)!==!0&&(se?Te.add(f(Tt)):Te.delete(f(Tt)))}}R(Te)}c(Wi,"da"),u(Wi,"selectRow");function bo(L){let{idx:V,rowIdx:se,mode:ue}=J;if(ue==="EDIT")return;if(G&&ft(se)){let Be=s[se],ut=Jn(L);if(G({mode:"SELECT",row:Be,column:Je[V],rowIdx:se,selectCell:gi},ut),ut.isGridDefaultPrevented())return}if(!(L.target instanceof Element))return;let Te=L.target.closest(".rdg-cell")!==null,Me=yn&&L.target===ui.current;if(!Te&&!Me)return;let{keyCode:Oe}=L;if(xn&&(ye!=null||ae!=null)&&qa(L)){if(Oe===67){if(window.getSelection()?.isCollapsed===!1)return;vo();return}if(Oe===86){In();return}}switch(L.key){case"Escape":un(null);return;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Home":case"End":case"PageUp":case"PageDown":wr(L);break;default:Ni(L);break}}c(bo,"nh"),u(bo,"handleKeyDown");function Pn(L){let{scrollTop:V,scrollLeft:se}=L.currentTarget;(0,Ka.flushSync)(()=>{Rr(V),tr(jf(se))}),X?.(L)}c(Pn,"rh"),u(Pn,"handleScroll");function pi(L,V,se){if(typeof m!="function"||se===s[V])return;let ue=[...s];ue[V]=se,m(ue,{indexes:[V],column:L})}c(pi,"Eo"),u(pi,"updateRow");function zn(){J.mode==="EDIT"&&pi(Je[J.idx],J.rowIdx,J.row)}c(zn,"fa"),u(zn,"commitEditorChanges");function vo(){let{idx:L,rowIdx:V}=J,se=s[V],ue=Je[L].key;un({row:se,columnKey:ue}),ae?.({sourceRow:se,sourceColumnKey:ue})}c(vo,"oh"),u(vo,"handleCopy");function In(){if(!ye||!m||ir===null||!kt(J))return;let{idx:L,rowIdx:V}=J,se=Je[L],ue=s[V],Te=ye({sourceRow:ir.row,sourceColumnKey:ir.columnKey,targetRow:ue,targetColumnKey:se.key});pi(se,V,Te)}c(In,"lh"),u(In,"handlePaste");function Ni(L){if(!xn)return;let V=s[J.rowIdx],{key:se,shiftKey:ue}=L;if(Li&&ue&&se===" "){Ya(f);let Te=f(V);Wi({row:V,checked:!P.has(Te),isShiftClick:!1}),L.preventDefault();return}kt(J)&&ph(L)&&Ar(({idx:Te,rowIdx:Me})=>({idx:Te,rowIdx:Me,mode:"EDIT",row:V,originalRow:V}))}c(Ni,"ih"),u(Ni,"handleCellInput");function $t(L){return L>=kl&&L<=it}c($t,"pa"),u($t,"isColIdxWithinSelectionBounds");function ft(L){return L>=0&&L<s.length}c(ft,"zn"),u(ft,"isRowIdxWithinViewportBounds");function Dt({idx:L,rowIdx:V}){return V>=st&&V<=lr&&$t(L)}c(Dt,"mi"),u(Dt,"isCellWithinSelectionBounds");function fi({idx:L,rowIdx:V}){return ft(V)&&L>=0&&L<=it}c(fi,"uh"),u(fi,"isCellWithinEditBounds");function Wr({idx:L,rowIdx:V}){return ft(V)&&$t(L)}c(Wr,"ha"),u(Wr,"isCellWithinViewportBounds");function kt(L){return fi(L)&&mh({columns:Je,rows:s,selectedPosition:L})}c(kt,"Ro"),u(kt,"isCellEditable");function gi(L,V){if(!Dt(L))return;zn();let se=s[L.rowIdx],ue=Xa(J,L);V&&kt(L)?Ar({...L,mode:"EDIT",row:se,originalRow:se}):ue?hl(Td(Ut.current)):(mn.current=!0,Ar({...L,mode:"SELECT"})),K&&!ue&&K({rowIdx:L.rowIdx,row:se,column:Je[L.idx]})}c(gi,"hr"),u(gi,"selectCell");function En(L,V,se){let{idx:ue,rowIdx:Te}=J,Me=go&&ue===-1;switch(L){case"ArrowUp":return{idx:ue,rowIdx:Te-1};case"ArrowDown":return{idx:ue,rowIdx:Te+1};case uo:return{idx:ue-1,rowIdx:Te};case vn:return{idx:ue+1,rowIdx:Te};case"Tab":return{idx:ue+(se?-1:1),rowIdx:Te};case"Home":return Me?{idx:ue,rowIdx:st}:{idx:0,rowIdx:V?st:Te};case"End":return Me?{idx:ue,rowIdx:lr}:{idx:it,rowIdx:V?lr:Te};case"PageUp":{if(J.rowIdx===st)return J;let Oe=fo(Te)+wn(Te)-di;return{idx:ue,rowIdx:Oe>0?Sl(Oe):0}}case"PageDown":{if(J.rowIdx>=s.length)return J;let Oe=fo(Te)+di;return{idx:ue,rowIdx:Oe<ho?Sl(Oe):s.length-1}}default:return J}}c(En,"sh"),u(En,"getNextPosition");function wr(L){let{key:V,shiftKey:se}=L,ue="NONE";if(V==="Tab"){if(vh({shiftKey:se,maxColIdx:it,minRowIdx:st,maxRowIdx:lr,selectedPosition:J})){zn();return}ue="CHANGE_ROW"}L.preventDefault();let Te=qa(L),Me=En(V,Te,se);if(Xa(J,Me))return;let Oe=bh({moveUp:V==="ArrowUp",moveNext:V===vn||V==="Tab"&&!se,columns:Je,colSpanColumns:Mi,rows:s,topSummaryRows:h,bottomSummaryRows:p,minRowIdx:st,mainHeaderRowIdx:or,maxRowIdx:lr,lastFrozenColumnIndex:at,cellNavigationMode:ue,currentPosition:J,nextPosition:Me,isCellWithinBounds:Dt});gi(Oe)}c(wr,"ma"),u(wr,"navigate");function wo(L){if(Dr===void 0)return;let{rowIdx:V}=J;return(V<Dr?V<L&&L<=Dr:V>L&&L>=Dr)?J.idx:void 0}c(wo,"ah"),u(wo,"getDraggedOverCellIdx");function Hi(){let L=Td(Ut.current);L!==null&&(hl(L),(L.querySelector('[tabindex="0"]')??L).focus({preventScroll:!0}))}c(Hi,"ga"),u(Hi,"focusCellOrCellContent");function mi(){if(Q==null||J.mode==="EDIT"||!Wr(J))return;let{idx:L,rowIdx:V}=J,se=Je[L];if(se.renderEditCell==null||se.editable===!1)return;let ue=Fr(se);return(0,fe.jsx)(Ah,{gridRowStart:br+V+1,rows:s,column:se,columnWidth:ue,maxColIdx:it,isLastRow:V===lr,selectedPosition:J,isCellEditable:kt,latestDraggedOverRowIdx:Bi,onRowsChange:m,onClick:Hi,onFill:Q,setDragging:no,setDraggedOverRowIdx:hi})}c(mi,"ch"),u(mi,"renderDragHandle");function Rn(L){if(J.rowIdx!==L||J.mode==="SELECT")return;let{idx:V,row:se}=J,ue=Je[V],Te=Nt(ue,at,{type:"ROW",row:se}),Me=u(Be=>{mn.current=Be,Ar(({idx:ut,rowIdx:wt})=>({idx:ut,rowIdx:wt,mode:"SELECT"}))},"closeEditor"),Oe=u((Be,ut,wt)=>{ut?(0,Ka.flushSync)(()=>{pi(ue,J.rowIdx,Be),Me(wt)}):Ar(Tt=>({...Tt,row:Be}))},"onRowChange");return s[J.rowIdx]!==J.originalRow&&Me(!1),(0,fe.jsx)(Oh,{column:ue,colSpan:Te,row:se,rowIdx:L,onRowChange:Oe,closeEditor:Me,onKeyDown:G,navigate:wr},ue.key)}c(Rn,"dh"),u(Rn,"getCellEditor");function Nr(L){let V=J.idx===-1?void 0:Je[J.idx];return V!==void 0&&J.rowIdx===L&&!sr.includes(V)?J.idx>fn?[...sr,V]:[...sr.slice(0,at+1),V,...sr.slice(at+1)]:sr}c(Nr,"mr"),u(Nr,"getRowViewportColumns");function Hr(){let L=[],{idx:V,rowIdx:se}=J,ue=xn&&se<Ai?Ai-1:Ai,Te=xn&&se>Ae?Ae+1:Ae;for(let Me=ue;Me<=Te;Me++){let Oe=Me===Ai-1||Me===Ae+1,Be=Oe?se:Me,ut=sr,wt=V===-1?void 0:Je[V];wt!==void 0&&(Oe?ut=[wt]:ut=Nr(Be));let Tt=s[Be],ji=br+Be+1,Ur=Be,Ui=!1;typeof f=="function"&&(Ur=f(Tt),Ui=P?.has(Ur)??!1),L.push(Ce(Ur,{"aria-rowindex":br+Be+1,"aria-selected":Li?Ui:void 0,rowIdx:Be,row:Tt,viewportColumns:ut,isRowSelectionDisabled:z?.(Tt)??!1,isRowSelected:Ui,onCellClick:Oi,onCellDoubleClick:Pl,onCellContextMenu:zl,rowClass:Pe,gridRowStart:ji,copiedCellIdx:ir!==null&&ir.row===Tt?Je.findIndex(gt=>gt.key===ir.columnKey):void 0,selectedCellIdx:se===Be?V:void 0,draggedOverCellIdx:wo(Be),setDraggedOverRowIdx:dn?hi:void 0,lastFrozenColumnIndex:at,onRowChange:Tn,selectCell:vr,selectedCellEditor:Rn(Be)}))}return L}c(Hr,"fh"),u(Hr,"getViewportRows"),(J.idx>it||J.rowIdx>lr)&&(Ar({idx:-1,rowIdx:st-1,mode:"SELECT"}),hi(void 0));let ur=`repeat(${nr}, ${q}px)`;Lr>0&&(ur+=` repeat(${Lr}, ${be}px)`),s.length>0&&(ur+=po),yr>0&&(ur+=` repeat(${yr}, ${be}px)`);let jr=J.idx===-1&&J.rowIdx!==st-1;return(0,fe.jsxs)("div",{role:ke,"aria-label":de,"aria-labelledby":ne,"aria-describedby":ee,"aria-multiselectable":Li?!0:void 0,"aria-colcount":Je.length,"aria-rowcount":co,className:Ii(Bg,Fe,dn&&Lg),style:{...Se,scrollPaddingInlineStart:J.idx>at||Br?.idx!==void 0?`${ao}px`:void 0,scrollPaddingBlock:ft(J.rowIdx)||Br?.rowIdx!==void 0?`${bn+Lr*be}px ${yr*be}px`:void 0,gridTemplateColumns:_n,gridTemplateRows:ur,"--rdg-header-row-height":`${q}px`,"--rdg-scroll-height":`${Tl}px`,...si},dir:jt,ref:Ut,onScroll:Pn,onKeyDown:bo,"data-testid":H,children:[(0,fe.jsxs)(Yf,{value:Cl,children:[(0,fe.jsx)(Qf,{value:kn,children:(0,fe.jsxs)(qf,{value:ls,children:[Array.from({length:Di},(L,V)=>(0,fe.jsx)(Sg,{rowIdx:V+1,level:-Di+V,columns:Nr(st+V),selectedCellIdx:J.rowIdx===st+V?J.idx:void 0,selectCell:yo},V)),(0,fe.jsx)(Cg,{rowIdx:nr,columns:Nr(or),onColumnResize:Cn,onColumnsReorder:Sn,sortColumns:M,onSortColumnsChange:ci,lastFrozenColumnIndex:at,selectedCellIdx:J.rowIdx===or?J.idx:void 0,selectCell:yo,shouldFocusGrid:!go,direction:jt})]})}),s.length===0&&gr?gr:(0,fe.jsxs)(fe.Fragment,{children:[h?.map((L,V)=>{let se=nr+1+V,ue=or+1+V,Te=J.rowIdx===ue,Me=bn+be*V;return(0,fe.jsx)(sh,{"aria-rowindex":se,rowIdx:ue,gridRowStart:se,row:L,top:Me,bottom:void 0,viewportColumns:Nr(ue),lastFrozenColumnIndex:at,selectedCellIdx:Te?J.idx:void 0,isTop:!0,selectCell:vr},V)}),(0,fe.jsx)(Kf,{value:mo,children:Hr()}),p?.map((L,V)=>{let se=br+s.length+V+1,ue=s.length+V,Te=J.rowIdx===ue,Me=di>ho?hn-be*(p.length-V):void 0,Oe=Me===void 0?be*(p.length-1-V):void 0;return(0,fe.jsx)(sh,{"aria-rowindex":co-yr+V+1,rowIdx:ue,gridRowStart:se,row:L,top:Me,bottom:Oe,viewportColumns:Nr(ue),lastFrozenColumnIndex:at,selectedCellIdx:Te?J.idx:void 0,isTop:!1,selectCell:vr},V)})]})]}),mi(),gh(sr),yn&&(0,fe.jsx)("div",{ref:ui,tabIndex:jr?0:-1,className:Ii(Ag,jr&&[bg,at!==-1&&vg],!ft(J.rowIdx)&&Og),style:{gridRowStart:J.rowIdx+br+1}}),Br!==null&&(0,fe.jsx)(qh,{scrollToPosition:Br,setScrollToCellPosition:oo,gridElement:Ut.current})]})}c(rp,"Fy");u(rp,"DataGrid");function Td(i){return i.querySelector(':scope > [role="row"] > [tabindex="0"]')}c(Td,"up");u(Td,"getCellToScroll");function Xa(i,o){return i.idx===o.idx&&i.rowIdx===o.rowIdx}c(Xa,"Us");u(Xa,"isSamePosition");var Vg=(0,oe.forwardRef)(rp),$g="g1yxluv37-0-0-beta-47",Uy=`rdg-group-row ${$g}`,Gg="t7vyx3i7-0-0-beta-47",Vy=`rdg-text-editor ${Gg}`,uh=on(to(),1);function ip(i){let o=uh.default.useMemo(()=>i.columns(),[i,i.dataChecksum()]),l=uh.default.useMemo(()=>i.data(),[i,i.dataChecksum()]);return[o,l]}c(ip,"Rp");u(ip,"useData");(function(){if(!document.getElementById("acd94ec7")){var i=document.createElement("style");i.id="acd94ec7",i.textContent=`@layer rdg {
1
+ var Sr=Object.defineProperty;var d=(t,e)=>Sr(t,"name",{value:e,configurable:!0}),Xi=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,i)=>(typeof require<"u"?require:e)[i]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var Tr=(t,e)=>{for(var i in e)Sr(t,i,{get:e[i],enumerable:!0})};var fh="@hpcc-js/composite",yh="3.1.1",mh="3.2.1";import{HTMLWidget as lh}from"@hpcc-js/common";import{HTMLWidget as Ga}from"@hpcc-js/common";import{FAChar as Na,HTMLWidget as Ua}from"@hpcc-js/common";import{d3Event as Ao,HTMLWidget as rn,Platform as Va,select as Bt,selectAll as $a,Utility as ja}from"@hpcc-js/common";import{drag as Ya}from"@hpcc-js/common";import{select as Xa,selectAll as Ka}from"@hpcc-js/common";import{HTMLWidget as qa}from"@hpcc-js/common";import{select as Si}from"@hpcc-js/common";import{HTMLWidget as Ja,Platform as ln}from"@hpcc-js/common";import{HTMLWidget as Za}from"@hpcc-js/common";import{select as Qa}from"@hpcc-js/common";import"@hpcc-js/common";import{Button as nn,IconBar as td,ProgressBar as ed,Spacer as sn,SVGWidget as an,Text as id,TitleBar as od,ToggleButton as Ro,Utility as dn}from"@hpcc-js/common";import{HTMLWidget as gs}from"@hpcc-js/common";import{format as Ia,timeFormat as Pa,timeParse as za}from"@hpcc-js/common";var is=Object.defineProperty,h=d((t,e)=>is(t,"name",{value:e,configurable:!0}),"l");var yi,G,Vr,os,Xt,kr,$r,qi,so,Ji,Zi,jr,Le={},Yr=[],rs=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,mi=Array.isArray;function Mt(t,e){for(var i in e)t[i]=e[i];return t}d(Mt,"ge");h(Mt,"d");function ao(t){t&&t.parentNode&&t.parentNode.removeChild(t)}d(ao,"Zn");h(ao,"w");function It(t,e,i){var o,r,l,n={};for(l in e)l=="key"?o=e[l]:l=="ref"?r=e[l]:n[l]=e[l];if(arguments.length>2&&(n.children=arguments.length>3?yi.call(arguments,2):i),typeof t=="function"&&t.defaultProps!=null)for(l in t.defaultProps)n[l]===void 0&&(n[l]=t.defaultProps[l]);return He(t,n,o,r,null)}d(It,"ee");h(It,"_");function He(t,e,i,o,r){var l={type:t,props:e,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:r??++Vr,__i:-1,__u:0};return r==null&&G.vnode!=null&&G.vnode(l),l}d(He,"bt");h(He,"g");function zt(t){return t.children}d(zt,"Z");h(zt,"b");function Pt(t,e){this.props=t,this.context=e}d(Pt,"se");h(Pt,"k");function Kt(t,e){if(e==null)return t.__?Kt(t.__,t.__i+1):null;for(var i;e<t.__k.length;e++)if((i=t.__k[e])!=null&&i.__e!=null)return i.__e;return typeof t.type=="function"?Kt(t):null}d(Kt,"Me");h(Kt,"x");function ho(t){var e,i;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((i=t.__k[e])!=null&&i.__e!=null){t.__e=t.__c.base=i.__e;break}return ho(t)}}d(ho,"Jn");h(ho,"C");function ci(t){(!t.__d&&(t.__d=!0)&&Xt.push(t)&&!Ge.__r++||kr!==G.debounceRendering)&&((kr=G.debounceRendering)||$r)(Ge)}d(ci,"Zt");h(ci,"S");function Ge(){var t,e,i,o,r,l,n,s;for(Xt.sort(qi);t=Xt.shift();)t.__d&&(e=Xt.length,o=void 0,l=(r=(i=t).__v).__e,n=[],s=[],i.__P&&((o=Mt({},r)).__v=r.__v+1,G.vnode&&G.vnode(o),bi(i.__P,o,r,i.__n,i.__P.namespaceURI,32&r.__u?[l]:null,n,l??Kt(r),!!(32&r.__u),s),o.__v=r.__v,o.__.__k[o.__i]=o,po(n,o,s),o.__e!=l&&ho(o)),Xt.length>e&&Xt.sort(qi));Ge.__r=0}d(Ge,"Ct");h(Ge,"M");function co(t,e,i,o,r,l,n,s,a,c,g){var u,f,p,y,C,x=o&&o.__k||Yr,b=e.length;for(i.__d=a,Xr(i,e,x),a=i.__d,u=0;u<b;u++)(p=i.__k[u])!=null&&(f=p.__i===-1?Le:x[p.__i]||Le,p.__i=u,bi(t,p,f,r,l,n,s,a,c,g),y=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&wi(f.ref,null,p),g.push(p.ref,p.__c||y,p)),C==null&&y!=null&&(C=y),65536&p.__u||f.__k===p.__k?a=uo(p,a,t):typeof p.type=="function"&&p.__d!==void 0?a=p.__d:y&&(a=y.nextSibling),p.__d=void 0,p.__u&=-196609);i.__d=a,i.__e=C}d(co,"Qn");h(co,"P");function Xr(t,e,i){var o,r,l,n,s,a=e.length,c=i.length,g=c,u=0;for(t.__k=[],o=0;o<a;o++)(r=e[o])!=null&&typeof r!="boolean"&&typeof r!="function"?(n=o+u,(r=t.__k[o]=typeof r=="string"||typeof r=="number"||typeof r=="bigint"||r.constructor==String?He(null,r,null,null,null):mi(r)?He(zt,{children:r},null,null,null):r.constructor===void 0&&r.__b>0?He(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r).__=t,r.__b=t.__b+1,l=null,(s=r.__i=Kr(r,i,n,g))!==-1&&(g--,(l=i[s])&&(l.__u|=131072)),l==null||l.__v===null?(s==-1&&u--,typeof r.type!="function"&&(r.__u|=65536)):s!==n&&(s==n-1?u--:s==n+1?u++:(s>n?u--:u++,r.__u|=65536))):r=t.__k[o]=null;if(g)for(o=0;o<c;o++)(l=i[o])!=null&&!(131072&l.__u)&&(l.__e==t.__d&&(t.__d=Kt(l)),go(l,l))}d(Xr,"Gr");h(Xr,"$");function uo(t,e,i){var o,r;if(typeof t.type=="function"){for(o=t.__k,r=0;o&&r<o.length;r++)o[r]&&(o[r].__=t,e=uo(o[r],e,i));return e}t.__e!=e&&(e&&t.type&&!i.contains(e)&&(e=Kt(t)),i.insertBefore(t.__e,e||null),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType===8);return e}d(uo,"eo");h(uo,"I");function Ne(t,e){return e=e||[],t==null||typeof t=="boolean"||(mi(t)?t.some(function(i){Ne(i,e)}):e.push(t)),e}d(Ne,"Qe");h(Ne,"H");function Kr(t,e,i,o){var r=t.key,l=t.type,n=i-1,s=i+1,a=e[i];if(a===null||a&&r==a.key&&l===a.type&&!(131072&a.__u))return i;if(o>(a!=null&&!(131072&a.__u)?1:0))for(;n>=0||s<e.length;){if(n>=0){if((a=e[n])&&!(131072&a.__u)&&r==a.key&&l===a.type)return n;n--}if(s<e.length){if((a=e[s])&&!(131072&a.__u)&&r==a.key&&l===a.type)return s;s++}}return-1}d(Kr,"Vr");h(Kr,"L");function Qi(t,e,i){e[0]==="-"?t.setProperty(e,i??""):t[e]=i==null?"":typeof i!="number"||rs.test(e)?i:i+"px"}d(Qi,"jn");h(Qi,"T");function Me(t,e,i,o,r){var l;t:if(e==="style")if(typeof i=="string")t.style.cssText=i;else{if(typeof o=="string"&&(t.style.cssText=o=""),o)for(e in o)i&&e in i||Qi(t.style,e,"");if(i)for(e in i)o&&i[e]===o[e]||Qi(t.style,e,i[e])}else if(e[0]==="o"&&e[1]==="n")l=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in t||e==="onFocusOut"||e==="onFocusIn"?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+l]=i,i?o?i.u=o.u:(i.u=so,t.addEventListener(e,l?Zi:Ji,l)):t.removeEventListener(e,l?Zi:Ji,l);else{if(r=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in t)try{t[e]=i??"";break t}catch{}typeof i=="function"||(i==null||i===!1&&e[4]!=="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&i==1?"":i))}}d(Me,"yt");h(Me,"A");function to(t){return function(e){if(this.l){var i=this.l[e.type+t];if(e.t==null)e.t=so++;else if(e.t<i.u)return;return i(G.event?G.event(e):e)}}}d(to,"Kn");h(to,"F");function bi(t,e,i,o,r,l,n,s,a,c){var g,u,f,p,y,C,x,b,S,k,I,z,P,m,_,B,R=e.type;if(e.constructor!==void 0)return null;128&i.__u&&(a=!!(32&i.__u),l=[s=e.__e=i.__e]),(g=G.__b)&&g(e);t:if(typeof R=="function")try{if(b=e.props,S="prototype"in R&&R.prototype.render,k=(g=R.contextType)&&o[g.__c],I=g?k?k.props.value:g.__:o,i.__c?x=(u=e.__c=i.__c).__=u.__E:(S?e.__c=u=new R(b,I):(e.__c=u=new Pt(b,I),u.constructor=R,u.render=Jr),k&&k.sub(u),u.props=b,u.state||(u.state={}),u.context=I,u.__n=o,f=u.__d=!0,u.__h=[],u._sb=[]),S&&u.__s==null&&(u.__s=u.state),S&&R.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Mt({},u.__s)),Mt(u.__s,R.getDerivedStateFromProps(b,u.__s))),p=u.props,y=u.state,u.__v=e,f)S&&R.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),S&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(S&&R.getDerivedStateFromProps==null&&b!==p&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(b,I),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(b,u.__s,I)===!1||e.__v===i.__v)){for(e.__v!==i.__v&&(u.props=b,u.state=u.__s,u.__d=!1),e.__e=i.__e,e.__k=i.__k,e.__k.some(function(F){F&&(F.__=e)}),z=0;z<u._sb.length;z++)u.__h.push(u._sb[z]);u._sb=[],u.__h.length&&n.push(u);break t}u.componentWillUpdate!=null&&u.componentWillUpdate(b,u.__s,I),S&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(p,y,C)})}if(u.context=I,u.props=b,u.__P=t,u.__e=!1,P=G.__r,m=0,S){for(u.state=u.__s,u.__d=!1,P&&P(e),g=u.render(u.props,u.state,u.context),_=0;_<u._sb.length;_++)u.__h.push(u._sb[_]);u._sb=[]}else do u.__d=!1,P&&P(e),g=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++m<25);u.state=u.__s,u.getChildContext!=null&&(o=Mt(Mt({},o),u.getChildContext())),S&&!f&&u.getSnapshotBeforeUpdate!=null&&(C=u.getSnapshotBeforeUpdate(p,y)),co(t,mi(B=g!=null&&g.type===zt&&g.key==null?g.props.children:g)?B:[B],e,i,o,r,l,n,s,a,c),u.base=e.__e,e.__u&=-161,u.__h.length&&n.push(u),x&&(u.__E=u.__=null)}catch(F){if(e.__v=null,a||l!=null){for(e.__u|=a?160:128;s&&s.nodeType===8&&s.nextSibling;)s=s.nextSibling;l[l.indexOf(s)]=null,e.__e=s}else e.__e=i.__e,e.__k=i.__k;G.__e(F,e,i)}else l==null&&e.__v===i.__v?(e.__k=i.__k,e.__e=i.__e):e.__e=qr(i.__e,e,i,o,r,l,n,a,c);(g=G.diffed)&&g(e)}d(bi,"Qt");h(bi,"O");function po(t,e,i){e.__d=void 0;for(var o=0;o<i.length;o++)wi(i[o],i[++o],i[++o]);G.__c&&G.__c(e,t),t.some(function(r){try{t=r.__h,r.__h=[],t.some(function(l){l.call(r)})}catch(l){G.__e(l,r.__v)}})}d(po,"to");h(po,"j");function qr(t,e,i,o,r,l,n,s,a){var c,g,u,f,p,y,C,x=i.props,b=e.props,S=e.type;if(S==="svg"?r="http://www.w3.org/2000/svg":S==="math"?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),l!=null){for(c=0;c<l.length;c++)if((p=l[c])&&"setAttribute"in p==!!S&&(S?p.localName===S:p.nodeType===3)){t=p,l[c]=null;break}}if(t==null){if(S===null)return document.createTextNode(b);t=document.createElementNS(r,S,b.is&&b),s&&(G.__m&&G.__m(e,l),s=!1),l=null}if(S===null)x===b||s&&t.data===b||(t.data=b);else{if(l=l&&yi.call(t.childNodes),x=i.props||Le,!s&&l!=null)for(x={},c=0;c<t.attributes.length;c++)x[(p=t.attributes[c]).name]=p.value;for(c in x)if(p=x[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=p;else if(!(c in b)){if(c=="value"&&"defaultValue"in b||c=="checked"&&"defaultChecked"in b)continue;Me(t,c,null,p,r)}}for(c in b)p=b[c],c=="children"?f=p:c=="dangerouslySetInnerHTML"?g=p:c=="value"?y=p:c=="checked"?C=p:s&&typeof p!="function"||x[c]===p||Me(t,c,p,x[c],r);if(g)s||u&&(g.__html===u.__html||g.__html===t.innerHTML)||(t.innerHTML=g.__html),e.__k=[];else if(u&&(t.innerHTML=""),co(t,mi(f)?f:[f],e,i,o,S==="foreignObject"?"http://www.w3.org/1999/xhtml":r,l,n,l?l[0]:i.__k&&Kt(i,0),s,a),l!=null)for(c=l.length;c--;)ao(l[c]);s||(c="value",S==="progress"&&y==null?t.removeAttribute("value"):y!==void 0&&(y!==t[c]||S==="progress"&&!y||S==="option"&&y!==x[c])&&Me(t,c,y,x[c],r),c="checked",C!==void 0&&C!==t[c]&&Me(t,c,C,x[c],r))}return t}d(qr,"jr");h(qr,"z");function wi(t,e,i){try{if(typeof t=="function"){var o=typeof t.__u=="function";o&&t.__u(),o&&e==null||(t.__u=t(e))}else t.current=e}catch(r){G.__e(r,i)}}d(wi,"en");h(wi,"N");function go(t,e,i){var o,r;if(G.unmount&&G.unmount(t),(o=t.ref)&&(o.current&&o.current!==t.__e||wi(o,null,e)),(o=t.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(l){G.__e(l,e)}o.base=o.__P=null}if(o=t.__k)for(r=0;r<o.length;r++)o[r]&&go(o[r],e,i||typeof t.type!="function");i||ao(t.__e),t.__c=t.__=t.__e=t.__d=void 0}d(go,"no");h(go,"V");function Jr(t,e,i){return this.constructor(t,i)}d(Jr,"Kr");h(Jr,"q");function _o(t,e,i){var o,r,l,n;G.__&&G.__(t,e),r=(o=typeof i=="function")?null:i&&i.__k||e.__k,l=[],n=[],bi(e,t=(!o&&i||e).__k=It(zt,null,[t]),r||Le,Le,e.namespaceURI,!o&&i?[i]:r?null:e.firstChild?yi.call(e.childNodes):null,l,!o&&i?i:r?r.__e:e.firstChild,o,n),po(l,t,n)}d(_o,"tn");h(_o,"B");function xe(t,e){var i={__c:e="__cC"+jr++,__:t,Consumer:h(function(o,r){return o.children(r)},"Consumer"),Provider:h(function(o){var r,l;return this.getChildContext||(r=new Set,(l={})[e]=this,this.getChildContext=function(){return l},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&r.forEach(function(s){s.__e=!0,ci(s)})},this.sub=function(n){r.add(n);var s=n.componentWillUnmount;n.componentWillUnmount=function(){r&&r.delete(n),s&&s.call(n)}}),o.children},"Provider")};return i.Provider.__=i.Consumer.contextType=i}d(xe,"me");h(xe,"G");yi=Yr.slice,G={__e:h(function(t,e,i,o){for(var r,l,n;e=e.__;)if((r=e.__c)&&!r.__)try{if((l=r.constructor)&&l.getDerivedStateFromError!=null&&(r.setState(l.getDerivedStateFromError(t)),n=r.__d),r.componentDidCatch!=null&&(r.componentDidCatch(t,o||{}),n=r.__d),n)return r.__E=r}catch(s){t=s}throw t},"__e")},Vr=0,os=h(function(t){return t!=null&&t.constructor==null},"t"),Pt.prototype.setState=function(t,e){var i;i=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Mt({},this.state),typeof t=="function"&&(t=t(Mt({},i),this.props)),t&&Mt(i,t),t!=null&&this.__v&&(e&&this._sb.push(e),ci(this))},Pt.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),ci(this))},Pt.prototype.render=zt,Xt=[],$r=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,qi=h(function(t,e){return t.__v.__b-e.__v.__b},"f"),Ge.__r=0,so=0,Ji=to(!1),Zi=to(!0),jr=0;var Lt,Y,Ki,Ir,ye=0,Zr=[],tt=G,Pr=tt.__b,zr=tt.__r,Br=tt.diffed,Ar=tt.__c,Rr=tt.unmount,Dr=tt.__;function qt(t,e){tt.__h&&tt.__h(Y,t,ye||e),ye=0;var i=Y.__H||(Y.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({}),i.__[t]}d(qt,"Oe");h(qt,"d");function et(t){return ye=1,Qr(yo,t)}d(et,"K");h(et,"h");function Qr(t,e,i){var o=qt(Lt++,2);if(o.t=t,!o.__c&&(o.__=[i?i(e):yo(void 0,e),function(s){var a=o.__N?o.__N[0]:o.__[0],c=o.t(a,s);a!==c&&(o.__N=[c,o.__[1]],o.__c.setState({}))}],o.__c=Y,!Y.u)){var r=h(function(s,a,c){if(!o.__c.__H)return!0;var g=o.__c.__H.__.filter(function(f){return!!f.__c});if(g.every(function(f){return!f.__N}))return!l||l.call(this,s,a,c);var u=!1;return g.forEach(function(f){if(f.__N){var p=f.__[0];f.__=f.__N,f.__N=void 0,p!==f.__[0]&&(u=!0)}}),!(!u&&o.__c.props===s)&&(!l||l.call(this,s,a,c))},"f");Y.u=!0;var l=Y.shouldComponentUpdate,n=Y.componentWillUpdate;Y.componentWillUpdate=function(s,a,c){if(this.__e){var g=l;l=void 0,r(s,a,c),l=g}n&&n.call(this,s,a,c)},Y.shouldComponentUpdate=r}return o.__N||o.__}d(Qr,"_o");h(Qr,"p");function me(t,e){var i=qt(Lt++,3);!tt.__s&&xi(i.__H,e)&&(i.__=t,i.i=e,Y.__H.__h.push(i))}d(me,"be");h(me,"y");function fo(t,e){var i=qt(Lt++,4);!tt.__s&&xi(i.__H,e)&&(i.__=t,i.i=e,Y.__h.push(i))}d(fo,"Rt");h(fo,"_");function vt(t){return ye=5,ut(function(){return{current:t}},[])}d(vt,"re");h(vt,"A");function tl(t,e,i){ye=6,fo(function(){return typeof t=="function"?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0},i==null?i:i.concat(t))}d(tl,"rn");h(tl,"F");function ut(t,e){var i=qt(Lt++,7);return xi(i.__H,e)&&(i.__=t(),i.__H=e,i.__h=t),i.__}d(ut,"Y");h(ut,"T");function Ot(t,e){return ye=8,ut(function(){return t},e)}d(Ot,"de");h(Ot,"q");function be(t){var e=Y.context[t.__c],i=qt(Lt++,9);return i.c=t,e?(i.__==null&&(i.__=!0,e.sub(Y)),e.props.value):t.__}d(be,"xe");h(be,"x");function el(){var t=qt(Lt++,11);if(!t.__){for(var e=Y.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var i=e.__m||(e.__m=[0,0]);t.__="P"+i[0]+"-"+i[1]++}return t.__}d(el,"ln");h(el,"g");function il(){for(var t;t=Zr.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Fe),t.__H.__h.forEach(ui),t.__H.__h=[]}catch(e){t.__H.__h=[],tt.__e(e,t.__v)}}d(il,"Br");h(il,"j");tt.__b=function(t){Y=null,Pr&&Pr(t)},tt.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Dr&&Dr(t,e)},tt.__r=function(t){zr&&zr(t),Lt=0;var e=(Y=t.__c).__H;e&&(Ki===Y?(e.__h=[],Y.__h=[],e.__.forEach(function(i){i.__N&&(i.__=i.__N),i.i=i.__N=void 0})):(e.__h.forEach(Fe),e.__h.forEach(ui),e.__h=[],Lt=0)),Ki=Y},tt.diffed=function(t){Br&&Br(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Zr.push(e)!==1&&Ir===tt.requestAnimationFrame||((Ir=tt.requestAnimationFrame)||ol)(il)),e.__H.__.forEach(function(i){i.i&&(i.__H=i.i),i.i=void 0})),Ki=Y=null},tt.__c=function(t,e){e.some(function(i){try{i.__h.forEach(Fe),i.__h=i.__h.filter(function(o){return!o.__||ui(o)})}catch(o){e.some(function(r){r.__h&&(r.__h=[])}),e=[],tt.__e(o,i.__v)}}),Ar&&Ar(t,e)},tt.unmount=function(t){Rr&&Rr(t);var e,i=t.__c;i&&i.__H&&(i.__H.__.forEach(function(o){try{Fe(o)}catch(r){e=r}}),i.__H=void 0,e&&tt.__e(e,i.__v))};var Wr=typeof requestAnimationFrame=="function";function ol(t){var e,i=h(function(){clearTimeout(o),Wr&&cancelAnimationFrame(e),setTimeout(t)},"r"),o=setTimeout(i,100);Wr&&(e=requestAnimationFrame(i))}d(ol,"qr");h(ol,"w");function Fe(t){var e=Y,i=t.__c;typeof i=="function"&&(t.__c=void 0,i()),Y=e}d(Fe,"xt");h(Fe,"z");function ui(t){var e=Y;t.__c=t.__(),Y=e}d(ui,"on");h(ui,"B");function xi(t,e){return!t||t.length!==e.length||e.some(function(i,o){return i!==t[o]})}d(xi,"sn");h(xi,"C");function yo(t,e){return typeof e=="function"?e(t):e}d(yo,"po");h(yo,"D");function pi(t,e){for(var i in t)if(i!=="__source"&&!(i in e))return!0;for(var o in e)if(o!=="__source"&&t[o]!==e[o])return!0;return!1}d(pi,"cn");h(pi,"g");function eo(t,e){this.props=t,this.context=e}d(eo,"ho");h(eo,"E");function Jt(t,e){function i(r){var l=this.props.ref,n=l==r.ref;return!n&&l&&(l.call?l(null):l.current=null),e?!e(this.props,r)||!n:pi(this.props,r)}d(i,"n"),h(i,"r");function o(r){return this.shouldComponentUpdate=i,It(t,r)}return d(o,"o"),h(o,"u"),o.displayName="Memo("+(t.displayName||t.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}d(Jt,"Re");h(Jt,"C");(eo.prototype=new Pt).isPureReactComponent=!0,eo.prototype.shouldComponentUpdate=function(t,e){return pi(this.props,t)||pi(this.state,e)};var Mr=G.__b;G.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Mr&&Mr(t)};var ls=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function mo(t){function e(i){if(!("ref"in i))return t(i,null);var o=i.ref;delete i.ref;var r=t(i,o);return i.ref=o,r}return d(e,"t"),h(e,"t"),e.$$typeof=ls,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}d(mo,"dn");h(mo,"w");var ns=G.__e;G.__e=function(t,e,i,o){if(t.then){for(var r,l=e;l=l.__;)if((r=l.__c)&&r.__c)return e.__e==null&&(e.__e=i.__e,e.__k=i.__k),r.__c(t,e)}ns(t,e,i,o)};var Er=G.unmount;function bo(t,e,i){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(o){typeof o.__c=="function"&&o.__c()}),t.__c.__H=null),(t=function(o,r){for(var l in r)o[l]=r[l];return o}({},t)).__c!=null&&(t.__c.__P===i&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(o){return bo(o,e,i)})),t}d(bo,"xo");h(bo,"T");function wo(t,e,i){return t&&i&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(o){return wo(o,e,i)}),t.__c&&t.__c.__P===e&&(t.__e&&i.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=i)),t}d(wo,"Ro");h(wo,"A");function ai(){this.__u=0,this.t=null,this.__b=null}d(ai,"an");h(ai,"D");function xo(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}d(xo,"ko");h(xo,"L");function Ee(){this.u=null,this.o=null}d(Ee,"kt");h(Ee,"F");G.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),Er&&Er(t)},(ai.prototype=new Pt).__c=function(t,e){var i=e.__c,o=this;o.t==null&&(o.t=[]),o.t.push(i);var r=xo(o.__v),l=!1,n=h(function(){l||(l=!0,i.__R=null,r?r(s):s())},"i");i.__R=n;var s=h(function(){if(!--o.__u){if(o.state.__a){var a=o.state.__a;o.__v.__k[0]=wo(a,a.__c.__P,a.__c.__O)}var c;for(o.setState({__a:o.__b=null});c=o.t.pop();)c.forceUpdate()}},"c");o.__u++||32&e.__u||o.setState({__a:o.__b=o.__v.__k[0]}),t.then(n,n)},ai.prototype.componentWillUnmount=function(){this.t=[]},ai.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var i=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=bo(this.__b,i,o.__O=o.__P)}this.__b=null}var r=e.__a&&It(zt,null,t.fallback);return r&&(r.__u&=-33),[It(zt,null,e.__a?null:t.children),r]};var Hr=h(function(t,e,i){if(++i[1]===i[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(i=t.u;i;){for(;i.length>3;)i.pop()();if(i[1]<i[0])break;t.u=i=i[2]}},"U");(Ee.prototype=new Pt).__a=function(t){var e=this,i=xo(e.__v),o=e.o.get(t);return o[0]++,function(r){var l=h(function(){e.props.revealOrder?(o.push(r),Hr(e,t,o)):r()},"o");i?i(l):l()}},Ee.prototype.render=function(t){this.u=null,this.o=new Map;var e=Ne(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var i=e.length;i--;)this.o.set(e[i],this.u=[1,0,this.u]);return t.children},Ee.prototype.componentDidUpdate=Ee.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,i){Hr(t,i,e)})};var ss=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,as=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,ds=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,hs=/[A-Z0-9]/g,cs=typeof document<"u",us=h(function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)},"Y");function rl(t,e,i){return e.__k==null&&(e.textContent=""),_o(t,e),typeof i=="function"&&i(),t?t.__c:null}d(rl,"So");h(rl,"$");Pt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(Pt.prototype,t,{configurable:!0,get:h(function(){return this["UNSAFE_"+t]},"get"),set:h(function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})},"set")})});var Fr=G.event;function ll(){}d(ll,"rl");h(ll,"J");function nl(){return this.cancelBubble}d(nl,"ll");h(nl,"K");function sl(){return this.defaultPrevented}d(sl,"il");h(sl,"Q");G.event=function(t){return Fr&&(t=Fr(t)),t.persist=ll,t.isPropagationStopped=nl,t.isDefaultPrevented=sl,t.nativeEvent=t};var al,ps={enumerable:!1,configurable:!0,get:h(function(){return this.class},"get")},Or=G.vnode;G.vnode=function(t){typeof t.type=="string"&&function(e){var i=e.props,o=e.type,r={},l=o.indexOf("-")===-1;for(var n in i){var s=i[n];if(!(n==="value"&&"defaultValue"in i&&s==null||cs&&n==="children"&&o==="noscript"||n==="class"||n==="className")){var a=n.toLowerCase();n==="defaultValue"&&"value"in i&&i.value==null?n="value":n==="download"&&s===!0?s="":a==="translate"&&s==="no"?s=!1:a[0]==="o"&&a[1]==="n"?a==="ondoubleclick"?n="ondblclick":a!=="onchange"||o!=="input"&&o!=="textarea"||us(i.type)?a==="onfocus"?n="onfocusin":a==="onblur"?n="onfocusout":ds.test(n)&&(n=a):a=n="oninput":l&&as.test(n)?n=n.replace(hs,"-$&").toLowerCase():s===null&&(s=void 0),a==="oninput"&&r[n=a]&&(n="oninputCapture"),r[n]=s}}o=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=Ne(i.children).forEach(function(c){c.props.selected=r.value.indexOf(c.props.value)!=-1})),o=="select"&&r.defaultValue!=null&&(r.value=Ne(i.children).forEach(function(c){c.props.selected=r.multiple?r.defaultValue.indexOf(c.props.value)!=-1:r.defaultValue==c.props.value})),i.class&&!i.className?(r.class=i.class,Object.defineProperty(r,"className",ps)):(i.className&&!i.class||i.class&&i.className)&&(r.class=r.className=i.className),e.props=r}(t),t.$$typeof=ss,Or&&Or(t)};var Lr=G.__r;G.__r=function(t){Lr&&Lr(t),al=t.__c};var Gr=G.diffed;G.diffed=function(t){Gr&&Gr(t);var e=t.props,i=t.__e;i!=null&&t.type==="textarea"&&"value"in e&&e.value!==i.value&&(i.value=e.value==null?"":e.value),al=null};function dl(t){return!!t.__k&&(_o(null,t),!0)}d(dl,"Io");h(dl,"hn");var gi=h(function(t,e){return t(e)},"pn");function vo(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(i=vo(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}d(vo,"Do");h(vo,"r");function hl(){for(var t,e,i=0,o="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=vo(t))&&(o&&(o+=" "),o+=e);return o}d(hl,"al");h(hl,"clsx");var Gt=hl,_s=0,xh=Array.isArray;function M(t,e,i,o,r,l){e||(e={});var n,s,a=e;"ref"in e&&(n=e.ref,delete e.ref);var c={type:t,props:a,key:i,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--_s,__i:-1,__u:0,__source:r,__self:l};if(typeof t=="function"&&(n=t.defaultProps))for(s in n)a[s]===void 0&&(a[s]=n[s]);return G.vnode&&G.vnode(c),c}d(M,"H");h(M,"u");function ft(t,e,i){let o=typeof t.colSpan=="function"?t.colSpan(i):1;if(Number.isInteger(o)&&o>1&&(!t.frozen||t.idx+o-1<=e))return o}d(ft,"le");h(ft,"getColSpan");function cl(t){t.stopPropagation()}d(cl,"dl");h(cl,"stopPropagation");function Oe(t){t?.scrollIntoView({inline:"nearest",block:"nearest"})}d(Oe,"St");h(Oe,"scrollIntoView");function fe(t){let e=!1,i={...t,preventGridDefault(){e=!0},isGridDefaultPrevented(){return e}};return Object.setPrototypeOf(i,Object.getPrototypeOf(t)),i}d(fe,"tt");h(fe,"createCellEvent");var fs=new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function _i(t){return(t.ctrlKey||t.metaKey)&&t.key!=="Control"}d(_i,"pn");h(_i,"isCtrlKeyHeldDown");function ul(t){return _i(t)&&t.keyCode!==86?!1:!fs.has(t.key)}d(ul,"fl");h(ul,"isDefaultCellInput");function pl({key:t,target:e}){return t==="Tab"&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)?e.closest(".rdg-editor-container")?.querySelectorAll("input, textarea, select").length===1:!1}d(pl,"_l");h(pl,"onEditorNavigation");var ys="mlln6zg7-0-0-beta-47";function gl(t){return t.map(({key:e,idx:i,minWidth:o,maxWidth:r})=>M("div",{className:ys,style:{gridColumnStart:i+1,minWidth:o,maxWidth:r},"data-measuring-cell-key":e},e))}d(gl,"hl");h(gl,"renderMeasuringCells");function _l({selectedPosition:t,columns:e,rows:i}){let o=e[t.idx],r=i[t.rowIdx];return Co(o,r)}d(_l,"gl");h(_l,"isSelectedCellEditable");function Co(t,e){return t.renderEditCell!=null&&(typeof t.editable=="function"?t.editable(e):t.editable)!==!1}d(Co,"Lo");h(Co,"isCellEditableUtil");function fl({rows:t,topSummaryRows:e,bottomSummaryRows:i,rowIdx:o,mainHeaderRowIdx:r,lastFrozenColumnIndex:l,column:n}){let s=e?.length??0;if(o===r)return ft(n,l,{type:"HEADER"});if(e&&o>r&&o<=s+r)return ft(n,l,{type:"SUMMARY",row:e[o+s]});if(o>=0&&o<t.length){let a=t[o];return ft(n,l,{type:"ROW",row:a})}if(i)return ft(n,l,{type:"SUMMARY",row:i[o-t.length]})}d(fl,"ml");h(fl,"getSelectedCellColSpan");function yl({moveUp:t,moveNext:e,cellNavigationMode:i,columns:o,colSpanColumns:r,rows:l,topSummaryRows:n,bottomSummaryRows:s,minRowIdx:a,mainHeaderRowIdx:c,maxRowIdx:g,currentPosition:{idx:u,rowIdx:f},nextPosition:p,lastFrozenColumnIndex:y,isCellWithinBounds:C}){let{idx:x,rowIdx:b}=p,S=o.length,k=h(P=>{for(let m of r){let _=m.idx;if(_>x)break;let B=fl({rows:l,topSummaryRows:n,bottomSummaryRows:s,rowIdx:b,mainHeaderRowIdx:c,lastFrozenColumnIndex:y,column:m});if(B&&x>_&&x<B+_){x=_+(P?B:0);break}}},"setColSpan"),I=h(P=>P.level+c,"getParentRowIdx"),z=h(()=>{if(e){let P=o[x].parent;for(;P!==void 0;){let m=I(P);if(b===m){x=P.idx+P.colSpan;break}P=P.parent}}else if(t){let P=o[x].parent,m=!1;for(;P!==void 0;){let _=I(P);if(b>=_){x=P.idx,b=_,m=!0;break}P=P.parent}m||(x=u,b=f)}},"setHeaderGroupColAndRowSpan");if(C(p)&&(k(e),b<c&&z()),i==="CHANGE_ROW"&&(x===S?b===g||(x=0,b+=1):x===-1&&(b===a||(b-=1,x=S-1),k(!1))),b<c){let P=o[x].parent,m=b;for(b=c;P!==void 0;){let _=I(P);_>=m&&(b=_,x=P.idx),P=P.parent}}return{idx:x,rowIdx:b}}d(yl,"yl");h(yl,"getNextSelectedCellPosition");function ml({maxColIdx:t,minRowIdx:e,maxRowIdx:i,selectedPosition:{rowIdx:o,idx:r},shiftKey:l}){return l?r===0&&o===e:r===t&&o===i}d(ml,"bl");h(ml,"canExitGrid");var ms="cj343x07-0-0-beta-47",bl=`rdg-cell ${ms}`,bs="csofj7r7-0-0-beta-47",ws=`rdg-cell-frozen ${bs}`;function So(t){return{"--rdg-grid-row-start":t}}d(So,"Mo");h(So,"getRowStyle");function To(t,e,i){let o=e+1,r=`calc(${i-1} * var(--rdg-header-row-height))`;return t.parent===void 0?{insetBlockStart:0,gridRowStart:1,gridRowEnd:o,paddingBlockStart:r}:{insetBlockStart:`calc(${e-i} * var(--rdg-header-row-height))`,gridRowStart:o-i,gridRowEnd:o,paddingBlockStart:r}}d(To,"Ao");h(To,"getHeaderCellStyle");function ve(t,e=1){let i=t.idx+1;return{gridColumnStart:i,gridColumnEnd:i+e,insetInlineStart:t.frozen?`var(--rdg-frozen-left-${t.idx})`:void 0}}d(ve,"ot");h(ve,"getCellStyle");function Ve(t,...e){return Gt(bl,...e,t.frozen&&ws)}d(Ve,"It");h(Ve,"getCellClassname");var{min:Ue,max:fi,floor:Nr,sign:xs,abs:vs}=Math;function di(t){if(typeof t!="function")throw new Error("Please specify the rowKeyGetter prop to use selection")}d(di,"fn");h(di,"assertIsValidKeyGetter");function ko(t,{minWidth:e,maxWidth:i}){return t=fi(t,e),typeof i=="number"&&i>=e?Ue(t,i):t}d(ko,"Oo");h(ko,"clampColumnWidth");function Io(t,e){return t.parent===void 0?e:t.level-t.parent.level}d(Io,"$o");h(Io,"getHeaderCellRowSpan");var Cs="c1bn88vv7-0-0-beta-47",Ss=`rdg-checkbox-input ${Cs}`;function wl({onChange:t,indeterminate:e,...i}){function o(r){t(r.target.checked,r.nativeEvent.shiftKey)}return d(o,"o"),h(o,"handleChange"),M("input",{ref:h(r=>{r&&(r.indeterminate=e===!0)},"ref"),type:"checkbox",className:Ss,onChange:o,...i})}d(wl,"El");h(wl,"renderCheckbox");var Ts="g1s9ylgp7-0-0-beta-47",vh=`rdg-group-cell-content ${Ts}`,ks="cz54e4y7-0-0-beta-47",Ch=`rdg-caret ${ks}`;function xl(t){try{return t.row[t.column.key]}catch{return null}}d(xl,"Tl");h(xl,"renderValue");var vl=xe(void 0),Is=vl.Provider;function vi(){return be(vl)}d(vi,"gn");h(vi,"useDefaultRenderers");function Ci({value:t,tabIndex:e,indeterminate:i,disabled:o,onChange:r,"aria-label":l,"aria-labelledby":n}){let s=vi().renderCheckbox;return s({"aria-label":l,"aria-labelledby":n,tabIndex:e,indeterminate:i,disabled:o,checked:t,onChange:r})}d(Ci,"mn");h(Ci,"SelectCellFormatter");var Cl=xe(void 0),Ps=Cl.Provider,Sl=xe(void 0),zs=Sl.Provider;function Po(){let t=be(Cl),e=be(Sl);if(t===void 0||e===void 0)throw new Error("useRowSelection must be used within DataGrid cells");return{isRowSelectionDisabled:t.isRowSelectionDisabled,isRowSelected:t.isRowSelected,onRowSelectionChange:e}}d(Po,"Vo");h(Po,"useRowSelection");var Tl=xe(void 0),Bs=Tl.Provider,kl=xe(void 0),As=kl.Provider;function Il(){let t=be(Tl),e=be(kl);if(t===void 0||e===void 0)throw new Error("useHeaderRowSelection must be used within DataGrid cells");return{isIndeterminate:t.isIndeterminate,isRowSelected:t.isRowSelected,onRowSelectionChange:e}}d(Il,"Nl");h(Il,"useHeaderRowSelection");var io="rdg-select-column";function Pl(t){let{isIndeterminate:e,isRowSelected:i,onRowSelectionChange:o}=Il();return M(Ci,{"aria-label":"Select All",tabIndex:t.tabIndex,indeterminate:e,value:i,onChange:h(r=>{o({checked:e?!1:r})},"onChange")})}d(Pl,"Ml");h(Pl,"HeaderRenderer");function zl(t){let{isRowSelectionDisabled:e,isRowSelected:i,onRowSelectionChange:o}=Po();return M(Ci,{"aria-label":"Select",tabIndex:t.tabIndex,disabled:e,value:i,onChange:h((r,l)=>{o({row:t.row,checked:r,isShiftClick:l})},"onChange")})}d(zl,"Al");h(zl,"SelectFormatter");function Bl(t){let{isRowSelected:e,onRowSelectionChange:i}=Po();return M(Ci,{"aria-label":"Select Group",tabIndex:t.tabIndex,value:e,onChange:h(o=>{i({row:t.row,checked:o,isShiftClick:!1})},"onChange")})}d(Bl,"Ol");h(Bl,"SelectGroupFormatter");var Rs={key:io,name:"",width:35,minWidth:35,maxWidth:35,resizable:!1,sortable:!1,frozen:!0,renderHeaderCell(t){return M(Pl,{...t})},renderCell(t){return M(zl,{...t})},renderGroupCell(t){return M(Bl,{...t})}},Ds="auto",Ws=50;function Al({rawColumns:t,defaultColumnOptions:e,getColumnWidth:i,viewportWidth:o,scrollLeft:r,enableVirtualization:l}){let n=e?.width??Ds,s=e?.minWidth??Ws,a=e?.maxWidth??void 0,c=e?.renderCell??xl,g=e?.sortable??!1,u=e?.resizable??!1,f=e?.draggable??!1,{columns:p,colSpanColumns:y,lastFrozenColumnIndex:C,headerRowsCount:x}=ut(()=>{let m=-1,_=1,B=[];R(t,1);function R(N,O,nt){for(let $ of N){if("children"in $){let St={name:$.name,parent:nt,idx:-1,colSpan:0,level:0,headerCellClass:$.headerCellClass};R($.children,O+1,St);continue}let K=$.frozen??!1,Ct={...$,parent:nt,idx:0,level:0,frozen:K,width:$.width??n,minWidth:$.minWidth??s,maxWidth:$.maxWidth??a,sortable:$.sortable??g,resizable:$.resizable??u,draggable:$.draggable??f,renderCell:$.renderCell??c};B.push(Ct),K&&m++,O>_&&(_=O)}}d(R,"I"),h(R,"collectColumns"),B.sort(({key:N,frozen:O},{key:nt,frozen:$})=>N===io?-1:nt===io?1:O?$?0:-1:$?1:0);let F=[];return B.forEach((N,O)=>{N.idx=O,zo(N,O,0),N.colSpan!=null&&F.push(N)}),{columns:B,colSpanColumns:F,lastFrozenColumnIndex:m,headerRowsCount:_}},[t,n,s,a,c,u,g,f]),{templateColumns:b,layoutCssVars:S,totalFrozenColumnWidth:k,columnMetrics:I}=ut(()=>{let m=new Map,_=0,B=0,R=[];for(let N of p){let O=i(N);typeof O=="number"?O=ko(O,N):O=N.minWidth,R.push(`${O}px`),m.set(N,{width:O,left:_}),_+=O}if(C!==-1){let N=m.get(p[C]);B=N.left+N.width}let F={};for(let N=0;N<=C;N++){let O=p[N];F[`--rdg-frozen-left-${O.idx}`]=`${m.get(O).left}px`}return{templateColumns:R,layoutCssVars:F,totalFrozenColumnWidth:B,columnMetrics:m}},[i,p,C]),[z,P]=ut(()=>{if(!l)return[0,p.length-1];let m=r+k,_=r+o,B=p.length-1,R=Ue(C+1,B);if(m>=_)return[R,R];let F=R;for(;F<B;){let{left:$,width:K}=I.get(p[F]);if($+K>m)break;F++}let N=F;for(;N<B;){let{left:$,width:K}=I.get(p[N]);if($+K>=_)break;N++}let O=fi(R,F-1),nt=Ue(B,N+1);return[O,nt]},[I,p,C,r,k,o,l]);return{columns:p,colSpanColumns:y,colOverscanStartIdx:z,colOverscanEndIdx:P,templateColumns:b,layoutCssVars:S,headerRowsCount:x,lastFrozenColumnIndex:C,totalFrozenColumnWidth:k}}d(Al,"Ul");h(Al,"useCalculatedColumns");function zo(t,e,i){if(i<t.level&&(t.level=i),t.parent!==void 0){let{parent:o}=t;o.idx===-1&&(o.idx=e),o.colSpan+=1,zo(o,e,i-1)}}d(zo,"qo");h(zo,"updateColumnParent");var we=typeof window>"u"?me:fo;function Rl(t,e,i,o,r,l,n,s,a,c){let g=vt(r),u=t.length===e.length,f=u&&r!==g.current,p=[...i],y=[];for(let{key:S,idx:k,width:I}of e)typeof I=="string"&&(f||!n.has(S))&&!l.has(S)&&(p[k]=I,y.push(S));let C=p.join(" ");we(()=>{g.current=r,x(y)});function x(S){S.length!==0&&a(k=>{let I=new Map(k),z=!1;for(let P of S){let m=oo(o,P);z||=m!==k.get(P),m===void 0?I.delete(P):I.set(P,m)}return z?I:k})}d(x,"m"),h(x,"updateMeasuredWidths");function b(S,k){let{key:I}=S,z=[...i],P=[];for(let{key:_,idx:B,width:R}of e)if(I===_){let F=typeof k=="number"?`${k}px`:k;z[B]=F}else u&&typeof R=="string"&&!l.has(_)&&(z[B]=R,P.push(_));o.current.style.gridTemplateColumns=z.join(" ");let m=typeof k=="number"?k:oo(o,I);gi(()=>{s(_=>{let B=new Map(_);return B.set(I,m),B}),x(P)}),c?.(S.idx,m)}return d(b,"h"),h(b,"handleColumnResize"),{gridTemplateColumns:C,handleColumnResize:b}}d(Rl,"Gl");h(Rl,"useColumnWidths");function oo(t,e){let i=`[data-measuring-cell-key="${CSS.escape(e)}"]`;return t.current?.querySelector(i)?.getBoundingClientRect().width}d(oo,"Po");h(oo,"measureColumnWidth");function Dl(){let t=vt(null),[e,i]=et(1),[o,r]=et(1),[l,n]=et(0);return we(()=>{let{ResizeObserver:s}=window;if(s==null)return;let{clientWidth:a,clientHeight:c,offsetWidth:g,offsetHeight:u}=t.current,{width:f,height:p}=t.current.getBoundingClientRect(),y=u-c,C=f-g+a,x=p-y;i(C),r(x),n(y);let b=new s(S=>{let k=S[0].contentBoxSize[0],{clientHeight:I,offsetHeight:z}=t.current;gi(()=>{i(k.inlineSize),r(k.blockSize),n(z-I)})});return b.observe(t.current),()=>{b.disconnect()}},[]),[t,e,o,l]}d(Dl,"Vl");h(Dl,"useGridDimensions");function ct(t){let e=vt(t);me(()=>{e.current=t});let i=Ot((...o)=>{e.current(...o)},[]);return t&&i}d(ct,"te");h(ct,"useLatestFunc");function $e(t){let[e,i]=et(!1);e&&!t&&i(!1);function o(r){r.target!==r.currentTarget&&i(!0)}return d(o,"o"),h(o,"onFocus"),{tabIndex:t&&!e?0:-1,childTabIndex:t?0:-1,onFocus:t?o:void 0}}d($e,"Dt");h($e,"useRovingTabIndex");function Wl({columns:t,colSpanColumns:e,rows:i,topSummaryRows:o,bottomSummaryRows:r,colOverscanStartIdx:l,colOverscanEndIdx:n,lastFrozenColumnIndex:s,rowOverscanStartIdx:a,rowOverscanEndIdx:c}){let g=ut(()=>{if(l===0)return 0;let u=l,f=h((p,y)=>y!==void 0&&p+y>l?(u=p,!0):!1,"updateStartIdx");for(let p of e){let y=p.idx;if(y>=u||f(y,ft(p,s,{type:"HEADER"})))break;for(let C=a;C<=c;C++){let x=i[C];if(f(y,ft(p,s,{type:"ROW",row:x})))break}if(o!=null){for(let C of o)if(f(y,ft(p,s,{type:"SUMMARY",row:C})))break}if(r!=null){for(let C of r)if(f(y,ft(p,s,{type:"SUMMARY",row:C})))break}}return u},[a,c,i,o,r,l,s,e]);return ut(()=>{let u=[];for(let f=0;f<=n;f++){let p=t[f];f<g&&!p.frozen||u.push(p)}return u},[g,n,t])}d(Wl,"jl");h(Wl,"useViewportColumns");function Ml({rows:t,rowHeight:e,clientHeight:i,scrollTop:o,enableVirtualization:r}){let{totalRowHeight:l,gridTemplateRows:n,getRowTop:s,getRowHeight:a,findRowIdx:c}=ut(()=>{if(typeof e=="number")return{totalRowHeight:e*t.length,gridTemplateRows:` repeat(${t.length}, ${e}px)`,getRowTop:h(x=>x*e,"getRowTop"),getRowHeight:h(()=>e,"getRowHeight"),findRowIdx:h(x=>Nr(x/e),"findRowIdx")};let f=0,p=" ",y=t.map(x=>{let b=e(x),S={top:f,height:b};return p+=`${b}px `,f+=b,S}),C=h(x=>fi(0,Ue(t.length-1,x)),"validateRowIdx");return{totalRowHeight:f,gridTemplateRows:p,getRowTop:h(x=>y[C(x)].top,"getRowTop"),getRowHeight:h(x=>y[C(x)].height,"getRowHeight"),findRowIdx(x){let b=0,S=y.length-1;for(;b<=S;){let k=b+Nr((S-b)/2),I=y[k].top;if(I===x)return k;if(I<x?b=k+1:I>x&&(S=k-1),b>S)return S}return 0}}},[e,t]),g=0,u=t.length-1;if(r){let f=c(o),p=c(o+i);g=fi(0,f-4),u=Ue(t.length-1,p+4)}return{rowOverscanStartIdx:g,rowOverscanEndIdx:u,totalRowHeight:l,gridTemplateRows:n,getRowTop:s,getRowHeight:a,findRowIdx:c}}d(Ml,"Kl");h(Ml,"useViewportRows");var Ms="c1w9bbhr7-0-0-beta-47",Es="c1creorc7-0-0-beta-47",Hs=`rdg-cell-drag-handle ${Ms}`;function El({gridRowStart:t,rows:e,column:i,columnWidth:o,maxColIdx:r,isLastRow:l,selectedPosition:n,latestDraggedOverRowIdx:s,isCellEditable:a,onRowsChange:c,onFill:g,onClick:u,setDragging:f,setDraggedOverRowIdx:p}){let{idx:y,rowIdx:C}=n;function x(z){if(z.preventDefault(),z.buttons!==1)return;f(!0),window.addEventListener("mouseover",P),window.addEventListener("mouseup",m);function P(_){_.buttons!==1&&m()}d(P,"P"),h(P,"onMouseOver");function m(){window.removeEventListener("mouseover",P),window.removeEventListener("mouseup",m),f(!1),b()}d(m,"b"),h(m,"onMouseUp")}d(x,"m"),h(x,"handleMouseDown");function b(){let z=s.current;if(z===void 0)return;let P=C<z?C+1:z,m=C<z?z+1:C;k(P,m),p(void 0)}d(b,"h"),h(b,"handleDragEnd");function S(z){z.stopPropagation(),k(C+1,e.length)}d(S,"w"),h(S,"handleDoubleClick");function k(z,P){let m=e[C],_=[...e],B=[];for(let R=z;R<P;R++)if(a({rowIdx:R,idx:y})){let F=g({columnKey:i.key,sourceRow:m,targetRow:e[R]});F!==e[R]&&(_[R]=F,B.push(R))}B.length>0&&c?.(_,{indexes:B,column:i})}d(k,"z"),h(k,"updateRows");function I(){let z=i.colSpan?.({type:"ROW",row:e[C]})??1,{insetInlineStart:P,...m}=ve(i,z),_="calc(var(--rdg-drag-handle-size) * -0.5 + 1px)",B=i.idx+z-1===r;return{...m,gridRowStart:t,marginInlineEnd:B?void 0:_,marginBlockEnd:l?void 0:_,insetInlineStart:P?`calc(${P} + ${o}px + var(--rdg-drag-handle-size) * -0.5 - 1px)`:void 0}}return d(I,"v"),h(I,"getStyle"),M("div",{style:I(),className:Gt(Hs,i.frozen&&Es),onClick:u,onMouseDown:x,onDoubleClick:S})}d(El,"Xl");h(El,"DragHandle");var Fs="cis5rrm7-0-0-beta-47";function Hl({column:t,colSpan:e,row:i,rowIdx:o,onRowChange:r,closeEditor:l,onKeyDown:n,navigate:s}){let a=vt(void 0),c=t.editorOptions?.commitOnOutsideClick!==!1,g=ct(()=>{p(!0,!1)});me(()=>{if(!c)return;function b(){a.current=requestAnimationFrame(g)}return d(b,"h"),h(b,"onWindowCaptureMouseDown"),addEventListener("mousedown",b,{capture:!0}),()=>{removeEventListener("mousedown",b,{capture:!0}),u()}},[c,g]);function u(){cancelAnimationFrame(a.current)}d(u,"s"),h(u,"cancelFrameRequest");function f(b){if(n){let S=fe(b);if(n({mode:"EDIT",row:i,column:t,rowIdx:o,navigate(){s(b)},onClose:p},S),S.isGridDefaultPrevented())return}b.key==="Escape"?p():b.key==="Enter"?p(!0):pl(b)&&s(b)}d(f,"g"),h(f,"handleKeyDown");function p(b=!1,S=!0){b?r(i,!0,S):l(S)}d(p,"f"),h(p,"onClose");function y(b,S=!1){r(b,S,S)}d(y,"x"),h(y,"onEditorRowChange");let{cellClass:C}=t,x=Ve(t,"rdg-editor-container",typeof C=="function"?C(i):C,!t.editorOptions?.displayCellContent&&Fs);return M("div",{role:"gridcell","aria-colindex":t.idx+1,"aria-colspan":e,"aria-selected":!0,className:x,style:ve(t,e),onKeyDown:f,onMouseDownCapture:u,children:t.renderEditCell!=null&&M(zt,{children:[t.renderEditCell({column:t,row:i,rowIdx:o,onRowChange:y,onClose:p}),t.editorOptions?.displayCellContent&&t.renderCell({column:t,row:i,rowIdx:o,isCellEditable:!0,tabIndex:-1,onRowChange:y})]})})}d(Hl,"Jl");h(Hl,"EditCell");function Fl({column:t,rowIdx:e,isCellSelected:i,selectCell:o}){let{tabIndex:r,onFocus:l}=$e(i),{colSpan:n}=t,s=Io(t,e),a=t.idx+1;function c(){o({idx:t.idx,rowIdx:e})}return d(c,"d"),h(c,"onClick"),M("div",{role:"columnheader","aria-colindex":a,"aria-colspan":n,"aria-rowspan":s,"aria-selected":i,tabIndex:r,className:Gt(bl,t.headerCellClass),style:{...To(t,e,s),gridColumnStart:a,gridColumnEnd:a+n},onFocus:l,onClick:c,children:t.name})}d(Fl,"Ql");h(Fl,"GroupedColumnHeaderCell");var Os="h44jtk67-0-0-beta-47",Ls="hcgkhxz7-0-0-beta-47",Gs=`rdg-header-sort-name ${Ls}`;function Ol({column:t,sortDirection:e,priority:i}){return t.sortable?M(Ll,{sortDirection:e,priority:i,children:t.name}):t.name}d(Ol,"oi");h(Ol,"renderHeaderCell");function Ll({sortDirection:t,priority:e,children:i}){let o=vi().renderSortStatus;return M("span",{className:Os,children:[M("span",{className:Gs,children:i}),M("span",{children:o({sortDirection:t,priority:e})})]})}d(Ll,"ri");h(Ll,"SortableHeaderCell");var Ns="c6l2wv17-0-0-beta-47",Us="c1kqdw7y7-0-0-beta-47",Vs=`rdg-cell-resizable ${Us}`,$s="r1y6ywlx7-0-0-beta-47",js="rdg-cell-draggable",Ys="c1bezg5o7-0-0-beta-47",Xs=`rdg-cell-dragging ${Ys}`,Ks="c1vc96037-0-0-beta-47",qs=`rdg-cell-drag-over ${Ks}`;function Gl({column:t,colSpan:e,rowIdx:i,isCellSelected:o,onColumnResize:r,onColumnsReorder:l,sortColumns:n,onSortColumnsChange:s,selectCell:a,shouldFocusGrid:c,direction:g,dragDropKey:u}){let[f,p]=et(!1),[y,C]=et(!1),x=g==="rtl",b=Io(t,i),{tabIndex:S,childTabIndex:k,onFocus:I}=$e(o),z=n?.findIndex(L=>L.columnKey===t.key),P=z!==void 0&&z>-1?n[z]:void 0,m=P?.direction,_=P!==void 0&&n.length>1?z+1:void 0,B=m&&!_?m==="ASC"?"ascending":"descending":void 0,{sortable:R,resizable:F,draggable:N}=t,O=Ve(t,t.headerCellClass,R&&Ns,F&&Vs,N&&js,f&&Xs,y&&qs),nt=t.renderHeaderCell??Ol;function $(L){if(L.pointerType==="mouse"&&L.buttons!==1)return;L.preventDefault();let{currentTarget:X,pointerId:mt}=L,Wt=X.parentElement,{right:Ze,left:Qe}=Wt.getBoundingClientRect(),Te=x?L.clientX-Qe:Ze-L.clientX,oe=!1;function re(le){let{width:ne,right:Bi,left:Pe}=Wt.getBoundingClientRect(),se=x?Bi+Te-le.clientX:le.clientX+Te-Pe;se=ko(se,t),ne>0&&se!==ne&&r(t,se)}d(re,"Ve"),h(re,"onPointerMove");function ke(){oe=!0,r(t,"max-content")}d(ke,"st"),h(ke,"onDoubleClick");function Ie(le){oe||re(le),X.removeEventListener("pointermove",re),X.removeEventListener("dblclick",ke),X.removeEventListener("lostpointercapture",Ie)}d(Ie,"at"),h(Ie,"onLostPointerCapture"),X.setPointerCapture(mt),X.addEventListener("pointermove",re),X.addEventListener("dblclick",ke),X.addEventListener("lostpointercapture",Ie)}d($,"U"),h($,"onPointerDown");function K(L){if(s==null)return;let{sortDescendingFirst:X}=t;if(P===void 0){let mt={columnKey:t.key,direction:X?"DESC":"ASC"};s(n&&L?[...n,mt]:[mt])}else{let mt;if((X===!0&&m==="DESC"||X!==!0&&m==="ASC")&&(mt={columnKey:t.key,direction:m==="ASC"?"DESC":"ASC"}),L){let Wt=[...n];mt?Wt[z]=mt:Wt.splice(z,1),s(Wt)}else s(mt?[mt]:[])}}d(K,"ie"),h(K,"onSort");function Ct(L){a({idx:t.idx,rowIdx:i}),R&&K(L.ctrlKey||L.metaKey)}d(Ct,"We"),h(Ct,"onClick");function St(L){I?.(L),c&&a({idx:0,rowIdx:i})}d(St,"Ue"),h(St,"handleFocus");function ee(L){(L.key===" "||L.key==="Enter")&&(L.preventDefault(),K(L.ctrlKey||L.metaKey))}d(ee,"Tt"),h(ee,"onKeyDown");function dt(L){L.dataTransfer.setData(u,t.key),L.dataTransfer.dropEffect="move",p(!0)}d(dt,"Pt"),h(dt,"onDragStart");function st(){p(!1)}d(st,"zt"),h(st,"onDragEnd");function ht(L){L.preventDefault(),L.dataTransfer.dropEffect="move"}d(ht,"Ht"),h(ht,"onDragOver");function ie(L){if(C(!1),L.dataTransfer.types.includes(u.toLowerCase())){let X=L.dataTransfer.getData(u.toLowerCase());X!==t.key&&(L.preventDefault(),l?.(X,t.key))}}d(ie,"Ft"),h(ie,"onDrop");function Vt(L){ro(L)&&C(!0)}d(Vt,"ke"),h(Vt,"onDragEnter");function Se(L){ro(L)&&C(!1)}d(Se,"rt"),h(Se,"onDragLeave");let Ht;return N&&(Ht={draggable:!0,onDragStart:dt,onDragEnd:st,onDragOver:ht,onDragEnter:Vt,onDragLeave:Se,onDrop:ie}),M("div",{role:"columnheader","aria-colindex":t.idx+1,"aria-colspan":e,"aria-rowspan":b,"aria-selected":o,"aria-sort":B,tabIndex:c?0:S,className:O,style:{...To(t,i,b),...ve(t,e)},onFocus:St,onClick:Ct,onKeyDown:R?ee:void 0,...Ht,children:[nt({column:t,sortDirection:m,priority:_,tabIndex:k}),F&&M("div",{className:$s,onClick:cl,onPointerDown:$})]})}d(Gl,"pi");h(Gl,"HeaderCell");function ro(t){let e=t.relatedTarget;return!t.currentTarget.contains(e)}d(ro,"zo");h(ro,"isEventPertinent");var Js="r1upfr807-0-0-beta-47",Nl=`rdg-row ${Js}`,Zs="r190mhd37-0-0-beta-47",Bo="rdg-row-selected",Qs="r139qu9m7-0-0-beta-47",ta="rdg-top-summary-row",ea="rdg-bottom-summary-row",ia="h10tskcx7-0-0-beta-47",Ul=`rdg-header-row ${ia}`;function Vl({rowIdx:t,columns:e,onColumnResize:i,onColumnsReorder:o,sortColumns:r,onSortColumnsChange:l,lastFrozenColumnIndex:n,selectedCellIdx:s,selectCell:a,shouldFocusGrid:c,direction:g}){let u=el(),f=[];for(let p=0;p<e.length;p++){let y=e[p],C=ft(y,n,{type:"HEADER"});C!==void 0&&(p+=C-1),f.push(M(Gl,{column:y,colSpan:C,rowIdx:t,isCellSelected:s===y.idx,onColumnResize:i,onColumnsReorder:o,onSortColumnsChange:l,sortColumns:r,selectCell:a,shouldFocusGrid:c&&p===0,direction:g,dragDropKey:u},y.key))}return M("div",{role:"row","aria-rowindex":t,className:Gt(Ul,s===-1&&Bo),children:f})}d(Vl,"wi");h(Vl,"HeaderRow");var oa=Jt(Vl);function $l({rowIdx:t,level:e,columns:i,selectedCellIdx:o,selectCell:r}){let l=[],n=new Set;for(let s of i){let{parent:a}=s;if(a!==void 0){for(;a.level>e&&a.parent!==void 0;)a=a.parent;if(a.level===e&&!n.has(a)){n.add(a);let{idx:c}=a;l.push(M(Fl,{column:a,rowIdx:t,isCellSelected:o===c,selectCell:r},c))}}}return M("div",{role:"row","aria-rowindex":t,className:Ul,children:l})}d($l,"xi");h($l,"GroupedColumnHeaderRow");var ra=Jt($l),la="c6ra8a37-0-0-beta-47",na=`rdg-cell-copied ${la}`,sa="cq910m07-0-0-beta-47",aa=`rdg-cell-dragged-over ${sa}`;function jl({column:t,colSpan:e,isCellSelected:i,isCopied:o,isDraggedOver:r,row:l,rowIdx:n,onClick:s,onDoubleClick:a,onContextMenu:c,onRowChange:g,selectCell:u,...f}){let{tabIndex:p,childTabIndex:y,onFocus:C}=$e(i),{cellClass:x}=t,b=Ve(t,typeof x=="function"?x(l):x,o&&na,r&&aa),S=Co(t,l);function k(_){u({rowIdx:n,idx:t.idx},_)}d(k,"z"),h(k,"selectCellWrapper");function I(_){if(s){let B=fe(_);if(s({row:l,column:t,selectCell:k},B),B.isGridDefaultPrevented())return}k()}d(I,"v"),h(I,"handleClick");function z(_){if(c){let B=fe(_);if(c({row:l,column:t,selectCell:k},B),B.isGridDefaultPrevented())return}k()}d(z,"S"),h(z,"handleContextMenu");function P(_){if(a){let B=fe(_);if(a({row:l,column:t,selectCell:k},B),B.isGridDefaultPrevented())return}k(!0)}d(P,"P"),h(P,"handleDoubleClick");function m(_){g(t,_)}return d(m,"b"),h(m,"handleRowChange"),M("div",{role:"gridcell","aria-colindex":t.idx+1,"aria-colspan":e,"aria-selected":i,"aria-readonly":!S||void 0,tabIndex:p,className:b,style:ve(t,e),onClick:I,onDoubleClick:P,onContextMenu:z,onFocus:C,...f,children:t.renderCell({column:t,row:l,rowIdx:n,isCellEditable:S,tabIndex:y,onRowChange:m})})}d(jl,"Di");h(jl,"Cell");var da=Jt(jl);function Yl({className:t,rowIdx:e,gridRowStart:i,selectedCellIdx:o,isRowSelectionDisabled:r,isRowSelected:l,copiedCellIdx:n,draggedOverCellIdx:s,lastFrozenColumnIndex:a,row:c,viewportColumns:g,selectedCellEditor:u,onCellClick:f,onCellDoubleClick:p,onCellContextMenu:y,rowClass:C,setDraggedOverRowIdx:x,onMouseEnter:b,onRowChange:S,selectCell:k,...I},z){let P=ct((R,F)=>{S(R,e,F)});function m(R){x?.(e),b?.(R)}d(m,"b"),h(m,"handleDragEnter"),t=Gt(Nl,`rdg-row-${e%2===0?"even":"odd"}`,C?.(c,e),t,o===-1&&Bo);let _=[];for(let R=0;R<g.length;R++){let F=g[R],{idx:N}=F,O=ft(F,a,{type:"ROW",row:c});O!==void 0&&(R+=O-1);let nt=o===N;nt&&u?_.push(u):_.push(M(da,{column:F,colSpan:O,row:c,rowIdx:e,isCopied:n===N,isDraggedOver:s===N,isCellSelected:nt,onClick:f,onDoubleClick:p,onContextMenu:y,onRowChange:P,selectCell:k},F.key))}let B=ut(()=>({isRowSelected:l,isRowSelectionDisabled:r}),[r,l]);return M(Ps,{value:B,children:M("div",{role:"row",ref:z,className:t,onMouseEnter:m,style:So(i),...I,children:_})})}d(Yl,"Pi");h(Yl,"Row");var ha=Jt(mo(Yl));function Xl(t,e){return M(ha,{...e},t)}d(Xl,"Hi");h(Xl,"defaultRenderRow");function Kl({scrollToPosition:{idx:t,rowIdx:e},gridElement:i,setScrollToCellPosition:o}){let r=vt(null);return we(()=>{Oe(r.current)}),we(()=>{function l(){o(null)}d(l,"i"),h(l,"removeScrollToCell");let n=new IntersectionObserver(l,{root:i,threshold:1});return n.observe(r.current),()=>{n.disconnect()}},[i,o]),M("div",{ref:r,style:{gridColumn:t===void 0?"1/-1":t+1,gridRow:e===void 0?"1/-1":e+2}})}d(Kl,"Fi");h(Kl,"ScrollToCell");var ca="a3ejtar7-0-0-beta-47",ua=`rdg-sort-arrow ${ca}`;function ql({sortDirection:t,priority:e}){return M(zt,{children:[Jl({sortDirection:t}),Zl({priority:e})]})}d(ql,"Mi");h(ql,"renderSortStatus");function Jl({sortDirection:t}){return t===void 0?null:M("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:ua,"aria-hidden":!0,children:M("path",{d:t==="ASC"?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}d(Jl,"Ai");h(Jl,"renderSortIcon");function Zl({priority:t}){return t}d(Zl,"Oi");h(Zl,"renderSortPriority");var pa="rnvodz57-0-0-beta-47",ga=`rdg ${pa}`,_a="vlqv91k7-0-0-beta-47",fa=`rdg-viewport-dragging ${_a}`,ya="f1lsfrzw7-0-0-beta-47",ma="f1cte0lg7-0-0-beta-47",ba="s8wc6fl7-0-0-beta-47";function Ql({column:t,colSpan:e,row:i,rowIdx:o,isCellSelected:r,selectCell:l}){let{tabIndex:n,childTabIndex:s,onFocus:a}=$e(r),{summaryCellClass:c}=t,g=Ve(t,ba,typeof c=="function"?c(i):c);function u(){l({rowIdx:o,idx:t.idx})}return d(u,"s"),h(u,"onClick"),M("div",{role:"gridcell","aria-colindex":t.idx+1,"aria-colspan":e,"aria-selected":r,tabIndex:n,className:g,style:ve(t,e),onClick:u,onFocus:a,children:t.renderSummaryCell?.({column:t,row:i,tabIndex:s})})}d(Ql,"Bi");h(Ql,"SummaryCell");var wa=Jt(Ql),xa="skuhp557-0-0-beta-47",va="tf8l5ub7-0-0-beta-47",Ca=`rdg-summary-row ${xa}`;function tn({rowIdx:t,gridRowStart:e,row:i,viewportColumns:o,top:r,bottom:l,lastFrozenColumnIndex:n,selectedCellIdx:s,isTop:a,selectCell:c,"aria-rowindex":g}){let u=[];for(let f=0;f<o.length;f++){let p=o[f],y=ft(p,n,{type:"SUMMARY",row:i});y!==void 0&&(f+=y-1);let C=s===p.idx;u.push(M(wa,{column:p,colSpan:y,row:i,rowIdx:t,isCellSelected:C,selectCell:c},p.key))}return M("div",{role:"row","aria-rowindex":g,className:Gt(Nl,`rdg-row-${t%2===0?"even":"odd"}`,Ca,a?`${ta} ${va}`:ea,s===-1&&Bo),style:{...So(e),"--rdg-summary-row-top":r!==void 0?`${r}px`:void 0,"--rdg-summary-row-bottom":l!==void 0?`${l}px`:void 0},children:u})}d(tn,"Ji");h(tn,"SummaryRow");var Ur=Jt(tn);function en(t,e){let{columns:i,rows:o,topSummaryRows:r,bottomSummaryRows:l,rowKeyGetter:n,onRowsChange:s,rowHeight:a,headerRowHeight:c,summaryRowHeight:g,selectedRows:u,isRowSelectionDisabled:f,onSelectedRowsChange:p,sortColumns:y,onSortColumnsChange:C,defaultColumnOptions:x,onCellClick:b,onCellDoubleClick:S,onCellContextMenu:k,onCellKeyDown:I,onSelectedCellChange:z,onScroll:P,onColumnResize:m,onColumnsReorder:_,onFill:B,onCopy:R,onPaste:F,enableVirtualization:N,renderers:O,className:nt,style:$,rowClass:K,direction:Ct,role:St,"aria-label":ee,"aria-labelledby":dt,"aria-describedby":st,"aria-rowcount":ht,"data-testid":ie}=t,Vt=vi(),Se=St??"grid",Ht=a??35,L=c??(typeof Ht=="number"?Ht:35),X=g??(typeof Ht=="number"?Ht:35),mt=O?.renderRow??Vt?.renderRow??Xl,Wt=O?.renderSortStatus??Vt?.renderSortStatus??ql,Ze=O?.renderCheckbox??Vt?.renderCheckbox??wl,Qe=O?.noRowsFallback??Vt?.noRowsFallback,Te=N??!0,oe=Ct??"ltr",[re,ke]=et(0),[Ie,le]=et(0),[ne,Bi]=et(()=>new Map),[Pe,se]=et(()=>new Map),[ae,Yo]=et(null),[Xo,zn]=et(!1),[ze,Bn]=et(void 0),[ti,Ko]=et(null),qo=Ot(v=>ne.get(v.key)??Pe.get(v.key)??v.width,[Pe,ne]),[de,Jo,Zo,An]=Dl(),{columns:lt,colSpanColumns:Qo,lastFrozenColumnIndex:bt,headerRowsCount:$t,colOverscanStartIdx:Rn,colOverscanEndIdx:tr,templateColumns:Dn,layoutCssVars:Wn,totalFrozenColumnWidth:Mn}=Al({rawColumns:i,defaultColumnOptions:x,getColumnWidth:qo,scrollLeft:Ie,viewportWidth:Jo,enableVirtualization:Te}),Be=r?.length??0,he=l?.length??0,er=Be+he,ce=$t+Be,Ai=$t-1,gt=-ce,ei=gt+Ai,jt=o.length+he-1,[A,ue]=et(()=>({idx:-1,rowIdx:gt-1,mode:"SELECT"})),Ri=vt(A),ir=vt(ze),or=vt(-1),ii=vt(null),oi=vt(!1),Di=Se==="treegrid",Wi=$t*L,rr=er*X,ri=Zo-Wi-rr,Mi=u!=null&&p!=null,lr=oe==="rtl",En=lr?"ArrowRight":"ArrowLeft",nr=lr?"ArrowLeft":"ArrowRight",sr=ht??$t+o.length+er,Hn=ut(()=>({renderCheckbox:Ze,renderSortStatus:Wt}),[Ze,Wt]),Fn=ut(()=>{let v=!1,T=!1;if(n!=null&&u!=null&&u.size>0){for(let D of o)if(u.has(n(D))?v=!0:T=!0,v&&T)break}return{isRowSelected:v&&!T,isIndeterminate:v&&T}},[o,u,n]),{rowOverscanStartIdx:Ae,rowOverscanEndIdx:Re,totalRowHeight:Ei,gridTemplateRows:On,getRowTop:ar,getRowHeight:Ln,findRowIdx:dr}=Ml({rows:o,rowHeight:Ht,clientHeight:ri,scrollTop:re,enableVirtualization:Te}),Ft=Wl({columns:lt,colSpanColumns:Qo,colOverscanStartIdx:Rn,colOverscanEndIdx:tr,lastFrozenColumnIndex:bt,rowOverscanStartIdx:Ae,rowOverscanEndIdx:Re,rows:o,topSummaryRows:r,bottomSummaryRows:l}),{gridTemplateColumns:Gn,handleColumnResize:Nn}=Rl(lt,Ft,Dn,de,Jo,ne,Pe,Bi,se,m),Un=Di?-1:0,pe=lt.length-1,Hi=ni(A),li=Ui(A),Vn=L+Ei+rr+An,$n=ct(Nn),jn=ct(_),Yn=ct(C),Xn=ct(b),Kn=ct(S),qn=ct(k),Jn=ct(cr),Zn=ct(Li),Qn=ct(De),Fi=ct(ge),hr=ct(({idx:v,rowIdx:T})=>{ge({rowIdx:gt+T-1,idx:v})});we(()=>{if(!Hi||hi(A,Ri.current)){Ri.current=A;return}Ri.current=A,A.idx===-1&&(ii.current.focus({preventScroll:!0}),Oe(ii.current))}),we(()=>{oi.current&&(oi.current=!1,$i())}),tl(e,()=>({element:de.current,scrollToCell({idx:v,rowIdx:T}){let D=v!==void 0&&v>bt&&v<lt.length?v:void 0,W=T!==void 0&&Yt(T)?T:void 0;(D!==void 0||W!==void 0)&&Ko({idx:D,rowIdx:W})},selectCell:ge}));let Oi=Ot(v=>{Bn(v),ir.current=v},[]);function cr(v){if(!p)return;di(n);let T=new Set(u);for(let D of o){if(f?.(D)===!0)continue;let W=n(D);v.checked?T.add(W):T.delete(W)}p(T)}d(cr,"Sr"),h(cr,"selectHeaderRow");function Li(v){if(!p)return;di(n);let{row:T,checked:D,isShiftClick:W}=v;if(f?.(T)===!0)return;let U=new Set(u),j=n(T),q=or.current,Q=o.indexOf(T);if(or.current=Q,D?U.add(j):U.delete(j),W&&q!==-1&&q!==Q&&q<o.length){let _t=xs(Q-q);for(let Tt=q+_t;Tt!==Q;Tt+=_t){let kt=o[Tt];f?.(kt)!==!0&&(D?U.add(n(kt)):U.delete(n(kt)))}}p(U)}d(Li,"Mn"),h(Li,"selectRow");function ur(v){let{idx:T,rowIdx:D,mode:W}=A;if(W==="EDIT")return;if(I&&Yt(D)){let Q=o[D],_t=fe(v);if(I({mode:"SELECT",row:Q,column:lt[T],rowIdx:D,selectCell:ge},_t),_t.isGridDefaultPrevented())return}if(!(v.target instanceof Element))return;let U=v.target.closest(".rdg-cell")!==null,j=Di&&v.target===ii.current;if(!U&&!j)return;let{keyCode:q}=v;if(li&&(F!=null||R!=null)&&_i(v)){if(q===67){if(window.getSelection()?.isCollapsed===!1)return;gr();return}if(q===86){_r();return}}switch(v.key){case"Escape":Yo(null);return;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Home":case"End":case"PageUp":case"PageDown":Vi(v);break;default:fr(v);break}}d(ur,"Er"),h(ur,"handleKeyDown");function pr(v){let{scrollTop:T,scrollLeft:D}=v.currentTarget;gi(()=>{ke(T),le(vs(D))}),P?.(v)}d(pr,"Ir"),h(pr,"handleScroll");function De(v,T,D){if(typeof s!="function"||D===o[T])return;let W=[...o];W[T]=D,s(W,{indexes:[T],column:v})}d(De,"ht"),h(De,"updateRow");function Gi(){A.mode==="EDIT"&&De(lt[A.idx],A.rowIdx,A.row)}d(Gi,"An"),h(Gi,"commitEditorChanges");function gr(){let{idx:v,rowIdx:T}=A,D=o[T],W=lt[v].key;Yo({row:D,columnKey:W}),R?.({sourceRow:D,sourceColumnKey:W})}d(gr,"Dr"),h(gr,"handleCopy");function _r(){if(!F||!s||ae===null||!We(A))return;let{idx:v,rowIdx:T}=A,D=lt[v],W=o[T],U=F({sourceRow:ae.row,sourceColumnKey:ae.columnKey,targetRow:W,targetColumnKey:D.key});De(D,T,U)}d(_r,"Tr"),h(_r,"handlePaste");function fr(v){if(!li)return;let T=o[A.rowIdx],{key:D,shiftKey:W}=v;if(Mi&&W&&D===" "){di(n);let U=n(T);Li({row:T,checked:!u.has(U),isShiftClick:!1}),v.preventDefault();return}We(A)&&ul(v)&&ue(({idx:U,rowIdx:j})=>({idx:U,rowIdx:j,mode:"EDIT",row:T,originalRow:T}))}d(fr,"Pr"),h(fr,"handleCellInput");function Ni(v){return v>=Un&&v<=pe}d(Ni,"On"),h(Ni,"isColIdxWithinSelectionBounds");function Yt(v){return v>=0&&v<o.length}d(Yt,"Ne"),h(Yt,"isRowIdxWithinViewportBounds");function ni({idx:v,rowIdx:T}){return T>=gt&&T<=jt&&Ni(v)}d(ni,"jt"),h(ni,"isCellWithinSelectionBounds");function yr({idx:v,rowIdx:T}){return Yt(T)&&v>=0&&v<=pe}d(yr,"zr"),h(yr,"isCellWithinEditBounds");function Ui({idx:v,rowIdx:T}){return Yt(T)&&Ni(v)}d(Ui,"$n"),h(Ui,"isCellWithinViewportBounds");function We(v){return yr(v)&&_l({columns:lt,rows:o,selectedPosition:v})}d(We,"gt"),h(We,"isCellEditable");function ge(v,T){if(!ni(v))return;Gi();let D=o[v.rowIdx],W=hi(A,v);T&&We(v)?ue({...v,mode:"EDIT",row:D,originalRow:D}):W?Oe(lo(de.current)):(oi.current=!0,ue({...v,mode:"SELECT"})),z&&!W&&z({rowIdx:v.rowIdx,row:D,column:lt[v.idx]})}d(ge,"Xe"),h(ge,"selectCell");function mr(v,T,D){let{idx:W,rowIdx:U}=A,j=Hi&&W===-1;switch(v){case"ArrowUp":return{idx:W,rowIdx:U-1};case"ArrowDown":return{idx:W,rowIdx:U+1};case En:return{idx:W-1,rowIdx:U};case nr:return{idx:W+1,rowIdx:U};case"Tab":return{idx:W+(D?-1:1),rowIdx:U};case"Home":return j?{idx:W,rowIdx:gt}:{idx:0,rowIdx:T?gt:U};case"End":return j?{idx:W,rowIdx:jt}:{idx:pe,rowIdx:T?jt:U};case"PageUp":{if(A.rowIdx===gt)return A;let q=ar(U)+Ln(U)-ri;return{idx:W,rowIdx:q>0?dr(q):0}}case"PageDown":{if(A.rowIdx>=o.length)return A;let q=ar(U)+ri;return{idx:W,rowIdx:q<Ei?dr(q):o.length-1}}default:return A}}d(mr,"Hr"),h(mr,"getNextPosition");function Vi(v){let{key:T,shiftKey:D}=v,W="NONE";if(T==="Tab"){if(ml({shiftKey:D,maxColIdx:pe,minRowIdx:gt,maxRowIdx:jt,selectedPosition:A})){Gi();return}W="CHANGE_ROW"}v.preventDefault();let U=_i(v),j=mr(T,U,D);if(hi(A,j))return;let q=yl({moveUp:T==="ArrowUp",moveNext:T===nr||T==="Tab"&&!D,columns:lt,colSpanColumns:Qo,rows:o,topSummaryRows:r,bottomSummaryRows:l,minRowIdx:gt,mainHeaderRowIdx:ei,maxRowIdx:jt,lastFrozenColumnIndex:bt,cellNavigationMode:W,currentPosition:A,nextPosition:j,isCellWithinBounds:ni});ge(q)}d(Vi,"Wn"),h(Vi,"navigate");function br(v){if(ze===void 0)return;let{rowIdx:T}=A;return(T<ze?T<v&&v<=ze:T>v&&v>=ze)?A.idx:void 0}d(br,"Fr"),h(br,"getDraggedOverCellIdx");function $i(){let v=lo(de.current);v!==null&&(Oe(v),(v.querySelector('[tabindex="0"]')??v).focus({preventScroll:!0}))}d($i,"Un"),h($i,"focusCellOrCellContent");function wr(){if(B==null||A.mode==="EDIT"||!Ui(A))return;let{idx:v,rowIdx:T}=A,D=lt[v];if(D.renderEditCell==null||D.editable===!1)return;let W=qo(D);return M(El,{gridRowStart:ce+T+1,rows:o,column:D,columnWidth:W,maxColIdx:pe,isLastRow:T===jt,selectedPosition:A,isCellEditable:We,latestDraggedOverRowIdx:ir,onRowsChange:s,onClick:$i,onFill:B,setDragging:zn,setDraggedOverRowIdx:Oi})}d(wr,"Lr"),h(wr,"renderDragHandle");function xr(v){if(A.rowIdx!==v||A.mode==="SELECT")return;let{idx:T,row:D}=A,W=lt[T],U=ft(W,bt,{type:"ROW",row:D}),j=h(Q=>{oi.current=Q,ue(({idx:_t,rowIdx:Tt})=>({idx:_t,rowIdx:Tt,mode:"SELECT"}))},"closeEditor"),q=h((Q,_t,Tt)=>{_t?gi(()=>{De(W,A.rowIdx,Q),j(Tt)}):ue(kt=>({...kt,row:Q}))},"onRowChange");return o[A.rowIdx]!==A.originalRow&&j(!1),M(Hl,{column:W,colSpan:U,row:D,rowIdx:v,onRowChange:q,closeEditor:j,onKeyDown:I,navigate:Vi},W.key)}d(xr,"Nr"),h(xr,"getCellEditor");function _e(v){let T=A.idx===-1?void 0:lt[A.idx];return T!==void 0&&A.rowIdx===v&&!Ft.includes(T)?A.idx>tr?[...Ft,T]:[...Ft.slice(0,bt+1),T,...Ft.slice(bt+1)]:Ft}d(_e,"Ze"),h(_e,"getRowViewportColumns");function vr(){let v=[],{idx:T,rowIdx:D}=A,W=li&&D<Ae?Ae-1:Ae,U=li&&D>Re?Re+1:Re;for(let j=W;j<=U;j++){let q=j===Ae-1||j===Re+1,Q=q?D:j,_t=Ft,Tt=T===-1?void 0:lt[T];Tt!==void 0&&(q?_t=[Tt]:_t=_e(Q));let kt=o[Q],ts=ce+Q+1,ji=Q,Yi=!1;typeof n=="function"&&(ji=n(kt),Yi=u?.has(ji)??!1),v.push(mt(ji,{"aria-rowindex":ce+Q+1,"aria-selected":Mi?Yi:void 0,rowIdx:Q,row:kt,viewportColumns:_t,isRowSelectionDisabled:f?.(kt)??!1,isRowSelected:Yi,onCellClick:Xn,onCellDoubleClick:Kn,onCellContextMenu:qn,rowClass:K,gridRowStart:ts,copiedCellIdx:ae!==null&&ae.row===kt?lt.findIndex(es=>es.key===ae.columnKey):void 0,selectedCellIdx:D===Q?T:void 0,draggedOverCellIdx:br(Q),setDraggedOverRowIdx:Xo?Oi:void 0,lastFrozenColumnIndex:bt,onRowChange:Qn,selectCell:Fi,selectedCellEditor:xr(Q)}))}return v}d(vr,"Mr"),h(vr,"getViewportRows"),(A.idx>pe||A.rowIdx>jt)&&(ue({idx:-1,rowIdx:gt-1,mode:"SELECT"}),Oi(void 0));let si=`repeat(${$t}, ${L}px)`;Be>0&&(si+=` repeat(${Be}, ${X}px)`),o.length>0&&(si+=On),he>0&&(si+=` repeat(${he}, ${X}px)`);let Cr=A.idx===-1&&A.rowIdx!==gt-1;return M("div",{role:Se,"aria-label":ee,"aria-labelledby":dt,"aria-describedby":st,"aria-multiselectable":Mi?!0:void 0,"aria-colcount":lt.length,"aria-rowcount":sr,className:Gt(ga,nt,Xo&&fa),style:{...$,scrollPaddingInlineStart:A.idx>bt||ti?.idx!==void 0?`${Mn}px`:void 0,scrollPaddingBlock:Yt(A.rowIdx)||ti?.rowIdx!==void 0?`${Wi+Be*X}px ${he*X}px`:void 0,gridTemplateColumns:Gn,gridTemplateRows:si,"--rdg-header-row-height":`${L}px`,"--rdg-scroll-height":`${Vn}px`,...Wn},dir:oe,ref:de,onScroll:pr,onKeyDown:ur,"data-testid":ie,children:[M(Is,{value:Hn,children:[M(As,{value:Jn,children:M(Bs,{value:Fn,children:[Array.from({length:Ai},(v,T)=>M(ra,{rowIdx:T+1,level:-Ai+T,columns:_e(gt+T),selectedCellIdx:A.rowIdx===gt+T?A.idx:void 0,selectCell:hr},T)),M(oa,{rowIdx:$t,columns:_e(ei),onColumnResize:$n,onColumnsReorder:jn,sortColumns:y,onSortColumnsChange:Yn,lastFrozenColumnIndex:bt,selectedCellIdx:A.rowIdx===ei?A.idx:void 0,selectCell:hr,shouldFocusGrid:!Hi,direction:oe})]})}),o.length===0&&Qe?Qe:M(zt,{children:[r?.map((v,T)=>{let D=$t+1+T,W=ei+1+T,U=A.rowIdx===W,j=Wi+X*T;return M(Ur,{"aria-rowindex":D,rowIdx:W,gridRowStart:D,row:v,top:j,bottom:void 0,viewportColumns:_e(W),lastFrozenColumnIndex:bt,selectedCellIdx:U?A.idx:void 0,isTop:!0,selectCell:Fi},T)}),M(zs,{value:Zn,children:vr()}),l?.map((v,T)=>{let D=ce+o.length+T+1,W=o.length+T,U=A.rowIdx===W,j=ri>Ei?Zo-X*(l.length-T):void 0,q=j===void 0?X*(l.length-1-T):void 0;return M(Ur,{"aria-rowindex":sr-he+T+1,rowIdx:W,gridRowStart:D,row:v,top:j,bottom:q,viewportColumns:_e(W),lastFrozenColumnIndex:bt,selectedCellIdx:U?A.idx:void 0,isTop:!1,selectCell:Fi},T)})]})]}),wr(),gl(Ft),Di&&M("div",{ref:ii,tabIndex:Cr?0:-1,className:Gt(ya,Cr&&[Zs,bt!==-1&&Qs],!Yt(A.rowIdx)&&ma),style:{gridRowStart:A.rowIdx+ce+1}}),ti!==null&&M(Kl,{scrollToPosition:ti,setScrollToCellPosition:Ko,gridElement:de.current})]})}d(en,"Qi");h(en,"DataGrid");function lo(t){return t.querySelector(':scope > [role="row"] > [tabindex="0"]')}d(lo,"Fo");h(lo,"getCellToScroll");function hi(t,e){return t.idx===e.idx&&t.rowIdx===e.rowIdx}d(hi,"_n");h(hi,"isSamePosition");var Sa=mo(en),Ta="g1yxluv37-0-0-beta-47",Sh=`rdg-group-row ${Ta}`,ka="t7vyx3i7-0-0-beta-47",Th=`rdg-text-editor ${ka}`;function on(t){let e=ut(()=>t.columns(),[t,t.dataChecksum()]),i=ut(()=>t.data(),[t,t.dataChecksum()]);return[e,i]}d(on,"Jo");h(on,"useData");(function(){if(!document.getElementById("acd94ec7")){var t=document.createElement("style");t.id="acd94ec7",t.textContent=`@layer rdg {
9
2
  @layer Defaults,
10
3
  FocusSink,
11
4
  CheckboxInput,
@@ -453,7 +446,7 @@ Error generating stack: `+d.message+`
453
446
  }
454
447
  }
455
448
 
456
- `,document.head.appendChild(i)}})();function Pd(i,o,l){let s=o;return[...i].sort((h,p)=>h[s]<p[s]?l?1:-1:h[s]>p[s]?l?-1:1:0)}c(Pd,"_p");u(Pd,"copyAndSort");var qg=u(({message:i})=>Et.default.createElement("div",{style:{textAlign:"center",gridColumn:"1/-1"}},i),"EmptyRowsRenderer"),Qg=u(({table:i,sort:o})=>{let[l,s]=ip(i),h=i.multiSelect(),p=i.columnTypes(),f=i.columnPatterns(),m=i.columnFormats(),[b,_]=Et.default.useState([]),[I,P]=Et.default.useState(),[z,R]=Et.default.useState([]),[M,N]=Et.default.useState(new Set);Et.default.useEffect(()=>{_([...h?[Zf]:[],...l.map(G=>{let K=p[G]??"string",X,E,k;switch(K){case"time":E=f[G]!==void 0?Kg(f[G]):void 0,k=m[G]!==void 0?Xg(m[G]):void 0;break;case"number":X=u(Q=>Et.default.createElement("div",{style:{textAlign:"right"}},Q.row[Q.column.key]),"formatter");default:k=m[G]!==void 0?Yg(m[G]):void 0}return{key:G,name:G,resizable:!0,sortable:!0,minWidth:80,renderCell:X,__hpcc_pattern:E,__hpcc_format:k}})])},[m,f,p,l,h]);let F=Et.default.useCallback(G=>{let K=G.slice(-1)[0],X=K!==void 0,E=K?.direction==="DESC";P(K),R(Pd(z,X?K.columnKey:"key",X?E:!1))},[z]),D=Et.default.useCallback(G=>G.key,[]),Y=Et.default.useCallback(G=>{N(G)},[]),j=Et.default.useCallback((G,K)=>{i.onRowClickCallback(G,K.key)},[i]);return Et.default.useEffect(()=>{let G=s.map((K,X)=>{let E={key:X};return b.forEach((k,Q)=>{let ae=K[Q];k.__hpcc_pattern&&k.__hpcc_format?ae=k.__hpcc_format(k.__hpcc_pattern(ae)):k.__hpcc_pattern?ae=k.__hpcc_pattern(ae).toString():k.__hpcc_format&&(ae=k.__hpcc_format(ae)),E[k.key]=ae}),E});o?.attribute&&(G=Pd(G,o.attribute,o.descending)),R(G)},[b,s,o]),Et.default.createElement(Vg,{columns:b,headerRowHeight:24,rows:z,rowKeyGetter:D,rowHeight:20,renderers:{noRowsFallback:Et.default.createElement(qg,{message:i.noDataMessage()})},className:i.darkMode()?"rdg-dark":"rdg-light",sortColumns:I?[I]:[],onSortColumnsChange:F,selectedRows:M,onSelectedRowsChange:h?Y:void 0,onCellClick:h?void 0:(G,K)=>j(G.row,G.column),"aria-describedby":"","aria-label":"","aria-labelledby":"",style:{height:"100%"}})},"ReactTable");(function(){if(!document.getElementById("c2b63dd3")){var i=document.createElement("style");i.id="c2b63dd3",i.textContent=`.dgrid2_Table .rdg {
449
+ `,document.head.appendChild(t)}})();function no(t,e,i){let o=e;return[...t].sort((r,l)=>r[o]<l[o]?i?1:-1:r[o]>l[o]?i?-1:1:0)}d(no,"Qo");h(no,"copyAndSort");var Ba=h(({message:t})=>It("div",{style:{textAlign:"center",gridColumn:"1/-1"}},t),"EmptyRowsRenderer"),Aa=h(({table:t,sort:e})=>{let[i,o]=on(t),r=t.multiSelect(),l=t.columnTypes(),n=t.columnPatterns(),s=t.columnFormats(),[a,c]=et([]),[g,u]=et(),[f,p]=et([]),[y,C]=et(new Set);me(()=>{c([...r?[Rs]:[],...i.map(I=>{let z=l[I]??"string",P,m,_;switch(z){case"time":m=n[I]!==void 0?za(n[I]):void 0,_=s[I]!==void 0?Pa(s[I]):void 0;break;case"number":P=h(B=>It("div",{style:{textAlign:"right"}},B.row[B.column.key]),"formatter");default:_=s[I]!==void 0?Ia(s[I]):void 0}return{key:I,name:I,resizable:!0,sortable:!0,minWidth:80,renderCell:P,__hpcc_pattern:m,__hpcc_format:_}})])},[s,n,l,i,r]);let x=Ot(I=>{let z=I.slice(-1)[0],P=z!==void 0,m=z?.direction==="DESC";u(z),p(no(f,P?z.columnKey:"key",P?m:!1))},[f]),b=Ot(I=>I.key,[]),S=Ot(I=>{C(I)},[]),k=Ot((I,z)=>{t.onRowClickCallback(I,z.key)},[t]);return me(()=>{let I=o.map((z,P)=>{let m={key:P};return a.forEach((_,B)=>{let R=z[B];_.__hpcc_pattern&&_.__hpcc_format?R=_.__hpcc_format(_.__hpcc_pattern(R)):_.__hpcc_pattern?R=_.__hpcc_pattern(R).toString():_.__hpcc_format&&(R=_.__hpcc_format(R)),m[_.key]=R}),m});e?.attribute&&(I=no(I,e.attribute,e.descending)),p(I)},[a,o,e]),It(Sa,{columns:a,headerRowHeight:24,rows:f,rowKeyGetter:b,rowHeight:20,renderers:{noRowsFallback:It(Ba,{message:t.noDataMessage()})},className:t.darkMode()?"rdg-dark":"rdg-light",sortColumns:g?[g]:[],onSortColumnsChange:x,selectedRows:y,onSelectedRowsChange:r?S:void 0,onCellClick:r?void 0:(I,z)=>k(I.row,I.column),"aria-describedby":"","aria-label":"","aria-labelledby":"",style:{height:"100%"}})},"ReactTable");(function(){if(!document.getElementById("c2b63dd3")){var t=document.createElement("style");t.id="c2b63dd3",t.textContent=`.dgrid2_Table .rdg {
457
450
  font-family: monospace, 'Courier New', Courier;
458
451
  }
459
452
 
@@ -462,11 +455,11 @@ Error generating stack: `+d.message+`
462
455
  inline-size: 16px;
463
456
  border-width: 2px;
464
457
  box-shadow: inset 0 0 0 3px var(--rdg-background-color);
465
- }`,document.head.appendChild(i)}})();var oi=class extends Ff{static{c(this,"_t")}static{u(this,"Table")}_div;_root;constructor(){super()}columnType(i,o){return arguments.length===1?this.columnTypes()[i]:(this.columnTypes({...this.columnTypes(),[i]:o}),this)}columnPattern(i,o){return arguments.length===1?this.columnPatterns()[i]:(this.columnPatterns({...this.columnPatterns(),[i]:o}),this)}columnFormat(i,o){return arguments.length===1?this.columnFormats()[i]:(this.columnFormats({...this.columnFormats(),[i]:o}),this)}_prevRow;_prevColumn;onRowClickCallback(i,o){this._prevRow&&JSON.stringify(this._prevRow)!==JSON.stringify(i)&&this.click(this._prevRow,this._prevColumn??"",!1),i&&this.click(i,o,!0),this._prevRow=i,this._prevColumn=o}enter(i,o){super.enter(i,o),this._div=o.append("div").style("display","grid"),this._root=(0,Bf.createRoot)(this._div.node())}update(i,o){super.update(i,o),this._div.style("width",this.width()+"px"),this._div.style("height",this.height()+"px"),this._root.render(Df.default.createElement(Qg,{table:this}))}exit(i,o){this._root.unmount(),this._div.remove(),super.exit(i,o)}click(i,o,l){}};oi.prototype._class+=" dgrid2_Table";oi.prototype.publish("noDataMessage","...empty...","string","No Data Message");oi.prototype.publish("darkMode",!1,"boolean","Dark Mode");oi.prototype.publish("multiSelect",!1,"boolean","Multiple Selection");oi.prototype.publish("columnTypes",{},"object",'Column Types ("boolean" | "number" | "string" | "time"');oi.prototype.publish("columnPatterns",{},"object","Column Patterns");oi.prototype.publish("columnFormats",{},"object","Column Formats");import{select as Sm}from"@hpcc-js/common";import{instanceOfIHighlight as dp}from"@hpcc-js/api";import{Database as km,Palette as ts,SVGWidget as Tm}from"@hpcc-js/common";import{format as Pm}from"@hpcc-js/common";import{scaleOrdinal as zm}from"@hpcc-js/common";import{select as jm}from"@hpcc-js/common";import{format as Um,formatLocale as Vm,formatPrefix as $m,formatSpecifier as Gm}from"@hpcc-js/common";import{dispatch as Ym}from"@hpcc-js/common";import{scaleLinear as Xm}from"@hpcc-js/common";import{sum as Km}from"@hpcc-js/common";import{HTMLWidget as ny}from"@hpcc-js/common";import{HTMLWidget as oy}from"@hpcc-js/common";import{select as ly}from"@hpcc-js/common";import{d3Event as ln,drag as pp,HTMLWidget as ay,Platform as sy,select as fp,Utility as uy}from"@hpcc-js/common";import{HTMLWidget as hy,Text as py}from"@hpcc-js/common";import{HTMLWidget as fy}from"@hpcc-js/common";import{HTMLWidget as gy,Text as my}from"@hpcc-js/common";import{select as yy}from"@hpcc-js/common";import{HTMLWidget as by}from"@hpcc-js/common";import{select as vy}from"@hpcc-js/common";var Zg=Object.create,Yd=Object.defineProperty,Jg=Object.getOwnPropertyDescriptor,em=Object.getOwnPropertyNames,tm=Object.getPrototypeOf,rm=Object.prototype.hasOwnProperty,B=c((i,o)=>Yd(i,"name",{value:o,configurable:!0}),"d"),im=c((i,o)=>()=>(o||i((o={exports:{}}).exports,o),o.exports),"le"),nm=c((i,o,l,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let h of em(o))!rm.call(i,h)&&h!==l&&Yd(i,h,{get:c(()=>o[h],"get"),enumerable:!(s=Jg(o,h))||s.enumerable});return i},"ne"),om=c((i,o,l)=>(l=i!=null?Zg(tm(i)):{},nm(o||!i||!i.__esModule?Yd(l,"default",{value:i,enumerable:!0}):l,i)),"ae"),lm=im((i,o)=>{(function(l,s){typeof define=="function"&&define.amd?define([],s):typeof i=="object"?o.exports=s():l.GridList=s()})(i,function(){var l=B(function(h,p){this._options=p;for(var f in this.defaults)this._options.hasOwnProperty(f)||(this._options[f]=this.defaults[f]);this.items=h,this._adjustSizeOfItems(),this.generateGrid()},"GridList");l.cloneItems=function(h,p){var f,m,b;for(p===void 0&&(p=[]),m=0;m<h.length;m++){p[m]||(p[m]={});for(b in h[m])p[m][b]=h[m][b]}return p},l.prototype={defaults:{lanes:5,direction:"horizontal"},toString:B(function(){var h=this.grid.length,p=`
466
- #|`,f=`
467
- --`,m,b,_;for(b=0;b<h;b++)p+=" "+this._padNumber(b," "),f+="---";for(p+=f,b=0;b<this._options.lanes;b++)for(p+=`
468
- `+this._padNumber(b," ")+"|",_=0;_<h;_++)p+=" ",m=this.grid[_][b],p+=m?this._padNumber(this.items.indexOf(m),"0"):"--";return p+=`
469
- `,p},"toString"),generateGrid:B(function(){var h;for(this._resetGrid(),h=0;h<this.items.length;h++)this._markItemPositionToGrid(this.items[h])},"generateGrid"),resizeGrid:B(function(h){var p=0;this._options.lanes=h,this._adjustSizeOfItems(),this._sortItemsByPosition(),this._resetGrid();for(var f=0;f<this.items.length;f++){var m=this.items[f],b=this._getItemPosition(m);this._updateItemPosition(m,this.findPositionForItem(m,{x:p,y:0})),p=Math.max(p,b.x)}this._pullItemsToLeft()},"resizeGrid"),findPositionForItem:B(function(h,p,f){var m,b,_;for(m=p.x;m<this.grid.length;m++)if(f!==void 0){if(_=[m,f],this._itemFitsAtPosition(h,_))return _}else for(b=p.y;b<this._options.lanes;b++)if(_=[m,b],this._itemFitsAtPosition(h,_))return _;var I=this.grid.length,P=0;return f!==void 0&&this._itemFitsAtPosition(h,[I,f])&&(P=f),[I,P]},"findPositionForItem"),moveItemToPosition:B(function(h,p){var f=this._getItemPosition({x:p[0],y:p[1],w:h.w,h:h.h});this._updateItemPosition(h,[f.x,f.y]),this._resolveCollisions(h)},"moveItemToPosition"),resizeItem:B(function(h,p){var f=p.w||h.w,m=p.h||h.h;this._updateItemSize(h,f,m),this._resolveCollisions(h),this._pullItemsToLeft()},"resizeItem"),getChangedItems:B(function(h,p){for(var f=[],m=0;m<h.length;m++){var b=this._getItemByAttribute(p,h[m][p]);(b.x!==h[m].x||b.y!==h[m].y||b.w!==h[m].w||b.h!==h[m].h)&&f.push(b)}return f},"getChangedItems"),_sortItemsByPosition:B(function(){this.items.sort(function(h,p){var f=this._getItemPosition(h),m=this._getItemPosition(p);return f.x!=m.x?f.x-m.x:f.y!=m.y?f.y-m.y:0}.bind(this))},"_sortItemsByPosition"),_adjustSizeOfItems:B(function(){for(var h=0;h<this.items.length;h++){var p=this.items[h];p.autoSize===void 0&&(p.autoSize=p.w===0||p.h===0),p.autoSize&&(this._options.direction==="horizontal"?p.h=this._options.lanes:p.w=this._options.lanes)}},"_adjustSizeOfItems"),_resetGrid:B(function(){this.grid=[]},"_resetGrid"),_itemFitsAtPosition:B(function(h,p){var f=this._getItemPosition(h),m,b,_;if(p[0]<0||p[1]<0||p[1]+f.h>this._options.lanes)return!1;for(m=p[0];m<p[0]+f.w;m++){var I=this.grid[m];if(I){for(b=p[1];b<p[1]+f.h;b++)if(I[b]&&I[b]!==h)return!1}}return!0},"_itemFitsAtPosition"),_updateItemPosition:B(function(h,p){h.x!==null&&h.y!==null&&this._deleteItemPositionFromGrid(h),this._setItemPosition(h,p),this._markItemPositionToGrid(h)},"_updateItemPosition"),_updateItemSize:B(function(h,p,f){h.x!==null&&h.y!==null&&this._deleteItemPositionFromGrid(h),h.w=p,h.h=f,this._markItemPositionToGrid(h)},"_updateItemSize"),_markItemPositionToGrid:B(function(h){var p=this._getItemPosition(h),f,m;for(this._ensureColumns(p.x+p.w),f=p.x;f<p.x+p.w;f++)for(m=p.y;m<p.y+p.h;m++)this.grid[f][m]=h},"_markItemPositionToGrid"),_deleteItemPositionFromGrid:B(function(h){var p=this._getItemPosition(h),f,m;for(f=p.x;f<p.x+p.w;f++)if(this.grid[f])for(m=p.y;m<p.y+p.h;m++)this.grid[f][m]==h&&(this.grid[f][m]=null)},"_deleteItemPositionFromGrid"),_ensureColumns:B(function(h){var p;for(p=0;p<h;p++)this.grid[p]||this.grid.push(new s(this._options.lanes))},"_ensureColumns"),_getItemsCollidingWithItem:B(function(h){for(var p=[],f=0;f<this.items.length;f++)h!=this.items[f]&&this._itemsAreColliding(h,this.items[f])&&p.push(f);return p},"_getItemsCollidingWithItem"),_itemsAreColliding:B(function(h,p){var f=this._getItemPosition(h),m=this._getItemPosition(p);return!(m.x>=f.x+f.w||m.x+m.w<=f.x||m.y>=f.y+f.h||m.y+m.h<=f.y)},"_itemsAreColliding"),_resolveCollisions:B(function(h){this._tryToResolveCollisionsLocally(h)||this._pullItemsToLeft(h),this._pullItemsToLeft()},"_resolveCollisions"),_tryToResolveCollisionsLocally:B(function(h){var p=this._getItemsCollidingWithItem(h);if(!p.length)return!0;var f=new l([],this._options),m,b,_,I;l.cloneItems(this.items,f.items),f.generateGrid();for(var P=0;P<p.length;P++){var z=f.items[p[P]],R=this._getItemPosition(z),M=this._getItemPosition(h);if(m=[M.x-R.w,R.y],b=[M.x+M.w,R.y],_=[R.x,M.y-R.h],I=[R.x,M.y+M.h],f._itemFitsAtPosition(z,m))f._updateItemPosition(z,m);else if(f._itemFitsAtPosition(z,_))f._updateItemPosition(z,_);else if(f._itemFitsAtPosition(z,I))f._updateItemPosition(z,I);else if(f._itemFitsAtPosition(z,b))f._updateItemPosition(z,b);else return!1}return l.cloneItems(f.items,this.items),this.generateGrid(),!0},"_tryToResolveCollisionsLocally"),_pullItemsToLeft:B(function(h){if(this._sortItemsByPosition(),this._resetGrid(),h){var p=this._getItemPosition(h);this._updateItemPosition(h,[p.x,p.y])}for(var f=0;f<this.items.length;f++){var m=this.items[f],b=this._getItemPosition(m);if(!(h&&m==h)){var _=this._findLeftMostPositionForItem(m),I=this.findPositionForItem(m,{x:_,y:0},b.y);this._updateItemPosition(m,I)}}},"_pullItemsToLeft"),_findLeftMostPositionForItem:B(function(h){for(var p=0,f=this._getItemPosition(h),m=0;m<this.grid.length;m++)for(var b=f.y;b<f.y+f.h;b++){var _=this.grid[m][b];if(_){var I=this._getItemPosition(_);this.items.indexOf(_)<this.items.indexOf(h)&&(p=I.x+I.w)}}return p},"_findLeftMostPositionForItem"),_getItemByAttribute:B(function(h,p){for(var f=0;f<this.items.length;f++)if(this.items[f][h]===p)return this.items[f];return null},"_getItemByAttribute"),_padNumber:B(function(h,p){return h>=10?h:p+h},"_padNumber"),_getItemPosition:B(function(h){return this._options.direction==="horizontal"?h:{x:h.y,y:h.x,w:h.h,h:h.w}},"_getItemPosition"),_setItemPosition:B(function(h,p){this._options.direction==="horizontal"?(h.x=p[0],h.y=p[1]):(h.x=p[1],h.y=p[0])},"_setItemPosition")};var s=B(function(h){for(var p=0;p<h;p++)this.push(null)},"GridCol");return s.prototype=[],l})});(function(){if(!document.getElementById("e4246716")){var i=document.createElement("style");i.id="e4246716",i.textContent=`.layout_AbsoluteSurface {
458
+ }`,document.head.appendChild(t)}})();var Et=class extends gs{static{d(this,"_e")}static{h(this,"Table")}_div;constructor(){super()}columnType(t,e){return arguments.length===1?this.columnTypes()[t]:(this.columnTypes({...this.columnTypes(),[t]:e}),this)}columnPattern(t,e){return arguments.length===1?this.columnPatterns()[t]:(this.columnPatterns({...this.columnPatterns(),[t]:e}),this)}columnFormat(t,e){return arguments.length===1?this.columnFormats()[t]:(this.columnFormats({...this.columnFormats(),[t]:e}),this)}_prevRow;_prevColumn;onRowClickCallback(t,e){this._prevRow&&JSON.stringify(this._prevRow)!==JSON.stringify(t)&&this.click(this._prevRow,this._prevColumn??"",!1),t&&this.click(t,e,!0),this._prevRow=t,this._prevColumn=e}enter(t,e){super.enter(t,e),this._div=e.append("div").style("display","grid")}update(t,e){super.update(t,e),this._div.style("width",this.width()+"px"),this._div.style("height",this.height()+"px"),rl(It(Aa,{table:this}),this._div.node())}exit(t,e){dl(this._div.node()),this._div.remove(),super.exit(t,e)}click(t,e,i){}};Et.prototype._class+=" dgrid2_Table";Et.prototype.publish("noDataMessage","...empty...","string","No Data Message");Et.prototype.publish("darkMode",!1,"boolean","Dark Mode");Et.prototype.publish("multiSelect",!1,"boolean","Multiple Selection");Et.prototype.publish("columnTypes",{},"object",'Column Types ("boolean" | "number" | "string" | "time"');Et.prototype.publish("columnPatterns",{},"object","Column Patterns");Et.prototype.publish("columnFormats",{},"object","Column Formats");import{select as rd}from"@hpcc-js/common";import{instanceOfIHighlight as hn}from"@hpcc-js/api";import{Database as ld,Palette as Ti,SVGWidget as nd}from"@hpcc-js/common";import{format as sd}from"@hpcc-js/common";import{scaleOrdinal as ad}from"@hpcc-js/common";import{select as vd}from"@hpcc-js/common";import{format as Cd,formatLocale as Sd,formatPrefix as Td,formatSpecifier as kd}from"@hpcc-js/common";import{dispatch as Id}from"@hpcc-js/common";import{scaleLinear as Pd}from"@hpcc-js/common";import{sum as zd}from"@hpcc-js/common";import{HTMLWidget as Fd}from"@hpcc-js/common";import{HTMLWidget as Od}from"@hpcc-js/common";import{select as Ld}from"@hpcc-js/common";import{d3Event as Zt,drag as pn,HTMLWidget as Gd,Platform as Nd,select as gn,Utility as Ud}from"@hpcc-js/common";import{HTMLWidget as jd,Text as Yd}from"@hpcc-js/common";import{HTMLWidget as Xd}from"@hpcc-js/common";import{HTMLWidget as Kd,Text as qd}from"@hpcc-js/common";import{select as Jd}from"@hpcc-js/common";import{HTMLWidget as Zd}from"@hpcc-js/common";import{select as Qd}from"@hpcc-js/common";var Ra=Object.create,Lo=Object.defineProperty,Da=Object.getOwnPropertyDescriptor,Wa=Object.getOwnPropertyNames,Ma=Object.getPrototypeOf,Ea=Object.prototype.hasOwnProperty,w=d((t,e)=>Lo(t,"name",{value:e,configurable:!0}),"d"),Ha=d((t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),"le"),Fa=d((t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Wa(e))!Ea.call(t,r)&&r!==i&&Lo(t,r,{get:d(()=>e[r],"get"),enumerable:!(o=Da(e,r))||o.enumerable});return t},"ne"),Oa=d((t,e,i)=>(i=t!=null?Ra(Ma(t)):{},Fa(e||!t||!t.__esModule?Lo(i,"default",{value:t,enumerable:!0}):i,t)),"ae"),La=Ha((t,e)=>{(function(i,o){typeof define=="function"&&define.amd?define([],o):typeof t=="object"?e.exports=o():i.GridList=o()})(t,function(){var i=w(function(r,l){this._options=l;for(var n in this.defaults)this._options.hasOwnProperty(n)||(this._options[n]=this.defaults[n]);this.items=r,this._adjustSizeOfItems(),this.generateGrid()},"GridList");i.cloneItems=function(r,l){var n,s,a;for(l===void 0&&(l=[]),s=0;s<r.length;s++){l[s]||(l[s]={});for(a in r[s])l[s][a]=r[s][a]}return l},i.prototype={defaults:{lanes:5,direction:"horizontal"},toString:w(function(){var r=this.grid.length,l=`
459
+ #|`,n=`
460
+ --`,s,a,c;for(a=0;a<r;a++)l+=" "+this._padNumber(a," "),n+="---";for(l+=n,a=0;a<this._options.lanes;a++)for(l+=`
461
+ `+this._padNumber(a," ")+"|",c=0;c<r;c++)l+=" ",s=this.grid[c][a],l+=s?this._padNumber(this.items.indexOf(s),"0"):"--";return l+=`
462
+ `,l},"toString"),generateGrid:w(function(){var r;for(this._resetGrid(),r=0;r<this.items.length;r++)this._markItemPositionToGrid(this.items[r])},"generateGrid"),resizeGrid:w(function(r){var l=0;this._options.lanes=r,this._adjustSizeOfItems(),this._sortItemsByPosition(),this._resetGrid();for(var n=0;n<this.items.length;n++){var s=this.items[n],a=this._getItemPosition(s);this._updateItemPosition(s,this.findPositionForItem(s,{x:l,y:0})),l=Math.max(l,a.x)}this._pullItemsToLeft()},"resizeGrid"),findPositionForItem:w(function(r,l,n){var s,a,c;for(s=l.x;s<this.grid.length;s++)if(n!==void 0){if(c=[s,n],this._itemFitsAtPosition(r,c))return c}else for(a=l.y;a<this._options.lanes;a++)if(c=[s,a],this._itemFitsAtPosition(r,c))return c;var g=this.grid.length,u=0;return n!==void 0&&this._itemFitsAtPosition(r,[g,n])&&(u=n),[g,u]},"findPositionForItem"),moveItemToPosition:w(function(r,l){var n=this._getItemPosition({x:l[0],y:l[1],w:r.w,h:r.h});this._updateItemPosition(r,[n.x,n.y]),this._resolveCollisions(r)},"moveItemToPosition"),resizeItem:w(function(r,l){var n=l.w||r.w,s=l.h||r.h;this._updateItemSize(r,n,s),this._resolveCollisions(r),this._pullItemsToLeft()},"resizeItem"),getChangedItems:w(function(r,l){for(var n=[],s=0;s<r.length;s++){var a=this._getItemByAttribute(l,r[s][l]);(a.x!==r[s].x||a.y!==r[s].y||a.w!==r[s].w||a.h!==r[s].h)&&n.push(a)}return n},"getChangedItems"),_sortItemsByPosition:w(function(){this.items.sort(function(r,l){var n=this._getItemPosition(r),s=this._getItemPosition(l);return n.x!=s.x?n.x-s.x:n.y!=s.y?n.y-s.y:0}.bind(this))},"_sortItemsByPosition"),_adjustSizeOfItems:w(function(){for(var r=0;r<this.items.length;r++){var l=this.items[r];l.autoSize===void 0&&(l.autoSize=l.w===0||l.h===0),l.autoSize&&(this._options.direction==="horizontal"?l.h=this._options.lanes:l.w=this._options.lanes)}},"_adjustSizeOfItems"),_resetGrid:w(function(){this.grid=[]},"_resetGrid"),_itemFitsAtPosition:w(function(r,l){var n=this._getItemPosition(r),s,a,c;if(l[0]<0||l[1]<0||l[1]+n.h>this._options.lanes)return!1;for(s=l[0];s<l[0]+n.w;s++){var g=this.grid[s];if(g){for(a=l[1];a<l[1]+n.h;a++)if(g[a]&&g[a]!==r)return!1}}return!0},"_itemFitsAtPosition"),_updateItemPosition:w(function(r,l){r.x!==null&&r.y!==null&&this._deleteItemPositionFromGrid(r),this._setItemPosition(r,l),this._markItemPositionToGrid(r)},"_updateItemPosition"),_updateItemSize:w(function(r,l,n){r.x!==null&&r.y!==null&&this._deleteItemPositionFromGrid(r),r.w=l,r.h=n,this._markItemPositionToGrid(r)},"_updateItemSize"),_markItemPositionToGrid:w(function(r){var l=this._getItemPosition(r),n,s;for(this._ensureColumns(l.x+l.w),n=l.x;n<l.x+l.w;n++)for(s=l.y;s<l.y+l.h;s++)this.grid[n][s]=r},"_markItemPositionToGrid"),_deleteItemPositionFromGrid:w(function(r){var l=this._getItemPosition(r),n,s;for(n=l.x;n<l.x+l.w;n++)if(this.grid[n])for(s=l.y;s<l.y+l.h;s++)this.grid[n][s]==r&&(this.grid[n][s]=null)},"_deleteItemPositionFromGrid"),_ensureColumns:w(function(r){var l;for(l=0;l<r;l++)this.grid[l]||this.grid.push(new o(this._options.lanes))},"_ensureColumns"),_getItemsCollidingWithItem:w(function(r){for(var l=[],n=0;n<this.items.length;n++)r!=this.items[n]&&this._itemsAreColliding(r,this.items[n])&&l.push(n);return l},"_getItemsCollidingWithItem"),_itemsAreColliding:w(function(r,l){var n=this._getItemPosition(r),s=this._getItemPosition(l);return!(s.x>=n.x+n.w||s.x+s.w<=n.x||s.y>=n.y+n.h||s.y+s.h<=n.y)},"_itemsAreColliding"),_resolveCollisions:w(function(r){this._tryToResolveCollisionsLocally(r)||this._pullItemsToLeft(r),this._pullItemsToLeft()},"_resolveCollisions"),_tryToResolveCollisionsLocally:w(function(r){var l=this._getItemsCollidingWithItem(r);if(!l.length)return!0;var n=new i([],this._options),s,a,c,g;i.cloneItems(this.items,n.items),n.generateGrid();for(var u=0;u<l.length;u++){var f=n.items[l[u]],p=this._getItemPosition(f),y=this._getItemPosition(r);if(s=[y.x-p.w,p.y],a=[y.x+y.w,p.y],c=[p.x,y.y-p.h],g=[p.x,y.y+y.h],n._itemFitsAtPosition(f,s))n._updateItemPosition(f,s);else if(n._itemFitsAtPosition(f,c))n._updateItemPosition(f,c);else if(n._itemFitsAtPosition(f,g))n._updateItemPosition(f,g);else if(n._itemFitsAtPosition(f,a))n._updateItemPosition(f,a);else return!1}return i.cloneItems(n.items,this.items),this.generateGrid(),!0},"_tryToResolveCollisionsLocally"),_pullItemsToLeft:w(function(r){if(this._sortItemsByPosition(),this._resetGrid(),r){var l=this._getItemPosition(r);this._updateItemPosition(r,[l.x,l.y])}for(var n=0;n<this.items.length;n++){var s=this.items[n],a=this._getItemPosition(s);if(!(r&&s==r)){var c=this._findLeftMostPositionForItem(s),g=this.findPositionForItem(s,{x:c,y:0},a.y);this._updateItemPosition(s,g)}}},"_pullItemsToLeft"),_findLeftMostPositionForItem:w(function(r){for(var l=0,n=this._getItemPosition(r),s=0;s<this.grid.length;s++)for(var a=n.y;a<n.y+n.h;a++){var c=this.grid[s][a];if(c){var g=this._getItemPosition(c);this.items.indexOf(c)<this.items.indexOf(r)&&(l=g.x+g.w)}}return l},"_findLeftMostPositionForItem"),_getItemByAttribute:w(function(r,l){for(var n=0;n<this.items.length;n++)if(this.items[n][r]===l)return this.items[n];return null},"_getItemByAttribute"),_padNumber:w(function(r,l){return r>=10?r:l+r},"_padNumber"),_getItemPosition:w(function(r){return this._options.direction==="horizontal"?r:{x:r.y,y:r.x,w:r.h,h:r.w}},"_getItemPosition"),_setItemPosition:w(function(r,l){this._options.direction==="horizontal"?(r.x=l[0],r.y=l[1]):(r.x=l[1],r.y=l[0])},"_setItemPosition")};var o=w(function(r){for(var l=0;l<r;l++)this.push(null)},"GridCol");return o.prototype=[],i})});(function(){if(!document.getElementById("e4246716")){var t=document.createElement("style");t.id="e4246716",t.textContent=`.layout_AbsoluteSurface {
470
463
  pointer-events: none !important;
471
464
  }
472
465
 
@@ -475,7 +468,7 @@ Error generating stack: `+d.message+`
475
468
  overflow: hidden;
476
469
  pointer-events: all;
477
470
  }
478
- `,document.head.appendChild(i)}})();var Ei=class extends am{static{c(this,"G")}static{B(this,"AbsoluteSurface")}constructor(){super(),this._tag="div"}enter(i,o){super.enter(i,o)}update(i,o){super.update(i,o);let l=0,s=0,h=this.clientWidth(),p=this.clientHeight();switch(this.units()){case"pixels":l=this.widgetX(),s=this.widgetY(),h=this.widgetWidth()===""?h-l:Number(this.widgetWidth()),p=this.widgetHeight()===""?p-s:Number(this.widgetHeight());break;case"percent":l=this.widgetX()*h/100,s=this.widgetY()*p/100,h=this.widgetWidth()===""?h-l:Number(this.widgetWidth())*h/100,p=this.widgetHeight()===""?p-s:Number(this.widgetHeight())*p/100;break}o.style("opacity",this.opacity());let f=o.selectAll("#"+this._id+" > .placeholder").data(this.widget()?[this.widget()]:[],function(m){return m._id});f.enter().append("div").attr("class","placeholder").each(function(m){m.target(this)}).merge(f).style("left",l+"px").style("top",s+"px").style("width",h+"px").style("bottom",p+"px").each(function(m){m.resize({width:h,height:p})}),f.exit().each(function(m){m.target(null)}).remove()}exit(i,o){this.widget()&&this.widget().target(null),super.exit(i,o)}};Ei.prototype._class+=" layout_AbsoluteSurface";Ei.prototype.publish("units","percent","set","Units",["pixels","percent"]);Ei.prototype.publish("widgetX",0,"number","Widget XPos");Ei.prototype.publish("widgetY",0,"number","Widget YPos");Ei.prototype.publish("widgetWidth","100","string","Widget Width, omit for full");Ei.prototype.publish("widgetHeight","100","string","Widget Height, omit for full");Ei.prototype.publish("widget",null,"widget","Widget",null,{tags:["Private"]});Ei.prototype.publish("opacity",1,"number","Opacity");(function(){if(!document.getElementById("d5b8185a")){var i=document.createElement("style");i.id="d5b8185a",i.textContent=`.layout_Accordion > ul{
471
+ `,document.head.appendChild(t)}})();var Nt=class extends Ga{static{d(this,"G")}static{w(this,"AbsoluteSurface")}constructor(){super(),this._tag="div"}enter(t,e){super.enter(t,e)}update(t,e){super.update(t,e);let i=0,o=0,r=this.clientWidth(),l=this.clientHeight();switch(this.units()){case"pixels":i=this.widgetX(),o=this.widgetY(),r=this.widgetWidth()===""?r-i:Number(this.widgetWidth()),l=this.widgetHeight()===""?l-o:Number(this.widgetHeight());break;case"percent":i=this.widgetX()*r/100,o=this.widgetY()*l/100,r=this.widgetWidth()===""?r-i:Number(this.widgetWidth())*r/100,l=this.widgetHeight()===""?l-o:Number(this.widgetHeight())*l/100;break}e.style("opacity",this.opacity());let n=e.selectAll("#"+this._id+" > .placeholder").data(this.widget()?[this.widget()]:[],function(s){return s._id});n.enter().append("div").attr("class","placeholder").each(function(s){s.target(this)}).merge(n).style("left",i+"px").style("top",o+"px").style("width",r+"px").style("bottom",l+"px").each(function(s){s.resize({width:r,height:l})}),n.exit().each(function(s){s.target(null)}).remove()}exit(t,e){this.widget()&&this.widget().target(null),super.exit(t,e)}};Nt.prototype._class+=" layout_AbsoluteSurface";Nt.prototype.publish("units","percent","set","Units",["pixels","percent"]);Nt.prototype.publish("widgetX",0,"number","Widget XPos");Nt.prototype.publish("widgetY",0,"number","Widget YPos");Nt.prototype.publish("widgetWidth","100","string","Widget Width, omit for full");Nt.prototype.publish("widgetHeight","100","string","Widget Height, omit for full");Nt.prototype.publish("widget",null,"widget","Widget",null,{tags:["Private"]});Nt.prototype.publish("opacity",1,"number","Opacity");(function(){if(!document.getElementById("d5b8185a")){var t=document.createElement("style");t.id="d5b8185a",t.textContent=`.layout_Accordion > ul{
479
472
  position:relative;
480
473
  }
481
474
  .layout_Accordion.open > span {
@@ -559,7 +552,7 @@ Error generating stack: `+d.message+`
559
552
  width:24px;
560
553
  height:24px;
561
554
  color:#FFF;
562
- }`,document.head.appendChild(i)}})();var Ri=class extends um{static{c(this,"Y")}static{B(this,"Accordion")}_isClosed;titleSpan;iconDiv;ul;icon;constructor(){super(),this._tag="div",this._isClosed=!1}pushListItem(i,o=!1,l=!1){let s=this.content();return i._protected=l,o?s.unshift(i):s.push(i),this.content(s),this}clearListItems(){let i=[];for(let o in this.content())this.content()[o]._protected&&i.push(this.content()[o]);return this.content(i),this}collapseClick(i){i.classed("closed")?(this._isClosed=!1,i.classed("open",!0),i.classed("closed",!1)):(this._isClosed=!0,i.classed("open",!1),i.classed("closed",!0))}enter(i,o){super.enter(i,o);let l=this;this._isClosed=this.defaultCollapsed(),o.classed(this._isClosed?"closed":"open",!0),this.titleSpan=o.append("span").classed("collapsible-title",!0),this.iconDiv=o.append("div").classed("collapsible-icon",!0),this.ul=o.append("ul"),this.icon=new sm().size({height:24,width:24}).target(this.iconDiv.node()),this.iconDiv.on("click",function(){l.collapseClick(o),l.render()}),this.titleSpan.on("click",function(){l.collapseClick(o),l.render()})}update(i,o){super.update(i,o);let l=this,s="";this.titleSpan.text(l.title().length>0?l.title()+s:"Accordion ["+l._id+"]"+s);let h=this.ul.selectAll("#"+l._id+" > ul > li").data(this.content(),function(p){return p._id});h.enter().append(function(p){let f=document.createElement("li");if(p._target===null){let m=p.size();if(m.width===0||m.height===0){let b=l.size();p.size({width:b.width,height:b.width})}p.target(f)}else return p._target;return f}),h.exit().remove(),this.icon.text_colorFill(this.titleFontColor()).char(this._isClosed?this.closedIcon():this.openIcon()).render()}exit(i,o){super.exit(i,o)}};Ri.prototype._class+=" layout_Accordion";Ri.prototype.publish("content",[],"widgetArray","Array of widgets",null,{tags:["Basic"]});Ri.prototype.publish("title","","string","Title of collapsible section",null,{tags:["Private"]});Ri.prototype.publish("openIcon","\uF147","string","Icon to display when list is open",null,{tags:["Private"]});Ri.prototype.publish("closedIcon","\uF196","string","Icon to display when list is closed",null,{tags:["Private"]});Ri.prototype.publish("titleFontColor","#FFFFFF","html-color","Title font color",null,{tags:["Private"]});Ri.prototype.publish("titleBackgroundColor","#333333","html-color","Title background color",null,{tags:["Private"]});Ri.prototype.publish("defaultCollapsed",!1,"boolean","Collapsed by default if true",null,{tags:["Private"]});(function(){if(!document.getElementById("41033346")){var i=document.createElement("style");i.id="41033346",i.textContent=`.layout_Surface {
555
+ }`,document.head.appendChild(t)}})();var Ut=class extends Ua{static{d(this,"Y")}static{w(this,"Accordion")}_isClosed;titleSpan;iconDiv;ul;icon;constructor(){super(),this._tag="div",this._isClosed=!1}pushListItem(t,e=!1,i=!1){let o=this.content();return t._protected=i,e?o.unshift(t):o.push(t),this.content(o),this}clearListItems(){let t=[];for(let e in this.content())this.content()[e]._protected&&t.push(this.content()[e]);return this.content(t),this}collapseClick(t){t.classed("closed")?(this._isClosed=!1,t.classed("open",!0),t.classed("closed",!1)):(this._isClosed=!0,t.classed("open",!1),t.classed("closed",!0))}enter(t,e){super.enter(t,e);let i=this;this._isClosed=this.defaultCollapsed(),e.classed(this._isClosed?"closed":"open",!0),this.titleSpan=e.append("span").classed("collapsible-title",!0),this.iconDiv=e.append("div").classed("collapsible-icon",!0),this.ul=e.append("ul"),this.icon=new Na().size({height:24,width:24}).target(this.iconDiv.node()),this.iconDiv.on("click",function(){i.collapseClick(e),i.render()}),this.titleSpan.on("click",function(){i.collapseClick(e),i.render()})}update(t,e){super.update(t,e);let i=this,o="";this.titleSpan.text(i.title().length>0?i.title()+o:"Accordion ["+i._id+"]"+o);let r=this.ul.selectAll("#"+i._id+" > ul > li").data(this.content(),function(l){return l._id});r.enter().append(function(l){let n=document.createElement("li");if(l._target===null){let s=l.size();if(s.width===0||s.height===0){let a=i.size();l.size({width:a.width,height:a.width})}l.target(n)}else return l._target;return n}),r.exit().remove(),this.icon.text_colorFill(this.titleFontColor()).char(this._isClosed?this.closedIcon():this.openIcon()).render()}exit(t,e){super.exit(t,e)}};Ut.prototype._class+=" layout_Accordion";Ut.prototype.publish("content",[],"widgetArray","Array of widgets",null,{tags:["Basic"]});Ut.prototype.publish("title","","string","Title of collapsible section",null,{tags:["Private"]});Ut.prototype.publish("openIcon","\uF147","string","Icon to display when list is open",null,{tags:["Private"]});Ut.prototype.publish("closedIcon","\uF196","string","Icon to display when list is closed",null,{tags:["Private"]});Ut.prototype.publish("titleFontColor","#FFFFFF","html-color","Title font color",null,{tags:["Private"]});Ut.prototype.publish("titleBackgroundColor","#333333","html-color","Title background color",null,{tags:["Private"]});Ut.prototype.publish("defaultCollapsed",!1,"boolean","Collapsed by default if true",null,{tags:["Private"]});(function(){if(!document.getElementById("41033346")){var t=document.createElement("style");t.id="41033346",t.textContent=`.layout_Surface {
563
556
  box-sizing: border-box;
564
557
  margin: 0px;
565
558
  border: 1px solid #e5e5e5;
@@ -648,7 +641,7 @@ div[draggable=true].hideDragCellContent.content-icon-TextBox:before,
648
641
  div[draggable=true].hideDragCellContent.content-icon-FAChar:before{
649
642
  content:"\f278";
650
643
  }
651
- `,document.head.appendChild(i)}})();var qe=class extends mm{static{c(this,"v")}static{B(this,"Surface")}_surfaceButtons;constructor(){super(),this._tag="div",this._surfaceButtons=[]}widgetSize(i,o){let l=this.clientWidth(),s=this.clientHeight();return this.title()&&(s-=this.calcHeight(i)),s-=this.calcFrameHeight(o),l-=this.calcFrameWidth(o),{width:l,height:s}}enter(i,o){super.enter(i,o)}update(i,o){super.update(i,o);let l=this;o.classed("shadow2",this.surfaceShadow()).style("border-width",this.surfaceBorderWidth_exists()?this.surfaceBorderWidth()+"px":null).style("border-color",this.surfaceBorderColor()).style("border-radius",this.surfaceBorderRadius_exists()?this.surfaceBorderRadius()+"px":null).style("background-color",this.surfaceBackgroundColor());let s=o.selectAll(".surfaceTitle").data(this.title()?[this.title()]:[]);s.enter().insert("h3","div").attr("class","surfaceTitle").merge(s).text(function(f){return f}).style("text-align",this.surfaceTitleAlignment()).style("color",this.surfaceTitleFontColor()).style("font-size",this.surfaceTitleFontSize_exists()?this.surfaceTitleFontSize()+"px":null).style("font-family",this.surfaceTitleFontFamily()).style("font-weight",this.surfaceTitleFontBold()?"bold":"normal").style("background-color",this.surfaceTitleBackgroundColor()).style("padding",this.surfaceTitlePadding_exists()?this.surfaceTitlePadding()+"px":null).style("title",this.altText_exists()?this.altText():null),s.exit().remove();let h=o.select(".surfaceTitle").append("div").attr("class","html-button-container").selectAll(".surface-button").data(this.buttonAnnotations());h.enter().append("button").classed("surface-button",!0).each(function(f,m){let b=l._surfaceButtons[m]=es(this).attr("class","surface-button"+(f.class?" "+f.class:"")).attr("id",f.id).style("padding",f.padding).style("width",f.width).style("height",f.height).style("cursor","pointer");f.font==="FontAwesome"?b.style("background","transparent").style("border","none").on("click",function(_){l.click(_)}).append("i").attr("class","fa").text(function(){return f.label}):b.text(function(){return f.label}).on("click",function(_){l.click(_)})}),h.exit().each(function(f,m){let b=es(this);delete l._surfaceButtons[m],b.remove()});let p=o.selectAll("#"+this._id+" > .surfaceWidget").data(this.widget()?[this.widget()]:[],function(f){return f._id});p.enter().append("div").attr("class","surfaceWidget").each(function(f){es(l.element().node().parentElement).classed("content-icon content-icon-"+f.classID().split("_")[1],!0),f.target(this)}).merge(p).style("padding",this.surfacePadding_exists()?this.surfacePadding()+"px":null).each(function(f){let m=l.widgetSize(o.select("h3"),es(this));m.width<0&&(m.width=0),m.height<0&&(m.height=0),f.resize({width:m.width,height:m.height})}),p.exit().each(function(f){f.target(null)}).remove()}exit(i,o){this.widget()&&this.widget().target(null),super.exit(i,o)}click(i){}};qe.prototype._class+=" layout_Surface";qe.prototype.publish("title","","string","Title",null,{tags:["Intermediate"]});qe.prototype.publish("altText",null,"string","Alt text",null,{optional:!0});qe.prototype.publish("surfaceTitlePadding",null,"number","Title Padding (px)",null,{tags:["Advanced"],disable:B(i=>!i.title(),"disable")});qe.prototype.publish("surfaceTitleFontSize",null,"number","Title Font Size (px)",null,{tags:["Advanced"],disable:B(i=>!i.title(),"disable")});qe.prototype.publish("surfaceTitleFontColor",null,"html-color","Title Font Color",null,{tags:["Advanced"],disable:B(i=>!i.title(),"disable")});qe.prototype.publish("surfaceTitleFontFamily",null,"string","Title Font Family",null,{tags:["Advanced"],disable:B(i=>!i.title(),"disable")});qe.prototype.publish("surfaceTitleFontBold",!0,"boolean","Enable Bold Title Font",null,{tags:["Advanced"],disable:B(i=>!i.title(),"disable")});qe.prototype.publish("surfaceTitleBackgroundColor",null,"html-color","Title Background Color",null,{tags:["Advanced"],disable:B(i=>!i.title(),"disable")});qe.prototype.publish("surfaceTitleAlignment","center","set","Title Alignment",["left","right","center"],{tags:["Basic"],disable:B(i=>!i.title(),"disable")});qe.prototype.publish("surfaceShadow",!1,"boolean","3D Shadow");qe.prototype.publish("surfacePadding",null,"string","Surface Padding (px)",null,{tags:["Intermediate"]});qe.prototype.publish("surfaceBackgroundColor",null,"html-color","Surface Background Color",null,{tags:["Advanced"]});qe.prototype.publish("surfaceBorderWidth",null,"number","Surface Border Width (px)",null,{tags:["Advanced"]});qe.prototype.publish("surfaceBorderColor",null,"html-color","Surface Border Color",null,{tags:["Advanced"]});qe.prototype.publish("surfaceBorderRadius",null,"number","Surface Border Radius (px)",null,{tags:["Advanced"]});qe.prototype.publish("buttonAnnotations",[],"array","Button Array",null,{tags:["Private"]});qe.prototype.publish("widget",null,"widget","Widget",null,{tags:["Basic"]});(function(){if(!document.getElementById("bc383397")){var i=document.createElement("style");i.id="bc383397",i.textContent=`.layout_Cell .update-indicator {
644
+ `,document.head.appendChild(t)}})();var it=class extends qa{static{d(this,"v")}static{w(this,"Surface")}_surfaceButtons;constructor(){super(),this._tag="div",this._surfaceButtons=[]}widgetSize(t,e){let i=this.clientWidth(),o=this.clientHeight();return this.title()&&(o-=this.calcHeight(t)),o-=this.calcFrameHeight(e),i-=this.calcFrameWidth(e),{width:i,height:o}}enter(t,e){super.enter(t,e)}update(t,e){super.update(t,e);let i=this;e.classed("shadow2",this.surfaceShadow()).style("border-width",this.surfaceBorderWidth_exists()?this.surfaceBorderWidth()+"px":null).style("border-color",this.surfaceBorderColor()).style("border-radius",this.surfaceBorderRadius_exists()?this.surfaceBorderRadius()+"px":null).style("background-color",this.surfaceBackgroundColor());let o=e.selectAll(".surfaceTitle").data(this.title()?[this.title()]:[]);o.enter().insert("h3","div").attr("class","surfaceTitle").merge(o).text(function(n){return n}).style("text-align",this.surfaceTitleAlignment()).style("color",this.surfaceTitleFontColor()).style("font-size",this.surfaceTitleFontSize_exists()?this.surfaceTitleFontSize()+"px":null).style("font-family",this.surfaceTitleFontFamily()).style("font-weight",this.surfaceTitleFontBold()?"bold":"normal").style("background-color",this.surfaceTitleBackgroundColor()).style("padding",this.surfaceTitlePadding_exists()?this.surfaceTitlePadding()+"px":null).style("title",this.altText_exists()?this.altText():null),o.exit().remove();let r=e.select(".surfaceTitle").append("div").attr("class","html-button-container").selectAll(".surface-button").data(this.buttonAnnotations());r.enter().append("button").classed("surface-button",!0).each(function(n,s){let a=i._surfaceButtons[s]=Si(this).attr("class","surface-button"+(n.class?" "+n.class:"")).attr("id",n.id).style("padding",n.padding).style("width",n.width).style("height",n.height).style("cursor","pointer");n.font==="FontAwesome"?a.style("background","transparent").style("border","none").on("click",function(c){i.click(c)}).append("i").attr("class","fa").text(function(){return n.label}):a.text(function(){return n.label}).on("click",function(c){i.click(c)})}),r.exit().each(function(n,s){let a=Si(this);delete i._surfaceButtons[s],a.remove()});let l=e.selectAll("#"+this._id+" > .surfaceWidget").data(this.widget()?[this.widget()]:[],function(n){return n._id});l.enter().append("div").attr("class","surfaceWidget").each(function(n){Si(i.element().node().parentElement).classed("content-icon content-icon-"+n.classID().split("_")[1],!0),n.target(this)}).merge(l).style("padding",this.surfacePadding_exists()?this.surfacePadding()+"px":null).each(function(n){let s=i.widgetSize(e.select("h3"),Si(this));s.width<0&&(s.width=0),s.height<0&&(s.height=0),n.resize({width:s.width,height:s.height})}),l.exit().each(function(n){n.target(null)}).remove()}exit(t,e){this.widget()&&this.widget().target(null),super.exit(t,e)}click(t){}};it.prototype._class+=" layout_Surface";it.prototype.publish("title","","string","Title",null,{tags:["Intermediate"]});it.prototype.publish("altText",null,"string","Alt text",null,{optional:!0});it.prototype.publish("surfaceTitlePadding",null,"number","Title Padding (px)",null,{tags:["Advanced"],disable:w(t=>!t.title(),"disable")});it.prototype.publish("surfaceTitleFontSize",null,"number","Title Font Size (px)",null,{tags:["Advanced"],disable:w(t=>!t.title(),"disable")});it.prototype.publish("surfaceTitleFontColor",null,"html-color","Title Font Color",null,{tags:["Advanced"],disable:w(t=>!t.title(),"disable")});it.prototype.publish("surfaceTitleFontFamily",null,"string","Title Font Family",null,{tags:["Advanced"],disable:w(t=>!t.title(),"disable")});it.prototype.publish("surfaceTitleFontBold",!0,"boolean","Enable Bold Title Font",null,{tags:["Advanced"],disable:w(t=>!t.title(),"disable")});it.prototype.publish("surfaceTitleBackgroundColor",null,"html-color","Title Background Color",null,{tags:["Advanced"],disable:w(t=>!t.title(),"disable")});it.prototype.publish("surfaceTitleAlignment","center","set","Title Alignment",["left","right","center"],{tags:["Basic"],disable:w(t=>!t.title(),"disable")});it.prototype.publish("surfaceShadow",!1,"boolean","3D Shadow");it.prototype.publish("surfacePadding",null,"string","Surface Padding (px)",null,{tags:["Intermediate"]});it.prototype.publish("surfaceBackgroundColor",null,"html-color","Surface Background Color",null,{tags:["Advanced"]});it.prototype.publish("surfaceBorderWidth",null,"number","Surface Border Width (px)",null,{tags:["Advanced"]});it.prototype.publish("surfaceBorderColor",null,"html-color","Surface Border Color",null,{tags:["Advanced"]});it.prototype.publish("surfaceBorderRadius",null,"number","Surface Border Radius (px)",null,{tags:["Advanced"]});it.prototype.publish("buttonAnnotations",[],"array","Button Array",null,{tags:["Private"]});it.prototype.publish("widget",null,"widget","Widget",null,{tags:["Basic"]});(function(){if(!document.getElementById("bc383397")){var t=document.createElement("style");t.id="bc383397",t.textContent=`.layout_Cell .update-indicator {
652
645
  box-sizing: border-box;
653
646
  position: absolute;
654
647
  top: 0px;
@@ -659,7 +652,7 @@ div[draggable=true].hideDragCellContent.content-icon-FAChar:before{
659
652
  border-style: solid;
660
653
  pointer-events: none;
661
654
  }
662
- `,document.head.appendChild(i)}})();var zr=class extends qe{static{c(this,"k")}static{B(this,"Cell")}_indicateTheseIds;constructor(){super(),this._indicateTheseIds=[]}indicateTheseIds(i){return arguments.length?(this._indicateTheseIds=i,this):this._indicateTheseIds}enter(i,o){super.enter(i,o);let l=this;o.classed("layout_Surface",!0).on("mouseenter",function(){l.onMouseEnter()}).on("mouseleave",function(){l.onMouseLeave()})}update(i,o){super.update(i,o)}onMouseEnter(){let i=this.indicateTheseIds(),o=this.indicatorOpacity(),l=this.indicatorBorderColor(),s=this.indicatorGlowColor();for(let h=0;h<i.length;h++){let p=fm("#"+i[h]),f=p.datum();p&&f&&p.append("div").attr("class","update-indicator").style("width",f.width()+"px").style("height",f.height()+"px").style("opacity",o).style("border-color",l).style("-webkit-box-shadow","inset 0px 0px 30px 0px "+s).style("-moz-box-shadow","inset 0px 0px 30px 0px "+s).style("box-shadow","inset 0px 0px 30px 0px "+s)}}onMouseLeave(){let i=this.indicateTheseIds();for(let o=0;o<i.length;o++)gm("#"+i[o]+" > div.update-indicator").remove()}};zr.prototype._class+=" layout_Cell";zr.prototype.publish("gridRow",0,"number","Grid Row Position",null,{tags:["Private"]});zr.prototype.publish("gridCol",0,"number","Grid Column Position",null,{tags:["Private"]});zr.prototype.publish("gridRowSpan",1,"number","Grid Row Span",null,{tags:["Private"]});zr.prototype.publish("gridColSpan",1,"number","Grid Column Span",null,{tags:["Private"]});zr.prototype.publish("indicatorGlowColor","#EEEE11","html-color","Glow color of update-indicator",null,{tags:["Basic"]});zr.prototype.publish("indicatorBorderColor","#F48A00","html-color","Border color of update-indicator",null,{tags:["Basic"]});zr.prototype.publish("indicatorOpacity",.8,"number","Opacity of update-indicator",null,{tags:["Basic"]});(function(){if(!document.getElementById("df37b09f")){var i=document.createElement("style");i.id="df37b09f",i.textContent=`.layout_Border{
655
+ `,document.head.appendChild(t)}})();var Rt=class extends it{static{d(this,"k")}static{w(this,"Cell")}_indicateTheseIds;constructor(){super(),this._indicateTheseIds=[]}indicateTheseIds(t){return arguments.length?(this._indicateTheseIds=t,this):this._indicateTheseIds}enter(t,e){super.enter(t,e);let i=this;e.classed("layout_Surface",!0).on("mouseenter",function(){i.onMouseEnter()}).on("mouseleave",function(){i.onMouseLeave()})}update(t,e){super.update(t,e)}onMouseEnter(){let t=this.indicateTheseIds(),e=this.indicatorOpacity(),i=this.indicatorBorderColor(),o=this.indicatorGlowColor();for(let r=0;r<t.length;r++){let l=Xa("#"+t[r]),n=l.datum();l&&n&&l.append("div").attr("class","update-indicator").style("width",n.width()+"px").style("height",n.height()+"px").style("opacity",e).style("border-color",i).style("-webkit-box-shadow","inset 0px 0px 30px 0px "+o).style("-moz-box-shadow","inset 0px 0px 30px 0px "+o).style("box-shadow","inset 0px 0px 30px 0px "+o)}}onMouseLeave(){let t=this.indicateTheseIds();for(let e=0;e<t.length;e++)Ka("#"+t[e]+" > div.update-indicator").remove()}};Rt.prototype._class+=" layout_Cell";Rt.prototype.publish("gridRow",0,"number","Grid Row Position",null,{tags:["Private"]});Rt.prototype.publish("gridCol",0,"number","Grid Column Position",null,{tags:["Private"]});Rt.prototype.publish("gridRowSpan",1,"number","Grid Row Span",null,{tags:["Private"]});Rt.prototype.publish("gridColSpan",1,"number","Grid Column Span",null,{tags:["Private"]});Rt.prototype.publish("indicatorGlowColor","#EEEE11","html-color","Glow color of update-indicator",null,{tags:["Basic"]});Rt.prototype.publish("indicatorBorderColor","#F48A00","html-color","Border color of update-indicator",null,{tags:["Basic"]});Rt.prototype.publish("indicatorOpacity",.8,"number","Opacity of update-indicator",null,{tags:["Basic"]});(function(){if(!document.getElementById("df37b09f")){var t=document.createElement("style");t.id="df37b09f",t.textContent=`.layout_Border{
663
656
  width: 100%;
664
657
  height: 100%;
665
658
  }
@@ -803,7 +796,7 @@ div[draggable=true].hideDragCellContent.content-icon-FAChar:before{
803
796
  rgba(17, 155, 215, 0.1) 6px,
804
797
  rgba(17, 155, 215, 0.1) 12px
805
798
  );
806
- }`,document.head.appendChild(i)}})();var Xe=class extends np{static{c(this,"z")}static{B(this,"Border")}_colCount;_rowCount;_colSize;_rowSize;_shrinkWrapBoxes;_watch;_offsetX;_offsetY;_dragCell;_dragCellSize;_dragCellStartSize;_handleTop;_handleLeft;_dragPrevX;_dragPrevY;_cellSizes;contentDiv;_scrollBarWidth;_borderHandles;_sectionTypeArr;constructor(){super(),this._tag="div",this._colCount=0,this._rowCount=0,this._colSize=0,this._rowSize=0,this._shrinkWrapBoxes={},this.content([]),this.sectionTypes([])}watchWidget(i){if(this._watch===void 0&&(this._watch={}),this._watch[i.id()]&&(this._watch[i.id()].remove(),delete this._watch[i.id()]),i){let o=this;this._watch[i.id()]=i.monitor(function(l,s,h){h!==s&&o.lazyPostUpdate()})}}lazyPostUpdate=hm.debounce(function(){this.postUpdate()},100);applyLayoutType(){let i=this.borderLayoutObject();this.content().forEach(function(o,l){o._fixedLeft=i[this.sectionTypes()[l]].left,o._fixedTop=i[this.sectionTypes()[l]].top,o._fixedWidth=i[this.sectionTypes()[l]].width,o._fixedHeight=i[this.sectionTypes()[l]].height,o._dragHandles=this.cellSpecificDragHandles(this.sectionTypes()[l])},this)}cellSpecificDragHandles(i){switch(i){case"top":return["s"];case"right":return["w"];case"bottom":return["n"];case"left":return["e"];case"center":return[]}}borderLayoutObject(i){let o={},l=this,s,h,p,f,m,b,_,I,P=this.target().getBoundingClientRect(),z={};z.top=P.top,z.left=P.left,z.bottom=P.bottom,z.right=P.right,this.target()instanceof SVGElement?(z.width=parseFloat(this.target().getAttribute("width")),z.height=parseFloat(this.target().getAttribute("height"))):(z.width=P.width,z.height=P.height),this.sectionTypes().indexOf("top")!==-1&&(s=this.topSize(),h=this.topPercentage(),typeof this._shrinkWrapBoxes.top<"u"&&(s=this._shrinkWrapBoxes.top.height+this.gutter(),h=0)),this.sectionTypes().indexOf("bottom")!==-1&&(p=this.bottomSize(),f=this.bottomPercentage(),typeof this._shrinkWrapBoxes.bottom<"u"&&(p=this._shrinkWrapBoxes.bottom.height+this.gutter(),f=0)),this.sectionTypes().indexOf("left")!==-1&&(m=this.leftSize(),b=this.leftPercentage(),typeof this._shrinkWrapBoxes.left<"u"&&(m=this._shrinkWrapBoxes.left.width+this.gutter(),b=0)),this.sectionTypes().indexOf("right")!==-1&&(_=this.rightSize(),I=this.rightPercentage(),typeof this._shrinkWrapBoxes.right<"u"&&(_=this._shrinkWrapBoxes.right.width+this.gutter(),I=0));let R=Y({width:{px:0,"%":100},height:{px:s,"%":h},top:{px:0,"%":0},left:{px:0,"%":0}}),M=Y({width:{px:0,"%":100},height:{px:p,"%":f},top:{px:0,"%":100},left:{px:0,"%":0}});M.top-=M.height;let N=Y({width:{px:m,"%":b},height:{px:-R.height-M.height,"%":100},top:{px:R.height,"%":0},left:{px:0,"%":0}}),F=Y({width:{px:_,"%":I},height:{px:-R.height-M.height,"%":100},top:{px:R.height,"%":0},left:{px:0,"%":100}});F.left-=F.width;let D=Y({width:{px:-F.width-N.width,"%":100},height:{px:-R.height-M.height,"%":100},top:{px:R.height,"%":0},left:{px:N.width,"%":0}});return o.top=R,o.bottom=M,o.right=F,o.left=N,o.center=D,o;function Y(j){return j.width.px=typeof j.width.px<"u"?j.width.px:0,j.width["%"]=typeof j.width["%"]<"u"?j.width["%"]:0,j.height.px=typeof j.height.px<"u"?j.height.px:0,j.height["%"]=typeof j.height["%"]<"u"?j.height["%"]:0,{width:j.width.px+j.width["%"]/100*l.width(),height:j.height.px+j.height["%"]/100*l.height(),top:j.top.px+j.top["%"]/100*l.height()+l.gutter()/2,left:j.left.px+j.left["%"]/100*l.width()+l.gutter()/2}}}clearContent(i){if(!i)this.content().forEach(function(o){return o.target(null),!1}),Tr("#"+this.id()+" > div.borderHandle").classed("borderHandleDisabled",!0),delete this._watch,this.content([]),this.sectionTypes([]);else{let o=this.sectionTypes().indexOf(i);o>=0&&(this._watch&&this.content()[o]&&delete this._watch[this.content()[o].id()],this.content()[o].target(null),Tr("#"+this.id()+" > div.borderHandle_"+i).classed("borderHandleDisabled",!0),this.content().splice(o,1),this.sectionTypes().splice(o,1))}}hasContent(i,o,l){return this.sectionTypes().indexOf(i)>=0}setContent(i,o,l){if(this.clearContent(i),l=typeof l<"u"?l:"",o){let s=new zr().surfaceBorderWidth(0).widget(o).title(l);this.watchWidget(o),this.content().push(s),this.sectionTypes().push(i)}return this}getCell(i){let o=this.sectionTypes().indexOf(i);return o>=0?this.content()[o]:null}getContent(i){let o=this.sectionTypes().indexOf(i);return o>=0?this.content()[o].widget():null}setLayoutOffsets(){this._offsetX=this._element.node().getBoundingClientRect().left+this.gutter()/2,this._offsetY=this._element.node().getBoundingClientRect().top+this.gutter()/2}dragStart(i){let o=Od();o.sourceEvent.stopPropagation();let l=this;this._dragCell=i,this._dragCellStartSize=this[i+"Size"](),this[i+"ShrinkWrap"]()&&(this[i+"Percentage"](0),this[i+"ShrinkWrap"](!1));let s=Tr("#"+l.id()+" > div.borderHandle_"+i);l._handleTop=parseFloat(s.style("top").split("px")[0]),l._handleLeft=parseFloat(s.style("left").split("px")[0]),this._dragPrevX=o.sourceEvent.clientX,this._dragPrevY=o.sourceEvent.clientY}dragTick(i){let o=this,l=Od(),s=this._dragPrevX-l.sourceEvent.clientX,h=this._dragPrevY-l.sourceEvent.clientY;switch(i){case"top":case"bottom":p(i,h);break;case"right":case"left":p(i,s);break}function p(f,m){if(m===0)return;let b=cm("#"+o.id()+" > div.borderHandle"),_=Tr("#"+o.id()+" > div.borderHandle_"+f);_.classed("borderHandle_top")?(_.style("top",o._handleTop-m+"px"),o._cellSizes.topHeight=o._handleTop-m,o._cellSizes.leftHeight=o._cellSizes.height,o._cellSizes.leftHeight-=o._cellSizes.topHeight,o._cellSizes.leftHeight-=o._cellSizes.bottomHeight,o._cellSizes.rightHeight=o._cellSizes.leftHeight):_.classed("borderHandle_right")?(_.style("left",o._handleLeft-m+"px"),o._cellSizes.rightWidth=o._cellSizes.width-o._handleLeft+m):_.classed("borderHandle_bottom")?(_.style("top",o._handleTop-m+"px"),o._cellSizes.bottomHeight=o._cellSizes.height-o._handleTop+m,o._cellSizes.leftHeight=o._cellSizes.height,o._cellSizes.leftHeight-=o._cellSizes.bottomHeight,o._cellSizes.leftHeight-=o._cellSizes.topHeight,o._cellSizes.rightHeight=o._cellSizes.leftHeight):_.classed("borderHandle_left")&&(_.style("left",o._handleLeft-m+"px"),o._cellSizes.leftWidth=o._handleLeft-m),b.each(function(){let I=Tr(this);I.classed("borderHandle_top")?(I.style("width",o._cellSizes.width+"px"),I.style("top",o._cellSizes.topHeight-3+"px")):I.classed("borderHandle_right")?(I.style("left",o._cellSizes.width-o._cellSizes.rightWidth+"px"),I.style("top",o._cellSizes.topHeight+3+"px"),I.style("height",o._cellSizes.rightHeight+"px")):I.classed("borderHandle_bottom")?(I.style("width",o._cellSizes.width+"px"),I.style("top",o._cellSizes.height-o._cellSizes.bottomHeight-3+"px")):I.classed("borderHandle_left")&&(I.style("left",o._cellSizes.leftWidth+"px"),I.style("height",o._cellSizes.leftHeight+"px"),I.style("top",o._cellSizes.topHeight+3+"px"))})}c(p,"s"),B(p,"_moveHandles")}dragEnd(i){if(i){let o=Od(),l=this._dragPrevX-o.sourceEvent.clientX,s=this._dragPrevY-o.sourceEvent.clientY;switch(i){case"top":s!==0&&(this.topPercentage(0),this.topSize(this.topSize()===0?this.getContent("top").getBBox().height-s:this.topSize()-s));break;case"right":l!==0&&(this.rightPercentage(0),this.rightSize(this.rightSize()===0?this.getContent("right").getBBox().width+l:this.rightSize()+l));break;case"bottom":s!==0&&(this.bottomPercentage(0),this.bottomSize(this.bottomSize()===0?this.getContent("bottom").getBBox().height+s:this.bottomSize()+s));break;case"left":l!==0&&(this.leftPercentage(0),this.leftSize(this.leftSize()===0?this.getContent("left").getBBox().width-l:this.leftSize()-l));break}this._dragPrevX=o.sourceEvent.clientX,this._dragPrevY=o.sourceEvent.clientY}this.render()}size(i){let o=np.prototype.size.apply(this,arguments);return arguments.length&&this.contentDiv&&this.contentDiv.style("width",this._size.width+"px").style("height",this._size.height+"px"),o}enter(i,o){super.enter(i,o);let l=this;o.style("position","relative"),this.contentDiv=o.append("div").classed("border-content",!0),this._scrollBarWidth=dm.getScrollbarWidth(),this._borderHandles=["top","left","right","bottom"],o.selectAll("div.borderHandle").data(this._borderHandles).enter().append("div").classed("borderHandle",!0).each(function(s){Tr(this).classed("borderHandle_"+s,!0).classed("borderHandleDisabled",l.getContent(s)===null)})}update(i,o){super.update(i,o),this._sectionTypeArr=this.sectionTypes();let l=this;o.classed("design-mode",this.designMode()),this.setLayoutOffsets();let s=this.contentDiv.selectAll(".cell_"+this._id).data(this.content(),function(m){return m._id}),h=s.enter().append("div").classed("cell_"+this._id,!0).style("position","absolute").each(function(m,b){Tr(this).classed("border-cell border-cell-"+l._sectionTypeArr[b],!0),m.target(this),Tr("#"+l.id()+" > div.borderHandle_"+l._sectionTypeArr[b]).classed("borderHandleDisabled",!1)}).merge(s);h.each(function(m,b){let _=l.sectionTypes()[b];typeof l[_+"ShrinkWrap"]<"u"&&l[_+"ShrinkWrap"]()?(m.render(),l._shrinkWrapBoxes[_]=m.widget().getBBox(!0)):delete l._shrinkWrapBoxes[_]});let p=pm().on("start",function(m,b){l.dragStart.call(l,m,b)}).on("drag",function(m,b){l.dragTick.call(l,m,b)}).on("end",function(m,b){l.dragEnd.call(l,m,b)});this.designMode()?o.selectAll("#"+this.id()+" > div.borderHandle").call(p):o.selectAll("#"+this.id()+" > div.borderHandle").on(".drag",null);let f=this.borderLayoutObject();this.content().forEach(function(m,b){m._fixedLeft=f[this.sectionTypes()[b]].left,m._fixedTop=f[this.sectionTypes()[b]].top,m._fixedWidth=f[this.sectionTypes()[b]].width,m._fixedHeight=f[this.sectionTypes()[b]].height,m._dragHandles=[]},this),h.style("left",function(m){return m._fixedLeft+"px"}).style("top",function(m){return m._fixedTop+"px"}).style("width",function(m){return m._fixedWidth-l.gutter()+"px"}).style("height",function(m){return m._fixedHeight-l.gutter()+"px"}).each(function(m){m._placeholderElement.attr("draggable",l.designMode()).selectAll(".dragHandle").attr("draggable",l.designMode()),m.surfacePadding(l.surfacePadding()).resize()}),s.exit().each(function(m){m.target(null)}).remove(),this.getCellSizes(),o.selectAll("#"+this.id()+" > div.borderHandle").each(function(){let m=Tr(this);m.classed("borderHandle_top")?(m.style("width",l._cellSizes.width+"px"),m.style("top",l._cellSizes.topHeight-3+"px")):m.classed("borderHandle_right")?(m.style("left",l._cellSizes.width-l._cellSizes.rightWidth+"px"),m.style("top",l._cellSizes.topHeight+3+"px"),m.style("height",l._cellSizes.rightHeight+"px")):m.classed("borderHandle_bottom")?(m.style("width",l._cellSizes.width+"px"),m.style("top",l._cellSizes.height-l._cellSizes.bottomHeight-3+"px")):m.classed("borderHandle_left")&&(m.style("left",l._cellSizes.leftWidth+"px"),m.style("height",l._cellSizes.leftHeight+"px"),m.style("top",l._cellSizes.topHeight+3+"px"))})}getCellSizes(){let i=this;i._cellSizes={};let o=this.element().node().getBoundingClientRect();i._cellSizes.width=o.width,i._cellSizes.height=o.height,this.element().selectAll("#"+this.id()+" > div > div.border-cell").each(function(){let l=Tr(this);if(typeof l.node=="function"){let s=l.node().getBoundingClientRect();l.classed("border-cell-top")?i._cellSizes.topHeight=s.height:l.classed("border-cell-left")?(i._cellSizes.leftWidth=s.width,i._cellSizes.leftHeight=s.height):l.classed("border-cell-right")?(i._cellSizes.rightWidth=s.width,i._cellSizes.rightHeight=s.height):l.classed("border-cell-bottom")&&(i._cellSizes.bottomHeight=s.height)}}),["height","width","topHeight","bottomHeight","leftHeight","rightHeight","leftWidth","rightWidth"].forEach(function(l){i._cellSizes[l]=i._cellSizes[l]===void 0?0:i._cellSizes[l]})}postUpdate(i,o){let l=this;this.content().forEach(function(s){if(s._element.node()!==null&&s.widget()){let h=s.widget().getBBox(!1,!0),p=s.widget().getBBox(!0,!0);(h.width!==p.width||h.height!==p.height)&&l.lazyRender()}})}exit(i,o){this.content().forEach(l=>l.target(null)),super.exit(i,o)}};Xe.prototype._class+=" layout_Border";Xe.prototype.publish("designMode",!1,"boolean","Design Mode",null,{tags:["Basic"]});Xe.prototype.publish("content",[],"widgetArray","widgets",null,{tags:["Intermediate"]});Xe.prototype.publish("gutter",0,"number","Gap Between Widgets",null,{tags:["Basic"]});Xe.prototype.publish("topShrinkWrap",!1,"boolean","'Top' Cell shrinks to fit content",null,{tags:["Intermediate"]});Xe.prototype.publish("leftShrinkWrap",!1,"boolean","'Left' Cell shrinks to fit content",null,{tags:["Intermediate"]});Xe.prototype.publish("rightShrinkWrap",!1,"boolean","'Right' Cell shrinks to fit content",null,{tags:["Intermediate"]});Xe.prototype.publish("bottomShrinkWrap",!1,"boolean","'Bottom' Cell shrinks to fit content",null,{tags:["Intermediate"]});Xe.prototype.publish("topSize",0,"number","Height of the 'Top' Cell (px)",null,{tags:["Private"]});Xe.prototype.publish("leftSize",0,"number","Width of the 'Left' Cell (px)",null,{tags:["Private"]});Xe.prototype.publish("rightSize",0,"number","Width of the 'Right' Cell (px)",null,{tags:["Private"]});Xe.prototype.publish("bottomSize",0,"number","Height of the 'Bottom' Cell (px)",null,{tags:["Private"]});Xe.prototype.publish("topPercentage",20,"number","Percentage (of parent) Height of the 'Top' Cell",null,{tags:["Private"]});Xe.prototype.publish("leftPercentage",20,"number","Percentage (of parent) Width of the 'Left' Cell",null,{tags:["Private"]});Xe.prototype.publish("rightPercentage",20,"number","Percentage (of parent) Width of the 'Right' Cell",null,{tags:["Private"]});Xe.prototype.publish("bottomPercentage",20,"number","Percentage (of parent) Height of the 'Bottom' Cell",null,{tags:["Private"]});Xe.prototype.publish("surfacePadding",0,"number","Cell Padding (px)",null,{tags:["Intermediate"]});Xe.prototype.publish("sectionTypes",[],"array","Section Types sharing an index with 'content' - Used to determine position/size.",null,{tags:["Private"]});(function(){if(!document.getElementById("23362289")){var i=document.createElement("style");i.id="23362289",i.textContent=`.layout_Border2 {
799
+ }`,document.head.appendChild(t)}})();var Z=class extends rn{static{d(this,"z")}static{w(this,"Border")}_colCount;_rowCount;_colSize;_rowSize;_shrinkWrapBoxes;_watch;_offsetX;_offsetY;_dragCell;_dragCellSize;_dragCellStartSize;_handleTop;_handleLeft;_dragPrevX;_dragPrevY;_cellSizes;contentDiv;_scrollBarWidth;_borderHandles;_sectionTypeArr;constructor(){super(),this._tag="div",this._colCount=0,this._rowCount=0,this._colSize=0,this._rowSize=0,this._shrinkWrapBoxes={},this.content([]),this.sectionTypes([])}watchWidget(t){if(this._watch===void 0&&(this._watch={}),this._watch[t.id()]&&(this._watch[t.id()].remove(),delete this._watch[t.id()]),t){let e=this;this._watch[t.id()]=t.monitor(function(i,o,r){r!==o&&e.lazyPostUpdate()})}}lazyPostUpdate=ja.debounce(function(){this.postUpdate()},100);applyLayoutType(){let t=this.borderLayoutObject();this.content().forEach(function(e,i){e._fixedLeft=t[this.sectionTypes()[i]].left,e._fixedTop=t[this.sectionTypes()[i]].top,e._fixedWidth=t[this.sectionTypes()[i]].width,e._fixedHeight=t[this.sectionTypes()[i]].height,e._dragHandles=this.cellSpecificDragHandles(this.sectionTypes()[i])},this)}cellSpecificDragHandles(t){switch(t){case"top":return["s"];case"right":return["w"];case"bottom":return["n"];case"left":return["e"];case"center":return[]}}borderLayoutObject(t){let e={},i=this,o,r,l,n,s,a,c,g,u=this.target().getBoundingClientRect(),f={};f.top=u.top,f.left=u.left,f.bottom=u.bottom,f.right=u.right,this.target()instanceof SVGElement?(f.width=parseFloat(this.target().getAttribute("width")),f.height=parseFloat(this.target().getAttribute("height"))):(f.width=u.width,f.height=u.height),this.sectionTypes().indexOf("top")!==-1&&(o=this.topSize(),r=this.topPercentage(),typeof this._shrinkWrapBoxes.top<"u"&&(o=this._shrinkWrapBoxes.top.height+this.gutter(),r=0)),this.sectionTypes().indexOf("bottom")!==-1&&(l=this.bottomSize(),n=this.bottomPercentage(),typeof this._shrinkWrapBoxes.bottom<"u"&&(l=this._shrinkWrapBoxes.bottom.height+this.gutter(),n=0)),this.sectionTypes().indexOf("left")!==-1&&(s=this.leftSize(),a=this.leftPercentage(),typeof this._shrinkWrapBoxes.left<"u"&&(s=this._shrinkWrapBoxes.left.width+this.gutter(),a=0)),this.sectionTypes().indexOf("right")!==-1&&(c=this.rightSize(),g=this.rightPercentage(),typeof this._shrinkWrapBoxes.right<"u"&&(c=this._shrinkWrapBoxes.right.width+this.gutter(),g=0));let p=S({width:{px:0,"%":100},height:{px:o,"%":r},top:{px:0,"%":0},left:{px:0,"%":0}}),y=S({width:{px:0,"%":100},height:{px:l,"%":n},top:{px:0,"%":100},left:{px:0,"%":0}});y.top-=y.height;let C=S({width:{px:s,"%":a},height:{px:-p.height-y.height,"%":100},top:{px:p.height,"%":0},left:{px:0,"%":0}}),x=S({width:{px:c,"%":g},height:{px:-p.height-y.height,"%":100},top:{px:p.height,"%":0},left:{px:0,"%":100}});x.left-=x.width;let b=S({width:{px:-x.width-C.width,"%":100},height:{px:-p.height-y.height,"%":100},top:{px:p.height,"%":0},left:{px:C.width,"%":0}});return e.top=p,e.bottom=y,e.right=x,e.left=C,e.center=b,e;function S(k){return k.width.px=typeof k.width.px<"u"?k.width.px:0,k.width["%"]=typeof k.width["%"]<"u"?k.width["%"]:0,k.height.px=typeof k.height.px<"u"?k.height.px:0,k.height["%"]=typeof k.height["%"]<"u"?k.height["%"]:0,{width:k.width.px+k.width["%"]/100*i.width(),height:k.height.px+k.height["%"]/100*i.height(),top:k.top.px+k.top["%"]/100*i.height()+i.gutter()/2,left:k.left.px+k.left["%"]/100*i.width()+i.gutter()/2}}}clearContent(t){if(!t)this.content().forEach(function(e){return e.target(null),!1}),Bt("#"+this.id()+" > div.borderHandle").classed("borderHandleDisabled",!0),delete this._watch,this.content([]),this.sectionTypes([]);else{let e=this.sectionTypes().indexOf(t);e>=0&&(this._watch&&this.content()[e]&&delete this._watch[this.content()[e].id()],this.content()[e].target(null),Bt("#"+this.id()+" > div.borderHandle_"+t).classed("borderHandleDisabled",!0),this.content().splice(e,1),this.sectionTypes().splice(e,1))}}hasContent(t,e,i){return this.sectionTypes().indexOf(t)>=0}setContent(t,e,i){if(this.clearContent(t),i=typeof i<"u"?i:"",e){let o=new Rt().surfaceBorderWidth(0).widget(e).title(i);this.watchWidget(e),this.content().push(o),this.sectionTypes().push(t)}return this}getCell(t){let e=this.sectionTypes().indexOf(t);return e>=0?this.content()[e]:null}getContent(t){let e=this.sectionTypes().indexOf(t);return e>=0?this.content()[e].widget():null}setLayoutOffsets(){this._offsetX=this._element.node().getBoundingClientRect().left+this.gutter()/2,this._offsetY=this._element.node().getBoundingClientRect().top+this.gutter()/2}dragStart(t){let e=Ao();e.sourceEvent.stopPropagation();let i=this;this._dragCell=t,this._dragCellStartSize=this[t+"Size"](),this[t+"ShrinkWrap"]()&&(this[t+"Percentage"](0),this[t+"ShrinkWrap"](!1));let o=Bt("#"+i.id()+" > div.borderHandle_"+t);i._handleTop=parseFloat(o.style("top").split("px")[0]),i._handleLeft=parseFloat(o.style("left").split("px")[0]),this._dragPrevX=e.sourceEvent.clientX,this._dragPrevY=e.sourceEvent.clientY}dragTick(t){let e=this,i=Ao(),o=this._dragPrevX-i.sourceEvent.clientX,r=this._dragPrevY-i.sourceEvent.clientY;switch(t){case"top":case"bottom":l(t,r);break;case"right":case"left":l(t,o);break}function l(n,s){if(s===0)return;let a=$a("#"+e.id()+" > div.borderHandle"),c=Bt("#"+e.id()+" > div.borderHandle_"+n);c.classed("borderHandle_top")?(c.style("top",e._handleTop-s+"px"),e._cellSizes.topHeight=e._handleTop-s,e._cellSizes.leftHeight=e._cellSizes.height,e._cellSizes.leftHeight-=e._cellSizes.topHeight,e._cellSizes.leftHeight-=e._cellSizes.bottomHeight,e._cellSizes.rightHeight=e._cellSizes.leftHeight):c.classed("borderHandle_right")?(c.style("left",e._handleLeft-s+"px"),e._cellSizes.rightWidth=e._cellSizes.width-e._handleLeft+s):c.classed("borderHandle_bottom")?(c.style("top",e._handleTop-s+"px"),e._cellSizes.bottomHeight=e._cellSizes.height-e._handleTop+s,e._cellSizes.leftHeight=e._cellSizes.height,e._cellSizes.leftHeight-=e._cellSizes.bottomHeight,e._cellSizes.leftHeight-=e._cellSizes.topHeight,e._cellSizes.rightHeight=e._cellSizes.leftHeight):c.classed("borderHandle_left")&&(c.style("left",e._handleLeft-s+"px"),e._cellSizes.leftWidth=e._handleLeft-s),a.each(function(){let g=Bt(this);g.classed("borderHandle_top")?(g.style("width",e._cellSizes.width+"px"),g.style("top",e._cellSizes.topHeight-3+"px")):g.classed("borderHandle_right")?(g.style("left",e._cellSizes.width-e._cellSizes.rightWidth+"px"),g.style("top",e._cellSizes.topHeight+3+"px"),g.style("height",e._cellSizes.rightHeight+"px")):g.classed("borderHandle_bottom")?(g.style("width",e._cellSizes.width+"px"),g.style("top",e._cellSizes.height-e._cellSizes.bottomHeight-3+"px")):g.classed("borderHandle_left")&&(g.style("left",e._cellSizes.leftWidth+"px"),g.style("height",e._cellSizes.leftHeight+"px"),g.style("top",e._cellSizes.topHeight+3+"px"))})}d(l,"s"),w(l,"_moveHandles")}dragEnd(t){if(t){let e=Ao(),i=this._dragPrevX-e.sourceEvent.clientX,o=this._dragPrevY-e.sourceEvent.clientY;switch(t){case"top":o!==0&&(this.topPercentage(0),this.topSize(this.topSize()===0?this.getContent("top").getBBox().height-o:this.topSize()-o));break;case"right":i!==0&&(this.rightPercentage(0),this.rightSize(this.rightSize()===0?this.getContent("right").getBBox().width+i:this.rightSize()+i));break;case"bottom":o!==0&&(this.bottomPercentage(0),this.bottomSize(this.bottomSize()===0?this.getContent("bottom").getBBox().height+o:this.bottomSize()+o));break;case"left":i!==0&&(this.leftPercentage(0),this.leftSize(this.leftSize()===0?this.getContent("left").getBBox().width-i:this.leftSize()-i));break}this._dragPrevX=e.sourceEvent.clientX,this._dragPrevY=e.sourceEvent.clientY}this.render()}size(t){let e=rn.prototype.size.apply(this,arguments);return arguments.length&&this.contentDiv&&this.contentDiv.style("width",this._size.width+"px").style("height",this._size.height+"px"),e}enter(t,e){super.enter(t,e);let i=this;e.style("position","relative"),this.contentDiv=e.append("div").classed("border-content",!0),this._scrollBarWidth=Va.getScrollbarWidth(),this._borderHandles=["top","left","right","bottom"],e.selectAll("div.borderHandle").data(this._borderHandles).enter().append("div").classed("borderHandle",!0).each(function(o){Bt(this).classed("borderHandle_"+o,!0).classed("borderHandleDisabled",i.getContent(o)===null)})}update(t,e){super.update(t,e),this._sectionTypeArr=this.sectionTypes();let i=this;e.classed("design-mode",this.designMode()),this.setLayoutOffsets();let o=this.contentDiv.selectAll(".cell_"+this._id).data(this.content(),function(s){return s._id}),r=o.enter().append("div").classed("cell_"+this._id,!0).style("position","absolute").each(function(s,a){Bt(this).classed("border-cell border-cell-"+i._sectionTypeArr[a],!0),s.target(this),Bt("#"+i.id()+" > div.borderHandle_"+i._sectionTypeArr[a]).classed("borderHandleDisabled",!1)}).merge(o);r.each(function(s,a){let c=i.sectionTypes()[a];typeof i[c+"ShrinkWrap"]<"u"&&i[c+"ShrinkWrap"]()?(s.render(),i._shrinkWrapBoxes[c]=s.widget().getBBox(!0)):delete i._shrinkWrapBoxes[c]});let l=Ya().on("start",function(s,a){i.dragStart.call(i,s,a)}).on("drag",function(s,a){i.dragTick.call(i,s,a)}).on("end",function(s,a){i.dragEnd.call(i,s,a)});this.designMode()?e.selectAll("#"+this.id()+" > div.borderHandle").call(l):e.selectAll("#"+this.id()+" > div.borderHandle").on(".drag",null);let n=this.borderLayoutObject();this.content().forEach(function(s,a){s._fixedLeft=n[this.sectionTypes()[a]].left,s._fixedTop=n[this.sectionTypes()[a]].top,s._fixedWidth=n[this.sectionTypes()[a]].width,s._fixedHeight=n[this.sectionTypes()[a]].height,s._dragHandles=[]},this),r.style("left",function(s){return s._fixedLeft+"px"}).style("top",function(s){return s._fixedTop+"px"}).style("width",function(s){return s._fixedWidth-i.gutter()+"px"}).style("height",function(s){return s._fixedHeight-i.gutter()+"px"}).each(function(s){s._placeholderElement.attr("draggable",i.designMode()).selectAll(".dragHandle").attr("draggable",i.designMode()),s.surfacePadding(i.surfacePadding()).resize()}),o.exit().each(function(s){s.target(null)}).remove(),this.getCellSizes(),e.selectAll("#"+this.id()+" > div.borderHandle").each(function(){let s=Bt(this);s.classed("borderHandle_top")?(s.style("width",i._cellSizes.width+"px"),s.style("top",i._cellSizes.topHeight-3+"px")):s.classed("borderHandle_right")?(s.style("left",i._cellSizes.width-i._cellSizes.rightWidth+"px"),s.style("top",i._cellSizes.topHeight+3+"px"),s.style("height",i._cellSizes.rightHeight+"px")):s.classed("borderHandle_bottom")?(s.style("width",i._cellSizes.width+"px"),s.style("top",i._cellSizes.height-i._cellSizes.bottomHeight-3+"px")):s.classed("borderHandle_left")&&(s.style("left",i._cellSizes.leftWidth+"px"),s.style("height",i._cellSizes.leftHeight+"px"),s.style("top",i._cellSizes.topHeight+3+"px"))})}getCellSizes(){let t=this;t._cellSizes={};let e=this.element().node().getBoundingClientRect();t._cellSizes.width=e.width,t._cellSizes.height=e.height,this.element().selectAll("#"+this.id()+" > div > div.border-cell").each(function(){let i=Bt(this);if(typeof i.node=="function"){let o=i.node().getBoundingClientRect();i.classed("border-cell-top")?t._cellSizes.topHeight=o.height:i.classed("border-cell-left")?(t._cellSizes.leftWidth=o.width,t._cellSizes.leftHeight=o.height):i.classed("border-cell-right")?(t._cellSizes.rightWidth=o.width,t._cellSizes.rightHeight=o.height):i.classed("border-cell-bottom")&&(t._cellSizes.bottomHeight=o.height)}}),["height","width","topHeight","bottomHeight","leftHeight","rightHeight","leftWidth","rightWidth"].forEach(function(i){t._cellSizes[i]=t._cellSizes[i]===void 0?0:t._cellSizes[i]})}postUpdate(t,e){let i=this;this.content().forEach(function(o){if(o._element.node()!==null&&o.widget()){let r=o.widget().getBBox(!1,!0),l=o.widget().getBBox(!0,!0);(r.width!==l.width||r.height!==l.height)&&i.lazyRender()}})}exit(t,e){this.content().forEach(i=>i.target(null)),super.exit(t,e)}};Z.prototype._class+=" layout_Border";Z.prototype.publish("designMode",!1,"boolean","Design Mode",null,{tags:["Basic"]});Z.prototype.publish("content",[],"widgetArray","widgets",null,{tags:["Intermediate"]});Z.prototype.publish("gutter",0,"number","Gap Between Widgets",null,{tags:["Basic"]});Z.prototype.publish("topShrinkWrap",!1,"boolean","'Top' Cell shrinks to fit content",null,{tags:["Intermediate"]});Z.prototype.publish("leftShrinkWrap",!1,"boolean","'Left' Cell shrinks to fit content",null,{tags:["Intermediate"]});Z.prototype.publish("rightShrinkWrap",!1,"boolean","'Right' Cell shrinks to fit content",null,{tags:["Intermediate"]});Z.prototype.publish("bottomShrinkWrap",!1,"boolean","'Bottom' Cell shrinks to fit content",null,{tags:["Intermediate"]});Z.prototype.publish("topSize",0,"number","Height of the 'Top' Cell (px)",null,{tags:["Private"]});Z.prototype.publish("leftSize",0,"number","Width of the 'Left' Cell (px)",null,{tags:["Private"]});Z.prototype.publish("rightSize",0,"number","Width of the 'Right' Cell (px)",null,{tags:["Private"]});Z.prototype.publish("bottomSize",0,"number","Height of the 'Bottom' Cell (px)",null,{tags:["Private"]});Z.prototype.publish("topPercentage",20,"number","Percentage (of parent) Height of the 'Top' Cell",null,{tags:["Private"]});Z.prototype.publish("leftPercentage",20,"number","Percentage (of parent) Width of the 'Left' Cell",null,{tags:["Private"]});Z.prototype.publish("rightPercentage",20,"number","Percentage (of parent) Width of the 'Right' Cell",null,{tags:["Private"]});Z.prototype.publish("bottomPercentage",20,"number","Percentage (of parent) Height of the 'Bottom' Cell",null,{tags:["Private"]});Z.prototype.publish("surfacePadding",0,"number","Cell Padding (px)",null,{tags:["Intermediate"]});Z.prototype.publish("sectionTypes",[],"array","Section Types sharing an index with 'content' - Used to determine position/size.",null,{tags:["Private"]});(function(){if(!document.getElementById("23362289")){var t=document.createElement("style");t.id="23362289",t.textContent=`.layout_Border2 {
807
800
  display: flex;
808
801
  flex-direction: column;
809
802
  }
@@ -825,15 +818,15 @@ div[draggable=true].hideDragCellContent.content-icon-FAChar:before{
825
818
  .layout_Border2 > .footer {
826
819
  display: block;
827
820
  }
828
- `,document.head.appendChild(i)}})();var ml=class{static{c(this,"Z")}static{B(this,"WidgetDiv")}_div;_overlay=!1;_overflowX="visible";_overflowY="visible";_widget;constructor(i){this._div=i}overlay(i){return arguments.length?(this._overlay=i,this):this._overlay}overflowX(i){return arguments.length?(this._overflowX=i,this._div.style("overflow-x",i),this):this._overflowX}overflowY(i){return arguments.length?(this._overflowY=i,this._div.style("overflow-y",i),this):this._overflowY}element(){return this._div}node(){return this._div.node()}widget(i){return arguments.length?(this._widget!==i&&(this._widget&&this._widget.target(null),this._widget=i,this._widget&&this._widget.target(this._div.node())),this):this._widget}resize(i){return this._widget&&(this._div.style("width",`${i.width}px`).style("height",`${i.height}px`),this._widget.resize(i)),this}async render(i,o,l){let s=this.overflowX();!this.overlay()&&s==="visible"&&(s=null);let h=this.overflowY();return!this.overlay()&&h==="visible"&&(h=null),this._div.style("height",this.overlay()?"0px":null).style("overflow-x",s).style("overflow-y",h),this._widget?this._widget.renderPromise().then(p=>{if(i&&this._widget.visible()){let f=this._widget.getBBox();return f.width+=8,o!==void 0&&f.height>o&&(f.width+=op.getScrollbarWidth()),l!==void 0&&f.width>l&&(f.height+=op.getScrollbarWidth()),this.overlay()?f.height=0:f.height+=4,f}return i?{x:0,y:0,width:0,height:0}:void 0}):Promise.resolve(i?{x:0,y:0,width:0,height:0}:void 0)}},Ge=class extends ym{static{c(this,"x")}static{B(this,"Border2")}_bodyElement;_topWA;_leftWA;_centerWA;_rightWA;_bottomWA;_topPrevOverflow;_leftPrevOverflow;_rightPrevOverflow;_bottomPrevOverflow;constructor(){super(),this._tag="div"}enter(i,o){super.enter(i,o);let l=o.append("header");this._bodyElement=o.append("div").attr("class","body");let s=this._bodyElement.append("div").attr("class","center"),h=this._bodyElement.append("div").attr("class","lhs"),p=this._bodyElement.append("div").attr("class","rhs"),f=o.append("div").attr("class","footer");this._topWA=new ml(l),this._centerWA=new ml(s),this._leftWA=new ml(h),this._rightWA=new ml(p),this._bottomWA=new ml(f)}update(i,o){super.update(i,o),this._topWA.element().style("display",this.showTop()?null:"none"),this._rightWA.element().style("display",this.showRight()?null:"none"),this._bottomWA.element().style("display",this.showBottom()?null:"none"),this._leftWA.element().style("display",this.showLeft()?null:"none"),this.topOverflowX()!==this._topWA.overflowX()&&this._topWA.overflowX(this.topOverflowX()),this.rightOverflowX()!==this._rightWA.overflowX()&&this._rightWA.overflowX(this.rightOverflowX()),this.bottomOverflowX()!==this._bottomWA.overflowX()&&this._bottomWA.overflowX(this.bottomOverflowX()),this.leftOverflowX()!==this._leftWA.overflowX()&&this._leftWA.overflowX(this.leftOverflowX()),this.topOverflowY()!==this._topWA.overflowY()&&this._topWA.overflowY(this.topOverflowY()),this.rightOverflowY()!==this._rightWA.overflowY()&&this._rightWA.overflowY(this.rightOverflowY()),this.bottomOverflowY()!==this._bottomWA.overflowY()&&this._bottomWA.overflowY(this.bottomOverflowY()),this.leftOverflowY()!==this._leftWA.overflowY()&&this._leftWA.overflowY(this.leftOverflowY()),this.element().style("width",`${this.width()}px`).style("height",`${this.height()}px`)}targetNull(i){i&&i.target(null)}exit(i,o){this.targetNull(this.center()),this.targetNull(this.bottom()),this.targetNull(this.right()),this.targetNull(this.left()),this.targetNull(this.top()),super.exit(i,o)}swap(i,o){let l=this[i](),s=this[o]();return this.targetNull(l),this.targetNull(s),this[`_${i}WA`].widget(null),this[`_${o}WA`].widget(null),this[i](s),this[o](l),this}render(i){return super.render(o=>{this._topWA?this._topWA.widget(this.top()).overlay(this.topOverlay()).render(!0).then(async l=>{let s=await this._bottomWA.widget(this.bottom()).render(!0,void 0,this.width()),h=this.height()-(l.height+s.height),p=await this._leftWA.widget(this.left()).render(!0,h),f=await this._rightWA.widget(this.right()).render(!0,h);this.bottomHeight_exists()&&(s.height=this.bottomHeight());let m=this.width()-(p.width+f.width),b=this.height()-(l.height+s.height),_=this.centerOverflowX(),I=this.centerOverflowY(),P=["auto","scroll"].indexOf(_)!==-1,z=["auto","scroll"].indexOf(I)!==-1;(P||z)&&this._centerWA.overflowX(this.centerOverflowX()).overflowY(this.centerOverflowY()).widget(this.center()).resize({width:m,height:b}).render(),this._bodyElement.style("height",`${b}px`);let R=[this._topWA.overflowX(this.topOverflowX()).overflowY(this.topOverflowY()).resize({width:this.width(),height:l.height}).render(),this._leftWA.overflowX(this.leftOverflowX()).overflowY(this.leftOverflowY()).resize({width:p.width,height:b}).render(),this._rightWA.overflowX(this.rightOverflowX()).overflowY(this.rightOverflowY()).resize({width:f.width,height:b}).render(),this._centerWA.overflowX(this.centerOverflowX()).overflowY(this.centerOverflowY()).widget(this.center()).resize({width:m,height:b}).render(),this._bottomWA.overflowX(this.bottomOverflowX()).overflowY(this.bottomOverflowY()).resize({width:this.width(),height:s.height}).render()];Promise.all(R).then(M=>{i&&i(this)})}):i&&i(this)})}};Ge.prototype._class+=" layout_Border2";Ge.prototype.publish("showTop",!0,"boolean","If true, top widget adapter will display");Ge.prototype.publish("showRight",!0,"boolean","If true, right widget adapter will display");Ge.prototype.publish("showBottom",!0,"boolean","If true, bottom widget adapter will display");Ge.prototype.publish("showLeft",!0,"boolean","If true, left widget adapter will display");Ge.prototype.publish("topOverflowX","visible","set","Sets the overflow-x css style for the top widget adapter",["hidden","scroll","visible","auto"]);Ge.prototype.publish("rightOverflowX","visible","set","Sets the overflow-x css style for the right widget adapter",["hidden","scroll","visible","auto"]);Ge.prototype.publish("bottomOverflowX","visible","set","Sets the overflow-x css style for the bottom widget adapter",["hidden","scroll","visible","auto"]);Ge.prototype.publish("leftOverflowX","visible","set","Sets the overflow-x css style for the left widget adapter",["hidden","scroll","visible","auto"]);Ge.prototype.publish("centerOverflowX","visible","set","Sets the overflow-x css style for the center widget adapter",["hidden","scroll","visible","auto"]);Ge.prototype.publish("topOverflowY","visible","set","Sets the overflow-y css style for the top widget adapter",["hidden","scroll","visible","auto"]);Ge.prototype.publish("rightOverflowY","visible","set","Sets the overflow-y css style for the right widget adapter",["hidden","scroll","visible","auto"]);Ge.prototype.publish("bottomOverflowY","visible","set","Sets the overflow-y css style for the bottom widget adapter",["hidden","scroll","visible","auto"]);Ge.prototype.publish("leftOverflowY","visible","set","Sets the overflow-y css style for the left widget adapter",["hidden","scroll","visible","auto"]);Ge.prototype.publish("centerOverflowY","visible","set","Sets the overflow-y css style for the center widget adapter",["hidden","scroll","visible","auto"]);Ge.prototype.publish("top",null,"widget","Top Widget",void 0,{render:!1});Ge.prototype.publish("topOverlay",!1,"boolean","Overlay Top Widget");Ge.prototype.publish("left",null,"widget","Left Widget",void 0,{render:!1});Ge.prototype.publish("center",null,"widget","Center Widget",void 0,{render:!1});Ge.prototype.publish("right",null,"widget","Right Widget",void 0,{render:!1});Ge.prototype.publish("bottom",null,"widget","Bottom Widget",void 0,{render:!1});Ge.prototype.publish("bottomHeight",null,"number","Bottom Fixed Height",void 0,{optional:!0});(function(){if(!document.getElementById("17c1eb84")){var i=document.createElement("style");i.id="17c1eb84",i.textContent=`.layout_Carousel > div {
821
+ `,document.head.appendChild(t)}})();var je=class{static{d(this,"Z")}static{w(this,"WidgetDiv")}_div;_overlay=!1;_overflowX="visible";_overflowY="visible";_widget;constructor(t){this._div=t}overlay(t){return arguments.length?(this._overlay=t,this):this._overlay}overflowX(t){return arguments.length?(this._overflowX=t,this._div.style("overflow-x",t),this):this._overflowX}overflowY(t){return arguments.length?(this._overflowY=t,this._div.style("overflow-y",t),this):this._overflowY}element(){return this._div}node(){return this._div.node()}widget(t){return arguments.length?(this._widget!==t&&(this._widget&&this._widget.target(null),this._widget=t,this._widget&&this._widget.target(this._div.node())),this):this._widget}resize(t){return this._widget&&(this._div.style("width",`${t.width}px`).style("height",`${t.height}px`),this._widget.resize(t)),this}async render(t,e,i){let o=this.overflowX();!this.overlay()&&o==="visible"&&(o=null);let r=this.overflowY();return!this.overlay()&&r==="visible"&&(r=null),this._div.style("height",this.overlay()?"0px":null).style("overflow-x",o).style("overflow-y",r),this._widget?this._widget.renderPromise().then(l=>{if(t&&this._widget.visible()){let n=this._widget.getBBox();return n.width+=8,e!==void 0&&n.height>e&&(n.width+=ln.getScrollbarWidth()),i!==void 0&&n.width>i&&(n.height+=ln.getScrollbarWidth()),this.overlay()?n.height=0:n.height+=4,n}return t?{x:0,y:0,width:0,height:0}:void 0}):Promise.resolve(t?{x:0,y:0,width:0,height:0}:void 0)}},J=class extends Ja{static{d(this,"x")}static{w(this,"Border2")}_bodyElement;_topWA;_leftWA;_centerWA;_rightWA;_bottomWA;_topPrevOverflow;_leftPrevOverflow;_rightPrevOverflow;_bottomPrevOverflow;constructor(){super(),this._tag="div"}enter(t,e){super.enter(t,e);let i=e.append("header");this._bodyElement=e.append("div").attr("class","body");let o=this._bodyElement.append("div").attr("class","center"),r=this._bodyElement.append("div").attr("class","lhs"),l=this._bodyElement.append("div").attr("class","rhs"),n=e.append("div").attr("class","footer");this._topWA=new je(i),this._centerWA=new je(o),this._leftWA=new je(r),this._rightWA=new je(l),this._bottomWA=new je(n)}update(t,e){super.update(t,e),this._topWA.element().style("display",this.showTop()?null:"none"),this._rightWA.element().style("display",this.showRight()?null:"none"),this._bottomWA.element().style("display",this.showBottom()?null:"none"),this._leftWA.element().style("display",this.showLeft()?null:"none"),this.topOverflowX()!==this._topWA.overflowX()&&this._topWA.overflowX(this.topOverflowX()),this.rightOverflowX()!==this._rightWA.overflowX()&&this._rightWA.overflowX(this.rightOverflowX()),this.bottomOverflowX()!==this._bottomWA.overflowX()&&this._bottomWA.overflowX(this.bottomOverflowX()),this.leftOverflowX()!==this._leftWA.overflowX()&&this._leftWA.overflowX(this.leftOverflowX()),this.topOverflowY()!==this._topWA.overflowY()&&this._topWA.overflowY(this.topOverflowY()),this.rightOverflowY()!==this._rightWA.overflowY()&&this._rightWA.overflowY(this.rightOverflowY()),this.bottomOverflowY()!==this._bottomWA.overflowY()&&this._bottomWA.overflowY(this.bottomOverflowY()),this.leftOverflowY()!==this._leftWA.overflowY()&&this._leftWA.overflowY(this.leftOverflowY()),this.element().style("width",`${this.width()}px`).style("height",`${this.height()}px`)}targetNull(t){t&&t.target(null)}exit(t,e){this.targetNull(this.center()),this.targetNull(this.bottom()),this.targetNull(this.right()),this.targetNull(this.left()),this.targetNull(this.top()),super.exit(t,e)}swap(t,e){let i=this[t](),o=this[e]();return this.targetNull(i),this.targetNull(o),this[`_${t}WA`].widget(null),this[`_${e}WA`].widget(null),this[t](o),this[e](i),this}render(t){return super.render(e=>{this._topWA?this._topWA.widget(this.top()).overlay(this.topOverlay()).render(!0).then(async i=>{let o=await this._bottomWA.widget(this.bottom()).render(!0,void 0,this.width()),r=this.height()-(i.height+o.height),l=await this._leftWA.widget(this.left()).render(!0,r),n=await this._rightWA.widget(this.right()).render(!0,r);this.bottomHeight_exists()&&(o.height=this.bottomHeight());let s=this.width()-(l.width+n.width),a=this.height()-(i.height+o.height),c=this.centerOverflowX(),g=this.centerOverflowY(),u=["auto","scroll"].indexOf(c)!==-1,f=["auto","scroll"].indexOf(g)!==-1;(u||f)&&this._centerWA.overflowX(this.centerOverflowX()).overflowY(this.centerOverflowY()).widget(this.center()).resize({width:s,height:a}).render(),this._bodyElement.style("height",`${a}px`);let p=[this._topWA.overflowX(this.topOverflowX()).overflowY(this.topOverflowY()).resize({width:this.width(),height:i.height}).render(),this._leftWA.overflowX(this.leftOverflowX()).overflowY(this.leftOverflowY()).resize({width:l.width,height:a}).render(),this._rightWA.overflowX(this.rightOverflowX()).overflowY(this.rightOverflowY()).resize({width:n.width,height:a}).render(),this._centerWA.overflowX(this.centerOverflowX()).overflowY(this.centerOverflowY()).widget(this.center()).resize({width:s,height:a}).render(),this._bottomWA.overflowX(this.bottomOverflowX()).overflowY(this.bottomOverflowY()).resize({width:this.width(),height:o.height}).render()];Promise.all(p).then(y=>{t&&t(this)})}):t&&t(this)})}};J.prototype._class+=" layout_Border2";J.prototype.publish("showTop",!0,"boolean","If true, top widget adapter will display");J.prototype.publish("showRight",!0,"boolean","If true, right widget adapter will display");J.prototype.publish("showBottom",!0,"boolean","If true, bottom widget adapter will display");J.prototype.publish("showLeft",!0,"boolean","If true, left widget adapter will display");J.prototype.publish("topOverflowX","visible","set","Sets the overflow-x css style for the top widget adapter",["hidden","scroll","visible","auto"]);J.prototype.publish("rightOverflowX","visible","set","Sets the overflow-x css style for the right widget adapter",["hidden","scroll","visible","auto"]);J.prototype.publish("bottomOverflowX","visible","set","Sets the overflow-x css style for the bottom widget adapter",["hidden","scroll","visible","auto"]);J.prototype.publish("leftOverflowX","visible","set","Sets the overflow-x css style for the left widget adapter",["hidden","scroll","visible","auto"]);J.prototype.publish("centerOverflowX","visible","set","Sets the overflow-x css style for the center widget adapter",["hidden","scroll","visible","auto"]);J.prototype.publish("topOverflowY","visible","set","Sets the overflow-y css style for the top widget adapter",["hidden","scroll","visible","auto"]);J.prototype.publish("rightOverflowY","visible","set","Sets the overflow-y css style for the right widget adapter",["hidden","scroll","visible","auto"]);J.prototype.publish("bottomOverflowY","visible","set","Sets the overflow-y css style for the bottom widget adapter",["hidden","scroll","visible","auto"]);J.prototype.publish("leftOverflowY","visible","set","Sets the overflow-y css style for the left widget adapter",["hidden","scroll","visible","auto"]);J.prototype.publish("centerOverflowY","visible","set","Sets the overflow-y css style for the center widget adapter",["hidden","scroll","visible","auto"]);J.prototype.publish("top",null,"widget","Top Widget",void 0,{render:!1});J.prototype.publish("topOverlay",!1,"boolean","Overlay Top Widget");J.prototype.publish("left",null,"widget","Left Widget",void 0,{render:!1});J.prototype.publish("center",null,"widget","Center Widget",void 0,{render:!1});J.prototype.publish("right",null,"widget","Right Widget",void 0,{render:!1});J.prototype.publish("bottom",null,"widget","Bottom Widget",void 0,{render:!1});J.prototype.publish("bottomHeight",null,"number","Bottom Fixed Height",void 0,{optional:!0});(function(){if(!document.getElementById("17c1eb84")){var t=document.createElement("style");t.id="17c1eb84",t.textContent=`.layout_Carousel > div {
829
822
  position: relative;
830
823
  overflow: hidden;
831
824
  }
832
825
 
833
826
  .layout_Carousel > div > .carouselItem {
834
827
  position: absolute;
835
- }`,document.head.appendChild(i)}})();var vl=class extends bm{static{c(this,"K")}static{B(this,"Carousel")}_prevActive=0;_root;activeWidget(){return this.widgets()[this.active()]}enter(i,o){super.enter(i,o),this._root=o.append("div").attr("id",`${this.id()}_root`)}update(i,o){super.update(i,o);let l=this.active(),s=this.width();this._root.style("width",`${s}px`).style("height",`${this.height()}px`);let h=this._root.selectAll(`#${this.id()}_root > .carouselItem`).data(this.widgets(),f=>f.id()),p=h.enter().append("div").attr("class","carouselItem").each(function(f){f.target(this)}).merge(h).style("left",(f,m)=>`${(m-this._prevActive)*s}px`).style("width",`${s}px`);this._prevActive!==l&&(p.style("display",(f,m)=>m===this._prevActive||m===l?null:"none").transition().duration(this.transitionDuration()).style("left",(f,m)=>`${(m-l)*s}px`).on("end",function(f,m){vm(this).style("display",()=>m===l?null:"none")}),this._prevActive=l),h.exit().each(function(f){f.target(null)}).remove()}exit(i,o){this.widgets().forEach(l=>l.target(null)),super.exit(i,o)}render(i){return super.render(o=>{if(!this.visible()||this.isDOMHidden())i&&i(o);else{let l=this.activeWidget();l&&l.resize(this.size()).render(s=>{i&&i(o)})}})}};vl.prototype._class+=" layout_Carousel";vl.prototype.publish("widgets",[],"widgetArray","Widgets",null,{render:!1});vl.prototype.publish("active",0,"number","Active widget");vl.prototype.publish("transitionDuration",500,"number","Transition duration");var jd=Math.PI,Ud=2*jd,an=1e-6,Im=Ud-an;function rs(){this._x0=this._y0=this._x1=this._y1=null,this._=""}c(rs,"mt");B(rs,"Path");function Xd(){return new rs}c(Xd,"Ft");B(Xd,"path");rs.prototype=Xd.prototype={constructor:rs,moveTo:B(function(i,o){this._+="M"+(this._x0=this._x1=+i)+","+(this._y0=this._y1=+o)},"moveTo"),closePath:B(function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},"closePath"),lineTo:B(function(i,o){this._+="L"+(this._x1=+i)+","+(this._y1=+o)},"lineTo"),quadraticCurveTo:B(function(i,o,l,s){this._+="Q"+ +i+","+ +o+","+(this._x1=+l)+","+(this._y1=+s)},"quadraticCurveTo"),bezierCurveTo:B(function(i,o,l,s,h,p){this._+="C"+ +i+","+ +o+","+ +l+","+ +s+","+(this._x1=+h)+","+(this._y1=+p)},"bezierCurveTo"),arcTo:B(function(i,o,l,s,h){i=+i,o=+o,l=+l,s=+s,h=+h;var p=this._x1,f=this._y1,m=l-i,b=s-o,_=p-i,I=f-o,P=_*_+I*I;if(h<0)throw new Error("negative radius: "+h);if(this._x1===null)this._+="M"+(this._x1=i)+","+(this._y1=o);else if(P>an)if(!(Math.abs(I*m-b*_)>an)||!h)this._+="L"+(this._x1=i)+","+(this._y1=o);else{var z=l-p,R=s-f,M=m*m+b*b,N=z*z+R*R,F=Math.sqrt(M),D=Math.sqrt(P),Y=h*Math.tan((jd-Math.acos((M+P-N)/(2*F*D)))/2),j=Y/D,G=Y/F;Math.abs(j-1)>an&&(this._+="L"+(i+j*_)+","+(o+j*I)),this._+="A"+h+","+h+",0,0,"+ +(I*z>_*R)+","+(this._x1=i+G*m)+","+(this._y1=o+G*b)}},"arcTo"),arc:B(function(i,o,l,s,h,p){i=+i,o=+o,l=+l,p=!!p;var f=l*Math.cos(s),m=l*Math.sin(s),b=i+f,_=o+m,I=1^p,P=p?s-h:h-s;if(l<0)throw new Error("negative radius: "+l);this._x1===null?this._+="M"+b+","+_:(Math.abs(this._x1-b)>an||Math.abs(this._y1-_)>an)&&(this._+="L"+b+","+_),l&&(P<0&&(P=P%Ud+Ud),P>Im?this._+="A"+l+","+l+",0,1,"+I+","+(i-f)+","+(o-m)+"A"+l+","+l+",0,1,"+I+","+(this._x1=b)+","+(this._y1=_):P>an&&(this._+="A"+l+","+l+",0,"+ +(P>=jd)+","+I+","+(this._x1=i+l*Math.cos(h))+","+(this._y1=o+l*Math.sin(h))))},"arc"),rect:B(function(i,o,l,s){this._+="M"+(this._x0=this._x1=+i)+","+(this._y0=this._y1=+o)+"h"+ +l+"v"+ +s+"h"+-l+"Z"},"rect"),toString:B(function(){return this._},"toString")};var Em=Xd;function yl(i){return B(function(){return i},"constant")}c(yl,"it");B(yl,"default");var bl=Math.PI,pb=bl/2,is=2*bl,Vd={draw:B(function(i,o){var l=Math.sqrt(o/bl);i.moveTo(l,0),i.arc(0,0,l,0,is)},"draw")},Rm={draw:B(function(i,o){var l=Math.sqrt(o/5)/2;i.moveTo(-3*l,-l),i.lineTo(-l,-l),i.lineTo(-l,-3*l),i.lineTo(l,-3*l),i.lineTo(l,-l),i.lineTo(3*l,-l),i.lineTo(3*l,l),i.lineTo(l,l),i.lineTo(l,3*l),i.lineTo(-l,3*l),i.lineTo(-l,l),i.lineTo(-3*l,l),i.closePath()},"draw")},gp=Math.sqrt(.3333333333333333),Mm=gp*2,Dm={draw:B(function(i,o){var l=Math.sqrt(o/Mm),s=l*gp;i.moveTo(0,-l),i.lineTo(s,0),i.lineTo(0,l),i.lineTo(-s,0),i.closePath()},"draw")},Bm=.8908130915292852,mp=Math.sin(bl/10)/Math.sin(7*bl/10),Fm=Math.sin(is/10)*mp,Lm=-Math.cos(is/10)*mp,Am={draw:B(function(i,o){var l=Math.sqrt(o*Bm),s=Fm*l,h=Lm*l;i.moveTo(0,-l),i.lineTo(s,h);for(var p=1;p<5;++p){var f=is*p/5,m=Math.cos(f),b=Math.sin(f);i.lineTo(b*l,-m*l),i.lineTo(m*s-b*h,b*s+m*h)}i.closePath()},"draw")},Om={draw:B(function(i,o){var l=Math.sqrt(o),s=-l/2;i.rect(s,s,l,l)},"draw")},Nd=Math.sqrt(3),Wm={draw:B(function(i,o){var l=-Math.sqrt(o/(Nd*3));i.moveTo(0,l*2),i.lineTo(-Nd*l,-l),i.lineTo(Nd*l,-l),i.closePath()},"draw")},Zt=-.5,Jt=Math.sqrt(3)/2,$d=1/Math.sqrt(12),Nm=($d/2+1)*3,Hm={draw:B(function(i,o){var l=Math.sqrt(o/Nm),s=l/2,h=l*$d,p=s,f=l*$d+l,m=-p,b=f;i.moveTo(s,h),i.lineTo(p,f),i.lineTo(m,b),i.lineTo(Zt*s-Jt*h,Jt*s+Zt*h),i.lineTo(Zt*p-Jt*f,Jt*p+Zt*f),i.lineTo(Zt*m-Jt*b,Jt*m+Zt*b),i.lineTo(Zt*s+Jt*h,Zt*h-Jt*s),i.lineTo(Zt*p+Jt*f,Zt*f-Jt*p),i.lineTo(Zt*m+Jt*b,Zt*b-Jt*m),i.closePath()},"draw")};function Gd(){var i=yl(Vd),o=yl(64),l=null;function s(){var h;if(l||(l=h=Em()),i.apply(this,arguments).draw(l,+o.apply(this,arguments)),h)return l=null,h+""||null}return c(s,"i"),B(s,"symbol"),s.type=function(h){return arguments.length?(i=typeof h=="function"?h:yl(h),s):i},s.size=function(h){return arguments.length?(o=typeof h=="function"?h:yl(+h),s):o},s.context=function(h){return arguments.length?(l=h??null,s):l},s}c(Gd,"lt");B(Gd,"default");var qm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},yp=B(function(i){return i},"d3_identity"),cp=B(function(i){for(var o=[],l=0,s=i.length;l<s;l++)o[l]=i[s-l-1];return o},"d3_reverse"),hp=B(function(i,o){i.each(function(){for(var l=jm(this),s=l.text().split(/\s+/).reverse(),h,p=[],f=0,m=1.2,b=l.attr("y"),_=parseFloat(l.attr("dy"))||0,I=l.text(null).append("tspan").attr("x",0).attr("dy",_+"em");h=s.pop();)p.push(h),I.text(p.join(" ")),I.node().getComputedTextLength()>o&&p.length>1&&(p.pop(),I.text(p.join(" ")),p=[h],I=l.append("tspan").attr("x",0).attr("dy",m+_+"em").text(h))})},"d3_textWrapping"),Qm=B(function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=arguments[1],l=arguments[2],s=arguments[3],h=arguments[4];if((typeof o>"u"?"undefined":qm(o))==="object"){if(o.length===0)return i;for(var p=o.length;p<i.length;p++)o.push(i[p]);return o}else if(typeof o=="function"){for(var f=[],m=i.length,b=0;b<m;b++)f.push(o({i:b,genLength:m,generatedLabels:i,domain:l,range:s,labelDelimiter:h}));return f}return i},"d3_mergeLabels"),Zm=B(function(i,o,l){var s=[];if(o.length>1)s=o;else for(var h=i.domain(),p=(h[h.length-1]-h[0])/(o-1),f=0;f<o;f++)s.push(h[0]+f*p);var m=s.map(l);return{data:s,labels:m,feature:B(function(b){return i(b)},"feature")}},"d3_linearLegend"),Jm=B(function(i,o,l){var s=i.range().map(function(h){var p=i.invertExtent(h);return o(p[0])+" "+l+" "+o(p[1])});return{data:i.range(),labels:s,feature:yp}},"d3_quantLegend"),ey=B(function(i){return{data:i.domain(),labels:i.domain(),feature:B(function(o){return i(o)},"feature")}},"d3_ordinalLegend"),ty=B(function(i,o,l){i.call("cellover",l,o)},"d3_cellOver"),ry=B(function(i,o,l){i.call("cellout",l,o)},"d3_cellOut"),iy=B(function(i,o,l){i.call("cellclick",l,o)},"d3_cellClick"),Pr={d3_drawShapes:B(function(i,o,l,s,h,p){i==="rect"?o.attr("height",l).attr("width",s):i==="circle"?o.attr("r",h):i==="line"?o.attr("x1",0).attr("x2",s).attr("y1",0).attr("y2",0):i==="path"&&o.attr("d",p)},"d3_drawShapes"),d3_addText:B(function(i,o,l,s,h){o.append("text").attr("class",s+"label");var p=i.selectAll("g."+s+"cell text."+s+"label").data(l).text(yp);return h&&i.selectAll("g."+s+"cell text."+s+"label").call(hp,h),p},"d3_addText"),d3_calcType:B(function(i,o,l,s,h,p){var f=i.invertExtent?Jm(i,h,p):i.ticks?Zm(i,l,h):ey(i),m=i.range&&i.range()||i.domain();return f.labels=Qm(f.labels,s,i.domain(),m,p),o&&(f.labels=cp(f.labels),f.data=cp(f.data)),f},"d3_calcType"),d3_filterCells:B(function(i,o){var l=i.data.map(function(p,f){return{data:p,label:i.labels[f]}}).filter(o),s=l.map(function(p){return p.data}),h=l.map(function(p){return p.label});return i.data=i.data.filter(function(p){return s.indexOf(p)!==-1}),i.labels=i.labels.filter(function(p){return h.indexOf(p)!==-1}),i},"d3_filterCells"),d3_placement:B(function(i,o,l,s,h,p){o.attr("transform",l),s.attr("transform",h),i==="horizontal"&&s.style("text-anchor",p)},"d3_placement"),d3_addEvents:B(function(i,o){i.on("mouseover.legend",function(l){ty(o,l,this)}).on("mouseout.legend",function(l){ry(o,l,this)}).on("click.legend",function(l){iy(o,l,this)})},"d3_addEvents"),d3_title:B(function(i,o,l,s){if(o!==""){var h=i.selectAll("text."+l+"legendTitle");h.data([o]).enter().append("text").attr("class",l+"legendTitle"),i.selectAll("text."+l+"legendTitle").text(o),s&&i.selectAll("text."+l+"legendTitle").call(hp,s);var p=i.select("."+l+"legendCells"),f=i.select("."+l+"legendTitle").nodes().map(function(b){return b.getBBox().height})[0],m=-p.nodes().map(function(b){return b.getBBox().x})[0];p.attr("transform","translate("+m+","+f+")")}},"d3_title"),d3_defaultLocale:{format:Um,formatPrefix:$m},d3_defaultFormatSpecifier:".01f",d3_defaultDelimiter:"to"};function bp(){var i=Xm(),o="rect",l=15,s=15,h=10,p=2,f=[5],m=void 0,b=[],_="",I=!1,P="",z=Pr.d3_defaultLocale,R=Pr.d3_defaultFormatSpecifier,M=10,N="middle",F=Pr.d3_defaultDelimiter,D=void 0,Y="vertical",j=!1,G=void 0,K=void 0,X=Ym("cellover","cellout","cellclick");function E(k){var Q=Pr.d3_calcType(i,j,f,b,z.format(R),F),ae=k.selectAll("g").data([i]);ae.enter().append("g").attr("class",_+"legendCells"),m&&Pr.d3_filterCells(Q,m);var ye=k.select("."+_+"legendCells").selectAll("."+_+"cell").data(Q.data),ge=ye.enter().append("g").attr("class",_+"cell");ge.append(o).attr("class",_+"swatch");var ce=k.selectAll("g."+_+"cell "+o+"."+_+"swatch").data(Q.data);Pr.d3_addEvents(ge,X),ye.exit().transition().style("opacity",0).remove(),ce.exit().transition().style("opacity",0).remove(),ce=ce.merge(ce),Pr.d3_drawShapes(o,ce,s,l,h,G);var Fe=Pr.d3_addText(k,ge,Q.labels,_,D);ye=ge.merge(ye);var Se=Fe.nodes().map(function(ne){return ne.getBBox()}),Pe=ce.nodes().map(function(ne){return ne.getBBox()});I?ce.attr("class",function(ne){return _+"swatch "+Q.feature(ne)}):o=="line"?ce.style("stroke",Q.feature):ce.style("fill",Q.feature);var Le=void 0,U=void 0,de=N=="start"?0:N=="middle"?.5:1;Y==="vertical"?function(){var ne=Se.map(function(ee,x){return Math.max(ee.height,Pe[x].height)});Le=B(function(ee,x){var H=Km(ne.slice(0,x));return"translate(0, "+(H+x*p)+")"},"cellTrans"),U=B(function(ee,x){return"translate( "+(Pe[x].width+Pe[x].x+M)+", "+(Pe[x].y+Pe[x].height/2+5)+")"},"textTrans")}():Y==="horizontal"&&(Le=B(function(ne,ee){return"translate("+ee*(Pe[ee].width+p)+",0)"},"cellTrans"),U=B(function(ne,ee){return"translate("+(Pe[ee].width*de+Pe[ee].x)+`,
836
- `+(Pe[ee].height+Pe[ee].y+M+8)+")"},"textTrans")),Pr.d3_placement(Y,ye,Le,Fe,U,N),Pr.d3_title(k,P,_,K),ye.transition().style("opacity",1)}return c(E,"g"),B(E,"legend"),E.scale=function(k){return arguments.length?(i=k,E):i},E.cells=function(k){return arguments.length?((k.length>1||k>=2)&&(f=k),E):f},E.cellFilter=function(k){return arguments.length?(m=k,E):m},E.shape=function(k,Q){return arguments.length?((k=="rect"||k=="circle"||k=="line"||k=="path"&&typeof Q=="string")&&(o=k,G=Q),E):o},E.shapeWidth=function(k){return arguments.length?(l=+k,E):l},E.shapeHeight=function(k){return arguments.length?(s=+k,E):s},E.shapeRadius=function(k){return arguments.length?(h=+k,E):h},E.shapePadding=function(k){return arguments.length?(p=+k,E):p},E.labels=function(k){return arguments.length?(b=k,E):b},E.labelAlign=function(k){return arguments.length?((k=="start"||k=="end"||k=="middle")&&(N=k),E):N},E.locale=function(k){return arguments.length?(z=Vm(k),E):z},E.labelFormat=function(k){return arguments.length?(R=Gm(k),E):E.locale().format(R)},E.labelOffset=function(k){return arguments.length?(M=+k,E):M},E.labelDelimiter=function(k){return arguments.length?(F=k,E):F},E.labelWrap=function(k){return arguments.length?(D=k,E):D},E.useClass=function(k){return arguments.length?((k===!0||k===!1)&&(I=k),E):I},E.orient=function(k){return arguments.length?(k=k.toLowerCase(),(k=="horizontal"||k=="vertical")&&(Y=k),E):Y},E.ascending=function(k){return arguments.length?(j=!!k,E):j},E.classPrefix=function(k){return arguments.length?(_=k,E):_},E.title=function(k){return arguments.length?(P=k,E):P},E.titleWidth=function(k){return arguments.length?(K=k,E):K},E.textWrap=function(k){return arguments.length?(textWrap=k,E):textWrap},E.on=function(){var k=X.on.apply(X,arguments);return k===X?E:k},E}c(bp,"Gt");B(bp,"color");var Ct=class extends Tm{static{c(this,"A")}static{B(this,"Legend")}_owner;_targetWidget;_targetWidgetMonitor;_legendOrdinal;_disabled=[];_symbolTypeMap={circle:Vd,cross:Rm,diamond:Dm,square:Om,star:Am,triangle:Wm,wye:Hm};constructor(i){super(),this._owner=i,this._drawStartPos="origin";let o=this;this._legendOrdinal=bp().shape("path",Gd().type(Vd).size(150)()).shapePadding(10).shapeRadius(10).on("cellclick",function(l){o.onClick(l,this)}).on("cellover",l=>{o.onOver(l,this)}).on("cellout",l=>{o.onOut(l,this)})}isDisabled(i){return typeof i>"u"?!1:typeof i=="string"?i.indexOf("__")===0||this._disabled.indexOf(i)>=0:i instanceof km.Field?i.id().indexOf("__")===0||this._disabled.indexOf(i.id())>=0:this._disabled.indexOf(i)>=0}filteredFields(){switch(this.dataFamily()){case"2D":return this.fields();case"ND":return this.fields().filter(i=>!this.isDisabled(i))}return this.fields()}filteredColumns(){switch(this.dataFamily()){case"2D":return this.columns();case"ND":return this.columns().filter(i=>!this.isDisabled(i))}return this.columns()}filteredData(){switch(this.dataFamily()){case"2D":return this.data().filter(l=>!this.isDisabled(l[0]));case"ND":let i={},o=!1;return this.columns().forEach((l,s)=>{let h=this.isDisabled(l);i[s]=h,h&&(o=!0)}),o?this.data().map(l=>l.filter((s,h)=>!i[h])):this.data()}return this.data()}isRainbow(){let i=this.getWidget();return i&&i._palette&&i._palette.type()==="rainbow"}targetWidget(i){if(!arguments.length)return this._targetWidget;if(this._targetWidget=i,this._targetWidgetMonitor&&(this._targetWidgetMonitor.remove(),delete this._targetWidgetMonitor),this._targetWidget){let o=this;this._targetWidgetMonitor=this._targetWidget.monitor(function(l,s,h,p){switch(l){case"chart":case"columns":case"data":case"paletteID":o.lazyRender();break}})}return this}getWidget(){if(this._targetWidget)switch(this._targetWidget.classID()){case"composite_MultiChart":return this._targetWidget.chart()}return this._targetWidget}getPalette(){let i=this.getWidget();if(i&&i._palette)switch(i._palette.type()){case"ordinal":return ts.ordinal(i._palette.id());case"rainbow":return ts.rainbow(i._palette.id())}return ts.ordinal("default")}getPaletteType(){return this.getPalette().type()}fillColorFunc(){let i=this.getWidget();if(i&&i.fillColor)return i._palette&&i.paletteID&&i._palette.name!==i.paletteID()&&(i._palette=i._palette.switch(i.paletteID())),(l,s,h)=>i.fillColor(l,s,h);let o=ts.ordinal(i&&i.paletteID&&i.paletteID()||"default");return(l,s,h)=>o(s)}fillColor(i,o,l){return this.fillColorFunc()(i,o,l)}_g;enter(i,o){super.enter(i,o),this._g=o.append("g").attr("class","legendOrdinal")}calcMetaData(){let i=[],o=0,l=0,s=this.columns().length;if(this._targetWidget){let h=this.columns();switch(this.getPaletteType()){case"ordinal":let p=this.fillColorFunc(),f=0;switch(this.dataFamily()){case"2D":i=this.data().map(function(M,N){f=this.data()[N].slice(1,s).reduce((j,G)=>j+G,0);let F=this.isDisabled(M[0]);F||(o+=f);let D=M[0]+(!F&&this.showSeriesTotal()?` (${f})`:""),Y=this.textSize(D);return l<Y.width&&(l=Y.width),[p(M,M[0],!1),M[0],D]},this);break;case"ND":i=this.columns().filter(M=>M.indexOf("__")!==0).filter(function(M,N){return N>0}).map(function(M,N){f=this.data().reduce((j,G)=>j+G[N+1],0);let F=this.isDisabled(h[N+1]),D=M+(!F&&this.showSeriesTotal()?` (${f})`:"");F||(o+=f);let Y=this.textSize(D);return l<Y.width&&(l=Y.width),[p(void 0,M,!1),M,D]},this);break;default:i=this.columns().map(function(M){return[p(void 0,M,!1),M]},this);break}break;case"rainbow":let m=this.getPalette(),b=Pm(this.rainbowFormat()),_=this.getWidget(),I=this.rainbowBins(),P=_._dataMinWeight,z=_._dataMaxWeight,R=(z-P)/(I-1);i.push([m(P,P,z),b(P)]);for(let M=1;M<I-1;++M){let N=R*M;Math.floor(N)>parseInt(i[0][1])&&(N=Math.floor(N)),i.push([m(N,P,z),b(N)])}i.push([m(z,P,z),b(z)]);break}}return{dataArr:i,total:o,maxLabelWidth:l}}update(i,o){super.update(i,o);let{dataArr:l,maxLabelWidth:s,total:h}=this.calcMetaData(),p=this.shapeRadius(),f=this.radiusToSymbolSize(p),m=1,b=this.itemPadding();this.orientation()==="horizontal"&&(b+=s-p*2);let _=zm().domain(l.map(D=>D[1])).range(l.map(D=>D[0]));this._legendOrdinal.shape("path",Gd().type(this._symbolTypeMap[this.symbolType()]).size(f)()).orient(this.orientation()).title(this.title()).labelWrap(this.labelMaxWidth()).labelAlign(this.labelAlign()).shapePadding(b).scale(_).labels(D=>l[D.i][2]),this._g.call(this._legendOrdinal),this.updateDisabled(o,l);let I=this._g.select(".legendCells").node().getBBox(),P=Math.abs(I.x),z=Math.abs(I.y)+m;if(this.orientation()==="horizontal"){if(this.labelAlign()==="start"?P+=m:this.labelAlign()==="end"&&(P-=m),this.width()>I.width){let D=this.width()-I.width;P+=D/2}}else if(this.orientation()==="vertical"&&(P+=m,this._containerSize.height>I.height)){let D=this.height()-I.height;z+=D/2}this._g.attr("transform",`translate(${P}, ${z})`),this.pos({x:0,y:0}),this._legendOrdinal.labelOffset(this.itemPadding());let R=this._g.selectAll(".legendTotal").data(l.length&&this.showLegendTotal()?[h]:[]),M=`Total: ${h}`,N=-P,F=I.height+this.itemPadding()+m;this.enableOverflowScroll(!1),this.enableOverflow(!0),R.enter().append("text").classed("legendTotal",!0).merge(R).attr("transform",`translate(${N}, ${F})`).text(M),R.exit().remove()}updateDisabled(i,o){i.style("cursor","pointer").selectAll("path.swatch").filter((l,s)=>s<o.length).style("stroke",(l,s)=>o[s][0]).style("fill",(l,s)=>this._disabled.indexOf(l)<0?o[s][0]:"white")}postUpdate(i,o){let l;this._boundingBox&&(l=this._boundingBox.width,this._boundingBox.width=this._size.width),super.postUpdate(i,o),l!==void 0&&(this._boundingBox.width=l),this._parentRelativeDiv.style("overflow","hidden")}exit(i,o){super.exit(i,o)}radiusToSymbolSize(i){let o=Math.pow(i,2)*Math.PI;switch(this.symbolType()){case"star":return o*.45;case"triangle":return o*.65;case"cross":case"diamond":case"wye":return o*.75;case"circle":return o;case"square":return o*1.3}}onClick(i,o){switch(this.getPaletteType()){case"ordinal":switch(this.dataFamily()){case"2D":case"ND":let l=this._disabled.indexOf(i);l<0?this._disabled.push(i):this._disabled.splice(l,1),this._owner.refreshColumns(),this._owner.refreshData(),this._owner.render();break}break}}onOver(i,o){if(dp(this._owner))switch(this.getPaletteType()){case"ordinal":switch(this.dataFamily()){case"2D":case"ND":this._disabled.indexOf(i)<0&&this._owner.highlightColumn(i);break}break}}onOut(i,o){if(dp(this._owner))switch(this.getPaletteType()){case"ordinal":switch(this.dataFamily()){case"2D":case"ND":this._owner.highlightColumn();break}break}}onDblClick(i,o){}onMouseOver(i,o){}_containerSize;resize(i){let o;if(this.fitToContent()){this._containerSize=i;let l=this.getBBox();i.width>l.width&&(l.width=i.width),i.height>l.height&&(l.height=i.height),o=super.resize.apply(this,[{...l}])}else o=super.resize.apply(this,arguments);return o}};Ct.prototype._class+=" layout_Legend";Ct.prototype.publish("title","","string","Title");Ct.prototype.publish("symbolType","circle","set","Shape of each legend item",["circle","cross","diamond","square","star","triangle","wye"]);Ct.prototype.publish("labelMaxWidth",null,"number","Max Label Width (pixels)",null,{optional:!0});Ct.prototype.publish("orientation","vertical","set","Orientation of Legend rows",["vertical","horizontal"],{tags:["Private"]});Ct.prototype.publish("dataFamily","ND","set","Type of data",["1D","2D","ND","map","graph","any"],{tags:["Private"]});Ct.prototype.publish("rainbowFormat",",","string","Rainbow number formatting",null,{tags:["Private"],optional:!0,disable:B(i=>!i.isRainbow(),"disable")});Ct.prototype.publish("rainbowBins",8,"number","Number of rainbow bins",null,{tags:["Private"],disable:B(i=>!i.isRainbow(),"disable")});Ct.prototype.publish("showSeriesTotal",!1,"boolean","Show value next to series");Ct.prototype.publish("showLegendTotal",!1,"boolean","Show a total of the series values under the legend",null);Ct.prototype.publish("itemPadding",8,"number","Padding between legend items (pixels)");Ct.prototype.publish("shapeRadius",7,"number","Radius of legend shape (pixels)");Ct.prototype.publish("fitToContent",!0,"boolean","If true, resize will simply reapply the bounding box dimensions");Ct.prototype.publish("labelAlign","start","set","Horizontal alignment of legend item label (for horizontal orientation only)",["start","middle","end"],{optional:!0,disable:B(i=>i.orientation()==="vertical","disable")});(function(){if(!document.getElementById("810b6dee")){var i=document.createElement("style");i.id="810b6dee",i.textContent=`.layout_Modal-header {
828
+ }`,document.head.appendChild(t)}})();var Ke=class extends Za{static{d(this,"K")}static{w(this,"Carousel")}_prevActive=0;_root;activeWidget(){return this.widgets()[this.active()]}enter(t,e){super.enter(t,e),this._root=e.append("div").attr("id",`${this.id()}_root`)}update(t,e){super.update(t,e);let i=this.active(),o=this.width();this._root.style("width",`${o}px`).style("height",`${this.height()}px`);let r=this._root.selectAll(`#${this.id()}_root > .carouselItem`).data(this.widgets(),n=>n.id()),l=r.enter().append("div").attr("class","carouselItem").each(function(n){n.target(this)}).merge(r).style("left",(n,s)=>`${(s-this._prevActive)*o}px`).style("width",`${o}px`);this._prevActive!==i&&(l.style("display",(n,s)=>s===this._prevActive||s===i?null:"none").transition().duration(this.transitionDuration()).style("left",(n,s)=>`${(s-i)*o}px`).on("end",function(n,s){Qa(this).style("display",()=>s===i?null:"none")}),this._prevActive=i),r.exit().each(function(n){n.target(null)}).remove()}exit(t,e){this.widgets().forEach(i=>i.target(null)),super.exit(t,e)}render(t){return super.render(e=>{if(!this.visible()||this.isDOMHidden())t&&t(e);else{let i=this.activeWidget();i&&i.resize(this.size()).render(o=>{t&&t(e)})}})}};Ke.prototype._class+=" layout_Carousel";Ke.prototype.publish("widgets",[],"widgetArray","Widgets",null,{render:!1});Ke.prototype.publish("active",0,"number","Active widget");Ke.prototype.publish("transitionDuration",500,"number","Transition duration");var Mo=Math.PI,Eo=2*Mo,Qt=1e-6,dd=Eo-Qt;function ki(){this._x0=this._y0=this._x1=this._y1=null,this._=""}d(ki,"mt");w(ki,"Path");function Go(){return new ki}d(Go,"Ft");w(Go,"path");ki.prototype=Go.prototype={constructor:ki,moveTo:w(function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},"moveTo"),closePath:w(function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},"closePath"),lineTo:w(function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},"lineTo"),quadraticCurveTo:w(function(t,e,i,o){this._+="Q"+ +t+","+ +e+","+(this._x1=+i)+","+(this._y1=+o)},"quadraticCurveTo"),bezierCurveTo:w(function(t,e,i,o,r,l){this._+="C"+ +t+","+ +e+","+ +i+","+ +o+","+(this._x1=+r)+","+(this._y1=+l)},"bezierCurveTo"),arcTo:w(function(t,e,i,o,r){t=+t,e=+e,i=+i,o=+o,r=+r;var l=this._x1,n=this._y1,s=i-t,a=o-e,c=l-t,g=n-e,u=c*c+g*g;if(r<0)throw new Error("negative radius: "+r);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(u>Qt)if(!(Math.abs(g*s-a*c)>Qt)||!r)this._+="L"+(this._x1=t)+","+(this._y1=e);else{var f=i-l,p=o-n,y=s*s+a*a,C=f*f+p*p,x=Math.sqrt(y),b=Math.sqrt(u),S=r*Math.tan((Mo-Math.acos((y+u-C)/(2*x*b)))/2),k=S/b,I=S/x;Math.abs(k-1)>Qt&&(this._+="L"+(t+k*c)+","+(e+k*g)),this._+="A"+r+","+r+",0,0,"+ +(g*f>c*p)+","+(this._x1=t+I*s)+","+(this._y1=e+I*a)}},"arcTo"),arc:w(function(t,e,i,o,r,l){t=+t,e=+e,i=+i,l=!!l;var n=i*Math.cos(o),s=i*Math.sin(o),a=t+n,c=e+s,g=1^l,u=l?o-r:r-o;if(i<0)throw new Error("negative radius: "+i);this._x1===null?this._+="M"+a+","+c:(Math.abs(this._x1-a)>Qt||Math.abs(this._y1-c)>Qt)&&(this._+="L"+a+","+c),i&&(u<0&&(u=u%Eo+Eo),u>dd?this._+="A"+i+","+i+",0,1,"+g+","+(t-n)+","+(e-s)+"A"+i+","+i+",0,1,"+g+","+(this._x1=a)+","+(this._y1=c):u>Qt&&(this._+="A"+i+","+i+",0,"+ +(u>=Mo)+","+g+","+(this._x1=t+i*Math.cos(r))+","+(this._y1=e+i*Math.sin(r))))},"arc"),rect:w(function(t,e,i,o){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +i+"v"+ +o+"h"+-i+"Z"},"rect"),toString:w(function(){return this._},"toString")};var hd=Go;function Ye(t){return w(function(){return t},"constant")}d(Ye,"it");w(Ye,"default");var Xe=Math.PI,Xh=Xe/2,Ii=2*Xe,Ho={draw:w(function(t,e){var i=Math.sqrt(e/Xe);t.moveTo(i,0),t.arc(0,0,i,0,Ii)},"draw")},cd={draw:w(function(t,e){var i=Math.sqrt(e/5)/2;t.moveTo(-3*i,-i),t.lineTo(-i,-i),t.lineTo(-i,-3*i),t.lineTo(i,-3*i),t.lineTo(i,-i),t.lineTo(3*i,-i),t.lineTo(3*i,i),t.lineTo(i,i),t.lineTo(i,3*i),t.lineTo(-i,3*i),t.lineTo(-i,i),t.lineTo(-3*i,i),t.closePath()},"draw")},_n=Math.sqrt(.3333333333333333),ud=_n*2,pd={draw:w(function(t,e){var i=Math.sqrt(e/ud),o=i*_n;t.moveTo(0,-i),t.lineTo(o,0),t.lineTo(0,i),t.lineTo(-o,0),t.closePath()},"draw")},gd=.8908130915292852,fn=Math.sin(Xe/10)/Math.sin(7*Xe/10),_d=Math.sin(Ii/10)*fn,fd=-Math.cos(Ii/10)*fn,yd={draw:w(function(t,e){var i=Math.sqrt(e*gd),o=_d*i,r=fd*i;t.moveTo(0,-i),t.lineTo(o,r);for(var l=1;l<5;++l){var n=Ii*l/5,s=Math.cos(n),a=Math.sin(n);t.lineTo(a*i,-s*i),t.lineTo(s*o-a*r,a*o+s*r)}t.closePath()},"draw")},md={draw:w(function(t,e){var i=Math.sqrt(e),o=-i/2;t.rect(o,o,i,i)},"draw")},Do=Math.sqrt(3),bd={draw:w(function(t,e){var i=-Math.sqrt(e/(Do*3));t.moveTo(0,i*2),t.lineTo(-Do*i,-i),t.lineTo(Do*i,-i),t.closePath()},"draw")},wt=-.5,xt=Math.sqrt(3)/2,Fo=1/Math.sqrt(12),wd=(Fo/2+1)*3,xd={draw:w(function(t,e){var i=Math.sqrt(e/wd),o=i/2,r=i*Fo,l=o,n=i*Fo+i,s=-l,a=n;t.moveTo(o,r),t.lineTo(l,n),t.lineTo(s,a),t.lineTo(wt*o-xt*r,xt*o+wt*r),t.lineTo(wt*l-xt*n,xt*l+wt*n),t.lineTo(wt*s-xt*a,xt*s+wt*a),t.lineTo(wt*o+xt*r,wt*r-xt*o),t.lineTo(wt*l+xt*n,wt*n-xt*l),t.lineTo(wt*s+xt*a,wt*a-xt*s),t.closePath()},"draw")};function Oo(){var t=Ye(Ho),e=Ye(64),i=null;function o(){var r;if(i||(i=r=hd()),t.apply(this,arguments).draw(i,+e.apply(this,arguments)),r)return i=null,r+""||null}return d(o,"i"),w(o,"symbol"),o.type=function(r){return arguments.length?(t=typeof r=="function"?r:Ye(r),o):t},o.size=function(r){return arguments.length?(e=typeof r=="function"?r:Ye(+r),o):e},o.context=function(r){return arguments.length?(i=r??null,o):i},o}d(Oo,"lt");w(Oo,"default");var Bd=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},yn=w(function(t){return t},"d3_identity"),cn=w(function(t){for(var e=[],i=0,o=t.length;i<o;i++)e[i]=t[o-i-1];return e},"d3_reverse"),un=w(function(t,e){t.each(function(){for(var i=vd(this),o=i.text().split(/\s+/).reverse(),r,l=[],n=0,s=1.2,a=i.attr("y"),c=parseFloat(i.attr("dy"))||0,g=i.text(null).append("tspan").attr("x",0).attr("dy",c+"em");r=o.pop();)l.push(r),g.text(l.join(" ")),g.node().getComputedTextLength()>e&&l.length>1&&(l.pop(),g.text(l.join(" ")),l=[r],g=i.append("tspan").attr("x",0).attr("dy",s+c+"em").text(r))})},"d3_textWrapping"),Ad=w(function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments[1],i=arguments[2],o=arguments[3],r=arguments[4];if((typeof e>"u"?"undefined":Bd(e))==="object"){if(e.length===0)return t;for(var l=e.length;l<t.length;l++)e.push(t[l]);return e}else if(typeof e=="function"){for(var n=[],s=t.length,a=0;a<s;a++)n.push(e({i:a,genLength:s,generatedLabels:t,domain:i,range:o,labelDelimiter:r}));return n}return t},"d3_mergeLabels"),Rd=w(function(t,e,i){var o=[];if(e.length>1)o=e;else for(var r=t.domain(),l=(r[r.length-1]-r[0])/(e-1),n=0;n<e;n++)o.push(r[0]+n*l);var s=o.map(i);return{data:o,labels:s,feature:w(function(a){return t(a)},"feature")}},"d3_linearLegend"),Dd=w(function(t,e,i){var o=t.range().map(function(r){var l=t.invertExtent(r);return e(l[0])+" "+i+" "+e(l[1])});return{data:t.range(),labels:o,feature:yn}},"d3_quantLegend"),Wd=w(function(t){return{data:t.domain(),labels:t.domain(),feature:w(function(e){return t(e)},"feature")}},"d3_ordinalLegend"),Md=w(function(t,e,i){t.call("cellover",i,e)},"d3_cellOver"),Ed=w(function(t,e,i){t.call("cellout",i,e)},"d3_cellOut"),Hd=w(function(t,e,i){t.call("cellclick",i,e)},"d3_cellClick"),At={d3_drawShapes:w(function(t,e,i,o,r,l){t==="rect"?e.attr("height",i).attr("width",o):t==="circle"?e.attr("r",r):t==="line"?e.attr("x1",0).attr("x2",o).attr("y1",0).attr("y2",0):t==="path"&&e.attr("d",l)},"d3_drawShapes"),d3_addText:w(function(t,e,i,o,r){e.append("text").attr("class",o+"label");var l=t.selectAll("g."+o+"cell text."+o+"label").data(i).text(yn);return r&&t.selectAll("g."+o+"cell text."+o+"label").call(un,r),l},"d3_addText"),d3_calcType:w(function(t,e,i,o,r,l){var n=t.invertExtent?Dd(t,r,l):t.ticks?Rd(t,i,r):Wd(t),s=t.range&&t.range()||t.domain();return n.labels=Ad(n.labels,o,t.domain(),s,l),e&&(n.labels=cn(n.labels),n.data=cn(n.data)),n},"d3_calcType"),d3_filterCells:w(function(t,e){var i=t.data.map(function(l,n){return{data:l,label:t.labels[n]}}).filter(e),o=i.map(function(l){return l.data}),r=i.map(function(l){return l.label});return t.data=t.data.filter(function(l){return o.indexOf(l)!==-1}),t.labels=t.labels.filter(function(l){return r.indexOf(l)!==-1}),t},"d3_filterCells"),d3_placement:w(function(t,e,i,o,r,l){e.attr("transform",i),o.attr("transform",r),t==="horizontal"&&o.style("text-anchor",l)},"d3_placement"),d3_addEvents:w(function(t,e){t.on("mouseover.legend",function(i){Md(e,i,this)}).on("mouseout.legend",function(i){Ed(e,i,this)}).on("click.legend",function(i){Hd(e,i,this)})},"d3_addEvents"),d3_title:w(function(t,e,i,o){if(e!==""){var r=t.selectAll("text."+i+"legendTitle");r.data([e]).enter().append("text").attr("class",i+"legendTitle"),t.selectAll("text."+i+"legendTitle").text(e),o&&t.selectAll("text."+i+"legendTitle").call(un,o);var l=t.select("."+i+"legendCells"),n=t.select("."+i+"legendTitle").nodes().map(function(a){return a.getBBox().height})[0],s=-l.nodes().map(function(a){return a.getBBox().x})[0];l.attr("transform","translate("+s+","+n+")")}},"d3_title"),d3_defaultLocale:{format:Cd,formatPrefix:Td},d3_defaultFormatSpecifier:".01f",d3_defaultDelimiter:"to"};function mn(){var t=Pd(),e="rect",i=15,o=15,r=10,l=2,n=[5],s=void 0,a=[],c="",g=!1,u="",f=At.d3_defaultLocale,p=At.d3_defaultFormatSpecifier,y=10,C="middle",x=At.d3_defaultDelimiter,b=void 0,S="vertical",k=!1,I=void 0,z=void 0,P=Id("cellover","cellout","cellclick");function m(_){var B=At.d3_calcType(t,k,n,a,f.format(p),x),R=_.selectAll("g").data([t]);R.enter().append("g").attr("class",c+"legendCells"),s&&At.d3_filterCells(B,s);var F=_.select("."+c+"legendCells").selectAll("."+c+"cell").data(B.data),N=F.enter().append("g").attr("class",c+"cell");N.append(e).attr("class",c+"swatch");var O=_.selectAll("g."+c+"cell "+e+"."+c+"swatch").data(B.data);At.d3_addEvents(N,P),F.exit().transition().style("opacity",0).remove(),O.exit().transition().style("opacity",0).remove(),O=O.merge(O),At.d3_drawShapes(e,O,o,i,r,I);var nt=At.d3_addText(_,N,B.labels,c,b);F=N.merge(F);var $=nt.nodes().map(function(dt){return dt.getBBox()}),K=O.nodes().map(function(dt){return dt.getBBox()});g?O.attr("class",function(dt){return c+"swatch "+B.feature(dt)}):e=="line"?O.style("stroke",B.feature):O.style("fill",B.feature);var Ct=void 0,St=void 0,ee=C=="start"?0:C=="middle"?.5:1;S==="vertical"?function(){var dt=$.map(function(st,ht){return Math.max(st.height,K[ht].height)});Ct=w(function(st,ht){var ie=zd(dt.slice(0,ht));return"translate(0, "+(ie+ht*l)+")"},"cellTrans"),St=w(function(st,ht){return"translate( "+(K[ht].width+K[ht].x+y)+", "+(K[ht].y+K[ht].height/2+5)+")"},"textTrans")}():S==="horizontal"&&(Ct=w(function(dt,st){return"translate("+st*(K[st].width+l)+",0)"},"cellTrans"),St=w(function(dt,st){return"translate("+(K[st].width*ee+K[st].x)+`,
829
+ `+(K[st].height+K[st].y+y+8)+")"},"textTrans")),At.d3_placement(S,F,Ct,nt,St,C),At.d3_title(_,u,c,z),F.transition().style("opacity",1)}return d(m,"g"),w(m,"legend"),m.scale=function(_){return arguments.length?(t=_,m):t},m.cells=function(_){return arguments.length?((_.length>1||_>=2)&&(n=_),m):n},m.cellFilter=function(_){return arguments.length?(s=_,m):s},m.shape=function(_,B){return arguments.length?((_=="rect"||_=="circle"||_=="line"||_=="path"&&typeof B=="string")&&(e=_,I=B),m):e},m.shapeWidth=function(_){return arguments.length?(i=+_,m):i},m.shapeHeight=function(_){return arguments.length?(o=+_,m):o},m.shapeRadius=function(_){return arguments.length?(r=+_,m):r},m.shapePadding=function(_){return arguments.length?(l=+_,m):l},m.labels=function(_){return arguments.length?(a=_,m):a},m.labelAlign=function(_){return arguments.length?((_=="start"||_=="end"||_=="middle")&&(C=_),m):C},m.locale=function(_){return arguments.length?(f=Sd(_),m):f},m.labelFormat=function(_){return arguments.length?(p=kd(_),m):m.locale().format(p)},m.labelOffset=function(_){return arguments.length?(y=+_,m):y},m.labelDelimiter=function(_){return arguments.length?(x=_,m):x},m.labelWrap=function(_){return arguments.length?(b=_,m):b},m.useClass=function(_){return arguments.length?((_===!0||_===!1)&&(g=_),m):g},m.orient=function(_){return arguments.length?(_=_.toLowerCase(),(_=="horizontal"||_=="vertical")&&(S=_),m):S},m.ascending=function(_){return arguments.length?(k=!!_,m):k},m.classPrefix=function(_){return arguments.length?(c=_,m):c},m.title=function(_){return arguments.length?(u=_,m):u},m.titleWidth=function(_){return arguments.length?(z=_,m):z},m.textWrap=function(_){return arguments.length?(textWrap=_,m):textWrap},m.on=function(){var _=P.on.apply(P,arguments);return _===P?m:_},m}d(mn,"Gt");w(mn,"color");var at=class extends nd{static{d(this,"A")}static{w(this,"Legend")}_owner;_targetWidget;_targetWidgetMonitor;_legendOrdinal;_disabled=[];_symbolTypeMap={circle:Ho,cross:cd,diamond:pd,square:md,star:yd,triangle:bd,wye:xd};constructor(t){super(),this._owner=t,this._drawStartPos="origin";let e=this;this._legendOrdinal=mn().shape("path",Oo().type(Ho).size(150)()).shapePadding(10).shapeRadius(10).on("cellclick",function(i){e.onClick(i,this)}).on("cellover",i=>{e.onOver(i,this)}).on("cellout",i=>{e.onOut(i,this)})}isDisabled(t){return typeof t>"u"?!1:typeof t=="string"?t.indexOf("__")===0||this._disabled.indexOf(t)>=0:t instanceof ld.Field?t.id().indexOf("__")===0||this._disabled.indexOf(t.id())>=0:this._disabled.indexOf(t)>=0}filteredFields(){switch(this.dataFamily()){case"2D":return this.fields();case"ND":return this.fields().filter(t=>!this.isDisabled(t))}return this.fields()}filteredColumns(){switch(this.dataFamily()){case"2D":return this.columns();case"ND":return this.columns().filter(t=>!this.isDisabled(t))}return this.columns()}filteredData(){switch(this.dataFamily()){case"2D":return this.data().filter(i=>!this.isDisabled(i[0]));case"ND":let t={},e=!1;return this.columns().forEach((i,o)=>{let r=this.isDisabled(i);t[o]=r,r&&(e=!0)}),e?this.data().map(i=>i.filter((o,r)=>!t[r])):this.data()}return this.data()}isRainbow(){let t=this.getWidget();return t&&t._palette&&t._palette.type()==="rainbow"}targetWidget(t){if(!arguments.length)return this._targetWidget;if(this._targetWidget=t,this._targetWidgetMonitor&&(this._targetWidgetMonitor.remove(),delete this._targetWidgetMonitor),this._targetWidget){let e=this;this._targetWidgetMonitor=this._targetWidget.monitor(function(i,o,r,l){switch(i){case"chart":case"columns":case"data":case"paletteID":e.lazyRender();break}})}return this}getWidget(){if(this._targetWidget)switch(this._targetWidget.classID()){case"composite_MultiChart":return this._targetWidget.chart()}return this._targetWidget}getPalette(){let t=this.getWidget();if(t&&t._palette)switch(t._palette.type()){case"ordinal":return Ti.ordinal(t._palette.id());case"rainbow":return Ti.rainbow(t._palette.id())}return Ti.ordinal("default")}getPaletteType(){return this.getPalette().type()}fillColorFunc(){let t=this.getWidget();if(t&&t.fillColor)return t._palette&&t.paletteID&&t._palette.name!==t.paletteID()&&(t._palette=t._palette.switch(t.paletteID())),(i,o,r)=>t.fillColor(i,o,r);let e=Ti.ordinal(t&&t.paletteID&&t.paletteID()||"default");return(i,o,r)=>e(o)}fillColor(t,e,i){return this.fillColorFunc()(t,e,i)}_g;enter(t,e){super.enter(t,e),this._g=e.append("g").attr("class","legendOrdinal")}calcMetaData(){let t=[],e=0,i=0,o=this.columns().length;if(this._targetWidget){let r=this.columns();switch(this.getPaletteType()){case"ordinal":let l=this.fillColorFunc(),n=0;switch(this.dataFamily()){case"2D":t=this.data().map(function(y,C){n=this.data()[C].slice(1,o).reduce((k,I)=>k+I,0);let x=this.isDisabled(y[0]);x||(e+=n);let b=y[0]+(!x&&this.showSeriesTotal()?` (${n})`:""),S=this.textSize(b);return i<S.width&&(i=S.width),[l(y,y[0],!1),y[0],b]},this);break;case"ND":t=this.columns().filter(y=>y.indexOf("__")!==0).filter(function(y,C){return C>0}).map(function(y,C){n=this.data().reduce((k,I)=>k+I[C+1],0);let x=this.isDisabled(r[C+1]),b=y+(!x&&this.showSeriesTotal()?` (${n})`:"");x||(e+=n);let S=this.textSize(b);return i<S.width&&(i=S.width),[l(void 0,y,!1),y,b]},this);break;default:t=this.columns().map(function(y){return[l(void 0,y,!1),y]},this);break}break;case"rainbow":let s=this.getPalette(),a=sd(this.rainbowFormat()),c=this.getWidget(),g=this.rainbowBins(),u=c._dataMinWeight,f=c._dataMaxWeight,p=(f-u)/(g-1);t.push([s(u,u,f),a(u)]);for(let y=1;y<g-1;++y){let C=p*y;Math.floor(C)>parseInt(t[0][1])&&(C=Math.floor(C)),t.push([s(C,u,f),a(C)])}t.push([s(f,u,f),a(f)]);break}}return{dataArr:t,total:e,maxLabelWidth:i}}update(t,e){super.update(t,e);let{dataArr:i,maxLabelWidth:o,total:r}=this.calcMetaData(),l=this.shapeRadius(),n=this.radiusToSymbolSize(l),s=1,a=this.itemPadding();this.orientation()==="horizontal"&&(a+=o-l*2);let c=ad().domain(i.map(b=>b[1])).range(i.map(b=>b[0]));this._legendOrdinal.shape("path",Oo().type(this._symbolTypeMap[this.symbolType()]).size(n)()).orient(this.orientation()).title(this.title()).labelWrap(this.labelMaxWidth()).labelAlign(this.labelAlign()).shapePadding(a).scale(c).labels(b=>i[b.i][2]),this._g.call(this._legendOrdinal),this.updateDisabled(e,i);let g=this._g.select(".legendCells").node().getBBox(),u=Math.abs(g.x),f=Math.abs(g.y)+s;if(this.orientation()==="horizontal"){if(this.labelAlign()==="start"?u+=s:this.labelAlign()==="end"&&(u-=s),this.width()>g.width){let b=this.width()-g.width;u+=b/2}}else if(this.orientation()==="vertical"&&(u+=s,this._containerSize.height>g.height)){let b=this.height()-g.height;f+=b/2}this._g.attr("transform",`translate(${u}, ${f})`),this.pos({x:0,y:0}),this._legendOrdinal.labelOffset(this.itemPadding());let p=this._g.selectAll(".legendTotal").data(i.length&&this.showLegendTotal()?[r]:[]),y=`Total: ${r}`,C=-u,x=g.height+this.itemPadding()+s;this.enableOverflowScroll(!1),this.enableOverflow(!0),p.enter().append("text").classed("legendTotal",!0).merge(p).attr("transform",`translate(${C}, ${x})`).text(y),p.exit().remove()}updateDisabled(t,e){t.style("cursor","pointer").selectAll("path.swatch").filter((i,o)=>o<e.length).style("stroke",(i,o)=>e[o][0]).style("fill",(i,o)=>this._disabled.indexOf(i)<0?e[o][0]:"white")}postUpdate(t,e){let i;this._boundingBox&&(i=this._boundingBox.width,this._boundingBox.width=this._size.width),super.postUpdate(t,e),i!==void 0&&(this._boundingBox.width=i),this._parentRelativeDiv.style("overflow","hidden")}exit(t,e){super.exit(t,e)}radiusToSymbolSize(t){let e=Math.pow(t,2)*Math.PI;switch(this.symbolType()){case"star":return e*.45;case"triangle":return e*.65;case"cross":case"diamond":case"wye":return e*.75;case"circle":return e;case"square":return e*1.3}}onClick(t,e){switch(this.getPaletteType()){case"ordinal":switch(this.dataFamily()){case"2D":case"ND":let i=this._disabled.indexOf(t);i<0?this._disabled.push(t):this._disabled.splice(i,1),this._owner.refreshColumns(),this._owner.refreshData(),this._owner.render();break}break}}onOver(t,e){if(hn(this._owner))switch(this.getPaletteType()){case"ordinal":switch(this.dataFamily()){case"2D":case"ND":this._disabled.indexOf(t)<0&&this._owner.highlightColumn(t);break}break}}onOut(t,e){if(hn(this._owner))switch(this.getPaletteType()){case"ordinal":switch(this.dataFamily()){case"2D":case"ND":this._owner.highlightColumn();break}break}}onDblClick(t,e){}onMouseOver(t,e){}_containerSize;resize(t){let e;if(this.fitToContent()){this._containerSize=t;let i=this.getBBox();t.width>i.width&&(i.width=t.width),t.height>i.height&&(i.height=t.height),e=super.resize.apply(this,[{...i}])}else e=super.resize.apply(this,arguments);return e}};at.prototype._class+=" layout_Legend";at.prototype.publish("title","","string","Title");at.prototype.publish("symbolType","circle","set","Shape of each legend item",["circle","cross","diamond","square","star","triangle","wye"]);at.prototype.publish("labelMaxWidth",null,"number","Max Label Width (pixels)",null,{optional:!0});at.prototype.publish("orientation","vertical","set","Orientation of Legend rows",["vertical","horizontal"],{tags:["Private"]});at.prototype.publish("dataFamily","ND","set","Type of data",["1D","2D","ND","map","graph","any"],{tags:["Private"]});at.prototype.publish("rainbowFormat",",","string","Rainbow number formatting",null,{tags:["Private"],optional:!0,disable:w(t=>!t.isRainbow(),"disable")});at.prototype.publish("rainbowBins",8,"number","Number of rainbow bins",null,{tags:["Private"],disable:w(t=>!t.isRainbow(),"disable")});at.prototype.publish("showSeriesTotal",!1,"boolean","Show value next to series");at.prototype.publish("showLegendTotal",!1,"boolean","Show a total of the series values under the legend",null);at.prototype.publish("itemPadding",8,"number","Padding between legend items (pixels)");at.prototype.publish("shapeRadius",7,"number","Radius of legend shape (pixels)");at.prototype.publish("fitToContent",!0,"boolean","If true, resize will simply reapply the bounding box dimensions");at.prototype.publish("labelAlign","start","set","Horizontal alignment of legend item label (for horizontal orientation only)",["start","middle","end"],{optional:!0,disable:w(t=>t.orientation()==="vertical","disable")});(function(){if(!document.getElementById("810b6dee")){var t=document.createElement("style");t.id="810b6dee",t.textContent=`.layout_Modal-header {
837
830
  background-color: rgb(63,81,181);
838
831
  overflow: hidden;
839
832
  }
@@ -873,7 +866,7 @@ div[draggable=true].hideDragCellContent.content-icon-FAChar:before{
873
866
  }
874
867
  .layout_Modal-fadeClickable {
875
868
  cursor: pointer;
876
- }`,document.head.appendChild(i)}})();var Qe=class extends ny{static{c(this,"S")}static{B(this,"Modal")}_widget;_relativeTarget;_fade;_modal;_modalHeader;_modalBody;_modalHeaderAnnotations;_modalHeaderCloseButton;_close;constructor(){super(),this._tag="div"}closeModal(){this.visible(!1)}getRelativeTarget(){let i;return this.relativeTargetId()&&(i=document.getElementById(this.relativeTargetId()),i)?i:!i&&(i=this.locateAncestor("layout_Grid"),i&&i.element)?i.element().node():document.body}setModalSize(){this.fixedHeight()!==null&&this.fixedWidth()!==null?this._modal.style("height",this.fixedHeight()).style("width",this.fixedWidth()).style("min-height",null).style("min-width",null).style("max-height",null).style("max-width",null):(this.minHeight()||this.minWidth())&&this._modal.style("min-height",this.minHeight()).style("min-width",this.minWidth()).style("max-height",this.maxHeight()).style("max-width",this.maxWidth());let i=this._modal.node().getBoundingClientRect(),o=this._modalHeader.node().getBoundingClientRect();return this._modalBody.style("height",i.height-o.height+"px").style("width",i.width),i}setFadePosition(i){this._fade.style("top",i.top+"px").style("left",i.left+"px").style("width",i.width+"px").style("height",i.height+"px")}setModalPosition(i){let o=this.setModalSize();if(this.fixedTop()!==null&&this.fixedLeft()!==null)this._modal.style("top",`calc(${this.fixedTop()} + ${i.top}px)`).style("left",`calc(${this.fixedLeft()} + ${i.left}px)`);else if(this.fixedHeight()!==null&&this.fixedWidth()!==null)this._modal.style("top",i.top+i.height/2-o.height/2+"px").style("left",i.left+i.width/2-o.width/2+"px");else if(this.minHeight()||this.minWidth()){let l=this._modal.node().getBoundingClientRect();this._modal.style("top",i.top+i.height/2-l.height/2+"px").style("left",i.left+i.width/2-l.width/2+"px")}}resize(i){return super.resize(),this._modal&&this.setModalSize(),this}resizeBodySync(i,o){let l=this._modalHeader.node().getBoundingClientRect();return this._modal.style("width",i+"px").style("height",o+l.height+"px").style("min-width",i+"px").style("min-height",o+l.height+"px"),this._modalHeader.style("width",i+"px"),this._modalBody.style("width",i+"px").style("height",o+"px"),this.minWidth(i+"px").minHeight(o+l.height+"px").resize({height:o+l.height,width:i})}enter(i,o){super.enter(i,o),this._fade=o.append("div").classed("layout_Modal-fade",!0).classed("layout_Modal-fadeClickable",this.enableClickFadeToClose()).classed("layout_Modal-fade-hidden",!this.showFade());let l=this.titleFontSize()*2;this._modal=o.append("div").classed("layout_Modal-content",!0),this._modalHeader=this._modal.append("div").classed("layout_Modal-header",!0).style("color",this.titleFontColor()).style("font-size",this.titleFontSize()+"px").style("height",l+"px"),this._modalBody=this._modal.append("div").classed("layout_Modal-body",!0).style("height",`calc( 100% - ${l}px )`).style("overflow-x",this.overflowX()).style("overflow-y",this.overflowY()),this._modalHeader.append("div").classed("layout_Modal-title",!0).style("line-height",this.titleFontSize()+"px").style("top",this.titleFontSize()/2+"px").style("left",this.titleFontSize()/2+"px").text(this.formattedTitle()),this._modalHeaderAnnotations=this._modalHeader.append("div").classed("layout_Modal-annotations",!0),this._modalHeaderCloseButton=this._modalHeaderAnnotations.append("div").classed("layout_Modal-closeButton",!0).html('<i class="fa fa-close"></i>'),this._modalHeaderAnnotations.style("line-height",this.titleFontSize()+"px").style("right",this.titleFontSize()/2+"px").style("top",this.titleFontSize()/2+"px"),this._modalHeaderCloseButton.on("click",()=>{this.closeModal()}),this._fade.on("click",s=>{this.enableClickFadeToClose()&&this.closeModal()})}update(i,o){super.update(i,o),o.style("display",this.show()?null:"none"),this._fade.classed("layout_Modal-fade-hidden",!this.showFade()),this._relativeTarget=this.getRelativeTarget(),this.setModalSize();let l=this._relativeTarget.getBoundingClientRect();this.setFadePosition(l),this.setModalPosition(l),this.show()?(this._widget.target()||this._widget.target(this._modalBody.node()),this._widget.resize().render()):this._widget.target(null).render()}exit(i,o){this._widget&&this._widget.target(null),super.exit(i,o)}formattedTitle(){let i=this.title_exists()?this.title().trim():"";return i.length>0&&i.slice(0,1)==="("&&i.slice(-1)===")"?i.slice(1,-1):this.title()}};Qe.prototype._class+=" layout_Modal";Qe.prototype.publish("title",null,"string","title");Qe.prototype.publish("widget",null,"widget","widget");Qe.prototype.publish("titleFontSize",18,"number","titleFontSize (in pixels)");Qe.prototype.publish("titleFontColor","#ffffff","html-color","titleFontColor");Qe.prototype.publish("relativeTargetId",null,"string","relativeTargetId");Qe.prototype.publish("show",!0,"boolean","show");Qe.prototype.publish("showFade",!0,"boolean","showFade");Qe.prototype.publish("enableClickFadeToClose",!0,"boolean","enableClickFadeToClose");Qe.prototype.publish("minWidth","400px","string","minWidth");Qe.prototype.publish("minHeight","400px","string","minHeight");Qe.prototype.publish("maxWidth","800px","string","maxWidth");Qe.prototype.publish("maxHeight","800px","string","maxHeight");Qe.prototype.publish("fixedWidth",null,"string","fixedWidth");Qe.prototype.publish("fixedHeight",null,"string","fixedHeight");Qe.prototype.publish("fixedTop",null,"string","fixedTop");Qe.prototype.publish("fixedLeft",null,"string","fixedLeft");Qe.prototype.publish("overflowX","hidden","string","overflowX");Qe.prototype.publish("overflowY","scroll","string","overflowY");(function(){if(!document.getElementById("0b83f800")){var i=document.createElement("style");i.id="0b83f800",i.textContent=`.layout_ChartPanel .series.highlight {
869
+ }`,document.head.appendChild(t)}})();var ot=class extends Fd{static{d(this,"S")}static{w(this,"Modal")}_widget;_relativeTarget;_fade;_modal;_modalHeader;_modalBody;_modalHeaderAnnotations;_modalHeaderCloseButton;_close;constructor(){super(),this._tag="div"}closeModal(){this.visible(!1)}getRelativeTarget(){let t;return this.relativeTargetId()&&(t=document.getElementById(this.relativeTargetId()),t)?t:!t&&(t=this.locateAncestor("layout_Grid"),t&&t.element)?t.element().node():document.body}setModalSize(){this.fixedHeight()!==null&&this.fixedWidth()!==null?this._modal.style("height",this.fixedHeight()).style("width",this.fixedWidth()).style("min-height",null).style("min-width",null).style("max-height",null).style("max-width",null):(this.minHeight()||this.minWidth())&&this._modal.style("min-height",this.minHeight()).style("min-width",this.minWidth()).style("max-height",this.maxHeight()).style("max-width",this.maxWidth());let t=this._modal.node().getBoundingClientRect(),e=this._modalHeader.node().getBoundingClientRect();return this._modalBody.style("height",t.height-e.height+"px").style("width",t.width),t}setFadePosition(t){this._fade.style("top",t.top+"px").style("left",t.left+"px").style("width",t.width+"px").style("height",t.height+"px")}setModalPosition(t){let e=this.setModalSize();if(this.fixedTop()!==null&&this.fixedLeft()!==null)this._modal.style("top",`calc(${this.fixedTop()} + ${t.top}px)`).style("left",`calc(${this.fixedLeft()} + ${t.left}px)`);else if(this.fixedHeight()!==null&&this.fixedWidth()!==null)this._modal.style("top",t.top+t.height/2-e.height/2+"px").style("left",t.left+t.width/2-e.width/2+"px");else if(this.minHeight()||this.minWidth()){let i=this._modal.node().getBoundingClientRect();this._modal.style("top",t.top+t.height/2-i.height/2+"px").style("left",t.left+t.width/2-i.width/2+"px")}}resize(t){return super.resize(),this._modal&&this.setModalSize(),this}resizeBodySync(t,e){let i=this._modalHeader.node().getBoundingClientRect();return this._modal.style("width",t+"px").style("height",e+i.height+"px").style("min-width",t+"px").style("min-height",e+i.height+"px"),this._modalHeader.style("width",t+"px"),this._modalBody.style("width",t+"px").style("height",e+"px"),this.minWidth(t+"px").minHeight(e+i.height+"px").resize({height:e+i.height,width:t})}enter(t,e){super.enter(t,e),this._fade=e.append("div").classed("layout_Modal-fade",!0).classed("layout_Modal-fadeClickable",this.enableClickFadeToClose()).classed("layout_Modal-fade-hidden",!this.showFade());let i=this.titleFontSize()*2;this._modal=e.append("div").classed("layout_Modal-content",!0),this._modalHeader=this._modal.append("div").classed("layout_Modal-header",!0).style("color",this.titleFontColor()).style("font-size",this.titleFontSize()+"px").style("height",i+"px"),this._modalBody=this._modal.append("div").classed("layout_Modal-body",!0).style("height",`calc( 100% - ${i}px )`).style("overflow-x",this.overflowX()).style("overflow-y",this.overflowY()),this._modalHeader.append("div").classed("layout_Modal-title",!0).style("line-height",this.titleFontSize()+"px").style("top",this.titleFontSize()/2+"px").style("left",this.titleFontSize()/2+"px").text(this.formattedTitle()),this._modalHeaderAnnotations=this._modalHeader.append("div").classed("layout_Modal-annotations",!0),this._modalHeaderCloseButton=this._modalHeaderAnnotations.append("div").classed("layout_Modal-closeButton",!0).html('<i class="fa fa-close"></i>'),this._modalHeaderAnnotations.style("line-height",this.titleFontSize()+"px").style("right",this.titleFontSize()/2+"px").style("top",this.titleFontSize()/2+"px"),this._modalHeaderCloseButton.on("click",()=>{this.closeModal()}),this._fade.on("click",o=>{this.enableClickFadeToClose()&&this.closeModal()})}update(t,e){super.update(t,e),e.style("display",this.show()?null:"none"),this._fade.classed("layout_Modal-fade-hidden",!this.showFade()),this._relativeTarget=this.getRelativeTarget(),this.setModalSize();let i=this._relativeTarget.getBoundingClientRect();this.setFadePosition(i),this.setModalPosition(i),this.show()?(this._widget.target()||this._widget.target(this._modalBody.node()),this._widget.resize().render()):this._widget.target(null).render()}exit(t,e){this._widget&&this._widget.target(null),super.exit(t,e)}formattedTitle(){let t=this.title_exists()?this.title().trim():"";return t.length>0&&t.slice(0,1)==="("&&t.slice(-1)===")"?t.slice(1,-1):this.title()}};ot.prototype._class+=" layout_Modal";ot.prototype.publish("title",null,"string","title");ot.prototype.publish("widget",null,"widget","widget");ot.prototype.publish("titleFontSize",18,"number","titleFontSize (in pixels)");ot.prototype.publish("titleFontColor","#ffffff","html-color","titleFontColor");ot.prototype.publish("relativeTargetId",null,"string","relativeTargetId");ot.prototype.publish("show",!0,"boolean","show");ot.prototype.publish("showFade",!0,"boolean","showFade");ot.prototype.publish("enableClickFadeToClose",!0,"boolean","enableClickFadeToClose");ot.prototype.publish("minWidth","400px","string","minWidth");ot.prototype.publish("minHeight","400px","string","minHeight");ot.prototype.publish("maxWidth","800px","string","maxWidth");ot.prototype.publish("maxHeight","800px","string","maxHeight");ot.prototype.publish("fixedWidth",null,"string","fixedWidth");ot.prototype.publish("fixedHeight",null,"string","fixedHeight");ot.prototype.publish("fixedTop",null,"string","fixedTop");ot.prototype.publish("fixedLeft",null,"string","fixedLeft");ot.prototype.publish("overflowX","hidden","string","overflowX");ot.prototype.publish("overflowY","scroll","string","overflowY");(function(){if(!document.getElementById("0b83f800")){var t=document.createElement("style");t.id="0b83f800",t.textContent=`.layout_ChartPanel .series.highlight {
877
870
  stroke-width: 2px;
878
871
  opacity: 1;
879
872
  }
@@ -881,14 +874,14 @@ div[draggable=true].hideDragCellContent.content-icon-FAChar:before{
881
874
  .layout_ChartPanel .series.lowlight {
882
875
  opacity: 0.3!important;
883
876
  }
884
- `,document.head.appendChild(i)}})();var xe=class extends Ge{static{c(this,"f")}static{B(this,"ChartPanel")}_legend=new Ct(this).enableOverflow(!0);_progressBar=new _m;_autoScale=!1;_resolutions={tiny:{width:100,height:100},small:{width:300,height:300}};_modal=new Qe;_highlight;_scale;_orig_size;_toggleInfo=new Wd().faChar("fa-info-circle").tooltip(".Description").selected(!1).on("enabled",()=>this.description()!=="").on("click",()=>{if(this._toggleInfo.selected()){this._modal.title(this.title()).widget(new xm().text(this.description())).show(!0).render();let i=this._modal._close;this._modal._close=()=>{this._toggleInfo.selected(!1).render(),this._modal._close=i}}}).on("mouseMove",()=>{}).on("mouseOut",()=>{});_toggleData=new Wd().faChar("fa-table").tooltip("Data").on("click",()=>{this.dataVisible(this._toggleData.selected()),this.render()});_buttonDownload=new lp().faChar("fa-download").tooltip("Download").on("click",()=>{this.downloadCSV()});_buttonDownloadImage=new lp().faChar("fa-image").tooltip("Download Image").on("click",()=>{this.downloadPNG()});_toggleLegend=new Wd().faChar("fa-list-ul").tooltip("Legend").selected(!1).on("click",()=>{let i=this._toggleLegend.selected();this.legendPosition()==="bottom"?this.showBottom(i):this.legendPosition()==="right"&&this.showRight(i),this.legendVisible(i),this.render()});_spacer=new ap;_titleBar=new Cm().buttons([this._toggleData,this._buttonDownload,this._buttonDownloadImage,this._spacer,this._toggleLegend]);_carousel=new vl;_table=new oi;_widget;_hideLegendToggleList=["dgrid_Table"];constructor(){super(),this._tag="div"}fields(i){return arguments.length?(super.fields(i),this._legend.fields(i),this.refreshFields(),this):super.fields()}refreshFields(){return this._widget.fields(this._legend.filteredFields()),this._table.fields(this._legend.filteredFields()),this}columns(i,o){return arguments.length?(super.columns(i,o),this._legend.columns(i,o),this.refreshColumns(),this):super.columns()}refreshColumns(){return this._widget.columns(this._legend.filteredColumns()),this._table.columns(this._legend.filteredColumns()),this}data(i){return arguments.length?(super.data(i),this._legend.data(i),this.refreshData(),this):super.data()}refreshData(){return this._widget.data(this._legend.filteredData()),this._table.data(this._legend.filteredData()),this}highlight(i){return arguments.length?(this._highlight=i,this):this._highlight}startProgress(){this._progressBar.start()}finishProgress(){this._progressBar.finish()}buttons(i){return arguments.length?(this._titleBar.buttons(i),this):this._titleBar.buttons()}downloadCSV(){let i=this.downloadTitle()?this.downloadTitle():this.title()?this.title():"data",o=this.downloadTimestampSuffix()?"_"+up.timestamp():"";return up.downloadString("CSV",this._widget.export("CSV"),i+o),this}downloadPNG(){let i=this.widget();return i instanceof sp&&(this.legendVisible()?i.downloadPNG(this.title(),void 0,this._legend):i.downloadPNG(this.title())),this}highlightColumn(i){if(i){let o=`series-${this.cssTag(i)}`;this._centerWA.element().selectAll(".series").each(function(){let l=Sm(this),s=l.classed(o);l.classed("highlight",s).classed("lowlight",!s)})}else this._centerWA.element().selectAll(".series").classed("highlight",!1).classed("lowlight",!1);return this}getResponsiveMode(){return this.enableAutoscaling()?this._autoScale?this.size().width<=this._resolutions.tiny.width||this.size().height<=this._resolutions.tiny.height?"tiny":this.size().width<=this._resolutions.small.width||this.size().height<=this._resolutions.small.height?"small":"regular":"regular":"none"}setOrigSize(){this._orig_size=JSON.parse(JSON.stringify(this.size()))}enter(i,o){super.enter(i,o),this._modal.target(this.target()).relativeTargetId(this.id()),this.top(this._titleBar),this.center(this._carousel),this._legend.targetWidget(this._widget).orientation("vertical").title("").visible(!1),this._progressBar.enter(i,o),this.setOrigSize()}preUpdateTiny(i){i.selectAll("div.body,div.title-text,div.icon-bar").style("display","none")}preUpdateSmall(i){let o=this._orig_size.width/this._resolutions.small.width,l=this._orig_size.height/this._resolutions.small.height;this._scale=Math.min(o,l);let s=this._scale===o;this.size({width:s?this._resolutions.small.width:this._orig_size.width*(1/this._scale),height:s?this._orig_size.height*(1/this._scale):this._resolutions.small.height}),i.select("div.title-icon").style("position","static"),i.selectAll("lhs").style("display","none"),i.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),i.selectAll("div.data-count").style("visibility","hidden"),i.style("transform",`scale(${this._scale})`)}preUpdateRegular(i){i.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),i.selectAll("div.data-count").style("visibility","hidden"),i.select("div.title-icon").style("position","static"),i.style("transform","translate(0px,0px) scale(1)")}_prevdataVisible;_prevlegendVisible;_prevLegendPosition;_prevChartDataFamily;_prevChart;_prevButtons;update(i,o){if(super.update(i,o),this._table&&this.widget_exists()&&this.widget().class().indexOf("chart_XYAxis")>=0){let l=this.widget();this._table.columns().forEach((s,h)=>{switch(h===0?l.xAxisType():l.yAxisType()){case"linear":case"log":case"pow":this._table.columnType(s,"number");break;case"time":this._table.columnType(s,"time");break;case"ordinal":default:this._table.columnType(s,"string")}this._table.columnPattern(s,h===0?l.xAxisTypeTimePattern():l.yAxisTypeTimePattern()),this._table.columnFormat(s,h===0?l.xAxisTickFormat():l.yAxisTickFormat())})}}preUpdate(i,o){switch(super.preUpdate(i,o),this._prevLegendPosition!==this.legendPosition()&&(this._legend.target()!==null&&this._legend.target(null),this._prevLegendPosition!==void 0?this.swap(this._prevLegendPosition,this.legendPosition()):this[this.legendPosition()](this._legend),this.legendPosition()==="right"?(this.rightOverflowX("hidden"),this.rightOverflowY("auto"),this.bottomOverflowX("visible"),this.bottomOverflowY("visible")):(this.rightOverflowX("visible"),this.rightOverflowY("visible"),this.bottomOverflowX("auto"),this.bottomOverflowY("hidden")),this._prevLegendPosition=this.legendPosition()),this._prevdataVisible!==this.dataVisible()&&(this._prevdataVisible=this.dataVisible(),this._toggleData.selected(this._prevdataVisible),this._legend.visible(this._prevlegendVisible&&!this._prevdataVisible),this._carousel.active(this._prevdataVisible?1:0)),this._prevlegendVisible!==this.legendVisible()&&(this._prevlegendVisible=this.legendVisible(),this._toggleLegend.selected(this._prevlegendVisible),this._legend.visible(this._prevlegendVisible&&!this._prevdataVisible)),this._legend.orientation(this.legendPosition()==="bottom"?"horizontal":"vertical"),this.showLeft(!this.left()),this.getResponsiveMode()){case"tiny":this.preUpdateTiny(o);break;case"small":this.preUpdateSmall(o);break;case"regular":this.preUpdateRegular(o);break}let l=this._widget.classID()==="composite_MultiChart"?this._widget.chart():this._widget;if(this._legend.dataFamily(l._dataFamily||"any"),this._prevChartDataFamily!==this._legend.dataFamily())switch(this._prevChartDataFamily=this._legend.dataFamily(),this._prevChartDataFamily){case"any":this._toggleLegend.selected(!1),this._legend.visible(!1);break}if(o.style("box-shadow",this.highlight()?`inset 0px 0px 0px ${this.highlightSize()}px ${this.highlightColor()}`:"none"),this._hideLegendToggleList.indexOf(l.classID())!==-1?(this._spacer.visible(!1),this._toggleLegend.visible(!1)):(this._spacer.visible(!0),this._toggleLegend.visible(!0)),this._prevChart!==l){this._prevChart=l;let h=l?l._titleBar||l._iconBar:void 0;if(h&&h instanceof wm){this._prevButtons=this._prevButtons||[...this.buttons()];let p=[...h.buttons(),new ap,...this._prevButtons];h.buttons([]).render(),this.buttons(p)}else this._prevButtons&&this.buttons(this._prevButtons)}let s=[];this.dataButtonVisible()||s.push(this._toggleData),this.downloadButtonVisible()||s.push(this._buttonDownload),this.downloadImageButtonVisible()||s.push(this._buttonDownloadImage),this.legendButtonVisible()||s.push(this._toggleLegend),this._buttonDownloadImage.enabled(this.widget()instanceof sp),this._titleBar.hiddenButtons(s).visible(this.titleVisible()),this.topOverlay(this.titleOverlay()||!this.titleVisible())}postUpdate(i,o){switch(super.postUpdate(i,o),this.getResponsiveMode()){case"tiny":this.postUpdateTiny(o);break;case"small":this.postUpdateSmall(o);break;case"regular":this.postUpdateRegular(o);break}}postUpdateTiny(i){i.selectAll("div.body,div.title-text,div.icon-bar").style("display","none"),i.selectAll("div.data-count").style("visibility","visible").style("font-size",this.titleIconFontSize()/3+"px").style("line-height",this.titleIconFontSize()/3+"px").style("left",this.titleIconFontSize()+"px").text(this.data().length),i.style("transform","translate(0px,0px) scale(1)");let o=i.selectAll("div.title-icon"),l=o.node(),s=i.node().parentElement.getBoundingClientRect();if(l){let h=o.node().getBoundingClientRect(),p=s.height/2;o.style("position","absolute").style("left",`calc(50% - ${h.width/2}px)`).style("top",`${p-h.height/2}px`),i.selectAll("div.data-count").style("position","absolute").style("left",`calc(50% + ${h.width/2}px)`).style("top",`${p-h.height/2}px`)}}postUpdateSmall(i){i.selectAll("lhs").style("display","none"),i.selectAll("div.title-icon").style("position","static"),i.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),i.selectAll("div.data-count").style("visibility","hidden");let o=i.node().getBoundingClientRect(),l=i.node().parentElement.getBoundingClientRect();i.style("transform",`translate(${l.x-o.x}px, ${l.y-o.y}px) scale(${this._scale})`)}postUpdateRegular(i){i.selectAll("div.title-icon").style("position","static"),i.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),i.selectAll("div.data-count").style("visibility","hidden")}exit(i,o){this._progressBar.exit(i,o),this.right(null),this._legend.target(null),this.center(null),this._carousel.target(null),this.top(null),this._titleBar.target(null),this._modal.target(null),delete this._prevChart,delete this._prevButtons,delete this._prevChartDataFamily,delete this._prevPos,delete this._prevdataVisible,delete this._prevlegendVisible,super.exit(i,o)}click(i,o,l){}dblclick(i,o,l){}vertex_click(i,o,l,s){s&&s.vertex}vertex_dblclick(i,o,l,s){s&&s.vertex}edge_click(i,o,l,s){s&&s.edge}edge_dblclick(i,o,l,s){s&&s.edge}};xe.prototype._class+=" layout_ChartPanel";xe.prototype.publishReset();xe.prototype.publishProxy("title","_titleBar");xe.prototype.publish("titleVisible",!0,"boolean");xe.prototype.publish("titleOverlay",!1,"boolean");xe.prototype.publishProxy("titleIcon","_titleBar");xe.prototype.publishProxy("titleIconFont","_titleBar");xe.prototype.publishProxy("titleFont","_titleBar");xe.prototype.publishProxy("titleIconFontSize","_titleBar");xe.prototype.publishProxy("titleFontSize","_titleBar");xe.prototype.publishProxy("description","_titleBar");xe.prototype.publishProxy("descriptionFont","_titleBar");xe.prototype.publishProxy("descriptionFontSize","_titleBar");xe.prototype.publish("dataVisible",!1,"boolean","Show data table");xe.prototype.publish("dataButtonVisible",!0,"boolean","Show data table button");xe.prototype.publish("downloadButtonVisible",!0,"boolean","Show data download button");xe.prototype.publish("downloadImageButtonVisible",!1,"boolean","Show image download button");xe.prototype.publish("downloadTitle","","string","File name when downloaded");xe.prototype.publish("downloadTimestampSuffix",!0,"boolean","Use timestamp as file name suffix");xe.prototype.publish("legendVisible",!1,"boolean","Show legend");xe.prototype.publish("legendButtonVisible",!0,"boolean","Show legend button");xe.prototype.publish("legendPosition","right","set","Position of legend",["right","bottom"]);xe.prototype.publishProxy("legend_labelMaxWidth","_legend","labelMaxWidth");xe.prototype.publishProxy("legend_showSeriesTotal","_legend","showSeriesTotal");xe.prototype.publishProxy("legend_showLegendTotal","_legend","showLegendTotal");xe.prototype.publishProxy("legend_itemPadding","_legend","itemPadding");xe.prototype.publishProxy("legend_shapeRadius","_legend","shapeRadius");xe.prototype.publishProxy("legend_symbolType","_legend","symbolType");xe.prototype.publishProxy("legend_labelAlign","_legend","labelAlign");xe.prototype.publish("widget",null,"widget","Widget",void 0,{render:!1});xe.prototype.publish("enableAutoscaling",!1,"boolean");xe.prototype.publish("highlightSize",4,"number");xe.prototype.publish("highlightColor","#e67e22","html-color");xe.prototype.publishProxy("progress_halfLife","_progressBar","halfLife");xe.prototype.publishProxy("progress_decay","_progressBar","decay");xe.prototype.publishProxy("progress_size","_progressBar","size");xe.prototype.publishProxy("progress_color","_progressBar","color");xe.prototype.publishProxy("progress_blurBar","_progressBar","blurBar");xe.prototype.publishProxy("progress_blurSize","_progressBar","blurSize");xe.prototype.publishProxy("progress_blurColor","_progressBar","blurColor");xe.prototype.publishProxy("progress_blurOpacity","_progressBar","blurOpacity");xe.prototype.widget=function(i){if(!arguments.length)return this._widget;this._carousel.widgets([i,this._table]),this._widget=i,this._widget.fields(this._legend.filteredFields()).data(this._legend.filteredData());let o=this,l=this._widget;return l.click=function(){o.click.apply(o,arguments)},l.dblclick=function(){o.dblclick.apply(o,arguments)},l.vertex_click=function(){o.vertex_click.apply(o,arguments)},l.vertex_dblclick=function(){o.vertex_dblclick.apply(o,arguments)},l.edge_click=function(){o.edge_click.apply(o,arguments)},l.edge_dblclick=function(){o.edge_dblclick.apply(o,arguments)},this};(function(){if(!document.getElementById("1c68d178")){var i=document.createElement("style");i.id="1c68d178",i.textContent=`.layout_FlexGrid{
877
+ `,document.head.appendChild(t)}})();var H=class extends J{static{d(this,"f")}static{w(this,"ChartPanel")}_legend=new at(this).enableOverflow(!0);_progressBar=new ed;_autoScale=!1;_resolutions={tiny:{width:100,height:100},small:{width:300,height:300}};_modal=new ot;_highlight;_scale;_orig_size;_toggleInfo=new Ro().faChar("fa-info-circle").tooltip(".Description").selected(!1).on("enabled",()=>this.description()!=="").on("click",()=>{if(this._toggleInfo.selected()){this._modal.title(this.title()).widget(new id().text(this.description())).show(!0).render();let t=this._modal._close;this._modal._close=()=>{this._toggleInfo.selected(!1).render(),this._modal._close=t}}}).on("mouseMove",()=>{}).on("mouseOut",()=>{});_toggleData=new Ro().faChar("fa-table").tooltip("Data").on("click",()=>{this.dataVisible(this._toggleData.selected()),this.render()});_buttonDownload=new nn().faChar("fa-download").tooltip("Download").on("click",()=>{this.downloadCSV()});_buttonDownloadImage=new nn().faChar("fa-image").tooltip("Download Image").on("click",()=>{this.downloadPNG()});_toggleLegend=new Ro().faChar("fa-list-ul").tooltip("Legend").selected(!1).on("click",()=>{let t=this._toggleLegend.selected();this.legendPosition()==="bottom"?this.showBottom(t):this.legendPosition()==="right"&&this.showRight(t),this.legendVisible(t),this.render()});_spacer=new sn;_titleBar=new od().buttons([this._toggleData,this._buttonDownload,this._buttonDownloadImage,this._spacer,this._toggleLegend]);_carousel=new Ke;_table=new Et;_widget;_hideLegendToggleList=["dgrid_Table"];constructor(){super(),this._tag="div"}fields(t){return arguments.length?(super.fields(t),this._legend.fields(t),this.refreshFields(),this):super.fields()}refreshFields(){return this._widget.fields(this._legend.filteredFields()),this._table.fields(this._legend.filteredFields()),this}columns(t,e){return arguments.length?(super.columns(t,e),this._legend.columns(t,e),this.refreshColumns(),this):super.columns()}refreshColumns(){return this._widget.columns(this._legend.filteredColumns()),this._table.columns(this._legend.filteredColumns()),this}data(t){return arguments.length?(super.data(t),this._legend.data(t),this.refreshData(),this):super.data()}refreshData(){return this._widget.data(this._legend.filteredData()),this._table.data(this._legend.filteredData()),this}highlight(t){return arguments.length?(this._highlight=t,this):this._highlight}startProgress(){this._progressBar.start()}finishProgress(){this._progressBar.finish()}buttons(t){return arguments.length?(this._titleBar.buttons(t),this):this._titleBar.buttons()}downloadCSV(){let t=this.downloadTitle()?this.downloadTitle():this.title()?this.title():"data",e=this.downloadTimestampSuffix()?"_"+dn.timestamp():"";return dn.downloadString("CSV",this._widget.export("CSV"),t+e),this}downloadPNG(){let t=this.widget();return t instanceof an&&(this.legendVisible()?t.downloadPNG(this.title(),void 0,this._legend):t.downloadPNG(this.title())),this}highlightColumn(t){if(t){let e=`series-${this.cssTag(t)}`;this._centerWA.element().selectAll(".series").each(function(){let i=rd(this),o=i.classed(e);i.classed("highlight",o).classed("lowlight",!o)})}else this._centerWA.element().selectAll(".series").classed("highlight",!1).classed("lowlight",!1);return this}getResponsiveMode(){return this.enableAutoscaling()?this._autoScale?this.size().width<=this._resolutions.tiny.width||this.size().height<=this._resolutions.tiny.height?"tiny":this.size().width<=this._resolutions.small.width||this.size().height<=this._resolutions.small.height?"small":"regular":"regular":"none"}setOrigSize(){this._orig_size=JSON.parse(JSON.stringify(this.size()))}enter(t,e){super.enter(t,e),this._modal.target(this.target()).relativeTargetId(this.id()),this.top(this._titleBar),this.center(this._carousel),this._legend.targetWidget(this._widget).orientation("vertical").title("").visible(!1),this._progressBar.enter(t,e),this.setOrigSize()}preUpdateTiny(t){t.selectAll("div.body,div.title-text,div.icon-bar").style("display","none")}preUpdateSmall(t){let e=this._orig_size.width/this._resolutions.small.width,i=this._orig_size.height/this._resolutions.small.height;this._scale=Math.min(e,i);let o=this._scale===e;this.size({width:o?this._resolutions.small.width:this._orig_size.width*(1/this._scale),height:o?this._orig_size.height*(1/this._scale):this._resolutions.small.height}),t.select("div.title-icon").style("position","static"),t.selectAll("lhs").style("display","none"),t.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),t.selectAll("div.data-count").style("visibility","hidden"),t.style("transform",`scale(${this._scale})`)}preUpdateRegular(t){t.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),t.selectAll("div.data-count").style("visibility","hidden"),t.select("div.title-icon").style("position","static"),t.style("transform","translate(0px,0px) scale(1)")}_prevdataVisible;_prevlegendVisible;_prevLegendPosition;_prevChartDataFamily;_prevChart;_prevButtons;update(t,e){if(super.update(t,e),this._table&&this.widget_exists()&&this.widget().class().indexOf("chart_XYAxis")>=0){let i=this.widget();this._table.columns().forEach((o,r)=>{switch(r===0?i.xAxisType():i.yAxisType()){case"linear":case"log":case"pow":this._table.columnType(o,"number");break;case"time":this._table.columnType(o,"time");break;case"ordinal":default:this._table.columnType(o,"string")}this._table.columnPattern(o,r===0?i.xAxisTypeTimePattern():i.yAxisTypeTimePattern()),this._table.columnFormat(o,r===0?i.xAxisTickFormat():i.yAxisTickFormat())})}}preUpdate(t,e){switch(super.preUpdate(t,e),this._prevLegendPosition!==this.legendPosition()&&(this._legend.target()!==null&&this._legend.target(null),this._prevLegendPosition!==void 0?this.swap(this._prevLegendPosition,this.legendPosition()):this[this.legendPosition()](this._legend),this.legendPosition()==="right"?(this.rightOverflowX("hidden"),this.rightOverflowY("auto"),this.bottomOverflowX("visible"),this.bottomOverflowY("visible")):(this.rightOverflowX("visible"),this.rightOverflowY("visible"),this.bottomOverflowX("auto"),this.bottomOverflowY("hidden")),this._prevLegendPosition=this.legendPosition()),this._prevdataVisible!==this.dataVisible()&&(this._prevdataVisible=this.dataVisible(),this._toggleData.selected(this._prevdataVisible),this._legend.visible(this._prevlegendVisible&&!this._prevdataVisible),this._carousel.active(this._prevdataVisible?1:0)),this._prevlegendVisible!==this.legendVisible()&&(this._prevlegendVisible=this.legendVisible(),this._toggleLegend.selected(this._prevlegendVisible),this._legend.visible(this._prevlegendVisible&&!this._prevdataVisible)),this._legend.orientation(this.legendPosition()==="bottom"?"horizontal":"vertical"),this.showLeft(!this.left()),this.getResponsiveMode()){case"tiny":this.preUpdateTiny(e);break;case"small":this.preUpdateSmall(e);break;case"regular":this.preUpdateRegular(e);break}let i=this._widget.classID()==="composite_MultiChart"?this._widget.chart():this._widget;if(this._legend.dataFamily(i._dataFamily||"any"),this._prevChartDataFamily!==this._legend.dataFamily())switch(this._prevChartDataFamily=this._legend.dataFamily(),this._prevChartDataFamily){case"any":this._toggleLegend.selected(!1),this._legend.visible(!1);break}if(e.style("box-shadow",this.highlight()?`inset 0px 0px 0px ${this.highlightSize()}px ${this.highlightColor()}`:"none"),this._hideLegendToggleList.indexOf(i.classID())!==-1?(this._spacer.visible(!1),this._toggleLegend.visible(!1)):(this._spacer.visible(!0),this._toggleLegend.visible(!0)),this._prevChart!==i){this._prevChart=i;let r=i?i._titleBar||i._iconBar:void 0;if(r&&r instanceof td){this._prevButtons=this._prevButtons||[...this.buttons()];let l=[...r.buttons(),new sn,...this._prevButtons];r.buttons([]).render(),this.buttons(l)}else this._prevButtons&&this.buttons(this._prevButtons)}let o=[];this.dataButtonVisible()||o.push(this._toggleData),this.downloadButtonVisible()||o.push(this._buttonDownload),this.downloadImageButtonVisible()||o.push(this._buttonDownloadImage),this.legendButtonVisible()||o.push(this._toggleLegend),this._buttonDownloadImage.enabled(this.widget()instanceof an),this._titleBar.hiddenButtons(o).visible(this.titleVisible()),this.topOverlay(this.titleOverlay()||!this.titleVisible())}postUpdate(t,e){switch(super.postUpdate(t,e),this.getResponsiveMode()){case"tiny":this.postUpdateTiny(e);break;case"small":this.postUpdateSmall(e);break;case"regular":this.postUpdateRegular(e);break}}postUpdateTiny(t){t.selectAll("div.body,div.title-text,div.icon-bar").style("display","none"),t.selectAll("div.data-count").style("visibility","visible").style("font-size",this.titleIconFontSize()/3+"px").style("line-height",this.titleIconFontSize()/3+"px").style("left",this.titleIconFontSize()+"px").text(this.data().length),t.style("transform","translate(0px,0px) scale(1)");let e=t.selectAll("div.title-icon"),i=e.node(),o=t.node().parentElement.getBoundingClientRect();if(i){let r=e.node().getBoundingClientRect(),l=o.height/2;e.style("position","absolute").style("left",`calc(50% - ${r.width/2}px)`).style("top",`${l-r.height/2}px`),t.selectAll("div.data-count").style("position","absolute").style("left",`calc(50% + ${r.width/2}px)`).style("top",`${l-r.height/2}px`)}}postUpdateSmall(t){t.selectAll("lhs").style("display","none"),t.selectAll("div.title-icon").style("position","static"),t.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),t.selectAll("div.data-count").style("visibility","hidden");let e=t.node().getBoundingClientRect(),i=t.node().parentElement.getBoundingClientRect();t.style("transform",`translate(${i.x-e.x}px, ${i.y-e.y}px) scale(${this._scale})`)}postUpdateRegular(t){t.selectAll("div.title-icon").style("position","static"),t.selectAll("div.body,div.title-text,div.icon-bar").style("display",""),t.selectAll("div.data-count").style("visibility","hidden")}exit(t,e){this._progressBar.exit(t,e),this.right(null),this._legend.target(null),this.center(null),this._carousel.target(null),this.top(null),this._titleBar.target(null),this._modal.target(null),delete this._prevChart,delete this._prevButtons,delete this._prevChartDataFamily,delete this._prevPos,delete this._prevdataVisible,delete this._prevlegendVisible,super.exit(t,e)}click(t,e,i){}dblclick(t,e,i){}vertex_click(t,e,i,o){o&&o.vertex}vertex_dblclick(t,e,i,o){o&&o.vertex}edge_click(t,e,i,o){o&&o.edge}edge_dblclick(t,e,i,o){o&&o.edge}};H.prototype._class+=" layout_ChartPanel";H.prototype.publishReset();H.prototype.publishProxy("title","_titleBar");H.prototype.publish("titleVisible",!0,"boolean");H.prototype.publish("titleOverlay",!1,"boolean");H.prototype.publishProxy("titleIcon","_titleBar");H.prototype.publishProxy("titleIconFont","_titleBar");H.prototype.publishProxy("titleFont","_titleBar");H.prototype.publishProxy("titleIconFontSize","_titleBar");H.prototype.publishProxy("titleFontSize","_titleBar");H.prototype.publishProxy("description","_titleBar");H.prototype.publishProxy("descriptionFont","_titleBar");H.prototype.publishProxy("descriptionFontSize","_titleBar");H.prototype.publish("dataVisible",!1,"boolean","Show data table");H.prototype.publish("dataButtonVisible",!0,"boolean","Show data table button");H.prototype.publish("downloadButtonVisible",!0,"boolean","Show data download button");H.prototype.publish("downloadImageButtonVisible",!1,"boolean","Show image download button");H.prototype.publish("downloadTitle","","string","File name when downloaded");H.prototype.publish("downloadTimestampSuffix",!0,"boolean","Use timestamp as file name suffix");H.prototype.publish("legendVisible",!1,"boolean","Show legend");H.prototype.publish("legendButtonVisible",!0,"boolean","Show legend button");H.prototype.publish("legendPosition","right","set","Position of legend",["right","bottom"]);H.prototype.publishProxy("legend_labelMaxWidth","_legend","labelMaxWidth");H.prototype.publishProxy("legend_showSeriesTotal","_legend","showSeriesTotal");H.prototype.publishProxy("legend_showLegendTotal","_legend","showLegendTotal");H.prototype.publishProxy("legend_itemPadding","_legend","itemPadding");H.prototype.publishProxy("legend_shapeRadius","_legend","shapeRadius");H.prototype.publishProxy("legend_symbolType","_legend","symbolType");H.prototype.publishProxy("legend_labelAlign","_legend","labelAlign");H.prototype.publish("widget",null,"widget","Widget",void 0,{render:!1});H.prototype.publish("enableAutoscaling",!1,"boolean");H.prototype.publish("highlightSize",4,"number");H.prototype.publish("highlightColor","#e67e22","html-color");H.prototype.publishProxy("progress_halfLife","_progressBar","halfLife");H.prototype.publishProxy("progress_decay","_progressBar","decay");H.prototype.publishProxy("progress_size","_progressBar","size");H.prototype.publishProxy("progress_color","_progressBar","color");H.prototype.publishProxy("progress_blurBar","_progressBar","blurBar");H.prototype.publishProxy("progress_blurSize","_progressBar","blurSize");H.prototype.publishProxy("progress_blurColor","_progressBar","blurColor");H.prototype.publishProxy("progress_blurOpacity","_progressBar","blurOpacity");H.prototype.widget=function(t){if(!arguments.length)return this._widget;this._carousel.widgets([t,this._table]),this._widget=t,this._widget.fields(this._legend.filteredFields()).data(this._legend.filteredData());let e=this,i=this._widget;return i.click=function(){e.click.apply(e,arguments)},i.dblclick=function(){e.dblclick.apply(e,arguments)},i.vertex_click=function(){e.vertex_click.apply(e,arguments)},i.vertex_dblclick=function(){e.vertex_dblclick.apply(e,arguments)},i.edge_click=function(){e.edge_click.apply(e,arguments)},i.edge_dblclick=function(){e.edge_dblclick.apply(e,arguments)},this};(function(){if(!document.getElementById("1c68d178")){var t=document.createElement("style");t.id="1c68d178",t.textContent=`.layout_FlexGrid{
885
878
  display: flex;
886
879
  }
887
880
  .FlexGrid-list-item{
888
881
  overflow: hidden;
889
882
  border-style: solid;
890
883
  flex-grow: 1;
891
- }`,document.head.appendChild(i)}})();var rt=class extends oy{static{c(this,"B")}static{B(this,"FlexGrid")}constructor(){super()}enter(i,o){super.enter(i,o),ly(i.parentNode).style("height","100%").style("width","100%")}update(i,o){super.update(i,o);let l=this,s=[];this.updateFlexParent(o);let h=o.selectAll(".FlexGrid-list-item").data(this.widgets(),p=>p.id());h.enter().append("div").classed("FlexGrid-list-item",!0).each(function(p){p.target(this)}).merge(h).style("min-height",this.itemMinHeight()+"px").style("min-width",this.itemMinWidth()+"px").style("flex-basis",(p,f)=>{let m=this.widgetsFlexBasis()[f];return typeof m<"u"?m:this.flexBasis()}).style("flex-grow",(p,f)=>{let m=this.widgetsFlexGrow()[f];return typeof m<"u"?m:this.flexGrow()}).style("border-width",this.borderWidth()+"px").style("border-color",this.itemBorderColor()).each(function(){this.firstChild.style.display="none"}).each(function(){let p=this.getBoundingClientRect();s.push([p.width,p.height])}).each(function(p,f){this.firstChild.style.display="block",p.resize({width:s[f][0]-2*l.borderWidth(),height:s[f][1]-2*l.borderWidth()})}),h.exit().remove()}exit(i,o){super.exit(i,o)}updateFlexParent(i){i.style("height","100%").style("flex-direction",this.orientation()==="horizontal"?"row":"column").style("flex-wrap",this.flexWrap()).style("align-items",this.alignItems()).style("align-content",this.alignContent()).style("overflow-x",()=>this.forceXScroll()||this.orientation()==="horizontal"&&this.flexWrap()==="nowrap"&&!this.disableScroll()?"scroll":"hidden").style("overflow-y",()=>this.forceYScroll()||this.orientation()==="vertical"&&this.flexWrap()==="nowrap"&&!this.disableScroll()?"scroll":"hidden")}};rt.prototype._class+=" layout_FlexGrid";rt.prototype.publish("itemBorderColor","transparent","html-color","Color of list item borders");rt.prototype.publish("borderWidth",0,"number","Width of list item borders (pixels)");rt.prototype.publish("orientation","horizontal","set","Controls the flex-direction of the list items",["horizontal","vertical"]);rt.prototype.publish("flexWrap","wrap","set","Controls the line wrap when overflow occurs",["nowrap","wrap","wrap-reverse"]);rt.prototype.publish("disableScroll",!1,"boolean","If false, scrollbar will show (when flexWrap is set to 'nowrap')",null,{disable:B(i=>i.flexWrap()!=="nowrap","disable")});rt.prototype.publish("forceXScroll",!1,"boolean","If true, horzontal scrollbar will show");rt.prototype.publish("forceYScroll",!1,"boolean","If true, vertical scrollbar will show");rt.prototype.publish("itemMinHeight",64,"number","Minimum height of a list item (pixels)");rt.prototype.publish("itemMinWidth",64,"number","Minimum width of a list item (pixels)");rt.prototype.publish("alignItems","stretch","set","Controls normal alignment of items",["flex-start","center","flex-end","stretch"]);rt.prototype.publish("alignContent","stretch","set","Controls normal alignment of item rows",["flex-start","center","flex-end","stretch","space-between","space-around"]);rt.prototype.publish("flexGrow",1,"number","Default flex-grow style for all list items");rt.prototype.publish("flexBasis","10%","string","Default flex-basis style for all list items");rt.prototype.publish("widgetsFlexGrow",[],"array","Array of flex-grow values keyed on the widgets array");rt.prototype.publish("widgetsFlexBasis",[],"array","Array of flex-basis values keyed on the widgets array");rt.prototype.publish("widgets",[],"widgetArray","Array of widgets to be rendered as list items");var Hd=om(lm(),1);(function(){if(!document.getElementById("71cbabbe")){var i=document.createElement("style");i.id="71cbabbe",i.textContent=`.layout_Grid > .ddCell {
884
+ }`,document.head.appendChild(t)}})();var rt=class extends Od{static{d(this,"B")}static{w(this,"FlexGrid")}constructor(){super()}enter(t,e){super.enter(t,e),Ld(t.parentNode).style("height","100%").style("width","100%")}update(t,e){super.update(t,e);let i=this,o=[];this.updateFlexParent(e);let r=e.selectAll(".FlexGrid-list-item").data(this.widgets(),l=>l.id());r.enter().append("div").classed("FlexGrid-list-item",!0).each(function(l){l.target(this)}).merge(r).style("min-height",this.itemMinHeight()+"px").style("min-width",this.itemMinWidth()+"px").style("flex-basis",(l,n)=>{let s=this.widgetsFlexBasis()[n];return typeof s<"u"?s:this.flexBasis()}).style("flex-grow",(l,n)=>{let s=this.widgetsFlexGrow()[n];return typeof s<"u"?s:this.flexGrow()}).style("border-width",this.borderWidth()+"px").style("border-color",this.itemBorderColor()).each(function(){this.firstChild.style.display="none"}).each(function(){let l=this.getBoundingClientRect();o.push([l.width,l.height])}).each(function(l,n){this.firstChild.style.display="block",l.resize({width:o[n][0]-2*i.borderWidth(),height:o[n][1]-2*i.borderWidth()})}),r.exit().remove()}exit(t,e){super.exit(t,e)}updateFlexParent(t){t.style("height","100%").style("flex-direction",this.orientation()==="horizontal"?"row":"column").style("flex-wrap",this.flexWrap()).style("align-items",this.alignItems()).style("align-content",this.alignContent()).style("overflow-x",()=>this.forceXScroll()||this.orientation()==="horizontal"&&this.flexWrap()==="nowrap"&&!this.disableScroll()?"scroll":"hidden").style("overflow-y",()=>this.forceYScroll()||this.orientation()==="vertical"&&this.flexWrap()==="nowrap"&&!this.disableScroll()?"scroll":"hidden")}};rt.prototype._class+=" layout_FlexGrid";rt.prototype.publish("itemBorderColor","transparent","html-color","Color of list item borders");rt.prototype.publish("borderWidth",0,"number","Width of list item borders (pixels)");rt.prototype.publish("orientation","horizontal","set","Controls the flex-direction of the list items",["horizontal","vertical"]);rt.prototype.publish("flexWrap","wrap","set","Controls the line wrap when overflow occurs",["nowrap","wrap","wrap-reverse"]);rt.prototype.publish("disableScroll",!1,"boolean","If false, scrollbar will show (when flexWrap is set to 'nowrap')",null,{disable:w(t=>t.flexWrap()!=="nowrap","disable")});rt.prototype.publish("forceXScroll",!1,"boolean","If true, horzontal scrollbar will show");rt.prototype.publish("forceYScroll",!1,"boolean","If true, vertical scrollbar will show");rt.prototype.publish("itemMinHeight",64,"number","Minimum height of a list item (pixels)");rt.prototype.publish("itemMinWidth",64,"number","Minimum width of a list item (pixels)");rt.prototype.publish("alignItems","stretch","set","Controls normal alignment of items",["flex-start","center","flex-end","stretch"]);rt.prototype.publish("alignContent","stretch","set","Controls normal alignment of item rows",["flex-start","center","flex-end","stretch","space-between","space-around"]);rt.prototype.publish("flexGrow",1,"number","Default flex-grow style for all list items");rt.prototype.publish("flexBasis","10%","string","Default flex-basis style for all list items");rt.prototype.publish("widgetsFlexGrow",[],"array","Array of flex-grow values keyed on the widgets array");rt.prototype.publish("widgetsFlexBasis",[],"array","Array of flex-basis values keyed on the widgets array");rt.prototype.publish("widgets",[],"widgetArray","Array of widgets to be rendered as list items");var Wo=Oa(La(),1);(function(){if(!document.getElementById("71cbabbe")){var t=document.createElement("style");t.id="71cbabbe",t.textContent=`.layout_Grid > .ddCell {
892
885
  position: absolute;
893
886
  }
894
887
 
@@ -978,7 +971,7 @@ div[draggable=true].hideDragCellContent.content-icon-FAChar:before{
978
971
  content: "#" attr(id);
979
972
  font-weight: bold;
980
973
  }
981
- `,document.head.appendChild(i)}})();var dy=Hd&&Hd.default||Hd,Ht=class extends ay{static{c(this,"O")}static{B(this,"Grid")}divItems;gridList;items;itemsMap;origItems;cellWidth;cellHeight;dragItem;dragItemPos;_d3Drag;_d3DragResize;_selectionBag;_scrollBarWidth;constructor(){super(),this._tag="div",this._selectionBag=new uy.Selection(this),this.content([])}getDimensions(){let i={width:0,height:0};return this.content().forEach(function(o){i.width<o.gridCol()+o.gridColSpan()&&(i.width=o.gridCol()+o.gridColSpan()),i.height<o.gridRow()+o.gridRowSpan()&&(i.height=o.gridRow()+o.gridRowSpan())},this),i}clearContent(i){this.content(this.content().filter(function(o){if(!i)return o.target(null),!1;let l=o;for(;l;){if(i===l)return o.target(null),!1;l=l.widget?l.widget():null}return!0}))}setContent(i,o,l,s,h,p){if(h=h||1,p=p||1,s=s||"",this.content(this.content().filter(function(f){return f.gridRow()===i&&f.gridCol()===o?(f.target(null),!1):!0})),l){let f=new zr().gridRow(i).gridCol(o).widget(l).title(s).gridRowSpan(h).gridColSpan(p);this.content().push(f)}return this}sortedContent(){return this.content().sort(function(i,o){return i.gridRow()===o.gridRow()?i.gridCol()-o.gridCol():i.gridRow()-o.gridRow()})}getCell(i,o){let l=null;return this.content().some(function(s){return i>=s.gridRow()&&i<s.gridRow()+s.gridRowSpan()&&o>=s.gridCol()&&o<s.gridCol()+s.gridColSpan()?(l=s,!0):!1}),l}getWidgetCell(i){let o=null;return this.content().some(function(l){return l.widget().id()===i?(o=l,!0):!1}),o}getContent(i){let o=null;return this.content().some(function(l){return l.widget().id()===i?(o=l.widget(),!0):!1}),o}cellToGridItem(i){return{x:i.gridCol(),y:i.gridRow(),w:i.gridColSpan(),h:i.gridRowSpan(),id:i.id(),cell:i}}gridItemToCell(i){i.cell.gridCol(i.x).gridRow(i.y).gridColSpan(i.w).gridRowSpan(i.h)}resetItemsPos(){this.origItems.forEach(function(i){let o=this.itemsMap[i.id];o.x=i.x,o.y=i.y},this)}initGridList(){this.itemsMap={},this.items=this.content().map(function(i){let o=this.cellToGridItem(i);return this.itemsMap[o.id]=o,o},this),this.origItems=this.content().map(this.cellToGridItem),this.gridList=new dy(this.items,{direction:this.snapping(),lanes:this.snapping()==="horizontal"?this.snappingRows():this.snappingColumns()})}killGridList(){this.gridList=null,delete this.items,delete this.itemsMap}enter(i,o){super.enter(i,o),this._scrollBarWidth=sy.getScrollbarWidth();let l=this;this._d3Drag=pp().subject(function(s){let h=l.cellToGridItem(s);return{x:h.x*l.cellWidth,y:h.y*l.cellHeight}}).on("start",function(s){if(!l.designMode())return;ln().sourceEvent.stopPropagation(),l.initGridList();let h=l.itemsMap[s.id()];l.dragItem=o.append("div").attr("class","dragging").style("transform",function(){return"translate("+h.x*l.cellWidth+"px, "+h.y*l.cellHeight+"px)"}).style("width",function(){return h.w*l.cellWidth-l.gutter()+"px"}).style("height",function(){return h.h*l.cellHeight-l.gutter()+"px"}),l.selectionBagClick(s)}).on("drag",function(s){if(!l.designMode())return;let h=ln();h.sourceEvent.stopPropagation();let p=l.itemsMap[s.id()];h.x<0&&(h.x=0),h.x+p.w*l.cellWidth>l.snappingColumns()*l.cellWidth&&(h.x=l.snappingColumns()*l.cellWidth-p.w*l.cellWidth),h.y<0&&(h.y=0),h.y+p.h*l.cellWidth>l.snappingRows()*l.cellWidth&&(h.y=l.snappingRows()*l.cellWidth-p.h*l.cellWidth);let f=[Math.max(0,Math.floor((h.x+l.cellWidth/2)/l.cellWidth)),Math.max(0,Math.floor((h.y+l.cellHeight/2)/l.cellHeight))];(p.x!==f[0]||p.y!==f[1])&&(l.snapping()!=="none"?(l.resetItemsPos(),l.gridList.moveItemToPosition(p,f)):(p.x=f[0],p.y=f[1]),(s.gridCol()!==p.x||s.gridRow()!==p.y)&&(l.items.forEach(l.gridItemToCell),l.updateGrid(!1,100))),l.dragItem.style("transform",function(){return"translate("+h.x+"px, "+h.y+"px)"}).style("width",function(){return p.w*l.cellWidth+"px"}).style("height",function(){return p.h*l.cellHeight+"px"})}).on("end",function(){l.designMode()&&(ln().sourceEvent.stopPropagation(),l.dragItem.remove(),l.dragItem=null,l.killGridList())}),this._d3DragResize=pp().subject(function(s){let h=l.cellToGridItem(s);return{x:(h.x+h.w-1)*l.cellWidth,y:(h.y+h.h-1)*l.cellHeight}}).on("start",function(s){if(!l.designMode())return;ln().sourceEvent.stopPropagation(),l.initGridList();let h=l.itemsMap[s.id()];l.dragItem=o.append("div").attr("class","resizing").style("transform",function(){return"translate("+h.x*l.cellWidth+"px, "+h.y*l.cellHeight+"px)"}).style("width",function(){return h.w*l.cellWidth-l.gutter()+"px"}).style("height",function(){return h.h*l.cellHeight-l.gutter()+"px"}),l.dragItemPos={x:h.x,y:h.y}}).on("drag",function(s){if(!l.designMode())return;let h=ln();h.sourceEvent.stopPropagation();let p=l.itemsMap[s.id()],f=[Math.max(0,Math.round(h.x/l.cellWidth)),Math.max(0,Math.round(h.y/l.cellHeight))],m={w:Math.max(1,f[0]-p.x+1),h:Math.max(1,f[1]-p.y+1)};(p.w!==m.w||p.h!==m.h)&&(l.snapping()!=="none"?(l.resetItemsPos(),l.gridList.resizeItem(p,m)):(p.w=m.w,p.h=m.h),(s.gridColSpan()!==p.w||s.gridRowSpan()!==p.h)&&(l.items.forEach(l.gridItemToCell),l.updateGrid(p.id,100))),l.dragItem.style("width",function(){return(-p.x+1)*l.cellWidth+h.x-l.gutter()+"px"}).style("height",function(){return(-p.y+1)*l.cellHeight+h.y-l.gutter()+"px"})}).on("end",function(){l.designMode()&&(ln().sourceEvent.stopPropagation(),l.dragItem.remove(),l.dragItem=null,l.killGridList())})}updateGrid(i,o=0,l=!1){o=o||0;let s=this;this.divItems.classed("draggable",this.designMode()).transition().duration(o).style("left",function(h){return h.gridCol()*s.cellWidth+s.gutter()/2+"px"}).style("top",function(h){return h.gridRow()*s.cellHeight+s.gutter()/2+"px"}).style("width",function(h){return h.gridColSpan()*s.cellWidth-s.gutter()+"px"}).style("height",function(h){return h.gridRowSpan()*s.cellHeight-s.gutter()+"px"}).on("end",function(h){h.surfaceShadow_default(s.surfaceShadow()).surfacePadding_default(s.surfacePadding()).surfaceBorderWidth_default(s.surfaceBorderWidth()).surfaceBackgroundColor_default(s.surfaceBackgroundColor()),(i===!0||i===h.id())&&h.resize().lazyRender()})}update(i,o){super.update(i,o),this._placeholderElement.style("overflow-x",this.fitTo()==="width"?"hidden":null),this._placeholderElement.style("overflow-y",this.fitTo()==="width"?"scroll":null);let l=this.getDimensions(),s=this.width()-(this.fitTo()==="width"?this._scrollBarWidth:0);if(this.cellWidth=s/l.width,this.cellHeight=this.fitTo()==="all"?this.height()/l.height:this.cellWidth,this.designMode()){let b=Math.min(this.width()/this.snappingColumns(),this.height()/this.snappingRows()),_=Math.floor(b);this.cellWidth=_,this.cellHeight=this.cellWidth}let h=this,p=o.selectAll("#"+this.id()+" > .ddCell").data(this.content(),function(b){return b.id()});this.divItems=p.enter().append("div").attr("class","ddCell").each(function(b){b.target(this),b.__grid_watch=b.monitor(function(_,I,P){h._renderCount&&(_==="snapping"||_.indexOf("grid")===0)&&I!==P&&(h.gridList||(h.initGridList(),h.snapping()!=="none"&&h.gridList.resizeGrid(h.snapping()==="horizontal"?h.snappingRows():h.snappingColumns()),h.items.forEach(h.gridItemToCell),h.updateGrid(b.id(),100),h.killGridList()))}),fp(this).append("div").attr("class","resizeHandle").call(h._d3DragResize).append("div").attr("class","resizeHandleDisplay")}).merge(p),this.divItems.each(function(b){let _=fp(this);h.designMode()?_.call(h._d3Drag):_.on("mousedown.drag",null).on("touchstart.drag",null)}),this.divItems.select(".resizeHandle").style("display",this.designMode()?null:"none"),this.updateGrid(!0),p.exit().each(function(b){b.target(null),b.__grid_watch&&b.__grid_watch.remove()}).remove();let f=o.selectAll("#"+this.id()+" > .laneBackground").data(this.designMode()?[""]:[]);f.enter().insert("div",":first-child").attr("class","laneBackground").style("left","1px").style("top","1px").on("click",function(){h.selectionBagClear()}).merge(f).style("width",this.snappingColumns()*this.cellWidth+"px").style("height",this.snappingRows()*this.cellHeight+"px"),f.exit().each(function(){h.selectionBagClear()}).remove();let m=o.selectAll("#"+this.id()+" > .lane").data(this.designMode()?[""]:[]);m.enter().append("div").attr("class","lane").style("left","1px").style("top","1px"),m.style("display",this.showLanes()?null:"none").style("width",this.snappingColumns()*this.cellWidth+"px").style("height",this.snappingRows()*this.cellHeight+"px").style("background-image","linear-gradient(to right, grey 1px, transparent 1px), linear-gradient(to bottom, grey 1px, transparent 1px)").style("background-size",this.cellWidth+"px "+this.cellHeight+"px"),m.exit().remove()}exit(i,o){this.content().forEach(l=>l.target(null)),super.exit(i,o)}_createSelectionObject(i){return{_id:i._id,element:B(()=>i._element,"element"),widget:i}}selection(i){return arguments.length?(this._selectionBag.set(i.map(function(o){return this._createSelectionObject(o)},this)),this):this._selectionBag.get().map(function(o){return o._id})}selectionBagClear(){this._selectionBag.isEmpty()||(this._selectionBag.clear(),this.postSelectionChange())}selectionBagClick(i){if(i!==null){let o=this._createSelectionObject(i);if(ln().sourceEvent.ctrlKey)this._selectionBag.isSelected(o)?(this._selectionBag.remove(o),this.postSelectionChange()):(this._selectionBag.append(o),this.postSelectionChange());else{let l=this._selectionBag.get();l.length===1&&l[0]._id===o._id?this.selectionBagClear():this._selectionBag.set([o]),this.postSelectionChange()}}}postSelectionChange(){}applyLayout(i){this.divItems.each((o,l)=>{if(i[l]){let[s,h,p,f]=i[l];o.gridCol(s).gridRow(h).gridColSpan(p).gridRowSpan(f)}}),this.updateGrid(!0)}vizActivation(i){}};Ht.prototype._class+=" layout_Grid";Ht.prototype.publish("designMode",!1,"boolean","Design Mode",null,{tags:["Basic"]});Ht.prototype.publish("showLanes",!0,"boolean","Show snapping lanes when in design mode",null,{tags:["Basic"],disable:B(i=>!i.designMode(),"disable")});Ht.prototype.publish("fitTo","all","set","Sizing Strategy",["all","width"],{tags:["Basic"]});Ht.prototype.publish("snapping","vertical","set","Snapping Strategy",["vertical","horizontal","none"]);Ht.prototype.publish("snappingColumns",12,"number","Snapping Columns");Ht.prototype.publish("snappingRows",16,"number","Snapping Rows");Ht.prototype.publish("gutter",6,"number","Gap Between Widgets",null,{tags:["Basic"]});Ht.prototype.publish("surfaceShadow",!0,"boolean","3D Shadow");Ht.prototype.publish("surfacePadding",null,"string","Cell Padding (px)",null,{tags:["Intermediate"]});Ht.prototype.publish("surfaceBorderWidth",1,"number","Width (px) of Cell Border",null,{tags:["Intermediate"]});Ht.prototype.publish("surfaceBackgroundColor",null,"html-color","Surface Background Color",null,{tags:["Advanced"]});Ht.prototype.publish("content",[],"widgetArray","widgets",null,{tags:["Basic"],render:!1});var cy=class extends rt{static{c(this,"At")}static{B(this,"HorizontalList")}constructor(){super(),this.orientation_default("horizontal"),this.flexWrap_default("nowrap")}};cy.prototype._class+=" layout_HorizontalList";(function(){if(!document.getElementById("ed0ab859")){var i=document.createElement("style");i.id="ed0ab859",i.textContent=`.layout_Layered {
974
+ `,document.head.appendChild(t)}})();var Vd=Wo&&Wo.default||Wo,yt=class extends Gd{static{d(this,"O")}static{w(this,"Grid")}divItems;gridList;items;itemsMap;origItems;cellWidth;cellHeight;dragItem;dragItemPos;_d3Drag;_d3DragResize;_selectionBag;_scrollBarWidth;constructor(){super(),this._tag="div",this._selectionBag=new Ud.Selection(this),this.content([])}getDimensions(){let t={width:0,height:0};return this.content().forEach(function(e){t.width<e.gridCol()+e.gridColSpan()&&(t.width=e.gridCol()+e.gridColSpan()),t.height<e.gridRow()+e.gridRowSpan()&&(t.height=e.gridRow()+e.gridRowSpan())},this),t}clearContent(t){this.content(this.content().filter(function(e){if(!t)return e.target(null),!1;let i=e;for(;i;){if(t===i)return e.target(null),!1;i=i.widget?i.widget():null}return!0}))}setContent(t,e,i,o,r,l){if(r=r||1,l=l||1,o=o||"",this.content(this.content().filter(function(n){return n.gridRow()===t&&n.gridCol()===e?(n.target(null),!1):!0})),i){let n=new Rt().gridRow(t).gridCol(e).widget(i).title(o).gridRowSpan(r).gridColSpan(l);this.content().push(n)}return this}sortedContent(){return this.content().sort(function(t,e){return t.gridRow()===e.gridRow()?t.gridCol()-e.gridCol():t.gridRow()-e.gridRow()})}getCell(t,e){let i=null;return this.content().some(function(o){return t>=o.gridRow()&&t<o.gridRow()+o.gridRowSpan()&&e>=o.gridCol()&&e<o.gridCol()+o.gridColSpan()?(i=o,!0):!1}),i}getWidgetCell(t){let e=null;return this.content().some(function(i){return i.widget().id()===t?(e=i,!0):!1}),e}getContent(t){let e=null;return this.content().some(function(i){return i.widget().id()===t?(e=i.widget(),!0):!1}),e}cellToGridItem(t){return{x:t.gridCol(),y:t.gridRow(),w:t.gridColSpan(),h:t.gridRowSpan(),id:t.id(),cell:t}}gridItemToCell(t){t.cell.gridCol(t.x).gridRow(t.y).gridColSpan(t.w).gridRowSpan(t.h)}resetItemsPos(){this.origItems.forEach(function(t){let e=this.itemsMap[t.id];e.x=t.x,e.y=t.y},this)}initGridList(){this.itemsMap={},this.items=this.content().map(function(t){let e=this.cellToGridItem(t);return this.itemsMap[e.id]=e,e},this),this.origItems=this.content().map(this.cellToGridItem),this.gridList=new Vd(this.items,{direction:this.snapping(),lanes:this.snapping()==="horizontal"?this.snappingRows():this.snappingColumns()})}killGridList(){this.gridList=null,delete this.items,delete this.itemsMap}enter(t,e){super.enter(t,e),this._scrollBarWidth=Nd.getScrollbarWidth();let i=this;this._d3Drag=pn().subject(function(o){let r=i.cellToGridItem(o);return{x:r.x*i.cellWidth,y:r.y*i.cellHeight}}).on("start",function(o){if(!i.designMode())return;Zt().sourceEvent.stopPropagation(),i.initGridList();let r=i.itemsMap[o.id()];i.dragItem=e.append("div").attr("class","dragging").style("transform",function(){return"translate("+r.x*i.cellWidth+"px, "+r.y*i.cellHeight+"px)"}).style("width",function(){return r.w*i.cellWidth-i.gutter()+"px"}).style("height",function(){return r.h*i.cellHeight-i.gutter()+"px"}),i.selectionBagClick(o)}).on("drag",function(o){if(!i.designMode())return;let r=Zt();r.sourceEvent.stopPropagation();let l=i.itemsMap[o.id()];r.x<0&&(r.x=0),r.x+l.w*i.cellWidth>i.snappingColumns()*i.cellWidth&&(r.x=i.snappingColumns()*i.cellWidth-l.w*i.cellWidth),r.y<0&&(r.y=0),r.y+l.h*i.cellWidth>i.snappingRows()*i.cellWidth&&(r.y=i.snappingRows()*i.cellWidth-l.h*i.cellWidth);let n=[Math.max(0,Math.floor((r.x+i.cellWidth/2)/i.cellWidth)),Math.max(0,Math.floor((r.y+i.cellHeight/2)/i.cellHeight))];(l.x!==n[0]||l.y!==n[1])&&(i.snapping()!=="none"?(i.resetItemsPos(),i.gridList.moveItemToPosition(l,n)):(l.x=n[0],l.y=n[1]),(o.gridCol()!==l.x||o.gridRow()!==l.y)&&(i.items.forEach(i.gridItemToCell),i.updateGrid(!1,100))),i.dragItem.style("transform",function(){return"translate("+r.x+"px, "+r.y+"px)"}).style("width",function(){return l.w*i.cellWidth+"px"}).style("height",function(){return l.h*i.cellHeight+"px"})}).on("end",function(){i.designMode()&&(Zt().sourceEvent.stopPropagation(),i.dragItem.remove(),i.dragItem=null,i.killGridList())}),this._d3DragResize=pn().subject(function(o){let r=i.cellToGridItem(o);return{x:(r.x+r.w-1)*i.cellWidth,y:(r.y+r.h-1)*i.cellHeight}}).on("start",function(o){if(!i.designMode())return;Zt().sourceEvent.stopPropagation(),i.initGridList();let r=i.itemsMap[o.id()];i.dragItem=e.append("div").attr("class","resizing").style("transform",function(){return"translate("+r.x*i.cellWidth+"px, "+r.y*i.cellHeight+"px)"}).style("width",function(){return r.w*i.cellWidth-i.gutter()+"px"}).style("height",function(){return r.h*i.cellHeight-i.gutter()+"px"}),i.dragItemPos={x:r.x,y:r.y}}).on("drag",function(o){if(!i.designMode())return;let r=Zt();r.sourceEvent.stopPropagation();let l=i.itemsMap[o.id()],n=[Math.max(0,Math.round(r.x/i.cellWidth)),Math.max(0,Math.round(r.y/i.cellHeight))],s={w:Math.max(1,n[0]-l.x+1),h:Math.max(1,n[1]-l.y+1)};(l.w!==s.w||l.h!==s.h)&&(i.snapping()!=="none"?(i.resetItemsPos(),i.gridList.resizeItem(l,s)):(l.w=s.w,l.h=s.h),(o.gridColSpan()!==l.w||o.gridRowSpan()!==l.h)&&(i.items.forEach(i.gridItemToCell),i.updateGrid(l.id,100))),i.dragItem.style("width",function(){return(-l.x+1)*i.cellWidth+r.x-i.gutter()+"px"}).style("height",function(){return(-l.y+1)*i.cellHeight+r.y-i.gutter()+"px"})}).on("end",function(){i.designMode()&&(Zt().sourceEvent.stopPropagation(),i.dragItem.remove(),i.dragItem=null,i.killGridList())})}updateGrid(t,e=0,i=!1){e=e||0;let o=this;this.divItems.classed("draggable",this.designMode()).transition().duration(e).style("left",function(r){return r.gridCol()*o.cellWidth+o.gutter()/2+"px"}).style("top",function(r){return r.gridRow()*o.cellHeight+o.gutter()/2+"px"}).style("width",function(r){return r.gridColSpan()*o.cellWidth-o.gutter()+"px"}).style("height",function(r){return r.gridRowSpan()*o.cellHeight-o.gutter()+"px"}).on("end",function(r){r.surfaceShadow_default(o.surfaceShadow()).surfacePadding_default(o.surfacePadding()).surfaceBorderWidth_default(o.surfaceBorderWidth()).surfaceBackgroundColor_default(o.surfaceBackgroundColor()),(t===!0||t===r.id())&&r.resize().lazyRender()})}update(t,e){super.update(t,e),this._placeholderElement.style("overflow-x",this.fitTo()==="width"?"hidden":null),this._placeholderElement.style("overflow-y",this.fitTo()==="width"?"scroll":null);let i=this.getDimensions(),o=this.width()-(this.fitTo()==="width"?this._scrollBarWidth:0);if(this.cellWidth=o/i.width,this.cellHeight=this.fitTo()==="all"?this.height()/i.height:this.cellWidth,this.designMode()){let a=Math.min(this.width()/this.snappingColumns(),this.height()/this.snappingRows()),c=Math.floor(a);this.cellWidth=c,this.cellHeight=this.cellWidth}let r=this,l=e.selectAll("#"+this.id()+" > .ddCell").data(this.content(),function(a){return a.id()});this.divItems=l.enter().append("div").attr("class","ddCell").each(function(a){a.target(this),a.__grid_watch=a.monitor(function(c,g,u){r._renderCount&&(c==="snapping"||c.indexOf("grid")===0)&&g!==u&&(r.gridList||(r.initGridList(),r.snapping()!=="none"&&r.gridList.resizeGrid(r.snapping()==="horizontal"?r.snappingRows():r.snappingColumns()),r.items.forEach(r.gridItemToCell),r.updateGrid(a.id(),100),r.killGridList()))}),gn(this).append("div").attr("class","resizeHandle").call(r._d3DragResize).append("div").attr("class","resizeHandleDisplay")}).merge(l),this.divItems.each(function(a){let c=gn(this);r.designMode()?c.call(r._d3Drag):c.on("mousedown.drag",null).on("touchstart.drag",null)}),this.divItems.select(".resizeHandle").style("display",this.designMode()?null:"none"),this.updateGrid(!0),l.exit().each(function(a){a.target(null),a.__grid_watch&&a.__grid_watch.remove()}).remove();let n=e.selectAll("#"+this.id()+" > .laneBackground").data(this.designMode()?[""]:[]);n.enter().insert("div",":first-child").attr("class","laneBackground").style("left","1px").style("top","1px").on("click",function(){r.selectionBagClear()}).merge(n).style("width",this.snappingColumns()*this.cellWidth+"px").style("height",this.snappingRows()*this.cellHeight+"px"),n.exit().each(function(){r.selectionBagClear()}).remove();let s=e.selectAll("#"+this.id()+" > .lane").data(this.designMode()?[""]:[]);s.enter().append("div").attr("class","lane").style("left","1px").style("top","1px"),s.style("display",this.showLanes()?null:"none").style("width",this.snappingColumns()*this.cellWidth+"px").style("height",this.snappingRows()*this.cellHeight+"px").style("background-image","linear-gradient(to right, grey 1px, transparent 1px), linear-gradient(to bottom, grey 1px, transparent 1px)").style("background-size",this.cellWidth+"px "+this.cellHeight+"px"),s.exit().remove()}exit(t,e){this.content().forEach(i=>i.target(null)),super.exit(t,e)}_createSelectionObject(t){return{_id:t._id,element:w(()=>t._element,"element"),widget:t}}selection(t){return arguments.length?(this._selectionBag.set(t.map(function(e){return this._createSelectionObject(e)},this)),this):this._selectionBag.get().map(function(e){return e._id})}selectionBagClear(){this._selectionBag.isEmpty()||(this._selectionBag.clear(),this.postSelectionChange())}selectionBagClick(t){if(t!==null){let e=this._createSelectionObject(t);if(Zt().sourceEvent.ctrlKey)this._selectionBag.isSelected(e)?(this._selectionBag.remove(e),this.postSelectionChange()):(this._selectionBag.append(e),this.postSelectionChange());else{let i=this._selectionBag.get();i.length===1&&i[0]._id===e._id?this.selectionBagClear():this._selectionBag.set([e]),this.postSelectionChange()}}}postSelectionChange(){}applyLayout(t){this.divItems.each((e,i)=>{if(t[i]){let[o,r,l,n]=t[i];e.gridCol(o).gridRow(r).gridColSpan(l).gridRowSpan(n)}}),this.updateGrid(!0)}vizActivation(t){}};yt.prototype._class+=" layout_Grid";yt.prototype.publish("designMode",!1,"boolean","Design Mode",null,{tags:["Basic"]});yt.prototype.publish("showLanes",!0,"boolean","Show snapping lanes when in design mode",null,{tags:["Basic"],disable:w(t=>!t.designMode(),"disable")});yt.prototype.publish("fitTo","all","set","Sizing Strategy",["all","width"],{tags:["Basic"]});yt.prototype.publish("snapping","vertical","set","Snapping Strategy",["vertical","horizontal","none"]);yt.prototype.publish("snappingColumns",12,"number","Snapping Columns");yt.prototype.publish("snappingRows",16,"number","Snapping Rows");yt.prototype.publish("gutter",6,"number","Gap Between Widgets",null,{tags:["Basic"]});yt.prototype.publish("surfaceShadow",!0,"boolean","3D Shadow");yt.prototype.publish("surfacePadding",null,"string","Cell Padding (px)",null,{tags:["Intermediate"]});yt.prototype.publish("surfaceBorderWidth",1,"number","Width (px) of Cell Border",null,{tags:["Intermediate"]});yt.prototype.publish("surfaceBackgroundColor",null,"html-color","Surface Background Color",null,{tags:["Advanced"]});yt.prototype.publish("content",[],"widgetArray","widgets",null,{tags:["Basic"],render:!1});var $d=class extends rt{static{d(this,"At")}static{w(this,"HorizontalList")}constructor(){super(),this.orientation_default("horizontal"),this.flexWrap_default("nowrap")}};$d.prototype._class+=" layout_HorizontalList";(function(){if(!document.getElementById("ed0ab859")){var t=document.createElement("style");t.id="ed0ab859",t.textContent=`.layout_Layered {
982
975
  pointer-events: none;
983
976
  }
984
977
  .layout_Layered > .container > .content {
@@ -988,7 +981,7 @@ div[draggable=true].hideDragCellContent.content-icon-FAChar:before{
988
981
  .layout_Layered > .container > .content > div > svg > .common_Widget {
989
982
  pointer-events: all;
990
983
  }
991
- `,document.head.appendChild(i)}})();var Kd=class extends hy{static{c(this,"nt")}static{B(this,"Layered")}_contentContainer;_widgetPlacements;_widgetRatios;constructor(){super(),this._tag="div",this._widgetPlacements=[],this._widgetRatios=[]}addLayer(i,o="default",l=1,s=1){let h=this.widgets();return h.push(i||new py().text("No widget defined for layer.")),this.widgets(h),this._widgetPlacements.push(o),this._widgetRatios.push([l,s]),this}enter(i,o){super.enter(i,o),this._contentContainer=o.append("div").attr("class","container")}update(i,o){super.update(i,o);let l=this;o.style("padding",this.surfacePadding()+"px");let s=this._contentContainer.selectAll(".content.id"+this.id()).data(this.widgets(),function(h){return h.id()});s.enter().append("div").attr("class","content id"+this.id()).each(function(h,p){h.target(this)}).merge(s).each(function(h,p){let f={width:l.clientWidth(),height:l.clientHeight()},m=l.widgetSize(p,f),b=l.widgetPosition(p,f,m);this.style.top=b.y+"px",this.style.left=b.x+"px",h.resize(m).render()}),s.exit().each(function(h,p){h.target(null)}).remove(),s.order()}widgetSize(i,o){return this._widgetPlacements[i]==="default"?{width:o.width*this._widgetRatios[i][0],height:o.height*this._widgetRatios[i][1]}:{width:o.width*this._widgetRatios[i][0],height:o.height*this._widgetRatios[i][1]}}widgetPosition(i,o,l){switch(this._widgetPlacements[i]){default:return{x:0,y:0};case"top":return{x:o.width/2-l.width/2,y:0};case"bottom":return{x:o.width/2-l.width/2,y:o.height-l.height};case"left":return{x:0,y:o.height/2-l.height/2};case"right":return{x:o.width-l.width,y:o.height/2-l.height/2};case"center":return{x:o.width/2-l.width/2,y:o.height/2-l.height/2}}}};Kd.prototype._class+=" layout_Layered";Kd.prototype.publish("surfacePadding",0,"number","Padding");Kd.prototype.publish("widgets",[],"widgetArray","widgets",null,{tags:["Private"]});var Ir=class extends fy{static{c(this,"F")}static{B(this,"Popup")}_surfaceButtons;_originalPosition;constructor(){super(),this._tag="div",this._surfaceButtons=[]}updateState(i){i=i||!this.popupState(),this.popupState(i).render()}enter(i,o){super.enter(i,o),this.widget().target(i),this._originalPosition=this.position()}update(i,o){super.update(i,o),o.style("visibility",this.popupState()?null:"hidden").style("opacity",this.popupState()?null:0).style("width",this.shrinkWrap()?this.widget().width()+"px":this._size.width+"px").style("height",this.shrinkWrap()?this.widget().height()+"px":this._size.height+"px"),this.widget().size().height===0&&this.widget().resize(this.size())}postUpdate(i,o){let l,s;switch(this.centerPopup()){case"container":this._placeholderElement&&(l=parseInt(this._placeholderElement.style("width"))/2-this.widget().width()/2,s=parseInt(this._placeholderElement.style("height"))/2-this.widget().height()/2),this.position("absolute");break;case"window":l=window.innerWidth/2-this.widget().width()/2,s=window.innerHeight/2-this.widget().height()/2,this.position("fixed");break;default:l=0,s=0,this.position(this._originalPosition);break}this.pos({x:l,y:s}),super.postUpdate(i,o),o.style("position",this.position()).style("left",this.left()+"px").style("right",this.right()+"px").style("top",this.top()+"px").style("bottom",this.bottom()+"px")}exit(i,o){this.widget()&&this.widget().target(null),super.exit(i,o)}click(i){}};Ir.prototype._class+=" layout_Popup";Ir.prototype.publish("popupState",!1,"boolean","State of the popup, visible (true) or hidden (false)",null,{});Ir.prototype.publish("shrinkWrap",!1,"boolean","The popup parent container either shrinks to the size of its contents (true) or expands to fit thge popup's parentDiv (false)",null,{});Ir.prototype.publish("centerPopup","none","set","Center the widget in its container element (target) or in the window",["none","container","window"],{});Ir.prototype.publish("top",null,"number","Top position property of popup",null,{});Ir.prototype.publish("bottom",null,"number","Bottom position property of popup",null,{});Ir.prototype.publish("left",null,"number","Left position property of popup",null,{});Ir.prototype.publish("right",null,"number","Right position property of popup",null,{});Ir.prototype.publish("position","relative","set","Value of the 'position' property",["absolute","relative","fixed","static","initial","inherit"],{tags:["Private"]});Ir.prototype.publish("widget",null,"widget","Widget",null,{tags:["Private"]});(function(){if(!document.getElementById("6b6715fa")){var i=document.createElement("style");i.id="6b6715fa",i.textContent=`.layout_Tabbed .tab-button {
984
+ `,document.head.appendChild(t)}})();var No=class extends jd{static{d(this,"nt")}static{w(this,"Layered")}_contentContainer;_widgetPlacements;_widgetRatios;constructor(){super(),this._tag="div",this._widgetPlacements=[],this._widgetRatios=[]}addLayer(t,e="default",i=1,o=1){let r=this.widgets();return r.push(t||new Yd().text("No widget defined for layer.")),this.widgets(r),this._widgetPlacements.push(e),this._widgetRatios.push([i,o]),this}enter(t,e){super.enter(t,e),this._contentContainer=e.append("div").attr("class","container")}update(t,e){super.update(t,e);let i=this;e.style("padding",this.surfacePadding()+"px");let o=this._contentContainer.selectAll(".content.id"+this.id()).data(this.widgets(),function(r){return r.id()});o.enter().append("div").attr("class","content id"+this.id()).each(function(r,l){r.target(this)}).merge(o).each(function(r,l){let n={width:i.clientWidth(),height:i.clientHeight()},s=i.widgetSize(l,n),a=i.widgetPosition(l,n,s);this.style.top=a.y+"px",this.style.left=a.x+"px",r.resize(s).render()}),o.exit().each(function(r,l){r.target(null)}).remove(),o.order()}widgetSize(t,e){return this._widgetPlacements[t]==="default"?{width:e.width*this._widgetRatios[t][0],height:e.height*this._widgetRatios[t][1]}:{width:e.width*this._widgetRatios[t][0],height:e.height*this._widgetRatios[t][1]}}widgetPosition(t,e,i){switch(this._widgetPlacements[t]){default:return{x:0,y:0};case"top":return{x:e.width/2-i.width/2,y:0};case"bottom":return{x:e.width/2-i.width/2,y:e.height-i.height};case"left":return{x:0,y:e.height/2-i.height/2};case"right":return{x:e.width-i.width,y:e.height/2-i.height/2};case"center":return{x:e.width/2-i.width/2,y:e.height/2-i.height/2}}}};No.prototype._class+=" layout_Layered";No.prototype.publish("surfacePadding",0,"number","Padding");No.prototype.publish("widgets",[],"widgetArray","widgets",null,{tags:["Private"]});var Dt=class extends Xd{static{d(this,"F")}static{w(this,"Popup")}_surfaceButtons;_originalPosition;constructor(){super(),this._tag="div",this._surfaceButtons=[]}updateState(t){t=t||!this.popupState(),this.popupState(t).render()}enter(t,e){super.enter(t,e),this.widget().target(t),this._originalPosition=this.position()}update(t,e){super.update(t,e),e.style("visibility",this.popupState()?null:"hidden").style("opacity",this.popupState()?null:0).style("width",this.shrinkWrap()?this.widget().width()+"px":this._size.width+"px").style("height",this.shrinkWrap()?this.widget().height()+"px":this._size.height+"px"),this.widget().size().height===0&&this.widget().resize(this.size())}postUpdate(t,e){let i,o;switch(this.centerPopup()){case"container":this._placeholderElement&&(i=parseInt(this._placeholderElement.style("width"))/2-this.widget().width()/2,o=parseInt(this._placeholderElement.style("height"))/2-this.widget().height()/2),this.position("absolute");break;case"window":i=window.innerWidth/2-this.widget().width()/2,o=window.innerHeight/2-this.widget().height()/2,this.position("fixed");break;default:i=0,o=0,this.position(this._originalPosition);break}this.pos({x:i,y:o}),super.postUpdate(t,e),e.style("position",this.position()).style("left",this.left()+"px").style("right",this.right()+"px").style("top",this.top()+"px").style("bottom",this.bottom()+"px")}exit(t,e){this.widget()&&this.widget().target(null),super.exit(t,e)}click(t){}};Dt.prototype._class+=" layout_Popup";Dt.prototype.publish("popupState",!1,"boolean","State of the popup, visible (true) or hidden (false)",null,{});Dt.prototype.publish("shrinkWrap",!1,"boolean","The popup parent container either shrinks to the size of its contents (true) or expands to fit thge popup's parentDiv (false)",null,{});Dt.prototype.publish("centerPopup","none","set","Center the widget in its container element (target) or in the window",["none","container","window"],{});Dt.prototype.publish("top",null,"number","Top position property of popup",null,{});Dt.prototype.publish("bottom",null,"number","Bottom position property of popup",null,{});Dt.prototype.publish("left",null,"number","Left position property of popup",null,{});Dt.prototype.publish("right",null,"number","Right position property of popup",null,{});Dt.prototype.publish("position","relative","set","Value of the 'position' property",["absolute","relative","fixed","static","initial","inherit"],{tags:["Private"]});Dt.prototype.publish("widget",null,"widget","Widget",null,{tags:["Private"]});(function(){if(!document.getElementById("6b6715fa")){var t=document.createElement("style");t.id="6b6715fa",t.textContent=`.layout_Tabbed .tab-button {
992
985
  position: relative;
993
986
  top: 1px;
994
987
  display: inline-block;
@@ -1010,7 +1003,7 @@ div[draggable=true].hideDragCellContent.content-icon-FAChar:before{
1010
1003
  border-bottom: 1px solid #ddd;
1011
1004
  border-top: none;
1012
1005
  top: -1px;
1013
- }`,document.head.appendChild(i)}})();var sn=class extends gy{static{c(this,"U")}static{B(this,"Tabbed")}_tabContainer;_contentContainer;constructor(){super(),this._tag="div"}clearTabs(){return this.labels([]),this.widgets([]),this}addTab(i,o,l,s){let h=i.size();h.width===0&&h.height===0&&i.size({width:"100%",height:"100%"});let p=this.labels(),f=this.widgets();l&&this.activeTabIdx(this.widgets().length),p.push(o);let m=new qe().widget(i||new my().text("No widget defined for tab"));return f.push(m),this.labels(p),this.widgets(f),s&&s(m),this}widgetSize(i){let o=this.clientWidth(),l=this.clientHeight(),s=this._tabContainer.node().getBoundingClientRect();return typeof s.height<"u"&&(l-=s.height),{width:o,height:l}}enter(i,o){super.enter(i,o),this._tabContainer=o.append("div"),this._contentContainer=o.append("div")}update(i,o){super.update(i,o);let l=this;o.style("padding",this.surfacePadding_exists()?this.surfacePadding()+"px":null);let s=this._tabContainer.selectAll(".tab-button.id"+this.id()).data(this.showTabs()?this.labels():[],function(p){return p});s.enter().append("span").attr("class","tab-button id"+this.id()).style("cursor","pointer").on("click",function(p,f){l.click(l.widgets()[f].widget(),p,f),l.activeTabIdx(f).render()}).merge(s).classed("active",function(p,f){return l.activeTabIdx()===f}).text(function(p){return p}),s.exit().remove();let h=this._contentContainer.selectAll(".tab-content.id"+this.id()).data(this.widgets(),function(p){return p.id()});switch(h.enter().append("div").attr("class","tab-content id"+this.id()).each(function(p,f){p.target(this)}).merge(h).classed("active",function(p,f){return l.activeTabIdx()===f}).style("display",function(p,f){return l.activeTabIdx()===f?"block":"none"}).each(function(p,f){if(p.visible(l.activeTabIdx()===f),l.activeTabIdx()===f){let m=l.widgetSize(yy(this));p.surfaceBorderWidth(l.showTabs()?null:0).surfacePadding(l.showTabs()?null:0).resize(m)}}),h.exit().each(function(p,f){p.target(null)}).remove(),this.tabLocation()){case"bottom":this._tabContainer.attr("class","on_bottom").style("top",this._contentContainer.node().offsetHeight+this.surfacePadding()+"px").style("position","absolute"),this._contentContainer.style("top",this.surfacePadding_exists()?this.surfacePadding()+"px":null).style("position","absolute");break;default:this._tabContainer.attr("class","on_top").style("top",null).style("position","relative"),this._contentContainer.style("top",this._tabContainer.node().offsetHeight+this.surfacePadding()+"px").style("position","absolute");break}}click(i,o,l){}};sn.prototype._class+=" layout_Tabbed";sn.prototype.publish("showTabs",!0,"boolean","Show Tabs",null,{});sn.prototype.publish("surfacePadding",4,"number","Padding");sn.prototype.publish("activeTabIdx",0,"number","Index of active tab",null,{});sn.prototype.publish("labels",[],"array","Array of tab labels sharing an index with ",null,{tags:["Private"]});sn.prototype.publish("tabLocation","top","set","Position the tabs at the bottom of the widget",["top","bottom"],{tags:["Private"]});sn.prototype.publish("widgets",[],"widgetArray","widgets",null,{tags:["Private"]});(function(){if(!document.getElementById("67787f94")){var i=document.createElement("style");i.id="67787f94",i.textContent=`.layout_Toolbar {
1006
+ }`,document.head.appendChild(t)}})();var te=class extends Kd{static{d(this,"U")}static{w(this,"Tabbed")}_tabContainer;_contentContainer;constructor(){super(),this._tag="div"}clearTabs(){return this.labels([]),this.widgets([]),this}addTab(t,e,i,o){let r=t.size();r.width===0&&r.height===0&&t.size({width:"100%",height:"100%"});let l=this.labels(),n=this.widgets();i&&this.activeTabIdx(this.widgets().length),l.push(e);let s=new it().widget(t||new qd().text("No widget defined for tab"));return n.push(s),this.labels(l),this.widgets(n),o&&o(s),this}widgetSize(t){let e=this.clientWidth(),i=this.clientHeight(),o=this._tabContainer.node().getBoundingClientRect();return typeof o.height<"u"&&(i-=o.height),{width:e,height:i}}enter(t,e){super.enter(t,e),this._tabContainer=e.append("div"),this._contentContainer=e.append("div")}update(t,e){super.update(t,e);let i=this;e.style("padding",this.surfacePadding_exists()?this.surfacePadding()+"px":null);let o=this._tabContainer.selectAll(".tab-button.id"+this.id()).data(this.showTabs()?this.labels():[],function(l){return l});o.enter().append("span").attr("class","tab-button id"+this.id()).style("cursor","pointer").on("click",function(l,n){i.click(i.widgets()[n].widget(),l,n),i.activeTabIdx(n).render()}).merge(o).classed("active",function(l,n){return i.activeTabIdx()===n}).text(function(l){return l}),o.exit().remove();let r=this._contentContainer.selectAll(".tab-content.id"+this.id()).data(this.widgets(),function(l){return l.id()});switch(r.enter().append("div").attr("class","tab-content id"+this.id()).each(function(l,n){l.target(this)}).merge(r).classed("active",function(l,n){return i.activeTabIdx()===n}).style("display",function(l,n){return i.activeTabIdx()===n?"block":"none"}).each(function(l,n){if(l.visible(i.activeTabIdx()===n),i.activeTabIdx()===n){let s=i.widgetSize(Jd(this));l.surfaceBorderWidth(i.showTabs()?null:0).surfacePadding(i.showTabs()?null:0).resize(s)}}),r.exit().each(function(l,n){l.target(null)}).remove(),this.tabLocation()){case"bottom":this._tabContainer.attr("class","on_bottom").style("top",this._contentContainer.node().offsetHeight+this.surfacePadding()+"px").style("position","absolute"),this._contentContainer.style("top",this.surfacePadding_exists()?this.surfacePadding()+"px":null).style("position","absolute");break;default:this._tabContainer.attr("class","on_top").style("top",null).style("position","relative"),this._contentContainer.style("top",this._tabContainer.node().offsetHeight+this.surfacePadding()+"px").style("position","absolute");break}}click(t,e,i){}};te.prototype._class+=" layout_Tabbed";te.prototype.publish("showTabs",!0,"boolean","Show Tabs",null,{});te.prototype.publish("surfacePadding",4,"number","Padding");te.prototype.publish("activeTabIdx",0,"number","Index of active tab",null,{});te.prototype.publish("labels",[],"array","Array of tab labels sharing an index with ",null,{tags:["Private"]});te.prototype.publish("tabLocation","top","set","Position the tabs at the bottom of the widget",["top","bottom"],{tags:["Private"]});te.prototype.publish("widgets",[],"widgetArray","widgets",null,{tags:["Private"]});(function(){if(!document.getElementById("67787f94")){var t=document.createElement("style");t.id="67787f94",t.textContent=`.layout_Toolbar {
1014
1007
  height:100%;
1015
1008
  background-color:#dddddd;
1016
1009
  white-space: nowrap;
@@ -1042,7 +1035,7 @@ div[draggable=true].hideDragCellContent.content-icon-FAChar:before{
1042
1035
  margin-right:4px;
1043
1036
  line-height:16px;
1044
1037
  }
1045
- `,document.head.appendChild(i)}})();var Mt=class extends by{static{c(this,"M")}static{B(this,"Toolbar")}constructor(){super(),this._tag="div"}enter(i,o){super.enter(i,o)}update(i,o){super.update(i,o);let l=this;o.attr("title",l.title()).style("background-color",this.backgroundColor());let s=o.selectAll("div.toolbar-title").data(this.title()?[this.title()]:[]);s.enter().append("div").classed("toolbar-title",!0).append("span"),s.selectAll("div.toolbar-title > span").style("font-size",this.fontSize_exists()?this.fontSize()+"px":null).style("color",this.fontColor_exists()?this.fontColor():null).style("font-family",this.fontFamily_exists()?this.fontFamily():null).style("font-weight",this.fontBold_exists()?this.fontBold()?"bold":"normal":null).style("background-color",this.backgroundColor_exists()?this.backgroundColor():null).text(l.title()),s.exit().remove();let h=o.selectAll("div.toolbar-child").data(this.widgets()!==null?this.widgets():[],function(p){return p.id()});h.enter().insert("div","div.toolbar-title").each(function(p,f){let m=l.widgetClasses()[f]?l.widgetClasses()[f]+" toolbar-child":"toolbar-child";vy(this).classed(m,!0),p.target(this)}),h.exit().each(function(p){p.target(null)}).remove(),h.order()}render(i){let o=this;return super.render(function(l){let s=o.element().node().getBoundingClientRect(),h=s.left+s.width;o.element().selectAll("div.toolbar-child").each(function(p,f){let m=this.getBoundingClientRect();h>m.left&&(h=m.left)}),o.element().select(".toolbar-title").style("width",h-s.left-4+"px"),i&&i(l)})}exit(i,o){this.widgets().forEach(function(l){l.target(null)}),super.exit(i,o)}};Mt.prototype._class+=" layout_Toolbar";Mt.prototype.publish("title","","string","Title",null,{tags:["Intermediate"]});Mt.prototype.publish("fontSize",null,"number","Title Font Size (px)",null,{tags:["Advanced"],optional:!0});Mt.prototype.publish("fontColor",null,"html-color","Title Font Color",null,{tags:["Advanced"],optional:!0});Mt.prototype.publish("fontFamily",null,"string","Title Font Family",null,{tags:["Advanced"],optional:!0});Mt.prototype.publish("fontBold",!0,"boolean","Enable Bold Title Font",null,{tags:["Advanced"],optional:!0});Mt.prototype.publish("backgroundColor",null,"html-color","Background Color",null,{tags:["Intermediate"],optional:!0});Mt.prototype.publish("responsive",!0,"boolean","Adapts to pixel width",null,{tags:["Basic"]});Mt.prototype.publish("widgets",[],"widgetArray","Child widgets of the toolbar",null,{tags:["Basic"]});Mt.prototype.publish("widgetClasses",[],"array","Array of Html Element classes to be assigned to the child widgets (shares index with widgets param)",null,{tags:["Basic"]});var wy=class extends rt{static{c(this,"Ot")}static{B(this,"VerticalList")}constructor(){super(),this.orientation_default("vertical"),this.flexWrap_default("nowrap")}};wy.prototype._class+=" layout_VerticalList";import{IGraph as wp,INDChart as _p}from"@hpcc-js/api";import{HTMLWidget as wl,Utility as xp}from"@hpcc-js/common";import{map as Cy}from"@hpcc-js/common";var vp={};lh(vp,{requireWidget:()=>io,requireWidgets:()=>xy});import{Utility as _y}from"@hpcc-js/common";function io(i){return new Promise(function(o,l){let s=_y.parseClassID(i);xd&&xd([s.package],function(h){let p=null;h&&h[s.widgetID]&&(p=h[s.widgetID]),o(s.memberWidgetID?p.prototype?p.prototype[s.memberWidgetID]:p[s.memberWidgetID]:p)})})}c(io,"requireWidget");function xy(i){return Promise.all(i.map(io))}c(xy,"requireWidgets");var _e=class extends wl{static{c(this,"MultiChart")}_allCharts={};_chartTypeDefaults;_chartTypeProperties;_chartMonitor;_switchingTo;constructor(){super(),_p.call(this),wp.call(this),this._tag="div",this._allCharts={},this._allChartTypes.forEach(function(o){let l=JSON.parse(JSON.stringify(o));l.widget=null,this._allCharts[o.id]=l,this._allCharts[o.display]=l,this._allCharts[o.widgetClass]=l},this),this._chartTypeDefaults={},this._chartTypeProperties={}}fields(o){let l=super.fields.apply(this,arguments);if(this.chart()){if(!arguments.length)return this.chart().fields();this.chart().fields(o)}return l}columns(o,l){let s=wl.prototype.columns.apply(this,arguments);if(this.chart()){if(!arguments.length)return this.chart().columns();this.chart().columns(o,l)}return s}data(o){let l=wl.prototype.data.apply(this,arguments);if(this.chart()){if(!arguments.length)return this.chart().data();this.chart().data(o)}return l}hasOverlay(){return this.chart()&&this.chart().hasOverlay()}visible(o){return arguments.length?(this.chart()&&this.chart().visible(o),this):this.chart()&&this.chart().visible()}chartTypeDefaults(o){return arguments.length?(this._chartTypeDefaults=o,this):this._chartTypeDefaults}chartTypeProperties(o){return arguments.length?(this._chartTypeProperties=o,this):this._chartTypeProperties}getChartDataFamily(){return this._allCharts[this.chartType()].family}requireContent(o,l){let s=xp.parseClassID(this._allCharts[o].widgetClass);switch(s.package){case"@hpcc-js/chart":import("@hpcc-js/chart").then(h=>{l(new h[s.widgetID])});break;case"@hpcc-js/dgrid":import("@hpcc-js/dgrid").then(h=>{l(new h[s.widgetID])});break;default:io(this._allCharts[o].widgetClass).then(function(h){l(new h)})}}switchChart(o){if(this._switchingTo===this.chartType()){o&&o(this);return}else this._switchingTo&&console.warn("Attempting switch to: "+this.chartType()+", before previous switch is complete ("+this._switchingTo+")");this._switchingTo=this.chartType();let l=this.chart(),s=this;this.requireContent(this.chartType(),function(h){if(h!==l){let p=s.size();h.fields(s.fields()).data(s.data()).size(p),s.chart(h),l&&l.size({width:1,height:1}).render()}delete s._switchingTo,o&&o(this)})}update(o,l){super.update(o,l);let s=l.selectAll(".multiChart").data(this.chart()?[this.chart()]:[],function(f){return f._id});s.enter().append("div").attr("class","multiChart").each(function(f){f.target(this)});let h=this.chart();if(h){for(let f in this._chartTypeDefaults)if(h[f+"_default"])try{h[f+"_default"](this._chartTypeDefaults[f])}catch{console.warn("Exception Setting Default: "+f)}else console.warn("Unknown Default: "+f);this._chartTypeDefaults={};for(let f in this._chartTypeProperties)if(h[f])try{h[f](this._chartTypeProperties[f])}catch{console.warn("Exception Setting Property: "+f)}else console.warn("Unknown Property: "+f);this._chartTypeProperties={}}let p=this;s.each(function(f){f.resize(p.size())}),s.exit().transition().each(function(f){f.target(null)}).remove()}exit(o,l){this._chartMonitor&&(this._chartMonitor.remove(),delete this._chartMonitor),this.chart()&&this.chart().target(null),super.exit(o,l)}render(o){if(this.chartType()&&(!this.chart()||this.chart().classID()!==this._allCharts[this.chartType()].widgetClass)){let l=this,s=arguments;return this.switchChart(function(){wl.prototype.render.apply(l,s)}),this}return wl.prototype.render.apply(this,arguments)}};_e.prototype._class+=" composite_MultiChart";_e.prototype.implements(_p.prototype);_e.prototype.implements(wp.prototype);_e.prototype._otherChartTypes=[{id:"FORM",display:"Form",widgetClass:"form_FieldForm"}].map(function(i){return i.family="other",i});_e.prototype._graphChartTypes=[{id:"GRAPH",display:"Graph",widgetClass:"graph_Graph"},{id:"ADJACENCY_GRAPH",display:"Graph",widgetClass:"graph_AdjacencyGraph"},{id:"GRAPHC",display:"GraphC",widgetClass:"graph_GraphC"}].map(function(i){return i.family="GRAPH",i});_e.prototype._1DChartTypes=[].map(function(i){return i.family="1D",i});_e.prototype._2DChartTypes=[{id:"SUMMARY",display:"Summary",widgetClass:"chart_Summary"},{id:"BUBBLE",display:"Bubble",widgetClass:"chart_Bubble"},{id:"PIE",display:"Pie",widgetClass:"chart_Pie"},{id:"WORD_CLOUD",display:"Word Cloud",widgetClass:"other_WordCloud"}].map(function(i){return i.family="2D",i});_e.prototype._NDChartTypes=[{id:"COLUMN",display:"Column",widgetClass:"chart_Column"},{id:"BAR",display:"Bar",widgetClass:"chart_Bar"},{id:"LINE",display:"Line",widgetClass:"chart_Line"},{id:"AREA",display:"Area",widgetClass:"chart_Area"},{id:"STEP",display:"Step",widgetClass:"chart_Step"},{id:"SCATTER",display:"Scatter",widgetClass:"chart_Scatter"},{id:"HEXBIN",display:"Hex Bin",widgetClass:"chart_HexBin"}].map(function(i){return i.family="ND",i});_e.prototype._mapChartTypes=[{id:"CHORO_USSTATES",display:"US State Choropleth",widgetClass:"map_ChoroplethStates"},{id:"CHORO_USCOUNTIES",display:"US County Choropleth",widgetClass:"map_ChoroplethCounties"},{id:"CHORO_COUNTRIES",display:"Country Choropleth",widgetClass:"map_ChoroplethCountries"},{id:"GMAP_CHORO_USCOUNTIES",display:"Google Map US County Choropleth",widgetClass:"map_GMapCounties"},{id:"GOOGLE_MAP",display:"Google Map",widgetClass:"map_GMapLayered"},{id:"OPENSTREET",display:"Open Street Map",widgetClass:"map_OpenStreet"}].map(function(i){return i.family="map",i});_e.prototype._anyChartTypes=[{id:"TABLE",display:"Table",widgetClass:"dgrid_Table"},{id:"TABLE_LEGACY",display:"Table (legacy)",widgetClass:"other_Table"},{id:"TABLE_NESTED",display:"Nested Table",widgetClass:"other_NestedTable"},{id:"TABLE_CALENDAR",display:"Table driven Calendar Heat Map",widgetClass:"other_CalendarHeatMap"},{id:"TABLE_BULLET",display:"Table driven bullet chart",widgetClass:"chart_Bullet"},{id:"TABLE_SELECT",display:"Table driven select",widgetClass:"other_Select"},{id:"TABLE_AUTOCOMPLETE",display:"Table driven auto complete",widgetClass:"other_AutoCompleteText"},{id:"TABLE_OPPORTUNITY",display:"Table driven opportunity widget",widgetClass:"graph_Opportunity"},{id:"TABLE_TREE",display:"Table driven tree",widgetClass:"tree_Dendrogram"},{id:"TABLE_TREEMAP",display:"Table driven Treemap",widgetClass:"tree_Treemap"},{id:"TABLE_SANKEY",display:"Table driven Sankey",widgetClass:"graph_Sankey"},{id:"TABLE_GMAP_PIN",display:"Table driven Google Map (pins)",widgetClass:"map_GMapPin"},{id:"TABLE_GMAP_PINLINE",display:"Table driven Google Map (pins/lines)",widgetClass:"map_GMapPinLine"},{id:"TABLE_XML_TREE",display:"Table driven XML Tree",widgetClass:"tree_Indented"}].map(function(i){return i.family="any",i});_e.prototype._allChartTypes=_e.prototype._otherChartTypes.concat(_e.prototype._graphChartTypes.concat(_e.prototype._1DChartTypes.concat(_e.prototype._2DChartTypes.concat(_e.prototype._NDChartTypes.concat(_e.prototype._mapChartTypes.concat(_e.prototype._anyChartTypes))))));_e.prototype._allMap=Cy(_e.prototype._allChartTypes,function(i){return i.family});_e.prototype._allFamilies=_e.prototype._allMap.keys();_e.prototype._allChartTypesMap={};_e.prototype._allChartTypesByClass={};_e.prototype._allChartTypes.forEach(function(i){i.widgetPath=xp.widgetPath(i.widgetClass),_e.prototype._allChartTypesMap[i.id]=i,_e.prototype._allChartTypesByClass[i.widgetClass]=i});_e.prototype.publishReset();_e.prototype.publish("hideRowOnLegendClick",!1,"boolean","Enable/Disable hiding row on legend clicks",null,{tags:["Basic"]});_e.prototype.publish("chartType","BUBBLE","set","Chart Type",_e.prototype._allChartTypes.map(function(i){return i.id}),{tags:["Basic"]});_e.prototype.publish("chart",null,"widget","Chart",null,{tags:["Basic"]});var Sy=_e.prototype.chart;_e.prototype.chart=function(i){let o=Sy.apply(this,arguments);if(arguments.length){let l=this;this._allChartTypesByClass[i.classID()]?this.chartType(this._allChartTypesByClass[i.classID()].id):console.warn("Unknown Class ID: "+i.classID()),i.click=function(s,h,p){l.click.apply(l,arguments)},i.dblclick=function(s,h,p){l.dblclick.apply(l,arguments)},i.vertex_click=function(s,h,p,f){l.vertex_click.apply(l,arguments)},i.vertex_dblclick=function(s,h,p,f){l.vertex_dblclick.apply(l,arguments)},i.edge_click=function(s,h,p,f){l.edge_click.apply(l,arguments)},i.edge_dblclick=function(s,h,p,f){l.edge_dblclick.apply(l,arguments)},this._chartMonitor&&(this._chartMonitor.remove(),delete this._chartMonitor),this._chartMonitor=i.monitor(function(s,h,p){l.broadcast(s,h,p,i)})}return o};(function(){if(!document.getElementById("34d5dd28")){var i=document.createElement("style");i.id="34d5dd28",i.textContent=`.composite_ChartPanel > .body {
1038
+ `,document.head.appendChild(t)}})();var pt=class extends Zd{static{d(this,"M")}static{w(this,"Toolbar")}constructor(){super(),this._tag="div"}enter(t,e){super.enter(t,e)}update(t,e){super.update(t,e);let i=this;e.attr("title",i.title()).style("background-color",this.backgroundColor());let o=e.selectAll("div.toolbar-title").data(this.title()?[this.title()]:[]);o.enter().append("div").classed("toolbar-title",!0).append("span"),o.selectAll("div.toolbar-title > span").style("font-size",this.fontSize_exists()?this.fontSize()+"px":null).style("color",this.fontColor_exists()?this.fontColor():null).style("font-family",this.fontFamily_exists()?this.fontFamily():null).style("font-weight",this.fontBold_exists()?this.fontBold()?"bold":"normal":null).style("background-color",this.backgroundColor_exists()?this.backgroundColor():null).text(i.title()),o.exit().remove();let r=e.selectAll("div.toolbar-child").data(this.widgets()!==null?this.widgets():[],function(l){return l.id()});r.enter().insert("div","div.toolbar-title").each(function(l,n){let s=i.widgetClasses()[n]?i.widgetClasses()[n]+" toolbar-child":"toolbar-child";Qd(this).classed(s,!0),l.target(this)}),r.exit().each(function(l){l.target(null)}).remove(),r.order()}render(t){let e=this;return super.render(function(i){let o=e.element().node().getBoundingClientRect(),r=o.left+o.width;e.element().selectAll("div.toolbar-child").each(function(l,n){let s=this.getBoundingClientRect();r>s.left&&(r=s.left)}),e.element().select(".toolbar-title").style("width",r-o.left-4+"px"),t&&t(i)})}exit(t,e){this.widgets().forEach(function(i){i.target(null)}),super.exit(t,e)}};pt.prototype._class+=" layout_Toolbar";pt.prototype.publish("title","","string","Title",null,{tags:["Intermediate"]});pt.prototype.publish("fontSize",null,"number","Title Font Size (px)",null,{tags:["Advanced"],optional:!0});pt.prototype.publish("fontColor",null,"html-color","Title Font Color",null,{tags:["Advanced"],optional:!0});pt.prototype.publish("fontFamily",null,"string","Title Font Family",null,{tags:["Advanced"],optional:!0});pt.prototype.publish("fontBold",!0,"boolean","Enable Bold Title Font",null,{tags:["Advanced"],optional:!0});pt.prototype.publish("backgroundColor",null,"html-color","Background Color",null,{tags:["Intermediate"],optional:!0});pt.prototype.publish("responsive",!0,"boolean","Adapts to pixel width",null,{tags:["Basic"]});pt.prototype.publish("widgets",[],"widgetArray","Child widgets of the toolbar",null,{tags:["Basic"]});pt.prototype.publish("widgetClasses",[],"array","Array of Html Element classes to be assigned to the child widgets (shares index with widgets param)",null,{tags:["Basic"]});var th=class extends rt{static{d(this,"Ot")}static{w(this,"VerticalList")}constructor(){super(),this.orientation_default("vertical"),this.flexWrap_default("nowrap")}};th.prototype._class+=" layout_VerticalList";import{IGraph as wn,INDChart as xn}from"@hpcc-js/api";import{HTMLWidget as qe,Utility as vn}from"@hpcc-js/common";import{map as oh}from"@hpcc-js/common";var bn={};Tr(bn,{requireWidget:()=>Ce,requireWidgets:()=>ih});import{Utility as eh}from"@hpcc-js/common";function Ce(t){return new Promise(function(e,i){let o=eh.parseClassID(t);Xi&&Xi([o.package],function(r){let l=null;r&&r[o.widgetID]&&(l=r[o.widgetID]),e(o.memberWidgetID?l.prototype?l.prototype[o.memberWidgetID]:l[o.memberWidgetID]:l)})})}d(Ce,"requireWidget");function ih(t){return Promise.all(t.map(Ce))}d(ih,"requireWidgets");var E=class extends qe{static{d(this,"MultiChart")}_allCharts={};_chartTypeDefaults;_chartTypeProperties;_chartMonitor;_switchingTo;constructor(){super(),xn.call(this),wn.call(this),this._tag="div",this._allCharts={},this._allChartTypes.forEach(function(e){let i=JSON.parse(JSON.stringify(e));i.widget=null,this._allCharts[e.id]=i,this._allCharts[e.display]=i,this._allCharts[e.widgetClass]=i},this),this._chartTypeDefaults={},this._chartTypeProperties={}}fields(e){let i=super.fields.apply(this,arguments);if(this.chart()){if(!arguments.length)return this.chart().fields();this.chart().fields(e)}return i}columns(e,i){let o=qe.prototype.columns.apply(this,arguments);if(this.chart()){if(!arguments.length)return this.chart().columns();this.chart().columns(e,i)}return o}data(e){let i=qe.prototype.data.apply(this,arguments);if(this.chart()){if(!arguments.length)return this.chart().data();this.chart().data(e)}return i}hasOverlay(){return this.chart()&&this.chart().hasOverlay()}visible(e){return arguments.length?(this.chart()&&this.chart().visible(e),this):this.chart()&&this.chart().visible()}chartTypeDefaults(e){return arguments.length?(this._chartTypeDefaults=e,this):this._chartTypeDefaults}chartTypeProperties(e){return arguments.length?(this._chartTypeProperties=e,this):this._chartTypeProperties}getChartDataFamily(){return this._allCharts[this.chartType()].family}requireContent(e,i){let o=vn.parseClassID(this._allCharts[e].widgetClass);switch(o.package){case"@hpcc-js/chart":import("@hpcc-js/chart").then(r=>{i(new r[o.widgetID])});break;case"@hpcc-js/dgrid":import("@hpcc-js/dgrid").then(r=>{i(new r[o.widgetID])});break;default:Ce(this._allCharts[e].widgetClass).then(function(r){i(new r)})}}switchChart(e){if(this._switchingTo===this.chartType()){e&&e(this);return}else this._switchingTo&&console.warn("Attempting switch to: "+this.chartType()+", before previous switch is complete ("+this._switchingTo+")");this._switchingTo=this.chartType();let i=this.chart(),o=this;this.requireContent(this.chartType(),function(r){if(r!==i){let l=o.size();r.fields(o.fields()).data(o.data()).size(l),o.chart(r),i&&i.size({width:1,height:1}).render()}delete o._switchingTo,e&&e(this)})}update(e,i){super.update(e,i);let o=i.selectAll(".multiChart").data(this.chart()?[this.chart()]:[],function(n){return n._id});o.enter().append("div").attr("class","multiChart").each(function(n){n.target(this)});let r=this.chart();if(r){for(let n in this._chartTypeDefaults)if(r[n+"_default"])try{r[n+"_default"](this._chartTypeDefaults[n])}catch{console.warn("Exception Setting Default: "+n)}else console.warn("Unknown Default: "+n);this._chartTypeDefaults={};for(let n in this._chartTypeProperties)if(r[n])try{r[n](this._chartTypeProperties[n])}catch{console.warn("Exception Setting Property: "+n)}else console.warn("Unknown Property: "+n);this._chartTypeProperties={}}let l=this;o.each(function(n){n.resize(l.size())}),o.exit().transition().each(function(n){n.target(null)}).remove()}exit(e,i){this._chartMonitor&&(this._chartMonitor.remove(),delete this._chartMonitor),this.chart()&&this.chart().target(null),super.exit(e,i)}render(e){if(this.chartType()&&(!this.chart()||this.chart().classID()!==this._allCharts[this.chartType()].widgetClass)){let i=this,o=arguments;return this.switchChart(function(){qe.prototype.render.apply(i,o)}),this}return qe.prototype.render.apply(this,arguments)}};E.prototype._class+=" composite_MultiChart";E.prototype.implements(xn.prototype);E.prototype.implements(wn.prototype);E.prototype._otherChartTypes=[{id:"FORM",display:"Form",widgetClass:"form_FieldForm"}].map(function(t){return t.family="other",t});E.prototype._graphChartTypes=[{id:"GRAPH",display:"Graph",widgetClass:"graph_Graph"},{id:"ADJACENCY_GRAPH",display:"Graph",widgetClass:"graph_AdjacencyGraph"},{id:"GRAPHC",display:"GraphC",widgetClass:"graph_GraphC"}].map(function(t){return t.family="GRAPH",t});E.prototype._1DChartTypes=[].map(function(t){return t.family="1D",t});E.prototype._2DChartTypes=[{id:"SUMMARY",display:"Summary",widgetClass:"chart_Summary"},{id:"BUBBLE",display:"Bubble",widgetClass:"chart_Bubble"},{id:"PIE",display:"Pie",widgetClass:"chart_Pie"},{id:"WORD_CLOUD",display:"Word Cloud",widgetClass:"other_WordCloud"}].map(function(t){return t.family="2D",t});E.prototype._NDChartTypes=[{id:"COLUMN",display:"Column",widgetClass:"chart_Column"},{id:"BAR",display:"Bar",widgetClass:"chart_Bar"},{id:"LINE",display:"Line",widgetClass:"chart_Line"},{id:"AREA",display:"Area",widgetClass:"chart_Area"},{id:"STEP",display:"Step",widgetClass:"chart_Step"},{id:"SCATTER",display:"Scatter",widgetClass:"chart_Scatter"},{id:"HEXBIN",display:"Hex Bin",widgetClass:"chart_HexBin"}].map(function(t){return t.family="ND",t});E.prototype._mapChartTypes=[{id:"CHORO_USSTATES",display:"US State Choropleth",widgetClass:"map_ChoroplethStates"},{id:"CHORO_USCOUNTIES",display:"US County Choropleth",widgetClass:"map_ChoroplethCounties"},{id:"CHORO_COUNTRIES",display:"Country Choropleth",widgetClass:"map_ChoroplethCountries"},{id:"GMAP_CHORO_USCOUNTIES",display:"Google Map US County Choropleth",widgetClass:"map_GMapCounties"},{id:"GOOGLE_MAP",display:"Google Map",widgetClass:"map_GMapLayered"},{id:"OPENSTREET",display:"Open Street Map",widgetClass:"map_OpenStreet"}].map(function(t){return t.family="map",t});E.prototype._anyChartTypes=[{id:"TABLE",display:"Table",widgetClass:"dgrid_Table"},{id:"TABLE_LEGACY",display:"Table (legacy)",widgetClass:"other_Table"},{id:"TABLE_NESTED",display:"Nested Table",widgetClass:"other_NestedTable"},{id:"TABLE_CALENDAR",display:"Table driven Calendar Heat Map",widgetClass:"other_CalendarHeatMap"},{id:"TABLE_BULLET",display:"Table driven bullet chart",widgetClass:"chart_Bullet"},{id:"TABLE_SELECT",display:"Table driven select",widgetClass:"other_Select"},{id:"TABLE_AUTOCOMPLETE",display:"Table driven auto complete",widgetClass:"other_AutoCompleteText"},{id:"TABLE_OPPORTUNITY",display:"Table driven opportunity widget",widgetClass:"graph_Opportunity"},{id:"TABLE_TREE",display:"Table driven tree",widgetClass:"tree_Dendrogram"},{id:"TABLE_TREEMAP",display:"Table driven Treemap",widgetClass:"tree_Treemap"},{id:"TABLE_SANKEY",display:"Table driven Sankey",widgetClass:"graph_Sankey"},{id:"TABLE_GMAP_PIN",display:"Table driven Google Map (pins)",widgetClass:"map_GMapPin"},{id:"TABLE_GMAP_PINLINE",display:"Table driven Google Map (pins/lines)",widgetClass:"map_GMapPinLine"},{id:"TABLE_XML_TREE",display:"Table driven XML Tree",widgetClass:"tree_Indented"}].map(function(t){return t.family="any",t});E.prototype._allChartTypes=E.prototype._otherChartTypes.concat(E.prototype._graphChartTypes.concat(E.prototype._1DChartTypes.concat(E.prototype._2DChartTypes.concat(E.prototype._NDChartTypes.concat(E.prototype._mapChartTypes.concat(E.prototype._anyChartTypes))))));E.prototype._allMap=oh(E.prototype._allChartTypes,function(t){return t.family});E.prototype._allFamilies=E.prototype._allMap.keys();E.prototype._allChartTypesMap={};E.prototype._allChartTypesByClass={};E.prototype._allChartTypes.forEach(function(t){t.widgetPath=vn.widgetPath(t.widgetClass),E.prototype._allChartTypesMap[t.id]=t,E.prototype._allChartTypesByClass[t.widgetClass]=t});E.prototype.publishReset();E.prototype.publish("hideRowOnLegendClick",!1,"boolean","Enable/Disable hiding row on legend clicks",null,{tags:["Basic"]});E.prototype.publish("chartType","BUBBLE","set","Chart Type",E.prototype._allChartTypes.map(function(t){return t.id}),{tags:["Basic"]});E.prototype.publish("chart",null,"widget","Chart",null,{tags:["Basic"]});var rh=E.prototype.chart;E.prototype.chart=function(t){let e=rh.apply(this,arguments);if(arguments.length){let i=this;this._allChartTypesByClass[t.classID()]?this.chartType(this._allChartTypesByClass[t.classID()].id):console.warn("Unknown Class ID: "+t.classID()),t.click=function(o,r,l){i.click.apply(i,arguments)},t.dblclick=function(o,r,l){i.dblclick.apply(i,arguments)},t.vertex_click=function(o,r,l,n){i.vertex_click.apply(i,arguments)},t.vertex_dblclick=function(o,r,l,n){i.vertex_dblclick.apply(i,arguments)},t.edge_click=function(o,r,l,n){i.edge_click.apply(i,arguments)},t.edge_dblclick=function(o,r,l,n){i.edge_dblclick.apply(i,arguments)},this._chartMonitor&&(this._chartMonitor.remove(),delete this._chartMonitor),this._chartMonitor=t.monitor(function(o,r,l){i.broadcast(o,r,l,t)})}return e};(function(){if(!document.getElementById("34d5dd28")){var t=document.createElement("style");t.id="34d5dd28",t.textContent=`.composite_ChartPanel > .body {
1046
1039
  margin: 0;
1047
1040
  padding: 0;
1048
1041
  display: flex;
@@ -1068,7 +1061,7 @@ div[draggable=true].hideDragCellContent.content-icon-FAChar:before{
1068
1061
  header, footer {
1069
1062
  display: block;
1070
1063
  }
1071
- `,document.head.appendChild(i)}})();var qd=class extends ky{static{c(this,"Summary")}constructor(){super()}enter(o,l){super.enter(o,l),l.append("p")}update(o,l){super.update(o,l),l.select("p").text(this.text())}};qd.prototype.publish("text","","string");var Qd=class extends xe{static{c(this,"MultiChartPanel")}constructor(){super(),this.widget(new _e().chartType("COLUMN"))}multiChart(){return this._widget}chartType(o){return arguments.length?(this._widget.chartType(o),this):this._widget.chartType()}chart(o){return arguments.length?(this._widget.chart(o),this):this._widget.chart()}chartTypeDefaults(o){return arguments.length?(this._widget.chartTypeDefaults(o),this):this._widget.chartTypeDefaults()}chartTypeProperties(o){return arguments.length?(this._widget.chartTypeProperties(o),this):this._widget.chartTypeProperties()}update(o,l){super.update(o,l),this._widget instanceof _e&&this._legend.dataFamily(this._widget.getChartDataFamily()),super.update(o,l)}};Qd.prototype._class+=" composite_MultiChartPanel";import{OnOff as Ty}from"@hpcc-js/form";import{PropertyEditor as Py}from"@hpcc-js/other";(function(){if(!document.getElementById("e6188c82")){var i=document.createElement("style");i.id="e6188c82",i.textContent=`\uFEFF.composite_Dermatology {
1064
+ `,document.head.appendChild(t)}})();var Uo=class extends lh{static{d(this,"Summary")}constructor(){super()}enter(e,i){super.enter(e,i),i.append("p")}update(e,i){super.update(e,i),i.select("p").text(this.text())}};Uo.prototype.publish("text","","string");var Vo=class extends H{static{d(this,"MultiChartPanel")}constructor(){super(),this.widget(new E().chartType("COLUMN"))}multiChart(){return this._widget}chartType(e){return arguments.length?(this._widget.chartType(e),this):this._widget.chartType()}chart(e){return arguments.length?(this._widget.chart(e),this):this._widget.chart()}chartTypeDefaults(e){return arguments.length?(this._widget.chartTypeDefaults(e),this):this._widget.chartTypeDefaults()}chartTypeProperties(e){return arguments.length?(this._widget.chartTypeProperties(e),this):this._widget.chartTypeProperties()}update(e,i){super.update(e,i),this._widget instanceof E&&this._legend.dataFamily(this._widget.getChartDataFamily()),super.update(e,i)}};Vo.prototype._class+=" composite_MultiChartPanel";import{OnOff as nh}from"@hpcc-js/form";import{PropertyEditor as sh}from"@hpcc-js/other";(function(){if(!document.getElementById("e6188c82")){var t=document.createElement("style");t.id="e6188c82",t.textContent=`\uFEFF.composite_Dermatology {
1072
1065
  background-color: ghostwhite;
1073
1066
  }
1074
1067
 
@@ -1106,56 +1099,10 @@ header, footer {
1106
1099
  .composite_Dermatology .other_PropertyEditor .property-label {
1107
1100
  height:unset;
1108
1101
  }
1109
- `,document.head.appendChild(i)}})();var _l=class extends Xe{static{c(this,"Dermatology")}_toolbar;_propEditor;_showProperties;_propsButton;_prevWidget;constructor(){super(),this._toolbar=new Mt().title("Dermatology"),this._propEditor=new Py().show_settings(!0)}showProperties(o){if(!arguments.length)return this._showProperties;this._showProperties=o,this.rightPercentage(0).rightSize(this._showProperties?360:0).setContent("right",this._showProperties?this._propEditor:null);let l=this.widget();return l&&l.designMode&&l.designMode(this._showProperties),this}toggleProperties(){return this.showProperties(!this.showProperties())}enter(o,l){super.enter(o,l),this.topPercentage(0).topSize(0).setContent("top",this._toolbar),this.getCell("top").surfaceShadow(!0);let s=this;this._propsButton=new Ty().id(this.id()+"_props").value("Properties").on("click",function(){s.toggleProperties().render()}),this._toolbar.widgets([this._propsButton])}update(o,l){this.topPercentage(0).topSize(this.showToolbar()?32:0),super.update(o,l);let s=this.widget();l.style("background-color",s&&s.surfaceShadow?null:"white")}render(o){let l=this.widget();return l!==this._prevWidget&&(l&&l.surfaceShadow&&l.surfaceBackgroundColor_default("white"),this.setContent("center",l),this._propEditor.widget(l),this._prevWidget=l),super.render(o)}showToolbar;showToolbar_exists;widget;widget_exists};_l.prototype._class+=" composite_Dermatology";_l.prototype.publish("showToolbar",!0,"boolean","Show Toolbar");_l.prototype.publish("widget",null,"widget","Widget");import{Text as Cp,Utility as zy}from"@hpcc-js/common";import{Button as Zd,Input as Iy,Select as Ey}from"@hpcc-js/form";import{Html as Ry,Legend as Sp}from"@hpcc-js/other";import{select as ns}from"@hpcc-js/common";import"@hpcc-js/common";(function(){if(!document.getElementById("e075cdb6")){var i=document.createElement("style");i.id="e075cdb6",i.textContent=`.composite_MegaChart-Info,
1102
+ `,document.head.appendChild(t)}})();var Je=class extends Z{static{d(this,"Dermatology")}_toolbar;_propEditor;_showProperties;_propsButton;_prevWidget;constructor(){super(),this._toolbar=new pt().title("Dermatology"),this._propEditor=new sh().show_settings(!0)}showProperties(e){if(!arguments.length)return this._showProperties;this._showProperties=e,this.rightPercentage(0).rightSize(this._showProperties?360:0).setContent("right",this._showProperties?this._propEditor:null);let i=this.widget();return i&&i.designMode&&i.designMode(this._showProperties),this}toggleProperties(){return this.showProperties(!this.showProperties())}enter(e,i){super.enter(e,i),this.topPercentage(0).topSize(0).setContent("top",this._toolbar),this.getCell("top").surfaceShadow(!0);let o=this;this._propsButton=new nh().id(this.id()+"_props").value("Properties").on("click",function(){o.toggleProperties().render()}),this._toolbar.widgets([this._propsButton])}update(e,i){this.topPercentage(0).topSize(this.showToolbar()?32:0),super.update(e,i);let o=this.widget();i.style("background-color",o&&o.surfaceShadow?null:"white")}render(e){let i=this.widget();return i!==this._prevWidget&&(i&&i.surfaceShadow&&i.surfaceBackgroundColor_default("white"),this.setContent("center",i),this._propEditor.widget(i),this._prevWidget=i),super.render(e)}showToolbar;showToolbar_exists;widget;widget_exists};Je.prototype._class+=" composite_Dermatology";Je.prototype.publish("showToolbar",!0,"boolean","Show Toolbar");Je.prototype.publish("widget",null,"widget","Widget");import{Text as Cn,Utility as ah}from"@hpcc-js/common";import{Button as $o,Input as dh,Select as hh}from"@hpcc-js/form";import{Html as ch,Legend as Sn}from"@hpcc-js/other";import{select as Pi}from"@hpcc-js/common";import"@hpcc-js/common";(function(){if(!document.getElementById("e075cdb6")){var t=document.createElement("style");t.id="e075cdb6",t.textContent=`.composite_MegaChart-Info,
1110
1103
  .composite_MegaChart-Info *,
1111
1104
  .composite_MegaChart-Maximize,
1112
1105
  .composite_MegaChart-Maximize *{
1113
1106
  font-family: FontAwesome;
1114
- }`,document.head.appendChild(i)}})();var Ee=class extends Xe{static{c(this,"MegaChart")}_chart=new _e;_toolbar=new Mt;_valueTitle=new Cp;_domainTitle=new Cp;_legend=new Sp;_csvButton;_infoButton;_maximizeButton;_legendButton;_chartTypeSelect;_prevLegendPosition;_prevShowToolbar;_1DChartTypes;_2DChartTypes;_NDChartTypes;_anyChartTypes;_allChartTypes;_contentClasses;_dataCount;constructor(){super(),this._tag="div";let o=this;this._chart.click=function(){o.click.apply(o,arguments)},this._chart.dblclick=function(){o.dblclick.apply(o,arguments)},this._chart.vertex_click=function(){o.vertex_click.apply(o,arguments)},this._chart.vertex_dblclick=function(){o.vertex_dblclick.apply(o,arguments)},this._chart.edge_click=function(){o.edge_click.apply(o,arguments)},this._chart.edge_dblclick=function(){o.edge_dblclick.apply(o,arguments)}}toolbarWidgets(o){return arguments.length?(this._toolbar.widgets(o),this):this._toolbar.widgets()}chartTypeDefaults(o){return arguments.length?(this._chart.chartTypeDefaults(o),this):this._chart.chartTypeDefaults()}chartTypeProperties(o){return arguments.length?(this._chart.chartTypeProperties(o),this):this._chart.chartTypeProperties()}fields(o){return arguments.length?(this._chart.fields(o),this):this._chart.fields()}columns(o,l){return arguments.length?(this._chart.columns(o,l),this):this._chart.columns()}data(o){return arguments.length?(this._chart.data(o),this):this._chart.data()}downloadCSV(){return zy.downloadString("CSV",this._chart.export("CSV")),this}enter(o,l){super.enter(o,l);let s=this;this.topShrinkWrap(!1).topPercentage(0).topSize(30),this._dataCount=new Ry().classed({"composite_MegaChart-dataCount":!0}).id(this.id()+"_dataCount").html('<span class="MegaChart-dataCount-label">Count:</span>&nbsp;<span class="MegaChart-dataCount-value">'+(this.data()?this.data().length:"0")+"</span>").overflowX("visible").overflowY("visible"),this._csvButton=new Zd().classed({"composite_MegaChart-CSV":!0}).id(this.id()+"_csv").value("CSV"),this._csvButton.click=function(h){s.downloadCSV()},this._infoButton=new Zd().classed({"composite_MegaChart-Info":!0}).id(this.id()+"_info").value(this.infoIcon()),this._maximizeButton=new Zd().classed({"composite_MegaChart-Maximize":!0}).id(this.id()+"_maximize").value("\uF2D0"),this._maximizeButton.click=function(h){let p=s.target(),f=p,m=ns(p).classed("__hpccisMaximized"),b=s.locateAncestor("layout_Grid");b?f=b.element().node():f=document.body;let _=ns(s.target());if(m){let I=p.parentElement.getBoundingClientRect(),P=parseInt(getComputedStyle(p,null).getPropertyValue("padding-top").replace("px","")),z=parseInt(getComputedStyle(p,null).getPropertyValue("padding-left").replace("px","")),R=parseInt(getComputedStyle(p,null).getPropertyValue("padding-right").replace("px","")),M=parseInt(getComputedStyle(p,null).getPropertyValue("padding-bottom").replace("px",""));s.contentDiv.style("opacity",0).transition(100),_.transition().style("top",I.top+"px").style("left",I.left+"px").style("width",I.width-z-R+"px").style("height",I.height-P-M+"px").each("end",function(){_.style("position",p.__old_position),_.style("z-index",p.__old_zindex),_.style("background-color",p.__old_backgroundColor),_.style("box-shadow",p.__old_boxshadow),s.resize({width:I.width-z-R,height:I.height-P-M}).render(function(){s.contentDiv.transition().style("opacity",1)}),h.value("\uF2D0").render()})}else{p.__old_position=p.style.position,p.__old_zindex=p.style.zIndex,p.__old_boxshadow=p.style.boxShadow,p.__old_backgroundColor=s.element().style("background-color");let I=ns(f).datum(),P=I.target(),z=I?P.getBoundingClientRect():f.getBoundingClientRect(),R=parseInt(getComputedStyle(P,null).getPropertyValue("padding-top").replace("px","")),M=parseInt(getComputedStyle(P,null).getPropertyValue("padding-left").replace("px","")),N=parseInt(getComputedStyle(P,null).getPropertyValue("padding-right").replace("px","")),F=parseInt(getComputedStyle(P,null).getPropertyValue("padding-bottom").replace("px",""));s.contentDiv.style("opacity",0).transition(100),_.style("position","fixed").style("z-index",999999).style("box-shadow","0 8px 8px 0 rgba(0,0,0,.14),0 12px 4px -8px rgba(0,0,0,.2),0 4px 20px 0 rgba(0,0,0,.12)").style("background-color",p.__old_backgroundColor).transition().style("top",z.top+R+"px").style("left",z.left+M+"px").style("width",z.width-M-N+"px").style("height",z.height-R-F+"px").each("end",function(){_.style("background-color",s.maximizedBackgroundColor()),s.resize({width:z.width-M-N,height:z.height-R-F}).render(function(){s.contentDiv.transition().style("opacity",1)}),h.value("\uF2D1").render()})}ns(p).classed("__hpccisMaximized",!m)},this._legendButton=new Iy().classed({"composite_MegaChart-legend":!0}).id(this.id()+"_legend").type("checkbox").inlineLabel("Legend: "),this._legendButton.click=function(h){s.render()},this._chartTypeSelect=new Ey().classed({"composite_MegaChart-chartType":!0}).id(this.id()+"_chartType").selectOptions(this._allChartTypes.map(function(h){return[h.id,h.display]})).value(this.chartType()),this._chartTypeSelect.change=function(h){s.chartType(h.value()).render()},this.setContent("center",this._chart),this._legend.targetWidget(this._chart).orientation(["top","bottom"].indexOf(this.legendPosition())!==-1?"horizontal":"vertical").fixedSize(!0),this._prevLegendPosition=this.legendPosition(),this.valueAxisTitle()&&this.setContent("left",this._valueTitle.rotation(-90)).leftShrinkWrap(!0),this.domainAxisTitle()&&this.setContent("bottom",this._domainTitle).bottomShrinkWrap(!0),this.legendPosition()!=="none"&&this.setContent(this.legendPosition(),this._legend)[this.legendPosition()+"ShrinkWrap"](!0)}update(o,l){function s(f,m,b){if(b&&f.indexOf(m)===-1)f.push(m);else if(!b){let _=f.indexOf(m);_>=0&&f.splice(_,1)}}c(s,"showHideButton"),this._chart&&typeof this._chart.hideRowOnLegendClick=="function"&&this._chart.hideRowOnLegendClick(this.hideRowOnLegendClick()),this._dataCount.html('<span class="MegaChart-dataCount-label">Count:</span>&nbsp;<span class="MegaChart-dataCount-value">'+(this.data()?this.data().length:"0")+"</span>"),this._chartTypeSelect.value(this.chartType());let h=this.toolbarWidgets();s(h,this._csvButton,this.showCSV()),s(h,this._maximizeButton,this.showMaximize()),s(h,this._legendButton,this.toolbarShowLegend()),s(h,this._chartTypeSelect,this.showChartSelect()),s(h,this._infoButton,this.showInfoButton()),s(h,this._dataCount,this.showCount()),this.toolbarWidgets(h),this._prevShowToolbar!==this.showToolbar()&&(this.setContent("top",this.showToolbar()?this._toolbar:null),this._prevShowToolbar=this.showToolbar()),this._toolbar.fontSize(this.titleFontSize()).fontColor(this.titleFontColor()).fontFamily(this.titleFontFamily()).fontBold(this.titleFontBold()).backgroundColor(this.titleBackgroundColor()),this._chart.data(this.data()),this._chart.chartType()!==this.chartType()&&this._chart.chartType(this.chartType());let p=this.legendPosition();this.toolbarShowLegend()&&!this._legendButton.checked()&&(p="none"),this._prevLegendPosition!==p&&(this._prevLegendPosition!=="none"&&this.clearContent(this._prevLegendPosition),this._prevLegendPosition=p,p!=="none"&&(this._legend=new Sp().targetWidget(this.getContent("center").fixedSize(!0)),this.setContent(p,this._legend),this._legend.orientation(["top","bottom"].indexOf(p)!==-1?"horizontal":"vertical"))),this._contentClasses=this.getContentClasses(),this.valueAxisTitle()&&this._contentClasses.left!=="common_Text"&&p!=="left"&&this.setContent("left",this._valueTitle.rotation(-90)),this.domainAxisTitle()&&this._contentClasses.bottom!=="common_Text"&&p!=="bottom"&&this.setContent("bottom",this._domainTitle).bottomShrinkWrap(!0),this._legend.dataFamily(this._chart.getChartDataFamily()),super.update(o,l)}exit(o,l){super.exit(o,l)}getContentClasses(){let o={},l=this.getContent("top"),s=this.getContent("right"),h=this.getContent("bottom"),p=this.getContent("left");return o.top=l!==null?l.classID():void 0,o.right=s!==null?s.classID():void 0,o.bottom=h!==null?h.classID():void 0,o.left=p!==null?p.classID():void 0,o}serializeState(){let o={title:this.title(),data:this.data()},l=this.chart();return l&&l.serializeState&&(o.chart=l.serializeState(),delete o.chart.data),o}deserializeState(o){if(o){this.title(o.title).data(o.data);let l=this.chart();l&&o.chart&&l.serializeState&&l.deserializeState(o.chart)}return this}click(o,l,s){}dblclick(o,l,s){}vertex_click(o,l,s,h){h&&h.vertex}vertex_dblclick(o,l,s,h){h&&h.vertex}edge_click(o,l,s,h){h&&h.edge}edge_dblclick(o,l,s,h){h&&h.edge}hideRowOnLegendClick;hideRowOnLegendClick_exists;showToolbar;showToolbar_exists;titleFontSize;titleFontSize_exists;titleFontColor;titleFontColor_exists;titleFontFamily;titleFontFamily_exists;titleFontBold;titleFontBold_exists;titleBackgroundColor;titleBackgroundColor_exists;maximizedBackgroundColor;maximizedBackgroundColor_exists;showChartSelect;showChartSelect_exists;showCSV;showCSV_exists;showCount;showCount_exists;showMaximize;showMaximize_exists;toolbarShowLegend;toolbarShowLegend_exists;showInfoButton;showInfoButton_exists;infoIcon;infoIcon_exists;legendPosition;legendPosition_exists;title;title_exists;domainAxisTitle;domainAxisTitle_exists;valueAxisTitle;valueAxisTitle_exists;chartType;chartType_exists;chart;chart_exists};Ee.prototype._class+=" composite_MegaChart";Ee.prototype._1DChartTypes=_e.prototype._1DChartTypes;Ee.prototype._2DChartTypes=_e.prototype._2DChartTypes;Ee.prototype._NDChartTypes=_e.prototype._NDChartTypes;Ee.prototype._anyChartTypes=_e.prototype._anyChartTypes;Ee.prototype._allChartTypes=_e.prototype._allChartTypes;Ee.prototype.publishReset();Ee.prototype.publish("hideRowOnLegendClick",!1,"boolean","Enable/Disable hiding row on legend clicks",null,{tags:["Basic"]});Ee.prototype.publish("showToolbar",!0,"boolean","Enable/Disable Toolbar widget",null,{tags:["Basic"]});Ee.prototype.publishProxy("title","_toolbar","title");Ee.prototype.publish("ddlParamsFormat","","string","DDL Param Format '{fname}, {lname}'",null,{tags:["Advanced"],optional:!0});Ee.prototype.publish("titleFontSize",null,"number","Title Font Size (px)",null,{tags:["Advanced"],optional:!0});Ee.prototype.publish("titleFontColor",null,"html-color","Title Font Color",null,{tags:["Advanced"],optional:!0});Ee.prototype.publish("titleFontFamily",null,"string","Title Font Family",null,{tags:["Advanced"],optional:!0});Ee.prototype.publish("titleFontBold",!0,"boolean","Enable Bold Title Font",null,{tags:["Advanced"],optional:!0});Ee.prototype.publish("titleBackgroundColor",null,"html-color","Background Color",null,{tags:["Intermediate"],optional:!0});Ee.prototype.publish("maximizedBackgroundColor","#FFFFFF","html-color","Background Color while maximized",null,{tags:["Intermediate"],optional:!0});Ee.prototype.publish("showChartSelect",!0,"boolean","Show/Hide the chartType dropdown in the toolbar",null,{tags:["Basic"]});Ee.prototype.publish("showCSV",!0,"boolean","Show/Hide CSV button",null,{tags:["Basic"]});Ee.prototype.publish("showCount",!1,"boolean","Show/Hide Data Count",null,{tags:["Basic"]});Ee.prototype.publish("showMaximize",!1,"boolean","Show/Hide Maximize button",null,{tags:["Basic"]});Ee.prototype.publish("toolbarShowLegend",!1,"boolean","Show/Hide Legend button",null,{tags:["Basic"]});Ee.prototype.publish("showInfoButton",!1,"boolean","Show/Hide Info button in toolbar",null,{tags:["Basic"]});Ee.prototype.publish("infoIcon","\uF05A","string","Help Icon",null,{tags:["Basic"]});Ee.prototype.publish("legendPosition","none","set","Position of the Legend widget",["none","top","right","bottom","left"],{tags:["Basic"]});Ee.prototype.publishProxy("legendFormat","_legend","rainbowFormat");Ee.prototype.publishProxy("legendBins","_legend","rainbowBins");Ee.prototype.publishProxy("domainAxisTitle","_domainTitle","text");Ee.prototype.publishProxy("valueAxisTitle","_valueTitle","text");Ee.prototype.publishProxy("chartType","_chart","chartType");Ee.prototype.publishProxy("chart","_chart","chart");var zp={};lh(zp,{clone:()=>By,create:()=>os,deserialize:()=>Dy,deserializeFromObject:()=>Jd,retrofit_114_serialization:()=>Pp});import{Platform as My,Utility as kp}from"@hpcc-js/common";import{Persist as Tp}from"@hpcc-js/other";function Pp(i,o){if(o=!o||o==="1.14.2-dev"?"1.18.0":o,!i.__version)return i;let l=kp.parseVersionString(i.__version),s=kp.parseVersionString(o);if(l.major===1&&l.minor===14){console.info("Upgrading old persist from "+i.__version+" to "+o);let h=JSON.stringify(i);h=h.split('"'+i.__version).join('"'+o);let p=JSON.parse(h);return p.__properties&&p.__properties.content&&p.__properties.content.forEach(function(f){JSON.stringify(f).split("graph_Graph").length>1&&s.minor>=16&&(f.__properties.widget.__id=f.__properties.widget.__properties.widget.__id,f.__properties.widget.__class="composite_MegaChart",f.__properties.widget.__properties.showCSV=!1,f.__properties.widget.__properties.chartType="GRAPH",f.__properties.widget.__properties.chart=f.__properties.widget.__properties.widget,delete f.__properties.widget.__properties.chart.__id,delete f.__properties.widget.__properties.widget),typeof f.__properties.fields>"u"&&(f.__properties.fields=[])}),p}else return i}c(Pp,"retrofit_114_serialization");function Jd(i,o){let l=[];return Tp.widgetPropertyWalker(i,null,(s,h)=>{if(s[h.id+"_reset"](),o.__properties[h.id]!==void 0)switch(h.type){case"widget":let p=h.id;l.push(os(o.__properties[h.id]).then(b=>(b._owner=s,s[p](b),b)));break;case"widgetArray":case"propertyArray":let f=h.id,m=o.__properties[h.id];if(m.length){let b=[];for(let _ of m)b.push(os(_).then(I=>(I._owner=s,I)));l.push(Promise.all(b).then(_=>{s[f](_)}))}break;default:s[h.id](o.__properties[h.id]);break}}),Promise.all(l).then(s=>{if(o.__data){for(let h in o.__data)if(o.__data.HasOwnProperty(h))switch(h){case"data":i.data(o.__data[h]);break;default:console.warn("Unexpected __data item: "+h),i[h](o.__data[h]);break}}return o.__state&&(i.deserializeState?i.deserializeState(o.__state):o.__state.data&&i.data&&i.data(o.__state.data)),i})}c(Jd,"deserializeFromObject");function Dy(i,o){typeof o=="string"&&(o=JSON.parse(o)),o.__id&&o.__id.indexOf(i._idSeed)!==0&&i._id!==o.__id&&console.warn("Deserialize: IDs do not match - "+i._id),Jd(i,o)}c(Dy,"deserialize");function os(i){return typeof i=="string"&&(i=JSON.parse(i)),i=Pp(i,My.version()),io(i.__class).then(o=>{let l=new o;return i.__id&&i.__id.indexOf(l._idSeed)!==0&&i.__id.indexOf("_pe")!==0&&(l._id=i.__id),Jd(l,i)}).catch(function(o){console.error("Persist.create: ***exception***"),console.error(o)})}c(os,"create");function By(i){os(Tp.serializeToObject(i,void 0,!0,!0))}c(By,"clone");export{Oy as BUILD_VERSION,_l as Dermatology,Ee as MegaChart,_e as MultiChart,Qd as MultiChartPanel,Ly as PKG_NAME,Ay as PKG_VERSION,zp as Persist,vp as Utility};
1115
- /*! Bundled license information:
1116
-
1117
- react/cjs/react.production.min.js:
1118
- (**
1119
- * @license React
1120
- * react.production.min.js
1121
- *
1122
- * Copyright (c) Facebook, Inc. and its affiliates.
1123
- *
1124
- * This source code is licensed under the MIT license found in the
1125
- * LICENSE file in the root directory of this source tree.
1126
- *)
1127
-
1128
- scheduler/cjs/scheduler.production.min.js:
1129
- (**
1130
- * @license React
1131
- * scheduler.production.min.js
1132
- *
1133
- * Copyright (c) Facebook, Inc. and its affiliates.
1134
- *
1135
- * This source code is licensed under the MIT license found in the
1136
- * LICENSE file in the root directory of this source tree.
1137
- *)
1138
-
1139
- react-dom/cjs/react-dom.production.min.js:
1140
- (**
1141
- * @license React
1142
- * react-dom.production.min.js
1143
- *
1144
- * Copyright (c) Facebook, Inc. and its affiliates.
1145
- *
1146
- * This source code is licensed under the MIT license found in the
1147
- * LICENSE file in the root directory of this source tree.
1148
- *)
1149
-
1150
- react/cjs/react-jsx-runtime.production.min.js:
1151
- (**
1152
- * @license React
1153
- * react-jsx-runtime.production.min.js
1154
- *
1155
- * Copyright (c) Facebook, Inc. and its affiliates.
1156
- *
1157
- * This source code is licensed under the MIT license found in the
1158
- * LICENSE file in the root directory of this source tree.
1159
- *)
1160
- */
1107
+ }`,document.head.appendChild(t)}})();var V=class extends Z{static{d(this,"MegaChart")}_chart=new E;_toolbar=new pt;_valueTitle=new Cn;_domainTitle=new Cn;_legend=new Sn;_csvButton;_infoButton;_maximizeButton;_legendButton;_chartTypeSelect;_prevLegendPosition;_prevShowToolbar;_1DChartTypes;_2DChartTypes;_NDChartTypes;_anyChartTypes;_allChartTypes;_contentClasses;_dataCount;constructor(){super(),this._tag="div";let e=this;this._chart.click=function(){e.click.apply(e,arguments)},this._chart.dblclick=function(){e.dblclick.apply(e,arguments)},this._chart.vertex_click=function(){e.vertex_click.apply(e,arguments)},this._chart.vertex_dblclick=function(){e.vertex_dblclick.apply(e,arguments)},this._chart.edge_click=function(){e.edge_click.apply(e,arguments)},this._chart.edge_dblclick=function(){e.edge_dblclick.apply(e,arguments)}}toolbarWidgets(e){return arguments.length?(this._toolbar.widgets(e),this):this._toolbar.widgets()}chartTypeDefaults(e){return arguments.length?(this._chart.chartTypeDefaults(e),this):this._chart.chartTypeDefaults()}chartTypeProperties(e){return arguments.length?(this._chart.chartTypeProperties(e),this):this._chart.chartTypeProperties()}fields(e){return arguments.length?(this._chart.fields(e),this):this._chart.fields()}columns(e,i){return arguments.length?(this._chart.columns(e,i),this):this._chart.columns()}data(e){return arguments.length?(this._chart.data(e),this):this._chart.data()}downloadCSV(){return ah.downloadString("CSV",this._chart.export("CSV")),this}enter(e,i){super.enter(e,i);let o=this;this.topShrinkWrap(!1).topPercentage(0).topSize(30),this._dataCount=new ch().classed({"composite_MegaChart-dataCount":!0}).id(this.id()+"_dataCount").html('<span class="MegaChart-dataCount-label">Count:</span>&nbsp;<span class="MegaChart-dataCount-value">'+(this.data()?this.data().length:"0")+"</span>").overflowX("visible").overflowY("visible"),this._csvButton=new $o().classed({"composite_MegaChart-CSV":!0}).id(this.id()+"_csv").value("CSV"),this._csvButton.click=function(r){o.downloadCSV()},this._infoButton=new $o().classed({"composite_MegaChart-Info":!0}).id(this.id()+"_info").value(this.infoIcon()),this._maximizeButton=new $o().classed({"composite_MegaChart-Maximize":!0}).id(this.id()+"_maximize").value("\uF2D0"),this._maximizeButton.click=function(r){let l=o.target(),n=l,s=Pi(l).classed("__hpccisMaximized"),a=o.locateAncestor("layout_Grid");a?n=a.element().node():n=document.body;let c=Pi(o.target());if(s){let g=l.parentElement.getBoundingClientRect(),u=parseInt(getComputedStyle(l,null).getPropertyValue("padding-top").replace("px","")),f=parseInt(getComputedStyle(l,null).getPropertyValue("padding-left").replace("px","")),p=parseInt(getComputedStyle(l,null).getPropertyValue("padding-right").replace("px","")),y=parseInt(getComputedStyle(l,null).getPropertyValue("padding-bottom").replace("px",""));o.contentDiv.style("opacity",0).transition(100),c.transition().style("top",g.top+"px").style("left",g.left+"px").style("width",g.width-f-p+"px").style("height",g.height-u-y+"px").each("end",function(){c.style("position",l.__old_position),c.style("z-index",l.__old_zindex),c.style("background-color",l.__old_backgroundColor),c.style("box-shadow",l.__old_boxshadow),o.resize({width:g.width-f-p,height:g.height-u-y}).render(function(){o.contentDiv.transition().style("opacity",1)}),r.value("\uF2D0").render()})}else{l.__old_position=l.style.position,l.__old_zindex=l.style.zIndex,l.__old_boxshadow=l.style.boxShadow,l.__old_backgroundColor=o.element().style("background-color");let g=Pi(n).datum(),u=g.target(),f=g?u.getBoundingClientRect():n.getBoundingClientRect(),p=parseInt(getComputedStyle(u,null).getPropertyValue("padding-top").replace("px","")),y=parseInt(getComputedStyle(u,null).getPropertyValue("padding-left").replace("px","")),C=parseInt(getComputedStyle(u,null).getPropertyValue("padding-right").replace("px","")),x=parseInt(getComputedStyle(u,null).getPropertyValue("padding-bottom").replace("px",""));o.contentDiv.style("opacity",0).transition(100),c.style("position","fixed").style("z-index",999999).style("box-shadow","0 8px 8px 0 rgba(0,0,0,.14),0 12px 4px -8px rgba(0,0,0,.2),0 4px 20px 0 rgba(0,0,0,.12)").style("background-color",l.__old_backgroundColor).transition().style("top",f.top+p+"px").style("left",f.left+y+"px").style("width",f.width-y-C+"px").style("height",f.height-p-x+"px").each("end",function(){c.style("background-color",o.maximizedBackgroundColor()),o.resize({width:f.width-y-C,height:f.height-p-x}).render(function(){o.contentDiv.transition().style("opacity",1)}),r.value("\uF2D1").render()})}Pi(l).classed("__hpccisMaximized",!s)},this._legendButton=new dh().classed({"composite_MegaChart-legend":!0}).id(this.id()+"_legend").type("checkbox").inlineLabel("Legend: "),this._legendButton.click=function(r){o.render()},this._chartTypeSelect=new hh().classed({"composite_MegaChart-chartType":!0}).id(this.id()+"_chartType").selectOptions(this._allChartTypes.map(function(r){return[r.id,r.display]})).value(this.chartType()),this._chartTypeSelect.change=function(r){o.chartType(r.value()).render()},this.setContent("center",this._chart),this._legend.targetWidget(this._chart).orientation(["top","bottom"].indexOf(this.legendPosition())!==-1?"horizontal":"vertical").fixedSize(!0),this._prevLegendPosition=this.legendPosition(),this.valueAxisTitle()&&this.setContent("left",this._valueTitle.rotation(-90)).leftShrinkWrap(!0),this.domainAxisTitle()&&this.setContent("bottom",this._domainTitle).bottomShrinkWrap(!0),this.legendPosition()!=="none"&&this.setContent(this.legendPosition(),this._legend)[this.legendPosition()+"ShrinkWrap"](!0)}update(e,i){function o(n,s,a){if(a&&n.indexOf(s)===-1)n.push(s);else if(!a){let c=n.indexOf(s);c>=0&&n.splice(c,1)}}d(o,"showHideButton"),this._chart&&typeof this._chart.hideRowOnLegendClick=="function"&&this._chart.hideRowOnLegendClick(this.hideRowOnLegendClick()),this._dataCount.html('<span class="MegaChart-dataCount-label">Count:</span>&nbsp;<span class="MegaChart-dataCount-value">'+(this.data()?this.data().length:"0")+"</span>"),this._chartTypeSelect.value(this.chartType());let r=this.toolbarWidgets();o(r,this._csvButton,this.showCSV()),o(r,this._maximizeButton,this.showMaximize()),o(r,this._legendButton,this.toolbarShowLegend()),o(r,this._chartTypeSelect,this.showChartSelect()),o(r,this._infoButton,this.showInfoButton()),o(r,this._dataCount,this.showCount()),this.toolbarWidgets(r),this._prevShowToolbar!==this.showToolbar()&&(this.setContent("top",this.showToolbar()?this._toolbar:null),this._prevShowToolbar=this.showToolbar()),this._toolbar.fontSize(this.titleFontSize()).fontColor(this.titleFontColor()).fontFamily(this.titleFontFamily()).fontBold(this.titleFontBold()).backgroundColor(this.titleBackgroundColor()),this._chart.data(this.data()),this._chart.chartType()!==this.chartType()&&this._chart.chartType(this.chartType());let l=this.legendPosition();this.toolbarShowLegend()&&!this._legendButton.checked()&&(l="none"),this._prevLegendPosition!==l&&(this._prevLegendPosition!=="none"&&this.clearContent(this._prevLegendPosition),this._prevLegendPosition=l,l!=="none"&&(this._legend=new Sn().targetWidget(this.getContent("center").fixedSize(!0)),this.setContent(l,this._legend),this._legend.orientation(["top","bottom"].indexOf(l)!==-1?"horizontal":"vertical"))),this._contentClasses=this.getContentClasses(),this.valueAxisTitle()&&this._contentClasses.left!=="common_Text"&&l!=="left"&&this.setContent("left",this._valueTitle.rotation(-90)),this.domainAxisTitle()&&this._contentClasses.bottom!=="common_Text"&&l!=="bottom"&&this.setContent("bottom",this._domainTitle).bottomShrinkWrap(!0),this._legend.dataFamily(this._chart.getChartDataFamily()),super.update(e,i)}exit(e,i){super.exit(e,i)}getContentClasses(){let e={},i=this.getContent("top"),o=this.getContent("right"),r=this.getContent("bottom"),l=this.getContent("left");return e.top=i!==null?i.classID():void 0,e.right=o!==null?o.classID():void 0,e.bottom=r!==null?r.classID():void 0,e.left=l!==null?l.classID():void 0,e}serializeState(){let e={title:this.title(),data:this.data()},i=this.chart();return i&&i.serializeState&&(e.chart=i.serializeState(),delete e.chart.data),e}deserializeState(e){if(e){this.title(e.title).data(e.data);let i=this.chart();i&&e.chart&&i.serializeState&&i.deserializeState(e.chart)}return this}click(e,i,o){}dblclick(e,i,o){}vertex_click(e,i,o,r){r&&r.vertex}vertex_dblclick(e,i,o,r){r&&r.vertex}edge_click(e,i,o,r){r&&r.edge}edge_dblclick(e,i,o,r){r&&r.edge}hideRowOnLegendClick;hideRowOnLegendClick_exists;showToolbar;showToolbar_exists;titleFontSize;titleFontSize_exists;titleFontColor;titleFontColor_exists;titleFontFamily;titleFontFamily_exists;titleFontBold;titleFontBold_exists;titleBackgroundColor;titleBackgroundColor_exists;maximizedBackgroundColor;maximizedBackgroundColor_exists;showChartSelect;showChartSelect_exists;showCSV;showCSV_exists;showCount;showCount_exists;showMaximize;showMaximize_exists;toolbarShowLegend;toolbarShowLegend_exists;showInfoButton;showInfoButton_exists;infoIcon;infoIcon_exists;legendPosition;legendPosition_exists;title;title_exists;domainAxisTitle;domainAxisTitle_exists;valueAxisTitle;valueAxisTitle_exists;chartType;chartType_exists;chart;chart_exists};V.prototype._class+=" composite_MegaChart";V.prototype._1DChartTypes=E.prototype._1DChartTypes;V.prototype._2DChartTypes=E.prototype._2DChartTypes;V.prototype._NDChartTypes=E.prototype._NDChartTypes;V.prototype._anyChartTypes=E.prototype._anyChartTypes;V.prototype._allChartTypes=E.prototype._allChartTypes;V.prototype.publishReset();V.prototype.publish("hideRowOnLegendClick",!1,"boolean","Enable/Disable hiding row on legend clicks",null,{tags:["Basic"]});V.prototype.publish("showToolbar",!0,"boolean","Enable/Disable Toolbar widget",null,{tags:["Basic"]});V.prototype.publishProxy("title","_toolbar","title");V.prototype.publish("ddlParamsFormat","","string","DDL Param Format '{fname}, {lname}'",null,{tags:["Advanced"],optional:!0});V.prototype.publish("titleFontSize",null,"number","Title Font Size (px)",null,{tags:["Advanced"],optional:!0});V.prototype.publish("titleFontColor",null,"html-color","Title Font Color",null,{tags:["Advanced"],optional:!0});V.prototype.publish("titleFontFamily",null,"string","Title Font Family",null,{tags:["Advanced"],optional:!0});V.prototype.publish("titleFontBold",!0,"boolean","Enable Bold Title Font",null,{tags:["Advanced"],optional:!0});V.prototype.publish("titleBackgroundColor",null,"html-color","Background Color",null,{tags:["Intermediate"],optional:!0});V.prototype.publish("maximizedBackgroundColor","#FFFFFF","html-color","Background Color while maximized",null,{tags:["Intermediate"],optional:!0});V.prototype.publish("showChartSelect",!0,"boolean","Show/Hide the chartType dropdown in the toolbar",null,{tags:["Basic"]});V.prototype.publish("showCSV",!0,"boolean","Show/Hide CSV button",null,{tags:["Basic"]});V.prototype.publish("showCount",!1,"boolean","Show/Hide Data Count",null,{tags:["Basic"]});V.prototype.publish("showMaximize",!1,"boolean","Show/Hide Maximize button",null,{tags:["Basic"]});V.prototype.publish("toolbarShowLegend",!1,"boolean","Show/Hide Legend button",null,{tags:["Basic"]});V.prototype.publish("showInfoButton",!1,"boolean","Show/Hide Info button in toolbar",null,{tags:["Basic"]});V.prototype.publish("infoIcon","\uF05A","string","Help Icon",null,{tags:["Basic"]});V.prototype.publish("legendPosition","none","set","Position of the Legend widget",["none","top","right","bottom","left"],{tags:["Basic"]});V.prototype.publishProxy("legendFormat","_legend","rainbowFormat");V.prototype.publishProxy("legendBins","_legend","rainbowBins");V.prototype.publishProxy("domainAxisTitle","_domainTitle","text");V.prototype.publishProxy("valueAxisTitle","_valueTitle","text");V.prototype.publishProxy("chartType","_chart","chartType");V.prototype.publishProxy("chart","_chart","chart");var Pn={};Tr(Pn,{clone:()=>gh,create:()=>zi,deserialize:()=>ph,deserializeFromObject:()=>jo,retrofit_114_serialization:()=>In});import{Platform as uh,Utility as Tn}from"@hpcc-js/common";import{Persist as kn}from"@hpcc-js/other";function In(t,e){if(e=!e||e==="1.14.2-dev"?"1.18.0":e,!t.__version)return t;let i=Tn.parseVersionString(t.__version),o=Tn.parseVersionString(e);if(i.major===1&&i.minor===14){console.info("Upgrading old persist from "+t.__version+" to "+e);let r=JSON.stringify(t);r=r.split('"'+t.__version).join('"'+e);let l=JSON.parse(r);return l.__properties&&l.__properties.content&&l.__properties.content.forEach(function(n){JSON.stringify(n).split("graph_Graph").length>1&&o.minor>=16&&(n.__properties.widget.__id=n.__properties.widget.__properties.widget.__id,n.__properties.widget.__class="composite_MegaChart",n.__properties.widget.__properties.showCSV=!1,n.__properties.widget.__properties.chartType="GRAPH",n.__properties.widget.__properties.chart=n.__properties.widget.__properties.widget,delete n.__properties.widget.__properties.chart.__id,delete n.__properties.widget.__properties.widget),typeof n.__properties.fields>"u"&&(n.__properties.fields=[])}),l}else return t}d(In,"retrofit_114_serialization");function jo(t,e){let i=[];return kn.widgetPropertyWalker(t,null,(o,r)=>{if(o[r.id+"_reset"](),e.__properties[r.id]!==void 0)switch(r.type){case"widget":let l=r.id;i.push(zi(e.__properties[r.id]).then(a=>(a._owner=o,o[l](a),a)));break;case"widgetArray":case"propertyArray":let n=r.id,s=e.__properties[r.id];if(s.length){let a=[];for(let c of s)a.push(zi(c).then(g=>(g._owner=o,g)));i.push(Promise.all(a).then(c=>{o[n](c)}))}break;default:o[r.id](e.__properties[r.id]);break}}),Promise.all(i).then(o=>{if(e.__data){for(let r in e.__data)if(e.__data.HasOwnProperty(r))switch(r){case"data":t.data(e.__data[r]);break;default:console.warn("Unexpected __data item: "+r),t[r](e.__data[r]);break}}return e.__state&&(t.deserializeState?t.deserializeState(e.__state):e.__state.data&&t.data&&t.data(e.__state.data)),t})}d(jo,"deserializeFromObject");function ph(t,e){typeof e=="string"&&(e=JSON.parse(e)),e.__id&&e.__id.indexOf(t._idSeed)!==0&&t._id!==e.__id&&console.warn("Deserialize: IDs do not match - "+t._id),jo(t,e)}d(ph,"deserialize");function zi(t){return typeof t=="string"&&(t=JSON.parse(t)),t=In(t,uh.version()),Ce(t.__class).then(e=>{let i=new e;return t.__id&&t.__id.indexOf(i._idSeed)!==0&&t.__id.indexOf("_pe")!==0&&(i._id=t.__id),jo(i,t)}).catch(function(e){console.error("Persist.create: ***exception***"),console.error(e)})}d(zi,"create");function gh(t){zi(kn.serializeToObject(t,void 0,!0,!0))}d(gh,"clone");export{mh as BUILD_VERSION,Je as Dermatology,V as MegaChart,E as MultiChart,Vo as MultiChartPanel,fh as PKG_NAME,yh as PKG_VERSION,Pn as Persist,bn as Utility};
1161
1108
  //# sourceMappingURL=index.js.map