@synnaxlabs/pluto 0.25.0 → 0.26.0
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/README.md +4 -3
- package/dist/{Animated-BpuQZROI.js → Animated-DNVDjbp5.js} +2 -2
- package/dist/{Animated-DqAjXT8r.cjs → Animated-zwHonFIj.cjs} +1 -1
- package/dist/{Keyboard-GDYsV4-x.cjs → Keyboard-CK96wQ5G.cjs} +1 -1
- package/dist/{Keyboard-BTyEk3pg.js → Keyboard-DIqjeZSO.js} +2 -2
- package/dist/LinePlot-Cm6T-Agy.cjs +66 -0
- package/dist/{LinePlot-CQAK-dkX.js → LinePlot-Cvi3y24D.js} +2138 -2089
- package/dist/{Link-CpMcH9c1.cjs → Link-CRvZcIvR.cjs} +1 -1
- package/dist/{Link-BrhOiMiE.js → Link-CfU1takx.js} +1 -1
- package/dist/{List-BS57aL1n.js → List-B6hlZNwe.js} +2 -2
- package/dist/{List-Dux7qweq.cjs → List-CBMm9BLf.cjs} +1 -1
- package/dist/{Pack-_i2cfPYc.cjs → Pack-BM_LmeO7.cjs} +1 -1
- package/dist/{Pack-CCCsIeot.js → Pack-E_3LSkGG.js} +1 -1
- package/dist/{Toggle-DlNzb7nt.cjs → Toggle-YiHP9pVf.cjs} +5 -5
- package/dist/{Toggle-CpLFBHo7.js → Toggle-_SGawcap.js} +4 -4
- package/dist/{Video-THwAEuOy.cjs → Video-A2NddcPS.cjs} +1 -1
- package/dist/{Video-Bi9kFIHV.js → Video-Ct4BfJzt.js} +1 -1
- package/dist/aggregator-D9ExX_tt.cjs +51 -0
- package/dist/{aggregator-CoD5WrqU.js → aggregator-DaNTqAB0.js} +2658 -2597
- package/dist/align.cjs +1 -1
- package/dist/align.js +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/color.cjs +1 -1
- package/dist/color.js +1 -1
- package/dist/{css-Ce6IGevn.js → css-DEMSADUS.js} +140 -140
- package/dist/css-DY1Oedjj.cjs +1 -0
- package/dist/css.cjs +1 -1
- package/dist/css.js +2 -2
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/ether.cjs +1 -1
- package/dist/ether.js +42 -41
- package/dist/{external-DRvtVPhp.cjs → external-9st6X3mL.cjs} +1 -1
- package/dist/{external-DqnUE4mV.cjs → external-BAw0sDOf.cjs} +1 -1
- package/dist/{external-DU5Xqqld.cjs → external-BgW4t-2y.cjs} +1 -1
- package/dist/{external-C6v1z0ty.js → external-BxUqbUsk.js} +5 -5
- package/dist/{external-e0OPlFyY.js → external-C4w_40JS.js} +4 -4
- package/dist/{external-DQ4EhNBA.js → external-C86d--c3.js} +11 -11
- package/dist/{external-B7RXnD0a.cjs → external-CE4wgFJ7.cjs} +1 -1
- package/dist/{external-CXrgzQf5.js → external-CJOE_TDI.js} +2 -2
- package/dist/{external-BxBMVx6g.js → external-CS2UIUPR.js} +5 -5
- package/dist/{external-CUJXIrxM.cjs → external-ChI4-3Am.cjs} +1 -1
- package/dist/{external-NeMo53nv.js → external-ChYLNmOM.js} +4 -4
- package/dist/{external-CMk1k986.cjs → external-Cja9j84T.cjs} +1 -1
- package/dist/{external-Cv5GChi6.js → external-CsAw5Bqm.js} +7 -7
- package/dist/{external-DyTzmzSc.js → external-D23hMpey.js} +4 -4
- package/dist/{external-B815mDB0.cjs → external-DG3L9UDo.cjs} +1 -1
- package/dist/{external-DMYExlt2.cjs → external-DOZ21f-5.cjs} +1 -1
- package/dist/{external-CLwP0eXe.cjs → external-DSc2y4PB.cjs} +1 -1
- package/dist/{external-Dm3eiIEN.cjs → external-DZohHxSv.cjs} +1 -1
- package/dist/{external-C8CIAjMj.js → external-D_dAdIZX.js} +2 -2
- package/dist/{external-DShO9063.js → external-DfwQACwH.js} +3 -3
- package/dist/{external-NHkWeW29.js → external-DlkO8mh4.js} +1 -1
- package/dist/{external-D_WKlwCh.js → external-TgztmPvP.js} +7 -7
- package/dist/external-r0ozQhkY.cjs +1 -0
- package/dist/{external-DjSiwSCE.cjs → external-rzy59VM1.cjs} +1 -1
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +4122 -4040
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/src/hardware/device/Select.d.ts.map +1 -1
- package/dist/src/pluto/aether/index.d.ts +1 -1
- package/dist/src/pluto/aether/index.d.ts.map +1 -1
- package/dist/src/pluto/aether/{ pluto.d.ts → pluto.d.ts} +1 -1
- package/dist/src/pluto/aether/pluto.d.ts.map +1 -0
- package/dist/src/vis/diagram/edge/Edge.d.ts.map +1 -1
- package/dist/src/vis/schematic/Forms.d.ts +4 -0
- package/dist/src/vis/schematic/Forms.d.ts.map +1 -1
- package/dist/src/vis/schematic/Symbols.d.ts +14 -0
- package/dist/src/vis/schematic/Symbols.d.ts.map +1 -1
- package/dist/src/vis/schematic/primitives/Primitives.d.ts +8 -0
- package/dist/src/vis/schematic/primitives/Primitives.d.ts.map +1 -1
- package/dist/src/vis/schematic/registry.d.ts +1 -1
- package/dist/src/vis/schematic/registry.d.ts.map +1 -1
- package/dist/src/vis/setpoint/aether/index.d.ts +2 -0
- package/dist/src/vis/setpoint/aether/index.d.ts.map +1 -0
- package/dist/src/vis/setpoint/aether/setpoint.d.ts +200 -0
- package/dist/src/vis/setpoint/aether/setpoint.d.ts.map +1 -0
- package/dist/src/vis/setpoint/index.d.ts +2 -0
- package/dist/src/vis/setpoint/index.d.ts.map +1 -0
- package/dist/src/vis/setpoint/use.d.ts +11 -0
- package/dist/src/vis/setpoint/use.d.ts.map +1 -0
- package/dist/style.css +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/text.cjs +1 -1
- package/dist/text.js +2 -2
- package/dist/theming.cjs +1 -1
- package/dist/theming.js +2 -2
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/triggers.cjs +1 -1
- package/dist/triggers.js +1 -1
- package/dist/{units-DlP7zkaE.js → units-BREWRknL.js} +1 -1
- package/dist/{units-CoE6Mywf.cjs → units-DNx3byGw.cjs} +1 -1
- package/dist/video.cjs +1 -1
- package/dist/video.js +1 -1
- package/package.json +5 -5
- package/dist/LinePlot-DnLLplw_.cjs +0 -66
- package/dist/aggregator-D47lwtdn.cjs +0 -51
- package/dist/css-CC1MhhH7.cjs +0 -1
- package/dist/external-Do75w1Zt.cjs +0 -1
- package/dist/src/pluto/aether/ pluto.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const Oe=require("./jsx-runtime-Cek9Ww4S.cjs"),_=require("react"),ye=require("./aggregator-
|
|
1
|
+
"use strict";const Oe=require("./jsx-runtime-Cek9Ww4S.cjs"),_=require("react"),ye=require("./aggregator-D9ExX_tt.cjs"),G=require("./css-DY1Oedjj.cjs"),to=require("react-dom"),Zt=require("./Pack-BM_LmeO7.cjs"),Ft=require("zod"),br=require("./units-DNx3byGw.cjs");function s3(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const eo=s3(_);var _l={exports:{}},ki={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
Check the render method of \``+ee+"`."}return""}}function Gu(ee){return""}var Bo={};function Wu(ee){{var Te=Ca();if(!Te){var Be=typeof ee=="string"?ee:ee.displayName||ee.name;Be&&(Te=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+Be+">.")}return Te}}function Ro(ee,Te){{if(!ee._store||ee._store.validated||ee.key!=null)return;ee._store.validated=!0;var Be=Wu(Te);if(Bo[Be])return;Bo[Be]=!0;var Ve="";ee&&ee._owner&&ee._owner!==pe.current&&(Ve=" It was passed a child from "+B(ee._owner.type)+"."),qe(ee),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Be,Ve),qe(null)}}function Po(ee,Te){{if(typeof ee!="object")return;if(me(ee))for(var Be=0;Be<ee.length;Be++){var Ve=ee[Be];Xr(Ve)&&Ro(Ve,Te)}else if(Xr(ee))ee._store&&(ee._store.validated=!0);else if(ee){var gr=g(ee);if(typeof gr=="function"&&gr!==ee.entries)for(var Sr=gr.call(ee),pr;!(pr=Sr.next()).done;)Xr(pr.value)&&Ro(pr.value,Te)}}}function Zu(ee){{var Te=ee.type;if(Te==null||typeof Te=="string")return;var Be;if(typeof Te=="function")Be=Te.propTypes;else if(typeof Te=="object"&&(Te.$$typeof===u||Te.$$typeof===f))Be=Te.propTypes;else return;if(Be){var Ve=B(Te);oe(Be,ee.props,"prop",Ve,ee)}else if(Te.PropTypes!==void 0&&!Ge){Ge=!0;var gr=B(Te);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",gr||"Unknown")}typeof Te.getDefaultProps=="function"&&!Te.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Yu(ee){{for(var Te=Object.keys(ee.props),Be=0;Be<Te.length;Be++){var Ve=Te[Be];if(Ve!=="children"&&Ve!=="key"){qe(ee),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Ve),qe(null);break}}ee.ref!==null&&(qe(ee),E("Invalid attribute `ref` supplied to `React.Fragment`."),qe(null))}}function zo(ee,Te,Be,Ve,gr,Sr){{var pr=C(ee);if(!pr){var lr="";(ee===void 0||typeof ee=="object"&&ee!==null&&Object.keys(ee).length===0)&&(lr+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Kr=Gu();Kr?lr+=Kr:lr+=Ca();var Pr;ee===null?Pr="null":me(ee)?Pr="array":ee!==void 0&&ee.$$typeof===r?(Pr="<"+(B(ee.type)||"Unknown")+" />",lr=" Did you accidentally export a JSX literal instead of a component?"):Pr=typeof ee,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Pr,lr)}var Ir=X(ee,Te,Be,gr,Sr);if(Ir==null)return Ir;if(pr){var gt=Te.children;if(gt!==void 0)if(Ve)if(me(gt)){for(var _n=0;_n<gt.length;_n++)Po(gt[_n],ee);Object.freeze&&Object.freeze(gt)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Po(gt,ee)}return ee===n?Yu(Ir):Zu(Ir),Ir}}function Xu(ee,Te,Be){return zo(ee,Te,Be,!0)}function Ku(ee,Te,Be){return zo(ee,Te,Be,!1)}var Ju=Ku,Qu=Xu;Lo.Fragment=n,Lo.jsx=Ju,Lo.jsxs=Qu}()),Lo}process.env.NODE_ENV==="production"?_l.exports=u3():_l.exports=l3();var Nt=_l.exports;function sg(e){var r,t,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(r=0;r<a;r++)e[r]&&(t=sg(e[r]))&&(n&&(n+=" "),n+=t)}else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function wc(){for(var e,r,t=0,n="",a=arguments.length;t<a;t++)(e=arguments[t])&&(r=sg(e))&&(n&&(n+=" "),n+=r);return n}var ug={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Fp=_.createContext&&_.createContext(ug),c3=["attr","size","title"];function f3(e,r){if(e==null)return{};var t=p3(e,r),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(r.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}function p3(e,r){if(e==null)return{};var t={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(r.indexOf(n)>=0)continue;t[n]=e[n]}return t}function ms(){return ms=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},ms.apply(this,arguments)}function Bp(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,n)}return t}function hs(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Bp(Object(t),!0).forEach(function(n){d3(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Bp(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function d3(e,r,t){return r=v3(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function v3(e){var r=m3(e,"string");return typeof r=="symbol"?r:r+""}function m3(e,r){if(typeof e!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function lg(e){return e&&e.map((r,t)=>_.createElement(r.tag,hs({key:t},r.attr),lg(r.child)))}function Ce(e){return r=>_.createElement(h3,ms({attr:hs({},e.attr)},r),lg(e.child))}function h3(e){var r=t=>{var{attr:n,size:a,title:i}=e,o=f3(e,c3),s=a||t.size||"1em",u;return t.className&&(u=t.className),e.className&&(u=(u?u+" ":"")+e.className),_.createElement("svg",ms({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,n,o,{className:u,style:hs(hs({color:e.color||t.color},t.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),i&&_.createElement("title",null,i),e.children)};return Fp!==void 0?_.createElement(Fp.Consumer,null,t=>r(t)):r(ug)}function g3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-200 0H360v-72h304v72z"},child:[]}]})(e)}function Rp(e){return Ce({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 0 0-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32z"},child:[]}]})(e)}function y3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0 1 38.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"},child:[]}]})(e)}function b3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z"},child:[]}]})(e)}function x3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM349.3 793.7H230.6V411.9h118.7v381.8zm-59.3-434a68.8 68.8 0 1 1 68.8-68.8c-.1 38-30.9 68.8-68.8 68.8zm503.7 434H675.1V608c0-44.3-.8-101.2-61.7-101.2-61.7 0-71.2 48.2-71.2 98v188.9H423.7V411.9h113.8v52.2h1.6c15.8-30 54.5-61.7 112.3-61.7 120.2 0 142.3 79.1 142.3 181.9v209.4z"},child:[]}]})(e)}function w3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z"},child:[]}]})(e)}function E3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"},child:[]}]})(e)}function S3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"},child:[]}]})(e)}function A3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 1024 1024",fill:"currentColor",fillRule:"evenodd"},child:[{tag:"path",attr:{d:"M799.855 166.312c.023.007.043.018.084.059l57.69 57.69c.041.041.052.06.059.084a.118.118 0 0 1 0 .069c-.007.023-.018.042-.059.083L569.926 512l287.703 287.703c.041.04.052.06.059.083a.118.118 0 0 1 0 .07c-.007.022-.018.042-.059.083l-57.69 57.69c-.041.041-.06.052-.084.059a.118.118 0 0 1-.069 0c-.023-.007-.042-.018-.083-.059L512 569.926 224.297 857.629c-.04.041-.06.052-.083.059a.118.118 0 0 1-.07 0c-.022-.007-.042-.018-.083-.059l-57.69-57.69c-.041-.041-.052-.06-.059-.084a.118.118 0 0 1 0-.069c.007-.023.018-.042.059-.083L454.073 512 166.371 224.297c-.041-.04-.052-.06-.059-.083a.118.118 0 0 1 0-.07c.007-.022.018-.042.059-.083l57.69-57.69c.041-.041.06-.052.084-.059a.118.118 0 0 1 .069 0c.023.007.042.018.083.059L512 454.073l287.703-287.702c.04-.041.06-.052.083-.059a.118.118 0 0 1 .07 0Z"},child:[]}]})(e)}function D3(e){return Ce({tag:"svg",attr:{t:"1569683683230",viewBox:"0 0 1024 1024",version:"1.1"},child:[{tag:"defs",attr:{},child:[]},{tag:"path",attr:{d:"M342 88H120c-17.7 0-32 14.3-32 32v224c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V168h174c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zM920 664h-48c-8.8 0-16 7.2-16 16v176H682c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h222c17.7 0 32-14.3 32-32V680c0-8.8-7.2-16-16-16zM342 856H168V680c0-8.8-7.2-16-16-16h-48c-8.8 0-16 7.2-16 16v224c0 17.7 14.3 32 32 32h222c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zM904 88H682c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h174v176c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V120c0-17.7-14.3-32-32-32z"},child:[]}]})(e)}function C3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"},child:[]}]})(e)}function N3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"},child:[]}]})(e)}function M3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 0 1 755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 0 1 512.1 856a342.24 342.24 0 0 1-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 0 0-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 0 0-8-8.2z"},child:[]}]})(e)}function T3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20.005 5.995h-1v2h1v8h-1v2h1c1.103 0 2-.897 2-2v-8c0-1.102-.898-2-2-2zm-14 4H15v4H6.005z"},child:[]},{tag:"path",attr:{d:"M17.005 17.995V4H20V2h-8v2h3.005v1.995h-11c-1.103 0-2 .897-2 2v8c0 1.103.897 2 2 2h11V20H12v2h8v-2h-2.995v-2.005zm-13-2v-8h11v8h-11z"},child:[]}]})(e)}function O3(e){return Ce({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M2 6a6 6 0 1 1 10.174 4.31c-.203.196-.359.4-.453.619l-.762 1.769A.5.5 0 0 1 10.5 13h-5a.5.5 0 0 1-.46-.302l-.761-1.77a2 2 0 0 0-.453-.618A5.98 5.98 0 0 1 2 6m3 8.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1l-.224.447a1 1 0 0 1-.894.553H6.618a1 1 0 0 1-.894-.553L5.5 15a.5.5 0 0 1-.5-.5"},child:[]}]})(e)}function _3(e){return Ce({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M7.27 2.047a1 1 0 0 1 1.46 0l6.345 6.77c.6.638.146 1.683-.73 1.683H11.5v3a1 1 0 0 1-1 1h-5a1 1 0 0 1-1-1v-3H1.654C.78 10.5.326 9.455.924 8.816z"},child:[]}]})(e)}function $3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"},child:[]}]})(e)}function F3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M349.9 236.3h-66.1v-59.4h66.1v59.4zm0-204.3h-66.1v60.7h66.1V32zm78.2 144.8H362v59.4h66.1v-59.4zm-156.3-72.1h-66.1v60.1h66.1v-60.1zm78.1 0h-66.1v60.1h66.1v-60.1zm276.8 100c-14.4-9.7-47.6-13.2-73.1-8.4-3.3-24-16.7-44.9-41.1-63.7l-14-9.3-9.3 14c-18.4 27.8-23.4 73.6-3.7 103.8-8.7 4.7-25.8 11.1-48.4 10.7H2.4c-8.7 50.8 5.8 116.8 44 162.1 37.1 43.9 92.7 66.2 165.4 66.2 157.4 0 273.9-72.5 328.4-204.2 21.4.4 67.6.1 91.3-45.2 1.5-2.5 6.6-13.2 8.5-17.1l-13.3-8.9zm-511.1-27.9h-66v59.4h66.1v-59.4zm78.1 0h-66.1v59.4h66.1v-59.4zm78.1 0h-66.1v59.4h66.1v-59.4zm-78.1-72.1h-66.1v60.1h66.1v-60.1z"},child:[]}]})(e)}function B3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M220.8 123.3c1 .5 1.8 1.7 3 1.7 1.1 0 2.8-.4 2.9-1.5.2-1.4-1.9-2.3-3.2-2.9-1.7-.7-3.9-1-5.5-.1-.4.2-.8.7-.6 1.1.3 1.3 2.3 1.1 3.4 1.7zm-21.9 1.7c1.2 0 2-1.2 3-1.7 1.1-.6 3.1-.4 3.5-1.6.2-.4-.2-.9-.6-1.1-1.6-.9-3.8-.6-5.5.1-1.3.6-3.4 1.5-3.2 2.9.1 1 1.8 1.5 2.8 1.4zM420 403.8c-3.6-4-5.3-11.6-7.2-19.7-1.8-8.1-3.9-16.8-10.5-22.4-1.3-1.1-2.6-2.1-4-2.9-1.3-.8-2.7-1.5-4.1-2 9.2-27.3 5.6-54.5-3.7-79.1-11.4-30.1-31.3-56.4-46.5-74.4-17.1-21.5-33.7-41.9-33.4-72C311.1 85.4 315.7.1 234.8 0 132.4-.2 158 103.4 156.9 135.2c-1.7 23.4-6.4 41.8-22.5 64.7-18.9 22.5-45.5 58.8-58.1 96.7-6 17.9-8.8 36.1-6.2 53.3-6.5 5.8-11.4 14.7-16.6 20.2-4.2 4.3-10.3 5.9-17 8.3s-14 6-18.5 14.5c-2.1 3.9-2.8 8.1-2.8 12.4 0 3.9.6 7.9 1.2 11.8 1.2 8.1 2.5 15.7.8 20.8-5.2 14.4-5.9 24.4-2.2 31.7 3.8 7.3 11.4 10.5 20.1 12.3 17.3 3.6 40.8 2.7 59.3 12.5 19.8 10.4 39.9 14.1 55.9 10.4 11.6-2.6 21.1-9.6 25.9-20.2 12.5-.1 26.3-5.4 48.3-6.6 14.9-1.2 33.6 5.3 55.1 4.1.6 2.3 1.4 4.6 2.5 6.7v.1c8.3 16.7 23.8 24.3 40.3 23 16.6-1.3 34.1-11 48.3-27.9 13.6-16.4 36-23.2 50.9-32.2 7.4-4.5 13.4-10.1 13.9-18.3.4-8.2-4.4-17.3-15.5-29.7zM223.7 87.3c9.8-22.2 34.2-21.8 44-.4 6.5 14.2 3.6 30.9-4.3 40.4-1.6-.8-5.9-2.6-12.6-4.9 1.1-1.2 3.1-2.7 3.9-4.6 4.8-11.8-.2-27-9.1-27.3-7.3-.5-13.9 10.8-11.8 23-4.1-2-9.4-3.5-13-4.4-1-6.9-.3-14.6 2.9-21.8zM183 75.8c10.1 0 20.8 14.2 19.1 33.5-3.5 1-7.1 2.5-10.2 4.6 1.2-8.9-3.3-20.1-9.6-19.6-8.4.7-9.8 21.2-1.8 28.1 1 .8 1.9-.2-5.9 5.5-15.6-14.6-10.5-52.1 8.4-52.1zm-13.6 60.7c6.2-4.6 13.6-10 14.1-10.5 4.7-4.4 13.5-14.2 27.9-14.2 7.1 0 15.6 2.3 25.9 8.9 6.3 4.1 11.3 4.4 22.6 9.3 8.4 3.5 13.7 9.7 10.5 18.2-2.6 7.1-11 14.4-22.7 18.1-11.1 3.6-19.8 16-38.2 14.9-3.9-.2-7-1-9.6-2.1-8-3.5-12.2-10.4-20-15-8.6-4.8-13.2-10.4-14.7-15.3-1.4-4.9 0-9 4.2-12.3zm3.3 334c-2.7 35.1-43.9 34.4-75.3 18-29.9-15.8-68.6-6.5-76.5-21.9-2.4-4.7-2.4-12.7 2.6-26.4v-.2c2.4-7.6.6-16-.6-23.9-1.2-7.8-1.8-15 .9-20 3.5-6.7 8.5-9.1 14.8-11.3 10.3-3.7 11.8-3.4 19.6-9.9 5.5-5.7 9.5-12.9 14.3-18 5.1-5.5 10-8.1 17.7-6.9 8.1 1.2 15.1 6.8 21.9 16l19.6 35.6c9.5 19.9 43.1 48.4 41 68.9zm-1.4-25.9c-4.1-6.6-9.6-13.6-14.4-19.6 7.1 0 14.2-2.2 16.7-8.9 2.3-6.2 0-14.9-7.4-24.9-13.5-18.2-38.3-32.5-38.3-32.5-13.5-8.4-21.1-18.7-24.6-29.9s-3-23.3-.3-35.2c5.2-22.9 18.6-45.2 27.2-59.2 2.3-1.7.8 3.2-8.7 20.8-8.5 16.1-24.4 53.3-2.6 82.4.6-20.7 5.5-41.8 13.8-61.5 12-27.4 37.3-74.9 39.3-112.7 1.1.8 4.6 3.2 6.2 4.1 4.6 2.7 8.1 6.7 12.6 10.3 12.4 10 28.5 9.2 42.4 1.2 6.2-3.5 11.2-7.5 15.9-9 9.9-3.1 17.8-8.6 22.3-15 7.7 30.4 25.7 74.3 37.2 95.7 6.1 11.4 18.3 35.5 23.6 64.6 3.3-.1 7 .4 10.9 1.4 13.8-35.7-11.7-74.2-23.3-84.9-4.7-4.6-4.9-6.6-2.6-6.5 12.6 11.2 29.2 33.7 35.2 59 2.8 11.6 3.3 23.7.4 35.7 16.4 6.8 35.9 17.9 30.7 34.8-2.2-.1-3.2 0-4.2 0 3.2-10.1-3.9-17.6-22.8-26.1-19.6-8.6-36-8.6-38.3 12.5-12.1 4.2-18.3 14.7-21.4 27.3-2.8 11.2-3.6 24.7-4.4 39.9-.5 7.7-3.6 18-6.8 29-32.1 22.9-76.7 32.9-114.3 7.2zm257.4-11.5c-.9 16.8-41.2 19.9-63.2 46.5-13.2 15.7-29.4 24.4-43.6 25.5s-26.5-4.8-33.7-19.3c-4.7-11.1-2.4-23.1 1.1-36.3 3.7-14.2 9.2-28.8 9.9-40.6.8-15.2 1.7-28.5 4.2-38.7 2.6-10.3 6.6-17.2 13.7-21.1.3-.2.7-.3 1-.5.8 13.2 7.3 26.6 18.8 29.5 12.6 3.3 30.7-7.5 38.4-16.3 9-.3 15.7-.9 22.6 5.1 9.9 8.5 7.1 30.3 17.1 41.6 10.6 11.6 14 19.5 13.7 24.6zM173.3 148.7c2 1.9 4.7 4.5 8 7.1 6.6 5.2 15.8 10.6 27.3 10.6 11.6 0 22.5-5.9 31.8-10.8 4.9-2.6 10.9-7 14.8-10.4s5.9-6.3 3.1-6.6-2.6 2.6-6 5.1c-4.4 3.2-9.7 7.4-13.9 9.8-7.4 4.2-19.5 10.2-29.9 10.2s-18.7-4.8-24.9-9.7c-3.1-2.5-5.7-5-7.7-6.9-1.5-1.4-1.9-4.6-4.3-4.9-1.4-.1-1.8 3.7 1.7 6.5z"},child:[]}]})(e)}function cg(e){return Ce({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M0 93.7l183.6-25.3v177.4H0V93.7zm0 324.6l183.6 25.3V268.4H0v149.9zm203.8 28L448 480V268.4H203.8v177.9zm0-380.6v180.1H448V32L203.8 65.7z"},child:[]}]})(e)}function R3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M368 32h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zM208 88h-84.75C113.75 64.56 90.84 48 64 48 28.66 48 0 76.65 0 112s28.66 64 64 64c26.84 0 49.75-16.56 59.25-40h79.73c-55.37 32.52-95.86 87.32-109.54 152h49.4c11.3-41.61 36.77-77.21 71.04-101.56-3.7-8.08-5.88-16.99-5.88-26.44V88zm-48 232H64c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32zM576 48c-26.84 0-49.75 16.56-59.25 40H432v72c0 9.45-2.19 18.36-5.88 26.44 34.27 24.35 59.74 59.95 71.04 101.56h49.4c-13.68-64.68-54.17-119.48-109.54-152h79.73c9.5 23.44 32.41 40 59.25 40 35.34 0 64-28.65 64-64s-28.66-64-64-64zm0 272h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function Pp(e){return Ce({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M16 128h416c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H16C7.16 32 0 39.16 0 48v64c0 8.84 7.16 16 16 16zm480 80H80c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zm-64 176H16c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16z"},child:[]}]})(e)}function P3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M32 96v64h448V96H32zm0 128v64h448v-64H32zm0 128v64h448v-64H32z"},child:[]}]})(e)}function z3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",strokeWidth:"2",d:"M22,12 C22,12 19.0000009,15.0000004 13.0000004,21.0000004 C6.99999996,27.0000004 -2.00000007,18.0000004 3.99999994,12.0000004 C9.99999996,6.00000037 9,7.00000011 13,3.00000008 C17,-0.999999955 23,4.99999994 19,9.00000005 C15,13.0000002 12.0000004,16.0000007 9.99999995,18.0000004 C7.99999952,20 5,17 6.99999995,15.0000004 C8.99999991,13.0000007 16,6 16,6"},child:[]}]})(e)}function I3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",strokeWidth:"2",d:"M15,5 L17,5 L17,3 L15,3 L15,5 Z M7,5 L9,5 L9,3 L7,3 L7,5 Z M15,13 L17,13 L17,11 L15,11 L15,13 Z M7,13 L9,13 L9,11 L7,11 L7,13 Z M15,21 L17,21 L17,19 L15,19 L15,21 Z M7,21 L9,21 L9,19 L7,19 L7,21 Z"},child:[]}]})(e)}function L3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",strokeWidth:"2",d:"M8.5,5.5 L12,2 L15.5,5.5 M22,12 L2,12 M5.5,8.5 L2,12 L5.5,15.5 M18.5,15.5 L22,12 L18.5,8.5 M12,22 L12,2 M8.5,18.5 L12,22 L15.5,18.5"},child:[]}]})(e)}function q3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M3 17a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm3.293-7.707a1 1 0 011.414 0L9 10.586V3a1 1 0 112 0v7.586l1.293-1.293a1 1 0 111.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z",clipRule:"evenodd"},child:[]}]})(e)}function k3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M11.3 1.046A1 1 0 0112 2v5h4a1 1 0 01.82 1.573l-7 10A1 1 0 018 18v-5H4a1 1 0 01-.82-1.573l7-10a1 1 0 011.12-.38z",clipRule:"evenodd"},child:[]}]})(e)}function U3(e){return Ce({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4v16m8-8H4"},child:[]}]})(e)}function H3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M11.644 1.59a.75.75 0 0 1 .712 0l9.75 5.25a.75.75 0 0 1 0 1.32l-9.75 5.25a.75.75 0 0 1-.712 0l-9.75-5.25a.75.75 0 0 1 0-1.32l9.75-5.25Z"},child:[]},{tag:"path",attr:{d:"m3.265 10.602 7.668 4.129a2.25 2.25 0 0 0 2.134 0l7.668-4.13 1.37.739a.75.75 0 0 1 0 1.32l-9.75 5.25a.75.75 0 0 1-.71 0l-9.75-5.25a.75.75 0 0 1 0-1.32l1.37-.738Z"},child:[]},{tag:"path",attr:{d:"m10.933 19.231-7.668-4.13-1.37.739a.75.75 0 0 0 0 1.32l9.75 5.25c.221.12.489.12.71 0l9.75-5.25a.75.75 0 0 0 0-1.32l-1.37-.738-7.668 4.13a2.25 2.25 0 0 1-2.134-.001Z"},child:[]}]})(e)}function j3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 388c-72.597 0-132-59.405-132-132 0-72.601 59.403-132 132-132 36.3 0 69.299 15.4 92.406 39.601L278 234h154V80l-51.698 51.702C348.406 99.798 304.406 80 256 80c-96.797 0-176 79.203-176 176s78.094 176 176 176c81.045 0 148.287-54.134 169.401-128H378.85c-18.745 49.561-67.138 84-122.85 84z"},child:[]}]})(e)}function V3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 48c-67.61.29-117.87 9.6-154.24 25.69-27.14 12-37.76 21.08-37.76 51.84V448c41.57-37.5 78.46-48 224-48V48zM48 48c67.61.29 117.87 9.6 154.24 25.69 27.14 12 37.76 21.08 37.76 51.84V448c-41.57-37.5-78.46-48-224-48V48z"},child:[]}]})(e)}function G3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M456 480H136a24 24 0 0 1-24-24V128a16 16 0 0 1 16-16h328a24 24 0 0 1 24 24v320a24 24 0 0 1-24 24z"},child:[]},{tag:"path",attr:{d:"M112 80h288V56a24 24 0 0 0-24-24H60a28 28 0 0 0-28 28v316a24 24 0 0 0 24 24h24V112a32 32 0 0 1 32-32z"},child:[]}]})(e)}function W3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.13 48 48 141.13 48 256s93.13 208 208 208 208-93.13 208-208S370.87 48 256 48zm96 240h-96a16 16 0 0 1-16-16V128a16 16 0 0 1 32 0v128h80a16 16 0 0 1 0 32z"},child:[]}]})(e)}function Z3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0zm0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m12.126 8.125 1.937-1.937 3.747 3.747-1.937 1.938zM20.71 5.63l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75L20.71 7a1 1 0 0 0 0-1.37zM2 5l6.63 6.63L3 17.25V21h3.75l5.63-5.62L18 21l2-2L4 3 2 5z"},child:[]}]})(e)}function Y3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16z"},child:[]}]})(e)}function X3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 7h-8v6h8V7zm2-4H3c-1.1 0-2 .9-2 2v14c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98V5c0-1.1-.9-2-2-2zm0 16.01H3V4.98h18v14.03z"},child:[]}]})(e)}function K3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15zM14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2z"},child:[]}]})(e)}function J3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M7.76 16.24C6.67 15.16 6 13.66 6 12s.67-3.16 1.76-4.24l1.42 1.42C8.45 9.9 8 10.9 8 12c0 1.1.45 2.1 1.17 2.83l-1.41 1.41zm8.48 0C17.33 15.16 18 13.66 18 12s-.67-3.16-1.76-4.24l-1.42 1.42C15.55 9.9 16 10.9 16 12c0 1.1-.45 2.1-1.17 2.83l1.41 1.41zM12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm8 2c0 2.21-.9 4.21-2.35 5.65l1.42 1.42C20.88 17.26 22 14.76 22 12s-1.12-5.26-2.93-7.07l-1.42 1.42A7.94 7.94 0 0 1 20 12zM6.35 6.35 4.93 4.93C3.12 6.74 2 9.24 2 12s1.12 5.26 2.93 7.07l1.42-1.42C4.9 16.21 4 14.21 4 12s.9-4.21 2.35-5.65z"},child:[]}]})(e)}function Q3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M24 24H0V0h24v24z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"12",r:"8"},child:[]}]})(e)}function e4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"},child:[]}]})(e)}function r4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M8 5v14l11-7z"},child:[]}]})(e)}function t4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M21 8c-1.45 0-2.26 1.44-1.93 2.51l-3.55 3.56c-.3-.09-.74-.09-1.04 0l-2.55-2.55C12.27 10.45 11.46 9 10 9c-1.45 0-2.27 1.44-1.93 2.52l-4.56 4.55C2.44 15.74 1 16.55 1 18c0 1.1.9 2 2 2 1.45 0 2.26-1.44 1.93-2.51l4.55-4.56c.3.09.74.09 1.04 0l2.55 2.55C12.73 16.55 13.54 18 15 18c1.45 0 2.27-1.44 1.93-2.52l3.56-3.55c1.07.33 2.51-.48 2.51-1.93 0-1.1-.9-2-2-2z"},child:[]},{tag:"path",attr:{d:"m15 9 .94-2.07L18 6l-2.06-.93L15 3l-.92 2.07L12 6l2.08.93zM3.5 11 4 9l2-.5L4 8l-.5-2L3 8l-2 .5L3 9z"},child:[]}]})(e)}function n4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"},child:[]}]})(e)}function a4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"},child:[]}]})(e)}function i4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m17.66 17.66-1.06 1.06-.71-.71 1.06-1.06-1.94-1.94-1.06 1.06-.71-.71 1.06-1.06-1.94-1.94-1.06 1.06-.71-.71 1.06-1.06L9.7 9.7l-1.06 1.06-.71-.71 1.06-1.06-1.94-1.94-1.06 1.06-.71-.71 1.06-1.06L4 4v14c0 1.1.9 2 2 2h14l-2.34-2.34zM7 17v-5.76L12.76 17H7z"},child:[]}]})(e)}function o4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 2h2v5h8v3h-8v4h5v3h-5v5h-2v-5H6v-3h5v-4H3V7h8z"},child:[]}]})(e)}function s4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M4 22H2V2h2v20zM22 7H6v3h16V7zm-6 7H6v3h10v-3z"},child:[]}]})(e)}function u4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 2h2v20h-2V2zM2 10h16V7H2v3zm6 7h10v-3H8v3z"},child:[]}]})(e)}function l4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M22 22H2v-2h20v2zM10 2H7v16h3V2zm7 6h-3v10h3V8z"},child:[]}]})(e)}function c4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M22 11h-5V6h-3v5h-4V3H7v8H1.84v2H7v8h3v-8h4v5h3v-5h5z"},child:[]}]})(e)}function f4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M22 2v2H2V2h20zM7 22h3V6H7v16zm7-6h3V6h-3v10z"},child:[]}]})(e)}function zp(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 13v7h18v-1.5l-9-7L8 17l-5-4zm0-6 4 3 5-7 5 4h4v8.97l-9.4-7.31-3.98 5.48L3 10.44V7z"},child:[]}]})(e)}function p4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15 4v2h3v12h-3v2h5V4zM4 20h5v-2H6V6h3V4H4z"},child:[]}]})(e)}function d4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M4 7v2c0 .55-.45 1-1 1H2v4h1c.55 0 1 .45 1 1v2c0 1.65 1.35 3 3 3h3v-2H7c-.55 0-1-.45-1-1v-2c0-1.3-.84-2.42-2-2.83v-.34C5.16 11.42 6 10.3 6 9V7c0-.55.45-1 1-1h3V4H7C5.35 4 4 5.35 4 7zM21 10c-.55 0-1-.45-1-1V7c0-1.65-1.35-3-3-3h-3v2h3c.55 0 1 .45 1 1v2c0 1.3.84 2.42 2 2.83v.34c-1.16.41-2 1.52-2 2.83v2c0 .55-.45 1-1 1h-3v2h3c1.65 0 3-1.35 3-3v-2c0-.55.45-1 1-1h1v-4h-1z"},child:[]}]})(e)}function v4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6z"},child:[]},{tag:"path",attr:{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-3.37 12.5-.8-2.3H12.2l-.82 2.3H9.81l3.38-9h1.61l3.38 9h-1.55z"},child:[]},{tag:"path",attr:{d:"m13.96 7.17-1.31 3.72h2.69l-1.3-3.72z"},child:[]}]})(e)}function m4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 13c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm6-10C9.8 3 8 4.8 8 7s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm6 10c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4z"},child:[]}]})(e)}function h4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M21 4H3c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM7 12v2H5v-2h2zm-2-2V8h2v2H5zm6 2v2H9v-2h2zm-2-2V8h2v2H9zm7 6v1H8v-1h8zm-1-4v2h-2v-2h2zm-2-2V8h2v2h-2zm4 4v-2h2v2h-2zm2-4h-2V8h2v2z"},child:[]}]})(e)}function g4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"},child:[]}]})(e)}function y4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"},child:[]}]})(e)}function b4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"},child:[]}]})(e)}function x4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"},child:[]}]})(e)}function w4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M21 11H6.83l3.58-3.59L9 6l-6 6 6 6 1.41-1.41L6.83 13H21z"},child:[]}]})(e)}function E4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 8.41 16.59 13 18 11.59l-6-6-6 6L7.41 13 12 8.41zM6 18h12v-2H6v2z"},child:[]}]})(e)}function S4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17.5 3C15.57 3 14 4.57 14 6.5V8h-4V6.5C10 4.57 8.43 3 6.5 3S3 4.57 3 6.5 4.57 10 6.5 10H8v4H6.5C4.57 14 3 15.57 3 17.5S4.57 21 6.5 21s3.5-1.57 3.5-3.5V16h4v1.5c0 1.93 1.57 3.5 3.5 3.5s3.5-1.57 3.5-3.5-1.57-3.5-3.5-3.5H16v-4h1.5c1.93 0 3.5-1.57 3.5-3.5S19.43 3 17.5 3zM16 8V6.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S18.33 8 17.5 8H16zM6.5 8C5.67 8 5 7.33 5 6.5S5.67 5 6.5 5 8 5.67 8 6.5V8H6.5zm3.5 6v-4h4v4h-4zm7.5 5c-.83 0-1.5-.67-1.5-1.5V16h1.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5zm-11 0c-.83 0-1.5-.67-1.5-1.5S5.67 16 6.5 16H8v1.5c0 .83-.67 1.5-1.5 1.5z"},child:[]}]})(e)}function A4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m5 12 1.41 1.41L12 7.83l5.59 5.58L19 12l-7-7z"},child:[]}]})(e)}function D4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 3H4c-1.1 0-1.99.9-1.99 2L2 15c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 3h2v2h-2V6zm0 3h2v2h-2V9zM8 6h2v2H8V6zm0 3h2v2H8V9zm-1 2H5V9h2v2zm0-3H5V6h2v2zm9 7H8v-2h8v2zm0-4h-2V9h2v2zm0-3h-2V6h2v2zm3 3h-2V9h2v2zm0-3h-2V6h2v2zm-7 15 4-4H8l4 4z"},child:[]}]})(e)}function C4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15 5h6v2h-6zM9 5H3v2h4.85l6.92 12H21v-2h-5.07z"},child:[]}]})(e)}function N4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"},child:[]}]})(e)}function M4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11.59 7.41 15.17 11H1v2h14.17l-3.59 3.59L13 18l6-6-6-6-1.41 1.41zM20 6v12h2V6h-2z"},child:[]}]})(e)}function T4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25L19 9zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12l-5.5-2.5zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25L19 15z"},child:[]}]})(e)}function O4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a.996.996 0 0 0 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"},child:[]}]})(e)}function _4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m18 3-3 3V3H9C6.24 3 4 5.24 4 8h5v3h6V8l3 3h2V3h-2zM9 13v7c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-7H9z"},child:[]}]})(e)}function $4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"},child:[]}]})(e)}function F4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm3.3 14.71L11 12.41V7h2v4.59l3.71 3.71-1.42 1.41z"},child:[]}]})(e)}function B4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 2v3H5V5h14zm0 5v4H5v-4h14zM5 19v-3h14v3H5z"},child:[]}]})(e)}function R4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0zm0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"m17 16-4-4V8.82C14.16 8.4 15 7.3 15 6c0-1.66-1.34-3-3-3S9 4.34 9 6c0 1.3.84 2.4 2 2.82V12l-4 4H3v5h5v-3.05l4-4.2 4 4.2V21h5v-5h-4z"},child:[]}]})(e)}function P4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M2.81 2.81 1.39 4.22l2.27 2.27A9.91 9.91 0 0 0 2 12c0 5.52 4.48 10 10 10 2.04 0 3.93-.61 5.51-1.66l2.27 2.27 1.41-1.42L2.81 2.81zM12 20c-4.41 0-8-3.59-8-8 0-1.48.41-2.86 1.12-4.06l10.93 10.94A7.869 7.869 0 0 1 12 20zM12 4c4.41 0 8 3.59 8 8 0 1.48-.41 2.86-1.12 4.05l1.45 1.45A9.782 9.782 0 0 0 22 12c0-5.52-4.48-10-10-10-2.04 0-3.93.61-5.51 1.66l1.45 1.45C9.14 4.41 10.52 4 12 4z"},child:[]}]})(e)}function z4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m2.88 7.88 1.54 1.54C4.15 10.23 4 11.1 4 12c0 4.41 3.59 8 8 8s8-3.59 8-8-3.59-8-8-8c-.9 0-1.77.15-2.58.42L7.89 2.89C9.15 2.32 10.54 2 12 2c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12c0-1.47.32-2.86.88-4.12zM7 5.5C7 6.33 6.33 7 5.5 7S4 6.33 4 5.5 4.67 4 5.5 4 7 4.67 7 5.5z"},child:[]}]})(e)}function I4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M216.49,168.49a12,12,0,0,1-17,0L128,97,56.49,168.49a12,12,0,0,1-17-17l80-80a12,12,0,0,1,17,0l80,80A12,12,0,0,1,216.49,168.49Z"},child:[]}]})(e)}function Ip(e){return Ce({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z"},child:[]}]})(e)}function L4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M156,40a12,12,0,0,1-12,12H112a12,12,0,0,1,0-24h32A12,12,0,0,1,156,40ZM144,204H112a12,12,0,0,0,0,24h32a12,12,0,0,0,0-24ZM204,52V72a12,12,0,0,0,24,0V48a20,20,0,0,0-20-20H184a12,12,0,0,0,0,24Zm12,48a12,12,0,0,0-12,12v32a12,12,0,0,0,24,0V112A12,12,0,0,0,216,100ZM40,156a12,12,0,0,0,12-12V112a12,12,0,0,0-24,0v32A12,12,0,0,0,40,156Zm32,48H52V184a12,12,0,0,0-24,0v24a20,20,0,0,0,20,20H72a12,12,0,0,0,0-24ZM72,28H48A20,20,0,0,0,28,48V72a12,12,0,0,0,24,0V52H72a12,12,0,0,0,0-24ZM240,204H228V192a12,12,0,0,0-24,0v12H192a12,12,0,0,0,0,24h12v12a12,12,0,0,0,24,0V228h12a12,12,0,0,0,0-24Z"},child:[]}]})(e)}function q4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"},child:[]}]})(e)}function k4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"},child:[]}]})(e)}function U4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"},child:[]}]})(e)}function H4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M9.95401 2.2106C11.2876 1.93144 12.6807 1.92263 14.0449 2.20785C14.2219 3.3674 14.9048 4.43892 15.9997 5.07103C17.0945 5.70313 18.364 5.75884 19.4566 5.3323C20.3858 6.37118 21.0747 7.58203 21.4997 8.87652C20.5852 9.60958 19.9997 10.736 19.9997 11.9992C19.9997 13.2632 20.5859 14.3902 21.5013 15.1232C21.29 15.7636 21.0104 16.3922 20.6599 16.9992C20.3094 17.6063 19.9049 18.1627 19.4559 18.6659C18.3634 18.2396 17.0943 18.2955 15.9997 18.9274C14.9057 19.559 14.223 20.6294 14.0453 21.7879C12.7118 22.067 11.3187 22.0758 9.95443 21.7906C9.77748 20.6311 9.09451 19.5595 7.99967 18.9274C6.90484 18.2953 5.63539 18.2396 4.54272 18.6662C3.61357 17.6273 2.92466 16.4164 2.49964 15.1219C3.41412 14.3889 3.99968 13.2624 3.99968 11.9992C3.99968 10.7353 3.41344 9.60827 2.49805 8.87524C2.70933 8.23482 2.98894 7.60629 3.33942 6.99923C3.68991 6.39217 4.09443 5.83576 4.54341 5.33257C5.63593 5.75881 6.90507 5.703 7.99967 5.07103C9.09364 4.43942 9.7764 3.3691 9.95401 2.2106ZM11.9997 14.9992C13.6565 14.9992 14.9997 13.6561 14.9997 11.9992C14.9997 10.3424 13.6565 8.99923 11.9997 8.99923C10.3428 8.99923 8.99967 10.3424 8.99967 11.9992C8.99967 13.6561 10.3428 14.9992 11.9997 14.9992Z"},child:[]}]})(e)}function j4(e){return Ce({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M6.5459 12.0003L12.001 6.545l5.4541 5.4552-5.4541 5.454zm16.9763-1.154L13.158.48a1.635 1.635 0 00-2.314 0L.4778 10.8462a1.629 1.629 0 000 2.305L10.848 23.5226a1.629 1.629 0 002.304 0l10.3702-10.3712a1.629 1.629 0 000-2.305zM12 20.7263l-8.7272-8.7281L12 3.27l8.7272 8.7282z"},child:[]}]})(e)}function V4(e){return Ce({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z"},child:[]}]})(e)}function G4(e){return Ce({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M0 0v7.5h7.5V0zm8.25 0v7.5h7.498V0zm8.25 0v7.5H24V0zM8.25 8.25v7.5h7.498v-7.5zm8.25 0v7.5H24v-7.5zM0 16.5V24h7.5v-7.5zm8.25 0V24h7.498v-7.5zm8.25 0V24H24v-7.5z"},child:[]}]})(e)}function W4(e){return Ce({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M14.25.18l.9.2.73.26.59.3.45.32.34.34.25.34.16.33.1.3.04.26.02.2-.01.13V8.5l-.05.63-.13.55-.21.46-.26.38-.3.31-.33.25-.35.19-.35.14-.33.1-.3.07-.26.04-.21.02H8.77l-.69.05-.59.14-.5.22-.41.27-.33.32-.27.35-.2.36-.15.37-.1.35-.07.32-.04.27-.02.21v3.06H3.17l-.21-.03-.28-.07-.32-.12-.35-.18-.36-.26-.36-.36-.35-.46-.32-.59-.28-.73-.21-.88-.14-1.05-.05-1.23.06-1.22.16-1.04.24-.87.32-.71.36-.57.4-.44.42-.33.42-.24.4-.16.36-.1.32-.05.24-.01h.16l.06.01h8.16v-.83H6.18l-.01-2.75-.02-.37.05-.34.11-.31.17-.28.25-.26.31-.23.38-.2.44-.18.51-.15.58-.12.64-.1.71-.06.77-.04.84-.02 1.27.05zm-6.3 1.98l-.23.33-.08.41.08.41.23.34.33.22.41.09.41-.09.33-.22.23-.34.08-.41-.08-.41-.23-.33-.33-.22-.41-.09-.41.09zm13.09 3.95l.28.06.32.12.35.18.36.27.36.35.35.47.32.59.28.73.21.88.14 1.04.05 1.23-.06 1.23-.16 1.04-.24.86-.32.71-.36.57-.4.45-.42.33-.42.24-.4.16-.36.09-.32.05-.24.02-.16-.01h-8.22v.82h5.84l.01 2.76.02.36-.05.34-.11.31-.17.29-.25.25-.31.24-.38.2-.44.17-.51.15-.58.13-.64.09-.71.07-.77.04-.84.01-1.27-.04-1.07-.14-.9-.2-.73-.25-.59-.3-.45-.33-.34-.34-.25-.34-.16-.33-.1-.3-.04-.25-.02-.2.01-.13v-5.34l.05-.64.13-.54.21-.46.26-.38.3-.32.33-.24.35-.2.35-.14.33-.1.3-.06.26-.04.21-.02.13-.01h5.84l.69-.05.59-.14.5-.21.41-.28.33-.32.27-.35.2-.36.15-.36.1-.35.07-.32.04-.28.02-.21V6.07h2.09l.14.01zm-6.47 14.25l-.23.33-.08.41.08.41.23.33.33.23.41.08.41-.08.33-.23.23-.33.08-.41-.08-.41-.23-.33-.33-.23-.41-.08-.41.08z"},child:[]}]})(e)}function Z4(e){return Ce({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M1.125 0C.502 0 0 .502 0 1.125v21.75C0 23.498.502 24 1.125 24h21.75c.623 0 1.125-.502 1.125-1.125V1.125C24 .502 23.498 0 22.875 0zm17.363 9.75c.612 0 1.154.037 1.627.111a6.38 6.38 0 0 1 1.306.34v2.458a3.95 3.95 0 0 0-.643-.361 5.093 5.093 0 0 0-.717-.26 5.453 5.453 0 0 0-1.426-.2c-.3 0-.573.028-.819.086a2.1 2.1 0 0 0-.623.242c-.17.104-.3.229-.393.374a.888.888 0 0 0-.14.49c0 .196.053.373.156.529.104.156.252.304.443.444s.423.276.696.41c.273.135.582.274.926.416.47.197.892.407 1.266.628.374.222.695.473.963.753.268.279.472.598.614.957.142.359.214.776.214 1.253 0 .657-.125 1.21-.373 1.656a3.033 3.033 0 0 1-1.012 1.085 4.38 4.38 0 0 1-1.487.596c-.566.12-1.163.18-1.79.18a9.916 9.916 0 0 1-1.84-.164 5.544 5.544 0 0 1-1.512-.493v-2.63a5.033 5.033 0 0 0 3.237 1.2c.333 0 .624-.03.872-.09.249-.06.456-.144.623-.25.166-.108.29-.234.373-.38a1.023 1.023 0 0 0-.074-1.089 2.12 2.12 0 0 0-.537-.5 5.597 5.597 0 0 0-.807-.444 27.72 27.72 0 0 0-1.007-.436c-.918-.383-1.602-.852-2.053-1.405-.45-.553-.676-1.222-.676-2.005 0-.614.123-1.141.369-1.582.246-.441.58-.804 1.004-1.089a4.494 4.494 0 0 1 1.47-.629 7.536 7.536 0 0 1 1.77-.201zm-15.113.188h9.563v2.166H9.506v9.646H6.789v-9.646H3.375z"},child:[]}]})(e)}function Y4(e){return Ce({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 0C5.375 0 0 5.375 0 12s5.375 12 12 12 12-5.375 12-12S18.625 0 12 0zm.768 4.105c.183 0 .363.053.525.157.125.083.287.185.755 1.154.31-.088.468-.042.551-.019.204.056.366.19.463.375.477.917.542 2.553.334 3.605-.241 1.232-.755 2.029-1.131 2.576.324.329.778.899 1.117 1.825.278.774.31 1.478.273 2.015a5.51 5.51 0 0 0 .602-.329c.593-.366 1.487-.917 2.553-.931.714-.009 1.269.445 1.353 1.103a1.23 1.23 0 0 1-.945 1.362c-.649.158-.95.278-1.821.843-1.232.797-2.539 1.242-3.012 1.39a1.686 1.686 0 0 1-.704.343c-.737.181-3.266.315-3.466.315h-.046c-.783 0-1.214-.241-1.45-.491-.658.329-1.51.19-2.122-.134a1.078 1.078 0 0 1-.58-1.153 1.243 1.243 0 0 1-.153-.195c-.162-.25-.528-.936-.454-1.946.056-.723.556-1.367.88-1.71a5.522 5.522 0 0 1 .408-2.256c.306-.727.885-1.348 1.32-1.737-.32-.537-.644-1.367-.329-2.21.227-.602.412-.936.82-1.08h-.005c.199-.074.389-.153.486-.259a3.418 3.418 0 0 1 2.298-1.103c.037-.093.079-.185.125-.283.31-.658.639-1.029 1.024-1.168a.94.94 0 0 1 .328-.06zm.006.7c-.507.016-1.001 1.519-1.001 1.519s-1.27-.204-2.266.871c-.199.218-.468.334-.746.44-.079.028-.176.023-.417.672-.371.991.625 2.094.625 2.094s-1.186.839-1.626 1.881c-.486 1.144-.338 2.261-.338 2.261s-.843.732-.899 1.487c-.051.663.139 1.2.343 1.515.227.343.51.176.51.176s-.561.653-.037.931c.477.25 1.283.394 1.71-.037.31-.31.371-1.001.486-1.283.028-.065.12.111.209.199.097.093.264.195.264.195s-.755.324-.445 1.066c.102.246.468.403 1.066.398.222-.005 2.664-.139 3.313-.296.375-.088.505-.283.505-.283s1.566-.431 2.998-1.357c.917-.598 1.293-.76 2.034-.936.612-.148.57-1.098-.241-1.084-.839.009-1.575.44-2.196.825-1.163.718-1.742.672-1.742.672l-.018-.032c-.079-.13.371-1.293-.134-2.678-.547-1.515-1.413-1.881-1.344-1.997.297-.5 1.038-1.297 1.334-2.78.176-.899.13-2.377-.269-3.151-.074-.144-.732.241-.732.241s-.616-1.371-.788-1.483a.271.271 0 0 0-.157-.046z"},child:[]}]})(e)}function X4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12 10a2 2 0 0 1 1.678 .911l.053 .089h7.269l.117 .007a1 1 0 0 1 .883 .993c0 5.523 -4.477 10 -10 10a1 1 0 0 1 -1 -1v-7.269l-.089 -.053a2 2 0 0 1 -.906 -1.529l-.005 -.149a2 2 0 0 1 2 -2m9.428 -1.334a1 1 0 0 1 -1.884 .668a8 8 0 1 0 -10.207 10.218a1 1 0 0 1 -.666 1.886a10 10 0 1 1 12.757 -12.772m-4.628 -.266a1 1 0 0 1 -1.6 1.2a4 4 0 1 0 -5.6 5.6a1 1 0 0 1 -1.2 1.6a6 6 0 1 1 8.4 -8.4"},child:[]}]})(e)}function K4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 5l0 14"},child:[]},{tag:"path",attr:{d:"M18 13l-6 6"},child:[]},{tag:"path",attr:{d:"M6 13l6 6"},child:[]}]})(e)}function J4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M5 12l14 0"},child:[]},{tag:"path",attr:{d:"M5 12l6 6"},child:[]},{tag:"path",attr:{d:"M5 12l6 -6"},child:[]}]})(e)}function Q4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M5 12l14 0"},child:[]},{tag:"path",attr:{d:"M13 18l6 -6"},child:[]},{tag:"path",attr:{d:"M13 6l6 6"},child:[]}]})(e)}function e5(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 5l0 14"},child:[]},{tag:"path",attr:{d:"M18 11l-6 -6"},child:[]},{tag:"path",attr:{d:"M6 11l6 -6"},child:[]}]})(e)}function r5(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},child:[]},{tag:"path",attr:{d:"M12 12m-5 0a5 5 0 1 0 10 0a5 5 0 1 0 -10 0"},child:[]},{tag:"path",attr:{d:"M15.9 20.11l0 .01"},child:[]},{tag:"path",attr:{d:"M19.04 17.61l0 .01"},child:[]},{tag:"path",attr:{d:"M20.77 14l0 .01"},child:[]},{tag:"path",attr:{d:"M20.77 10l0 .01"},child:[]},{tag:"path",attr:{d:"M19.04 6.39l0 .01"},child:[]},{tag:"path",attr:{d:"M15.9 3.89l0 .01"},child:[]},{tag:"path",attr:{d:"M12 3l0 .01"},child:[]},{tag:"path",attr:{d:"M8.1 3.89l0 .01"},child:[]},{tag:"path",attr:{d:"M4.96 6.39l0 .01"},child:[]},{tag:"path",attr:{d:"M3.23 10l0 .01"},child:[]},{tag:"path",attr:{d:"M3.23 14l0 .01"},child:[]},{tag:"path",attr:{d:"M4.96 17.61l0 .01"},child:[]},{tag:"path",attr:{d:"M8.1 20.11l0 .01"},child:[]},{tag:"path",attr:{d:"M12 21l0 .01"},child:[]}]})(e)}function t5(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 16l-4 4"},child:[]},{tag:"path",attr:{d:"M7 12l5 5l-1.5 1.5a3.536 3.536 0 1 1 -5 -5l1.5 -1.5z"},child:[]},{tag:"path",attr:{d:"M17 12l-5 -5l1.5 -1.5a3.536 3.536 0 1 1 5 5l-1.5 1.5z"},child:[]},{tag:"path",attr:{d:"M3 21l2.5 -2.5"},child:[]},{tag:"path",attr:{d:"M18.5 5.5l2.5 -2.5"},child:[]},{tag:"path",attr:{d:"M10 11l-2 2"},child:[]},{tag:"path",attr:{d:"M13 14l-2 2"},child:[]},{tag:"path",attr:{d:"M16 16l4 4"},child:[]}]})(e)}function n5(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M7 12l5 5l-1.5 1.5a3.536 3.536 0 1 1 -5 -5l1.5 -1.5z"},child:[]},{tag:"path",attr:{d:"M17 12l-5 -5l1.5 -1.5a3.536 3.536 0 1 1 5 5l-1.5 1.5z"},child:[]},{tag:"path",attr:{d:"M3 21l2.5 -2.5"},child:[]},{tag:"path",attr:{d:"M18.5 5.5l2.5 -2.5"},child:[]},{tag:"path",attr:{d:"M10 11l-2 2"},child:[]},{tag:"path",attr:{d:"M13 14l-2 2"},child:[]}]})(e)}function a5(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M5 4c-2.5 5 -2.5 10 0 16m14 -16c2.5 5 2.5 10 0 16m-10 -11h1c1 0 1 1 2.016 3.527c.984 2.473 .984 3.473 1.984 3.473h1"},child:[]},{tag:"path",attr:{d:"M8 16c1.5 0 3 -2 4 -3.5s2.5 -3.5 4 -3.5"},child:[]}]})(e)}const i5=e=>Nt.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 78 51",...e,className:wc(e.className,"logo"),stroke:"currentColor",fill:"currentColor",children:[Nt.jsx("g",{clipPath:"url(#clip0_327_656)",children:Nt.jsx("path",{d:"M17.3026 17.0048V51.0427H0V17.0048H17.3026ZM34.6051 -0.0140575C36.8587 -0.0327593 39.0939 0.392621 41.1831 1.23779C43.2723 2.08297 45.1746 3.33138 46.7813 4.91175C48.388 6.49211 49.6677 8.37348 50.5473 10.4484C51.4269 12.5234 51.8891 14.7512 51.9077 17.0048V51.0427H34.6051V17.0048H17.3026V-0.0140575H34.6051ZM77.8615 -0.0140575V51.0427C75.6074 51.0632 73.3714 50.6391 71.2813 49.7946C69.1913 48.9501 67.2883 47.7018 65.6812 46.1211C64.0741 44.5403 62.7945 42.6582 61.9156 40.5824C61.0366 38.5066 60.5756 36.2779 60.559 34.0238V-0.0140575H77.8615Z",fill:"#03B584"})}),Nt.jsx("defs",{children:Nt.jsx("clipPath",{id:"clip0_327_656",children:Nt.jsx("rect",{width:"77.8615",height:"51",fill:"white"})})})]}),o5=({className:e,style:r,...t})=>Nt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",className:wc(e,"logo"),...t,stroke:"currentColor",fill:"currentColor",viewBox:"0 0 512 325.74567",style:{transform:"scale(1.25)",...r},children:Nt.jsx("g",{transform:"translate(-151.28831,-121.30134)",id:"layer1",children:Nt.jsxs("g",{transform:"matrix(2.7387317,0,0,2.7387317,-938.60269,-766.86241)",id:"g3606",children:[Nt.jsx("path",{d:"m 405.36669,375.73826 c 4.0225,-3.7175 9.16125,-7.18625 15.20125,-10.32375 -0.74875,-2.4425 -1.085,-5.12 -1.085,-7.64375 0,-7.5075 2.73,-16.49375 11.71625,-16.49375 8.5125,0 11.5125,8.06125 11.80625,15.2925 10.53625,-3.17125 22.36875,-5.64 35.15375,-7.165 2.115,-6.09125 6.77375,-8.1275 10.68125,-8.1275 4.88875,0 7.94625,2.72625 9.6675,6.4675 3.5775,-0.1425 7.2475,-0.15875 10.915,-0.15875 9.17001,0 18.09501,0.40125 26.64001,1.25875 1.5525,-4.33625 4.76,-7.5675 11.15875,-7.5675 4.89125,0 9.32875,3.52625 9.4425,8.53125 l 18.76875,0 c -1.36625,-15.585 -14.4475,-23.32 -29.12125,-23.32 -14.0825,0 -24.29,7.3775 -28.6275,18.84125 -3.36625,-10.705 -11.15626,-18.84125 -24.40876,-18.84125 -6.825,0 -12.51125,2.95875 -16.265,8.5325 l -0.2275,0 0,-6.82625 -18.4275,0 0,13.57625 c -5.16625,-9.26625 -14.9475,-15.2825 -27.15625,-15.2825 -18.3125,0 -31.05375,13.5375 -31.05375,31.2825 0,6.79375 1.89,12.95125 5.22125,17.9675",id:"path3299",fillRule:"nonzero",fillOpacity:1}),Nt.jsx("path",{d:"m 426.05169,372.92451 c 1.42625,0.78 3.13,1.2275 5.1475,1.2275 6.175,0 9.45875,-4.1875 10.9025,-9.24375 10.05,-4.0125 21.88125,-7.235 34.94875,-9.4375 -0.0275,0.5225 -0.04,1.06125 -0.04,1.6175 0,10.3525 2.9575,17.06375 11.71625,17.06375 8.645,0 11.6025,-8.98625 11.6025,-17.06375 0,-1.42875 -0.0937,-2.88625 -0.32,-4.31 5.86,-0.40625 11.865,-0.61625 18.00001,-0.61625 5.82375,0 11.54375,0.19125 17.1225,0.5575 -0.30875,1.95125 -0.4225,3.98625 -0.4225,5.9625 0,7.62125 3.3,15.47 11.48875,15.47 6.7125,0 10.125,-3.8675 11.03375,-10.12375 l 18.76875,0 c -1.705,15.81125 -13.99125,24.9125 -29.68875,24.9125 -13.22625,0 -23.925,-6.76375 -28.51625,-17.6975 -3.2875,10.0525 -10.92501,17.6975 -23.04001,17.6975 -7.28,0 -12.85375,-2.73125 -16.83625,-8.0775 l -0.2275,0 0,28.92 -19.33625,0 0,-36.04 c -5.16625,9.2325 -14.9475,15.1975 -27.15625,15.1975 -6.8475,0 -12.8975,-1.8775 -17.8125,-5.155 3.10875,-3.875 7.38125,-7.51875 12.665,-10.86125",id:"path3301",fillOpacity:1,fillRule:"nonzero"}),Nt.jsx("path",{d:"m 582.7117,362.38451 c -19.015,-7.0775 -43.9375,-11.36875 -71.22126,-11.36875 -59.675,0 -108.05,20.525 -108.05,45.84375 0,21.07875 33.53,38.83125 79.19375,44.1875 -41.985,-6.12625 -72.15125,-22.9375 -72.15125,-42.7175 0,-24.96 48.005,-45.19375 107.22251,-45.19375 24.4475,0 46.97,3.4425 65.00625,9.24875",id:"path3303",fillOpacity:1,fillRule:"nonzero"})]})})}),xe=(e,r,{className:t}={})=>{const n=a=>Nt.jsx(e,{...a,className:wc(a.className,`synnax-icon-${r}`,t,"synnax-icon")});return n.displayName=e.displayName||e.name,n},qo={Linux:B3,MacOS:$3,Windows:cg,Docker:F3},It={Pause:xe(e4,"pause"),Play:xe(r4,"play"),Circle:xe(Q3,"circle"),Edit:xe(O4,"edit"),EditOff:xe(Z3,"edit-off"),Add:xe(U3,"add"),Subtract:xe(N3,"subtract"),Copy:xe(G3,"copy"),Close:xe(A3,"close"),Info:xe(b3,"info"),Warning:xe(w3,"warning"),Check:xe(S3,"check"),Refresh:xe(j3,"refresh"),Delete:xe(g3,"delete"),Time:xe(W3,"time"),Acquire:xe(Pp,"acquire"),Analyze:xe(R3,"analyze"),Concepts:xe(O3,"concepts"),Visualize:xe(zp,"visualize"),LinePlot:xe(zp,"line-plot"),Expand:xe(D3,"expand"),Cluster:xe(H3,"cluster"),Loading:xe(C3,"loading",{className:"media--spin"}),Schematic:xe(Pp,"schematic"),Caret:{Right:xe(U4,"caret-right"),Left:xe(k4,"caret-left"),Up:xe(I4,"caret-up"),Down:xe(q4,"caret-down")},Settings:xe(H4,"settings"),Reference:xe(V3,"reference"),Bolt:xe(k3,"bolt"),Download:xe(q3,"download"),Range:xe(F4,"range"),Node:xe(R4,"node"),Channel:xe(J3,"channel"),Resources:xe(Rp,"resources"),Group:xe(Rp,"group"),Workspace:xe(m4,"workspace"),OS:{Linux:xe(qo.Linux,"os-linux"),MacOS:xe(qo.MacOS,"os-macos"),Windows:xe(qo.Windows,"os-windows"),Docker:xe(qo.Docker,"os-docker")},Box:xe(E3,"box"),Python:xe(W4,"python"),TypeScript:xe(Z4,"typescript"),NPM:xe(V4,"npm"),PNPM:xe(G4,"pnpm"),Yarn:xe(Y4,"yarn"),QuestionMark:xe(K3,"question-mark"),Menu:xe(P3,"menu"),Logo:{Github:xe(y3,"logo-github"),LinkedIn:xe(x3,"logo-linkedin"),NI:xe(i5,"logo-ni"),OPC:xe(o5,"logo-opc")},Arrow:{Right:xe(Q4,"arrow-right"),Down:xe(K4,"arrow-down"),Up:xe(e5,"arrow-up"),Left:xe(J4,"arrow-left")},Keyboard:{Command:xe(S4,"keyboard-command"),Windows:xe(cg,"keyboard-windows"),Tab:xe(M4,"keyboard-tab"),Return:xe(N4,"keyboard-return"),Backspace:xe(w4,"keyboard-backspace"),Capslock:xe(E4,"keyboard-capslock"),Hide:xe(D4,"keyboard-hide"),Control:xe(A4,"keyboard-control"),Arrow:{Up:xe(x4,"keyboard-arrow-up"),Down:xe(g4,"keyboard-arrow-down"),Left:xe(y4,"keyboard-arrow-left"),Right:xe(b4,"keyboard-arrow-right")},Alt:xe(h4,"keyboard-alt"),Option:xe(C4,"keyboard-option"),Shift:xe(_3,"keyboard-shift")},Tooltip:xe(t4,"tooltip"),Annotate:xe(Y3,"annotate"),Zoom:xe(Ip,"zoom"),Selection:xe(L4,"selection"),Pan:xe(L3,"pan"),Rule:xe(i4,"rule"),User:xe($4,"user"),Rename:xe(T3,"rename"),Snapshot:xe(X3,"snapshot"),Sync:xe(M3,"sync"),Search:xe(Ip,"search"),Auto:xe(T4,"auto"),Table:xe(B4,"table"),Align:{Right:xe(u4,"align-right"),Left:xe(s4,"align-left"),XCenter:xe(o4,"align-x-center"),YCenter:xe(c4,"align-y-center"),Top:xe(f4,"align-top"),Bottom:xe(l4,"align-bottom")},Connect:xe(n5,"connect"),Disconnect:xe(t5,"disconnect"),Hardware:xe(_4,"hardware"),Save:xe(a4,"save"),Task:xe(X4,"task"),Device:xe(j4,"device"),Link:xe(n4,"link"),Attachment:xe(z3,"attachment"),Drag:xe(I3,"drag"),Dynamic:xe(r5,"dynamic"),Enable:xe(z4,"enable"),Disable:xe(P4,"disable"),Variable:xe(a5,"variable"),Object:xe(d4,"object"),Type:xe(v4,"type"),Array:xe(p4,"array")},$l=e=>{if(e==null)return{x:void 0,y:void 0};const r=G.k$1.safeParse(e);if(r.success)return r.data;const t=G.c.safeParse(e);return t.success?G.t(t.data)==="x"?{x:t.data,y:void 0}:{x:void 0,y:t.data}:e},s5=({container:e,target:r,dialog:t,initial:n,prefer:a,alignments:i=["start"],disable:o=[]})=>{const s=$l(n);let u=G.M;if(a!=null){const m=a.map(g=>$l(g));u=u.slice().sort((g,y)=>{const E=m.findIndex(w=>G.B(g,w)),h=m.findIndex(w=>G.B(y,w));return E>-1&&h>-1?E-h:E>-1?-1:h>-1?1:0})}const l=u.filter(m=>!G.$(m,G.y)&&(s.x==null||m.x===s.x)&&(s.y==null||m.y===s.y)&&!o.some(g=>G.B(m,g))).map(m=>i==null?void 0:i.map(g=>[m,g])).flat(),c=G.c$1(e),f=G.c$1(r),p=G.c$1(t);let d=-1/0;const v={location:G.y,adjustedDialog:p};return l.forEach(([m,g])=>{const[y,E]=u5({option:m,alignment:g,container:c,target:f,dialog:p});E>d&&(d=E,v.location=m,v.adjustedDialog=y)}),v},u5=({option:e,alignment:r,container:t,target:n,dialog:a})=>{const i=fg(e,r),o=G.g$1(n,e),s=G.po(o.x,o.y,G.u$1(a),G.l(a),i,G.T),u=G.fo(G.wo(s,t));return[s,u]},l5={start:"left",center:"center",end:"right"},c5={start:"bottom",center:"center",end:"top"},fg=(e,r)=>{const t={x:"center",y:"center"};if(e.y!=="center"){t.y=G.A(e.y);const n=e.x==="left"?G.A:a=>a;t.x=n(l5[r])}else t.x=G.A(e.x),t.y=c5[r];return t},Ec=Object.freeze(Object.defineProperty({__proto__:null,dialog:s5,getRoot:fg,parseLocationOptions:$l},Symbol.toStringTag,{value:"Module"}));var Pt={},co={},f5=typeof ye.commonjsGlobal=="object"&&ye.commonjsGlobal&&ye.commonjsGlobal.Object===Object&&ye.commonjsGlobal,pg=f5,p5=pg,d5=typeof self=="object"&&self&&self.Object===Object&&self,v5=p5||d5||Function("return this")(),ln=v5,m5=ln,h5=m5.Symbol,fo=h5,Lp=fo,dg=Object.prototype,g5=dg.hasOwnProperty,y5=dg.toString,Ui=Lp?Lp.toStringTag:void 0;function b5(e){var r=g5.call(e,Ui),t=e[Ui];try{e[Ui]=void 0;var n=!0}catch{}var a=y5.call(e);return n&&(r?e[Ui]=t:delete e[Ui]),a}var x5=b5,w5=Object.prototype,E5=w5.toString;function S5(e){return E5.call(e)}var A5=S5,qp=fo,D5=x5,C5=A5,N5="[object Null]",M5="[object Undefined]",kp=qp?qp.toStringTag:void 0;function T5(e){return e==null?e===void 0?M5:N5:kp&&kp in Object(e)?D5(e):C5(e)}var oa=T5,O5=Array.isArray,Jt=O5;function _5(e){return e!=null&&typeof e=="object"}var Dn=_5,$5=oa,F5=Jt,B5=Dn,R5="[object String]";function P5(e){return typeof e=="string"||!F5(e)&&B5(e)&&$5(e)==R5}var z5=P5;function I5(e){return function(r,t,n){for(var a=-1,i=Object(r),o=n(r),s=o.length;s--;){var u=o[e?s:++a];if(t(i[u],u,i)===!1)break}return r}}var L5=I5,q5=L5,k5=q5(),U5=k5;function H5(e,r){for(var t=-1,n=Array(e);++t<e;)n[t]=r(t);return n}var j5=H5,V5=oa,G5=Dn,W5="[object Arguments]";function Z5(e){return G5(e)&&V5(e)==W5}var Y5=Z5,Up=Y5,X5=Dn,vg=Object.prototype,K5=vg.hasOwnProperty,J5=vg.propertyIsEnumerable,Q5=Up(function(){return arguments}())?Up:function(e){return X5(e)&&K5.call(e,"callee")&&!J5.call(e,"callee")},mg=Q5,gs={exports:{}};function eE(){return!1}var rE=eE;gs.exports;(function(e,r){var t=ln,n=rE,a=r&&!r.nodeType&&r,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,s=o?t.Buffer:void 0,u=s?s.isBuffer:void 0,l=u||n;e.exports=l})(gs,gs.exports);var Sc=gs.exports,tE=9007199254740991,nE=/^(?:0|[1-9]\d*)$/;function aE(e,r){var t=typeof e;return r=r??tE,!!r&&(t=="number"||t!="symbol"&&nE.test(e))&&e>-1&&e%1==0&&e<r}var hg=aE,iE=9007199254740991;function oE(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=iE}var Ac=oE,sE=oa,uE=Ac,lE=Dn,cE="[object Arguments]",fE="[object Array]",pE="[object Boolean]",dE="[object Date]",vE="[object Error]",mE="[object Function]",hE="[object Map]",gE="[object Number]",yE="[object Object]",bE="[object RegExp]",xE="[object Set]",wE="[object String]",EE="[object WeakMap]",SE="[object ArrayBuffer]",AE="[object DataView]",DE="[object Float32Array]",CE="[object Float64Array]",NE="[object Int8Array]",ME="[object Int16Array]",TE="[object Int32Array]",OE="[object Uint8Array]",_E="[object Uint8ClampedArray]",$E="[object Uint16Array]",FE="[object Uint32Array]",$r={};$r[DE]=$r[CE]=$r[NE]=$r[ME]=$r[TE]=$r[OE]=$r[_E]=$r[$E]=$r[FE]=!0;$r[cE]=$r[fE]=$r[SE]=$r[pE]=$r[AE]=$r[dE]=$r[vE]=$r[mE]=$r[hE]=$r[gE]=$r[yE]=$r[bE]=$r[xE]=$r[wE]=$r[EE]=!1;function BE(e){return lE(e)&&uE(e.length)&&!!$r[sE(e)]}var RE=BE;function PE(e){return function(r){return e(r)}}var Dc=PE,ys={exports:{}};ys.exports;(function(e,r){var t=pg,n=r&&!r.nodeType&&r,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i&&t.process,s=function(){try{var u=a&&a.require&&a.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(ys,ys.exports);var Cc=ys.exports,zE=RE,IE=Dc,Hp=Cc,jp=Hp&&Hp.isTypedArray,LE=jp?IE(jp):zE,gg=LE,qE=j5,kE=mg,UE=Jt,HE=Sc,jE=hg,VE=gg,GE=Object.prototype,WE=GE.hasOwnProperty;function ZE(e,r){var t=UE(e),n=!t&&kE(e),a=!t&&!n&&HE(e),i=!t&&!n&&!a&&VE(e),o=t||n||a||i,s=o?qE(e.length,String):[],u=s.length;for(var l in e)(r||WE.call(e,l))&&!(o&&(l=="length"||a&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||jE(l,u)))&&s.push(l);return s}var yg=ZE,YE=Object.prototype;function XE(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||YE;return e===t}var Nc=XE;function KE(e,r){return function(t){return e(r(t))}}var bg=KE,JE=bg,QE=JE(Object.keys,Object),eS=QE,rS=Nc,tS=eS,nS=Object.prototype,aS=nS.hasOwnProperty;function iS(e){if(!rS(e))return tS(e);var r=[];for(var t in Object(e))aS.call(e,t)&&t!="constructor"&&r.push(t);return r}var oS=iS;function sS(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var fi=sS,uS=oa,lS=fi,cS="[object AsyncFunction]",fS="[object Function]",pS="[object GeneratorFunction]",dS="[object Proxy]";function vS(e){if(!lS(e))return!1;var r=uS(e);return r==fS||r==pS||r==cS||r==dS}var xg=vS,mS=xg,hS=Ac;function gS(e){return e!=null&&hS(e.length)&&!mS(e)}var Js=gS,yS=yg,bS=oS,xS=Js;function wS(e){return xS(e)?yS(e):bS(e)}var po=wS,ES=U5,SS=po;function AS(e,r){return e&&ES(e,r,SS)}var wg=AS;function DS(e){return e}var Eg=DS,CS=Eg;function NS(e){return typeof e=="function"?e:CS}var MS=NS,TS=wg,OS=MS;function _S(e,r){return e&&TS(e,OS(r))}var Mc=_S,$S=bg,FS=$S(Object.getPrototypeOf,Object),Tc=FS,BS=oa,RS=Tc,PS=Dn,zS="[object Object]",IS=Function.prototype,LS=Object.prototype,Sg=IS.toString,qS=LS.hasOwnProperty,kS=Sg.call(Object);function US(e){if(!PS(e)||BS(e)!=zS)return!1;var r=RS(e);if(r===null)return!0;var t=qS.call(r,"constructor")&&r.constructor;return typeof t=="function"&&t instanceof t&&Sg.call(t)==kS}var HS=US;function jS(e,r){for(var t=-1,n=e==null?0:e.length,a=Array(n);++t<n;)a[t]=r(e[t],t,e);return a}var Ag=jS;function VS(){this.__data__=[],this.size=0}var GS=VS;function WS(e,r){return e===r||e!==e&&r!==r}var Oc=WS,ZS=Oc;function YS(e,r){for(var t=e.length;t--;)if(ZS(e[t][0],r))return t;return-1}var Qs=YS,XS=Qs,KS=Array.prototype,JS=KS.splice;function QS(e){var r=this.__data__,t=XS(r,e);if(t<0)return!1;var n=r.length-1;return t==n?r.pop():JS.call(r,t,1),--this.size,!0}var eA=QS,rA=Qs;function tA(e){var r=this.__data__,t=rA(r,e);return t<0?void 0:r[t][1]}var nA=tA,aA=Qs;function iA(e){return aA(this.__data__,e)>-1}var oA=iA,sA=Qs;function uA(e,r){var t=this.__data__,n=sA(t,e);return n<0?(++this.size,t.push([e,r])):t[n][1]=r,this}var lA=uA,cA=GS,fA=eA,pA=nA,dA=oA,vA=lA;function pi(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}pi.prototype.clear=cA;pi.prototype.delete=fA;pi.prototype.get=pA;pi.prototype.has=dA;pi.prototype.set=vA;var eu=pi,mA=eu;function hA(){this.__data__=new mA,this.size=0}var gA=hA;function yA(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}var bA=yA;function xA(e){return this.__data__.get(e)}var wA=xA;function EA(e){return this.__data__.has(e)}var SA=EA,AA=ln,DA=AA["__core-js_shared__"],CA=DA,el=CA,Vp=function(){var e=/[^.]+$/.exec(el&&el.keys&&el.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function NA(e){return!!Vp&&Vp in e}var MA=NA,TA=Function.prototype,OA=TA.toString;function _A(e){if(e!=null){try{return OA.call(e)}catch{}try{return e+""}catch{}}return""}var Dg=_A,$A=xg,FA=MA,BA=fi,RA=Dg,PA=/[\\^$.*+?()[\]{}|]/g,zA=/^\[object .+?Constructor\]$/,IA=Function.prototype,LA=Object.prototype,qA=IA.toString,kA=LA.hasOwnProperty,UA=RegExp("^"+qA.call(kA).replace(PA,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function HA(e){if(!BA(e)||FA(e))return!1;var r=$A(e)?UA:zA;return r.test(RA(e))}var jA=HA;function VA(e,r){return e==null?void 0:e[r]}var GA=VA,WA=jA,ZA=GA;function YA(e,r){var t=ZA(e,r);return WA(t)?t:void 0}var sa=YA,XA=sa,KA=ln,JA=XA(KA,"Map"),_c=JA,QA=sa,eD=QA(Object,"create"),ru=eD,Gp=ru;function rD(){this.__data__=Gp?Gp(null):{},this.size=0}var tD=rD;function nD(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}var aD=nD,iD=ru,oD="__lodash_hash_undefined__",sD=Object.prototype,uD=sD.hasOwnProperty;function lD(e){var r=this.__data__;if(iD){var t=r[e];return t===oD?void 0:t}return uD.call(r,e)?r[e]:void 0}var cD=lD,fD=ru,pD=Object.prototype,dD=pD.hasOwnProperty;function vD(e){var r=this.__data__;return fD?r[e]!==void 0:dD.call(r,e)}var mD=vD,hD=ru,gD="__lodash_hash_undefined__";function yD(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=hD&&r===void 0?gD:r,this}var bD=yD,xD=tD,wD=aD,ED=cD,SD=mD,AD=bD;function di(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}di.prototype.clear=xD;di.prototype.delete=wD;di.prototype.get=ED;di.prototype.has=SD;di.prototype.set=AD;var DD=di,Wp=DD,CD=eu,ND=_c;function MD(){this.size=0,this.__data__={hash:new Wp,map:new(ND||CD),string:new Wp}}var TD=MD;function OD(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}var _D=OD,$D=_D;function FD(e,r){var t=e.__data__;return $D(r)?t[typeof r=="string"?"string":"hash"]:t.map}var tu=FD,BD=tu;function RD(e){var r=BD(this,e).delete(e);return this.size-=r?1:0,r}var PD=RD,zD=tu;function ID(e){return zD(this,e).get(e)}var LD=ID,qD=tu;function kD(e){return qD(this,e).has(e)}var UD=kD,HD=tu;function jD(e,r){var t=HD(this,e),n=t.size;return t.set(e,r),this.size+=t.size==n?0:1,this}var VD=jD,GD=TD,WD=PD,ZD=LD,YD=UD,XD=VD;function vi(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}vi.prototype.clear=GD;vi.prototype.delete=WD;vi.prototype.get=ZD;vi.prototype.has=YD;vi.prototype.set=XD;var $c=vi,KD=eu,JD=_c,QD=$c,eC=200;function rC(e,r){var t=this.__data__;if(t instanceof KD){var n=t.__data__;if(!JD||n.length<eC-1)return n.push([e,r]),this.size=++t.size,this;t=this.__data__=new QD(n)}return t.set(e,r),this.size=t.size,this}var tC=rC,nC=eu,aC=gA,iC=bA,oC=wA,sC=SA,uC=tC;function mi(e){var r=this.__data__=new nC(e);this.size=r.size}mi.prototype.clear=aC;mi.prototype.delete=iC;mi.prototype.get=oC;mi.prototype.has=sC;mi.prototype.set=uC;var Fc=mi,lC="__lodash_hash_undefined__";function cC(e){return this.__data__.set(e,lC),this}var fC=cC;function pC(e){return this.__data__.has(e)}var dC=pC,vC=$c,mC=fC,hC=dC;function bs(e){var r=-1,t=e==null?0:e.length;for(this.__data__=new vC;++r<t;)this.add(e[r])}bs.prototype.add=bs.prototype.push=mC;bs.prototype.has=hC;var gC=bs;function yC(e,r){for(var t=-1,n=e==null?0:e.length;++t<n;)if(r(e[t],t,e))return!0;return!1}var bC=yC;function xC(e,r){return e.has(r)}var wC=xC,EC=gC,SC=bC,AC=wC,DC=1,CC=2;function NC(e,r,t,n,a,i){var o=t&DC,s=e.length,u=r.length;if(s!=u&&!(o&&u>s))return!1;var l=i.get(e),c=i.get(r);if(l&&c)return l==r&&c==e;var f=-1,p=!0,d=t&CC?new EC:void 0;for(i.set(e,r),i.set(r,e);++f<s;){var v=e[f],m=r[f];if(n)var g=o?n(m,v,f,r,e,i):n(v,m,f,e,r,i);if(g!==void 0){if(g)continue;p=!1;break}if(d){if(!SC(r,function(y,E){if(!AC(d,E)&&(v===y||a(v,y,t,n,i)))return d.push(E)})){p=!1;break}}else if(!(v===m||a(v,m,t,n,i))){p=!1;break}}return i.delete(e),i.delete(r),p}var Cg=NC,MC=ln,TC=MC.Uint8Array,Ng=TC;function OC(e){var r=-1,t=Array(e.size);return e.forEach(function(n,a){t[++r]=[a,n]}),t}var _C=OC;function $C(e){var r=-1,t=Array(e.size);return e.forEach(function(n){t[++r]=n}),t}var FC=$C,Zp=fo,Yp=Ng,BC=Oc,RC=Cg,PC=_C,zC=FC,IC=1,LC=2,qC="[object Boolean]",kC="[object Date]",UC="[object Error]",HC="[object Map]",jC="[object Number]",VC="[object RegExp]",GC="[object Set]",WC="[object String]",ZC="[object Symbol]",YC="[object ArrayBuffer]",XC="[object DataView]",Xp=Zp?Zp.prototype:void 0,rl=Xp?Xp.valueOf:void 0;function KC(e,r,t,n,a,i,o){switch(t){case XC:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case YC:return!(e.byteLength!=r.byteLength||!i(new Yp(e),new Yp(r)));case qC:case kC:case jC:return BC(+e,+r);case UC:return e.name==r.name&&e.message==r.message;case VC:case WC:return e==r+"";case HC:var s=PC;case GC:var u=n&IC;if(s||(s=zC),e.size!=r.size&&!u)return!1;var l=o.get(e);if(l)return l==r;n|=LC,o.set(e,r);var c=RC(s(e),s(r),n,a,i,o);return o.delete(e),c;case ZC:if(rl)return rl.call(e)==rl.call(r)}return!1}var JC=KC;function QC(e,r){for(var t=-1,n=r.length,a=e.length;++t<n;)e[a+t]=r[t];return e}var Mg=QC,eN=Mg,rN=Jt;function tN(e,r,t){var n=r(e);return rN(e)?n:eN(n,t(e))}var Tg=tN;function nN(e,r){for(var t=-1,n=e==null?0:e.length,a=0,i=[];++t<n;){var o=e[t];r(o,t,e)&&(i[a++]=o)}return i}var aN=nN;function iN(){return[]}var Og=iN,oN=aN,sN=Og,uN=Object.prototype,lN=uN.propertyIsEnumerable,Kp=Object.getOwnPropertySymbols,cN=Kp?function(e){return e==null?[]:(e=Object(e),oN(Kp(e),function(r){return lN.call(e,r)}))}:sN,Bc=cN,fN=Tg,pN=Bc,dN=po;function vN(e){return fN(e,dN,pN)}var _g=vN,Jp=_g,mN=1,hN=Object.prototype,gN=hN.hasOwnProperty;function yN(e,r,t,n,a,i){var o=t&mN,s=Jp(e),u=s.length,l=Jp(r),c=l.length;if(u!=c&&!o)return!1;for(var f=u;f--;){var p=s[f];if(!(o?p in r:gN.call(r,p)))return!1}var d=i.get(e),v=i.get(r);if(d&&v)return d==r&&v==e;var m=!0;i.set(e,r),i.set(r,e);for(var g=o;++f<u;){p=s[f];var y=e[p],E=r[p];if(n)var h=o?n(E,y,p,r,e,i):n(y,E,p,e,r,i);if(!(h===void 0?y===E||a(y,E,t,n,i):h)){m=!1;break}g||(g=p=="constructor")}if(m&&!g){var w=e.constructor,x=r.constructor;w!=x&&"constructor"in e&&"constructor"in r&&!(typeof w=="function"&&w instanceof w&&typeof x=="function"&&x instanceof x)&&(m=!1)}return i.delete(e),i.delete(r),m}var bN=yN,xN=sa,wN=ln,EN=xN(wN,"DataView"),SN=EN,AN=sa,DN=ln,CN=AN(DN,"Promise"),NN=CN,MN=sa,TN=ln,ON=MN(TN,"Set"),_N=ON,$N=sa,FN=ln,BN=$N(FN,"WeakMap"),RN=BN,Fl=SN,Bl=_c,Rl=NN,Pl=_N,zl=RN,$g=oa,hi=Dg,Qp="[object Map]",PN="[object Object]",ed="[object Promise]",rd="[object Set]",td="[object WeakMap]",nd="[object DataView]",zN=hi(Fl),IN=hi(Bl),LN=hi(Rl),qN=hi(Pl),kN=hi(zl),Qn=$g;(Fl&&Qn(new Fl(new ArrayBuffer(1)))!=nd||Bl&&Qn(new Bl)!=Qp||Rl&&Qn(Rl.resolve())!=ed||Pl&&Qn(new Pl)!=rd||zl&&Qn(new zl)!=td)&&(Qn=function(e){var r=$g(e),t=r==PN?e.constructor:void 0,n=t?hi(t):"";if(n)switch(n){case zN:return nd;case IN:return Qp;case LN:return ed;case qN:return rd;case kN:return td}return r});var nu=Qn,tl=Fc,UN=Cg,HN=JC,jN=bN,ad=nu,id=Jt,od=Sc,VN=gg,GN=1,sd="[object Arguments]",ud="[object Array]",ko="[object Object]",WN=Object.prototype,ld=WN.hasOwnProperty;function ZN(e,r,t,n,a,i){var o=id(e),s=id(r),u=o?ud:ad(e),l=s?ud:ad(r);u=u==sd?ko:u,l=l==sd?ko:l;var c=u==ko,f=l==ko,p=u==l;if(p&&od(e)){if(!od(r))return!1;o=!0,c=!1}if(p&&!c)return i||(i=new tl),o||VN(e)?UN(e,r,t,n,a,i):HN(e,r,u,t,n,a,i);if(!(t&GN)){var d=c&&ld.call(e,"__wrapped__"),v=f&&ld.call(r,"__wrapped__");if(d||v){var m=d?e.value():e,g=v?r.value():r;return i||(i=new tl),a(m,g,t,n,i)}}return p?(i||(i=new tl),jN(e,r,t,n,a,i)):!1}var YN=ZN,XN=YN,cd=Dn;function Fg(e,r,t,n,a){return e===r?!0:e==null||r==null||!cd(e)&&!cd(r)?e!==e&&r!==r:XN(e,r,t,n,Fg,a)}var Bg=Fg,KN=Fc,JN=Bg,QN=1,e6=2;function r6(e,r,t,n){var a=t.length,i=a,o=!n;if(e==null)return!i;for(e=Object(e);a--;){var s=t[a];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<i;){s=t[a];var u=s[0],l=e[u],c=s[1];if(o&&s[2]){if(l===void 0&&!(u in e))return!1}else{var f=new KN;if(n)var p=n(l,c,u,e,r,f);if(!(p===void 0?JN(c,l,QN|e6,n,f):p))return!1}}return!0}var t6=r6,n6=fi;function a6(e){return e===e&&!n6(e)}var Rg=a6,i6=Rg,o6=po;function s6(e){for(var r=o6(e),t=r.length;t--;){var n=r[t],a=e[n];r[t]=[n,a,i6(a)]}return r}var u6=s6;function l6(e,r){return function(t){return t==null?!1:t[e]===r&&(r!==void 0||e in Object(t))}}var Pg=l6,c6=t6,f6=u6,p6=Pg;function d6(e){var r=f6(e);return r.length==1&&r[0][2]?p6(r[0][0],r[0][1]):function(t){return t===e||c6(t,e,r)}}var v6=d6,m6=oa,h6=Dn,g6="[object Symbol]";function y6(e){return typeof e=="symbol"||h6(e)&&m6(e)==g6}var Rc=y6,b6=Jt,x6=Rc,w6=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,E6=/^\w*$/;function S6(e,r){if(b6(e))return!1;var t=typeof e;return t=="number"||t=="symbol"||t=="boolean"||e==null||x6(e)?!0:E6.test(e)||!w6.test(e)||r!=null&&e in Object(r)}var Pc=S6,zg=$c,A6="Expected a function";function zc(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(A6);var t=function(){var n=arguments,a=r?r.apply(this,n):n[0],i=t.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return t.cache=i.set(a,o)||i,o};return t.cache=new(zc.Cache||zg),t}zc.Cache=zg;var D6=zc,C6=D6,N6=500;function M6(e){var r=C6(e,function(n){return t.size===N6&&t.clear(),n}),t=r.cache;return r}var T6=M6,O6=T6,_6=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$6=/\\(\\)?/g,F6=O6(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(_6,function(t,n,a,i){r.push(a?i.replace($6,"$1"):n||t)}),r}),B6=F6,fd=fo,R6=Ag,P6=Jt,z6=Rc,I6=1/0,pd=fd?fd.prototype:void 0,dd=pd?pd.toString:void 0;function Ig(e){if(typeof e=="string")return e;if(P6(e))return R6(e,Ig)+"";if(z6(e))return dd?dd.call(e):"";var r=e+"";return r=="0"&&1/e==-I6?"-0":r}var L6=Ig,q6=L6;function k6(e){return e==null?"":q6(e)}var U6=k6,H6=Jt,j6=Pc,V6=B6,G6=U6;function W6(e,r){return H6(e)?e:j6(e,r)?[e]:V6(G6(e))}var Lg=W6,Z6=Rc,Y6=1/0;function X6(e){if(typeof e=="string"||Z6(e))return e;var r=e+"";return r=="0"&&1/e==-Y6?"-0":r}var au=X6,K6=Lg,J6=au;function Q6(e,r){r=K6(r,e);for(var t=0,n=r.length;e!=null&&t<n;)e=e[J6(r[t++])];return t&&t==n?e:void 0}var qg=Q6,e8=qg;function r8(e,r,t){var n=e==null?void 0:e8(e,r);return n===void 0?t:n}var t8=r8;function n8(e,r){return e!=null&&r in Object(e)}var a8=n8,i8=Lg,o8=mg,s8=Jt,u8=hg,l8=Ac,c8=au;function f8(e,r,t){r=i8(r,e);for(var n=-1,a=r.length,i=!1;++n<a;){var o=c8(r[n]);if(!(i=e!=null&&t(e,o)))break;e=e[o]}return i||++n!=a?i:(a=e==null?0:e.length,!!a&&l8(a)&&u8(o,a)&&(s8(e)||o8(e)))}var p8=f8,d8=a8,v8=p8;function m8(e,r){return e!=null&&v8(e,r,d8)}var h8=m8,g8=Bg,y8=t8,b8=h8,x8=Pc,w8=Rg,E8=Pg,S8=au,A8=1,D8=2;function C8(e,r){return x8(e)&&w8(r)?E8(S8(e),r):function(t){var n=y8(t,e);return n===void 0&&n===r?b8(t,e):g8(r,n,A8|D8)}}var N8=C8;function M8(e){return function(r){return r==null?void 0:r[e]}}var T8=M8,O8=qg;function _8(e){return function(r){return O8(r,e)}}var $8=_8,F8=T8,B8=$8,R8=Pc,P8=au;function z8(e){return R8(e)?F8(P8(e)):B8(e)}var I8=z8,L8=v6,q8=N8,k8=Eg,U8=Jt,H8=I8;function j8(e){return typeof e=="function"?e:e==null?k8:typeof e=="object"?U8(e)?q8(e[0],e[1]):L8(e):H8(e)}var V8=j8,G8=Js;function W8(e,r){return function(t,n){if(t==null)return t;if(!G8(t))return e(t,n);for(var a=t.length,i=r?a:-1,o=Object(t);(r?i--:++i<a)&&n(o[i],i,o)!==!1;);return t}}var Z8=W8,Y8=wg,X8=Z8,K8=X8(Y8),J8=K8,Q8=J8,eM=Js;function rM(e,r){var t=-1,n=eM(e)?Array(e.length):[];return Q8(e,function(a,i,o){n[++t]=r(a,i,o)}),n}var tM=rM,nM=Ag,aM=V8,iM=tM,oM=Jt;function sM(e,r){var t=oM(e)?nM:iM;return t(e,aM(r))}var uM=sM;Object.defineProperty(co,"__esModule",{value:!0});co.flattenNames=void 0;var lM=z5,cM=iu(lM),fM=Mc,pM=iu(fM),dM=HS,vM=iu(dM),mM=uM,hM=iu(mM);function iu(e){return e&&e.__esModule?e:{default:e}}var gM=co.flattenNames=function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=[];return(0,hM.default)(r,function(n){Array.isArray(n)?e(n).map(function(a){return t.push(a)}):(0,vM.default)(n)?(0,pM.default)(n,function(a,i){a===!0&&t.push(i),t.push(i+"-"+a)}):(0,cM.default)(n)&&t.push(n)}),t};co.default=gM;var vo={};function yM(e,r){for(var t=-1,n=e==null?0:e.length;++t<n&&r(e[t],t,e)!==!1;);return e}var bM=yM,xM=sa,wM=function(){try{var e=xM(Object,"defineProperty");return e({},"",{}),e}catch{}}(),EM=wM,vd=EM;function SM(e,r,t){r=="__proto__"&&vd?vd(e,r,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[r]=t}var kg=SM,AM=kg,DM=Oc,CM=Object.prototype,NM=CM.hasOwnProperty;function MM(e,r,t){var n=e[r];(!(NM.call(e,r)&&DM(n,t))||t===void 0&&!(r in e))&&AM(e,r,t)}var Ug=MM,TM=Ug,OM=kg;function _M(e,r,t,n){var a=!t;t||(t={});for(var i=-1,o=r.length;++i<o;){var s=r[i],u=n?n(t[s],e[s],s,t,e):void 0;u===void 0&&(u=e[s]),a?OM(t,s,u):TM(t,s,u)}return t}var ou=_M,$M=ou,FM=po;function BM(e,r){return e&&$M(r,FM(r),e)}var RM=BM;function PM(e){var r=[];if(e!=null)for(var t in Object(e))r.push(t);return r}var zM=PM,IM=fi,LM=Nc,qM=zM,kM=Object.prototype,UM=kM.hasOwnProperty;function HM(e){if(!IM(e))return qM(e);var r=LM(e),t=[];for(var n in e)n=="constructor"&&(r||!UM.call(e,n))||t.push(n);return t}var jM=HM,VM=yg,GM=jM,WM=Js;function ZM(e){return WM(e)?VM(e,!0):GM(e)}var Ic=ZM,YM=ou,XM=Ic;function KM(e,r){return e&&YM(r,XM(r),e)}var JM=KM,xs={exports:{}};xs.exports;(function(e,r){var t=ln,n=r&&!r.nodeType&&r,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i?t.Buffer:void 0,s=o?o.allocUnsafe:void 0;function u(l,c){if(c)return l.slice();var f=l.length,p=s?s(f):new l.constructor(f);return l.copy(p),p}e.exports=u})(xs,xs.exports);var QM=xs.exports;function e7(e,r){var t=-1,n=e.length;for(r||(r=Array(n));++t<n;)r[t]=e[t];return r}var r7=e7,t7=ou,n7=Bc;function a7(e,r){return t7(e,n7(e),r)}var i7=a7,o7=Mg,s7=Tc,u7=Bc,l7=Og,c7=Object.getOwnPropertySymbols,f7=c7?function(e){for(var r=[];e;)o7(r,u7(e)),e=s7(e);return r}:l7,Hg=f7,p7=ou,d7=Hg;function v7(e,r){return p7(e,d7(e),r)}var m7=v7,h7=Tg,g7=Hg,y7=Ic;function b7(e){return h7(e,y7,g7)}var x7=b7,w7=Object.prototype,E7=w7.hasOwnProperty;function S7(e){var r=e.length,t=new e.constructor(r);return r&&typeof e[0]=="string"&&E7.call(e,"index")&&(t.index=e.index,t.input=e.input),t}var A7=S7,md=Ng;function D7(e){var r=new e.constructor(e.byteLength);return new md(r).set(new md(e)),r}var Lc=D7,C7=Lc;function N7(e,r){var t=r?C7(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}var M7=N7,T7=/\w*$/;function O7(e){var r=new e.constructor(e.source,T7.exec(e));return r.lastIndex=e.lastIndex,r}var _7=O7,hd=fo,gd=hd?hd.prototype:void 0,yd=gd?gd.valueOf:void 0;function $7(e){return yd?Object(yd.call(e)):{}}var F7=$7,B7=Lc;function R7(e,r){var t=r?B7(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}var P7=R7,z7=Lc,I7=M7,L7=_7,q7=F7,k7=P7,U7="[object Boolean]",H7="[object Date]",j7="[object Map]",V7="[object Number]",G7="[object RegExp]",W7="[object Set]",Z7="[object String]",Y7="[object Symbol]",X7="[object ArrayBuffer]",K7="[object DataView]",J7="[object Float32Array]",Q7="[object Float64Array]",e9="[object Int8Array]",r9="[object Int16Array]",t9="[object Int32Array]",n9="[object Uint8Array]",a9="[object Uint8ClampedArray]",i9="[object Uint16Array]",o9="[object Uint32Array]";function s9(e,r,t){var n=e.constructor;switch(r){case X7:return z7(e);case U7:case H7:return new n(+e);case K7:return I7(e,t);case J7:case Q7:case e9:case r9:case t9:case n9:case a9:case i9:case o9:return k7(e,t);case j7:return new n;case V7:case Z7:return new n(e);case G7:return L7(e);case W7:return new n;case Y7:return q7(e)}}var u9=s9,l9=fi,bd=Object.create,c9=function(){function e(){}return function(r){if(!l9(r))return{};if(bd)return bd(r);e.prototype=r;var t=new e;return e.prototype=void 0,t}}(),f9=c9,p9=f9,d9=Tc,v9=Nc;function m9(e){return typeof e.constructor=="function"&&!v9(e)?p9(d9(e)):{}}var h9=m9,g9=nu,y9=Dn,b9="[object Map]";function x9(e){return y9(e)&&g9(e)==b9}var w9=x9,E9=w9,S9=Dc,xd=Cc,wd=xd&&xd.isMap,A9=wd?S9(wd):E9,D9=A9,C9=nu,N9=Dn,M9="[object Set]";function T9(e){return N9(e)&&C9(e)==M9}var O9=T9,_9=O9,$9=Dc,Ed=Cc,Sd=Ed&&Ed.isSet,F9=Sd?$9(Sd):_9,B9=F9,R9=Fc,P9=bM,z9=Ug,I9=RM,L9=JM,q9=QM,k9=r7,U9=i7,H9=m7,j9=_g,V9=x7,G9=nu,W9=A7,Z9=u9,Y9=h9,X9=Jt,K9=Sc,J9=D9,Q9=fi,eT=B9,rT=po,tT=Ic,nT=1,aT=2,iT=4,jg="[object Arguments]",oT="[object Array]",sT="[object Boolean]",uT="[object Date]",lT="[object Error]",Vg="[object Function]",cT="[object GeneratorFunction]",fT="[object Map]",pT="[object Number]",Gg="[object Object]",dT="[object RegExp]",vT="[object Set]",mT="[object String]",hT="[object Symbol]",gT="[object WeakMap]",yT="[object ArrayBuffer]",bT="[object DataView]",xT="[object Float32Array]",wT="[object Float64Array]",ET="[object Int8Array]",ST="[object Int16Array]",AT="[object Int32Array]",DT="[object Uint8Array]",CT="[object Uint8ClampedArray]",NT="[object Uint16Array]",MT="[object Uint32Array]",Or={};Or[jg]=Or[oT]=Or[yT]=Or[bT]=Or[sT]=Or[uT]=Or[xT]=Or[wT]=Or[ET]=Or[ST]=Or[AT]=Or[fT]=Or[pT]=Or[Gg]=Or[dT]=Or[vT]=Or[mT]=Or[hT]=Or[DT]=Or[CT]=Or[NT]=Or[MT]=!0;Or[lT]=Or[Vg]=Or[gT]=!1;function ps(e,r,t,n,a,i){var o,s=r&nT,u=r&aT,l=r&iT;if(t&&(o=a?t(e,n,a,i):t(e)),o!==void 0)return o;if(!Q9(e))return e;var c=X9(e);if(c){if(o=W9(e),!s)return k9(e,o)}else{var f=G9(e),p=f==Vg||f==cT;if(K9(e))return q9(e,s);if(f==Gg||f==jg||p&&!a){if(o=u||p?{}:Y9(e),!s)return u?H9(e,L9(o,e)):U9(e,I9(o,e))}else{if(!Or[f])return a?e:{};o=Z9(e,f,s)}}i||(i=new R9);var d=i.get(e);if(d)return d;i.set(e,o),eT(e)?e.forEach(function(g){o.add(ps(g,r,t,g,e,i))}):J9(e)&&e.forEach(function(g,y){o.set(y,ps(g,r,t,y,e,i))});var v=l?u?V9:j9:u?tT:rT,m=c?void 0:v(e);return P9(m||e,function(g,y){m&&(y=g,g=e[y]),z9(o,y,ps(g,r,t,y,e,i))}),o}var TT=ps,OT=TT,_T=1,$T=4;function FT(e){return OT(e,_T|$T)}var BT=FT;Object.defineProperty(vo,"__esModule",{value:!0});vo.mergeClasses=void 0;var RT=Mc,PT=Wg(RT),zT=BT,IT=Wg(zT),LT=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};function Wg(e){return e&&e.__esModule?e:{default:e}}var qT=vo.mergeClasses=function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=r.default&&(0,IT.default)(r.default)||{};return t.map(function(a){var i=r[a];return i&&(0,PT.default)(i,function(o,s){n[s]||(n[s]={}),n[s]=LT({},n[s],i[s])}),a}),n};vo.default=qT;var mo={};Object.defineProperty(mo,"__esModule",{value:!0});mo.autoprefix=void 0;var kT=Mc,Ad=HT(kT),UT=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};function HT(e){return e&&e.__esModule?e:{default:e}}var jT={borderRadius:function(r){return{msBorderRadius:r,MozBorderRadius:r,OBorderRadius:r,WebkitBorderRadius:r,borderRadius:r}},boxShadow:function(r){return{msBoxShadow:r,MozBoxShadow:r,OBoxShadow:r,WebkitBoxShadow:r,boxShadow:r}},userSelect:function(r){return{WebkitTouchCallout:r,KhtmlUserSelect:r,MozUserSelect:r,msUserSelect:r,WebkitUserSelect:r,userSelect:r}},flex:function(r){return{WebkitBoxFlex:r,MozBoxFlex:r,WebkitFlex:r,msFlex:r,flex:r}},flexBasis:function(r){return{WebkitFlexBasis:r,flexBasis:r}},justifyContent:function(r){return{WebkitJustifyContent:r,justifyContent:r}},transition:function(r){return{msTransition:r,MozTransition:r,OTransition:r,WebkitTransition:r,transition:r}},transform:function(r){return{msTransform:r,MozTransform:r,OTransform:r,WebkitTransform:r,transform:r}},absolute:function(r){var t=r&&r.split(" ");return{position:"absolute",top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(r,t){var n=t[r];return n||{extend:r}}},VT=mo.autoprefix=function(r){var t={};return(0,Ad.default)(r,function(n,a){var i={};(0,Ad.default)(n,function(o,s){var u=jT[s];u?i=UT({},i,u(o)):i[s]=o}),t[a]=i}),t};mo.default=VT;var ho={};Object.defineProperty(ho,"__esModule",{value:!0});ho.hover=void 0;var GT=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},WT=_,nl=ZT(WT);function ZT(e){return e&&e.__esModule?e:{default:e}}function YT(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Dd(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:e}function XT(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}var KT=ho.hover=function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){XT(a,n);function a(){var i,o,s,u;YT(this,a);for(var l=arguments.length,c=Array(l),f=0;f<l;f++)c[f]=arguments[f];return u=(o=(s=Dd(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(c))),s),s.state={hover:!1},s.handleMouseOver=function(){return s.setState({hover:!0})},s.handleMouseOut=function(){return s.setState({hover:!1})},s.render=function(){return nl.default.createElement(t,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},nl.default.createElement(r,GT({},s.props,s.state)))},o),Dd(s,u)}return a}(nl.default.Component)};ho.default=KT;var go={};Object.defineProperty(go,"__esModule",{value:!0});go.active=void 0;var JT=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},QT=_,al=eO(QT);function eO(e){return e&&e.__esModule?e:{default:e}}function rO(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Cd(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:e}function tO(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}var nO=go.active=function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){tO(a,n);function a(){var i,o,s,u;rO(this,a);for(var l=arguments.length,c=Array(l),f=0;f<l;f++)c[f]=arguments[f];return u=(o=(s=Cd(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(c))),s),s.state={active:!1},s.handleMouseDown=function(){return s.setState({active:!0})},s.handleMouseUp=function(){return s.setState({active:!1})},s.render=function(){return al.default.createElement(t,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},al.default.createElement(r,JT({},s.props,s.state)))},o),Cd(s,u)}return a}(al.default.Component)};go.default=nO;var qc={};Object.defineProperty(qc,"__esModule",{value:!0});var aO=function(r,t){var n={},a=function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n[o]=s};return r===0&&a("first-child"),r===t-1&&a("last-child"),(r===0||r%2===0)&&a("even"),Math.abs(r%2)===1&&a("odd"),a("nth-child",r),n};qc.default=aO;Object.defineProperty(Pt,"__esModule",{value:!0});Pt.ReactCSS=Pt.loop=Pt.handleActive=kc=Pt.handleHover=Pt.hover=void 0;var iO=co,oO=gi(iO),sO=vo,uO=gi(sO),lO=mo,cO=gi(lO),fO=ho,Zg=gi(fO),pO=go,dO=gi(pO),vO=qc,mO=gi(vO);function gi(e){return e&&e.__esModule?e:{default:e}}Pt.hover=Zg.default;var kc=Pt.handleHover=Zg.default;Pt.handleActive=dO.default;Pt.loop=mO.default;var hO=Pt.ReactCSS=function(r){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];var i=(0,oO.default)(n),o=(0,uO.default)(r,i);return(0,cO.default)(o)},Ye=Pt.default=hO,gO=function(r,t,n,a,i){var o=i.clientWidth,s=i.clientHeight,u=typeof r.pageX=="number"?r.pageX:r.touches[0].pageX,l=typeof r.pageY=="number"?r.pageY:r.touches[0].pageY,c=u-(i.getBoundingClientRect().left+window.pageXOffset),f=l-(i.getBoundingClientRect().top+window.pageYOffset);if(n==="vertical"){var p=void 0;if(f<0?p=0:f>s?p=1:p=Math.round(f*100/s)/100,t.a!==p)return{h:t.h,s:t.s,l:t.l,a:p,source:"rgb"}}else{var d=void 0;if(c<0?d=0:c>o?d=1:d=Math.round(c*100/o)/100,a!==d)return{h:t.h,s:t.s,l:t.l,a:d,source:"rgb"}}return null},il={},yO=function(r,t,n,a){if(typeof document>"u"&&!a)return null;var i=a?new a:document.createElement("canvas");i.width=n*2,i.height=n*2;var o=i.getContext("2d");return o?(o.fillStyle=r,o.fillRect(0,0,i.width,i.height),o.fillStyle=t,o.fillRect(0,0,n,n),o.translate(n,n),o.fillRect(0,0,n,n),i.toDataURL()):null},bO=function(r,t,n,a){var i=r+"-"+t+"-"+n+(a?"-server":"");if(il[i])return il[i];var o=yO(r,t,n,a);return il[i]=o,o},Nd=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},yi=function(r){var t=r.white,n=r.grey,a=r.size,i=r.renderers,o=r.borderRadius,s=r.boxShadow,u=r.children,l=Ye({default:{grid:{borderRadius:o,boxShadow:s,absolute:"0px 0px 0px 0px",background:"url("+bO(t,n,a,i.canvas)+") center left"}}});return _.isValidElement(u)?_.cloneElement(u,Nd({},u.props,{style:Nd({},u.props.style,l.grid)})):_.createElement("div",{style:l.grid})};yi.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var xO=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},wO=function(){function e(r,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,a.key,a)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}();function EO(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Md(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:e}function SO(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}var Uc=function(e){SO(r,e);function r(){var t,n,a,i;EO(this,r);for(var o=arguments.length,s=Array(o),u=0;u<o;u++)s[u]=arguments[u];return i=(n=(a=Md(this,(t=r.__proto__||Object.getPrototypeOf(r)).call.apply(t,[this].concat(s))),a),a.handleChange=function(l){var c=gO(l,a.props.hsl,a.props.direction,a.props.a,a.container);c&&typeof a.props.onChange=="function"&&a.props.onChange(c,l)},a.handleMouseDown=function(l){a.handleChange(l),window.addEventListener("mousemove",a.handleChange),window.addEventListener("mouseup",a.handleMouseUp)},a.handleMouseUp=function(){a.unbindEventListeners()},a.unbindEventListeners=function(){window.removeEventListener("mousemove",a.handleChange),window.removeEventListener("mouseup",a.handleMouseUp)},n),Md(a,i)}return wO(r,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var n=this,a=this.props.rgb,i=Ye({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+a.r+","+a.g+","+a.b+`, 0) 0%,
|
|
25
|
+
Check the top-level render call using <`+Be+">.")}return Te}}function Ro(ee,Te){{if(!ee._store||ee._store.validated||ee.key!=null)return;ee._store.validated=!0;var Be=Wu(Te);if(Bo[Be])return;Bo[Be]=!0;var Ve="";ee&&ee._owner&&ee._owner!==pe.current&&(Ve=" It was passed a child from "+B(ee._owner.type)+"."),qe(ee),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Be,Ve),qe(null)}}function Po(ee,Te){{if(typeof ee!="object")return;if(me(ee))for(var Be=0;Be<ee.length;Be++){var Ve=ee[Be];Xr(Ve)&&Ro(Ve,Te)}else if(Xr(ee))ee._store&&(ee._store.validated=!0);else if(ee){var gr=g(ee);if(typeof gr=="function"&&gr!==ee.entries)for(var Sr=gr.call(ee),pr;!(pr=Sr.next()).done;)Xr(pr.value)&&Ro(pr.value,Te)}}}function Zu(ee){{var Te=ee.type;if(Te==null||typeof Te=="string")return;var Be;if(typeof Te=="function")Be=Te.propTypes;else if(typeof Te=="object"&&(Te.$$typeof===u||Te.$$typeof===f))Be=Te.propTypes;else return;if(Be){var Ve=B(Te);oe(Be,ee.props,"prop",Ve,ee)}else if(Te.PropTypes!==void 0&&!Ge){Ge=!0;var gr=B(Te);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",gr||"Unknown")}typeof Te.getDefaultProps=="function"&&!Te.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Yu(ee){{for(var Te=Object.keys(ee.props),Be=0;Be<Te.length;Be++){var Ve=Te[Be];if(Ve!=="children"&&Ve!=="key"){qe(ee),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Ve),qe(null);break}}ee.ref!==null&&(qe(ee),E("Invalid attribute `ref` supplied to `React.Fragment`."),qe(null))}}function zo(ee,Te,Be,Ve,gr,Sr){{var pr=C(ee);if(!pr){var lr="";(ee===void 0||typeof ee=="object"&&ee!==null&&Object.keys(ee).length===0)&&(lr+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Kr=Gu();Kr?lr+=Kr:lr+=Ca();var Pr;ee===null?Pr="null":me(ee)?Pr="array":ee!==void 0&&ee.$$typeof===r?(Pr="<"+(B(ee.type)||"Unknown")+" />",lr=" Did you accidentally export a JSX literal instead of a component?"):Pr=typeof ee,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Pr,lr)}var Ir=X(ee,Te,Be,gr,Sr);if(Ir==null)return Ir;if(pr){var gt=Te.children;if(gt!==void 0)if(Ve)if(me(gt)){for(var _n=0;_n<gt.length;_n++)Po(gt[_n],ee);Object.freeze&&Object.freeze(gt)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Po(gt,ee)}return ee===n?Yu(Ir):Zu(Ir),Ir}}function Xu(ee,Te,Be){return zo(ee,Te,Be,!0)}function Ku(ee,Te,Be){return zo(ee,Te,Be,!1)}var Ju=Ku,Qu=Xu;Lo.Fragment=n,Lo.jsx=Ju,Lo.jsxs=Qu}()),Lo}process.env.NODE_ENV==="production"?_l.exports=u3():_l.exports=l3();var Nt=_l.exports;function sg(e){var r,t,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(r=0;r<a;r++)e[r]&&(t=sg(e[r]))&&(n&&(n+=" "),n+=t)}else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function wc(){for(var e,r,t=0,n="",a=arguments.length;t<a;t++)(e=arguments[t])&&(r=sg(e))&&(n&&(n+=" "),n+=r);return n}var ug={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Fp=_.createContext&&_.createContext(ug),c3=["attr","size","title"];function f3(e,r){if(e==null)return{};var t=p3(e,r),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(r.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}function p3(e,r){if(e==null)return{};var t={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(r.indexOf(n)>=0)continue;t[n]=e[n]}return t}function ms(){return ms=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},ms.apply(this,arguments)}function Bp(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,n)}return t}function hs(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Bp(Object(t),!0).forEach(function(n){d3(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Bp(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function d3(e,r,t){return r=v3(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function v3(e){var r=m3(e,"string");return typeof r=="symbol"?r:r+""}function m3(e,r){if(typeof e!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function lg(e){return e&&e.map((r,t)=>_.createElement(r.tag,hs({key:t},r.attr),lg(r.child)))}function Ce(e){return r=>_.createElement(h3,ms({attr:hs({},e.attr)},r),lg(e.child))}function h3(e){var r=t=>{var{attr:n,size:a,title:i}=e,o=f3(e,c3),s=a||t.size||"1em",u;return t.className&&(u=t.className),e.className&&(u=(u?u+" ":"")+e.className),_.createElement("svg",ms({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,n,o,{className:u,style:hs(hs({color:e.color||t.color},t.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),i&&_.createElement("title",null,i),e.children)};return Fp!==void 0?_.createElement(Fp.Consumer,null,t=>r(t)):r(ug)}function g3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-200 0H360v-72h304v72z"},child:[]}]})(e)}function Rp(e){return Ce({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 0 0-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32z"},child:[]}]})(e)}function y3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0 1 38.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"},child:[]}]})(e)}function b3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z"},child:[]}]})(e)}function x3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM349.3 793.7H230.6V411.9h118.7v381.8zm-59.3-434a68.8 68.8 0 1 1 68.8-68.8c-.1 38-30.9 68.8-68.8 68.8zm503.7 434H675.1V608c0-44.3-.8-101.2-61.7-101.2-61.7 0-71.2 48.2-71.2 98v188.9H423.7V411.9h113.8v52.2h1.6c15.8-30 54.5-61.7 112.3-61.7 120.2 0 142.3 79.1 142.3 181.9v209.4z"},child:[]}]})(e)}function w3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z"},child:[]}]})(e)}function E3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"},child:[]}]})(e)}function S3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"},child:[]}]})(e)}function A3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 1024 1024",fill:"currentColor",fillRule:"evenodd"},child:[{tag:"path",attr:{d:"M799.855 166.312c.023.007.043.018.084.059l57.69 57.69c.041.041.052.06.059.084a.118.118 0 0 1 0 .069c-.007.023-.018.042-.059.083L569.926 512l287.703 287.703c.041.04.052.06.059.083a.118.118 0 0 1 0 .07c-.007.022-.018.042-.059.083l-57.69 57.69c-.041.041-.06.052-.084.059a.118.118 0 0 1-.069 0c-.023-.007-.042-.018-.083-.059L512 569.926 224.297 857.629c-.04.041-.06.052-.083.059a.118.118 0 0 1-.07 0c-.022-.007-.042-.018-.083-.059l-57.69-57.69c-.041-.041-.052-.06-.059-.084a.118.118 0 0 1 0-.069c.007-.023.018-.042.059-.083L454.073 512 166.371 224.297c-.041-.04-.052-.06-.059-.083a.118.118 0 0 1 0-.07c.007-.022.018-.042.059-.083l57.69-57.69c.041-.041.06-.052.084-.059a.118.118 0 0 1 .069 0c.023.007.042.018.083.059L512 454.073l287.703-287.702c.04-.041.06-.052.083-.059a.118.118 0 0 1 .07 0Z"},child:[]}]})(e)}function D3(e){return Ce({tag:"svg",attr:{t:"1569683683230",viewBox:"0 0 1024 1024",version:"1.1"},child:[{tag:"defs",attr:{},child:[]},{tag:"path",attr:{d:"M342 88H120c-17.7 0-32 14.3-32 32v224c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V168h174c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zM920 664h-48c-8.8 0-16 7.2-16 16v176H682c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h222c17.7 0 32-14.3 32-32V680c0-8.8-7.2-16-16-16zM342 856H168V680c0-8.8-7.2-16-16-16h-48c-8.8 0-16 7.2-16 16v224c0 17.7 14.3 32 32 32h222c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zM904 88H682c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h174v176c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V120c0-17.7-14.3-32-32-32z"},child:[]}]})(e)}function C3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"},child:[]}]})(e)}function N3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"},child:[]}]})(e)}function M3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 0 1 755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 0 1 512.1 856a342.24 342.24 0 0 1-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 0 0-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 0 0-8-8.2z"},child:[]}]})(e)}function T3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20.005 5.995h-1v2h1v8h-1v2h1c1.103 0 2-.897 2-2v-8c0-1.102-.898-2-2-2zm-14 4H15v4H6.005z"},child:[]},{tag:"path",attr:{d:"M17.005 17.995V4H20V2h-8v2h3.005v1.995h-11c-1.103 0-2 .897-2 2v8c0 1.103.897 2 2 2h11V20H12v2h8v-2h-2.995v-2.005zm-13-2v-8h11v8h-11z"},child:[]}]})(e)}function O3(e){return Ce({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M2 6a6 6 0 1 1 10.174 4.31c-.203.196-.359.4-.453.619l-.762 1.769A.5.5 0 0 1 10.5 13h-5a.5.5 0 0 1-.46-.302l-.761-1.77a2 2 0 0 0-.453-.618A5.98 5.98 0 0 1 2 6m3 8.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1l-.224.447a1 1 0 0 1-.894.553H6.618a1 1 0 0 1-.894-.553L5.5 15a.5.5 0 0 1-.5-.5"},child:[]}]})(e)}function _3(e){return Ce({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M7.27 2.047a1 1 0 0 1 1.46 0l6.345 6.77c.6.638.146 1.683-.73 1.683H11.5v3a1 1 0 0 1-1 1h-5a1 1 0 0 1-1-1v-3H1.654C.78 10.5.326 9.455.924 8.816z"},child:[]}]})(e)}function $3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"},child:[]}]})(e)}function F3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M349.9 236.3h-66.1v-59.4h66.1v59.4zm0-204.3h-66.1v60.7h66.1V32zm78.2 144.8H362v59.4h66.1v-59.4zm-156.3-72.1h-66.1v60.1h66.1v-60.1zm78.1 0h-66.1v60.1h66.1v-60.1zm276.8 100c-14.4-9.7-47.6-13.2-73.1-8.4-3.3-24-16.7-44.9-41.1-63.7l-14-9.3-9.3 14c-18.4 27.8-23.4 73.6-3.7 103.8-8.7 4.7-25.8 11.1-48.4 10.7H2.4c-8.7 50.8 5.8 116.8 44 162.1 37.1 43.9 92.7 66.2 165.4 66.2 157.4 0 273.9-72.5 328.4-204.2 21.4.4 67.6.1 91.3-45.2 1.5-2.5 6.6-13.2 8.5-17.1l-13.3-8.9zm-511.1-27.9h-66v59.4h66.1v-59.4zm78.1 0h-66.1v59.4h66.1v-59.4zm78.1 0h-66.1v59.4h66.1v-59.4zm-78.1-72.1h-66.1v60.1h66.1v-60.1z"},child:[]}]})(e)}function B3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M220.8 123.3c1 .5 1.8 1.7 3 1.7 1.1 0 2.8-.4 2.9-1.5.2-1.4-1.9-2.3-3.2-2.9-1.7-.7-3.9-1-5.5-.1-.4.2-.8.7-.6 1.1.3 1.3 2.3 1.1 3.4 1.7zm-21.9 1.7c1.2 0 2-1.2 3-1.7 1.1-.6 3.1-.4 3.5-1.6.2-.4-.2-.9-.6-1.1-1.6-.9-3.8-.6-5.5.1-1.3.6-3.4 1.5-3.2 2.9.1 1 1.8 1.5 2.8 1.4zM420 403.8c-3.6-4-5.3-11.6-7.2-19.7-1.8-8.1-3.9-16.8-10.5-22.4-1.3-1.1-2.6-2.1-4-2.9-1.3-.8-2.7-1.5-4.1-2 9.2-27.3 5.6-54.5-3.7-79.1-11.4-30.1-31.3-56.4-46.5-74.4-17.1-21.5-33.7-41.9-33.4-72C311.1 85.4 315.7.1 234.8 0 132.4-.2 158 103.4 156.9 135.2c-1.7 23.4-6.4 41.8-22.5 64.7-18.9 22.5-45.5 58.8-58.1 96.7-6 17.9-8.8 36.1-6.2 53.3-6.5 5.8-11.4 14.7-16.6 20.2-4.2 4.3-10.3 5.9-17 8.3s-14 6-18.5 14.5c-2.1 3.9-2.8 8.1-2.8 12.4 0 3.9.6 7.9 1.2 11.8 1.2 8.1 2.5 15.7.8 20.8-5.2 14.4-5.9 24.4-2.2 31.7 3.8 7.3 11.4 10.5 20.1 12.3 17.3 3.6 40.8 2.7 59.3 12.5 19.8 10.4 39.9 14.1 55.9 10.4 11.6-2.6 21.1-9.6 25.9-20.2 12.5-.1 26.3-5.4 48.3-6.6 14.9-1.2 33.6 5.3 55.1 4.1.6 2.3 1.4 4.6 2.5 6.7v.1c8.3 16.7 23.8 24.3 40.3 23 16.6-1.3 34.1-11 48.3-27.9 13.6-16.4 36-23.2 50.9-32.2 7.4-4.5 13.4-10.1 13.9-18.3.4-8.2-4.4-17.3-15.5-29.7zM223.7 87.3c9.8-22.2 34.2-21.8 44-.4 6.5 14.2 3.6 30.9-4.3 40.4-1.6-.8-5.9-2.6-12.6-4.9 1.1-1.2 3.1-2.7 3.9-4.6 4.8-11.8-.2-27-9.1-27.3-7.3-.5-13.9 10.8-11.8 23-4.1-2-9.4-3.5-13-4.4-1-6.9-.3-14.6 2.9-21.8zM183 75.8c10.1 0 20.8 14.2 19.1 33.5-3.5 1-7.1 2.5-10.2 4.6 1.2-8.9-3.3-20.1-9.6-19.6-8.4.7-9.8 21.2-1.8 28.1 1 .8 1.9-.2-5.9 5.5-15.6-14.6-10.5-52.1 8.4-52.1zm-13.6 60.7c6.2-4.6 13.6-10 14.1-10.5 4.7-4.4 13.5-14.2 27.9-14.2 7.1 0 15.6 2.3 25.9 8.9 6.3 4.1 11.3 4.4 22.6 9.3 8.4 3.5 13.7 9.7 10.5 18.2-2.6 7.1-11 14.4-22.7 18.1-11.1 3.6-19.8 16-38.2 14.9-3.9-.2-7-1-9.6-2.1-8-3.5-12.2-10.4-20-15-8.6-4.8-13.2-10.4-14.7-15.3-1.4-4.9 0-9 4.2-12.3zm3.3 334c-2.7 35.1-43.9 34.4-75.3 18-29.9-15.8-68.6-6.5-76.5-21.9-2.4-4.7-2.4-12.7 2.6-26.4v-.2c2.4-7.6.6-16-.6-23.9-1.2-7.8-1.8-15 .9-20 3.5-6.7 8.5-9.1 14.8-11.3 10.3-3.7 11.8-3.4 19.6-9.9 5.5-5.7 9.5-12.9 14.3-18 5.1-5.5 10-8.1 17.7-6.9 8.1 1.2 15.1 6.8 21.9 16l19.6 35.6c9.5 19.9 43.1 48.4 41 68.9zm-1.4-25.9c-4.1-6.6-9.6-13.6-14.4-19.6 7.1 0 14.2-2.2 16.7-8.9 2.3-6.2 0-14.9-7.4-24.9-13.5-18.2-38.3-32.5-38.3-32.5-13.5-8.4-21.1-18.7-24.6-29.9s-3-23.3-.3-35.2c5.2-22.9 18.6-45.2 27.2-59.2 2.3-1.7.8 3.2-8.7 20.8-8.5 16.1-24.4 53.3-2.6 82.4.6-20.7 5.5-41.8 13.8-61.5 12-27.4 37.3-74.9 39.3-112.7 1.1.8 4.6 3.2 6.2 4.1 4.6 2.7 8.1 6.7 12.6 10.3 12.4 10 28.5 9.2 42.4 1.2 6.2-3.5 11.2-7.5 15.9-9 9.9-3.1 17.8-8.6 22.3-15 7.7 30.4 25.7 74.3 37.2 95.7 6.1 11.4 18.3 35.5 23.6 64.6 3.3-.1 7 .4 10.9 1.4 13.8-35.7-11.7-74.2-23.3-84.9-4.7-4.6-4.9-6.6-2.6-6.5 12.6 11.2 29.2 33.7 35.2 59 2.8 11.6 3.3 23.7.4 35.7 16.4 6.8 35.9 17.9 30.7 34.8-2.2-.1-3.2 0-4.2 0 3.2-10.1-3.9-17.6-22.8-26.1-19.6-8.6-36-8.6-38.3 12.5-12.1 4.2-18.3 14.7-21.4 27.3-2.8 11.2-3.6 24.7-4.4 39.9-.5 7.7-3.6 18-6.8 29-32.1 22.9-76.7 32.9-114.3 7.2zm257.4-11.5c-.9 16.8-41.2 19.9-63.2 46.5-13.2 15.7-29.4 24.4-43.6 25.5s-26.5-4.8-33.7-19.3c-4.7-11.1-2.4-23.1 1.1-36.3 3.7-14.2 9.2-28.8 9.9-40.6.8-15.2 1.7-28.5 4.2-38.7 2.6-10.3 6.6-17.2 13.7-21.1.3-.2.7-.3 1-.5.8 13.2 7.3 26.6 18.8 29.5 12.6 3.3 30.7-7.5 38.4-16.3 9-.3 15.7-.9 22.6 5.1 9.9 8.5 7.1 30.3 17.1 41.6 10.6 11.6 14 19.5 13.7 24.6zM173.3 148.7c2 1.9 4.7 4.5 8 7.1 6.6 5.2 15.8 10.6 27.3 10.6 11.6 0 22.5-5.9 31.8-10.8 4.9-2.6 10.9-7 14.8-10.4s5.9-6.3 3.1-6.6-2.6 2.6-6 5.1c-4.4 3.2-9.7 7.4-13.9 9.8-7.4 4.2-19.5 10.2-29.9 10.2s-18.7-4.8-24.9-9.7c-3.1-2.5-5.7-5-7.7-6.9-1.5-1.4-1.9-4.6-4.3-4.9-1.4-.1-1.8 3.7 1.7 6.5z"},child:[]}]})(e)}function cg(e){return Ce({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M0 93.7l183.6-25.3v177.4H0V93.7zm0 324.6l183.6 25.3V268.4H0v149.9zm203.8 28L448 480V268.4H203.8v177.9zm0-380.6v180.1H448V32L203.8 65.7z"},child:[]}]})(e)}function R3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M368 32h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zM208 88h-84.75C113.75 64.56 90.84 48 64 48 28.66 48 0 76.65 0 112s28.66 64 64 64c26.84 0 49.75-16.56 59.25-40h79.73c-55.37 32.52-95.86 87.32-109.54 152h49.4c11.3-41.61 36.77-77.21 71.04-101.56-3.7-8.08-5.88-16.99-5.88-26.44V88zm-48 232H64c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32zM576 48c-26.84 0-49.75 16.56-59.25 40H432v72c0 9.45-2.19 18.36-5.88 26.44 34.27 24.35 59.74 59.95 71.04 101.56h49.4c-13.68-64.68-54.17-119.48-109.54-152h79.73c9.5 23.44 32.41 40 59.25 40 35.34 0 64-28.65 64-64s-28.66-64-64-64zm0 272h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function Pp(e){return Ce({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M16 128h416c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H16C7.16 32 0 39.16 0 48v64c0 8.84 7.16 16 16 16zm480 80H80c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zm-64 176H16c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16z"},child:[]}]})(e)}function P3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M32 96v64h448V96H32zm0 128v64h448v-64H32zm0 128v64h448v-64H32z"},child:[]}]})(e)}function z3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",strokeWidth:"2",d:"M22,12 C22,12 19.0000009,15.0000004 13.0000004,21.0000004 C6.99999996,27.0000004 -2.00000007,18.0000004 3.99999994,12.0000004 C9.99999996,6.00000037 9,7.00000011 13,3.00000008 C17,-0.999999955 23,4.99999994 19,9.00000005 C15,13.0000002 12.0000004,16.0000007 9.99999995,18.0000004 C7.99999952,20 5,17 6.99999995,15.0000004 C8.99999991,13.0000007 16,6 16,6"},child:[]}]})(e)}function I3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",strokeWidth:"2",d:"M15,5 L17,5 L17,3 L15,3 L15,5 Z M7,5 L9,5 L9,3 L7,3 L7,5 Z M15,13 L17,13 L17,11 L15,11 L15,13 Z M7,13 L9,13 L9,11 L7,11 L7,13 Z M15,21 L17,21 L17,19 L15,19 L15,21 Z M7,21 L9,21 L9,19 L7,19 L7,21 Z"},child:[]}]})(e)}function L3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",strokeWidth:"2",d:"M8.5,5.5 L12,2 L15.5,5.5 M22,12 L2,12 M5.5,8.5 L2,12 L5.5,15.5 M18.5,15.5 L22,12 L18.5,8.5 M12,22 L12,2 M8.5,18.5 L12,22 L15.5,18.5"},child:[]}]})(e)}function q3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M3 17a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm3.293-7.707a1 1 0 011.414 0L9 10.586V3a1 1 0 112 0v7.586l1.293-1.293a1 1 0 111.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z",clipRule:"evenodd"},child:[]}]})(e)}function k3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M11.3 1.046A1 1 0 0112 2v5h4a1 1 0 01.82 1.573l-7 10A1 1 0 018 18v-5H4a1 1 0 01-.82-1.573l7-10a1 1 0 011.12-.38z",clipRule:"evenodd"},child:[]}]})(e)}function U3(e){return Ce({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4v16m8-8H4"},child:[]}]})(e)}function H3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M11.644 1.59a.75.75 0 0 1 .712 0l9.75 5.25a.75.75 0 0 1 0 1.32l-9.75 5.25a.75.75 0 0 1-.712 0l-9.75-5.25a.75.75 0 0 1 0-1.32l9.75-5.25Z"},child:[]},{tag:"path",attr:{d:"m3.265 10.602 7.668 4.129a2.25 2.25 0 0 0 2.134 0l7.668-4.13 1.37.739a.75.75 0 0 1 0 1.32l-9.75 5.25a.75.75 0 0 1-.71 0l-9.75-5.25a.75.75 0 0 1 0-1.32l1.37-.738Z"},child:[]},{tag:"path",attr:{d:"m10.933 19.231-7.668-4.13-1.37.739a.75.75 0 0 0 0 1.32l9.75 5.25c.221.12.489.12.71 0l9.75-5.25a.75.75 0 0 0 0-1.32l-1.37-.738-7.668 4.13a2.25 2.25 0 0 1-2.134-.001Z"},child:[]}]})(e)}function j3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 388c-72.597 0-132-59.405-132-132 0-72.601 59.403-132 132-132 36.3 0 69.299 15.4 92.406 39.601L278 234h154V80l-51.698 51.702C348.406 99.798 304.406 80 256 80c-96.797 0-176 79.203-176 176s78.094 176 176 176c81.045 0 148.287-54.134 169.401-128H378.85c-18.745 49.561-67.138 84-122.85 84z"},child:[]}]})(e)}function V3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 48c-67.61.29-117.87 9.6-154.24 25.69-27.14 12-37.76 21.08-37.76 51.84V448c41.57-37.5 78.46-48 224-48V48zM48 48c67.61.29 117.87 9.6 154.24 25.69 27.14 12 37.76 21.08 37.76 51.84V448c-41.57-37.5-78.46-48-224-48V48z"},child:[]}]})(e)}function G3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M456 480H136a24 24 0 0 1-24-24V128a16 16 0 0 1 16-16h328a24 24 0 0 1 24 24v320a24 24 0 0 1-24 24z"},child:[]},{tag:"path",attr:{d:"M112 80h288V56a24 24 0 0 0-24-24H60a28 28 0 0 0-28 28v316a24 24 0 0 0 24 24h24V112a32 32 0 0 1 32-32z"},child:[]}]})(e)}function W3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.13 48 48 141.13 48 256s93.13 208 208 208 208-93.13 208-208S370.87 48 256 48zm96 240h-96a16 16 0 0 1-16-16V128a16 16 0 0 1 32 0v128h80a16 16 0 0 1 0 32z"},child:[]}]})(e)}function Z3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0zm0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m12.126 8.125 1.937-1.937 3.747 3.747-1.937 1.938zM20.71 5.63l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75L20.71 7a1 1 0 0 0 0-1.37zM2 5l6.63 6.63L3 17.25V21h3.75l5.63-5.62L18 21l2-2L4 3 2 5z"},child:[]}]})(e)}function Y3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16z"},child:[]}]})(e)}function X3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 7h-8v6h8V7zm2-4H3c-1.1 0-2 .9-2 2v14c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98V5c0-1.1-.9-2-2-2zm0 16.01H3V4.98h18v14.03z"},child:[]}]})(e)}function K3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15zM14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2z"},child:[]}]})(e)}function J3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M7.76 16.24C6.67 15.16 6 13.66 6 12s.67-3.16 1.76-4.24l1.42 1.42C8.45 9.9 8 10.9 8 12c0 1.1.45 2.1 1.17 2.83l-1.41 1.41zm8.48 0C17.33 15.16 18 13.66 18 12s-.67-3.16-1.76-4.24l-1.42 1.42C15.55 9.9 16 10.9 16 12c0 1.1-.45 2.1-1.17 2.83l1.41 1.41zM12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm8 2c0 2.21-.9 4.21-2.35 5.65l1.42 1.42C20.88 17.26 22 14.76 22 12s-1.12-5.26-2.93-7.07l-1.42 1.42A7.94 7.94 0 0 1 20 12zM6.35 6.35 4.93 4.93C3.12 6.74 2 9.24 2 12s1.12 5.26 2.93 7.07l1.42-1.42C4.9 16.21 4 14.21 4 12s.9-4.21 2.35-5.65z"},child:[]}]})(e)}function Q3(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M24 24H0V0h24v24z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"12",r:"8"},child:[]}]})(e)}function e4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"},child:[]}]})(e)}function r4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M8 5v14l11-7z"},child:[]}]})(e)}function t4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M21 8c-1.45 0-2.26 1.44-1.93 2.51l-3.55 3.56c-.3-.09-.74-.09-1.04 0l-2.55-2.55C12.27 10.45 11.46 9 10 9c-1.45 0-2.27 1.44-1.93 2.52l-4.56 4.55C2.44 15.74 1 16.55 1 18c0 1.1.9 2 2 2 1.45 0 2.26-1.44 1.93-2.51l4.55-4.56c.3.09.74.09 1.04 0l2.55 2.55C12.73 16.55 13.54 18 15 18c1.45 0 2.27-1.44 1.93-2.52l3.56-3.55c1.07.33 2.51-.48 2.51-1.93 0-1.1-.9-2-2-2z"},child:[]},{tag:"path",attr:{d:"m15 9 .94-2.07L18 6l-2.06-.93L15 3l-.92 2.07L12 6l2.08.93zM3.5 11 4 9l2-.5L4 8l-.5-2L3 8l-2 .5L3 9z"},child:[]}]})(e)}function n4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"},child:[]}]})(e)}function a4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"},child:[]}]})(e)}function i4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m17.66 17.66-1.06 1.06-.71-.71 1.06-1.06-1.94-1.94-1.06 1.06-.71-.71 1.06-1.06-1.94-1.94-1.06 1.06-.71-.71 1.06-1.06L9.7 9.7l-1.06 1.06-.71-.71 1.06-1.06-1.94-1.94-1.06 1.06-.71-.71 1.06-1.06L4 4v14c0 1.1.9 2 2 2h14l-2.34-2.34zM7 17v-5.76L12.76 17H7z"},child:[]}]})(e)}function o4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 2h2v5h8v3h-8v4h5v3h-5v5h-2v-5H6v-3h5v-4H3V7h8z"},child:[]}]})(e)}function s4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M4 22H2V2h2v20zM22 7H6v3h16V7zm-6 7H6v3h10v-3z"},child:[]}]})(e)}function u4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 2h2v20h-2V2zM2 10h16V7H2v3zm6 7h10v-3H8v3z"},child:[]}]})(e)}function l4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M22 22H2v-2h20v2zM10 2H7v16h3V2zm7 6h-3v10h3V8z"},child:[]}]})(e)}function c4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M22 11h-5V6h-3v5h-4V3H7v8H1.84v2H7v8h3v-8h4v5h3v-5h5z"},child:[]}]})(e)}function f4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M22 2v2H2V2h20zM7 22h3V6H7v16zm7-6h3V6h-3v10z"},child:[]}]})(e)}function zp(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 13v7h18v-1.5l-9-7L8 17l-5-4zm0-6 4 3 5-7 5 4h4v8.97l-9.4-7.31-3.98 5.48L3 10.44V7z"},child:[]}]})(e)}function p4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15 4v2h3v12h-3v2h5V4zM4 20h5v-2H6V6h3V4H4z"},child:[]}]})(e)}function d4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M4 7v2c0 .55-.45 1-1 1H2v4h1c.55 0 1 .45 1 1v2c0 1.65 1.35 3 3 3h3v-2H7c-.55 0-1-.45-1-1v-2c0-1.3-.84-2.42-2-2.83v-.34C5.16 11.42 6 10.3 6 9V7c0-.55.45-1 1-1h3V4H7C5.35 4 4 5.35 4 7zM21 10c-.55 0-1-.45-1-1V7c0-1.65-1.35-3-3-3h-3v2h3c.55 0 1 .45 1 1v2c0 1.3.84 2.42 2 2.83v.34c-1.16.41-2 1.52-2 2.83v2c0 .55-.45 1-1 1h-3v2h3c1.65 0 3-1.35 3-3v-2c0-.55.45-1 1-1h1v-4h-1z"},child:[]}]})(e)}function v4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6z"},child:[]},{tag:"path",attr:{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-3.37 12.5-.8-2.3H12.2l-.82 2.3H9.81l3.38-9h1.61l3.38 9h-1.55z"},child:[]},{tag:"path",attr:{d:"m13.96 7.17-1.31 3.72h2.69l-1.3-3.72z"},child:[]}]})(e)}function m4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 13c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm6-10C9.8 3 8 4.8 8 7s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm6 10c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4z"},child:[]}]})(e)}function h4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M21 4H3c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM7 12v2H5v-2h2zm-2-2V8h2v2H5zm6 2v2H9v-2h2zm-2-2V8h2v2H9zm7 6v1H8v-1h8zm-1-4v2h-2v-2h2zm-2-2V8h2v2h-2zm4 4v-2h2v2h-2zm2-4h-2V8h2v2z"},child:[]}]})(e)}function g4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"},child:[]}]})(e)}function y4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"},child:[]}]})(e)}function b4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"},child:[]}]})(e)}function x4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"},child:[]}]})(e)}function w4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M21 11H6.83l3.58-3.59L9 6l-6 6 6 6 1.41-1.41L6.83 13H21z"},child:[]}]})(e)}function E4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 8.41 16.59 13 18 11.59l-6-6-6 6L7.41 13 12 8.41zM6 18h12v-2H6v2z"},child:[]}]})(e)}function S4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17.5 3C15.57 3 14 4.57 14 6.5V8h-4V6.5C10 4.57 8.43 3 6.5 3S3 4.57 3 6.5 4.57 10 6.5 10H8v4H6.5C4.57 14 3 15.57 3 17.5S4.57 21 6.5 21s3.5-1.57 3.5-3.5V16h4v1.5c0 1.93 1.57 3.5 3.5 3.5s3.5-1.57 3.5-3.5-1.57-3.5-3.5-3.5H16v-4h1.5c1.93 0 3.5-1.57 3.5-3.5S19.43 3 17.5 3zM16 8V6.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S18.33 8 17.5 8H16zM6.5 8C5.67 8 5 7.33 5 6.5S5.67 5 6.5 5 8 5.67 8 6.5V8H6.5zm3.5 6v-4h4v4h-4zm7.5 5c-.83 0-1.5-.67-1.5-1.5V16h1.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5zm-11 0c-.83 0-1.5-.67-1.5-1.5S5.67 16 6.5 16H8v1.5c0 .83-.67 1.5-1.5 1.5z"},child:[]}]})(e)}function A4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m5 12 1.41 1.41L12 7.83l5.59 5.58L19 12l-7-7z"},child:[]}]})(e)}function D4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 3H4c-1.1 0-1.99.9-1.99 2L2 15c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 3h2v2h-2V6zm0 3h2v2h-2V9zM8 6h2v2H8V6zm0 3h2v2H8V9zm-1 2H5V9h2v2zm0-3H5V6h2v2zm9 7H8v-2h8v2zm0-4h-2V9h2v2zm0-3h-2V6h2v2zm3 3h-2V9h2v2zm0-3h-2V6h2v2zm-7 15 4-4H8l4 4z"},child:[]}]})(e)}function C4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15 5h6v2h-6zM9 5H3v2h4.85l6.92 12H21v-2h-5.07z"},child:[]}]})(e)}function N4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"},child:[]}]})(e)}function M4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11.59 7.41 15.17 11H1v2h14.17l-3.59 3.59L13 18l6-6-6-6-1.41 1.41zM20 6v12h2V6h-2z"},child:[]}]})(e)}function T4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25L19 9zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12l-5.5-2.5zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25L19 15z"},child:[]}]})(e)}function O4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a.996.996 0 0 0 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"},child:[]}]})(e)}function _4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m18 3-3 3V3H9C6.24 3 4 5.24 4 8h5v3h6V8l3 3h2V3h-2zM9 13v7c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-7H9z"},child:[]}]})(e)}function $4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"},child:[]}]})(e)}function F4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm3.3 14.71L11 12.41V7h2v4.59l3.71 3.71-1.42 1.41z"},child:[]}]})(e)}function B4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 2v3H5V5h14zm0 5v4H5v-4h14zM5 19v-3h14v3H5z"},child:[]}]})(e)}function R4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0zm0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"m17 16-4-4V8.82C14.16 8.4 15 7.3 15 6c0-1.66-1.34-3-3-3S9 4.34 9 6c0 1.3.84 2.4 2 2.82V12l-4 4H3v5h5v-3.05l4-4.2 4 4.2V21h5v-5h-4z"},child:[]}]})(e)}function P4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M2.81 2.81 1.39 4.22l2.27 2.27A9.91 9.91 0 0 0 2 12c0 5.52 4.48 10 10 10 2.04 0 3.93-.61 5.51-1.66l2.27 2.27 1.41-1.42L2.81 2.81zM12 20c-4.41 0-8-3.59-8-8 0-1.48.41-2.86 1.12-4.06l10.93 10.94A7.869 7.869 0 0 1 12 20zM12 4c4.41 0 8 3.59 8 8 0 1.48-.41 2.86-1.12 4.05l1.45 1.45A9.782 9.782 0 0 0 22 12c0-5.52-4.48-10-10-10-2.04 0-3.93.61-5.51 1.66l1.45 1.45C9.14 4.41 10.52 4 12 4z"},child:[]}]})(e)}function z4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m2.88 7.88 1.54 1.54C4.15 10.23 4 11.1 4 12c0 4.41 3.59 8 8 8s8-3.59 8-8-3.59-8-8-8c-.9 0-1.77.15-2.58.42L7.89 2.89C9.15 2.32 10.54 2 12 2c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12c0-1.47.32-2.86.88-4.12zM7 5.5C7 6.33 6.33 7 5.5 7S4 6.33 4 5.5 4.67 4 5.5 4 7 4.67 7 5.5z"},child:[]}]})(e)}function I4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M216.49,168.49a12,12,0,0,1-17,0L128,97,56.49,168.49a12,12,0,0,1-17-17l80-80a12,12,0,0,1,17,0l80,80A12,12,0,0,1,216.49,168.49Z"},child:[]}]})(e)}function Ip(e){return Ce({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z"},child:[]}]})(e)}function L4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M156,40a12,12,0,0,1-12,12H112a12,12,0,0,1,0-24h32A12,12,0,0,1,156,40ZM144,204H112a12,12,0,0,0,0,24h32a12,12,0,0,0,0-24ZM204,52V72a12,12,0,0,0,24,0V48a20,20,0,0,0-20-20H184a12,12,0,0,0,0,24Zm12,48a12,12,0,0,0-12,12v32a12,12,0,0,0,24,0V112A12,12,0,0,0,216,100ZM40,156a12,12,0,0,0,12-12V112a12,12,0,0,0-24,0v32A12,12,0,0,0,40,156Zm32,48H52V184a12,12,0,0,0-24,0v24a20,20,0,0,0,20,20H72a12,12,0,0,0,0-24ZM72,28H48A20,20,0,0,0,28,48V72a12,12,0,0,0,24,0V52H72a12,12,0,0,0,0-24ZM240,204H228V192a12,12,0,0,0-24,0v12H192a12,12,0,0,0,0,24h12v12a12,12,0,0,0,24,0V228h12a12,12,0,0,0,0-24Z"},child:[]}]})(e)}function q4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"},child:[]}]})(e)}function k4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"},child:[]}]})(e)}function U4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"},child:[]}]})(e)}function H4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M9.95401 2.2106C11.2876 1.93144 12.6807 1.92263 14.0449 2.20785C14.2219 3.3674 14.9048 4.43892 15.9997 5.07103C17.0945 5.70313 18.364 5.75884 19.4566 5.3323C20.3858 6.37118 21.0747 7.58203 21.4997 8.87652C20.5852 9.60958 19.9997 10.736 19.9997 11.9992C19.9997 13.2632 20.5859 14.3902 21.5013 15.1232C21.29 15.7636 21.0104 16.3922 20.6599 16.9992C20.3094 17.6063 19.9049 18.1627 19.4559 18.6659C18.3634 18.2396 17.0943 18.2955 15.9997 18.9274C14.9057 19.559 14.223 20.6294 14.0453 21.7879C12.7118 22.067 11.3187 22.0758 9.95443 21.7906C9.77748 20.6311 9.09451 19.5595 7.99967 18.9274C6.90484 18.2953 5.63539 18.2396 4.54272 18.6662C3.61357 17.6273 2.92466 16.4164 2.49964 15.1219C3.41412 14.3889 3.99968 13.2624 3.99968 11.9992C3.99968 10.7353 3.41344 9.60827 2.49805 8.87524C2.70933 8.23482 2.98894 7.60629 3.33942 6.99923C3.68991 6.39217 4.09443 5.83576 4.54341 5.33257C5.63593 5.75881 6.90507 5.703 7.99967 5.07103C9.09364 4.43942 9.7764 3.3691 9.95401 2.2106ZM11.9997 14.9992C13.6565 14.9992 14.9997 13.6561 14.9997 11.9992C14.9997 10.3424 13.6565 8.99923 11.9997 8.99923C10.3428 8.99923 8.99967 10.3424 8.99967 11.9992C8.99967 13.6561 10.3428 14.9992 11.9997 14.9992Z"},child:[]}]})(e)}function j4(e){return Ce({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M6.5459 12.0003L12.001 6.545l5.4541 5.4552-5.4541 5.454zm16.9763-1.154L13.158.48a1.635 1.635 0 00-2.314 0L.4778 10.8462a1.629 1.629 0 000 2.305L10.848 23.5226a1.629 1.629 0 002.304 0l10.3702-10.3712a1.629 1.629 0 000-2.305zM12 20.7263l-8.7272-8.7281L12 3.27l8.7272 8.7282z"},child:[]}]})(e)}function V4(e){return Ce({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z"},child:[]}]})(e)}function G4(e){return Ce({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M0 0v7.5h7.5V0zm8.25 0v7.5h7.498V0zm8.25 0v7.5H24V0zM8.25 8.25v7.5h7.498v-7.5zm8.25 0v7.5H24v-7.5zM0 16.5V24h7.5v-7.5zm8.25 0V24h7.498v-7.5zm8.25 0V24H24v-7.5z"},child:[]}]})(e)}function W4(e){return Ce({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M14.25.18l.9.2.73.26.59.3.45.32.34.34.25.34.16.33.1.3.04.26.02.2-.01.13V8.5l-.05.63-.13.55-.21.46-.26.38-.3.31-.33.25-.35.19-.35.14-.33.1-.3.07-.26.04-.21.02H8.77l-.69.05-.59.14-.5.22-.41.27-.33.32-.27.35-.2.36-.15.37-.1.35-.07.32-.04.27-.02.21v3.06H3.17l-.21-.03-.28-.07-.32-.12-.35-.18-.36-.26-.36-.36-.35-.46-.32-.59-.28-.73-.21-.88-.14-1.05-.05-1.23.06-1.22.16-1.04.24-.87.32-.71.36-.57.4-.44.42-.33.42-.24.4-.16.36-.1.32-.05.24-.01h.16l.06.01h8.16v-.83H6.18l-.01-2.75-.02-.37.05-.34.11-.31.17-.28.25-.26.31-.23.38-.2.44-.18.51-.15.58-.12.64-.1.71-.06.77-.04.84-.02 1.27.05zm-6.3 1.98l-.23.33-.08.41.08.41.23.34.33.22.41.09.41-.09.33-.22.23-.34.08-.41-.08-.41-.23-.33-.33-.22-.41-.09-.41.09zm13.09 3.95l.28.06.32.12.35.18.36.27.36.35.35.47.32.59.28.73.21.88.14 1.04.05 1.23-.06 1.23-.16 1.04-.24.86-.32.71-.36.57-.4.45-.42.33-.42.24-.4.16-.36.09-.32.05-.24.02-.16-.01h-8.22v.82h5.84l.01 2.76.02.36-.05.34-.11.31-.17.29-.25.25-.31.24-.38.2-.44.17-.51.15-.58.13-.64.09-.71.07-.77.04-.84.01-1.27-.04-1.07-.14-.9-.2-.73-.25-.59-.3-.45-.33-.34-.34-.25-.34-.16-.33-.1-.3-.04-.25-.02-.2.01-.13v-5.34l.05-.64.13-.54.21-.46.26-.38.3-.32.33-.24.35-.2.35-.14.33-.1.3-.06.26-.04.21-.02.13-.01h5.84l.69-.05.59-.14.5-.21.41-.28.33-.32.27-.35.2-.36.15-.36.1-.35.07-.32.04-.28.02-.21V6.07h2.09l.14.01zm-6.47 14.25l-.23.33-.08.41.08.41.23.33.33.23.41.08.41-.08.33-.23.23-.33.08-.41-.08-.41-.23-.33-.33-.23-.41-.08-.41.08z"},child:[]}]})(e)}function Z4(e){return Ce({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M1.125 0C.502 0 0 .502 0 1.125v21.75C0 23.498.502 24 1.125 24h21.75c.623 0 1.125-.502 1.125-1.125V1.125C24 .502 23.498 0 22.875 0zm17.363 9.75c.612 0 1.154.037 1.627.111a6.38 6.38 0 0 1 1.306.34v2.458a3.95 3.95 0 0 0-.643-.361 5.093 5.093 0 0 0-.717-.26 5.453 5.453 0 0 0-1.426-.2c-.3 0-.573.028-.819.086a2.1 2.1 0 0 0-.623.242c-.17.104-.3.229-.393.374a.888.888 0 0 0-.14.49c0 .196.053.373.156.529.104.156.252.304.443.444s.423.276.696.41c.273.135.582.274.926.416.47.197.892.407 1.266.628.374.222.695.473.963.753.268.279.472.598.614.957.142.359.214.776.214 1.253 0 .657-.125 1.21-.373 1.656a3.033 3.033 0 0 1-1.012 1.085 4.38 4.38 0 0 1-1.487.596c-.566.12-1.163.18-1.79.18a9.916 9.916 0 0 1-1.84-.164 5.544 5.544 0 0 1-1.512-.493v-2.63a5.033 5.033 0 0 0 3.237 1.2c.333 0 .624-.03.872-.09.249-.06.456-.144.623-.25.166-.108.29-.234.373-.38a1.023 1.023 0 0 0-.074-1.089 2.12 2.12 0 0 0-.537-.5 5.597 5.597 0 0 0-.807-.444 27.72 27.72 0 0 0-1.007-.436c-.918-.383-1.602-.852-2.053-1.405-.45-.553-.676-1.222-.676-2.005 0-.614.123-1.141.369-1.582.246-.441.58-.804 1.004-1.089a4.494 4.494 0 0 1 1.47-.629 7.536 7.536 0 0 1 1.77-.201zm-15.113.188h9.563v2.166H9.506v9.646H6.789v-9.646H3.375z"},child:[]}]})(e)}function Y4(e){return Ce({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 0C5.375 0 0 5.375 0 12s5.375 12 12 12 12-5.375 12-12S18.625 0 12 0zm.768 4.105c.183 0 .363.053.525.157.125.083.287.185.755 1.154.31-.088.468-.042.551-.019.204.056.366.19.463.375.477.917.542 2.553.334 3.605-.241 1.232-.755 2.029-1.131 2.576.324.329.778.899 1.117 1.825.278.774.31 1.478.273 2.015a5.51 5.51 0 0 0 .602-.329c.593-.366 1.487-.917 2.553-.931.714-.009 1.269.445 1.353 1.103a1.23 1.23 0 0 1-.945 1.362c-.649.158-.95.278-1.821.843-1.232.797-2.539 1.242-3.012 1.39a1.686 1.686 0 0 1-.704.343c-.737.181-3.266.315-3.466.315h-.046c-.783 0-1.214-.241-1.45-.491-.658.329-1.51.19-2.122-.134a1.078 1.078 0 0 1-.58-1.153 1.243 1.243 0 0 1-.153-.195c-.162-.25-.528-.936-.454-1.946.056-.723.556-1.367.88-1.71a5.522 5.522 0 0 1 .408-2.256c.306-.727.885-1.348 1.32-1.737-.32-.537-.644-1.367-.329-2.21.227-.602.412-.936.82-1.08h-.005c.199-.074.389-.153.486-.259a3.418 3.418 0 0 1 2.298-1.103c.037-.093.079-.185.125-.283.31-.658.639-1.029 1.024-1.168a.94.94 0 0 1 .328-.06zm.006.7c-.507.016-1.001 1.519-1.001 1.519s-1.27-.204-2.266.871c-.199.218-.468.334-.746.44-.079.028-.176.023-.417.672-.371.991.625 2.094.625 2.094s-1.186.839-1.626 1.881c-.486 1.144-.338 2.261-.338 2.261s-.843.732-.899 1.487c-.051.663.139 1.2.343 1.515.227.343.51.176.51.176s-.561.653-.037.931c.477.25 1.283.394 1.71-.037.31-.31.371-1.001.486-1.283.028-.065.12.111.209.199.097.093.264.195.264.195s-.755.324-.445 1.066c.102.246.468.403 1.066.398.222-.005 2.664-.139 3.313-.296.375-.088.505-.283.505-.283s1.566-.431 2.998-1.357c.917-.598 1.293-.76 2.034-.936.612-.148.57-1.098-.241-1.084-.839.009-1.575.44-2.196.825-1.163.718-1.742.672-1.742.672l-.018-.032c-.079-.13.371-1.293-.134-2.678-.547-1.515-1.413-1.881-1.344-1.997.297-.5 1.038-1.297 1.334-2.78.176-.899.13-2.377-.269-3.151-.074-.144-.732.241-.732.241s-.616-1.371-.788-1.483a.271.271 0 0 0-.157-.046z"},child:[]}]})(e)}function X4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12 10a2 2 0 0 1 1.678 .911l.053 .089h7.269l.117 .007a1 1 0 0 1 .883 .993c0 5.523 -4.477 10 -10 10a1 1 0 0 1 -1 -1v-7.269l-.089 -.053a2 2 0 0 1 -.906 -1.529l-.005 -.149a2 2 0 0 1 2 -2m9.428 -1.334a1 1 0 0 1 -1.884 .668a8 8 0 1 0 -10.207 10.218a1 1 0 0 1 -.666 1.886a10 10 0 1 1 12.757 -12.772m-4.628 -.266a1 1 0 0 1 -1.6 1.2a4 4 0 1 0 -5.6 5.6a1 1 0 0 1 -1.2 1.6a6 6 0 1 1 8.4 -8.4"},child:[]}]})(e)}function K4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 5l0 14"},child:[]},{tag:"path",attr:{d:"M18 13l-6 6"},child:[]},{tag:"path",attr:{d:"M6 13l6 6"},child:[]}]})(e)}function J4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M5 12l14 0"},child:[]},{tag:"path",attr:{d:"M5 12l6 6"},child:[]},{tag:"path",attr:{d:"M5 12l6 -6"},child:[]}]})(e)}function Q4(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M5 12l14 0"},child:[]},{tag:"path",attr:{d:"M13 18l6 -6"},child:[]},{tag:"path",attr:{d:"M13 6l6 6"},child:[]}]})(e)}function e5(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 5l0 14"},child:[]},{tag:"path",attr:{d:"M18 11l-6 -6"},child:[]},{tag:"path",attr:{d:"M6 11l6 -6"},child:[]}]})(e)}function r5(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},child:[]},{tag:"path",attr:{d:"M12 12m-5 0a5 5 0 1 0 10 0a5 5 0 1 0 -10 0"},child:[]},{tag:"path",attr:{d:"M15.9 20.11l0 .01"},child:[]},{tag:"path",attr:{d:"M19.04 17.61l0 .01"},child:[]},{tag:"path",attr:{d:"M20.77 14l0 .01"},child:[]},{tag:"path",attr:{d:"M20.77 10l0 .01"},child:[]},{tag:"path",attr:{d:"M19.04 6.39l0 .01"},child:[]},{tag:"path",attr:{d:"M15.9 3.89l0 .01"},child:[]},{tag:"path",attr:{d:"M12 3l0 .01"},child:[]},{tag:"path",attr:{d:"M8.1 3.89l0 .01"},child:[]},{tag:"path",attr:{d:"M4.96 6.39l0 .01"},child:[]},{tag:"path",attr:{d:"M3.23 10l0 .01"},child:[]},{tag:"path",attr:{d:"M3.23 14l0 .01"},child:[]},{tag:"path",attr:{d:"M4.96 17.61l0 .01"},child:[]},{tag:"path",attr:{d:"M8.1 20.11l0 .01"},child:[]},{tag:"path",attr:{d:"M12 21l0 .01"},child:[]}]})(e)}function t5(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 16l-4 4"},child:[]},{tag:"path",attr:{d:"M7 12l5 5l-1.5 1.5a3.536 3.536 0 1 1 -5 -5l1.5 -1.5z"},child:[]},{tag:"path",attr:{d:"M17 12l-5 -5l1.5 -1.5a3.536 3.536 0 1 1 5 5l-1.5 1.5z"},child:[]},{tag:"path",attr:{d:"M3 21l2.5 -2.5"},child:[]},{tag:"path",attr:{d:"M18.5 5.5l2.5 -2.5"},child:[]},{tag:"path",attr:{d:"M10 11l-2 2"},child:[]},{tag:"path",attr:{d:"M13 14l-2 2"},child:[]},{tag:"path",attr:{d:"M16 16l4 4"},child:[]}]})(e)}function n5(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M7 12l5 5l-1.5 1.5a3.536 3.536 0 1 1 -5 -5l1.5 -1.5z"},child:[]},{tag:"path",attr:{d:"M17 12l-5 -5l1.5 -1.5a3.536 3.536 0 1 1 5 5l-1.5 1.5z"},child:[]},{tag:"path",attr:{d:"M3 21l2.5 -2.5"},child:[]},{tag:"path",attr:{d:"M18.5 5.5l2.5 -2.5"},child:[]},{tag:"path",attr:{d:"M10 11l-2 2"},child:[]},{tag:"path",attr:{d:"M13 14l-2 2"},child:[]}]})(e)}function a5(e){return Ce({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M5 4c-2.5 5 -2.5 10 0 16m14 -16c2.5 5 2.5 10 0 16m-10 -11h1c1 0 1 1 2.016 3.527c.984 2.473 .984 3.473 1.984 3.473h1"},child:[]},{tag:"path",attr:{d:"M8 16c1.5 0 3 -2 4 -3.5s2.5 -3.5 4 -3.5"},child:[]}]})(e)}const i5=e=>Nt.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 78 51",...e,className:wc(e.className,"logo"),stroke:"currentColor",fill:"currentColor",children:[Nt.jsx("g",{clipPath:"url(#clip0_327_656)",children:Nt.jsx("path",{d:"M17.3026 17.0048V51.0427H0V17.0048H17.3026ZM34.6051 -0.0140575C36.8587 -0.0327593 39.0939 0.392621 41.1831 1.23779C43.2723 2.08297 45.1746 3.33138 46.7813 4.91175C48.388 6.49211 49.6677 8.37348 50.5473 10.4484C51.4269 12.5234 51.8891 14.7512 51.9077 17.0048V51.0427H34.6051V17.0048H17.3026V-0.0140575H34.6051ZM77.8615 -0.0140575V51.0427C75.6074 51.0632 73.3714 50.6391 71.2813 49.7946C69.1913 48.9501 67.2883 47.7018 65.6812 46.1211C64.0741 44.5403 62.7945 42.6582 61.9156 40.5824C61.0366 38.5066 60.5756 36.2779 60.559 34.0238V-0.0140575H77.8615Z",fill:"#03B584"})}),Nt.jsx("defs",{children:Nt.jsx("clipPath",{id:"clip0_327_656",children:Nt.jsx("rect",{width:"77.8615",height:"51",fill:"white"})})})]}),o5=({className:e,style:r,...t})=>Nt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",className:wc(e,"logo"),...t,stroke:"currentColor",fill:"currentColor",viewBox:"0 0 512 325.74567",style:{transform:"scale(1.25)",...r},children:Nt.jsx("g",{transform:"translate(-151.28831,-121.30134)",id:"layer1",children:Nt.jsxs("g",{transform:"matrix(2.7387317,0,0,2.7387317,-938.60269,-766.86241)",id:"g3606",children:[Nt.jsx("path",{d:"m 405.36669,375.73826 c 4.0225,-3.7175 9.16125,-7.18625 15.20125,-10.32375 -0.74875,-2.4425 -1.085,-5.12 -1.085,-7.64375 0,-7.5075 2.73,-16.49375 11.71625,-16.49375 8.5125,0 11.5125,8.06125 11.80625,15.2925 10.53625,-3.17125 22.36875,-5.64 35.15375,-7.165 2.115,-6.09125 6.77375,-8.1275 10.68125,-8.1275 4.88875,0 7.94625,2.72625 9.6675,6.4675 3.5775,-0.1425 7.2475,-0.15875 10.915,-0.15875 9.17001,0 18.09501,0.40125 26.64001,1.25875 1.5525,-4.33625 4.76,-7.5675 11.15875,-7.5675 4.89125,0 9.32875,3.52625 9.4425,8.53125 l 18.76875,0 c -1.36625,-15.585 -14.4475,-23.32 -29.12125,-23.32 -14.0825,0 -24.29,7.3775 -28.6275,18.84125 -3.36625,-10.705 -11.15626,-18.84125 -24.40876,-18.84125 -6.825,0 -12.51125,2.95875 -16.265,8.5325 l -0.2275,0 0,-6.82625 -18.4275,0 0,13.57625 c -5.16625,-9.26625 -14.9475,-15.2825 -27.15625,-15.2825 -18.3125,0 -31.05375,13.5375 -31.05375,31.2825 0,6.79375 1.89,12.95125 5.22125,17.9675",id:"path3299",fillRule:"nonzero",fillOpacity:1}),Nt.jsx("path",{d:"m 426.05169,372.92451 c 1.42625,0.78 3.13,1.2275 5.1475,1.2275 6.175,0 9.45875,-4.1875 10.9025,-9.24375 10.05,-4.0125 21.88125,-7.235 34.94875,-9.4375 -0.0275,0.5225 -0.04,1.06125 -0.04,1.6175 0,10.3525 2.9575,17.06375 11.71625,17.06375 8.645,0 11.6025,-8.98625 11.6025,-17.06375 0,-1.42875 -0.0937,-2.88625 -0.32,-4.31 5.86,-0.40625 11.865,-0.61625 18.00001,-0.61625 5.82375,0 11.54375,0.19125 17.1225,0.5575 -0.30875,1.95125 -0.4225,3.98625 -0.4225,5.9625 0,7.62125 3.3,15.47 11.48875,15.47 6.7125,0 10.125,-3.8675 11.03375,-10.12375 l 18.76875,0 c -1.705,15.81125 -13.99125,24.9125 -29.68875,24.9125 -13.22625,0 -23.925,-6.76375 -28.51625,-17.6975 -3.2875,10.0525 -10.92501,17.6975 -23.04001,17.6975 -7.28,0 -12.85375,-2.73125 -16.83625,-8.0775 l -0.2275,0 0,28.92 -19.33625,0 0,-36.04 c -5.16625,9.2325 -14.9475,15.1975 -27.15625,15.1975 -6.8475,0 -12.8975,-1.8775 -17.8125,-5.155 3.10875,-3.875 7.38125,-7.51875 12.665,-10.86125",id:"path3301",fillOpacity:1,fillRule:"nonzero"}),Nt.jsx("path",{d:"m 582.7117,362.38451 c -19.015,-7.0775 -43.9375,-11.36875 -71.22126,-11.36875 -59.675,0 -108.05,20.525 -108.05,45.84375 0,21.07875 33.53,38.83125 79.19375,44.1875 -41.985,-6.12625 -72.15125,-22.9375 -72.15125,-42.7175 0,-24.96 48.005,-45.19375 107.22251,-45.19375 24.4475,0 46.97,3.4425 65.00625,9.24875",id:"path3303",fillOpacity:1,fillRule:"nonzero"})]})})}),xe=(e,r,{className:t}={})=>{const n=a=>Nt.jsx(e,{...a,className:wc(a.className,`synnax-icon-${r}`,t,"synnax-icon")});return n.displayName=e.displayName||e.name,n},qo={Linux:B3,MacOS:$3,Windows:cg,Docker:F3},It={Pause:xe(e4,"pause"),Play:xe(r4,"play"),Circle:xe(Q3,"circle"),Edit:xe(O4,"edit"),EditOff:xe(Z3,"edit-off"),Add:xe(U3,"add"),Subtract:xe(N3,"subtract"),Copy:xe(G3,"copy"),Close:xe(A3,"close"),Info:xe(b3,"info"),Warning:xe(w3,"warning"),Check:xe(S3,"check"),Refresh:xe(j3,"refresh"),Delete:xe(g3,"delete"),Time:xe(W3,"time"),Acquire:xe(Pp,"acquire"),Analyze:xe(R3,"analyze"),Concepts:xe(O3,"concepts"),Visualize:xe(zp,"visualize"),LinePlot:xe(zp,"line-plot"),Expand:xe(D3,"expand"),Cluster:xe(H3,"cluster"),Loading:xe(C3,"loading",{className:"media--spin"}),Schematic:xe(Pp,"schematic"),Caret:{Right:xe(U4,"caret-right"),Left:xe(k4,"caret-left"),Up:xe(I4,"caret-up"),Down:xe(q4,"caret-down")},Settings:xe(H4,"settings"),Reference:xe(V3,"reference"),Bolt:xe(k3,"bolt"),Download:xe(q3,"download"),Range:xe(F4,"range"),Node:xe(R4,"node"),Channel:xe(J3,"channel"),Resources:xe(Rp,"resources"),Group:xe(Rp,"group"),Workspace:xe(m4,"workspace"),OS:{Linux:xe(qo.Linux,"os-linux"),MacOS:xe(qo.MacOS,"os-macos"),Windows:xe(qo.Windows,"os-windows"),Docker:xe(qo.Docker,"os-docker")},Box:xe(E3,"box"),Python:xe(W4,"python"),TypeScript:xe(Z4,"typescript"),NPM:xe(V4,"npm"),PNPM:xe(G4,"pnpm"),Yarn:xe(Y4,"yarn"),QuestionMark:xe(K3,"question-mark"),Menu:xe(P3,"menu"),Logo:{Github:xe(y3,"logo-github"),LinkedIn:xe(x3,"logo-linkedin"),NI:xe(i5,"logo-ni"),OPC:xe(o5,"logo-opc")},Arrow:{Right:xe(Q4,"arrow-right"),Down:xe(K4,"arrow-down"),Up:xe(e5,"arrow-up"),Left:xe(J4,"arrow-left")},Keyboard:{Command:xe(S4,"keyboard-command"),Windows:xe(cg,"keyboard-windows"),Tab:xe(M4,"keyboard-tab"),Return:xe(N4,"keyboard-return"),Backspace:xe(w4,"keyboard-backspace"),Capslock:xe(E4,"keyboard-capslock"),Hide:xe(D4,"keyboard-hide"),Control:xe(A4,"keyboard-control"),Arrow:{Up:xe(x4,"keyboard-arrow-up"),Down:xe(g4,"keyboard-arrow-down"),Left:xe(y4,"keyboard-arrow-left"),Right:xe(b4,"keyboard-arrow-right")},Alt:xe(h4,"keyboard-alt"),Option:xe(C4,"keyboard-option"),Shift:xe(_3,"keyboard-shift")},Tooltip:xe(t4,"tooltip"),Annotate:xe(Y3,"annotate"),Zoom:xe(Ip,"zoom"),Selection:xe(L4,"selection"),Pan:xe(L3,"pan"),Rule:xe(i4,"rule"),User:xe($4,"user"),Rename:xe(T3,"rename"),Snapshot:xe(X3,"snapshot"),Sync:xe(M3,"sync"),Search:xe(Ip,"search"),Auto:xe(T4,"auto"),Table:xe(B4,"table"),Align:{Right:xe(u4,"align-right"),Left:xe(s4,"align-left"),XCenter:xe(o4,"align-x-center"),YCenter:xe(c4,"align-y-center"),Top:xe(f4,"align-top"),Bottom:xe(l4,"align-bottom")},Connect:xe(n5,"connect"),Disconnect:xe(t5,"disconnect"),Hardware:xe(_4,"hardware"),Save:xe(a4,"save"),Task:xe(X4,"task"),Device:xe(j4,"device"),Link:xe(n4,"link"),Attachment:xe(z3,"attachment"),Drag:xe(I3,"drag"),Dynamic:xe(r5,"dynamic"),Enable:xe(z4,"enable"),Disable:xe(P4,"disable"),Variable:xe(a5,"variable"),Object:xe(d4,"object"),Type:xe(v4,"type"),Array:xe(p4,"array")},$l=e=>{if(e==null)return{x:void 0,y:void 0};const r=G.k$1.safeParse(e);if(r.success)return r.data;const t=G.c.safeParse(e);return t.success?G.t(t.data)==="x"?{x:t.data,y:void 0}:{x:void 0,y:t.data}:e},s5=({container:e,target:r,dialog:t,initial:n,prefer:a,alignments:i=["start"],disable:o=[]})=>{const s=$l(n);let u=G.M;if(a!=null){const m=a.map(g=>$l(g));u=u.slice().sort((g,y)=>{const E=m.findIndex(w=>G.B(g,w)),h=m.findIndex(w=>G.B(y,w));return E>-1&&h>-1?E-h:E>-1?-1:h>-1?1:0})}const l=u.filter(m=>!G.$(m,G.y)&&(s.x==null||m.x===s.x)&&(s.y==null||m.y===s.y)&&!o.some(g=>G.B(m,g))).map(m=>i==null?void 0:i.map(g=>[m,g])).flat(),c=G.c$1(e),f=G.c$1(r),p=G.c$1(t);let d=-1/0;const v={location:G.y,adjustedDialog:p};return l.forEach(([m,g])=>{const[y,E]=u5({option:m,alignment:g,container:c,target:f,dialog:p});E>d&&(d=E,v.location=m,v.adjustedDialog=y)}),v},u5=({option:e,alignment:r,container:t,target:n,dialog:a})=>{const i=fg(e,r),o=G.g$1(n,e),s=G.po(o.x,o.y,G.u$1(a),G.l(a),i,G.T$1),u=G.fo(G.wo(s,t));return[s,u]},l5={start:"left",center:"center",end:"right"},c5={start:"bottom",center:"center",end:"top"},fg=(e,r)=>{const t={x:"center",y:"center"};if(e.y!=="center"){t.y=G.A(e.y);const n=e.x==="left"?G.A:a=>a;t.x=n(l5[r])}else t.x=G.A(e.x),t.y=c5[r];return t},Ec=Object.freeze(Object.defineProperty({__proto__:null,dialog:s5,getRoot:fg,parseLocationOptions:$l},Symbol.toStringTag,{value:"Module"}));var Pt={},co={},f5=typeof ye.commonjsGlobal=="object"&&ye.commonjsGlobal&&ye.commonjsGlobal.Object===Object&&ye.commonjsGlobal,pg=f5,p5=pg,d5=typeof self=="object"&&self&&self.Object===Object&&self,v5=p5||d5||Function("return this")(),ln=v5,m5=ln,h5=m5.Symbol,fo=h5,Lp=fo,dg=Object.prototype,g5=dg.hasOwnProperty,y5=dg.toString,Ui=Lp?Lp.toStringTag:void 0;function b5(e){var r=g5.call(e,Ui),t=e[Ui];try{e[Ui]=void 0;var n=!0}catch{}var a=y5.call(e);return n&&(r?e[Ui]=t:delete e[Ui]),a}var x5=b5,w5=Object.prototype,E5=w5.toString;function S5(e){return E5.call(e)}var A5=S5,qp=fo,D5=x5,C5=A5,N5="[object Null]",M5="[object Undefined]",kp=qp?qp.toStringTag:void 0;function T5(e){return e==null?e===void 0?M5:N5:kp&&kp in Object(e)?D5(e):C5(e)}var oa=T5,O5=Array.isArray,Jt=O5;function _5(e){return e!=null&&typeof e=="object"}var Dn=_5,$5=oa,F5=Jt,B5=Dn,R5="[object String]";function P5(e){return typeof e=="string"||!F5(e)&&B5(e)&&$5(e)==R5}var z5=P5;function I5(e){return function(r,t,n){for(var a=-1,i=Object(r),o=n(r),s=o.length;s--;){var u=o[e?s:++a];if(t(i[u],u,i)===!1)break}return r}}var L5=I5,q5=L5,k5=q5(),U5=k5;function H5(e,r){for(var t=-1,n=Array(e);++t<e;)n[t]=r(t);return n}var j5=H5,V5=oa,G5=Dn,W5="[object Arguments]";function Z5(e){return G5(e)&&V5(e)==W5}var Y5=Z5,Up=Y5,X5=Dn,vg=Object.prototype,K5=vg.hasOwnProperty,J5=vg.propertyIsEnumerable,Q5=Up(function(){return arguments}())?Up:function(e){return X5(e)&&K5.call(e,"callee")&&!J5.call(e,"callee")},mg=Q5,gs={exports:{}};function eE(){return!1}var rE=eE;gs.exports;(function(e,r){var t=ln,n=rE,a=r&&!r.nodeType&&r,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,s=o?t.Buffer:void 0,u=s?s.isBuffer:void 0,l=u||n;e.exports=l})(gs,gs.exports);var Sc=gs.exports,tE=9007199254740991,nE=/^(?:0|[1-9]\d*)$/;function aE(e,r){var t=typeof e;return r=r??tE,!!r&&(t=="number"||t!="symbol"&&nE.test(e))&&e>-1&&e%1==0&&e<r}var hg=aE,iE=9007199254740991;function oE(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=iE}var Ac=oE,sE=oa,uE=Ac,lE=Dn,cE="[object Arguments]",fE="[object Array]",pE="[object Boolean]",dE="[object Date]",vE="[object Error]",mE="[object Function]",hE="[object Map]",gE="[object Number]",yE="[object Object]",bE="[object RegExp]",xE="[object Set]",wE="[object String]",EE="[object WeakMap]",SE="[object ArrayBuffer]",AE="[object DataView]",DE="[object Float32Array]",CE="[object Float64Array]",NE="[object Int8Array]",ME="[object Int16Array]",TE="[object Int32Array]",OE="[object Uint8Array]",_E="[object Uint8ClampedArray]",$E="[object Uint16Array]",FE="[object Uint32Array]",$r={};$r[DE]=$r[CE]=$r[NE]=$r[ME]=$r[TE]=$r[OE]=$r[_E]=$r[$E]=$r[FE]=!0;$r[cE]=$r[fE]=$r[SE]=$r[pE]=$r[AE]=$r[dE]=$r[vE]=$r[mE]=$r[hE]=$r[gE]=$r[yE]=$r[bE]=$r[xE]=$r[wE]=$r[EE]=!1;function BE(e){return lE(e)&&uE(e.length)&&!!$r[sE(e)]}var RE=BE;function PE(e){return function(r){return e(r)}}var Dc=PE,ys={exports:{}};ys.exports;(function(e,r){var t=pg,n=r&&!r.nodeType&&r,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i&&t.process,s=function(){try{var u=a&&a.require&&a.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(ys,ys.exports);var Cc=ys.exports,zE=RE,IE=Dc,Hp=Cc,jp=Hp&&Hp.isTypedArray,LE=jp?IE(jp):zE,gg=LE,qE=j5,kE=mg,UE=Jt,HE=Sc,jE=hg,VE=gg,GE=Object.prototype,WE=GE.hasOwnProperty;function ZE(e,r){var t=UE(e),n=!t&&kE(e),a=!t&&!n&&HE(e),i=!t&&!n&&!a&&VE(e),o=t||n||a||i,s=o?qE(e.length,String):[],u=s.length;for(var l in e)(r||WE.call(e,l))&&!(o&&(l=="length"||a&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||jE(l,u)))&&s.push(l);return s}var yg=ZE,YE=Object.prototype;function XE(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||YE;return e===t}var Nc=XE;function KE(e,r){return function(t){return e(r(t))}}var bg=KE,JE=bg,QE=JE(Object.keys,Object),eS=QE,rS=Nc,tS=eS,nS=Object.prototype,aS=nS.hasOwnProperty;function iS(e){if(!rS(e))return tS(e);var r=[];for(var t in Object(e))aS.call(e,t)&&t!="constructor"&&r.push(t);return r}var oS=iS;function sS(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var fi=sS,uS=oa,lS=fi,cS="[object AsyncFunction]",fS="[object Function]",pS="[object GeneratorFunction]",dS="[object Proxy]";function vS(e){if(!lS(e))return!1;var r=uS(e);return r==fS||r==pS||r==cS||r==dS}var xg=vS,mS=xg,hS=Ac;function gS(e){return e!=null&&hS(e.length)&&!mS(e)}var Js=gS,yS=yg,bS=oS,xS=Js;function wS(e){return xS(e)?yS(e):bS(e)}var po=wS,ES=U5,SS=po;function AS(e,r){return e&&ES(e,r,SS)}var wg=AS;function DS(e){return e}var Eg=DS,CS=Eg;function NS(e){return typeof e=="function"?e:CS}var MS=NS,TS=wg,OS=MS;function _S(e,r){return e&&TS(e,OS(r))}var Mc=_S,$S=bg,FS=$S(Object.getPrototypeOf,Object),Tc=FS,BS=oa,RS=Tc,PS=Dn,zS="[object Object]",IS=Function.prototype,LS=Object.prototype,Sg=IS.toString,qS=LS.hasOwnProperty,kS=Sg.call(Object);function US(e){if(!PS(e)||BS(e)!=zS)return!1;var r=RS(e);if(r===null)return!0;var t=qS.call(r,"constructor")&&r.constructor;return typeof t=="function"&&t instanceof t&&Sg.call(t)==kS}var HS=US;function jS(e,r){for(var t=-1,n=e==null?0:e.length,a=Array(n);++t<n;)a[t]=r(e[t],t,e);return a}var Ag=jS;function VS(){this.__data__=[],this.size=0}var GS=VS;function WS(e,r){return e===r||e!==e&&r!==r}var Oc=WS,ZS=Oc;function YS(e,r){for(var t=e.length;t--;)if(ZS(e[t][0],r))return t;return-1}var Qs=YS,XS=Qs,KS=Array.prototype,JS=KS.splice;function QS(e){var r=this.__data__,t=XS(r,e);if(t<0)return!1;var n=r.length-1;return t==n?r.pop():JS.call(r,t,1),--this.size,!0}var eA=QS,rA=Qs;function tA(e){var r=this.__data__,t=rA(r,e);return t<0?void 0:r[t][1]}var nA=tA,aA=Qs;function iA(e){return aA(this.__data__,e)>-1}var oA=iA,sA=Qs;function uA(e,r){var t=this.__data__,n=sA(t,e);return n<0?(++this.size,t.push([e,r])):t[n][1]=r,this}var lA=uA,cA=GS,fA=eA,pA=nA,dA=oA,vA=lA;function pi(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}pi.prototype.clear=cA;pi.prototype.delete=fA;pi.prototype.get=pA;pi.prototype.has=dA;pi.prototype.set=vA;var eu=pi,mA=eu;function hA(){this.__data__=new mA,this.size=0}var gA=hA;function yA(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}var bA=yA;function xA(e){return this.__data__.get(e)}var wA=xA;function EA(e){return this.__data__.has(e)}var SA=EA,AA=ln,DA=AA["__core-js_shared__"],CA=DA,el=CA,Vp=function(){var e=/[^.]+$/.exec(el&&el.keys&&el.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function NA(e){return!!Vp&&Vp in e}var MA=NA,TA=Function.prototype,OA=TA.toString;function _A(e){if(e!=null){try{return OA.call(e)}catch{}try{return e+""}catch{}}return""}var Dg=_A,$A=xg,FA=MA,BA=fi,RA=Dg,PA=/[\\^$.*+?()[\]{}|]/g,zA=/^\[object .+?Constructor\]$/,IA=Function.prototype,LA=Object.prototype,qA=IA.toString,kA=LA.hasOwnProperty,UA=RegExp("^"+qA.call(kA).replace(PA,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function HA(e){if(!BA(e)||FA(e))return!1;var r=$A(e)?UA:zA;return r.test(RA(e))}var jA=HA;function VA(e,r){return e==null?void 0:e[r]}var GA=VA,WA=jA,ZA=GA;function YA(e,r){var t=ZA(e,r);return WA(t)?t:void 0}var sa=YA,XA=sa,KA=ln,JA=XA(KA,"Map"),_c=JA,QA=sa,eD=QA(Object,"create"),ru=eD,Gp=ru;function rD(){this.__data__=Gp?Gp(null):{},this.size=0}var tD=rD;function nD(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}var aD=nD,iD=ru,oD="__lodash_hash_undefined__",sD=Object.prototype,uD=sD.hasOwnProperty;function lD(e){var r=this.__data__;if(iD){var t=r[e];return t===oD?void 0:t}return uD.call(r,e)?r[e]:void 0}var cD=lD,fD=ru,pD=Object.prototype,dD=pD.hasOwnProperty;function vD(e){var r=this.__data__;return fD?r[e]!==void 0:dD.call(r,e)}var mD=vD,hD=ru,gD="__lodash_hash_undefined__";function yD(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=hD&&r===void 0?gD:r,this}var bD=yD,xD=tD,wD=aD,ED=cD,SD=mD,AD=bD;function di(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}di.prototype.clear=xD;di.prototype.delete=wD;di.prototype.get=ED;di.prototype.has=SD;di.prototype.set=AD;var DD=di,Wp=DD,CD=eu,ND=_c;function MD(){this.size=0,this.__data__={hash:new Wp,map:new(ND||CD),string:new Wp}}var TD=MD;function OD(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}var _D=OD,$D=_D;function FD(e,r){var t=e.__data__;return $D(r)?t[typeof r=="string"?"string":"hash"]:t.map}var tu=FD,BD=tu;function RD(e){var r=BD(this,e).delete(e);return this.size-=r?1:0,r}var PD=RD,zD=tu;function ID(e){return zD(this,e).get(e)}var LD=ID,qD=tu;function kD(e){return qD(this,e).has(e)}var UD=kD,HD=tu;function jD(e,r){var t=HD(this,e),n=t.size;return t.set(e,r),this.size+=t.size==n?0:1,this}var VD=jD,GD=TD,WD=PD,ZD=LD,YD=UD,XD=VD;function vi(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}vi.prototype.clear=GD;vi.prototype.delete=WD;vi.prototype.get=ZD;vi.prototype.has=YD;vi.prototype.set=XD;var $c=vi,KD=eu,JD=_c,QD=$c,eC=200;function rC(e,r){var t=this.__data__;if(t instanceof KD){var n=t.__data__;if(!JD||n.length<eC-1)return n.push([e,r]),this.size=++t.size,this;t=this.__data__=new QD(n)}return t.set(e,r),this.size=t.size,this}var tC=rC,nC=eu,aC=gA,iC=bA,oC=wA,sC=SA,uC=tC;function mi(e){var r=this.__data__=new nC(e);this.size=r.size}mi.prototype.clear=aC;mi.prototype.delete=iC;mi.prototype.get=oC;mi.prototype.has=sC;mi.prototype.set=uC;var Fc=mi,lC="__lodash_hash_undefined__";function cC(e){return this.__data__.set(e,lC),this}var fC=cC;function pC(e){return this.__data__.has(e)}var dC=pC,vC=$c,mC=fC,hC=dC;function bs(e){var r=-1,t=e==null?0:e.length;for(this.__data__=new vC;++r<t;)this.add(e[r])}bs.prototype.add=bs.prototype.push=mC;bs.prototype.has=hC;var gC=bs;function yC(e,r){for(var t=-1,n=e==null?0:e.length;++t<n;)if(r(e[t],t,e))return!0;return!1}var bC=yC;function xC(e,r){return e.has(r)}var wC=xC,EC=gC,SC=bC,AC=wC,DC=1,CC=2;function NC(e,r,t,n,a,i){var o=t&DC,s=e.length,u=r.length;if(s!=u&&!(o&&u>s))return!1;var l=i.get(e),c=i.get(r);if(l&&c)return l==r&&c==e;var f=-1,p=!0,d=t&CC?new EC:void 0;for(i.set(e,r),i.set(r,e);++f<s;){var v=e[f],m=r[f];if(n)var g=o?n(m,v,f,r,e,i):n(v,m,f,e,r,i);if(g!==void 0){if(g)continue;p=!1;break}if(d){if(!SC(r,function(y,E){if(!AC(d,E)&&(v===y||a(v,y,t,n,i)))return d.push(E)})){p=!1;break}}else if(!(v===m||a(v,m,t,n,i))){p=!1;break}}return i.delete(e),i.delete(r),p}var Cg=NC,MC=ln,TC=MC.Uint8Array,Ng=TC;function OC(e){var r=-1,t=Array(e.size);return e.forEach(function(n,a){t[++r]=[a,n]}),t}var _C=OC;function $C(e){var r=-1,t=Array(e.size);return e.forEach(function(n){t[++r]=n}),t}var FC=$C,Zp=fo,Yp=Ng,BC=Oc,RC=Cg,PC=_C,zC=FC,IC=1,LC=2,qC="[object Boolean]",kC="[object Date]",UC="[object Error]",HC="[object Map]",jC="[object Number]",VC="[object RegExp]",GC="[object Set]",WC="[object String]",ZC="[object Symbol]",YC="[object ArrayBuffer]",XC="[object DataView]",Xp=Zp?Zp.prototype:void 0,rl=Xp?Xp.valueOf:void 0;function KC(e,r,t,n,a,i,o){switch(t){case XC:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case YC:return!(e.byteLength!=r.byteLength||!i(new Yp(e),new Yp(r)));case qC:case kC:case jC:return BC(+e,+r);case UC:return e.name==r.name&&e.message==r.message;case VC:case WC:return e==r+"";case HC:var s=PC;case GC:var u=n&IC;if(s||(s=zC),e.size!=r.size&&!u)return!1;var l=o.get(e);if(l)return l==r;n|=LC,o.set(e,r);var c=RC(s(e),s(r),n,a,i,o);return o.delete(e),c;case ZC:if(rl)return rl.call(e)==rl.call(r)}return!1}var JC=KC;function QC(e,r){for(var t=-1,n=r.length,a=e.length;++t<n;)e[a+t]=r[t];return e}var Mg=QC,eN=Mg,rN=Jt;function tN(e,r,t){var n=r(e);return rN(e)?n:eN(n,t(e))}var Tg=tN;function nN(e,r){for(var t=-1,n=e==null?0:e.length,a=0,i=[];++t<n;){var o=e[t];r(o,t,e)&&(i[a++]=o)}return i}var aN=nN;function iN(){return[]}var Og=iN,oN=aN,sN=Og,uN=Object.prototype,lN=uN.propertyIsEnumerable,Kp=Object.getOwnPropertySymbols,cN=Kp?function(e){return e==null?[]:(e=Object(e),oN(Kp(e),function(r){return lN.call(e,r)}))}:sN,Bc=cN,fN=Tg,pN=Bc,dN=po;function vN(e){return fN(e,dN,pN)}var _g=vN,Jp=_g,mN=1,hN=Object.prototype,gN=hN.hasOwnProperty;function yN(e,r,t,n,a,i){var o=t&mN,s=Jp(e),u=s.length,l=Jp(r),c=l.length;if(u!=c&&!o)return!1;for(var f=u;f--;){var p=s[f];if(!(o?p in r:gN.call(r,p)))return!1}var d=i.get(e),v=i.get(r);if(d&&v)return d==r&&v==e;var m=!0;i.set(e,r),i.set(r,e);for(var g=o;++f<u;){p=s[f];var y=e[p],E=r[p];if(n)var h=o?n(E,y,p,r,e,i):n(y,E,p,e,r,i);if(!(h===void 0?y===E||a(y,E,t,n,i):h)){m=!1;break}g||(g=p=="constructor")}if(m&&!g){var w=e.constructor,x=r.constructor;w!=x&&"constructor"in e&&"constructor"in r&&!(typeof w=="function"&&w instanceof w&&typeof x=="function"&&x instanceof x)&&(m=!1)}return i.delete(e),i.delete(r),m}var bN=yN,xN=sa,wN=ln,EN=xN(wN,"DataView"),SN=EN,AN=sa,DN=ln,CN=AN(DN,"Promise"),NN=CN,MN=sa,TN=ln,ON=MN(TN,"Set"),_N=ON,$N=sa,FN=ln,BN=$N(FN,"WeakMap"),RN=BN,Fl=SN,Bl=_c,Rl=NN,Pl=_N,zl=RN,$g=oa,hi=Dg,Qp="[object Map]",PN="[object Object]",ed="[object Promise]",rd="[object Set]",td="[object WeakMap]",nd="[object DataView]",zN=hi(Fl),IN=hi(Bl),LN=hi(Rl),qN=hi(Pl),kN=hi(zl),Qn=$g;(Fl&&Qn(new Fl(new ArrayBuffer(1)))!=nd||Bl&&Qn(new Bl)!=Qp||Rl&&Qn(Rl.resolve())!=ed||Pl&&Qn(new Pl)!=rd||zl&&Qn(new zl)!=td)&&(Qn=function(e){var r=$g(e),t=r==PN?e.constructor:void 0,n=t?hi(t):"";if(n)switch(n){case zN:return nd;case IN:return Qp;case LN:return ed;case qN:return rd;case kN:return td}return r});var nu=Qn,tl=Fc,UN=Cg,HN=JC,jN=bN,ad=nu,id=Jt,od=Sc,VN=gg,GN=1,sd="[object Arguments]",ud="[object Array]",ko="[object Object]",WN=Object.prototype,ld=WN.hasOwnProperty;function ZN(e,r,t,n,a,i){var o=id(e),s=id(r),u=o?ud:ad(e),l=s?ud:ad(r);u=u==sd?ko:u,l=l==sd?ko:l;var c=u==ko,f=l==ko,p=u==l;if(p&&od(e)){if(!od(r))return!1;o=!0,c=!1}if(p&&!c)return i||(i=new tl),o||VN(e)?UN(e,r,t,n,a,i):HN(e,r,u,t,n,a,i);if(!(t&GN)){var d=c&&ld.call(e,"__wrapped__"),v=f&&ld.call(r,"__wrapped__");if(d||v){var m=d?e.value():e,g=v?r.value():r;return i||(i=new tl),a(m,g,t,n,i)}}return p?(i||(i=new tl),jN(e,r,t,n,a,i)):!1}var YN=ZN,XN=YN,cd=Dn;function Fg(e,r,t,n,a){return e===r?!0:e==null||r==null||!cd(e)&&!cd(r)?e!==e&&r!==r:XN(e,r,t,n,Fg,a)}var Bg=Fg,KN=Fc,JN=Bg,QN=1,e6=2;function r6(e,r,t,n){var a=t.length,i=a,o=!n;if(e==null)return!i;for(e=Object(e);a--;){var s=t[a];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<i;){s=t[a];var u=s[0],l=e[u],c=s[1];if(o&&s[2]){if(l===void 0&&!(u in e))return!1}else{var f=new KN;if(n)var p=n(l,c,u,e,r,f);if(!(p===void 0?JN(c,l,QN|e6,n,f):p))return!1}}return!0}var t6=r6,n6=fi;function a6(e){return e===e&&!n6(e)}var Rg=a6,i6=Rg,o6=po;function s6(e){for(var r=o6(e),t=r.length;t--;){var n=r[t],a=e[n];r[t]=[n,a,i6(a)]}return r}var u6=s6;function l6(e,r){return function(t){return t==null?!1:t[e]===r&&(r!==void 0||e in Object(t))}}var Pg=l6,c6=t6,f6=u6,p6=Pg;function d6(e){var r=f6(e);return r.length==1&&r[0][2]?p6(r[0][0],r[0][1]):function(t){return t===e||c6(t,e,r)}}var v6=d6,m6=oa,h6=Dn,g6="[object Symbol]";function y6(e){return typeof e=="symbol"||h6(e)&&m6(e)==g6}var Rc=y6,b6=Jt,x6=Rc,w6=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,E6=/^\w*$/;function S6(e,r){if(b6(e))return!1;var t=typeof e;return t=="number"||t=="symbol"||t=="boolean"||e==null||x6(e)?!0:E6.test(e)||!w6.test(e)||r!=null&&e in Object(r)}var Pc=S6,zg=$c,A6="Expected a function";function zc(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(A6);var t=function(){var n=arguments,a=r?r.apply(this,n):n[0],i=t.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return t.cache=i.set(a,o)||i,o};return t.cache=new(zc.Cache||zg),t}zc.Cache=zg;var D6=zc,C6=D6,N6=500;function M6(e){var r=C6(e,function(n){return t.size===N6&&t.clear(),n}),t=r.cache;return r}var T6=M6,O6=T6,_6=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$6=/\\(\\)?/g,F6=O6(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(_6,function(t,n,a,i){r.push(a?i.replace($6,"$1"):n||t)}),r}),B6=F6,fd=fo,R6=Ag,P6=Jt,z6=Rc,I6=1/0,pd=fd?fd.prototype:void 0,dd=pd?pd.toString:void 0;function Ig(e){if(typeof e=="string")return e;if(P6(e))return R6(e,Ig)+"";if(z6(e))return dd?dd.call(e):"";var r=e+"";return r=="0"&&1/e==-I6?"-0":r}var L6=Ig,q6=L6;function k6(e){return e==null?"":q6(e)}var U6=k6,H6=Jt,j6=Pc,V6=B6,G6=U6;function W6(e,r){return H6(e)?e:j6(e,r)?[e]:V6(G6(e))}var Lg=W6,Z6=Rc,Y6=1/0;function X6(e){if(typeof e=="string"||Z6(e))return e;var r=e+"";return r=="0"&&1/e==-Y6?"-0":r}var au=X6,K6=Lg,J6=au;function Q6(e,r){r=K6(r,e);for(var t=0,n=r.length;e!=null&&t<n;)e=e[J6(r[t++])];return t&&t==n?e:void 0}var qg=Q6,e8=qg;function r8(e,r,t){var n=e==null?void 0:e8(e,r);return n===void 0?t:n}var t8=r8;function n8(e,r){return e!=null&&r in Object(e)}var a8=n8,i8=Lg,o8=mg,s8=Jt,u8=hg,l8=Ac,c8=au;function f8(e,r,t){r=i8(r,e);for(var n=-1,a=r.length,i=!1;++n<a;){var o=c8(r[n]);if(!(i=e!=null&&t(e,o)))break;e=e[o]}return i||++n!=a?i:(a=e==null?0:e.length,!!a&&l8(a)&&u8(o,a)&&(s8(e)||o8(e)))}var p8=f8,d8=a8,v8=p8;function m8(e,r){return e!=null&&v8(e,r,d8)}var h8=m8,g8=Bg,y8=t8,b8=h8,x8=Pc,w8=Rg,E8=Pg,S8=au,A8=1,D8=2;function C8(e,r){return x8(e)&&w8(r)?E8(S8(e),r):function(t){var n=y8(t,e);return n===void 0&&n===r?b8(t,e):g8(r,n,A8|D8)}}var N8=C8;function M8(e){return function(r){return r==null?void 0:r[e]}}var T8=M8,O8=qg;function _8(e){return function(r){return O8(r,e)}}var $8=_8,F8=T8,B8=$8,R8=Pc,P8=au;function z8(e){return R8(e)?F8(P8(e)):B8(e)}var I8=z8,L8=v6,q8=N8,k8=Eg,U8=Jt,H8=I8;function j8(e){return typeof e=="function"?e:e==null?k8:typeof e=="object"?U8(e)?q8(e[0],e[1]):L8(e):H8(e)}var V8=j8,G8=Js;function W8(e,r){return function(t,n){if(t==null)return t;if(!G8(t))return e(t,n);for(var a=t.length,i=r?a:-1,o=Object(t);(r?i--:++i<a)&&n(o[i],i,o)!==!1;);return t}}var Z8=W8,Y8=wg,X8=Z8,K8=X8(Y8),J8=K8,Q8=J8,eM=Js;function rM(e,r){var t=-1,n=eM(e)?Array(e.length):[];return Q8(e,function(a,i,o){n[++t]=r(a,i,o)}),n}var tM=rM,nM=Ag,aM=V8,iM=tM,oM=Jt;function sM(e,r){var t=oM(e)?nM:iM;return t(e,aM(r))}var uM=sM;Object.defineProperty(co,"__esModule",{value:!0});co.flattenNames=void 0;var lM=z5,cM=iu(lM),fM=Mc,pM=iu(fM),dM=HS,vM=iu(dM),mM=uM,hM=iu(mM);function iu(e){return e&&e.__esModule?e:{default:e}}var gM=co.flattenNames=function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=[];return(0,hM.default)(r,function(n){Array.isArray(n)?e(n).map(function(a){return t.push(a)}):(0,vM.default)(n)?(0,pM.default)(n,function(a,i){a===!0&&t.push(i),t.push(i+"-"+a)}):(0,cM.default)(n)&&t.push(n)}),t};co.default=gM;var vo={};function yM(e,r){for(var t=-1,n=e==null?0:e.length;++t<n&&r(e[t],t,e)!==!1;);return e}var bM=yM,xM=sa,wM=function(){try{var e=xM(Object,"defineProperty");return e({},"",{}),e}catch{}}(),EM=wM,vd=EM;function SM(e,r,t){r=="__proto__"&&vd?vd(e,r,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[r]=t}var kg=SM,AM=kg,DM=Oc,CM=Object.prototype,NM=CM.hasOwnProperty;function MM(e,r,t){var n=e[r];(!(NM.call(e,r)&&DM(n,t))||t===void 0&&!(r in e))&&AM(e,r,t)}var Ug=MM,TM=Ug,OM=kg;function _M(e,r,t,n){var a=!t;t||(t={});for(var i=-1,o=r.length;++i<o;){var s=r[i],u=n?n(t[s],e[s],s,t,e):void 0;u===void 0&&(u=e[s]),a?OM(t,s,u):TM(t,s,u)}return t}var ou=_M,$M=ou,FM=po;function BM(e,r){return e&&$M(r,FM(r),e)}var RM=BM;function PM(e){var r=[];if(e!=null)for(var t in Object(e))r.push(t);return r}var zM=PM,IM=fi,LM=Nc,qM=zM,kM=Object.prototype,UM=kM.hasOwnProperty;function HM(e){if(!IM(e))return qM(e);var r=LM(e),t=[];for(var n in e)n=="constructor"&&(r||!UM.call(e,n))||t.push(n);return t}var jM=HM,VM=yg,GM=jM,WM=Js;function ZM(e){return WM(e)?VM(e,!0):GM(e)}var Ic=ZM,YM=ou,XM=Ic;function KM(e,r){return e&&YM(r,XM(r),e)}var JM=KM,xs={exports:{}};xs.exports;(function(e,r){var t=ln,n=r&&!r.nodeType&&r,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i?t.Buffer:void 0,s=o?o.allocUnsafe:void 0;function u(l,c){if(c)return l.slice();var f=l.length,p=s?s(f):new l.constructor(f);return l.copy(p),p}e.exports=u})(xs,xs.exports);var QM=xs.exports;function e7(e,r){var t=-1,n=e.length;for(r||(r=Array(n));++t<n;)r[t]=e[t];return r}var r7=e7,t7=ou,n7=Bc;function a7(e,r){return t7(e,n7(e),r)}var i7=a7,o7=Mg,s7=Tc,u7=Bc,l7=Og,c7=Object.getOwnPropertySymbols,f7=c7?function(e){for(var r=[];e;)o7(r,u7(e)),e=s7(e);return r}:l7,Hg=f7,p7=ou,d7=Hg;function v7(e,r){return p7(e,d7(e),r)}var m7=v7,h7=Tg,g7=Hg,y7=Ic;function b7(e){return h7(e,y7,g7)}var x7=b7,w7=Object.prototype,E7=w7.hasOwnProperty;function S7(e){var r=e.length,t=new e.constructor(r);return r&&typeof e[0]=="string"&&E7.call(e,"index")&&(t.index=e.index,t.input=e.input),t}var A7=S7,md=Ng;function D7(e){var r=new e.constructor(e.byteLength);return new md(r).set(new md(e)),r}var Lc=D7,C7=Lc;function N7(e,r){var t=r?C7(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}var M7=N7,T7=/\w*$/;function O7(e){var r=new e.constructor(e.source,T7.exec(e));return r.lastIndex=e.lastIndex,r}var _7=O7,hd=fo,gd=hd?hd.prototype:void 0,yd=gd?gd.valueOf:void 0;function $7(e){return yd?Object(yd.call(e)):{}}var F7=$7,B7=Lc;function R7(e,r){var t=r?B7(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}var P7=R7,z7=Lc,I7=M7,L7=_7,q7=F7,k7=P7,U7="[object Boolean]",H7="[object Date]",j7="[object Map]",V7="[object Number]",G7="[object RegExp]",W7="[object Set]",Z7="[object String]",Y7="[object Symbol]",X7="[object ArrayBuffer]",K7="[object DataView]",J7="[object Float32Array]",Q7="[object Float64Array]",e9="[object Int8Array]",r9="[object Int16Array]",t9="[object Int32Array]",n9="[object Uint8Array]",a9="[object Uint8ClampedArray]",i9="[object Uint16Array]",o9="[object Uint32Array]";function s9(e,r,t){var n=e.constructor;switch(r){case X7:return z7(e);case U7:case H7:return new n(+e);case K7:return I7(e,t);case J7:case Q7:case e9:case r9:case t9:case n9:case a9:case i9:case o9:return k7(e,t);case j7:return new n;case V7:case Z7:return new n(e);case G7:return L7(e);case W7:return new n;case Y7:return q7(e)}}var u9=s9,l9=fi,bd=Object.create,c9=function(){function e(){}return function(r){if(!l9(r))return{};if(bd)return bd(r);e.prototype=r;var t=new e;return e.prototype=void 0,t}}(),f9=c9,p9=f9,d9=Tc,v9=Nc;function m9(e){return typeof e.constructor=="function"&&!v9(e)?p9(d9(e)):{}}var h9=m9,g9=nu,y9=Dn,b9="[object Map]";function x9(e){return y9(e)&&g9(e)==b9}var w9=x9,E9=w9,S9=Dc,xd=Cc,wd=xd&&xd.isMap,A9=wd?S9(wd):E9,D9=A9,C9=nu,N9=Dn,M9="[object Set]";function T9(e){return N9(e)&&C9(e)==M9}var O9=T9,_9=O9,$9=Dc,Ed=Cc,Sd=Ed&&Ed.isSet,F9=Sd?$9(Sd):_9,B9=F9,R9=Fc,P9=bM,z9=Ug,I9=RM,L9=JM,q9=QM,k9=r7,U9=i7,H9=m7,j9=_g,V9=x7,G9=nu,W9=A7,Z9=u9,Y9=h9,X9=Jt,K9=Sc,J9=D9,Q9=fi,eT=B9,rT=po,tT=Ic,nT=1,aT=2,iT=4,jg="[object Arguments]",oT="[object Array]",sT="[object Boolean]",uT="[object Date]",lT="[object Error]",Vg="[object Function]",cT="[object GeneratorFunction]",fT="[object Map]",pT="[object Number]",Gg="[object Object]",dT="[object RegExp]",vT="[object Set]",mT="[object String]",hT="[object Symbol]",gT="[object WeakMap]",yT="[object ArrayBuffer]",bT="[object DataView]",xT="[object Float32Array]",wT="[object Float64Array]",ET="[object Int8Array]",ST="[object Int16Array]",AT="[object Int32Array]",DT="[object Uint8Array]",CT="[object Uint8ClampedArray]",NT="[object Uint16Array]",MT="[object Uint32Array]",Or={};Or[jg]=Or[oT]=Or[yT]=Or[bT]=Or[sT]=Or[uT]=Or[xT]=Or[wT]=Or[ET]=Or[ST]=Or[AT]=Or[fT]=Or[pT]=Or[Gg]=Or[dT]=Or[vT]=Or[mT]=Or[hT]=Or[DT]=Or[CT]=Or[NT]=Or[MT]=!0;Or[lT]=Or[Vg]=Or[gT]=!1;function ps(e,r,t,n,a,i){var o,s=r&nT,u=r&aT,l=r&iT;if(t&&(o=a?t(e,n,a,i):t(e)),o!==void 0)return o;if(!Q9(e))return e;var c=X9(e);if(c){if(o=W9(e),!s)return k9(e,o)}else{var f=G9(e),p=f==Vg||f==cT;if(K9(e))return q9(e,s);if(f==Gg||f==jg||p&&!a){if(o=u||p?{}:Y9(e),!s)return u?H9(e,L9(o,e)):U9(e,I9(o,e))}else{if(!Or[f])return a?e:{};o=Z9(e,f,s)}}i||(i=new R9);var d=i.get(e);if(d)return d;i.set(e,o),eT(e)?e.forEach(function(g){o.add(ps(g,r,t,g,e,i))}):J9(e)&&e.forEach(function(g,y){o.set(y,ps(g,r,t,y,e,i))});var v=l?u?V9:j9:u?tT:rT,m=c?void 0:v(e);return P9(m||e,function(g,y){m&&(y=g,g=e[y]),z9(o,y,ps(g,r,t,y,e,i))}),o}var TT=ps,OT=TT,_T=1,$T=4;function FT(e){return OT(e,_T|$T)}var BT=FT;Object.defineProperty(vo,"__esModule",{value:!0});vo.mergeClasses=void 0;var RT=Mc,PT=Wg(RT),zT=BT,IT=Wg(zT),LT=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};function Wg(e){return e&&e.__esModule?e:{default:e}}var qT=vo.mergeClasses=function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=r.default&&(0,IT.default)(r.default)||{};return t.map(function(a){var i=r[a];return i&&(0,PT.default)(i,function(o,s){n[s]||(n[s]={}),n[s]=LT({},n[s],i[s])}),a}),n};vo.default=qT;var mo={};Object.defineProperty(mo,"__esModule",{value:!0});mo.autoprefix=void 0;var kT=Mc,Ad=HT(kT),UT=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};function HT(e){return e&&e.__esModule?e:{default:e}}var jT={borderRadius:function(r){return{msBorderRadius:r,MozBorderRadius:r,OBorderRadius:r,WebkitBorderRadius:r,borderRadius:r}},boxShadow:function(r){return{msBoxShadow:r,MozBoxShadow:r,OBoxShadow:r,WebkitBoxShadow:r,boxShadow:r}},userSelect:function(r){return{WebkitTouchCallout:r,KhtmlUserSelect:r,MozUserSelect:r,msUserSelect:r,WebkitUserSelect:r,userSelect:r}},flex:function(r){return{WebkitBoxFlex:r,MozBoxFlex:r,WebkitFlex:r,msFlex:r,flex:r}},flexBasis:function(r){return{WebkitFlexBasis:r,flexBasis:r}},justifyContent:function(r){return{WebkitJustifyContent:r,justifyContent:r}},transition:function(r){return{msTransition:r,MozTransition:r,OTransition:r,WebkitTransition:r,transition:r}},transform:function(r){return{msTransform:r,MozTransform:r,OTransform:r,WebkitTransform:r,transform:r}},absolute:function(r){var t=r&&r.split(" ");return{position:"absolute",top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(r,t){var n=t[r];return n||{extend:r}}},VT=mo.autoprefix=function(r){var t={};return(0,Ad.default)(r,function(n,a){var i={};(0,Ad.default)(n,function(o,s){var u=jT[s];u?i=UT({},i,u(o)):i[s]=o}),t[a]=i}),t};mo.default=VT;var ho={};Object.defineProperty(ho,"__esModule",{value:!0});ho.hover=void 0;var GT=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},WT=_,nl=ZT(WT);function ZT(e){return e&&e.__esModule?e:{default:e}}function YT(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Dd(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:e}function XT(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}var KT=ho.hover=function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){XT(a,n);function a(){var i,o,s,u;YT(this,a);for(var l=arguments.length,c=Array(l),f=0;f<l;f++)c[f]=arguments[f];return u=(o=(s=Dd(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(c))),s),s.state={hover:!1},s.handleMouseOver=function(){return s.setState({hover:!0})},s.handleMouseOut=function(){return s.setState({hover:!1})},s.render=function(){return nl.default.createElement(t,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},nl.default.createElement(r,GT({},s.props,s.state)))},o),Dd(s,u)}return a}(nl.default.Component)};ho.default=KT;var go={};Object.defineProperty(go,"__esModule",{value:!0});go.active=void 0;var JT=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},QT=_,al=eO(QT);function eO(e){return e&&e.__esModule?e:{default:e}}function rO(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Cd(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:e}function tO(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}var nO=go.active=function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){tO(a,n);function a(){var i,o,s,u;rO(this,a);for(var l=arguments.length,c=Array(l),f=0;f<l;f++)c[f]=arguments[f];return u=(o=(s=Cd(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(c))),s),s.state={active:!1},s.handleMouseDown=function(){return s.setState({active:!0})},s.handleMouseUp=function(){return s.setState({active:!1})},s.render=function(){return al.default.createElement(t,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},al.default.createElement(r,JT({},s.props,s.state)))},o),Cd(s,u)}return a}(al.default.Component)};go.default=nO;var qc={};Object.defineProperty(qc,"__esModule",{value:!0});var aO=function(r,t){var n={},a=function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n[o]=s};return r===0&&a("first-child"),r===t-1&&a("last-child"),(r===0||r%2===0)&&a("even"),Math.abs(r%2)===1&&a("odd"),a("nth-child",r),n};qc.default=aO;Object.defineProperty(Pt,"__esModule",{value:!0});Pt.ReactCSS=Pt.loop=Pt.handleActive=kc=Pt.handleHover=Pt.hover=void 0;var iO=co,oO=gi(iO),sO=vo,uO=gi(sO),lO=mo,cO=gi(lO),fO=ho,Zg=gi(fO),pO=go,dO=gi(pO),vO=qc,mO=gi(vO);function gi(e){return e&&e.__esModule?e:{default:e}}Pt.hover=Zg.default;var kc=Pt.handleHover=Zg.default;Pt.handleActive=dO.default;Pt.loop=mO.default;var hO=Pt.ReactCSS=function(r){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];var i=(0,oO.default)(n),o=(0,uO.default)(r,i);return(0,cO.default)(o)},Ye=Pt.default=hO,gO=function(r,t,n,a,i){var o=i.clientWidth,s=i.clientHeight,u=typeof r.pageX=="number"?r.pageX:r.touches[0].pageX,l=typeof r.pageY=="number"?r.pageY:r.touches[0].pageY,c=u-(i.getBoundingClientRect().left+window.pageXOffset),f=l-(i.getBoundingClientRect().top+window.pageYOffset);if(n==="vertical"){var p=void 0;if(f<0?p=0:f>s?p=1:p=Math.round(f*100/s)/100,t.a!==p)return{h:t.h,s:t.s,l:t.l,a:p,source:"rgb"}}else{var d=void 0;if(c<0?d=0:c>o?d=1:d=Math.round(c*100/o)/100,a!==d)return{h:t.h,s:t.s,l:t.l,a:d,source:"rgb"}}return null},il={},yO=function(r,t,n,a){if(typeof document>"u"&&!a)return null;var i=a?new a:document.createElement("canvas");i.width=n*2,i.height=n*2;var o=i.getContext("2d");return o?(o.fillStyle=r,o.fillRect(0,0,i.width,i.height),o.fillStyle=t,o.fillRect(0,0,n,n),o.translate(n,n),o.fillRect(0,0,n,n),i.toDataURL()):null},bO=function(r,t,n,a){var i=r+"-"+t+"-"+n+(a?"-server":"");if(il[i])return il[i];var o=yO(r,t,n,a);return il[i]=o,o},Nd=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},yi=function(r){var t=r.white,n=r.grey,a=r.size,i=r.renderers,o=r.borderRadius,s=r.boxShadow,u=r.children,l=Ye({default:{grid:{borderRadius:o,boxShadow:s,absolute:"0px 0px 0px 0px",background:"url("+bO(t,n,a,i.canvas)+") center left"}}});return _.isValidElement(u)?_.cloneElement(u,Nd({},u.props,{style:Nd({},u.props.style,l.grid)})):_.createElement("div",{style:l.grid})};yi.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var xO=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},wO=function(){function e(r,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,a.key,a)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}();function EO(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Md(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:e}function SO(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}var Uc=function(e){SO(r,e);function r(){var t,n,a,i;EO(this,r);for(var o=arguments.length,s=Array(o),u=0;u<o;u++)s[u]=arguments[u];return i=(n=(a=Md(this,(t=r.__proto__||Object.getPrototypeOf(r)).call.apply(t,[this].concat(s))),a),a.handleChange=function(l){var c=gO(l,a.props.hsl,a.props.direction,a.props.a,a.container);c&&typeof a.props.onChange=="function"&&a.props.onChange(c,l)},a.handleMouseDown=function(l){a.handleChange(l),window.addEventListener("mousemove",a.handleChange),window.addEventListener("mouseup",a.handleMouseUp)},a.handleMouseUp=function(){a.unbindEventListeners()},a.unbindEventListeners=function(){window.removeEventListener("mousemove",a.handleChange),window.removeEventListener("mouseup",a.handleMouseUp)},n),Md(a,i)}return wO(r,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var n=this,a=this.props.rgb,i=Ye({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+a.r+","+a.g+","+a.b+`, 0) 0%,
|
|
26
26
|
rgba(`+a.r+","+a.g+","+a.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:a.a*100+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+a.r+","+a.g+","+a.b+`, 0) 0%,
|
|
27
27
|
rgba(`+a.r+","+a.g+","+a.b+", 1) 100%)"},pointer:{left:0,top:a.a*100+"%"}},overwrite:xO({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return _.createElement("div",{style:i.alpha},_.createElement("div",{style:i.checkboard},_.createElement(yi,{renderers:this.props.renderers})),_.createElement("div",{style:i.gradient}),_.createElement("div",{style:i.container,ref:function(s){return n.container=s},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},_.createElement("div",{style:i.pointer},this.props.pointer?_.createElement(this.props.pointer,this.props):_.createElement("div",{style:i.slider}))))}}]),r}(_.PureComponent||_.Component),AO=function(){function e(r,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,a.key,a)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}();function DO(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function CO(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function NO(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:e}function MO(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}var TO=1,Yg=38,OO=40,_O=[Yg,OO],$O=function(r){return _O.indexOf(r)>-1},FO=function(r){return Number(String(r).replace(/%/g,""))},BO=1,vr=function(e){MO(r,e);function r(t){CO(this,r);var n=NO(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(a){n.setUpdatedValue(a.target.value,a)},n.handleKeyDown=function(a){var i=FO(a.target.value);if(!isNaN(i)&&$O(a.keyCode)){var o=n.getArrowOffset(),s=a.keyCode===Yg?i+o:i-o;n.setUpdatedValue(s,a)}},n.handleDrag=function(a){if(n.props.dragLabel){var i=Math.round(n.props.value+a.movementX);i>=0&&i<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(i),a)}},n.handleMouseDown=function(a){n.props.dragLabel&&(a.preventDefault(),n.handleDrag(a),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(t.value).toUpperCase(),blurValue:String(t.value).toUpperCase()},n.inputId="rc-editable-input-"+BO++,n}return AO(r,[{key:"componentDidUpdate",value:function(n,a){this.props.value!==this.state.value&&(n.value!==this.props.value||a.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(n){return DO({},this.props.label,n)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||TO}},{key:"setUpdatedValue",value:function(n,a){var i=this.props.label?this.getValueObjectWithLabel(n):n;this.props.onChange&&this.props.onChange(i,a),this.setState({value:n})}},{key:"render",value:function(){var n=this,a=Ye({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return _.createElement("div",{style:a.wrap},_.createElement("input",{id:this.inputId,style:a.input,ref:function(o){return n.input=o},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?_.createElement("label",{htmlFor:this.inputId,style:a.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),r}(_.PureComponent||_.Component),RO=function(r,t,n,a){var i=a.clientWidth,o=a.clientHeight,s=typeof r.pageX=="number"?r.pageX:r.touches[0].pageX,u=typeof r.pageY=="number"?r.pageY:r.touches[0].pageY,l=s-(a.getBoundingClientRect().left+window.pageXOffset),c=u-(a.getBoundingClientRect().top+window.pageYOffset);if(t==="vertical"){var f=void 0;if(c<0)f=359;else if(c>o)f=0;else{var p=-(c*100/o)+100;f=360*p/100}if(n.h!==f)return{h:f,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var d=void 0;if(l<0)d=0;else if(l>i)d=359;else{var v=l*100/i;d=360*v/100}if(n.h!==d)return{h:d,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null},PO=function(){function e(r,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,a.key,a)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}();function zO(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Td(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:e}function IO(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}var bi=function(e){IO(r,e);function r(){var t,n,a,i;zO(this,r);for(var o=arguments.length,s=Array(o),u=0;u<o;u++)s[u]=arguments[u];return i=(n=(a=Td(this,(t=r.__proto__||Object.getPrototypeOf(r)).call.apply(t,[this].concat(s))),a),a.handleChange=function(l){var c=RO(l,a.props.direction,a.props.hsl,a.container);c&&typeof a.props.onChange=="function"&&a.props.onChange(c,l)},a.handleMouseDown=function(l){a.handleChange(l),window.addEventListener("mousemove",a.handleChange),window.addEventListener("mouseup",a.handleMouseUp)},a.handleMouseUp=function(){a.unbindEventListeners()},n),Td(a,i)}return PO(r,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var n=this,a=this.props.direction,i=a===void 0?"horizontal":a,o=Ye({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:this.props.hsl.h*100/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-(this.props.hsl.h*100/360)+100+"%"}}},{vertical:i==="vertical"});return _.createElement("div",{style:o.hue},_.createElement("div",{className:"hue-"+i,style:o.container,ref:function(u){return n.container=u},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},_.createElement("style",null,`
|
|
28
28
|
.hue-horizontal {
|
|
@@ -67,7 +67,7 @@ Valid keys: `+JSON.stringify(Object.keys(q),null," "));var ne=fe(re,ae,J,le,Q+"
|
|
|
67
67
|
background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
|
|
68
68
|
background: linear-gradient(to top, #000, rgba(0,0,0,0));
|
|
69
69
|
}
|
|
70
|
-
`),_.createElement("div",{style:c.white,className:"saturation-white"},_.createElement("div",{style:c.black,className:"saturation-black"}),_.createElement("div",{style:c.pointer},this.props.pointer?_.createElement(this.props.pointer,this.props):_.createElement("div",{style:c.circle}))))}}]),r}(_.PureComponent||_.Component);function zF(e,r){for(var t=-1,n=e==null?0:e.length;++t<n&&r(e[t],t,e)!==!1;);return e}var IF=ty(Object.keys,Object),LF=Object.prototype,qF=LF.hasOwnProperty;function kF(e){if(!Gc(e))return IF(e);var r=[];for(var t in Object(e))qF.call(e,t)&&t!="constructor"&&r.push(t);return r}function Xc(e){return xi(e)?uy(e):kF(e)}function UF(e,r){return e&&ey(e,r,Xc)}function HF(e,r){return function(t,n){if(t==null)return t;if(!xi(t))return e(t,n);for(var a=t.length,i=-1,o=Object(t);++i<a&&n(o[i],i,o)!==!1;);return t}}var py=HF(UF);function jF(e){return typeof e=="function"?e:lu}function VF(e,r){var t=Tt(e)?zF:py;return t(e,jF(r))}function Ds(e){"@babel/helpers - typeof";return Ds=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ds(e)}var GF=/^\s+/,WF=/\s+$/;function Ie(e,r){if(e=e||"",r=r||{},e instanceof Ie)return e;if(!(this instanceof Ie))return new Ie(e,r);var t=ZF(e);this._originalInput=e,this._r=t.r,this._g=t.g,this._b=t.b,this._a=t.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||t.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=t.ok}Ie.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var r=this.toRgb();return(r.r*299+r.g*587+r.b*114)/1e3},getLuminance:function(){var r=this.toRgb(),t,n,a,i,o,s;return t=r.r/255,n=r.g/255,a=r.b/255,t<=.03928?i=t/12.92:i=Math.pow((t+.055)/1.055,2.4),n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),a<=.03928?s=a/12.92:s=Math.pow((a+.055)/1.055,2.4),.2126*i+.7152*o+.0722*s},setAlpha:function(r){return this._a=dy(r),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var r=Qd(this._r,this._g,this._b);return{h:r.h*360,s:r.s,v:r.v,a:this._a}},toHsvString:function(){var r=Qd(this._r,this._g,this._b),t=Math.round(r.h*360),n=Math.round(r.s*100),a=Math.round(r.v*100);return this._a==1?"hsv("+t+", "+n+"%, "+a+"%)":"hsva("+t+", "+n+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var r=Jd(this._r,this._g,this._b);return{h:r.h*360,s:r.s,l:r.l,a:this._a}},toHslString:function(){var r=Jd(this._r,this._g,this._b),t=Math.round(r.h*360),n=Math.round(r.s*100),a=Math.round(r.l*100);return this._a==1?"hsl("+t+", "+n+"%, "+a+"%)":"hsla("+t+", "+n+"%, "+a+"%, "+this._roundA+")"},toHex:function(r){return ev(this._r,this._g,this._b,r)},toHexString:function(r){return"#"+this.toHex(r)},toHex8:function(r){return JF(this._r,this._g,this._b,this._a,r)},toHex8String:function(r){return"#"+this.toHex8(r)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Br(this._r,255)*100)+"%",g:Math.round(Br(this._g,255)*100)+"%",b:Math.round(Br(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Br(this._r,255)*100)+"%, "+Math.round(Br(this._g,255)*100)+"%, "+Math.round(Br(this._b,255)*100)+"%)":"rgba("+Math.round(Br(this._r,255)*100)+"%, "+Math.round(Br(this._g,255)*100)+"%, "+Math.round(Br(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:cB[ev(this._r,this._g,this._b,!0)]||!1},toFilter:function(r){var t="#"+rv(this._r,this._g,this._b,this._a),n=t,a=this._gradientType?"GradientType = 1, ":"";if(r){var i=Ie(r);n="#"+rv(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+t+",endColorstr="+n+")"},toString:function(r){var t=!!r;r=r||this._format;var n=!1,a=this._a<1&&this._a>=0,i=!t&&a&&(r==="hex"||r==="hex6"||r==="hex3"||r==="hex4"||r==="hex8"||r==="name");return i?r==="name"&&this._a===0?this.toName():this.toRgbString():(r==="rgb"&&(n=this.toRgbString()),r==="prgb"&&(n=this.toPercentageRgbString()),(r==="hex"||r==="hex6")&&(n=this.toHexString()),r==="hex3"&&(n=this.toHexString(!0)),r==="hex4"&&(n=this.toHex8String(!0)),r==="hex8"&&(n=this.toHex8String()),r==="name"&&(n=this.toName()),r==="hsl"&&(n=this.toHslString()),r==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return Ie(this.toString())},_applyModification:function(r,t){var n=r.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(tB,arguments)},brighten:function(){return this._applyModification(nB,arguments)},darken:function(){return this._applyModification(aB,arguments)},desaturate:function(){return this._applyModification(QF,arguments)},saturate:function(){return this._applyModification(eB,arguments)},greyscale:function(){return this._applyModification(rB,arguments)},spin:function(){return this._applyModification(iB,arguments)},_applyCombination:function(r,t){return r.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(uB,arguments)},complement:function(){return this._applyCombination(oB,arguments)},monochromatic:function(){return this._applyCombination(lB,arguments)},splitcomplement:function(){return this._applyCombination(sB,arguments)},triad:function(){return this._applyCombination(tv,[3])},tetrad:function(){return this._applyCombination(tv,[4])}};Ie.fromRatio=function(e,r){if(Ds(e)=="object"){var t={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?t[n]=e[n]:t[n]=Yi(e[n]));e=t}return Ie(e,r)};function ZF(e){var r={r:0,g:0,b:0},t=1,n=null,a=null,i=null,o=!1,s=!1;return typeof e=="string"&&(e=vB(e)),Ds(e)=="object"&&(vn(e.r)&&vn(e.g)&&vn(e.b)?(r=YF(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):vn(e.h)&&vn(e.s)&&vn(e.v)?(n=Yi(e.s),a=Yi(e.v),r=KF(e.h,n,a),o=!0,s="hsv"):vn(e.h)&&vn(e.s)&&vn(e.l)&&(n=Yi(e.s),i=Yi(e.l),r=XF(e.h,n,i),o=!0,s="hsl"),e.hasOwnProperty("a")&&(t=e.a)),t=dy(t),{ok:o,format:e.format||s,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:t}}function YF(e,r,t){return{r:Br(e,255)*255,g:Br(r,255)*255,b:Br(t,255)*255}}function Jd(e,r,t){e=Br(e,255),r=Br(r,255),t=Br(t,255);var n=Math.max(e,r,t),a=Math.min(e,r,t),i,o,s=(n+a)/2;if(n==a)i=o=0;else{var u=n-a;switch(o=s>.5?u/(2-n-a):u/(n+a),n){case e:i=(r-t)/u+(r<t?6:0);break;case r:i=(t-e)/u+2;break;case t:i=(e-r)/u+4;break}i/=6}return{h:i,s:o,l:s}}function XF(e,r,t){var n,a,i;e=Br(e,360),r=Br(r,100),t=Br(t,100);function o(l,c,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?l+(c-l)*6*f:f<1/2?c:f<2/3?l+(c-l)*(2/3-f)*6:l}if(r===0)n=a=i=t;else{var s=t<.5?t*(1+r):t+r-t*r,u=2*t-s;n=o(u,s,e+1/3),a=o(u,s,e),i=o(u,s,e-1/3)}return{r:n*255,g:a*255,b:i*255}}function Qd(e,r,t){e=Br(e,255),r=Br(r,255),t=Br(t,255);var n=Math.max(e,r,t),a=Math.min(e,r,t),i,o,s=n,u=n-a;if(o=n===0?0:u/n,n==a)i=0;else{switch(n){case e:i=(r-t)/u+(r<t?6:0);break;case r:i=(t-e)/u+2;break;case t:i=(e-r)/u+4;break}i/=6}return{h:i,s:o,v:s}}function KF(e,r,t){e=Br(e,360)*6,r=Br(r,100),t=Br(t,100);var n=Math.floor(e),a=e-n,i=t*(1-r),o=t*(1-a*r),s=t*(1-(1-a)*r),u=n%6,l=[t,o,i,i,s,t][u],c=[s,t,t,o,i,i][u],f=[i,i,s,t,t,o][u];return{r:l*255,g:c*255,b:f*255}}function ev(e,r,t,n){var a=[Yt(Math.round(e).toString(16)),Yt(Math.round(r).toString(16)),Yt(Math.round(t).toString(16))];return n&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function JF(e,r,t,n,a){var i=[Yt(Math.round(e).toString(16)),Yt(Math.round(r).toString(16)),Yt(Math.round(t).toString(16)),Yt(vy(n))];return a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function rv(e,r,t,n){var a=[Yt(vy(n)),Yt(Math.round(e).toString(16)),Yt(Math.round(r).toString(16)),Yt(Math.round(t).toString(16))];return a.join("")}Ie.equals=function(e,r){return!e||!r?!1:Ie(e).toRgbString()==Ie(r).toRgbString()};Ie.random=function(){return Ie.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function QF(e,r){r=r===0?0:r||10;var t=Ie(e).toHsl();return t.s-=r/100,t.s=pu(t.s),Ie(t)}function eB(e,r){r=r===0?0:r||10;var t=Ie(e).toHsl();return t.s+=r/100,t.s=pu(t.s),Ie(t)}function rB(e){return Ie(e).desaturate(100)}function tB(e,r){r=r===0?0:r||10;var t=Ie(e).toHsl();return t.l+=r/100,t.l=pu(t.l),Ie(t)}function nB(e,r){r=r===0?0:r||10;var t=Ie(e).toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(255*-(r/100)))),t.g=Math.max(0,Math.min(255,t.g-Math.round(255*-(r/100)))),t.b=Math.max(0,Math.min(255,t.b-Math.round(255*-(r/100)))),Ie(t)}function aB(e,r){r=r===0?0:r||10;var t=Ie(e).toHsl();return t.l-=r/100,t.l=pu(t.l),Ie(t)}function iB(e,r){var t=Ie(e).toHsl(),n=(t.h+r)%360;return t.h=n<0?360+n:n,Ie(t)}function oB(e){var r=Ie(e).toHsl();return r.h=(r.h+180)%360,Ie(r)}function tv(e,r){if(isNaN(r)||r<=0)throw new Error("Argument to polyad must be a positive number");for(var t=Ie(e).toHsl(),n=[Ie(e)],a=360/r,i=1;i<r;i++)n.push(Ie({h:(t.h+i*a)%360,s:t.s,l:t.l}));return n}function sB(e){var r=Ie(e).toHsl(),t=r.h;return[Ie(e),Ie({h:(t+72)%360,s:r.s,l:r.l}),Ie({h:(t+216)%360,s:r.s,l:r.l})]}function uB(e,r,t){r=r||6,t=t||30;var n=Ie(e).toHsl(),a=360/t,i=[Ie(e)];for(n.h=(n.h-(a*r>>1)+720)%360;--r;)n.h=(n.h+a)%360,i.push(Ie(n));return i}function lB(e,r){r=r||6;for(var t=Ie(e).toHsv(),n=t.h,a=t.s,i=t.v,o=[],s=1/r;r--;)o.push(Ie({h:n,s:a,v:i})),i=(i+s)%1;return o}Ie.mix=function(e,r,t){t=t===0?0:t||50;var n=Ie(e).toRgb(),a=Ie(r).toRgb(),i=t/100,o={r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a};return Ie(o)};Ie.readability=function(e,r){var t=Ie(e),n=Ie(r);return(Math.max(t.getLuminance(),n.getLuminance())+.05)/(Math.min(t.getLuminance(),n.getLuminance())+.05)};Ie.isReadable=function(e,r,t){var n=Ie.readability(e,r),a,i;switch(i=!1,a=mB(t),a.level+a.size){case"AAsmall":case"AAAlarge":i=n>=4.5;break;case"AAlarge":i=n>=3;break;case"AAAsmall":i=n>=7;break}return i};Ie.mostReadable=function(e,r,t){var n=null,a=0,i,o,s,u;t=t||{},o=t.includeFallbackColors,s=t.level,u=t.size;for(var l=0;l<r.length;l++)i=Ie.readability(e,r[l]),i>a&&(a=i,n=Ie(r[l]));return Ie.isReadable(e,n,{level:s,size:u})||!o?n:(t.includeFallbackColors=!1,Ie.mostReadable(e,["#fff","#000"],t))};var kl=Ie.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},cB=Ie.hexNames=fB(kl);function fB(e){var r={};for(var t in e)e.hasOwnProperty(t)&&(r[e[t]]=t);return r}function dy(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Br(e,r){pB(e)&&(e="100%");var t=dB(e);return e=Math.min(r,Math.max(0,parseFloat(e))),t&&(e=parseInt(e*r,10)/100),Math.abs(e-r)<1e-6?1:e%r/parseFloat(r)}function pu(e){return Math.min(1,Math.max(0,e))}function Dt(e){return parseInt(e,16)}function pB(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function dB(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Yt(e){return e.length==1?"0"+e:""+e}function Yi(e){return e<=1&&(e=e*100+"%"),e}function vy(e){return Math.round(parseFloat(e)*255).toString(16)}function nv(e){return Dt(e)/255}var Gt=function(){var e="[-\\+]?\\d+%?",r="[-\\+]?\\d*\\.\\d+%?",t="(?:"+r+")|(?:"+e+")",n="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",a="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?";return{CSS_UNIT:new RegExp(t),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function vn(e){return!!Gt.CSS_UNIT.exec(e)}function vB(e){e=e.replace(GF,"").replace(WF,"").toLowerCase();var r=!1;if(kl[e])e=kl[e],r=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t;return(t=Gt.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=Gt.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=Gt.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=Gt.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=Gt.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=Gt.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=Gt.hex8.exec(e))?{r:Dt(t[1]),g:Dt(t[2]),b:Dt(t[3]),a:nv(t[4]),format:r?"name":"hex8"}:(t=Gt.hex6.exec(e))?{r:Dt(t[1]),g:Dt(t[2]),b:Dt(t[3]),format:r?"name":"hex"}:(t=Gt.hex4.exec(e))?{r:Dt(t[1]+""+t[1]),g:Dt(t[2]+""+t[2]),b:Dt(t[3]+""+t[3]),a:nv(t[4]+""+t[4]),format:r?"name":"hex8"}:(t=Gt.hex3.exec(e))?{r:Dt(t[1]+""+t[1]),g:Dt(t[2]+""+t[2]),b:Dt(t[3]+""+t[3]),format:r?"name":"hex"}:!1}function mB(e){var r,t;return e=e||{level:"AA",size:"small"},r=(e.level||"AA").toUpperCase(),t=(e.size||"small").toLowerCase(),r!=="AA"&&r!=="AAA"&&(r="AA"),t!=="small"&&t!=="large"&&(t="small"),{level:r,size:t}}var av=function(r){var t=["r","g","b","a","h","s","l","v"],n=0,a=0;return VF(t,function(i){if(r[i]&&(n+=1,isNaN(r[i])||(a+=1),i==="s"||i==="l")){var o=/^\d+%$/;o.test(r[i])&&(a+=1)}}),n===a?r:!1},Xi=function(r,t){var n=r.hex?Ie(r.hex):Ie(r),a=n.toHsl(),i=n.toHsv(),o=n.toRgb(),s=n.toHex();a.s===0&&(a.h=t||0,i.h=t||0);var u=s==="000000"&&o.a===0;return{hsl:a,hex:u?"transparent":"#"+s,rgb:o,hsv:i,oldHue:r.h||t||a.h,source:r.source}},Hn=function(r){if(r==="transparent")return!0;var t=String(r).charAt(0)==="#"?1:0;return r.length!==4+t&&r.length<7+t&&Ie(r).isValid()},Kc=function(r){if(!r)return"#fff";var t=Xi(r);if(t.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(t.rgb.r*299+t.rgb.g*587+t.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},ml=function(r,t){var n=r.replace("°","");return Ie(t+" ("+n+")")._ok},ji=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},hB=function(){function e(r,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,a.key,a)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}();function gB(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function yB(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:e}function bB(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}var St=function(r){var t=function(n){bB(a,n);function a(i){gB(this,a);var o=yB(this,(a.__proto__||Object.getPrototypeOf(a)).call(this));return o.handleChange=function(s,u){var l=av(s);if(l){var c=Xi(s,s.h||o.state.oldHue);o.setState(c),o.props.onChangeComplete&&o.debounce(o.props.onChangeComplete,c,u),o.props.onChange&&o.props.onChange(c,u)}},o.handleSwatchHover=function(s,u){var l=av(s);if(l){var c=Xi(s,s.h||o.state.oldHue);o.props.onSwatchHover&&o.props.onSwatchHover(c,u)}},o.state=ji({},Xi(i.color,0)),o.debounce=fy(function(s,u,l){s(u,l)},100),o}return hB(a,[{key:"render",value:function(){var o={};return this.props.onSwatchHover&&(o.onSwatchHover=this.handleSwatchHover),_.createElement(r,ji({},this.props,this.state,{onChange:this.handleChange},o))}}],[{key:"getDerivedStateFromProps",value:function(o,s){return ji({},Xi(o.color,s.oldHue))}}]),a}(_.PureComponent||_.Component);return t.propTypes=ji({},r.propTypes),t.defaultProps=ji({},r.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),t},xB=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},wB=function(){function e(r,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,a.key,a)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}();function EB(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function iv(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:e}function SB(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}var AB=function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){SB(a,n);function a(){var i,o,s,u;EB(this,a);for(var l=arguments.length,c=Array(l),f=0;f<l;f++)c[f]=arguments[f];return u=(o=(s=iv(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(c))),s),s.state={focus:!1},s.handleFocus=function(){return s.setState({focus:!0})},s.handleBlur=function(){return s.setState({focus:!1})},o),iv(s,u)}return wB(a,[{key:"render",value:function(){return _.createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},_.createElement(r,xB({},this.props,this.state)))}}]),a}(_.Component)},ov=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},DB=13,CB=function(r){var t=r.color,n=r.style,a=r.onClick,i=a===void 0?function(){}:a,o=r.onHover,s=r.title,u=s===void 0?t:s,l=r.children,c=r.focus,f=r.focusStyle,p=f===void 0?{}:f,d=t==="transparent",v=Ye({default:{swatch:ov({background:t,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,c?p:{})}}),m=function(w){return i(t,w)},g=function(w){return w.keyCode===DB&&i(t,w)},y=function(w){return o(t,w)},E={};return o&&(E.onMouseOver=y),_.createElement("div",ov({style:v.swatch,onClick:m,title:u,tabIndex:0,onKeyDown:g},E),l,d&&_.createElement(yi,{borderRadius:v.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const fa=AB(CB);var NB=function(r){var t=r.direction,n=Ye({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:t==="vertical"});return _.createElement("div",{style:n.picker})},MB=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},my=function(r){var t=r.rgb,n=r.hsl,a=r.width,i=r.height,o=r.onChange,s=r.direction,u=r.style,l=r.renderers,c=r.pointer,f=r.className,p=f===void 0?"":f,d=Ye({default:{picker:{position:"relative",width:a,height:i},alpha:{radius:"2px",style:u}}});return _.createElement("div",{style:d.picker,className:"alpha-picker "+p},_.createElement(Uc,MB({},d.alpha,{rgb:t,hsl:n,pointer:c,renderers:l,onChange:o,direction:s})))};my.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:NB};St(my);function hy(e,r){for(var t=-1,n=e==null?0:e.length,a=Array(n);++t<n;)a[t]=r(e[t],t,e);return a}var TB="__lodash_hash_undefined__";function OB(e){return this.__data__.set(e,TB),this}function _B(e){return this.__data__.has(e)}function Cs(e){var r=-1,t=e==null?0:e.length;for(this.__data__=new Nn;++r<t;)this.add(e[r])}Cs.prototype.add=Cs.prototype.push=OB;Cs.prototype.has=_B;function $B(e,r){for(var t=-1,n=e==null?0:e.length;++t<n;)if(r(e[t],t,e))return!0;return!1}function FB(e,r){return e.has(r)}var BB=1,RB=2;function gy(e,r,t,n,a,i){var o=t&BB,s=e.length,u=r.length;if(s!=u&&!(o&&u>s))return!1;var l=i.get(e),c=i.get(r);if(l&&c)return l==r&&c==e;var f=-1,p=!0,d=t&RB?new Cs:void 0;for(i.set(e,r),i.set(r,e);++f<s;){var v=e[f],m=r[f];if(n)var g=o?n(m,v,f,r,e,i):n(v,m,f,e,r,i);if(g!==void 0){if(g)continue;p=!1;break}if(d){if(!$B(r,function(y,E){if(!FB(d,E)&&(v===y||a(v,y,t,n,i)))return d.push(E)})){p=!1;break}}else if(!(v===m||a(v,m,t,n,i))){p=!1;break}}return i.delete(e),i.delete(r),p}function PB(e){var r=-1,t=Array(e.size);return e.forEach(function(n,a){t[++r]=[a,n]}),t}function zB(e){var r=-1,t=Array(e.size);return e.forEach(function(n){t[++r]=n}),t}var IB=1,LB=2,qB="[object Boolean]",kB="[object Date]",UB="[object Error]",HB="[object Map]",jB="[object Number]",VB="[object RegExp]",GB="[object Set]",WB="[object String]",ZB="[object Symbol]",YB="[object ArrayBuffer]",XB="[object DataView]",sv=In?In.prototype:void 0,hl=sv?sv.valueOf:void 0;function KB(e,r,t,n,a,i,o){switch(t){case XB:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case YB:return!(e.byteLength!=r.byteLength||!i(new Es(e),new Es(r)));case qB:case kB:case jB:return yo(+e,+r);case UB:return e.name==r.name&&e.message==r.message;case VB:case WB:return e==r+"";case HB:var s=PB;case GB:var u=n&IB;if(s||(s=zB),e.size!=r.size&&!u)return!1;var l=o.get(e);if(l)return l==r;n|=LB,o.set(e,r);var c=gy(s(e),s(r),n,a,i,o);return o.delete(e),c;case ZB:if(hl)return hl.call(e)==hl.call(r)}return!1}function JB(e,r){for(var t=-1,n=r.length,a=e.length;++t<n;)e[a+t]=r[t];return e}function QB(e,r,t){var n=r(e);return Tt(e)?n:JB(n,t(e))}function eR(e,r){for(var t=-1,n=e==null?0:e.length,a=0,i=[];++t<n;){var o=e[t];r(o,t,e)&&(i[a++]=o)}return i}function rR(){return[]}var tR=Object.prototype,nR=tR.propertyIsEnumerable,uv=Object.getOwnPropertySymbols,aR=uv?function(e){return e==null?[]:(e=Object(e),eR(uv(e),function(r){return nR.call(e,r)}))}:rR;function lv(e){return QB(e,Xc,aR)}var iR=1,oR=Object.prototype,sR=oR.hasOwnProperty;function uR(e,r,t,n,a,i){var o=t&iR,s=lv(e),u=s.length,l=lv(r),c=l.length;if(u!=c&&!o)return!1;for(var f=u;f--;){var p=s[f];if(!(o?p in r:sR.call(r,p)))return!1}var d=i.get(e),v=i.get(r);if(d&&v)return d==r&&v==e;var m=!0;i.set(e,r),i.set(r,e);for(var g=o;++f<u;){p=s[f];var y=e[p],E=r[p];if(n)var h=o?n(E,y,p,r,e,i):n(y,E,p,e,r,i);if(!(h===void 0?y===E||a(y,E,t,n,i):h)){m=!1;break}g||(g=p=="constructor")}if(m&&!g){var w=e.constructor,x=r.constructor;w!=x&&"constructor"in e&&"constructor"in r&&!(typeof w=="function"&&w instanceof w&&typeof x=="function"&&x instanceof x)&&(m=!1)}return i.delete(e),i.delete(r),m}var Ul=ca(Qt,"DataView"),Hl=ca(Qt,"Promise"),jl=ca(Qt,"Set"),Vl=ca(Qt,"WeakMap"),cv="[object Map]",lR="[object Object]",fv="[object Promise]",pv="[object Set]",dv="[object WeakMap]",vv="[object DataView]",cR=la(Ul),fR=la(no),pR=la(Hl),dR=la(jl),vR=la(Vl),Fn=ua;(Ul&&Fn(new Ul(new ArrayBuffer(1)))!=vv||no&&Fn(new no)!=cv||Hl&&Fn(Hl.resolve())!=fv||jl&&Fn(new jl)!=pv||Vl&&Fn(new Vl)!=dv)&&(Fn=function(e){var r=ua(e),t=r==lR?e.constructor:void 0,n=t?la(t):"";if(n)switch(n){case cR:return vv;case fR:return cv;case pR:return fv;case dR:return pv;case vR:return dv}return r});var mR=1,mv="[object Arguments]",hv="[object Array]",Ho="[object Object]",hR=Object.prototype,gv=hR.hasOwnProperty;function gR(e,r,t,n,a,i){var o=Tt(e),s=Tt(r),u=o?hv:Fn(e),l=s?hv:Fn(r);u=u==mv?Ho:u,l=l==mv?Ho:l;var c=u==Ho,f=l==Ho,p=u==l;if(p&&As(e)){if(!As(r))return!1;o=!0,c=!1}if(p&&!c)return i||(i=new sn),o||Zc(e)?gy(e,r,t,n,a,i):KB(e,r,u,t,n,a,i);if(!(t&mR)){var d=c&&gv.call(e,"__wrapped__"),v=f&&gv.call(r,"__wrapped__");if(d||v){var m=d?e.value():e,g=v?r.value():r;return i||(i=new sn),a(m,g,t,n,i)}}return p?(i||(i=new sn),uR(e,r,t,n,a,i)):!1}function Jc(e,r,t,n,a){return e===r?!0:e==null||r==null||!Ln(e)&&!Ln(r)?e!==e&&r!==r:gR(e,r,t,n,Jc,a)}var yR=1,bR=2;function xR(e,r,t,n){var a=t.length,i=a;if(e==null)return!i;for(e=Object(e);a--;){var o=t[a];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++a<i;){o=t[a];var s=o[0],u=e[s],l=o[1];if(o[2]){if(u===void 0&&!(s in e))return!1}else{var c=new sn,f;if(!(f===void 0?Jc(l,u,yR|bR,n,c):f))return!1}}return!0}function yy(e){return e===e&&!qt(e)}function wR(e){for(var r=Xc(e),t=r.length;t--;){var n=r[t],a=e[n];r[t]=[n,a,yy(a)]}return r}function by(e,r){return function(t){return t==null?!1:t[e]===r&&(r!==void 0||e in Object(t))}}function ER(e){var r=wR(e);return r.length==1&&r[0][2]?by(r[0][0],r[0][1]):function(t){return t===e||xR(t,e,r)}}var SR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,AR=/^\w*$/;function Qc(e,r){if(Tt(e))return!1;var t=typeof e;return t=="number"||t=="symbol"||t=="boolean"||e==null||cu(e)?!0:AR.test(e)||!SR.test(e)||r!=null&&e in Object(r)}var DR="Expected a function";function ef(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(DR);var t=function(){var n=arguments,a=r?r.apply(this,n):n[0],i=t.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return t.cache=i.set(a,o)||i,o};return t.cache=new(ef.Cache||Nn),t}ef.Cache=Nn;var CR=500;function NR(e){var r=ef(e,function(n){return t.size===CR&&t.clear(),n}),t=r.cache;return r}var MR=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,TR=/\\(\\)?/g,OR=NR(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(MR,function(t,n,a,i){r.push(a?i.replace(TR,"$1"):n||t)}),r}),_R=1/0,yv=In?In.prototype:void 0,bv=yv?yv.toString:void 0;function xy(e){if(typeof e=="string")return e;if(Tt(e))return hy(e,xy)+"";if(cu(e))return bv?bv.call(e):"";var r=e+"";return r=="0"&&1/e==-_R?"-0":r}function $R(e){return e==null?"":xy(e)}function wy(e,r){return Tt(e)?e:Qc(e,r)?[e]:OR($R(e))}var FR=1/0;function du(e){if(typeof e=="string"||cu(e))return e;var r=e+"";return r=="0"&&1/e==-FR?"-0":r}function Ey(e,r){r=wy(r,e);for(var t=0,n=r.length;e!=null&&t<n;)e=e[du(r[t++])];return t&&t==n?e:void 0}function BR(e,r,t){var n=e==null?void 0:Ey(e,r);return n===void 0?t:n}function RR(e,r){return e!=null&&r in Object(e)}function PR(e,r,t){r=wy(r,e);for(var n=-1,a=r.length,i=!1;++n<a;){var o=du(r[n]);if(!(i=e!=null&&t(e,o)))break;e=e[o]}return i||++n!=a?i:(a=e==null?0:e.length,!!a&&Wc(a)&&Yc(o,a)&&(Tt(e)||Ss(e)))}function zR(e,r){return e!=null&&PR(e,r,RR)}var IR=1,LR=2;function qR(e,r){return Qc(e)&&yy(r)?by(du(e),r):function(t){var n=BR(t,e);return n===void 0&&n===r?zR(t,e):Jc(r,n,IR|LR)}}function kR(e){return function(r){return r==null?void 0:r[e]}}function UR(e){return function(r){return Ey(r,e)}}function HR(e){return Qc(e)?kR(du(e)):UR(e)}function jR(e){return typeof e=="function"?e:e==null?lu:typeof e=="object"?Tt(e)?qR(e[0],e[1]):ER(e):HR(e)}function VR(e,r){var t=-1,n=xi(e)?Array(e.length):[];return py(e,function(a,i,o){n[++t]=r(a,i,o)}),n}function pa(e,r){var t=Tt(e)?hy:VR;return t(e,jR(r))}var GR=function(r){var t=r.colors,n=r.onClick,a=r.onSwatchHover,i=Ye({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return _.createElement("div",{style:i.swatches},pa(t,function(o){return _.createElement(fa,{key:o,color:o,style:i.swatch,onClick:n,onHover:a,focusStyle:{boxShadow:"0 0 4px "+o}})}),_.createElement("div",{style:i.clear}))},rf=function(r){var t=r.onChange,n=r.onSwatchHover,a=r.hex,i=r.colors,o=r.width,s=r.triangle,u=r.styles,l=u===void 0?{}:u,c=r.className,f=c===void 0?"":c,p=a==="transparent",d=function(g,y){Hn(g)&&t({hex:g,source:"hex"},y)},v=Ye(Et({default:{card:{width:o,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:a,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:Kc(a),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+a+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},l),{"hide-triangle":s==="hide"});return _.createElement("div",{style:v.card,className:"block-picker "+f},_.createElement("div",{style:v.triangle}),_.createElement("div",{style:v.head},p&&_.createElement(yi,{borderRadius:"6px 6px 0 0"}),_.createElement("div",{style:v.label},a)),_.createElement("div",{style:v.body},_.createElement(GR,{colors:i,onClick:d,onSwatchHover:n}),_.createElement(vr,{style:{input:v.input},value:a,onChange:d})))};rf.propTypes={width:Fe.oneOfType([Fe.string,Fe.number]),colors:Fe.arrayOf(Fe.string),triangle:Fe.oneOf(["top","hide"]),styles:Fe.object};rf.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}};St(rf);var _a={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},$a={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},Fa={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},Ba={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},Ra={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},Pa={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},za={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},Ia={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},La={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},Ki={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},qa={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},ka={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},Ua={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},Ha={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},ja={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},Va={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},Ga={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},Wa={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},Sy=function(r){var t=r.color,n=r.onClick,a=r.onSwatchHover,i=r.hover,o=r.active,s=r.circleSize,u=r.circleSpacing,l=Ye({default:{swatch:{width:s,height:s,marginRight:u,marginBottom:u,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(s/2+1)+"px "+t,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+t}}},{hover:i,active:o});return _.createElement("div",{style:l.swatch},_.createElement(fa,{style:l.Swatch,color:t,onClick:n,onHover:a,focusStyle:{boxShadow:l.Swatch.boxShadow+", 0 0 5px "+t}}))};Sy.defaultProps={circleSize:28,circleSpacing:14};const WR=kc(Sy);var tf=function(r){var t=r.width,n=r.onChange,a=r.onSwatchHover,i=r.colors,o=r.hex,s=r.circleSize,u=r.styles,l=u===void 0?{}:u,c=r.circleSpacing,f=r.className,p=f===void 0?"":f,d=Ye(Et({default:{card:{width:t,display:"flex",flexWrap:"wrap",marginRight:-c,marginBottom:-c}}},l)),v=function(g,y){return n({hex:g,source:"hex"},y)};return _.createElement("div",{style:d.card,className:"circle-picker "+p},pa(i,function(m){return _.createElement(WR,{key:m,color:m,onClick:v,onSwatchHover:a,active:o===m.toLowerCase(),circleSize:s,circleSpacing:c})}))};tf.propTypes={width:Fe.oneOfType([Fe.string,Fe.number]),circleSize:Fe.number,circleSpacing:Fe.number,styles:Fe.object};tf.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[_a[500],$a[500],Fa[500],Ba[500],Ra[500],Pa[500],za[500],Ia[500],La[500],Ki[500],qa[500],ka[500],Ua[500],Ha[500],ja[500],Va[500],Ga[500],Wa[500]],styles:{}};St(tf);function xv(e){return e===void 0}var Ay={};Object.defineProperty(Ay,"__esModule",{value:!0});var wv=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},ZR=_,Ev=YR(ZR);function YR(e){return e&&e.__esModule?e:{default:e}}function XR(e,r){var t={};for(var n in e)r.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}var jo=24,KR=Ay.default=function(e){var r=e.fill,t=r===void 0?"currentColor":r,n=e.width,a=n===void 0?jo:n,i=e.height,o=i===void 0?jo:i,s=e.style,u=s===void 0?{}:s,l=XR(e,["fill","width","height","style"]);return Ev.default.createElement("svg",wv({viewBox:"0 0 "+jo+" "+jo,style:wv({fill:t,width:a,height:o},u)},l),Ev.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))},JR=function(){function e(r,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,a.key,a)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}();function QR(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function eP(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:e}function rP(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}var Dy=function(e){rP(r,e);function r(t){QR(this,r);var n=eP(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return n.toggleViews=function(){n.state.view==="hex"?n.setState({view:"rgb"}):n.state.view==="rgb"?n.setState({view:"hsl"}):n.state.view==="hsl"&&(n.props.hsl.a===1?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(a,i){a.hex?Hn(a.hex)&&n.props.onChange({hex:a.hex,source:"hex"},i):a.r||a.g||a.b?n.props.onChange({r:a.r||n.props.rgb.r,g:a.g||n.props.rgb.g,b:a.b||n.props.rgb.b,source:"rgb"},i):a.a?(a.a<0?a.a=0:a.a>1&&(a.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(a.a*100)/100,source:"rgb"},i)):(a.h||a.s||a.l)&&(typeof a.s=="string"&&a.s.includes("%")&&(a.s=a.s.replace("%","")),typeof a.l=="string"&&a.l.includes("%")&&(a.l=a.l.replace("%","")),a.s==1?a.s=.01:a.l==1&&(a.l=.01),n.props.onChange({h:a.h||n.props.hsl.h,s:Number(xv(a.s)?n.props.hsl.s:a.s),l:Number(xv(a.l)?n.props.hsl.l:a.l),source:"hsl"},i))},n.showHighlight=function(a){a.currentTarget.style.background="#eee"},n.hideHighlight=function(a){a.currentTarget.style.background="transparent"},t.hsl.a!==1&&t.view==="hex"?n.state={view:"rgb"}:n.state={view:t.view},n}return JR(r,[{key:"render",value:function(){var n=this,a=Ye({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),i=void 0;return this.state.view==="hex"?i=_.createElement("div",{style:a.fields,className:"flexbox-fix"},_.createElement("div",{style:a.field},_.createElement(vr,{style:{input:a.input,label:a.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?i=_.createElement("div",{style:a.fields,className:"flexbox-fix"},_.createElement("div",{style:a.field},_.createElement(vr,{style:{input:a.input,label:a.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),_.createElement("div",{style:a.field},_.createElement(vr,{style:{input:a.input,label:a.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),_.createElement("div",{style:a.field},_.createElement(vr,{style:{input:a.input,label:a.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),_.createElement("div",{style:a.alpha},_.createElement(vr,{style:{input:a.input,label:a.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(i=_.createElement("div",{style:a.fields,className:"flexbox-fix"},_.createElement("div",{style:a.field},_.createElement(vr,{style:{input:a.input,label:a.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),_.createElement("div",{style:a.field},_.createElement(vr,{style:{input:a.input,label:a.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),_.createElement("div",{style:a.field},_.createElement(vr,{style:{input:a.input,label:a.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),_.createElement("div",{style:a.alpha},_.createElement(vr,{style:{input:a.input,label:a.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),_.createElement("div",{style:a.wrap,className:"flexbox-fix"},i,_.createElement("div",{style:a.toggle},_.createElement("div",{style:a.icon,onClick:this.toggleViews,ref:function(s){return n.icon=s}},_.createElement(KR,{style:a.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.hsl.a!==1&&a.view==="hex"?{view:"rgb"}:null}}]),r}(_.Component);Dy.defaultProps={view:"hex"};var Sv=function(){var r=Ye({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return _.createElement("div",{style:r.picker})},tP=function(){var r=Ye({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return _.createElement("div",{style:r.picker})},nf=function(r){var t=r.width,n=r.onChange,a=r.disableAlpha,i=r.rgb,o=r.hsl,s=r.hsv,u=r.hex,l=r.renderers,c=r.styles,f=c===void 0?{}:c,p=r.className,d=p===void 0?"":p,v=r.defaultView,m=Ye(Et({default:{picker:{width:t,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+i.r+", "+i.g+", "+i.b+", "+i.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},f),{disableAlpha:a});return _.createElement("div",{style:m.picker,className:"chrome-picker "+d},_.createElement("div",{style:m.saturation},_.createElement(fu,{style:m.Saturation,hsl:o,hsv:s,pointer:tP,onChange:n})),_.createElement("div",{style:m.body},_.createElement("div",{style:m.controls,className:"flexbox-fix"},_.createElement("div",{style:m.color},_.createElement("div",{style:m.swatch},_.createElement("div",{style:m.active}),_.createElement(yi,{renderers:l}))),_.createElement("div",{style:m.toggles},_.createElement("div",{style:m.hue},_.createElement(bi,{style:m.Hue,hsl:o,pointer:Sv,onChange:n})),_.createElement("div",{style:m.alpha},_.createElement(Uc,{style:m.Alpha,rgb:i,hsl:o,pointer:Sv,renderers:l,onChange:n})))),_.createElement(Dy,{rgb:i,hsl:o,hex:u,view:v,onChange:n,disableAlpha:a})))};nf.propTypes={width:Fe.oneOfType([Fe.string,Fe.number]),disableAlpha:Fe.bool,styles:Fe.object,defaultView:Fe.oneOf(["hex","rgb","hsl"])};nf.defaultProps={width:225,disableAlpha:!1,styles:{}};St(nf);var nP=function(r){var t=r.color,n=r.onClick,a=n===void 0?function(){}:n,i=r.onSwatchHover,o=r.active,s=Ye({default:{color:{background:t,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:Kc(t),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:o,"color-#FFFFFF":t==="#FFFFFF",transparent:t==="transparent"});return _.createElement(fa,{style:s.color,color:t,onClick:a,onHover:i,focusStyle:{boxShadow:"0 0 4px "+t}},_.createElement("div",{style:s.dot}))},aP=function(r){var t=r.hex,n=r.rgb,a=r.onChange,i=Ye({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),o=function(u,l){u.r||u.g||u.b?a({r:u.r||n.r,g:u.g||n.g,b:u.b||n.b,source:"rgb"},l):a({hex:u.hex,source:"hex"},l)};return _.createElement("div",{style:i.fields,className:"flexbox-fix"},_.createElement("div",{style:i.active}),_.createElement(vr,{style:{wrap:i.HEXwrap,input:i.HEXinput,label:i.HEXlabel},label:"hex",value:t,onChange:o}),_.createElement(vr,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"r",value:n.r,onChange:o}),_.createElement(vr,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"g",value:n.g,onChange:o}),_.createElement(vr,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"b",value:n.b,onChange:o}))},af=function(r){var t=r.onChange,n=r.onSwatchHover,a=r.colors,i=r.hex,o=r.rgb,s=r.styles,u=s===void 0?{}:s,l=r.className,c=l===void 0?"":l,f=Ye(Et({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},u)),p=function(v,m){v.hex?Hn(v.hex)&&t({hex:v.hex,source:"hex"},m):t(v,m)};return _.createElement(bo,{style:f.Compact,styles:u},_.createElement("div",{style:f.compact,className:"compact-picker "+c},_.createElement("div",null,pa(a,function(d){return _.createElement(nP,{key:d,color:d,active:d.toLowerCase()===i,onClick:p,onSwatchHover:n})}),_.createElement("div",{style:f.clear})),_.createElement(aP,{hex:i,rgb:o,onChange:p})))};af.propTypes={colors:Fe.arrayOf(Fe.string),styles:Fe.object};af.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}};St(af);var iP=function(r){var t=r.hover,n=r.color,a=r.onClick,i=r.onSwatchHover,o={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},s=Ye({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:o}},{hover:t});return _.createElement("div",{style:s.swatch},_.createElement(fa,{color:n,onClick:a,onHover:i,focusStyle:o}))};const oP=kc(iP);var of=function(r){var t=r.width,n=r.colors,a=r.onChange,i=r.onSwatchHover,o=r.triangle,s=r.styles,u=s===void 0?{}:s,l=r.className,c=l===void 0?"":l,f=Ye(Et({default:{card:{width:t,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},u),{"hide-triangle":o==="hide","top-left-triangle":o==="top-left","top-right-triangle":o==="top-right","bottom-left-triangle":o==="bottom-left","bottom-right-triangle":o==="bottom-right"}),p=function(v,m){return a({hex:v,source:"hex"},m)};return _.createElement("div",{style:f.card,className:"github-picker "+c},_.createElement("div",{style:f.triangleShadow}),_.createElement("div",{style:f.triangle}),pa(n,function(d){return _.createElement(oP,{color:d,key:d,onClick:p,onSwatchHover:i})}))};of.propTypes={width:Fe.oneOfType([Fe.string,Fe.number]),colors:Fe.arrayOf(Fe.string),triangle:Fe.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:Fe.object};of.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};St(of);var sP=function(r){var t=r.direction,n=Ye({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:t==="vertical"});return _.createElement("div",{style:n.picker})},uP=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},sf=function(r){var t=r.width,n=r.height,a=r.onChange,i=r.hsl,o=r.direction,s=r.pointer,u=r.styles,l=u===void 0?{}:u,c=r.className,f=c===void 0?"":c,p=Ye(Et({default:{picker:{position:"relative",width:t,height:n},hue:{radius:"2px"}}},l)),d=function(m){return a({a:1,h:m.h,l:.5,s:1})};return _.createElement("div",{style:p.picker,className:"hue-picker "+f},_.createElement(bi,uP({},p.hue,{hsl:i,pointer:s,onChange:d,direction:o})))};sf.propTypes={styles:Fe.object};sf.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:sP,styles:{}};St(sf);var lP=function(r){var t=r.onChange,n=r.hex,a=r.rgb,i=r.styles,o=i===void 0?{}:i,s=r.className,u=s===void 0?"":s,l=Ye(Et({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},o)),c=function(p,d){p.hex?Hn(p.hex)&&t({hex:p.hex,source:"hex"},d):(p.r||p.g||p.b)&&t({r:p.r||a.r,g:p.g||a.g,b:p.b||a.b,source:"rgb"},d)};return _.createElement(bo,{styles:o},_.createElement("div",{style:l.material,className:"material-picker "+u},_.createElement(vr,{style:{wrap:l.HEXwrap,input:l.HEXinput,label:l.HEXlabel},label:"hex",value:n,onChange:c}),_.createElement("div",{style:l.split,className:"flexbox-fix"},_.createElement("div",{style:l.third},_.createElement(vr,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"r",value:a.r,onChange:c})),_.createElement("div",{style:l.third},_.createElement(vr,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"g",value:a.g,onChange:c})),_.createElement("div",{style:l.third},_.createElement(vr,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"b",value:a.b,onChange:c})))))};St(lP);var cP=function(r){var t=r.onChange,n=r.rgb,a=r.hsv,i=r.hex,o=Ye({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),s=function(l,c){l["#"]?Hn(l["#"])&&t({hex:l["#"],source:"hex"},c):l.r||l.g||l.b?t({r:l.r||n.r,g:l.g||n.g,b:l.b||n.b,source:"rgb"},c):(l.h||l.s||l.v)&&t({h:l.h||a.h,s:l.s||a.s,v:l.v||a.v,source:"hsv"},c)};return _.createElement("div",{style:o.fields},_.createElement(vr,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"h",value:Math.round(a.h),onChange:s}),_.createElement(vr,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"s",value:Math.round(a.s*100),onChange:s}),_.createElement(vr,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"v",value:Math.round(a.v*100),onChange:s}),_.createElement("div",{style:o.divider}),_.createElement(vr,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"r",value:n.r,onChange:s}),_.createElement(vr,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"g",value:n.g,onChange:s}),_.createElement(vr,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"b",value:n.b,onChange:s}),_.createElement("div",{style:o.divider}),_.createElement(vr,{style:{wrap:o.HEXwrap,input:o.HEXinput,label:o.HEXlabel},label:"#",value:i.replace("#",""),onChange:s}),_.createElement("div",{style:o.fieldSymbols},_.createElement("div",{style:o.symbol},"°"),_.createElement("div",{style:o.symbol},"%"),_.createElement("div",{style:o.symbol},"%")))},fP=function(r){var t=r.hsl,n=Ye({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":t.l>.5});return _.createElement("div",{style:n.picker})},pP=function(){var r=Ye({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return _.createElement("div",{style:r.pointer},_.createElement("div",{style:r.left},_.createElement("div",{style:r.leftInside})),_.createElement("div",{style:r.right},_.createElement("div",{style:r.rightInside})))},Av=function(r){var t=r.onClick,n=r.label,a=r.children,i=r.active,o=Ye({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:i});return _.createElement("div",{style:o.button,onClick:t},n||a)},dP=function(r){var t=r.rgb,n=r.currentColor,a=Ye({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return _.createElement("div",null,_.createElement("div",{style:a.label},"new"),_.createElement("div",{style:a.swatches},_.createElement("div",{style:a.new}),_.createElement("div",{style:a.current})),_.createElement("div",{style:a.label},"current"))},vP=function(){function e(r,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,a.key,a)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}();function mP(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function hP(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:e}function gP(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}var uf=function(e){gP(r,e);function r(t){mP(this,r);var n=hP(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return n.state={currentColor:t.hex},n}return vP(r,[{key:"render",value:function(){var n=this.props,a=n.styles,i=a===void 0?{}:a,o=n.className,s=o===void 0?"":o,u=Ye(Et({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},i));return _.createElement("div",{style:u.picker,className:"photoshop-picker "+s},_.createElement("div",{style:u.head},this.props.header),_.createElement("div",{style:u.body,className:"flexbox-fix"},_.createElement("div",{style:u.saturation},_.createElement(fu,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:fP,onChange:this.props.onChange})),_.createElement("div",{style:u.hue},_.createElement(bi,{direction:"vertical",hsl:this.props.hsl,pointer:pP,onChange:this.props.onChange})),_.createElement("div",{style:u.controls},_.createElement("div",{style:u.top,className:"flexbox-fix"},_.createElement("div",{style:u.previews},_.createElement(dP,{rgb:this.props.rgb,currentColor:this.state.currentColor})),_.createElement("div",{style:u.actions},_.createElement(Av,{label:"OK",onClick:this.props.onAccept,active:!0}),_.createElement(Av,{label:"Cancel",onClick:this.props.onCancel}),_.createElement(cP,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),r}(_.Component);uf.propTypes={header:Fe.string,styles:Fe.object};uf.defaultProps={header:"Color Picker",styles:{}};St(uf);var yP=function(r){var t=r.onChange,n=r.rgb,a=r.hsl,i=r.hex,o=r.disableAlpha,s=Ye({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:o}),u=function(c,f){c.hex?Hn(c.hex)&&t({hex:c.hex,source:"hex"},f):c.r||c.g||c.b?t({r:c.r||n.r,g:c.g||n.g,b:c.b||n.b,a:n.a,source:"rgb"},f):c.a&&(c.a<0?c.a=0:c.a>100&&(c.a=100),c.a/=100,t({h:a.h,s:a.s,l:a.l,a:c.a,source:"rgb"},f))};return _.createElement("div",{style:s.fields,className:"flexbox-fix"},_.createElement("div",{style:s.double},_.createElement(vr,{style:{input:s.input,label:s.label},label:"hex",value:i.replace("#",""),onChange:u})),_.createElement("div",{style:s.single},_.createElement(vr,{style:{input:s.input,label:s.label},label:"r",value:n.r,onChange:u,dragLabel:"true",dragMax:"255"})),_.createElement("div",{style:s.single},_.createElement(vr,{style:{input:s.input,label:s.label},label:"g",value:n.g,onChange:u,dragLabel:"true",dragMax:"255"})),_.createElement("div",{style:s.single},_.createElement(vr,{style:{input:s.input,label:s.label},label:"b",value:n.b,onChange:u,dragLabel:"true",dragMax:"255"})),_.createElement("div",{style:s.alpha},_.createElement(vr,{style:{input:s.input,label:s.label},label:"a",value:Math.round(n.a*100),onChange:u,dragLabel:"true",dragMax:"100"})))},bP=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Cy=function(r){var t=r.colors,n=r.onClick,a=n===void 0?function(){}:n,i=r.onSwatchHover,o=Ye({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!t||!t.length}),s=function(l,c){a({hex:l,source:"hex"},c)};return _.createElement("div",{style:o.colors,className:"flexbox-fix"},t.map(function(u){var l=typeof u=="string"?{color:u}:u,c=""+l.color+(l.title||"");return _.createElement("div",{key:c,style:o.swatchWrap},_.createElement(fa,bP({},l,{style:o.swatch,onClick:s,onHover:i,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+l.color}})))}))};Cy.propTypes={colors:Fe.arrayOf(Fe.oneOfType([Fe.string,Fe.shape({color:Fe.string,title:Fe.string})])).isRequired};var xP=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},lf=function(r){var t=r.width,n=r.rgb,a=r.hex,i=r.hsv,o=r.hsl,s=r.onChange,u=r.onSwatchHover,l=r.disableAlpha,c=r.presetColors,f=r.renderers,p=r.styles,d=p===void 0?{}:p,v=r.className,m=v===void 0?"":v,g=Ye(Et({default:xP({picker:{width:t,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},d),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},d),{disableAlpha:l});return _.createElement("div",{style:g.picker,className:"sketch-picker "+m},_.createElement("div",{style:g.saturation},_.createElement(fu,{style:g.Saturation,hsl:o,hsv:i,onChange:s})),_.createElement("div",{style:g.controls,className:"flexbox-fix"},_.createElement("div",{style:g.sliders},_.createElement("div",{style:g.hue},_.createElement(bi,{style:g.Hue,hsl:o,onChange:s})),_.createElement("div",{style:g.alpha},_.createElement(Uc,{style:g.Alpha,rgb:n,hsl:o,renderers:f,onChange:s}))),_.createElement("div",{style:g.color},_.createElement(yi,null),_.createElement("div",{style:g.activeColor}))),_.createElement(yP,{rgb:n,hsl:o,hex:a,onChange:s,disableAlpha:l}),_.createElement(Cy,{colors:c,onClick:s,onSwatchHover:u}))};lf.propTypes={disableAlpha:Fe.bool,width:Fe.oneOfType([Fe.string,Fe.number]),styles:Fe.object};lf.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]};const wP=St(lf);var Vi=function(r){var t=r.hsl,n=r.offset,a=r.onClick,i=a===void 0?function(){}:a,o=r.active,s=r.first,u=r.last,l=Ye({default:{swatch:{height:"12px",background:"hsl("+t.h+", 50%, "+n*100+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:o,first:s,last:u}),c=function(p){return i({h:t.h,s:.5,l:n,source:"hsl"},p)};return _.createElement("div",{style:l.swatch,onClick:c})},EP=function(r){var t=r.onClick,n=r.hsl,a=Ye({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),i=.1;return _.createElement("div",{style:a.swatches},_.createElement("div",{style:a.swatch},_.createElement(Vi,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<i&&Math.abs(n.s-.5)<i,onClick:t,first:!0})),_.createElement("div",{style:a.swatch},_.createElement(Vi,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<i&&Math.abs(n.s-.5)<i,onClick:t})),_.createElement("div",{style:a.swatch},_.createElement(Vi,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<i&&Math.abs(n.s-.5)<i,onClick:t})),_.createElement("div",{style:a.swatch},_.createElement(Vi,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<i&&Math.abs(n.s-.5)<i,onClick:t})),_.createElement("div",{style:a.swatch},_.createElement(Vi,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<i&&Math.abs(n.s-.5)<i,onClick:t,last:!0})),_.createElement("div",{style:a.clear}))},SP=function(){var r=Ye({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return _.createElement("div",{style:r.picker})},cf=function(r){var t=r.hsl,n=r.onChange,a=r.pointer,i=r.styles,o=i===void 0?{}:i,s=r.className,u=s===void 0?"":s,l=Ye(Et({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},o));return _.createElement("div",{style:l.wrap||{},className:"slider-picker "+u},_.createElement("div",{style:l.hue},_.createElement(bi,{style:l.Hue,hsl:t,pointer:a,onChange:n})),_.createElement("div",{style:l.swatches},_.createElement(EP,{hsl:t,onClick:n})))};cf.propTypes={styles:Fe.object};cf.defaultProps={pointer:SP,styles:{}};St(cf);var Ny={};Object.defineProperty(Ny,"__esModule",{value:!0});var Dv=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},AP=_,Cv=DP(AP);function DP(e){return e&&e.__esModule?e:{default:e}}function CP(e,r){var t={};for(var n in e)r.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}var Vo=24,NP=Ny.default=function(e){var r=e.fill,t=r===void 0?"currentColor":r,n=e.width,a=n===void 0?Vo:n,i=e.height,o=i===void 0?Vo:i,s=e.style,u=s===void 0?{}:s,l=CP(e,["fill","width","height","style"]);return Cv.default.createElement("svg",Dv({viewBox:"0 0 "+Vo+" "+Vo,style:Dv({fill:t,width:a,height:o},u)},l),Cv.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},MP=function(r){var t=r.color,n=r.onClick,a=n===void 0?function(){}:n,i=r.onSwatchHover,o=r.first,s=r.last,u=r.active,l=Ye({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:t,marginBottom:"1px"},check:{color:Kc(t),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:o,last:s,active:u,"color-#FFFFFF":t==="#FFFFFF",transparent:t==="transparent"});return _.createElement(fa,{color:t,style:l.color,onClick:a,onHover:i,focusStyle:{boxShadow:"0 0 4px "+t}},_.createElement("div",{style:l.check},_.createElement(NP,null)))},TP=function(r){var t=r.onClick,n=r.onSwatchHover,a=r.group,i=r.active,o=Ye({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return _.createElement("div",{style:o.group},pa(a,function(s,u){return _.createElement(MP,{key:s,color:s,active:s.toLowerCase()===i,first:u===0,last:u===a.length-1,onClick:t,onSwatchHover:n})}))},ff=function(r){var t=r.width,n=r.height,a=r.onChange,i=r.onSwatchHover,o=r.colors,s=r.hex,u=r.styles,l=u===void 0?{}:u,c=r.className,f=c===void 0?"":c,p=Ye(Et({default:{picker:{width:t,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},l)),d=function(m,g){return a({hex:m,source:"hex"},g)};return _.createElement("div",{style:p.picker,className:"swatches-picker "+f},_.createElement(bo,null,_.createElement("div",{style:p.overflow},_.createElement("div",{style:p.body},pa(o,function(v){return _.createElement(TP,{key:v.toString(),group:v,active:s,onClick:d,onSwatchHover:i})}),_.createElement("div",{style:p.clear})))))};ff.propTypes={width:Fe.oneOfType([Fe.string,Fe.number]),height:Fe.oneOfType([Fe.string,Fe.number]),colors:Fe.arrayOf(Fe.arrayOf(Fe.string)),styles:Fe.object};ff.defaultProps={width:320,height:240,colors:[[_a[900],_a[700],_a[500],_a[300],_a[100]],[$a[900],$a[700],$a[500],$a[300],$a[100]],[Fa[900],Fa[700],Fa[500],Fa[300],Fa[100]],[Ba[900],Ba[700],Ba[500],Ba[300],Ba[100]],[Ra[900],Ra[700],Ra[500],Ra[300],Ra[100]],[Pa[900],Pa[700],Pa[500],Pa[300],Pa[100]],[za[900],za[700],za[500],za[300],za[100]],[Ia[900],Ia[700],Ia[500],Ia[300],Ia[100]],[La[900],La[700],La[500],La[300],La[100]],["#194D33",Ki[700],Ki[500],Ki[300],Ki[100]],[qa[900],qa[700],qa[500],qa[300],qa[100]],[ka[900],ka[700],ka[500],ka[300],ka[100]],[Ua[900],Ua[700],Ua[500],Ua[300],Ua[100]],[Ha[900],Ha[700],Ha[500],Ha[300],Ha[100]],[ja[900],ja[700],ja[500],ja[300],ja[100]],[Va[900],Va[700],Va[500],Va[300],Va[100]],[Ga[900],Ga[700],Ga[500],Ga[300],Ga[100]],[Wa[900],Wa[700],Wa[500],Wa[300],Wa[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};St(ff);var pf=function(r){var t=r.onChange,n=r.onSwatchHover,a=r.hex,i=r.colors,o=r.width,s=r.triangle,u=r.styles,l=u===void 0?{}:u,c=r.className,f=c===void 0?"":c,p=Ye(Et({default:{card:{width:o,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},l),{"hide-triangle":s==="hide","top-left-triangle":s==="top-left","top-right-triangle":s==="top-right"}),d=function(m,g){Hn(m)&&t({hex:m,source:"hex"},g)};return _.createElement("div",{style:p.card,className:"twitter-picker "+f},_.createElement("div",{style:p.triangleShadow}),_.createElement("div",{style:p.triangle}),_.createElement("div",{style:p.body},pa(i,function(v,m){return _.createElement(fa,{key:m,color:v,hex:v,style:p.swatch,onClick:d,onHover:n,focusStyle:{boxShadow:"0 0 4px "+v}})}),_.createElement("div",{style:p.hash},"#"),_.createElement(vr,{label:null,style:{input:p.input},value:a.replace("#",""),onChange:d}),_.createElement("div",{style:p.clear})))};pf.propTypes={width:Fe.oneOfType([Fe.string,Fe.number]),triangle:Fe.oneOf(["hide","top-left","top-right"]),colors:Fe.arrayOf(Fe.string),styles:Fe.object};pf.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};St(pf);var df=function(r){var t=Ye({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(r.hsl.h)+", "+Math.round(r.hsl.s*100)+"%, "+Math.round(r.hsl.l*100)+"%)"}}});return _.createElement("div",{style:t.picker})};df.propTypes={hsl:Fe.shape({h:Fe.number,s:Fe.number,l:Fe.number,a:Fe.number})};df.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var vf=function(r){var t=Ye({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(r.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return _.createElement("div",{style:t.picker})};vf.propTypes={hsl:Fe.shape({h:Fe.number,s:Fe.number,l:Fe.number,a:Fe.number})};vf.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var OP=function(r){var t=r.onChange,n=r.rgb,a=r.hsl,i=r.hex,o=r.hsv,s=function(d,v){if(d.hex)Hn(d.hex)&&t({hex:d.hex,source:"hex"},v);else if(d.rgb){var m=d.rgb.split(",");ml(d.rgb,"rgb")&&t({r:m[0],g:m[1],b:m[2],a:1,source:"rgb"},v)}else if(d.hsv){var g=d.hsv.split(",");ml(d.hsv,"hsv")&&(g[2]=g[2].replace("%",""),g[1]=g[1].replace("%",""),g[0]=g[0].replace("°",""),g[1]==1?g[1]=.01:g[2]==1&&(g[2]=.01),t({h:Number(g[0]),s:Number(g[1]),v:Number(g[2]),source:"hsv"},v))}else if(d.hsl){var y=d.hsl.split(",");ml(d.hsl,"hsl")&&(y[2]=y[2].replace("%",""),y[1]=y[1].replace("%",""),y[0]=y[0].replace("°",""),f[1]==1?f[1]=.01:f[2]==1&&(f[2]=.01),t({h:Number(y[0]),s:Number(y[1]),v:Number(y[2]),source:"hsl"},v))}},u=Ye({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),l=n.r+", "+n.g+", "+n.b,c=Math.round(a.h)+"°, "+Math.round(a.s*100)+"%, "+Math.round(a.l*100)+"%",f=Math.round(o.h)+"°, "+Math.round(o.s*100)+"%, "+Math.round(o.v*100)+"%";return _.createElement("div",{style:u.wrap,className:"flexbox-fix"},_.createElement("div",{style:u.fields},_.createElement("div",{style:u.double},_.createElement(vr,{style:{input:u.input,label:u.label},label:"hex",value:i,onChange:s})),_.createElement("div",{style:u.column},_.createElement("div",{style:u.single},_.createElement(vr,{style:{input:u.input2,label:u.label2},label:"rgb",value:l,onChange:s})),_.createElement("div",{style:u.single},_.createElement(vr,{style:{input:u.input2,label:u.label2},label:"hsv",value:f,onChange:s})),_.createElement("div",{style:u.single},_.createElement(vr,{style:{input:u.input2,label:u.label2},label:"hsl",value:c,onChange:s})))))},mf=function(r){var t=r.width,n=r.onChange,a=r.rgb,i=r.hsl,o=r.hsv,s=r.hex,u=r.header,l=r.styles,c=l===void 0?{}:l,f=r.className,p=f===void 0?"":f,d=Ye(Et({default:{picker:{width:t,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+a.r+", "+a.g+", "+a.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},c));return _.createElement("div",{style:d.picker,className:"google-picker "+p},_.createElement("div",{style:d.head},u),_.createElement("div",{style:d.swatch}),_.createElement("div",{style:d.saturation},_.createElement(fu,{hsl:i,hsv:o,pointer:df,onChange:n})),_.createElement("div",{style:d.body},_.createElement("div",{style:d.controls,className:"flexbox-fix"},_.createElement("div",{style:d.hue},_.createElement(bi,{style:d.Hue,hsl:i,radius:"4px",pointer:vf,onChange:n}))),_.createElement(OP,{rgb:a,hsl:i,hex:s,hsv:o,onChange:n})))};mf.propTypes={width:Fe.oneOfType([Fe.string,Fe.number]),styles:Fe.object,header:Fe.string};mf.defaultProps={width:652,styles:{},header:"Color picker"};St(mf);const _P=e=>{const{initialVisible:r=!1,onVisibleChange:t}=e??{},[n,a]=_.useState(r);_.useEffect(()=>t==null?void 0:t(n),[n,t]);const i=_.useCallback(u=>a(l=>typeof u=="boolean"?u:!l),[a,t]),o=_.useCallback(()=>i(!0),[i]),s=_.useCallback(()=>i(!1),[i]);return{visible:n,open:o,close:s,toggle:i}},da=(e,r,t)=>{const n=_.useRef();return n.current==null?n.current={deps:t,value:e()}:r(n.current.deps,t)||(n.current={deps:t,value:e()}),n.current.value},My=([e],[r])=>ye.E.primitiveArrays(e,r)===0,$P=e=>{const r=_.useRef();return r.current==null?r.current=e:ye._.equal(r.current,e)||(r.current=e),r.current},FP=(e,r)=>{_.useEffect(()=>{const t=e();return()=>{t.then(n=>n==null?void 0:n()).catch(n=>console.error(n))}},r)},Ty=(e,r,t)=>{const n=da(()=>t,r,t);_.useEffect(e,[n])},xo=e=>{const r=_.useRef(ye.executeInitialSetter(e)),t=_.useCallback(n=>{r.current=ye.executeSetter(n,r.current)},[]);return[r,t]},kt=e=>{const r=_.useRef(e);return r.current=e,r},Gl=(...e)=>_.useCallback(r=>e.forEach(t=>{t!=null&&(typeof t=="function"?t(r):t.current=r)},r),[]),ri=e=>{const r=_.useRef(null),[t,n]=_.useState(()=>{const i=ye.executeInitialSetter(e);return r.current=i,i}),a=_.useCallback(i=>{n(o=>(r.current=ye.executeSetter(i,o),r.current))},[n]);return[t,a,r]},hf=e=>{const r=_.useRef(),t=r.current;return r.current=e,t},gf=({ref:e,onClickOutside:r,exclude:t})=>{const n=kt(t),a=_.useCallback(i=>{const o=e.current,s=G.To.construct(window.document.documentElement),u=G.q.construct(i);o==null||o.contains(i.target)||G.To.contains(o,u)||!G.To.contains(s,u)||n.current!=null&&n.current.some(l=>{var c;return(c=l.current)==null?void 0:c.contains(i.target)})||r()},[r]);_.useEffect(()=>(document.addEventListener("mousedown",a),()=>document.removeEventListener("mousedown",a)),[a])},Oy=(e,r,t)=>_.useCallback(ye.o$1(e,r),[r,...t]),Wl=(e,r={})=>{const{triggers:t=[],debounce:n=0,enabled:a=!0}=r,i=_.useRef(G.To.ZERO),o=_.useRef(null),s=_.useRef(null),u=da(()=>t,My,[t]),l=_.useCallback(c=>{s.current!=null&&s.current.disconnect(),i.current==null&&(i.current=G.To.ZERO);const f=ye.o$1(()=>{const p=G.To.construct(c);BP(u,i.current,p)&&(i.current=p,e(p,o.current))},n);s.current=new ResizeObserver(f),s.current.observe(c)},[u,e,n]);return _.useEffect(()=>(o.current!=null&&a&&l(o.current),()=>{var c;return(c=s.current)==null?void 0:c.disconnect()}),[l,a]),_.useCallback(c=>{o.current=c,c!=null&&a&&l(c)},[l])},BP=(e,r,t)=>e.length===0?!G.To.equals(t,r):!!(e.includes("x")&&G.To.width(r)!==G.To.width(t)||e.includes("y")&&G.To.height(r)!==G.To.height(t)),_y=({transforms:e=[]})=>{const[r,t]=_.useState(e),n=_.useCallback((o,s,u=0)=>t(l=>{const c=l.filter(f=>f.key!==o);return c.push({key:o,transform:s,priority:u}),c.sort((f,p)=>p.priority-f.priority),c}),[t]),a=_.useCallback(o=>t(s=>s.filter(u=>u.key!==o)),[n]);return{transform:_.useCallback(o=>r.reduce((s,u)=>u.transform(s),{...o,transformed:!1}),[r]),setTransform:n,deleteTransform:a}},vu=["MouseLeft","MouseMiddle","MouseRight"],RP=Ft.z.enum(vu),yf=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],$y=new Set(yf),Fy=[...vu,...yf,"Backspace","Tab","Enter","Shift","Control","Alt","CapsLock","Escape","Space","PageUp","PageDown","End","Home","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Insert","Delete","ContextMenu","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12","F13","F14","F15","F16","F17","F18","F19","F20","F21","F22","F23","F24","NumLock","ScrollLock","AudioVolumeMute","AudioVolumeDown","AudioVolumeUp","AudioTrackNext","AudioTrackPrevious","AudioStop","AudioPlay","AudioPause","AudioRewind","AudioForward","AudioRepeat","AudioRandomPlay","AudioSelect","LaunchMail","LaunchApp2","LaunchApp1","SelectTask","LaunchScreenSaver","BrowserSearch","BrowserHome","BrowserBack","BrowserForward","BrowserStop","BrowserRefresh","BrowserFavorites","ZoomToggle","Clear","Power","Eject"],By=Ft.z.enum(Fy),PP=Ft.z.array(By),ti=e=>e.type.includes("key")?Ry(e):Py(e.button),zP=["Control","Alt","Shift"],Ry=e=>{if(["Digit","Key"].some(t=>e.code.startsWith(t)))return e.code.slice(-1);if(e.code.includes("Meta"))return"Control";const r=zP.find(t=>e.code.includes(t));return r??e.code},IP={0:"MouseLeft",1:"MouseMiddle",2:"MouseRight"},Py=e=>IP[e]??"MouseLeft",ra=(e,r,t=!1)=>Ns(e,r,t).length>0,LP=(e,r)=>t=>{if(ra(e,[[ti(t)]]))return r(t)},Ns=(e,r,t=!1)=>{const n=Iy(t);return e.filter(a=>r.some(i=>n(a,i)===ye.E.EQUAL))},bf=(e,r)=>e.filter(t=>!r.some(n=>ye.E.unorderedPrimitiveArrays(t,n)===ye.E.EQUAL)),zy=(e,r)=>{const t=Iy(!1),n=e.filter(i=>!r.some(o=>t(i,o)===ye.E.EQUAL)),a=r.filter(i=>!e.some(o=>t(i,o)===ye.E.EQUAL));return[n,a]},Iy=e=>e?qP:ye.E.unorderedPrimitiveArrays,qP=(e,r)=>e.every(t=>r.includes(t))?ye.E.EQUAL:ye.E.LESS_THAN,kP=(e,r,t=!1)=>{const o=Object.entries(e).filter(([s])=>s!=="defaultMode").map(([s,u])=>u.map(l=>[s,l])).flat().sort(([,s],[,u])=>u.length-s.length).find(([,s])=>ra([s],r,t));return o!=null?o[0]:e.defaultMode},Ly=([e],[r])=>{if(e==null&&r==null)return!0;if(e==null||r==null||e.defaultMode!==r.defaultMode)return!1;const t=Object.keys(e),n=Object.keys(r);return t.length!==n.length||e.defaultMode!==r.defaultMode?!1:t.every(a=>ye.E.unorderedPrimitiveArrays(e[a],r[a])===0)},qy=e=>Object.entries(e).filter(([t])=>t!=="defaultMode").map(([,t])=>t).flat(),UP=e=>da(()=>qy(e),Ly,[e]),HP=e=>e.map(r=>r.filter(t=>!t.startsWith("Mouse"))).filter(r=>r.length>0),jP={listen:()=>()=>{}},ky=_.createContext(jP),Uy=()=>_.useContext(ky),VP={next:[],prev:[],last:new ye.m(0)},Hy=["CapsLock"],GP=(e,r)=>!!(Hy.includes(e)||r.target instanceof HTMLInputElement&&$y.has(e)||r.target instanceof HTMLElement&&r.target.matches("[contenteditable]")),WP=({children:e,preventDefaultOn:r})=>{const t=_.useRef(G.q.ZERO),n=_.useCallback(f=>{t.current=G.q.construct(f)},[]),a=_.useRef(new Map),[,i]=xo({...VP}),o=_.useCallback((f,p)=>{const d=f.next.length>0?[f.next]:[],v=f.prev.length>0?[f.prev]:[],m={target:p,next:d,prev:v,cursor:t.current};a.current.forEach((g,y)=>y(m))},[]),s=_.useCallback(f=>{const p=ti(f);["ArrowUp","ArrowDown"].includes(p)&&f.preventDefault(),!GP(p,f)&&i(d=>{const v=[...d.next,p];if(d.next.includes(p))return d;d.prev.includes(p)&&ye.m.since(d.last).valueOf()<ye.y.milliseconds(300).valueOf()&&v.push(p);const m={next:v,prev:d.next,last:new ye.m};return Nv(v,r)&&f.preventDefault(),o(m,f.target),m})},[]),u=_.useCallback(f=>{const p=ti(f);["ArrowUp","ArrowDown"].includes(p)&&f.preventDefault(),!Hy.includes(p)&&i(d=>{const v=d.next.filter(y=>y!==p&&!vu.includes(y)),m=d.next,g={...d,next:v,prev:m};return Nv(v,r)&&f.preventDefault(),o(g,f.target),g})},[]),l=_.useCallback(f=>{i(p=>{const d=p.next,v={...p,next:[],prev:d};return o(v,f.target),v})},[]);_.useEffect(()=>(window.addEventListener("keydown",s),window.addEventListener("keyup",u),window.addEventListener("mousemove",n),window.addEventListener("mousedown",s),window.addEventListener("mouseup",u),window.addEventListener("dragend",u),window.addEventListener("drop",u),window.addEventListener("blur",l),()=>{window.removeEventListener("keydown",s),window.removeEventListener("keyup",u),window.removeEventListener("mousemove",n),window.removeEventListener("mousedown",s),window.removeEventListener("mouseup",u),window.removeEventListener("dragend",u),window.removeEventListener("drop",u),window.removeEventListener("blur",l)}),[s,u,n]);const c=_.useCallback(f=>(a.current.set(f,null),()=>a.current.delete(f)),[]);return Oe.jsxRuntimeExports.jsx(ky.Provider,{value:{listen:c},children:e})},Nv=(e,r)=>r!=null&&ra([e],r),wi=({triggers:e,callback:r,region:t,loose:n})=>{const{listen:a}=Uy(),i=da(()=>e,([o],[s])=>o==null&&s==null?!0:o==null||s==null?!1:ye.E.primitiveArrays(o.flat(),s.flat())===ye.E.EQUAL,[e]);_.useEffect(()=>{if(!(i==null||i.length===0))return a(o=>{const s=Ns(i,o.prev,n),u=Ns(i,o.next,n),l=zy(u,s);let c=l[0];const f=l[1];if(c.length===0&&f.length===0)return;c=ZP(o.target,o.cursor,c,t);const p={target:o.target,cursor:o.cursor};c.length>0&&(r==null||r({...p,stage:"start",triggers:c})),f.length>0&&(r==null||r({...p,stage:"end",triggers:f}))})},[r,i,a,n,t])},ZP=(e,r,t,n)=>{if(n==null)return t;if(n.current==null)return[];const a=G.To.construct(n.current);return t.filter(i=>i.some(o=>o.includes("Mouse"))?G.To.contains(a,r)&&e===n.current:G.To.contains(a,r))},Zl=({triggers:e,loose:r})=>{const[t,n]=xo({triggers:[],held:!1});return wi({triggers:e,callback:_.useCallback(a=>{n(i=>{let o=[];return a.stage==="start"?o=ye.n([...i.triggers,...a.triggers]):o=bf(i.triggers,a.triggers),{triggers:o,held:o.length>0}})},[]),loose:r}),t},YP=({triggers:e,loose:r})=>{const[t,n]=_.useState({triggers:[],held:!1});return wi({triggers:e,callback:_.useCallback(a=>{n(i=>{let o=[];return a.stage==="start"?o=ye.n([...i.triggers,...a.triggers]):o=bf(i.triggers,a.triggers),{triggers:o,held:o.length>0}})},[]),loose:r}),t},XP=({level:e="p",color:r,className:t,style:n,children:a,noWrap:i=!1,shade:o,weight:s,...u},l)=>Oe.jsxRuntimeExports.jsx(Zt.Element,{el:e,ref:l,style:{color:xf(r,o),fontWeight:s,...n},className:G.CSS(G.CSS.B("text"),G.CSS.BM("text",e),G.CSS.noWrap(i),t),...u,children:a}),wn=_.forwardRef(XP),xf=(e,r)=>{if(e!=null)return typeof e=="boolean"?void 0:G.cssString(e);if(r!=null)return`var(--pluto-gray-l${r})`},jy=({format:e="dateTime",suppliedTZ:r="UTC",displayTZ:t="local",children:n,...a},i)=>Oe.jsxRuntimeExports.jsx(wn,{ref:i,...a,children:new ye.m(n,r).fString(e,t)}),KP=_.forwardRef(jy),JP=["Escape","Enter"],QP=G.CSS.BM("text","editable"),ez=10,Vy="renamed",Gy="escaped",Wy=(e,r)=>{let t=0;const n=()=>{t++;const a=document.getElementById(e);if(a==null||!a.classList.contains(QP)){if(t<ez)setTimeout(()=>n(),100);else throw new Error(`Could not find element with id ${e}`);return}a.setAttribute("contenteditable","true"),r!=null&&(a.addEventListener(Vy,i=>r(Yl(i.target),!0)),a.addEventListener(Gy,i=>r(Yl(i.target),!1)))};n()},rz=e=>new Promise(r=>{Wy(e,(n,a)=>r([n,a]))}),Yl=e=>e.innerText.trim(),Zy=({onChange:e,value:r,useEditableState:t=_.useState,allowDoubleClick:n=!0,onDoubleClick:a,...i})=>{const[o,s]=t(!1),u=_.useRef(null),l=p=>{n&&s(!0),a==null||a(p)},c=(p,d=!1)=>{const v=Yl(p);d||v.length===0?(p.innerText=r,p.dispatchEvent(new Event(Gy))):(e==null||e(v),p.dispatchEvent(new Event(Vy)))},f=p=>{if(!o||!JP.includes(p.key)||u.current==null)return;p.stopPropagation(),p.preventDefault();const d=u.current;u.current!=null&&(s(!1),c(d,p.key==="Escape"),d.blur())};return _.useLayoutEffect(()=>{if(u.current==null||!o)return;const{current:p}=u;p.focus();const d=document.createRange();d.selectNodeContents(p);const v=window.getSelection();v==null||v.removeAllRanges(),v==null||v.addRange(d)},[o]),u.current!==null&&!o&&(u.current.innerHTML=r),_.useEffect(()=>{new MutationObserver(d=>{d.forEach(v=>{if(v.attributeName!=="contenteditable")return;v.target.contentEditable==="true"&&s(!0)})}).observe(u.current,{attributes:!0})},[]),Oe.jsxRuntimeExports.jsx(wn,{ref:u,className:G.CSS.BM("text","editable"),onBlur:()=>{s(!1);const p=u.current;p!=null&&c(p)},onKeyDown:f,onKeyUp:p=>{p.stopPropagation(),p.preventDefault()},onDoubleClick:l,contentEditable:o,suppressContentEditableWarning:!0,...i,children:r})},tz=({onChange:e,disabled:r=!1,value:t,allowDoubleClick:n,...a})=>r||e==null||typeof e=="boolean"?Oe.jsxRuntimeExports.jsx(wn,{...a,children:t}):Oe.jsxRuntimeExports.jsx(Oe.jsxRuntimeExports.Fragment,{children:Oe.jsxRuntimeExports.jsx(Zy,{allowDoubleClick:n,onChange:e,value:t,...a})}),nz=({href:e,download:r,target:t,rel:n,...a},i)=>Oe.jsxRuntimeExports.jsx("a",{className:G.CSS.B("text-link"),ref:i,href:e,download:r,target:t,rel:n,children:Oe.jsxRuntimeExports.jsx(wn,{className:G.CSS.BE("text-link","text"),...a})}),az=_.forwardRef(nz),Yy=e=>e==null?!0:Array.isArray(e)||typeof e=="string"?e.length===0:!1,iz=[],oz=[],Xy=({data:e=iz,value:r=oz,allowMultiple:t,allowNone:n,replaceOnSingle:a=!1,autoSelectOnNone:i=!1,onChange:o})=>{const s=_.useRef(null),u=Zl({triggers:[["Shift"]],loose:!0}),l=Zl({triggers:[["Control"]],loose:!0}),c=kt(r),f=kt(e),p=_.useCallback((m,g)=>{if(c.current=m,m.length===0&&n!==!1)return o(t!==!1?[]:null,g);if(t!==!1)return o(m,g);if(m.length>0)return o(m[0],g)},[o,n,t]);_.useEffect(()=>{let m=f.current;if(Array.isArray(m)||(m=m()),Yy(r)&&n===!1&&m.length>0&&i){const g=m[0];s.current=g.key,p([g.key],{entries:[g],clicked:g.key,clickedIndex:0})}},[p,f,r,n]);const d=_.useCallback(m=>{const g=s.current;let y=f.current;Array.isArray(y)||(y=y());let E=[];const h=ye.A(c.current).filter(x=>x!=null);if(t===!1)E=h.includes(m)?[]:[m];else if(l.current.held&&a)h.includes(m)?E=h.filter(x=>x!==m):E=[...h,m];else if(u.current.held&&g!==null){const[x,b]=[y.findIndex(A=>A.key===m),y.findIndex(A=>A.key===g)].sort((A,S)=>A-S),D=y.slice(x,b+1).map(({key:A})=>A);D.slice(1,D.length-1).every(A=>h.includes(A))&&h.includes(m)?E=h.filter(A=>!D.includes(A)):E=[...h,...D],s.current=null}else s.current=m,a?E=h.includes(m)&&h.length===1?[]:[m]:h.includes(m)?E=h.filter(x=>x!==m):E=[...h,m];const w=ye.n(E);if(n===!1&&w.length===0)return p(h,{entries:y.filter(({key:x})=>h.includes(x)),clicked:m,clickedIndex:y.findIndex(({key:x})=>x===m)});w.length===0&&(s.current=null),p(w,{entries:y.filter(({key:x})=>E.includes(x)),clicked:m,clickedIndex:y.findIndex(({key:x})=>x===m)})},[c,f,p,t,n]),v=_.useCallback(()=>p([],{entries:[],clicked:null,clickedIndex:0}),[p]);return{onSelect:d,clear:v}},wf=e=>{const r=_.useContext(e);if(r===null)throw new Error("useRequiredContext: context value is null");return r},Ky=_.createContext({transformedData:[],sourceData:[],transformed:!1}),Jy=_.createContext({setSourceData:()=>{},getSourceData:()=>[],getTransformedData:()=>[],deleteTransform:()=>{},setTransform:()=>{},setEmptyContent:()=>{},getEmptyContent:()=>{},getDefaultEmptyContent:()=>{},getTransformed:()=>!1}),Ei=()=>wf(Ky),wo=()=>wf(Jy),sz=()=>Ei().transformedData,Qy=()=>Ei().sourceData,Ef=()=>wo().getTransformedData,uz=()=>wo().setSourceData,lz=({data:e,emptyContent:r,children:t})=>{const{transform:n,setTransform:a,deleteTransform:i}=_y({}),[o,s,u]=ri(()=>e??[]);_.useEffect(()=>{e!=null&&s(e)},[e]);const l=_.useMemo(()=>n({data:[...o],transformed:!1}),[o,n]),c=kt(l),f=kt(r),[p,d,v]=ri(void 0);_.useEffect(()=>{r!=null&&d(r)},[r]);const m=_.useMemo(()=>({setSourceData:s,getSourceData:()=>u.current,getTransformedData:()=>c.current.data,getTransformed:()=>c.current.transformed,deleteTransform:i,setTransform:a,setEmptyContent:d,getEmptyContent:()=>v.current,getDefaultEmptyContent:()=>f.current}),[s,u,c,i,a]),g=_.useMemo(()=>({transformed:l.transformed,transformedData:l.data,sourceData:o,emptyContent:p}),[l,o,p]);return Oe.jsxRuntimeExports.jsx(Jy.Provider,{value:m,children:Oe.jsxRuntimeExports.jsx(Ky.Provider,{value:g,children:t})})},Mv={visible:!1,position:G.q.ZERO,cursor:G.q.ZERO,keys:[]},Sf=G.CSS.BM("context","selected"),Ms=G.CSS.BE("context","target"),e2=G.CSS.BE("menu-context","container"),cz=e=>{let r=e;for(;!r.classList.contains(Ms);){if(r.classList.contains(e2)||r.parentElement==null)return e;r=r.parentElement}return r.classList.contains(Ms)?r:e},fz=e=>{var n;const r=cz(e);if(r==null)return[];const t=Array.from(((n=r.parentElement)==null?void 0:n.querySelectorAll(`.${Sf}`))??[]);return t.includes(r)?t:[r]},pz=()=>{const e=_.useRef(null),[r,t]=_.useState(Mv),n=(o,s)=>{const u=G.q.construct(o);if(typeof o=="object"&&"preventDefault"in o){o.preventDefault(),o.stopPropagation();const l=fz(o.target);s=s??ye.n(l.map(c=>c.id).filter(c=>c.length>0))}else s=[];t({visible:!0,keys:s,position:u,cursor:u})},a=o=>{e.current=o,o!=null&&t(s=>{if(!s.visible)return s;const{adjustedDialog:u}=Ec.dialog({container:G.To.construct(0,0,window.innerWidth,window.innerHeight),dialog:G.To.construct(o),target:G.To.construct(s.cursor,0,0),prefer:[{y:"bottom"}]}),l=G.To.topLeft(u);return G.q.equals(s.position,l)?s:{...s,position:l}})},i=()=>t(Mv);return gf({ref:e,onClickOutside:i}),{...r,close:i,open:n,ref:a}},dz=({children:e,menu:r,visible:t,open:n,close:a,position:i,keys:o,className:s,cursor:u,...l},c)=>{const f=t?r==null?void 0:r({keys:o}):null;return Oe.jsxRuntimeExports.jsxs("div",{className:G.CSS(e2,s,G.CSS.inheritDims()),onContextMenu:n,...l,children:[e,f!=null&&to.createPortal(Oe.jsxRuntimeExports.jsx("div",{className:G.CSS(G.CSS.B("menu-context"),G.CSS.bordered()),ref:c,style:{left:i.x,top:i.y},onClick:a,children:f}),document.body)]})},r2=_.forwardRef(dz);r2.displayName="ContextMenu";const t2=({entry:e,selected:r,hovered:t,onSelect:n,className:a,draggingOver:i,rightAligned:o=!1,highlightHovered:s=!1,translate:u,style:l,sourceIndex:c,...f})=>Oe.jsxRuntimeExports.jsx(Zt.Space,{id:e.key.toString(),direction:"x",onClick:()=>n==null?void 0:n(e.key),tabIndex:0,className:G.CSS(a,Ms,r&&Sf,t&&G.CSS.M("hovered"),o&&G.CSS.M("right-aligned"),s&&G.CSS.M("highlight-hover"),G.CSS.BE("list","item"),G.CSS.selected(r)),style:{position:u!=null?"absolute":"relative",transform:`translateY(${u}px)`,...l},...f}),At=[95,90,85,80,75,70,65,60,55,50,45,40,35,30,25,20,15,10,5],n2=e=>Object.entries({"theme-name":e.name,"theme-key":e.key,"primary-m1":e.colors.primary.m1.hex,"primary-z":e.colors.primary.z.hex,"primary-p1":e.colors.primary.p1.hex,...br.createHexOpacityVariants("primary-z",e.colors.primary.z,At),"secondary-m1":e.colors.secondary.m1.hex,"secondary-z":e.colors.secondary.z.hex,"secondary-p1":e.colors.secondary.p1.hex,...br.createHexOpacityVariants("secondary-z",e.colors.secondary.z,At),"gray-l0":e.colors.gray.l0.hex,"gray-l0-rgb":e.colors.gray.l0.rgbString,...br.createHexOpacityVariants("gray-l0",e.colors.gray.l0,At),"gray-l1":e.colors.gray.l1.hex,...br.createHexOpacityVariants("gray-l1",e.colors.gray.l1,At),"gray-l2":e.colors.gray.l2.hex,...br.createHexOpacityVariants("gray-l2",e.colors.gray.l2,At),"gray-l3":e.colors.gray.l3.hex,...br.createHexOpacityVariants("gray-l3",e.colors.gray.l3,At),"gray-l4":e.colors.gray.l4.hex,"gray-l5":e.colors.gray.l5.hex,...br.createHexOpacityVariants("gray-l5",e.colors.gray.l5,At),"gray-l6":e.colors.gray.l6.hex,...br.createHexOpacityVariants("gray-l6",e.colors.gray.l6,At),"gray-l7":e.colors.gray.l7.hex,...br.createHexOpacityVariants("gray-l7",e.colors.gray.l7,At),"gray-l8":e.colors.gray.l8.hex,"gray-l9":e.colors.gray.l9.hex,...br.createHexOpacityVariants("gray-l9",e.colors.gray.l9,At),"gray-l10":e.colors.gray.l10.hex,"logo-color":e.colors.logo,"error-m1":e.colors.error.m1.hex,"error-z":e.colors.error.z.hex,...br.createHexOpacityVariants("error-z",e.colors.error.z,At),"error-p1":e.colors.error.p1.hex,"warning-m1":e.colors.warning.m1.hex,"warning-z":e.colors.warning.z.hex,...br.createHexOpacityVariants("warning-z",e.colors.warning.z,At),"warning-p1":e.colors.warning.p1.hex,"success-m1":e.colors.secondary.m1.hex,"success-z":e.colors.secondary.z.hex,...br.createHexOpacityVariants("success-z",e.colors.secondary.z,At),"success-p1":e.colors.secondary.p1.hex,white:e.colors.white.hex,"white-rgb":e.colors.white.rgbString,black:e.colors.black.hex,"black-rgb":e.colors.black.rgbString,"text-color":e.colors.text.hex,"text-color-rgb":e.colors.text.rgbString,"text-on-primary":e.colors.textOnPrimary.hex,"border-color":e.colors.border.hex,"base-size":br.unitProperty(e.sizes.base,"px"),"border-radius":br.unitProperty(e.sizes.border.radius,"px"),"border-width":br.unitProperty(e.sizes.border.width,"px"),"schematic-element-stroke-width":br.unitProperty(e.sizes.schematic.elementStrokeWidth,"px"),"font-family":e.typography.family,"h1-size":br.unitProperty(e.typography.h1.size,"rem"),"h1-weight":e.typography.h1.weight,"h1-line-height":br.unitProperty(e.typography.h1.lineHeight,"rem"),"h2-size":br.unitProperty(e.typography.h2.size,"rem"),"h2-weight":e.typography.h2.weight,"h2-line-height":br.unitProperty(e.typography.h2.lineHeight,"rem"),"h3-size":br.unitProperty(e.typography.h3.size,"rem"),"h3-weight":e.typography.h3.weight,"h3-line-height":br.unitProperty(e.typography.h3.lineHeight,"rem"),"h4-size":br.unitProperty(e.typography.h4.size,"rem"),"h4-weight":e.typography.h4.weight,"h4-line-height":br.unitProperty(e.typography.h4.lineHeight,"rem"),"h5-size":br.unitProperty(e.typography.h5.size,"rem"),"h5-weight":e.typography.h5.weight,"h5-line-height":br.unitProperty(e.typography.h5.lineHeight,"rem"),"h5-text-transform":e.typography.h5.textTransform,"p-size":br.unitProperty(e.typography.p.size,"rem"),"p-weight":e.typography.p.weight,"p-line-height":br.unitProperty(e.typography.p.lineHeight,"rem"),"small-size":br.unitProperty(e.typography.small.size,"rem"),"small-weight":e.typography.small.weight,"small-line-height":br.unitProperty(e.typography.small.lineHeight,"rem")}).reduce((r,[t,n])=>({...r,[G.CSS.var(t)]:n}),{}),a2=e=>{const r=_.useRef(null);return r.current===null&&(r.current=e??ye.gt.id()),r.current},i2=_.createContext({enabled:!1,route:null}),Af=_.memo(({children:e,url:r,enabled:t=!0})=>{const[n,a]=_.useState({route:null,enabled:!1});return Ty(()=>{if(!t)return;const i=new Worker(r,{type:"module"});i.onmessageerror=s=>{console.error(s),console.error(s),console.error(JSON.stringify(s))},i.onerror=s=>{console.error(s),console.error(s.message),console.error(JSON.stringify(s))};const o=new ye.l((s,u=[])=>i.postMessage(s,u));return i.onmessage=s=>o.handle(s),a({route:s=>{if(n==null)throw new Error("Worker is not initialized");return o.route(s)},enabled:!0}),()=>i.terminate()},([i],[o])=>i.toString()===o.toString(),[r]),t&&n.route==null?null:Oe.jsxRuntimeExports.jsx(i2.Provider,{value:n,children:e})});Af.displayName="worker.Provider";const o2=e=>{const r=_.useContext(i2);return r.enabled?da(()=>r.route(e),([t],[n])=>t===n,[r.route]):null},vz=Object.freeze(Object.defineProperty({__proto__:null,Provider:Af,use:o2},Symbol.toStringTag,{value:"Module"})),mz={path:[],create:()=>({setState:()=>{},delete:()=>{}})},mu=_.createContext(mz),s2=({workerKey:e,worker:r,children:t})=>{const n=o2(e),a=_.useRef(new Map),[i,o]=_.useState(!1),s=_.useMemo(()=>r??n,[r,n]),u=_.useCallback((c,f,p)=>{const d=f.at(-1);if(d==null)throw new ye.P(`[Aether.Provider] - received zero length path when registering component of type ${c}`);return c.length===0&&console.warn(`[Aether.Provider] - received zero length type when registering component at ${f.join(".")} This is probably a bad idea.`),a.current.set(d,{path:f,handler:p}),{setState:(v,m=[])=>{s==null&&console.warn("aether - no worker"),s==null||s.send({variant:"update",path:f,state:v,type:c},m)},delete:()=>{s==null&&console.warn("aether - no worker"),s==null||s.send({variant:"delete",path:f,type:c})}}},[s,a]);_.useEffect(()=>{s==null||s.handle(c=>{const{key:f,state:p}=c,d=a.current.get(f);if(d==null)throw new ye.Ee(`[Aether.Provider] - received worker update message for unregistered component with key ${f}`);if(d.handler==null)throw new ye.Ee(`[Aether.Provider] - received worker update message for component with key ${f} that has no handler`);d.handler(p)}),o(!0)},[s]);const l=_.useMemo(()=>({create:u,path:["root"]}),[u]);return Oe.jsxRuntimeExports.jsx(mu.Provider,{value:l,children:i&&t})},Df=()=>_.useContext(mu),hz=({type:e,aetherKey:r,initialState:t,schema:n,initialTransfer:a=[],onReceive:i})=>{const o=_.useRef(),s=Df(),u=da(()=>[...s.path,r],([f],[p])=>ye.E.primitiveArrays(f,p)===0,[s.path,r]),l=_.useCallback((f,p=[])=>{var d;return(d=o.current)==null?void 0:d.setState(ye.prettyParse(n,f),p)},[]);o.current==null&&(o.current=s.create(e,u,i),o.current.setState(t,a));const c=_.useRef(!0);return _.useEffect(()=>{if(c.current){c.current=!1;return}return o.current=s.create(e,u,i),l(t,a),()=>{var f;(f=o.current)==null||f.delete(),o.current=null}},[e,u,i,l]),_.useLayoutEffect(()=>()=>{var f;(f=o.current)==null||f.delete(),o.current=null},[]),_.useMemo(()=>({setState:l,path:u}),[l,r,u])},hu=e=>{const{type:r,schema:t,initialState:n}=e,[a,i]=_.useState(()=>ye.prettyParse(t,n)),o=_.useCallback(c=>i(ye.prettyParse(t,c)),[t]),{path:s,setState:u}=hz({...e,onReceive:o}),l=_.useCallback((c,f=[])=>{ye.isSetter(c)?i(p=>{const d=c(p);return u(d,f),d}):(i(c),u(c,f))},[s,r]);return[{path:s},a,l]},Eo=_.memo(({children:e,path:r})=>{const t=Df(),n=_.useMemo(()=>({...t,path:r}),[t,r]);return Oe.jsxRuntimeExports.jsx(mu.Provider,{value:n,children:e})});Eo.displayName="AetherComposite";const gu=(e,r)=>{r.displayName=`Aether.wrap(${e})`;const t=_.memo(({aetherKey:n,...a})=>{const i=a2(n);return Oe.jsxRuntimeExports.jsx(r,{...a,aetherKey:i})});return t.displayName=e,t},gz=Object.freeze(Object.defineProperty({__proto__:null,Composite:Eo,Context:mu,Provider:s2,use:hu,useAetherContext:Df,wrap:gu},Symbol.toStringTag,{value:"Module"})),u2="cursor-style",Tv=(e,r=document.head)=>{l2();const t=document.createElement("style");t.innerHTML=`*{cursor: ${e} !important;}`,t.id=u2,r.appendChild(t)},l2=()=>{const e=document.getElementById(u2);e!=null&&e.remove()},yz={start:G.q.ZERO,mouseKey:"MouseLeft"},bz=({ref:e,onMove:r,onStart:t,onEnd:n})=>{const[a,i]=xo(yz);_.useEffect(()=>{if(e.current==null)return;const{current:o}=e,s=c=>{const f=G.q.construct(c),{mouseKey:p,start:d}=a.current;r==null||r(G.To.construct(d,f),p,c)},u=c=>{o.setPointerCapture(c.pointerId),o.onpointermove=s;const f=G.q.construct(c),p=ti(c);i({start:f,mouseKey:p}),t==null||t(f,p,c),o.addEventListener("pointerup",l,{once:!0})};o.addEventListener("pointerdown",u);const l=c=>{o.onpointermove=null,o.releasePointerCapture(c.pointerId);const{start:f,mouseKey:p}=a.current;n==null||n(G.To.construct(f,G.q.construct(c)),p,c)};return()=>o.removeEventListener("pointerdown",u)},[r,t,n])},Ov=(e,r,t,n,a)=>{const{x:i,y:o}=n??G.q.construct(G.To.dims(a));if(G.To.width(r)>i&&G.To.width(r)>G.To.height(r)){const s=G.To.signedWidth(r)<0?i:-i;e+=(G.To.signedWidth(r)+s)*t.x,Tv("ew-resize")}if(G.To.height(r)>o&&G.To.height(r)>G.To.width(r)){const s=G.To.signedHeight(r)<0?o:-o;e+=(G.To.signedHeight(r)+s)*t.y,Tv("ns-resize")}return e},yu=({direction:e,className:r,dragScale:t={x:10,y:1},dragThreshold:n=15,dragDirection:a,onChange:i,value:o,size:s,resetValue:u,onDragEnd:l,...c})=>{const f=_.useRef({dragging:!1,curr:o,prev:o}),p=_.useRef(null);f.current.dragging||(f.current.prev=o);const d=_.useMemo(()=>{const g=G.q.construct(t);return a==="x"?G.q.construct(g.x,0):a==="y"?G.q.construct(0,g.y):g},[t,a]),v=_.useMemo(()=>n!=null?G.q.construct(n):null,[n]);bz({ref:p,onMove:_.useCallback(g=>{if(p.current==null)return;let y=f.current.prev;f.current.dragging=!0,y=Ov(y,g,d,v,G.To.construct(p.current)),f.current.curr=y,i(y)},[i,d,v]),onEnd:_.useCallback((g,y)=>{var h;if(p.current==null)return;let E=f.current.prev;E=Ov(E,g,d,v,G.To.construct(p.current)),f.current.prev=E,f.current.dragging=!1,l2(),l==null||l(E),(h=c.onBlur)==null||h.call(c)},[c.onBlur,l,d,v])});const m=_.useCallback(()=>{i(u??f.current.prev)},[i,u]);return Oe.jsxRuntimeExports.jsx(Op,{tabIndex:-1,ref:p,variant:"outlined",className:G.CSS(G.CSS.BE("input","drag-btn"),G.CSS.dir(e),r),onDoubleClick:m,onClick:g=>g.preventDefault(),...c,children:Oe.jsxRuntimeExports.jsx(It.Drag,{})})},Si=_.forwardRef(({size:e="medium",value:r,style:t,onChange:n,className:a,onFocus:i,selectOnFocus:o=!1,centerPlaceholder:s=!1,placeholder:u,variant:l="outlined",sharp:c=!1,children:f,level:p,onBlur:d,disabled:v,resetOnBlurIfEmpty:m=!1,status:g,...y},E)=>{const h=_.useRef(""),w=x=>{m&&x.target.value===""&&(n==null||n(h.current)),d==null||d(x)};return Oe.jsxRuntimeExports.jsxs(Zt.Pack,{style:t,className:G.CSS(G.CSS.B("input"),v&&G.CSS.BM("input","disabled"),p==null&&G.CSS.size(e),G.CSS.BM("input",l),G.CSS.sharp(c),g!=null&&G.CSS.M(g),a),align:"center",size:e,children:[Oe.jsxRuntimeExports.jsxs("div",{className:G.CSS.BE("input","internal"),children:[(r==null||r.length===0)&&Oe.jsxRuntimeExports.jsx("div",{className:G.CSS(G.CSS.BE("input","placeholder"),s&&G.CSS.M("centered")),children:Sp(p??ye.ComponentSizeLevels[e],u)}),Oe.jsxRuntimeExports.jsx("input",{ref:E,value:r,onChange:x=>{n==null||n(x.target.value)},role:"textbox",autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",onFocus:x=>{i==null||i(x),h.current=x.target.value,o&&setTimeout(()=>x.target.select(),2)},onBlur:w,className:G.CSS(G.CSS.visible(!1),p!=null&&G.CSS.BM("text",p)),disabled:v,placeholder:typeof u=="string"?u:void 0,...y})]}),f]})});Si.displayName="Input";const xz={x:Number(ye.m.HOUR.valueOf()),y:Number(ye.m.days(.75).valueOf())},c2=({value:e,onChange:r})=>{const t=new ye.m(e,"UTC");_.useLayoutEffect(()=>{const i=t.sub(ye.m.utcOffset);if(i.remainder(ye.m.DAY).isZero)return;const o=i.sub(i.remainder(ye.m.DAY));r(Number(new ye.m(o,"local").valueOf()))},[e]);const n=i=>{let o;if(typeof i=="number")o=new ye.m(i,"UTC");else{if(i.length===0)return;o=new ye.m(i,"local")}r(Number(o.valueOf()))};return{value:t.fString("ISODate","local"),onChange:n}},f2=_.forwardRef(({onChange:e,value:r,className:t,showDragHandle:n=!0,children:a,...i},o)=>{const{value:s,onChange:u}=c2({value:r,onChange:e});return Oe.jsxRuntimeExports.jsxs(Si,{ref:o,value:s,className:G.CSS(G.CSS.B("input-date"),t),onChange:u,type:"date",...i,children:[n&&Oe.jsxRuntimeExports.jsx(yu,{value:r,onChange:u,dragScale:xz}),a]})});f2.displayName="InputDate";function Hr(){return Hr=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Hr.apply(null,arguments)}var p2={relTol:1e-12,absTol:1e-15,matrix:"Matrix",number:"number",numberFallback:"number",precision:64,predictable:!1,randomSeed:null};function Je(e){return typeof e=="number"}function Qe(e){return!e||typeof e!="object"||typeof e.constructor!="function"?!1:e.isBigNumber===!0&&typeof e.constructor.prototype=="object"&&e.constructor.prototype.isBigNumber===!0||typeof e.constructor.isDecimal=="function"&&e.constructor.isDecimal(e)===!0}function wz(e){return typeof e=="bigint"}function bn(e){return e&&typeof e=="object"&&Object.getPrototypeOf(e).isComplex===!0||!1}function So(e){return e&&typeof e=="object"&&Object.getPrototypeOf(e).isFraction===!0||!1}function Rt(e){return e&&e.constructor.prototype.isUnit===!0||!1}function it(e){return typeof e=="string"}var hr=Array.isArray;function Ue(e){return e&&e.constructor.prototype.isMatrix===!0||!1}function Ut(e){return Array.isArray(e)||Ue(e)}function Ts(e){return e&&e.isDenseMatrix&&e.constructor.prototype.isMatrix===!0||!1}function ea(e){return e&&e.isSparseMatrix&&e.constructor.prototype.isMatrix===!0||!1}function Cf(e){return e&&e.constructor.prototype.isRange===!0||!1}function bu(e){return e&&e.constructor.prototype.isIndex===!0||!1}function Ez(e){return typeof e=="boolean"}function Sz(e){return e&&e.constructor.prototype.isResultSet===!0||!1}function d2(e){return e&&e.constructor.prototype.isHelp===!0||!1}function Az(e){return typeof e=="function"}function Dz(e){return e instanceof Date}function Cz(e){return e instanceof RegExp}function xu(e){return!!(e&&typeof e=="object"&&e.constructor===Object&&!bn(e)&&!So(e))}function Nz(e){return e===null}function Mz(e){return e===void 0}function ia(e){return e&&e.isAccessorNode===!0&&e.constructor.prototype.isNode===!0||!1}function Bt(e){return e&&e.isArrayNode===!0&&e.constructor.prototype.isNode===!0||!1}function Tz(e){return e&&e.isAssignmentNode===!0&&e.constructor.prototype.isNode===!0||!1}function Oz(e){return e&&e.isBlockNode===!0&&e.constructor.prototype.isNode===!0||!1}function _z(e){return e&&e.isConditionalNode===!0&&e.constructor.prototype.isNode===!0||!1}function cr(e){return e&&e.isConstantNode===!0&&e.constructor.prototype.isNode===!0||!1}function Xl(e){return cr(e)||kr(e)&&e.args.length===1&&cr(e.args[0])&&"-+~".includes(e.op)}function Ao(e){return e&&e.isFunctionAssignmentNode===!0&&e.constructor.prototype.isNode===!0||!1}function qn(e){return e&&e.isFunctionNode===!0&&e.constructor.prototype.isNode===!0||!1}function Ai(e){return e&&e.isIndexNode===!0&&e.constructor.prototype.isNode===!0||!1}function Er(e){return e&&e.isNode===!0&&e.constructor.prototype.isNode===!0||!1}function wu(e){return e&&e.isObjectNode===!0&&e.constructor.prototype.isNode===!0||!1}function kr(e){return e&&e.isOperatorNode===!0&&e.constructor.prototype.isNode===!0||!1}function En(e){return e&&e.isParenthesisNode===!0&&e.constructor.prototype.isNode===!0||!1}function $z(e){return e&&e.isRangeNode===!0&&e.constructor.prototype.isNode===!0||!1}function Fz(e){return e&&e.isRelationalNode===!0&&e.constructor.prototype.isNode===!0||!1}function Zr(e){return e&&e.isSymbolNode===!0&&e.constructor.prototype.isNode===!0||!1}function v2(e){return e&&e.constructor.prototype.isChain===!0||!1}function Cr(e){var r=typeof e;return r==="object"?e===null?"null":Qe(e)?"BigNumber":e.constructor&&e.constructor.name?e.constructor.name:"Object":r}function We(e){var r=typeof e;if(r==="number"||r==="bigint"||r==="string"||r==="boolean"||e===null||e===void 0)return e;if(typeof e.clone=="function")return e.clone();if(Array.isArray(e))return e.map(function(t){return We(t)});if(e instanceof Date)return new Date(e.valueOf());if(Qe(e))return e;if(xu(e))return Bz(e,We);throw new TypeError("Cannot clone: unknown type of value (value: ".concat(e,")"))}function Bz(e,r){var t={};for(var n in e)Re(e,n)&&(t[n]=r(e[n]));return t}function m2(e,r){for(var t in r)Re(r,t)&&(e[t]=r[t]);return e}function Sn(e,r){var t,n,a;if(Array.isArray(e)){if(!Array.isArray(r)||e.length!==r.length)return!1;for(n=0,a=e.length;n<a;n++)if(!Sn(e[n],r[n]))return!1;return!0}else{if(typeof e=="function")return e===r;if(e instanceof Object){if(Array.isArray(r)||!(r instanceof Object))return!1;for(t in e)if(!(t in r)||!Sn(e[t],r[t]))return!1;for(t in r)if(!(t in e))return!1;return!0}else return e===r}}function Rz(e,r,t){var n=!0,a;Object.defineProperty(e,r,{get:function(){return n&&(a=t(),n=!1),a},set:function(o){a=o,n=!1},configurable:!0,enumerable:!0})}function Re(e,r){return e&&Object.hasOwnProperty.call(e,r)}function Pz(e,r){for(var t={},n=0;n<r.length;n++){var a=r[n],i=e[a];i!==void 0&&(t[a]=i)}return t}var zz=["Matrix","Array"],Iz=["number","BigNumber","Fraction"],ge=function(r){if(r)throw new Error(`The global config is readonly.
|
|
70
|
+
`),_.createElement("div",{style:c.white,className:"saturation-white"},_.createElement("div",{style:c.black,className:"saturation-black"}),_.createElement("div",{style:c.pointer},this.props.pointer?_.createElement(this.props.pointer,this.props):_.createElement("div",{style:c.circle}))))}}]),r}(_.PureComponent||_.Component);function zF(e,r){for(var t=-1,n=e==null?0:e.length;++t<n&&r(e[t],t,e)!==!1;);return e}var IF=ty(Object.keys,Object),LF=Object.prototype,qF=LF.hasOwnProperty;function kF(e){if(!Gc(e))return IF(e);var r=[];for(var t in Object(e))qF.call(e,t)&&t!="constructor"&&r.push(t);return r}function Xc(e){return xi(e)?uy(e):kF(e)}function UF(e,r){return e&&ey(e,r,Xc)}function HF(e,r){return function(t,n){if(t==null)return t;if(!xi(t))return e(t,n);for(var a=t.length,i=-1,o=Object(t);++i<a&&n(o[i],i,o)!==!1;);return t}}var py=HF(UF);function jF(e){return typeof e=="function"?e:lu}function VF(e,r){var t=Tt(e)?zF:py;return t(e,jF(r))}function Ds(e){"@babel/helpers - typeof";return Ds=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ds(e)}var GF=/^\s+/,WF=/\s+$/;function Ie(e,r){if(e=e||"",r=r||{},e instanceof Ie)return e;if(!(this instanceof Ie))return new Ie(e,r);var t=ZF(e);this._originalInput=e,this._r=t.r,this._g=t.g,this._b=t.b,this._a=t.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||t.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=t.ok}Ie.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var r=this.toRgb();return(r.r*299+r.g*587+r.b*114)/1e3},getLuminance:function(){var r=this.toRgb(),t,n,a,i,o,s;return t=r.r/255,n=r.g/255,a=r.b/255,t<=.03928?i=t/12.92:i=Math.pow((t+.055)/1.055,2.4),n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),a<=.03928?s=a/12.92:s=Math.pow((a+.055)/1.055,2.4),.2126*i+.7152*o+.0722*s},setAlpha:function(r){return this._a=dy(r),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var r=Qd(this._r,this._g,this._b);return{h:r.h*360,s:r.s,v:r.v,a:this._a}},toHsvString:function(){var r=Qd(this._r,this._g,this._b),t=Math.round(r.h*360),n=Math.round(r.s*100),a=Math.round(r.v*100);return this._a==1?"hsv("+t+", "+n+"%, "+a+"%)":"hsva("+t+", "+n+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var r=Jd(this._r,this._g,this._b);return{h:r.h*360,s:r.s,l:r.l,a:this._a}},toHslString:function(){var r=Jd(this._r,this._g,this._b),t=Math.round(r.h*360),n=Math.round(r.s*100),a=Math.round(r.l*100);return this._a==1?"hsl("+t+", "+n+"%, "+a+"%)":"hsla("+t+", "+n+"%, "+a+"%, "+this._roundA+")"},toHex:function(r){return ev(this._r,this._g,this._b,r)},toHexString:function(r){return"#"+this.toHex(r)},toHex8:function(r){return JF(this._r,this._g,this._b,this._a,r)},toHex8String:function(r){return"#"+this.toHex8(r)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Br(this._r,255)*100)+"%",g:Math.round(Br(this._g,255)*100)+"%",b:Math.round(Br(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Br(this._r,255)*100)+"%, "+Math.round(Br(this._g,255)*100)+"%, "+Math.round(Br(this._b,255)*100)+"%)":"rgba("+Math.round(Br(this._r,255)*100)+"%, "+Math.round(Br(this._g,255)*100)+"%, "+Math.round(Br(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:cB[ev(this._r,this._g,this._b,!0)]||!1},toFilter:function(r){var t="#"+rv(this._r,this._g,this._b,this._a),n=t,a=this._gradientType?"GradientType = 1, ":"";if(r){var i=Ie(r);n="#"+rv(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+t+",endColorstr="+n+")"},toString:function(r){var t=!!r;r=r||this._format;var n=!1,a=this._a<1&&this._a>=0,i=!t&&a&&(r==="hex"||r==="hex6"||r==="hex3"||r==="hex4"||r==="hex8"||r==="name");return i?r==="name"&&this._a===0?this.toName():this.toRgbString():(r==="rgb"&&(n=this.toRgbString()),r==="prgb"&&(n=this.toPercentageRgbString()),(r==="hex"||r==="hex6")&&(n=this.toHexString()),r==="hex3"&&(n=this.toHexString(!0)),r==="hex4"&&(n=this.toHex8String(!0)),r==="hex8"&&(n=this.toHex8String()),r==="name"&&(n=this.toName()),r==="hsl"&&(n=this.toHslString()),r==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return Ie(this.toString())},_applyModification:function(r,t){var n=r.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(tB,arguments)},brighten:function(){return this._applyModification(nB,arguments)},darken:function(){return this._applyModification(aB,arguments)},desaturate:function(){return this._applyModification(QF,arguments)},saturate:function(){return this._applyModification(eB,arguments)},greyscale:function(){return this._applyModification(rB,arguments)},spin:function(){return this._applyModification(iB,arguments)},_applyCombination:function(r,t){return r.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(uB,arguments)},complement:function(){return this._applyCombination(oB,arguments)},monochromatic:function(){return this._applyCombination(lB,arguments)},splitcomplement:function(){return this._applyCombination(sB,arguments)},triad:function(){return this._applyCombination(tv,[3])},tetrad:function(){return this._applyCombination(tv,[4])}};Ie.fromRatio=function(e,r){if(Ds(e)=="object"){var t={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?t[n]=e[n]:t[n]=Yi(e[n]));e=t}return Ie(e,r)};function ZF(e){var r={r:0,g:0,b:0},t=1,n=null,a=null,i=null,o=!1,s=!1;return typeof e=="string"&&(e=vB(e)),Ds(e)=="object"&&(vn(e.r)&&vn(e.g)&&vn(e.b)?(r=YF(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):vn(e.h)&&vn(e.s)&&vn(e.v)?(n=Yi(e.s),a=Yi(e.v),r=KF(e.h,n,a),o=!0,s="hsv"):vn(e.h)&&vn(e.s)&&vn(e.l)&&(n=Yi(e.s),i=Yi(e.l),r=XF(e.h,n,i),o=!0,s="hsl"),e.hasOwnProperty("a")&&(t=e.a)),t=dy(t),{ok:o,format:e.format||s,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:t}}function YF(e,r,t){return{r:Br(e,255)*255,g:Br(r,255)*255,b:Br(t,255)*255}}function Jd(e,r,t){e=Br(e,255),r=Br(r,255),t=Br(t,255);var n=Math.max(e,r,t),a=Math.min(e,r,t),i,o,s=(n+a)/2;if(n==a)i=o=0;else{var u=n-a;switch(o=s>.5?u/(2-n-a):u/(n+a),n){case e:i=(r-t)/u+(r<t?6:0);break;case r:i=(t-e)/u+2;break;case t:i=(e-r)/u+4;break}i/=6}return{h:i,s:o,l:s}}function XF(e,r,t){var n,a,i;e=Br(e,360),r=Br(r,100),t=Br(t,100);function o(l,c,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?l+(c-l)*6*f:f<1/2?c:f<2/3?l+(c-l)*(2/3-f)*6:l}if(r===0)n=a=i=t;else{var s=t<.5?t*(1+r):t+r-t*r,u=2*t-s;n=o(u,s,e+1/3),a=o(u,s,e),i=o(u,s,e-1/3)}return{r:n*255,g:a*255,b:i*255}}function Qd(e,r,t){e=Br(e,255),r=Br(r,255),t=Br(t,255);var n=Math.max(e,r,t),a=Math.min(e,r,t),i,o,s=n,u=n-a;if(o=n===0?0:u/n,n==a)i=0;else{switch(n){case e:i=(r-t)/u+(r<t?6:0);break;case r:i=(t-e)/u+2;break;case t:i=(e-r)/u+4;break}i/=6}return{h:i,s:o,v:s}}function KF(e,r,t){e=Br(e,360)*6,r=Br(r,100),t=Br(t,100);var n=Math.floor(e),a=e-n,i=t*(1-r),o=t*(1-a*r),s=t*(1-(1-a)*r),u=n%6,l=[t,o,i,i,s,t][u],c=[s,t,t,o,i,i][u],f=[i,i,s,t,t,o][u];return{r:l*255,g:c*255,b:f*255}}function ev(e,r,t,n){var a=[Yt(Math.round(e).toString(16)),Yt(Math.round(r).toString(16)),Yt(Math.round(t).toString(16))];return n&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function JF(e,r,t,n,a){var i=[Yt(Math.round(e).toString(16)),Yt(Math.round(r).toString(16)),Yt(Math.round(t).toString(16)),Yt(vy(n))];return a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function rv(e,r,t,n){var a=[Yt(vy(n)),Yt(Math.round(e).toString(16)),Yt(Math.round(r).toString(16)),Yt(Math.round(t).toString(16))];return a.join("")}Ie.equals=function(e,r){return!e||!r?!1:Ie(e).toRgbString()==Ie(r).toRgbString()};Ie.random=function(){return Ie.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function QF(e,r){r=r===0?0:r||10;var t=Ie(e).toHsl();return t.s-=r/100,t.s=pu(t.s),Ie(t)}function eB(e,r){r=r===0?0:r||10;var t=Ie(e).toHsl();return t.s+=r/100,t.s=pu(t.s),Ie(t)}function rB(e){return Ie(e).desaturate(100)}function tB(e,r){r=r===0?0:r||10;var t=Ie(e).toHsl();return t.l+=r/100,t.l=pu(t.l),Ie(t)}function nB(e,r){r=r===0?0:r||10;var t=Ie(e).toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(255*-(r/100)))),t.g=Math.max(0,Math.min(255,t.g-Math.round(255*-(r/100)))),t.b=Math.max(0,Math.min(255,t.b-Math.round(255*-(r/100)))),Ie(t)}function aB(e,r){r=r===0?0:r||10;var t=Ie(e).toHsl();return t.l-=r/100,t.l=pu(t.l),Ie(t)}function iB(e,r){var t=Ie(e).toHsl(),n=(t.h+r)%360;return t.h=n<0?360+n:n,Ie(t)}function oB(e){var r=Ie(e).toHsl();return r.h=(r.h+180)%360,Ie(r)}function tv(e,r){if(isNaN(r)||r<=0)throw new Error("Argument to polyad must be a positive number");for(var t=Ie(e).toHsl(),n=[Ie(e)],a=360/r,i=1;i<r;i++)n.push(Ie({h:(t.h+i*a)%360,s:t.s,l:t.l}));return n}function sB(e){var r=Ie(e).toHsl(),t=r.h;return[Ie(e),Ie({h:(t+72)%360,s:r.s,l:r.l}),Ie({h:(t+216)%360,s:r.s,l:r.l})]}function uB(e,r,t){r=r||6,t=t||30;var n=Ie(e).toHsl(),a=360/t,i=[Ie(e)];for(n.h=(n.h-(a*r>>1)+720)%360;--r;)n.h=(n.h+a)%360,i.push(Ie(n));return i}function lB(e,r){r=r||6;for(var t=Ie(e).toHsv(),n=t.h,a=t.s,i=t.v,o=[],s=1/r;r--;)o.push(Ie({h:n,s:a,v:i})),i=(i+s)%1;return o}Ie.mix=function(e,r,t){t=t===0?0:t||50;var n=Ie(e).toRgb(),a=Ie(r).toRgb(),i=t/100,o={r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a};return Ie(o)};Ie.readability=function(e,r){var t=Ie(e),n=Ie(r);return(Math.max(t.getLuminance(),n.getLuminance())+.05)/(Math.min(t.getLuminance(),n.getLuminance())+.05)};Ie.isReadable=function(e,r,t){var n=Ie.readability(e,r),a,i;switch(i=!1,a=mB(t),a.level+a.size){case"AAsmall":case"AAAlarge":i=n>=4.5;break;case"AAlarge":i=n>=3;break;case"AAAsmall":i=n>=7;break}return i};Ie.mostReadable=function(e,r,t){var n=null,a=0,i,o,s,u;t=t||{},o=t.includeFallbackColors,s=t.level,u=t.size;for(var l=0;l<r.length;l++)i=Ie.readability(e,r[l]),i>a&&(a=i,n=Ie(r[l]));return Ie.isReadable(e,n,{level:s,size:u})||!o?n:(t.includeFallbackColors=!1,Ie.mostReadable(e,["#fff","#000"],t))};var kl=Ie.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},cB=Ie.hexNames=fB(kl);function fB(e){var r={};for(var t in e)e.hasOwnProperty(t)&&(r[e[t]]=t);return r}function dy(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Br(e,r){pB(e)&&(e="100%");var t=dB(e);return e=Math.min(r,Math.max(0,parseFloat(e))),t&&(e=parseInt(e*r,10)/100),Math.abs(e-r)<1e-6?1:e%r/parseFloat(r)}function pu(e){return Math.min(1,Math.max(0,e))}function Dt(e){return parseInt(e,16)}function pB(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function dB(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Yt(e){return e.length==1?"0"+e:""+e}function Yi(e){return e<=1&&(e=e*100+"%"),e}function vy(e){return Math.round(parseFloat(e)*255).toString(16)}function nv(e){return Dt(e)/255}var Gt=function(){var e="[-\\+]?\\d+%?",r="[-\\+]?\\d*\\.\\d+%?",t="(?:"+r+")|(?:"+e+")",n="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",a="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?";return{CSS_UNIT:new RegExp(t),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function vn(e){return!!Gt.CSS_UNIT.exec(e)}function vB(e){e=e.replace(GF,"").replace(WF,"").toLowerCase();var r=!1;if(kl[e])e=kl[e],r=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t;return(t=Gt.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=Gt.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=Gt.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=Gt.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=Gt.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=Gt.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=Gt.hex8.exec(e))?{r:Dt(t[1]),g:Dt(t[2]),b:Dt(t[3]),a:nv(t[4]),format:r?"name":"hex8"}:(t=Gt.hex6.exec(e))?{r:Dt(t[1]),g:Dt(t[2]),b:Dt(t[3]),format:r?"name":"hex"}:(t=Gt.hex4.exec(e))?{r:Dt(t[1]+""+t[1]),g:Dt(t[2]+""+t[2]),b:Dt(t[3]+""+t[3]),a:nv(t[4]+""+t[4]),format:r?"name":"hex8"}:(t=Gt.hex3.exec(e))?{r:Dt(t[1]+""+t[1]),g:Dt(t[2]+""+t[2]),b:Dt(t[3]+""+t[3]),format:r?"name":"hex"}:!1}function mB(e){var r,t;return e=e||{level:"AA",size:"small"},r=(e.level||"AA").toUpperCase(),t=(e.size||"small").toLowerCase(),r!=="AA"&&r!=="AAA"&&(r="AA"),t!=="small"&&t!=="large"&&(t="small"),{level:r,size:t}}var av=function(r){var t=["r","g","b","a","h","s","l","v"],n=0,a=0;return VF(t,function(i){if(r[i]&&(n+=1,isNaN(r[i])||(a+=1),i==="s"||i==="l")){var o=/^\d+%$/;o.test(r[i])&&(a+=1)}}),n===a?r:!1},Xi=function(r,t){var n=r.hex?Ie(r.hex):Ie(r),a=n.toHsl(),i=n.toHsv(),o=n.toRgb(),s=n.toHex();a.s===0&&(a.h=t||0,i.h=t||0);var u=s==="000000"&&o.a===0;return{hsl:a,hex:u?"transparent":"#"+s,rgb:o,hsv:i,oldHue:r.h||t||a.h,source:r.source}},Hn=function(r){if(r==="transparent")return!0;var t=String(r).charAt(0)==="#"?1:0;return r.length!==4+t&&r.length<7+t&&Ie(r).isValid()},Kc=function(r){if(!r)return"#fff";var t=Xi(r);if(t.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(t.rgb.r*299+t.rgb.g*587+t.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},ml=function(r,t){var n=r.replace("°","");return Ie(t+" ("+n+")")._ok},ji=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},hB=function(){function e(r,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,a.key,a)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}();function gB(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function yB(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:e}function bB(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}var St=function(r){var t=function(n){bB(a,n);function a(i){gB(this,a);var o=yB(this,(a.__proto__||Object.getPrototypeOf(a)).call(this));return o.handleChange=function(s,u){var l=av(s);if(l){var c=Xi(s,s.h||o.state.oldHue);o.setState(c),o.props.onChangeComplete&&o.debounce(o.props.onChangeComplete,c,u),o.props.onChange&&o.props.onChange(c,u)}},o.handleSwatchHover=function(s,u){var l=av(s);if(l){var c=Xi(s,s.h||o.state.oldHue);o.props.onSwatchHover&&o.props.onSwatchHover(c,u)}},o.state=ji({},Xi(i.color,0)),o.debounce=fy(function(s,u,l){s(u,l)},100),o}return hB(a,[{key:"render",value:function(){var o={};return this.props.onSwatchHover&&(o.onSwatchHover=this.handleSwatchHover),_.createElement(r,ji({},this.props,this.state,{onChange:this.handleChange},o))}}],[{key:"getDerivedStateFromProps",value:function(o,s){return ji({},Xi(o.color,s.oldHue))}}]),a}(_.PureComponent||_.Component);return t.propTypes=ji({},r.propTypes),t.defaultProps=ji({},r.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),t},xB=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},wB=function(){function e(r,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,a.key,a)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}();function EB(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function iv(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:e}function SB(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}var AB=function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){SB(a,n);function a(){var i,o,s,u;EB(this,a);for(var l=arguments.length,c=Array(l),f=0;f<l;f++)c[f]=arguments[f];return u=(o=(s=iv(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(c))),s),s.state={focus:!1},s.handleFocus=function(){return s.setState({focus:!0})},s.handleBlur=function(){return s.setState({focus:!1})},o),iv(s,u)}return wB(a,[{key:"render",value:function(){return _.createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},_.createElement(r,xB({},this.props,this.state)))}}]),a}(_.Component)},ov=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},DB=13,CB=function(r){var t=r.color,n=r.style,a=r.onClick,i=a===void 0?function(){}:a,o=r.onHover,s=r.title,u=s===void 0?t:s,l=r.children,c=r.focus,f=r.focusStyle,p=f===void 0?{}:f,d=t==="transparent",v=Ye({default:{swatch:ov({background:t,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,c?p:{})}}),m=function(w){return i(t,w)},g=function(w){return w.keyCode===DB&&i(t,w)},y=function(w){return o(t,w)},E={};return o&&(E.onMouseOver=y),_.createElement("div",ov({style:v.swatch,onClick:m,title:u,tabIndex:0,onKeyDown:g},E),l,d&&_.createElement(yi,{borderRadius:v.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const fa=AB(CB);var NB=function(r){var t=r.direction,n=Ye({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:t==="vertical"});return _.createElement("div",{style:n.picker})},MB=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},my=function(r){var t=r.rgb,n=r.hsl,a=r.width,i=r.height,o=r.onChange,s=r.direction,u=r.style,l=r.renderers,c=r.pointer,f=r.className,p=f===void 0?"":f,d=Ye({default:{picker:{position:"relative",width:a,height:i},alpha:{radius:"2px",style:u}}});return _.createElement("div",{style:d.picker,className:"alpha-picker "+p},_.createElement(Uc,MB({},d.alpha,{rgb:t,hsl:n,pointer:c,renderers:l,onChange:o,direction:s})))};my.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:NB};St(my);function hy(e,r){for(var t=-1,n=e==null?0:e.length,a=Array(n);++t<n;)a[t]=r(e[t],t,e);return a}var TB="__lodash_hash_undefined__";function OB(e){return this.__data__.set(e,TB),this}function _B(e){return this.__data__.has(e)}function Cs(e){var r=-1,t=e==null?0:e.length;for(this.__data__=new Nn;++r<t;)this.add(e[r])}Cs.prototype.add=Cs.prototype.push=OB;Cs.prototype.has=_B;function $B(e,r){for(var t=-1,n=e==null?0:e.length;++t<n;)if(r(e[t],t,e))return!0;return!1}function FB(e,r){return e.has(r)}var BB=1,RB=2;function gy(e,r,t,n,a,i){var o=t&BB,s=e.length,u=r.length;if(s!=u&&!(o&&u>s))return!1;var l=i.get(e),c=i.get(r);if(l&&c)return l==r&&c==e;var f=-1,p=!0,d=t&RB?new Cs:void 0;for(i.set(e,r),i.set(r,e);++f<s;){var v=e[f],m=r[f];if(n)var g=o?n(m,v,f,r,e,i):n(v,m,f,e,r,i);if(g!==void 0){if(g)continue;p=!1;break}if(d){if(!$B(r,function(y,E){if(!FB(d,E)&&(v===y||a(v,y,t,n,i)))return d.push(E)})){p=!1;break}}else if(!(v===m||a(v,m,t,n,i))){p=!1;break}}return i.delete(e),i.delete(r),p}function PB(e){var r=-1,t=Array(e.size);return e.forEach(function(n,a){t[++r]=[a,n]}),t}function zB(e){var r=-1,t=Array(e.size);return e.forEach(function(n){t[++r]=n}),t}var IB=1,LB=2,qB="[object Boolean]",kB="[object Date]",UB="[object Error]",HB="[object Map]",jB="[object Number]",VB="[object RegExp]",GB="[object Set]",WB="[object String]",ZB="[object Symbol]",YB="[object ArrayBuffer]",XB="[object DataView]",sv=In?In.prototype:void 0,hl=sv?sv.valueOf:void 0;function KB(e,r,t,n,a,i,o){switch(t){case XB:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case YB:return!(e.byteLength!=r.byteLength||!i(new Es(e),new Es(r)));case qB:case kB:case jB:return yo(+e,+r);case UB:return e.name==r.name&&e.message==r.message;case VB:case WB:return e==r+"";case HB:var s=PB;case GB:var u=n&IB;if(s||(s=zB),e.size!=r.size&&!u)return!1;var l=o.get(e);if(l)return l==r;n|=LB,o.set(e,r);var c=gy(s(e),s(r),n,a,i,o);return o.delete(e),c;case ZB:if(hl)return hl.call(e)==hl.call(r)}return!1}function JB(e,r){for(var t=-1,n=r.length,a=e.length;++t<n;)e[a+t]=r[t];return e}function QB(e,r,t){var n=r(e);return Tt(e)?n:JB(n,t(e))}function eR(e,r){for(var t=-1,n=e==null?0:e.length,a=0,i=[];++t<n;){var o=e[t];r(o,t,e)&&(i[a++]=o)}return i}function rR(){return[]}var tR=Object.prototype,nR=tR.propertyIsEnumerable,uv=Object.getOwnPropertySymbols,aR=uv?function(e){return e==null?[]:(e=Object(e),eR(uv(e),function(r){return nR.call(e,r)}))}:rR;function lv(e){return QB(e,Xc,aR)}var iR=1,oR=Object.prototype,sR=oR.hasOwnProperty;function uR(e,r,t,n,a,i){var o=t&iR,s=lv(e),u=s.length,l=lv(r),c=l.length;if(u!=c&&!o)return!1;for(var f=u;f--;){var p=s[f];if(!(o?p in r:sR.call(r,p)))return!1}var d=i.get(e),v=i.get(r);if(d&&v)return d==r&&v==e;var m=!0;i.set(e,r),i.set(r,e);for(var g=o;++f<u;){p=s[f];var y=e[p],E=r[p];if(n)var h=o?n(E,y,p,r,e,i):n(y,E,p,e,r,i);if(!(h===void 0?y===E||a(y,E,t,n,i):h)){m=!1;break}g||(g=p=="constructor")}if(m&&!g){var w=e.constructor,x=r.constructor;w!=x&&"constructor"in e&&"constructor"in r&&!(typeof w=="function"&&w instanceof w&&typeof x=="function"&&x instanceof x)&&(m=!1)}return i.delete(e),i.delete(r),m}var Ul=ca(Qt,"DataView"),Hl=ca(Qt,"Promise"),jl=ca(Qt,"Set"),Vl=ca(Qt,"WeakMap"),cv="[object Map]",lR="[object Object]",fv="[object Promise]",pv="[object Set]",dv="[object WeakMap]",vv="[object DataView]",cR=la(Ul),fR=la(no),pR=la(Hl),dR=la(jl),vR=la(Vl),Fn=ua;(Ul&&Fn(new Ul(new ArrayBuffer(1)))!=vv||no&&Fn(new no)!=cv||Hl&&Fn(Hl.resolve())!=fv||jl&&Fn(new jl)!=pv||Vl&&Fn(new Vl)!=dv)&&(Fn=function(e){var r=ua(e),t=r==lR?e.constructor:void 0,n=t?la(t):"";if(n)switch(n){case cR:return vv;case fR:return cv;case pR:return fv;case dR:return pv;case vR:return dv}return r});var mR=1,mv="[object Arguments]",hv="[object Array]",Ho="[object Object]",hR=Object.prototype,gv=hR.hasOwnProperty;function gR(e,r,t,n,a,i){var o=Tt(e),s=Tt(r),u=o?hv:Fn(e),l=s?hv:Fn(r);u=u==mv?Ho:u,l=l==mv?Ho:l;var c=u==Ho,f=l==Ho,p=u==l;if(p&&As(e)){if(!As(r))return!1;o=!0,c=!1}if(p&&!c)return i||(i=new sn),o||Zc(e)?gy(e,r,t,n,a,i):KB(e,r,u,t,n,a,i);if(!(t&mR)){var d=c&&gv.call(e,"__wrapped__"),v=f&&gv.call(r,"__wrapped__");if(d||v){var m=d?e.value():e,g=v?r.value():r;return i||(i=new sn),a(m,g,t,n,i)}}return p?(i||(i=new sn),uR(e,r,t,n,a,i)):!1}function Jc(e,r,t,n,a){return e===r?!0:e==null||r==null||!Ln(e)&&!Ln(r)?e!==e&&r!==r:gR(e,r,t,n,Jc,a)}var yR=1,bR=2;function xR(e,r,t,n){var a=t.length,i=a;if(e==null)return!i;for(e=Object(e);a--;){var o=t[a];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++a<i;){o=t[a];var s=o[0],u=e[s],l=o[1];if(o[2]){if(u===void 0&&!(s in e))return!1}else{var c=new sn,f;if(!(f===void 0?Jc(l,u,yR|bR,n,c):f))return!1}}return!0}function yy(e){return e===e&&!qt(e)}function wR(e){for(var r=Xc(e),t=r.length;t--;){var n=r[t],a=e[n];r[t]=[n,a,yy(a)]}return r}function by(e,r){return function(t){return t==null?!1:t[e]===r&&(r!==void 0||e in Object(t))}}function ER(e){var r=wR(e);return r.length==1&&r[0][2]?by(r[0][0],r[0][1]):function(t){return t===e||xR(t,e,r)}}var SR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,AR=/^\w*$/;function Qc(e,r){if(Tt(e))return!1;var t=typeof e;return t=="number"||t=="symbol"||t=="boolean"||e==null||cu(e)?!0:AR.test(e)||!SR.test(e)||r!=null&&e in Object(r)}var DR="Expected a function";function ef(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(DR);var t=function(){var n=arguments,a=r?r.apply(this,n):n[0],i=t.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return t.cache=i.set(a,o)||i,o};return t.cache=new(ef.Cache||Nn),t}ef.Cache=Nn;var CR=500;function NR(e){var r=ef(e,function(n){return t.size===CR&&t.clear(),n}),t=r.cache;return r}var MR=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,TR=/\\(\\)?/g,OR=NR(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(MR,function(t,n,a,i){r.push(a?i.replace(TR,"$1"):n||t)}),r}),_R=1/0,yv=In?In.prototype:void 0,bv=yv?yv.toString:void 0;function xy(e){if(typeof e=="string")return e;if(Tt(e))return hy(e,xy)+"";if(cu(e))return bv?bv.call(e):"";var r=e+"";return r=="0"&&1/e==-_R?"-0":r}function $R(e){return e==null?"":xy(e)}function wy(e,r){return Tt(e)?e:Qc(e,r)?[e]:OR($R(e))}var FR=1/0;function du(e){if(typeof e=="string"||cu(e))return e;var r=e+"";return r=="0"&&1/e==-FR?"-0":r}function Ey(e,r){r=wy(r,e);for(var t=0,n=r.length;e!=null&&t<n;)e=e[du(r[t++])];return t&&t==n?e:void 0}function BR(e,r,t){var n=e==null?void 0:Ey(e,r);return n===void 0?t:n}function RR(e,r){return e!=null&&r in Object(e)}function PR(e,r,t){r=wy(r,e);for(var n=-1,a=r.length,i=!1;++n<a;){var o=du(r[n]);if(!(i=e!=null&&t(e,o)))break;e=e[o]}return i||++n!=a?i:(a=e==null?0:e.length,!!a&&Wc(a)&&Yc(o,a)&&(Tt(e)||Ss(e)))}function zR(e,r){return e!=null&&PR(e,r,RR)}var IR=1,LR=2;function qR(e,r){return Qc(e)&&yy(r)?by(du(e),r):function(t){var n=BR(t,e);return n===void 0&&n===r?zR(t,e):Jc(r,n,IR|LR)}}function kR(e){return function(r){return r==null?void 0:r[e]}}function UR(e){return function(r){return Ey(r,e)}}function HR(e){return Qc(e)?kR(du(e)):UR(e)}function jR(e){return typeof e=="function"?e:e==null?lu:typeof e=="object"?Tt(e)?qR(e[0],e[1]):ER(e):HR(e)}function VR(e,r){var t=-1,n=xi(e)?Array(e.length):[];return py(e,function(a,i,o){n[++t]=r(a,i,o)}),n}function pa(e,r){var t=Tt(e)?hy:VR;return t(e,jR(r))}var GR=function(r){var t=r.colors,n=r.onClick,a=r.onSwatchHover,i=Ye({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return _.createElement("div",{style:i.swatches},pa(t,function(o){return _.createElement(fa,{key:o,color:o,style:i.swatch,onClick:n,onHover:a,focusStyle:{boxShadow:"0 0 4px "+o}})}),_.createElement("div",{style:i.clear}))},rf=function(r){var t=r.onChange,n=r.onSwatchHover,a=r.hex,i=r.colors,o=r.width,s=r.triangle,u=r.styles,l=u===void 0?{}:u,c=r.className,f=c===void 0?"":c,p=a==="transparent",d=function(g,y){Hn(g)&&t({hex:g,source:"hex"},y)},v=Ye(Et({default:{card:{width:o,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:a,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:Kc(a),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+a+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},l),{"hide-triangle":s==="hide"});return _.createElement("div",{style:v.card,className:"block-picker "+f},_.createElement("div",{style:v.triangle}),_.createElement("div",{style:v.head},p&&_.createElement(yi,{borderRadius:"6px 6px 0 0"}),_.createElement("div",{style:v.label},a)),_.createElement("div",{style:v.body},_.createElement(GR,{colors:i,onClick:d,onSwatchHover:n}),_.createElement(vr,{style:{input:v.input},value:a,onChange:d})))};rf.propTypes={width:Fe.oneOfType([Fe.string,Fe.number]),colors:Fe.arrayOf(Fe.string),triangle:Fe.oneOf(["top","hide"]),styles:Fe.object};rf.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}};St(rf);var _a={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},$a={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},Fa={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},Ba={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},Ra={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},Pa={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},za={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},Ia={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},La={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},Ki={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},qa={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},ka={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},Ua={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},Ha={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},ja={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},Va={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},Ga={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},Wa={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},Sy=function(r){var t=r.color,n=r.onClick,a=r.onSwatchHover,i=r.hover,o=r.active,s=r.circleSize,u=r.circleSpacing,l=Ye({default:{swatch:{width:s,height:s,marginRight:u,marginBottom:u,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(s/2+1)+"px "+t,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+t}}},{hover:i,active:o});return _.createElement("div",{style:l.swatch},_.createElement(fa,{style:l.Swatch,color:t,onClick:n,onHover:a,focusStyle:{boxShadow:l.Swatch.boxShadow+", 0 0 5px "+t}}))};Sy.defaultProps={circleSize:28,circleSpacing:14};const WR=kc(Sy);var tf=function(r){var t=r.width,n=r.onChange,a=r.onSwatchHover,i=r.colors,o=r.hex,s=r.circleSize,u=r.styles,l=u===void 0?{}:u,c=r.circleSpacing,f=r.className,p=f===void 0?"":f,d=Ye(Et({default:{card:{width:t,display:"flex",flexWrap:"wrap",marginRight:-c,marginBottom:-c}}},l)),v=function(g,y){return n({hex:g,source:"hex"},y)};return _.createElement("div",{style:d.card,className:"circle-picker "+p},pa(i,function(m){return _.createElement(WR,{key:m,color:m,onClick:v,onSwatchHover:a,active:o===m.toLowerCase(),circleSize:s,circleSpacing:c})}))};tf.propTypes={width:Fe.oneOfType([Fe.string,Fe.number]),circleSize:Fe.number,circleSpacing:Fe.number,styles:Fe.object};tf.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[_a[500],$a[500],Fa[500],Ba[500],Ra[500],Pa[500],za[500],Ia[500],La[500],Ki[500],qa[500],ka[500],Ua[500],Ha[500],ja[500],Va[500],Ga[500],Wa[500]],styles:{}};St(tf);function xv(e){return e===void 0}var Ay={};Object.defineProperty(Ay,"__esModule",{value:!0});var wv=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},ZR=_,Ev=YR(ZR);function YR(e){return e&&e.__esModule?e:{default:e}}function XR(e,r){var t={};for(var n in e)r.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}var jo=24,KR=Ay.default=function(e){var r=e.fill,t=r===void 0?"currentColor":r,n=e.width,a=n===void 0?jo:n,i=e.height,o=i===void 0?jo:i,s=e.style,u=s===void 0?{}:s,l=XR(e,["fill","width","height","style"]);return Ev.default.createElement("svg",wv({viewBox:"0 0 "+jo+" "+jo,style:wv({fill:t,width:a,height:o},u)},l),Ev.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))},JR=function(){function e(r,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,a.key,a)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}();function QR(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function eP(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:e}function rP(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}var Dy=function(e){rP(r,e);function r(t){QR(this,r);var n=eP(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return n.toggleViews=function(){n.state.view==="hex"?n.setState({view:"rgb"}):n.state.view==="rgb"?n.setState({view:"hsl"}):n.state.view==="hsl"&&(n.props.hsl.a===1?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(a,i){a.hex?Hn(a.hex)&&n.props.onChange({hex:a.hex,source:"hex"},i):a.r||a.g||a.b?n.props.onChange({r:a.r||n.props.rgb.r,g:a.g||n.props.rgb.g,b:a.b||n.props.rgb.b,source:"rgb"},i):a.a?(a.a<0?a.a=0:a.a>1&&(a.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(a.a*100)/100,source:"rgb"},i)):(a.h||a.s||a.l)&&(typeof a.s=="string"&&a.s.includes("%")&&(a.s=a.s.replace("%","")),typeof a.l=="string"&&a.l.includes("%")&&(a.l=a.l.replace("%","")),a.s==1?a.s=.01:a.l==1&&(a.l=.01),n.props.onChange({h:a.h||n.props.hsl.h,s:Number(xv(a.s)?n.props.hsl.s:a.s),l:Number(xv(a.l)?n.props.hsl.l:a.l),source:"hsl"},i))},n.showHighlight=function(a){a.currentTarget.style.background="#eee"},n.hideHighlight=function(a){a.currentTarget.style.background="transparent"},t.hsl.a!==1&&t.view==="hex"?n.state={view:"rgb"}:n.state={view:t.view},n}return JR(r,[{key:"render",value:function(){var n=this,a=Ye({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),i=void 0;return this.state.view==="hex"?i=_.createElement("div",{style:a.fields,className:"flexbox-fix"},_.createElement("div",{style:a.field},_.createElement(vr,{style:{input:a.input,label:a.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?i=_.createElement("div",{style:a.fields,className:"flexbox-fix"},_.createElement("div",{style:a.field},_.createElement(vr,{style:{input:a.input,label:a.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),_.createElement("div",{style:a.field},_.createElement(vr,{style:{input:a.input,label:a.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),_.createElement("div",{style:a.field},_.createElement(vr,{style:{input:a.input,label:a.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),_.createElement("div",{style:a.alpha},_.createElement(vr,{style:{input:a.input,label:a.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(i=_.createElement("div",{style:a.fields,className:"flexbox-fix"},_.createElement("div",{style:a.field},_.createElement(vr,{style:{input:a.input,label:a.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),_.createElement("div",{style:a.field},_.createElement(vr,{style:{input:a.input,label:a.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),_.createElement("div",{style:a.field},_.createElement(vr,{style:{input:a.input,label:a.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),_.createElement("div",{style:a.alpha},_.createElement(vr,{style:{input:a.input,label:a.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),_.createElement("div",{style:a.wrap,className:"flexbox-fix"},i,_.createElement("div",{style:a.toggle},_.createElement("div",{style:a.icon,onClick:this.toggleViews,ref:function(s){return n.icon=s}},_.createElement(KR,{style:a.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.hsl.a!==1&&a.view==="hex"?{view:"rgb"}:null}}]),r}(_.Component);Dy.defaultProps={view:"hex"};var Sv=function(){var r=Ye({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return _.createElement("div",{style:r.picker})},tP=function(){var r=Ye({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return _.createElement("div",{style:r.picker})},nf=function(r){var t=r.width,n=r.onChange,a=r.disableAlpha,i=r.rgb,o=r.hsl,s=r.hsv,u=r.hex,l=r.renderers,c=r.styles,f=c===void 0?{}:c,p=r.className,d=p===void 0?"":p,v=r.defaultView,m=Ye(Et({default:{picker:{width:t,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+i.r+", "+i.g+", "+i.b+", "+i.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},f),{disableAlpha:a});return _.createElement("div",{style:m.picker,className:"chrome-picker "+d},_.createElement("div",{style:m.saturation},_.createElement(fu,{style:m.Saturation,hsl:o,hsv:s,pointer:tP,onChange:n})),_.createElement("div",{style:m.body},_.createElement("div",{style:m.controls,className:"flexbox-fix"},_.createElement("div",{style:m.color},_.createElement("div",{style:m.swatch},_.createElement("div",{style:m.active}),_.createElement(yi,{renderers:l}))),_.createElement("div",{style:m.toggles},_.createElement("div",{style:m.hue},_.createElement(bi,{style:m.Hue,hsl:o,pointer:Sv,onChange:n})),_.createElement("div",{style:m.alpha},_.createElement(Uc,{style:m.Alpha,rgb:i,hsl:o,pointer:Sv,renderers:l,onChange:n})))),_.createElement(Dy,{rgb:i,hsl:o,hex:u,view:v,onChange:n,disableAlpha:a})))};nf.propTypes={width:Fe.oneOfType([Fe.string,Fe.number]),disableAlpha:Fe.bool,styles:Fe.object,defaultView:Fe.oneOf(["hex","rgb","hsl"])};nf.defaultProps={width:225,disableAlpha:!1,styles:{}};St(nf);var nP=function(r){var t=r.color,n=r.onClick,a=n===void 0?function(){}:n,i=r.onSwatchHover,o=r.active,s=Ye({default:{color:{background:t,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:Kc(t),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:o,"color-#FFFFFF":t==="#FFFFFF",transparent:t==="transparent"});return _.createElement(fa,{style:s.color,color:t,onClick:a,onHover:i,focusStyle:{boxShadow:"0 0 4px "+t}},_.createElement("div",{style:s.dot}))},aP=function(r){var t=r.hex,n=r.rgb,a=r.onChange,i=Ye({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),o=function(u,l){u.r||u.g||u.b?a({r:u.r||n.r,g:u.g||n.g,b:u.b||n.b,source:"rgb"},l):a({hex:u.hex,source:"hex"},l)};return _.createElement("div",{style:i.fields,className:"flexbox-fix"},_.createElement("div",{style:i.active}),_.createElement(vr,{style:{wrap:i.HEXwrap,input:i.HEXinput,label:i.HEXlabel},label:"hex",value:t,onChange:o}),_.createElement(vr,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"r",value:n.r,onChange:o}),_.createElement(vr,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"g",value:n.g,onChange:o}),_.createElement(vr,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"b",value:n.b,onChange:o}))},af=function(r){var t=r.onChange,n=r.onSwatchHover,a=r.colors,i=r.hex,o=r.rgb,s=r.styles,u=s===void 0?{}:s,l=r.className,c=l===void 0?"":l,f=Ye(Et({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},u)),p=function(v,m){v.hex?Hn(v.hex)&&t({hex:v.hex,source:"hex"},m):t(v,m)};return _.createElement(bo,{style:f.Compact,styles:u},_.createElement("div",{style:f.compact,className:"compact-picker "+c},_.createElement("div",null,pa(a,function(d){return _.createElement(nP,{key:d,color:d,active:d.toLowerCase()===i,onClick:p,onSwatchHover:n})}),_.createElement("div",{style:f.clear})),_.createElement(aP,{hex:i,rgb:o,onChange:p})))};af.propTypes={colors:Fe.arrayOf(Fe.string),styles:Fe.object};af.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}};St(af);var iP=function(r){var t=r.hover,n=r.color,a=r.onClick,i=r.onSwatchHover,o={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},s=Ye({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:o}},{hover:t});return _.createElement("div",{style:s.swatch},_.createElement(fa,{color:n,onClick:a,onHover:i,focusStyle:o}))};const oP=kc(iP);var of=function(r){var t=r.width,n=r.colors,a=r.onChange,i=r.onSwatchHover,o=r.triangle,s=r.styles,u=s===void 0?{}:s,l=r.className,c=l===void 0?"":l,f=Ye(Et({default:{card:{width:t,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},u),{"hide-triangle":o==="hide","top-left-triangle":o==="top-left","top-right-triangle":o==="top-right","bottom-left-triangle":o==="bottom-left","bottom-right-triangle":o==="bottom-right"}),p=function(v,m){return a({hex:v,source:"hex"},m)};return _.createElement("div",{style:f.card,className:"github-picker "+c},_.createElement("div",{style:f.triangleShadow}),_.createElement("div",{style:f.triangle}),pa(n,function(d){return _.createElement(oP,{color:d,key:d,onClick:p,onSwatchHover:i})}))};of.propTypes={width:Fe.oneOfType([Fe.string,Fe.number]),colors:Fe.arrayOf(Fe.string),triangle:Fe.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:Fe.object};of.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};St(of);var sP=function(r){var t=r.direction,n=Ye({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:t==="vertical"});return _.createElement("div",{style:n.picker})},uP=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},sf=function(r){var t=r.width,n=r.height,a=r.onChange,i=r.hsl,o=r.direction,s=r.pointer,u=r.styles,l=u===void 0?{}:u,c=r.className,f=c===void 0?"":c,p=Ye(Et({default:{picker:{position:"relative",width:t,height:n},hue:{radius:"2px"}}},l)),d=function(m){return a({a:1,h:m.h,l:.5,s:1})};return _.createElement("div",{style:p.picker,className:"hue-picker "+f},_.createElement(bi,uP({},p.hue,{hsl:i,pointer:s,onChange:d,direction:o})))};sf.propTypes={styles:Fe.object};sf.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:sP,styles:{}};St(sf);var lP=function(r){var t=r.onChange,n=r.hex,a=r.rgb,i=r.styles,o=i===void 0?{}:i,s=r.className,u=s===void 0?"":s,l=Ye(Et({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},o)),c=function(p,d){p.hex?Hn(p.hex)&&t({hex:p.hex,source:"hex"},d):(p.r||p.g||p.b)&&t({r:p.r||a.r,g:p.g||a.g,b:p.b||a.b,source:"rgb"},d)};return _.createElement(bo,{styles:o},_.createElement("div",{style:l.material,className:"material-picker "+u},_.createElement(vr,{style:{wrap:l.HEXwrap,input:l.HEXinput,label:l.HEXlabel},label:"hex",value:n,onChange:c}),_.createElement("div",{style:l.split,className:"flexbox-fix"},_.createElement("div",{style:l.third},_.createElement(vr,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"r",value:a.r,onChange:c})),_.createElement("div",{style:l.third},_.createElement(vr,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"g",value:a.g,onChange:c})),_.createElement("div",{style:l.third},_.createElement(vr,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"b",value:a.b,onChange:c})))))};St(lP);var cP=function(r){var t=r.onChange,n=r.rgb,a=r.hsv,i=r.hex,o=Ye({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),s=function(l,c){l["#"]?Hn(l["#"])&&t({hex:l["#"],source:"hex"},c):l.r||l.g||l.b?t({r:l.r||n.r,g:l.g||n.g,b:l.b||n.b,source:"rgb"},c):(l.h||l.s||l.v)&&t({h:l.h||a.h,s:l.s||a.s,v:l.v||a.v,source:"hsv"},c)};return _.createElement("div",{style:o.fields},_.createElement(vr,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"h",value:Math.round(a.h),onChange:s}),_.createElement(vr,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"s",value:Math.round(a.s*100),onChange:s}),_.createElement(vr,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"v",value:Math.round(a.v*100),onChange:s}),_.createElement("div",{style:o.divider}),_.createElement(vr,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"r",value:n.r,onChange:s}),_.createElement(vr,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"g",value:n.g,onChange:s}),_.createElement(vr,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"b",value:n.b,onChange:s}),_.createElement("div",{style:o.divider}),_.createElement(vr,{style:{wrap:o.HEXwrap,input:o.HEXinput,label:o.HEXlabel},label:"#",value:i.replace("#",""),onChange:s}),_.createElement("div",{style:o.fieldSymbols},_.createElement("div",{style:o.symbol},"°"),_.createElement("div",{style:o.symbol},"%"),_.createElement("div",{style:o.symbol},"%")))},fP=function(r){var t=r.hsl,n=Ye({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":t.l>.5});return _.createElement("div",{style:n.picker})},pP=function(){var r=Ye({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return _.createElement("div",{style:r.pointer},_.createElement("div",{style:r.left},_.createElement("div",{style:r.leftInside})),_.createElement("div",{style:r.right},_.createElement("div",{style:r.rightInside})))},Av=function(r){var t=r.onClick,n=r.label,a=r.children,i=r.active,o=Ye({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:i});return _.createElement("div",{style:o.button,onClick:t},n||a)},dP=function(r){var t=r.rgb,n=r.currentColor,a=Ye({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return _.createElement("div",null,_.createElement("div",{style:a.label},"new"),_.createElement("div",{style:a.swatches},_.createElement("div",{style:a.new}),_.createElement("div",{style:a.current})),_.createElement("div",{style:a.label},"current"))},vP=function(){function e(r,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,a.key,a)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}();function mP(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function hP(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:e}function gP(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}var uf=function(e){gP(r,e);function r(t){mP(this,r);var n=hP(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return n.state={currentColor:t.hex},n}return vP(r,[{key:"render",value:function(){var n=this.props,a=n.styles,i=a===void 0?{}:a,o=n.className,s=o===void 0?"":o,u=Ye(Et({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},i));return _.createElement("div",{style:u.picker,className:"photoshop-picker "+s},_.createElement("div",{style:u.head},this.props.header),_.createElement("div",{style:u.body,className:"flexbox-fix"},_.createElement("div",{style:u.saturation},_.createElement(fu,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:fP,onChange:this.props.onChange})),_.createElement("div",{style:u.hue},_.createElement(bi,{direction:"vertical",hsl:this.props.hsl,pointer:pP,onChange:this.props.onChange})),_.createElement("div",{style:u.controls},_.createElement("div",{style:u.top,className:"flexbox-fix"},_.createElement("div",{style:u.previews},_.createElement(dP,{rgb:this.props.rgb,currentColor:this.state.currentColor})),_.createElement("div",{style:u.actions},_.createElement(Av,{label:"OK",onClick:this.props.onAccept,active:!0}),_.createElement(Av,{label:"Cancel",onClick:this.props.onCancel}),_.createElement(cP,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),r}(_.Component);uf.propTypes={header:Fe.string,styles:Fe.object};uf.defaultProps={header:"Color Picker",styles:{}};St(uf);var yP=function(r){var t=r.onChange,n=r.rgb,a=r.hsl,i=r.hex,o=r.disableAlpha,s=Ye({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:o}),u=function(c,f){c.hex?Hn(c.hex)&&t({hex:c.hex,source:"hex"},f):c.r||c.g||c.b?t({r:c.r||n.r,g:c.g||n.g,b:c.b||n.b,a:n.a,source:"rgb"},f):c.a&&(c.a<0?c.a=0:c.a>100&&(c.a=100),c.a/=100,t({h:a.h,s:a.s,l:a.l,a:c.a,source:"rgb"},f))};return _.createElement("div",{style:s.fields,className:"flexbox-fix"},_.createElement("div",{style:s.double},_.createElement(vr,{style:{input:s.input,label:s.label},label:"hex",value:i.replace("#",""),onChange:u})),_.createElement("div",{style:s.single},_.createElement(vr,{style:{input:s.input,label:s.label},label:"r",value:n.r,onChange:u,dragLabel:"true",dragMax:"255"})),_.createElement("div",{style:s.single},_.createElement(vr,{style:{input:s.input,label:s.label},label:"g",value:n.g,onChange:u,dragLabel:"true",dragMax:"255"})),_.createElement("div",{style:s.single},_.createElement(vr,{style:{input:s.input,label:s.label},label:"b",value:n.b,onChange:u,dragLabel:"true",dragMax:"255"})),_.createElement("div",{style:s.alpha},_.createElement(vr,{style:{input:s.input,label:s.label},label:"a",value:Math.round(n.a*100),onChange:u,dragLabel:"true",dragMax:"100"})))},bP=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Cy=function(r){var t=r.colors,n=r.onClick,a=n===void 0?function(){}:n,i=r.onSwatchHover,o=Ye({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!t||!t.length}),s=function(l,c){a({hex:l,source:"hex"},c)};return _.createElement("div",{style:o.colors,className:"flexbox-fix"},t.map(function(u){var l=typeof u=="string"?{color:u}:u,c=""+l.color+(l.title||"");return _.createElement("div",{key:c,style:o.swatchWrap},_.createElement(fa,bP({},l,{style:o.swatch,onClick:s,onHover:i,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+l.color}})))}))};Cy.propTypes={colors:Fe.arrayOf(Fe.oneOfType([Fe.string,Fe.shape({color:Fe.string,title:Fe.string})])).isRequired};var xP=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},lf=function(r){var t=r.width,n=r.rgb,a=r.hex,i=r.hsv,o=r.hsl,s=r.onChange,u=r.onSwatchHover,l=r.disableAlpha,c=r.presetColors,f=r.renderers,p=r.styles,d=p===void 0?{}:p,v=r.className,m=v===void 0?"":v,g=Ye(Et({default:xP({picker:{width:t,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},d),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},d),{disableAlpha:l});return _.createElement("div",{style:g.picker,className:"sketch-picker "+m},_.createElement("div",{style:g.saturation},_.createElement(fu,{style:g.Saturation,hsl:o,hsv:i,onChange:s})),_.createElement("div",{style:g.controls,className:"flexbox-fix"},_.createElement("div",{style:g.sliders},_.createElement("div",{style:g.hue},_.createElement(bi,{style:g.Hue,hsl:o,onChange:s})),_.createElement("div",{style:g.alpha},_.createElement(Uc,{style:g.Alpha,rgb:n,hsl:o,renderers:f,onChange:s}))),_.createElement("div",{style:g.color},_.createElement(yi,null),_.createElement("div",{style:g.activeColor}))),_.createElement(yP,{rgb:n,hsl:o,hex:a,onChange:s,disableAlpha:l}),_.createElement(Cy,{colors:c,onClick:s,onSwatchHover:u}))};lf.propTypes={disableAlpha:Fe.bool,width:Fe.oneOfType([Fe.string,Fe.number]),styles:Fe.object};lf.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]};const wP=St(lf);var Vi=function(r){var t=r.hsl,n=r.offset,a=r.onClick,i=a===void 0?function(){}:a,o=r.active,s=r.first,u=r.last,l=Ye({default:{swatch:{height:"12px",background:"hsl("+t.h+", 50%, "+n*100+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:o,first:s,last:u}),c=function(p){return i({h:t.h,s:.5,l:n,source:"hsl"},p)};return _.createElement("div",{style:l.swatch,onClick:c})},EP=function(r){var t=r.onClick,n=r.hsl,a=Ye({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),i=.1;return _.createElement("div",{style:a.swatches},_.createElement("div",{style:a.swatch},_.createElement(Vi,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<i&&Math.abs(n.s-.5)<i,onClick:t,first:!0})),_.createElement("div",{style:a.swatch},_.createElement(Vi,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<i&&Math.abs(n.s-.5)<i,onClick:t})),_.createElement("div",{style:a.swatch},_.createElement(Vi,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<i&&Math.abs(n.s-.5)<i,onClick:t})),_.createElement("div",{style:a.swatch},_.createElement(Vi,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<i&&Math.abs(n.s-.5)<i,onClick:t})),_.createElement("div",{style:a.swatch},_.createElement(Vi,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<i&&Math.abs(n.s-.5)<i,onClick:t,last:!0})),_.createElement("div",{style:a.clear}))},SP=function(){var r=Ye({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return _.createElement("div",{style:r.picker})},cf=function(r){var t=r.hsl,n=r.onChange,a=r.pointer,i=r.styles,o=i===void 0?{}:i,s=r.className,u=s===void 0?"":s,l=Ye(Et({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},o));return _.createElement("div",{style:l.wrap||{},className:"slider-picker "+u},_.createElement("div",{style:l.hue},_.createElement(bi,{style:l.Hue,hsl:t,pointer:a,onChange:n})),_.createElement("div",{style:l.swatches},_.createElement(EP,{hsl:t,onClick:n})))};cf.propTypes={styles:Fe.object};cf.defaultProps={pointer:SP,styles:{}};St(cf);var Ny={};Object.defineProperty(Ny,"__esModule",{value:!0});var Dv=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},AP=_,Cv=DP(AP);function DP(e){return e&&e.__esModule?e:{default:e}}function CP(e,r){var t={};for(var n in e)r.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}var Vo=24,NP=Ny.default=function(e){var r=e.fill,t=r===void 0?"currentColor":r,n=e.width,a=n===void 0?Vo:n,i=e.height,o=i===void 0?Vo:i,s=e.style,u=s===void 0?{}:s,l=CP(e,["fill","width","height","style"]);return Cv.default.createElement("svg",Dv({viewBox:"0 0 "+Vo+" "+Vo,style:Dv({fill:t,width:a,height:o},u)},l),Cv.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},MP=function(r){var t=r.color,n=r.onClick,a=n===void 0?function(){}:n,i=r.onSwatchHover,o=r.first,s=r.last,u=r.active,l=Ye({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:t,marginBottom:"1px"},check:{color:Kc(t),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:o,last:s,active:u,"color-#FFFFFF":t==="#FFFFFF",transparent:t==="transparent"});return _.createElement(fa,{color:t,style:l.color,onClick:a,onHover:i,focusStyle:{boxShadow:"0 0 4px "+t}},_.createElement("div",{style:l.check},_.createElement(NP,null)))},TP=function(r){var t=r.onClick,n=r.onSwatchHover,a=r.group,i=r.active,o=Ye({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return _.createElement("div",{style:o.group},pa(a,function(s,u){return _.createElement(MP,{key:s,color:s,active:s.toLowerCase()===i,first:u===0,last:u===a.length-1,onClick:t,onSwatchHover:n})}))},ff=function(r){var t=r.width,n=r.height,a=r.onChange,i=r.onSwatchHover,o=r.colors,s=r.hex,u=r.styles,l=u===void 0?{}:u,c=r.className,f=c===void 0?"":c,p=Ye(Et({default:{picker:{width:t,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},l)),d=function(m,g){return a({hex:m,source:"hex"},g)};return _.createElement("div",{style:p.picker,className:"swatches-picker "+f},_.createElement(bo,null,_.createElement("div",{style:p.overflow},_.createElement("div",{style:p.body},pa(o,function(v){return _.createElement(TP,{key:v.toString(),group:v,active:s,onClick:d,onSwatchHover:i})}),_.createElement("div",{style:p.clear})))))};ff.propTypes={width:Fe.oneOfType([Fe.string,Fe.number]),height:Fe.oneOfType([Fe.string,Fe.number]),colors:Fe.arrayOf(Fe.arrayOf(Fe.string)),styles:Fe.object};ff.defaultProps={width:320,height:240,colors:[[_a[900],_a[700],_a[500],_a[300],_a[100]],[$a[900],$a[700],$a[500],$a[300],$a[100]],[Fa[900],Fa[700],Fa[500],Fa[300],Fa[100]],[Ba[900],Ba[700],Ba[500],Ba[300],Ba[100]],[Ra[900],Ra[700],Ra[500],Ra[300],Ra[100]],[Pa[900],Pa[700],Pa[500],Pa[300],Pa[100]],[za[900],za[700],za[500],za[300],za[100]],[Ia[900],Ia[700],Ia[500],Ia[300],Ia[100]],[La[900],La[700],La[500],La[300],La[100]],["#194D33",Ki[700],Ki[500],Ki[300],Ki[100]],[qa[900],qa[700],qa[500],qa[300],qa[100]],[ka[900],ka[700],ka[500],ka[300],ka[100]],[Ua[900],Ua[700],Ua[500],Ua[300],Ua[100]],[Ha[900],Ha[700],Ha[500],Ha[300],Ha[100]],[ja[900],ja[700],ja[500],ja[300],ja[100]],[Va[900],Va[700],Va[500],Va[300],Va[100]],[Ga[900],Ga[700],Ga[500],Ga[300],Ga[100]],[Wa[900],Wa[700],Wa[500],Wa[300],Wa[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};St(ff);var pf=function(r){var t=r.onChange,n=r.onSwatchHover,a=r.hex,i=r.colors,o=r.width,s=r.triangle,u=r.styles,l=u===void 0?{}:u,c=r.className,f=c===void 0?"":c,p=Ye(Et({default:{card:{width:o,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},l),{"hide-triangle":s==="hide","top-left-triangle":s==="top-left","top-right-triangle":s==="top-right"}),d=function(m,g){Hn(m)&&t({hex:m,source:"hex"},g)};return _.createElement("div",{style:p.card,className:"twitter-picker "+f},_.createElement("div",{style:p.triangleShadow}),_.createElement("div",{style:p.triangle}),_.createElement("div",{style:p.body},pa(i,function(v,m){return _.createElement(fa,{key:m,color:v,hex:v,style:p.swatch,onClick:d,onHover:n,focusStyle:{boxShadow:"0 0 4px "+v}})}),_.createElement("div",{style:p.hash},"#"),_.createElement(vr,{label:null,style:{input:p.input},value:a.replace("#",""),onChange:d}),_.createElement("div",{style:p.clear})))};pf.propTypes={width:Fe.oneOfType([Fe.string,Fe.number]),triangle:Fe.oneOf(["hide","top-left","top-right"]),colors:Fe.arrayOf(Fe.string),styles:Fe.object};pf.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};St(pf);var df=function(r){var t=Ye({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(r.hsl.h)+", "+Math.round(r.hsl.s*100)+"%, "+Math.round(r.hsl.l*100)+"%)"}}});return _.createElement("div",{style:t.picker})};df.propTypes={hsl:Fe.shape({h:Fe.number,s:Fe.number,l:Fe.number,a:Fe.number})};df.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var vf=function(r){var t=Ye({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(r.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return _.createElement("div",{style:t.picker})};vf.propTypes={hsl:Fe.shape({h:Fe.number,s:Fe.number,l:Fe.number,a:Fe.number})};vf.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var OP=function(r){var t=r.onChange,n=r.rgb,a=r.hsl,i=r.hex,o=r.hsv,s=function(d,v){if(d.hex)Hn(d.hex)&&t({hex:d.hex,source:"hex"},v);else if(d.rgb){var m=d.rgb.split(",");ml(d.rgb,"rgb")&&t({r:m[0],g:m[1],b:m[2],a:1,source:"rgb"},v)}else if(d.hsv){var g=d.hsv.split(",");ml(d.hsv,"hsv")&&(g[2]=g[2].replace("%",""),g[1]=g[1].replace("%",""),g[0]=g[0].replace("°",""),g[1]==1?g[1]=.01:g[2]==1&&(g[2]=.01),t({h:Number(g[0]),s:Number(g[1]),v:Number(g[2]),source:"hsv"},v))}else if(d.hsl){var y=d.hsl.split(",");ml(d.hsl,"hsl")&&(y[2]=y[2].replace("%",""),y[1]=y[1].replace("%",""),y[0]=y[0].replace("°",""),f[1]==1?f[1]=.01:f[2]==1&&(f[2]=.01),t({h:Number(y[0]),s:Number(y[1]),v:Number(y[2]),source:"hsl"},v))}},u=Ye({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),l=n.r+", "+n.g+", "+n.b,c=Math.round(a.h)+"°, "+Math.round(a.s*100)+"%, "+Math.round(a.l*100)+"%",f=Math.round(o.h)+"°, "+Math.round(o.s*100)+"%, "+Math.round(o.v*100)+"%";return _.createElement("div",{style:u.wrap,className:"flexbox-fix"},_.createElement("div",{style:u.fields},_.createElement("div",{style:u.double},_.createElement(vr,{style:{input:u.input,label:u.label},label:"hex",value:i,onChange:s})),_.createElement("div",{style:u.column},_.createElement("div",{style:u.single},_.createElement(vr,{style:{input:u.input2,label:u.label2},label:"rgb",value:l,onChange:s})),_.createElement("div",{style:u.single},_.createElement(vr,{style:{input:u.input2,label:u.label2},label:"hsv",value:f,onChange:s})),_.createElement("div",{style:u.single},_.createElement(vr,{style:{input:u.input2,label:u.label2},label:"hsl",value:c,onChange:s})))))},mf=function(r){var t=r.width,n=r.onChange,a=r.rgb,i=r.hsl,o=r.hsv,s=r.hex,u=r.header,l=r.styles,c=l===void 0?{}:l,f=r.className,p=f===void 0?"":f,d=Ye(Et({default:{picker:{width:t,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+a.r+", "+a.g+", "+a.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},c));return _.createElement("div",{style:d.picker,className:"google-picker "+p},_.createElement("div",{style:d.head},u),_.createElement("div",{style:d.swatch}),_.createElement("div",{style:d.saturation},_.createElement(fu,{hsl:i,hsv:o,pointer:df,onChange:n})),_.createElement("div",{style:d.body},_.createElement("div",{style:d.controls,className:"flexbox-fix"},_.createElement("div",{style:d.hue},_.createElement(bi,{style:d.Hue,hsl:i,radius:"4px",pointer:vf,onChange:n}))),_.createElement(OP,{rgb:a,hsl:i,hex:s,hsv:o,onChange:n})))};mf.propTypes={width:Fe.oneOfType([Fe.string,Fe.number]),styles:Fe.object,header:Fe.string};mf.defaultProps={width:652,styles:{},header:"Color picker"};St(mf);const _P=e=>{const{initialVisible:r=!1,onVisibleChange:t}=e??{},[n,a]=_.useState(r);_.useEffect(()=>t==null?void 0:t(n),[n,t]);const i=_.useCallback(u=>a(l=>typeof u=="boolean"?u:!l),[a,t]),o=_.useCallback(()=>i(!0),[i]),s=_.useCallback(()=>i(!1),[i]);return{visible:n,open:o,close:s,toggle:i}},da=(e,r,t)=>{const n=_.useRef();return n.current==null?n.current={deps:t,value:e()}:r(n.current.deps,t)||(n.current={deps:t,value:e()}),n.current.value},My=([e],[r])=>ye.E.primitiveArrays(e,r)===0,$P=e=>{const r=_.useRef();return r.current==null?r.current=e:ye._.equal(r.current,e)||(r.current=e),r.current},FP=(e,r)=>{_.useEffect(()=>{const t=e();return()=>{t.then(n=>n==null?void 0:n()).catch(n=>console.error(n))}},r)},Ty=(e,r,t)=>{const n=da(()=>t,r,t);_.useEffect(e,[n])},xo=e=>{const r=_.useRef(ye.executeInitialSetter(e)),t=_.useCallback(n=>{r.current=ye.executeSetter(n,r.current)},[]);return[r,t]},kt=e=>{const r=_.useRef(e);return r.current=e,r},Gl=(...e)=>_.useCallback(r=>e.forEach(t=>{t!=null&&(typeof t=="function"?t(r):t.current=r)},r),[]),ri=e=>{const r=_.useRef(null),[t,n]=_.useState(()=>{const i=ye.executeInitialSetter(e);return r.current=i,i}),a=_.useCallback(i=>{n(o=>(r.current=ye.executeSetter(i,o),r.current))},[n]);return[t,a,r]},hf=e=>{const r=_.useRef(),t=r.current;return r.current=e,t},gf=({ref:e,onClickOutside:r,exclude:t})=>{const n=kt(t),a=_.useCallback(i=>{const o=e.current,s=G.To.construct(window.document.documentElement),u=G.q.construct(i);o==null||o.contains(i.target)||G.To.contains(o,u)||!G.To.contains(s,u)||n.current!=null&&n.current.some(l=>{var c;return(c=l.current)==null?void 0:c.contains(i.target)})||r()},[r]);_.useEffect(()=>(document.addEventListener("mousedown",a),()=>document.removeEventListener("mousedown",a)),[a])},Oy=(e,r,t)=>_.useCallback(ye.o$1(e,r),[r,...t]),Wl=(e,r={})=>{const{triggers:t=[],debounce:n=0,enabled:a=!0}=r,i=_.useRef(G.To.ZERO),o=_.useRef(null),s=_.useRef(null),u=da(()=>t,My,[t]),l=_.useCallback(c=>{s.current!=null&&s.current.disconnect(),i.current==null&&(i.current=G.To.ZERO);const f=ye.o$1(()=>{const p=G.To.construct(c);BP(u,i.current,p)&&(i.current=p,e(p,o.current))},n);s.current=new ResizeObserver(f),s.current.observe(c)},[u,e,n]);return _.useEffect(()=>(o.current!=null&&a&&l(o.current),()=>{var c;return(c=s.current)==null?void 0:c.disconnect()}),[l,a]),_.useCallback(c=>{o.current=c,c!=null&&a&&l(c)},[l])},BP=(e,r,t)=>e.length===0?!G.To.equals(t,r):!!(e.includes("x")&&G.To.width(r)!==G.To.width(t)||e.includes("y")&&G.To.height(r)!==G.To.height(t)),_y=({transforms:e=[]})=>{const[r,t]=_.useState(e),n=_.useCallback((o,s,u=0)=>t(l=>{const c=l.filter(f=>f.key!==o);return c.push({key:o,transform:s,priority:u}),c.sort((f,p)=>p.priority-f.priority),c}),[t]),a=_.useCallback(o=>t(s=>s.filter(u=>u.key!==o)),[n]);return{transform:_.useCallback(o=>r.reduce((s,u)=>u.transform(s),{...o,transformed:!1}),[r]),setTransform:n,deleteTransform:a}},vu=["MouseLeft","MouseMiddle","MouseRight"],RP=Ft.z.enum(vu),yf=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],$y=new Set(yf),Fy=[...vu,...yf,"Backspace","Tab","Enter","Shift","Control","Alt","CapsLock","Escape","Space","PageUp","PageDown","End","Home","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Insert","Delete","ContextMenu","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12","F13","F14","F15","F16","F17","F18","F19","F20","F21","F22","F23","F24","NumLock","ScrollLock","AudioVolumeMute","AudioVolumeDown","AudioVolumeUp","AudioTrackNext","AudioTrackPrevious","AudioStop","AudioPlay","AudioPause","AudioRewind","AudioForward","AudioRepeat","AudioRandomPlay","AudioSelect","LaunchMail","LaunchApp2","LaunchApp1","SelectTask","LaunchScreenSaver","BrowserSearch","BrowserHome","BrowserBack","BrowserForward","BrowserStop","BrowserRefresh","BrowserFavorites","ZoomToggle","Clear","Power","Eject"],By=Ft.z.enum(Fy),PP=Ft.z.array(By),ti=e=>e.type.includes("key")?Ry(e):Py(e.button),zP=["Control","Alt","Shift"],Ry=e=>{if(["Digit","Key"].some(t=>e.code.startsWith(t)))return e.code.slice(-1);if(e.code.includes("Meta"))return"Control";const r=zP.find(t=>e.code.includes(t));return r??e.code},IP={0:"MouseLeft",1:"MouseMiddle",2:"MouseRight"},Py=e=>IP[e]??"MouseLeft",ra=(e,r,t=!1)=>Ns(e,r,t).length>0,LP=(e,r)=>t=>{if(ra(e,[[ti(t)]]))return r(t)},Ns=(e,r,t=!1)=>{const n=Iy(t);return e.filter(a=>r.some(i=>n(a,i)===ye.E.EQUAL))},bf=(e,r)=>e.filter(t=>!r.some(n=>ye.E.unorderedPrimitiveArrays(t,n)===ye.E.EQUAL)),zy=(e,r)=>{const t=Iy(!1),n=e.filter(i=>!r.some(o=>t(i,o)===ye.E.EQUAL)),a=r.filter(i=>!e.some(o=>t(i,o)===ye.E.EQUAL));return[n,a]},Iy=e=>e?qP:ye.E.unorderedPrimitiveArrays,qP=(e,r)=>e.every(t=>r.includes(t))?ye.E.EQUAL:ye.E.LESS_THAN,kP=(e,r,t=!1)=>{const o=Object.entries(e).filter(([s])=>s!=="defaultMode").map(([s,u])=>u.map(l=>[s,l])).flat().sort(([,s],[,u])=>u.length-s.length).find(([,s])=>ra([s],r,t));return o!=null?o[0]:e.defaultMode},Ly=([e],[r])=>{if(e==null&&r==null)return!0;if(e==null||r==null||e.defaultMode!==r.defaultMode)return!1;const t=Object.keys(e),n=Object.keys(r);return t.length!==n.length||e.defaultMode!==r.defaultMode?!1:t.every(a=>ye.E.unorderedPrimitiveArrays(e[a],r[a])===0)},qy=e=>Object.entries(e).filter(([t])=>t!=="defaultMode").map(([,t])=>t).flat(),UP=e=>da(()=>qy(e),Ly,[e]),HP=e=>e.map(r=>r.filter(t=>!t.startsWith("Mouse"))).filter(r=>r.length>0),jP={listen:()=>()=>{}},ky=_.createContext(jP),Uy=()=>_.useContext(ky),VP={next:[],prev:[],last:new ye.m(0)},Hy=["CapsLock"],GP=(e,r)=>!!(Hy.includes(e)||r.target instanceof HTMLInputElement&&$y.has(e)||r.target instanceof HTMLElement&&r.target.matches("[contenteditable]")),WP=({children:e,preventDefaultOn:r})=>{const t=_.useRef(G.q.ZERO),n=_.useCallback(f=>{t.current=G.q.construct(f)},[]),a=_.useRef(new Map),[,i]=xo({...VP}),o=_.useCallback((f,p)=>{const d=f.next.length>0?[f.next]:[],v=f.prev.length>0?[f.prev]:[],m={target:p,next:d,prev:v,cursor:t.current};a.current.forEach((g,y)=>y(m))},[]),s=_.useCallback(f=>{const p=ti(f);["ArrowUp","ArrowDown"].includes(p)&&f.preventDefault(),!GP(p,f)&&i(d=>{const v=[...d.next,p];if(d.next.includes(p))return d;d.prev.includes(p)&&ye.m.since(d.last).valueOf()<ye.w.milliseconds(300).valueOf()&&v.push(p);const m={next:v,prev:d.next,last:new ye.m};return Nv(v,r)&&f.preventDefault(),o(m,f.target),m})},[]),u=_.useCallback(f=>{const p=ti(f);["ArrowUp","ArrowDown"].includes(p)&&f.preventDefault(),!Hy.includes(p)&&i(d=>{const v=d.next.filter(y=>y!==p&&!vu.includes(y)),m=d.next,g={...d,next:v,prev:m};return Nv(v,r)&&f.preventDefault(),o(g,f.target),g})},[]),l=_.useCallback(f=>{i(p=>{const d=p.next,v={...p,next:[],prev:d};return o(v,f.target),v})},[]);_.useEffect(()=>(window.addEventListener("keydown",s),window.addEventListener("keyup",u),window.addEventListener("mousemove",n),window.addEventListener("mousedown",s),window.addEventListener("mouseup",u),window.addEventListener("dragend",u),window.addEventListener("drop",u),window.addEventListener("blur",l),()=>{window.removeEventListener("keydown",s),window.removeEventListener("keyup",u),window.removeEventListener("mousemove",n),window.removeEventListener("mousedown",s),window.removeEventListener("mouseup",u),window.removeEventListener("dragend",u),window.removeEventListener("drop",u),window.removeEventListener("blur",l)}),[s,u,n]);const c=_.useCallback(f=>(a.current.set(f,null),()=>a.current.delete(f)),[]);return Oe.jsxRuntimeExports.jsx(ky.Provider,{value:{listen:c},children:e})},Nv=(e,r)=>r!=null&&ra([e],r),wi=({triggers:e,callback:r,region:t,loose:n})=>{const{listen:a}=Uy(),i=da(()=>e,([o],[s])=>o==null&&s==null?!0:o==null||s==null?!1:ye.E.primitiveArrays(o.flat(),s.flat())===ye.E.EQUAL,[e]);_.useEffect(()=>{if(!(i==null||i.length===0))return a(o=>{const s=Ns(i,o.prev,n),u=Ns(i,o.next,n),l=zy(u,s);let c=l[0];const f=l[1];if(c.length===0&&f.length===0)return;c=ZP(o.target,o.cursor,c,t);const p={target:o.target,cursor:o.cursor};c.length>0&&(r==null||r({...p,stage:"start",triggers:c})),f.length>0&&(r==null||r({...p,stage:"end",triggers:f}))})},[r,i,a,n,t])},ZP=(e,r,t,n)=>{if(n==null)return t;if(n.current==null)return[];const a=G.To.construct(n.current);return t.filter(i=>i.some(o=>o.includes("Mouse"))?G.To.contains(a,r)&&e===n.current:G.To.contains(a,r))},Zl=({triggers:e,loose:r})=>{const[t,n]=xo({triggers:[],held:!1});return wi({triggers:e,callback:_.useCallback(a=>{n(i=>{let o=[];return a.stage==="start"?o=ye.n([...i.triggers,...a.triggers]):o=bf(i.triggers,a.triggers),{triggers:o,held:o.length>0}})},[]),loose:r}),t},YP=({triggers:e,loose:r})=>{const[t,n]=_.useState({triggers:[],held:!1});return wi({triggers:e,callback:_.useCallback(a=>{n(i=>{let o=[];return a.stage==="start"?o=ye.n([...i.triggers,...a.triggers]):o=bf(i.triggers,a.triggers),{triggers:o,held:o.length>0}})},[]),loose:r}),t},XP=({level:e="p",color:r,className:t,style:n,children:a,noWrap:i=!1,shade:o,weight:s,...u},l)=>Oe.jsxRuntimeExports.jsx(Zt.Element,{el:e,ref:l,style:{color:xf(r,o),fontWeight:s,...n},className:G.CSS(G.CSS.B("text"),G.CSS.BM("text",e),G.CSS.noWrap(i),t),...u,children:a}),wn=_.forwardRef(XP),xf=(e,r)=>{if(e!=null)return typeof e=="boolean"?void 0:G.cssString(e);if(r!=null)return`var(--pluto-gray-l${r})`},jy=({format:e="dateTime",suppliedTZ:r="UTC",displayTZ:t="local",children:n,...a},i)=>Oe.jsxRuntimeExports.jsx(wn,{ref:i,...a,children:new ye.m(n,r).fString(e,t)}),KP=_.forwardRef(jy),JP=["Escape","Enter"],QP=G.CSS.BM("text","editable"),ez=10,Vy="renamed",Gy="escaped",Wy=(e,r)=>{let t=0;const n=()=>{t++;const a=document.getElementById(e);if(a==null||!a.classList.contains(QP)){if(t<ez)setTimeout(()=>n(),100);else throw new Error(`Could not find element with id ${e}`);return}a.setAttribute("contenteditable","true"),r!=null&&(a.addEventListener(Vy,i=>r(Yl(i.target),!0)),a.addEventListener(Gy,i=>r(Yl(i.target),!1)))};n()},rz=e=>new Promise(r=>{Wy(e,(n,a)=>r([n,a]))}),Yl=e=>e.innerText.trim(),Zy=({onChange:e,value:r,useEditableState:t=_.useState,allowDoubleClick:n=!0,onDoubleClick:a,...i})=>{const[o,s]=t(!1),u=_.useRef(null),l=p=>{n&&s(!0),a==null||a(p)},c=(p,d=!1)=>{const v=Yl(p);d||v.length===0?(p.innerText=r,p.dispatchEvent(new Event(Gy))):(e==null||e(v),p.dispatchEvent(new Event(Vy)))},f=p=>{if(!o||!JP.includes(p.key)||u.current==null)return;p.stopPropagation(),p.preventDefault();const d=u.current;u.current!=null&&(s(!1),c(d,p.key==="Escape"),d.blur())};return _.useLayoutEffect(()=>{if(u.current==null||!o)return;const{current:p}=u;p.focus();const d=document.createRange();d.selectNodeContents(p);const v=window.getSelection();v==null||v.removeAllRanges(),v==null||v.addRange(d)},[o]),u.current!==null&&!o&&(u.current.innerHTML=r),_.useEffect(()=>{new MutationObserver(d=>{d.forEach(v=>{if(v.attributeName!=="contenteditable")return;v.target.contentEditable==="true"&&s(!0)})}).observe(u.current,{attributes:!0})},[]),Oe.jsxRuntimeExports.jsx(wn,{ref:u,className:G.CSS.BM("text","editable"),onBlur:()=>{s(!1);const p=u.current;p!=null&&c(p)},onKeyDown:f,onKeyUp:p=>{p.stopPropagation(),p.preventDefault()},onDoubleClick:l,contentEditable:o,suppressContentEditableWarning:!0,...i,children:r})},tz=({onChange:e,disabled:r=!1,value:t,allowDoubleClick:n,...a})=>r||e==null||typeof e=="boolean"?Oe.jsxRuntimeExports.jsx(wn,{...a,children:t}):Oe.jsxRuntimeExports.jsx(Oe.jsxRuntimeExports.Fragment,{children:Oe.jsxRuntimeExports.jsx(Zy,{allowDoubleClick:n,onChange:e,value:t,...a})}),nz=({href:e,download:r,target:t,rel:n,...a},i)=>Oe.jsxRuntimeExports.jsx("a",{className:G.CSS.B("text-link"),ref:i,href:e,download:r,target:t,rel:n,children:Oe.jsxRuntimeExports.jsx(wn,{className:G.CSS.BE("text-link","text"),...a})}),az=_.forwardRef(nz),Yy=e=>e==null?!0:Array.isArray(e)||typeof e=="string"?e.length===0:!1,iz=[],oz=[],Xy=({data:e=iz,value:r=oz,allowMultiple:t,allowNone:n,replaceOnSingle:a=!1,autoSelectOnNone:i=!1,onChange:o})=>{const s=_.useRef(null),u=Zl({triggers:[["Shift"]],loose:!0}),l=Zl({triggers:[["Control"]],loose:!0}),c=kt(r),f=kt(e),p=_.useCallback((m,g)=>{if(c.current=m,m.length===0&&n!==!1)return o(t!==!1?[]:null,g);if(t!==!1)return o(m,g);if(m.length>0)return o(m[0],g)},[o,n,t]);_.useEffect(()=>{let m=f.current;if(Array.isArray(m)||(m=m()),Yy(r)&&n===!1&&m.length>0&&i){const g=m[0];s.current=g.key,p([g.key],{entries:[g],clicked:g.key,clickedIndex:0})}},[p,f,r,n]);const d=_.useCallback(m=>{const g=s.current;let y=f.current;Array.isArray(y)||(y=y());let E=[];const h=ye.A(c.current).filter(x=>x!=null);if(t===!1)E=h.includes(m)?[]:[m];else if(l.current.held&&a)h.includes(m)?E=h.filter(x=>x!==m):E=[...h,m];else if(u.current.held&&g!==null){const[x,b]=[y.findIndex(A=>A.key===m),y.findIndex(A=>A.key===g)].sort((A,S)=>A-S),D=y.slice(x,b+1).map(({key:A})=>A);D.slice(1,D.length-1).every(A=>h.includes(A))&&h.includes(m)?E=h.filter(A=>!D.includes(A)):E=[...h,...D],s.current=null}else s.current=m,a?E=h.includes(m)&&h.length===1?[]:[m]:h.includes(m)?E=h.filter(x=>x!==m):E=[...h,m];const w=ye.n(E);if(n===!1&&w.length===0)return p(h,{entries:y.filter(({key:x})=>h.includes(x)),clicked:m,clickedIndex:y.findIndex(({key:x})=>x===m)});w.length===0&&(s.current=null),p(w,{entries:y.filter(({key:x})=>E.includes(x)),clicked:m,clickedIndex:y.findIndex(({key:x})=>x===m)})},[c,f,p,t,n]),v=_.useCallback(()=>p([],{entries:[],clicked:null,clickedIndex:0}),[p]);return{onSelect:d,clear:v}},wf=e=>{const r=_.useContext(e);if(r===null)throw new Error("useRequiredContext: context value is null");return r},Ky=_.createContext({transformedData:[],sourceData:[],transformed:!1}),Jy=_.createContext({setSourceData:()=>{},getSourceData:()=>[],getTransformedData:()=>[],deleteTransform:()=>{},setTransform:()=>{},setEmptyContent:()=>{},getEmptyContent:()=>{},getDefaultEmptyContent:()=>{},getTransformed:()=>!1}),Ei=()=>wf(Ky),wo=()=>wf(Jy),sz=()=>Ei().transformedData,Qy=()=>Ei().sourceData,Ef=()=>wo().getTransformedData,uz=()=>wo().setSourceData,lz=({data:e,emptyContent:r,children:t})=>{const{transform:n,setTransform:a,deleteTransform:i}=_y({}),[o,s,u]=ri(()=>e??[]);_.useEffect(()=>{e!=null&&s(e)},[e]);const l=_.useMemo(()=>n({data:[...o],transformed:!1}),[o,n]),c=kt(l),f=kt(r),[p,d,v]=ri(void 0);_.useEffect(()=>{r!=null&&d(r)},[r]);const m=_.useMemo(()=>({setSourceData:s,getSourceData:()=>u.current,getTransformedData:()=>c.current.data,getTransformed:()=>c.current.transformed,deleteTransform:i,setTransform:a,setEmptyContent:d,getEmptyContent:()=>v.current,getDefaultEmptyContent:()=>f.current}),[s,u,c,i,a]),g=_.useMemo(()=>({transformed:l.transformed,transformedData:l.data,sourceData:o,emptyContent:p}),[l,o,p]);return Oe.jsxRuntimeExports.jsx(Jy.Provider,{value:m,children:Oe.jsxRuntimeExports.jsx(Ky.Provider,{value:g,children:t})})},Mv={visible:!1,position:G.q.ZERO,cursor:G.q.ZERO,keys:[]},Sf=G.CSS.BM("context","selected"),Ms=G.CSS.BE("context","target"),e2=G.CSS.BE("menu-context","container"),cz=e=>{let r=e;for(;!r.classList.contains(Ms);){if(r.classList.contains(e2)||r.parentElement==null)return e;r=r.parentElement}return r.classList.contains(Ms)?r:e},fz=e=>{var n;const r=cz(e);if(r==null)return[];const t=Array.from(((n=r.parentElement)==null?void 0:n.querySelectorAll(`.${Sf}`))??[]);return t.includes(r)?t:[r]},pz=()=>{const e=_.useRef(null),[r,t]=_.useState(Mv),n=(o,s)=>{const u=G.q.construct(o);if(typeof o=="object"&&"preventDefault"in o){o.preventDefault(),o.stopPropagation();const l=fz(o.target);s=s??ye.n(l.map(c=>c.id).filter(c=>c.length>0))}else s=[];t({visible:!0,keys:s,position:u,cursor:u})},a=o=>{e.current=o,o!=null&&t(s=>{if(!s.visible)return s;const{adjustedDialog:u}=Ec.dialog({container:G.To.construct(0,0,window.innerWidth,window.innerHeight),dialog:G.To.construct(o),target:G.To.construct(s.cursor,0,0),prefer:[{y:"bottom"}]}),l=G.To.topLeft(u);return G.q.equals(s.position,l)?s:{...s,position:l}})},i=()=>t(Mv);return gf({ref:e,onClickOutside:i}),{...r,close:i,open:n,ref:a}},dz=({children:e,menu:r,visible:t,open:n,close:a,position:i,keys:o,className:s,cursor:u,...l},c)=>{const f=t?r==null?void 0:r({keys:o}):null;return Oe.jsxRuntimeExports.jsxs("div",{className:G.CSS(e2,s,G.CSS.inheritDims()),onContextMenu:n,...l,children:[e,f!=null&&to.createPortal(Oe.jsxRuntimeExports.jsx("div",{className:G.CSS(G.CSS.B("menu-context"),G.CSS.bordered()),ref:c,style:{left:i.x,top:i.y},onClick:a,children:f}),document.body)]})},r2=_.forwardRef(dz);r2.displayName="ContextMenu";const t2=({entry:e,selected:r,hovered:t,onSelect:n,className:a,draggingOver:i,rightAligned:o=!1,highlightHovered:s=!1,translate:u,style:l,sourceIndex:c,...f})=>Oe.jsxRuntimeExports.jsx(Zt.Space,{id:e.key.toString(),direction:"x",onClick:()=>n==null?void 0:n(e.key),tabIndex:0,className:G.CSS(a,Ms,r&&Sf,t&&G.CSS.M("hovered"),o&&G.CSS.M("right-aligned"),s&&G.CSS.M("highlight-hover"),G.CSS.BE("list","item"),G.CSS.selected(r)),style:{position:u!=null?"absolute":"relative",transform:`translateY(${u}px)`,...l},...f}),At=[95,90,85,80,75,70,65,60,55,50,45,40,35,30,25,20,15,10,5],n2=e=>Object.entries({"theme-name":e.name,"theme-key":e.key,"primary-m1":e.colors.primary.m1.hex,"primary-z":e.colors.primary.z.hex,"primary-p1":e.colors.primary.p1.hex,...br.createHexOpacityVariants("primary-z",e.colors.primary.z,At),"secondary-m1":e.colors.secondary.m1.hex,"secondary-z":e.colors.secondary.z.hex,"secondary-p1":e.colors.secondary.p1.hex,...br.createHexOpacityVariants("secondary-z",e.colors.secondary.z,At),"gray-l0":e.colors.gray.l0.hex,"gray-l0-rgb":e.colors.gray.l0.rgbString,...br.createHexOpacityVariants("gray-l0",e.colors.gray.l0,At),"gray-l1":e.colors.gray.l1.hex,...br.createHexOpacityVariants("gray-l1",e.colors.gray.l1,At),"gray-l2":e.colors.gray.l2.hex,...br.createHexOpacityVariants("gray-l2",e.colors.gray.l2,At),"gray-l3":e.colors.gray.l3.hex,...br.createHexOpacityVariants("gray-l3",e.colors.gray.l3,At),"gray-l4":e.colors.gray.l4.hex,"gray-l5":e.colors.gray.l5.hex,...br.createHexOpacityVariants("gray-l5",e.colors.gray.l5,At),"gray-l6":e.colors.gray.l6.hex,...br.createHexOpacityVariants("gray-l6",e.colors.gray.l6,At),"gray-l7":e.colors.gray.l7.hex,...br.createHexOpacityVariants("gray-l7",e.colors.gray.l7,At),"gray-l8":e.colors.gray.l8.hex,"gray-l9":e.colors.gray.l9.hex,...br.createHexOpacityVariants("gray-l9",e.colors.gray.l9,At),"gray-l10":e.colors.gray.l10.hex,"logo-color":e.colors.logo,"error-m1":e.colors.error.m1.hex,"error-z":e.colors.error.z.hex,...br.createHexOpacityVariants("error-z",e.colors.error.z,At),"error-p1":e.colors.error.p1.hex,"warning-m1":e.colors.warning.m1.hex,"warning-z":e.colors.warning.z.hex,...br.createHexOpacityVariants("warning-z",e.colors.warning.z,At),"warning-p1":e.colors.warning.p1.hex,"success-m1":e.colors.secondary.m1.hex,"success-z":e.colors.secondary.z.hex,...br.createHexOpacityVariants("success-z",e.colors.secondary.z,At),"success-p1":e.colors.secondary.p1.hex,white:e.colors.white.hex,"white-rgb":e.colors.white.rgbString,black:e.colors.black.hex,"black-rgb":e.colors.black.rgbString,"text-color":e.colors.text.hex,"text-color-rgb":e.colors.text.rgbString,"text-on-primary":e.colors.textOnPrimary.hex,"border-color":e.colors.border.hex,"base-size":br.unitProperty(e.sizes.base,"px"),"border-radius":br.unitProperty(e.sizes.border.radius,"px"),"border-width":br.unitProperty(e.sizes.border.width,"px"),"schematic-element-stroke-width":br.unitProperty(e.sizes.schematic.elementStrokeWidth,"px"),"font-family":e.typography.family,"h1-size":br.unitProperty(e.typography.h1.size,"rem"),"h1-weight":e.typography.h1.weight,"h1-line-height":br.unitProperty(e.typography.h1.lineHeight,"rem"),"h2-size":br.unitProperty(e.typography.h2.size,"rem"),"h2-weight":e.typography.h2.weight,"h2-line-height":br.unitProperty(e.typography.h2.lineHeight,"rem"),"h3-size":br.unitProperty(e.typography.h3.size,"rem"),"h3-weight":e.typography.h3.weight,"h3-line-height":br.unitProperty(e.typography.h3.lineHeight,"rem"),"h4-size":br.unitProperty(e.typography.h4.size,"rem"),"h4-weight":e.typography.h4.weight,"h4-line-height":br.unitProperty(e.typography.h4.lineHeight,"rem"),"h5-size":br.unitProperty(e.typography.h5.size,"rem"),"h5-weight":e.typography.h5.weight,"h5-line-height":br.unitProperty(e.typography.h5.lineHeight,"rem"),"h5-text-transform":e.typography.h5.textTransform,"p-size":br.unitProperty(e.typography.p.size,"rem"),"p-weight":e.typography.p.weight,"p-line-height":br.unitProperty(e.typography.p.lineHeight,"rem"),"small-size":br.unitProperty(e.typography.small.size,"rem"),"small-weight":e.typography.small.weight,"small-line-height":br.unitProperty(e.typography.small.lineHeight,"rem")}).reduce((r,[t,n])=>({...r,[G.CSS.var(t)]:n}),{}),a2=e=>{const r=_.useRef(null);return r.current===null&&(r.current=e??ye.mt.id()),r.current},i2=_.createContext({enabled:!1,route:null}),Af=_.memo(({children:e,url:r,enabled:t=!0})=>{const[n,a]=_.useState({route:null,enabled:!1});return Ty(()=>{if(!t)return;const i=new Worker(r,{type:"module"});i.onmessageerror=s=>{console.error(s),console.error(s),console.error(JSON.stringify(s))},i.onerror=s=>{console.error(s),console.error(s.message),console.error(JSON.stringify(s))};const o=new ye.l((s,u=[])=>i.postMessage(s,u));return i.onmessage=s=>o.handle(s),a({route:s=>{if(n==null)throw new Error("Worker is not initialized");return o.route(s)},enabled:!0}),()=>i.terminate()},([i],[o])=>i.toString()===o.toString(),[r]),t&&n.route==null?null:Oe.jsxRuntimeExports.jsx(i2.Provider,{value:n,children:e})});Af.displayName="worker.Provider";const o2=e=>{const r=_.useContext(i2);return r.enabled?da(()=>r.route(e),([t],[n])=>t===n,[r.route]):null},vz=Object.freeze(Object.defineProperty({__proto__:null,Provider:Af,use:o2},Symbol.toStringTag,{value:"Module"})),mz={path:[],create:()=>({setState:()=>{},delete:()=>{}})},mu=_.createContext(mz),s2=({workerKey:e,worker:r,children:t})=>{const n=o2(e),a=_.useRef(new Map),[i,o]=_.useState(!1),s=_.useMemo(()=>r??n,[r,n]),u=_.useCallback((c,f,p)=>{const d=f.at(-1);if(d==null)throw new ye.P(`[Aether.Provider] - received zero length path when registering component of type ${c}`);return c.length===0&&console.warn(`[Aether.Provider] - received zero length type when registering component at ${f.join(".")} This is probably a bad idea.`),a.current.set(d,{path:f,handler:p}),{setState:(v,m=[])=>{s==null&&console.warn("aether - no worker"),s==null||s.send({variant:"update",path:f,state:v,type:c},m)},delete:()=>{s==null&&console.warn("aether - no worker"),s==null||s.send({variant:"delete",path:f,type:c})}}},[s,a]);_.useEffect(()=>{s==null||s.handle(c=>{const{key:f,state:p}=c,d=a.current.get(f);if(d==null)throw new ye.Ee(`[Aether.Provider] - received worker update message for unregistered component with key ${f}`);if(d.handler==null)throw new ye.Ee(`[Aether.Provider] - received worker update message for component with key ${f} that has no handler`);d.handler(p)}),o(!0)},[s]);const l=_.useMemo(()=>({create:u,path:["root"]}),[u]);return Oe.jsxRuntimeExports.jsx(mu.Provider,{value:l,children:i&&t})},Df=()=>_.useContext(mu),hz=({type:e,aetherKey:r,initialState:t,schema:n,initialTransfer:a=[],onReceive:i})=>{const o=_.useRef(),s=Df(),u=da(()=>[...s.path,r],([f],[p])=>ye.E.primitiveArrays(f,p)===0,[s.path,r]),l=_.useCallback((f,p=[])=>{var d;return(d=o.current)==null?void 0:d.setState(ye.prettyParse(n,f),p)},[]);o.current==null&&(o.current=s.create(e,u,i),o.current.setState(t,a));const c=_.useRef(!0);return _.useEffect(()=>{if(c.current){c.current=!1;return}return o.current=s.create(e,u,i),l(t,a),()=>{var f;(f=o.current)==null||f.delete(),o.current=null}},[e,u,i,l]),_.useLayoutEffect(()=>()=>{var f;(f=o.current)==null||f.delete(),o.current=null},[]),_.useMemo(()=>({setState:l,path:u}),[l,r,u])},hu=e=>{const{type:r,schema:t,initialState:n}=e,[a,i]=_.useState(()=>ye.prettyParse(t,n)),o=_.useCallback(c=>i(ye.prettyParse(t,c)),[t]),{path:s,setState:u}=hz({...e,onReceive:o}),l=_.useCallback((c,f=[])=>{ye.isSetter(c)?i(p=>{const d=c(p);return u(d,f),d}):(i(c),u(c,f))},[s,r]);return[{path:s},a,l]},Eo=_.memo(({children:e,path:r})=>{const t=Df(),n=_.useMemo(()=>({...t,path:r}),[t,r]);return Oe.jsxRuntimeExports.jsx(mu.Provider,{value:n,children:e})});Eo.displayName="AetherComposite";const gu=(e,r)=>{r.displayName=`Aether.wrap(${e})`;const t=_.memo(({aetherKey:n,...a})=>{const i=a2(n);return Oe.jsxRuntimeExports.jsx(r,{...a,aetherKey:i})});return t.displayName=e,t},gz=Object.freeze(Object.defineProperty({__proto__:null,Composite:Eo,Context:mu,Provider:s2,use:hu,useAetherContext:Df,wrap:gu},Symbol.toStringTag,{value:"Module"})),u2="cursor-style",Tv=(e,r=document.head)=>{l2();const t=document.createElement("style");t.innerHTML=`*{cursor: ${e} !important;}`,t.id=u2,r.appendChild(t)},l2=()=>{const e=document.getElementById(u2);e!=null&&e.remove()},yz={start:G.q.ZERO,mouseKey:"MouseLeft"},bz=({ref:e,onMove:r,onStart:t,onEnd:n})=>{const[a,i]=xo(yz);_.useEffect(()=>{if(e.current==null)return;const{current:o}=e,s=c=>{const f=G.q.construct(c),{mouseKey:p,start:d}=a.current;r==null||r(G.To.construct(d,f),p,c)},u=c=>{o.setPointerCapture(c.pointerId),o.onpointermove=s;const f=G.q.construct(c),p=ti(c);i({start:f,mouseKey:p}),t==null||t(f,p,c),o.addEventListener("pointerup",l,{once:!0})};o.addEventListener("pointerdown",u);const l=c=>{o.onpointermove=null,o.releasePointerCapture(c.pointerId);const{start:f,mouseKey:p}=a.current;n==null||n(G.To.construct(f,G.q.construct(c)),p,c)};return()=>o.removeEventListener("pointerdown",u)},[r,t,n])},Ov=(e,r,t,n,a)=>{const{x:i,y:o}=n??G.q.construct(G.To.dims(a));if(G.To.width(r)>i&&G.To.width(r)>G.To.height(r)){const s=G.To.signedWidth(r)<0?i:-i;e+=(G.To.signedWidth(r)+s)*t.x,Tv("ew-resize")}if(G.To.height(r)>o&&G.To.height(r)>G.To.width(r)){const s=G.To.signedHeight(r)<0?o:-o;e+=(G.To.signedHeight(r)+s)*t.y,Tv("ns-resize")}return e},yu=({direction:e,className:r,dragScale:t={x:10,y:1},dragThreshold:n=15,dragDirection:a,onChange:i,value:o,size:s,resetValue:u,onDragEnd:l,...c})=>{const f=_.useRef({dragging:!1,curr:o,prev:o}),p=_.useRef(null);f.current.dragging||(f.current.prev=o);const d=_.useMemo(()=>{const g=G.q.construct(t);return a==="x"?G.q.construct(g.x,0):a==="y"?G.q.construct(0,g.y):g},[t,a]),v=_.useMemo(()=>n!=null?G.q.construct(n):null,[n]);bz({ref:p,onMove:_.useCallback(g=>{if(p.current==null)return;let y=f.current.prev;f.current.dragging=!0,y=Ov(y,g,d,v,G.To.construct(p.current)),f.current.curr=y,i(y)},[i,d,v]),onEnd:_.useCallback((g,y)=>{var h;if(p.current==null)return;let E=f.current.prev;E=Ov(E,g,d,v,G.To.construct(p.current)),f.current.prev=E,f.current.dragging=!1,l2(),l==null||l(E),(h=c.onBlur)==null||h.call(c)},[c.onBlur,l,d,v])});const m=_.useCallback(()=>{i(u??f.current.prev)},[i,u]);return Oe.jsxRuntimeExports.jsx(Op,{tabIndex:-1,ref:p,variant:"outlined",className:G.CSS(G.CSS.BE("input","drag-btn"),G.CSS.dir(e),r),onDoubleClick:m,onClick:g=>g.preventDefault(),...c,children:Oe.jsxRuntimeExports.jsx(It.Drag,{})})},Si=_.forwardRef(({size:e="medium",value:r,style:t,onChange:n,className:a,onFocus:i,selectOnFocus:o=!1,centerPlaceholder:s=!1,placeholder:u,variant:l="outlined",sharp:c=!1,children:f,level:p,onBlur:d,disabled:v,resetOnBlurIfEmpty:m=!1,status:g,...y},E)=>{const h=_.useRef(""),w=x=>{m&&x.target.value===""&&(n==null||n(h.current)),d==null||d(x)};return Oe.jsxRuntimeExports.jsxs(Zt.Pack,{style:t,className:G.CSS(G.CSS.B("input"),v&&G.CSS.BM("input","disabled"),p==null&&G.CSS.size(e),G.CSS.BM("input",l),G.CSS.sharp(c),g!=null&&G.CSS.M(g),a),align:"center",size:e,children:[Oe.jsxRuntimeExports.jsxs("div",{className:G.CSS.BE("input","internal"),children:[(r==null||r.length===0)&&Oe.jsxRuntimeExports.jsx("div",{className:G.CSS(G.CSS.BE("input","placeholder"),s&&G.CSS.M("centered")),children:Sp(p??ye.ComponentSizeLevels[e],u)}),Oe.jsxRuntimeExports.jsx("input",{ref:E,value:r,onChange:x=>{n==null||n(x.target.value)},role:"textbox",autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",onFocus:x=>{i==null||i(x),h.current=x.target.value,o&&setTimeout(()=>x.target.select(),2)},onBlur:w,className:G.CSS(G.CSS.visible(!1),p!=null&&G.CSS.BM("text",p)),disabled:v,placeholder:typeof u=="string"?u:void 0,...y})]}),f]})});Si.displayName="Input";const xz={x:Number(ye.m.HOUR.valueOf()),y:Number(ye.m.days(.75).valueOf())},c2=({value:e,onChange:r})=>{const t=new ye.m(e,"UTC");_.useLayoutEffect(()=>{const i=t.sub(ye.m.utcOffset);if(i.remainder(ye.m.DAY).isZero)return;const o=i.sub(i.remainder(ye.m.DAY));r(Number(new ye.m(o,"local").valueOf()))},[e]);const n=i=>{let o;if(typeof i=="number")o=new ye.m(i,"UTC");else{if(i.length===0)return;o=new ye.m(i,"local")}r(Number(o.valueOf()))};return{value:t.fString("ISODate","local"),onChange:n}},f2=_.forwardRef(({onChange:e,value:r,className:t,showDragHandle:n=!0,children:a,...i},o)=>{const{value:s,onChange:u}=c2({value:r,onChange:e});return Oe.jsxRuntimeExports.jsxs(Si,{ref:o,value:s,className:G.CSS(G.CSS.B("input-date"),t),onChange:u,type:"date",...i,children:[n&&Oe.jsxRuntimeExports.jsx(yu,{value:r,onChange:u,dragScale:xz}),a]})});f2.displayName="InputDate";function Hr(){return Hr=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Hr.apply(null,arguments)}var p2={relTol:1e-12,absTol:1e-15,matrix:"Matrix",number:"number",numberFallback:"number",precision:64,predictable:!1,randomSeed:null};function Je(e){return typeof e=="number"}function Qe(e){return!e||typeof e!="object"||typeof e.constructor!="function"?!1:e.isBigNumber===!0&&typeof e.constructor.prototype=="object"&&e.constructor.prototype.isBigNumber===!0||typeof e.constructor.isDecimal=="function"&&e.constructor.isDecimal(e)===!0}function wz(e){return typeof e=="bigint"}function bn(e){return e&&typeof e=="object"&&Object.getPrototypeOf(e).isComplex===!0||!1}function So(e){return e&&typeof e=="object"&&Object.getPrototypeOf(e).isFraction===!0||!1}function Rt(e){return e&&e.constructor.prototype.isUnit===!0||!1}function it(e){return typeof e=="string"}var hr=Array.isArray;function Ue(e){return e&&e.constructor.prototype.isMatrix===!0||!1}function Ut(e){return Array.isArray(e)||Ue(e)}function Ts(e){return e&&e.isDenseMatrix&&e.constructor.prototype.isMatrix===!0||!1}function ea(e){return e&&e.isSparseMatrix&&e.constructor.prototype.isMatrix===!0||!1}function Cf(e){return e&&e.constructor.prototype.isRange===!0||!1}function bu(e){return e&&e.constructor.prototype.isIndex===!0||!1}function Ez(e){return typeof e=="boolean"}function Sz(e){return e&&e.constructor.prototype.isResultSet===!0||!1}function d2(e){return e&&e.constructor.prototype.isHelp===!0||!1}function Az(e){return typeof e=="function"}function Dz(e){return e instanceof Date}function Cz(e){return e instanceof RegExp}function xu(e){return!!(e&&typeof e=="object"&&e.constructor===Object&&!bn(e)&&!So(e))}function Nz(e){return e===null}function Mz(e){return e===void 0}function ia(e){return e&&e.isAccessorNode===!0&&e.constructor.prototype.isNode===!0||!1}function Bt(e){return e&&e.isArrayNode===!0&&e.constructor.prototype.isNode===!0||!1}function Tz(e){return e&&e.isAssignmentNode===!0&&e.constructor.prototype.isNode===!0||!1}function Oz(e){return e&&e.isBlockNode===!0&&e.constructor.prototype.isNode===!0||!1}function _z(e){return e&&e.isConditionalNode===!0&&e.constructor.prototype.isNode===!0||!1}function cr(e){return e&&e.isConstantNode===!0&&e.constructor.prototype.isNode===!0||!1}function Xl(e){return cr(e)||kr(e)&&e.args.length===1&&cr(e.args[0])&&"-+~".includes(e.op)}function Ao(e){return e&&e.isFunctionAssignmentNode===!0&&e.constructor.prototype.isNode===!0||!1}function qn(e){return e&&e.isFunctionNode===!0&&e.constructor.prototype.isNode===!0||!1}function Ai(e){return e&&e.isIndexNode===!0&&e.constructor.prototype.isNode===!0||!1}function Er(e){return e&&e.isNode===!0&&e.constructor.prototype.isNode===!0||!1}function wu(e){return e&&e.isObjectNode===!0&&e.constructor.prototype.isNode===!0||!1}function kr(e){return e&&e.isOperatorNode===!0&&e.constructor.prototype.isNode===!0||!1}function En(e){return e&&e.isParenthesisNode===!0&&e.constructor.prototype.isNode===!0||!1}function $z(e){return e&&e.isRangeNode===!0&&e.constructor.prototype.isNode===!0||!1}function Fz(e){return e&&e.isRelationalNode===!0&&e.constructor.prototype.isNode===!0||!1}function Zr(e){return e&&e.isSymbolNode===!0&&e.constructor.prototype.isNode===!0||!1}function v2(e){return e&&e.constructor.prototype.isChain===!0||!1}function Cr(e){var r=typeof e;return r==="object"?e===null?"null":Qe(e)?"BigNumber":e.constructor&&e.constructor.name?e.constructor.name:"Object":r}function We(e){var r=typeof e;if(r==="number"||r==="bigint"||r==="string"||r==="boolean"||e===null||e===void 0)return e;if(typeof e.clone=="function")return e.clone();if(Array.isArray(e))return e.map(function(t){return We(t)});if(e instanceof Date)return new Date(e.valueOf());if(Qe(e))return e;if(xu(e))return Bz(e,We);throw new TypeError("Cannot clone: unknown type of value (value: ".concat(e,")"))}function Bz(e,r){var t={};for(var n in e)Re(e,n)&&(t[n]=r(e[n]));return t}function m2(e,r){for(var t in r)Re(r,t)&&(e[t]=r[t]);return e}function Sn(e,r){var t,n,a;if(Array.isArray(e)){if(!Array.isArray(r)||e.length!==r.length)return!1;for(n=0,a=e.length;n<a;n++)if(!Sn(e[n],r[n]))return!1;return!0}else{if(typeof e=="function")return e===r;if(e instanceof Object){if(Array.isArray(r)||!(r instanceof Object))return!1;for(t in e)if(!(t in r)||!Sn(e[t],r[t]))return!1;for(t in r)if(!(t in e))return!1;return!0}else return e===r}}function Rz(e,r,t){var n=!0,a;Object.defineProperty(e,r,{get:function(){return n&&(a=t(),n=!1),a},set:function(o){a=o,n=!1},configurable:!0,enumerable:!0})}function Re(e,r){return e&&Object.hasOwnProperty.call(e,r)}function Pz(e,r){for(var t={},n=0;n<r.length;n++){var a=r[n],i=e[a];i!==void 0&&(t[a]=i)}return t}var zz=["Matrix","Array"],Iz=["number","BigNumber","Fraction"],ge=function(r){if(r)throw new Error(`The global config is readonly.
|
|
71
71
|
Please create a mathjs instance if you want to change the default configuration.
|
|
72
72
|
Example:
|
|
73
73
|
|
|
@@ -137,7 +137,7 @@ q: `+this.q.toString():"")+`
|
|
|
137
137
|
`),n.seealso&&n.seealso.length&&(a+="See also: "+n.seealso.join(", ")+`
|
|
138
138
|
`),a},t.prototype.toJSON=function(){var n=We(this.doc);return n.mathjs="Help",n},t.fromJSON=function(n){var a={};return Object.keys(n).filter(i=>i!=="mathjs").forEach(i=>{a[i]=n[i]}),new t(a)},t.prototype.valueOf=t.prototype.toString,t},{isClass:!0}),qY="Chain",kY=["?on","math","typed"],UY=L(qY,kY,e=>{var{on:r,math:t,typed:n}=e;function a(l){if(!(this instanceof a))throw new SyntaxError("Constructor must be called with the new operator");v2(l)?this.value=l.value:this.value=l}a.prototype.type="Chain",a.prototype.isChain=!0,a.prototype.done=function(){return this.value},a.prototype.valueOf=function(){return this.value},a.prototype.toString=function(){return tr(this.value)},a.prototype.toJSON=function(){return{mathjs:"Chain",value:this.value}},a.fromJSON=function(l){return new a(l.value)};function i(l,c){typeof c=="function"&&(a.prototype[l]=s(c))}function o(l,c){Rz(a.prototype,l,function(){var p=c();if(typeof p=="function")return s(p)})}function s(l){return function(){if(arguments.length===0)return new a(l(this.value));for(var c=[this.value],f=0;f<arguments.length;f++)c[f+1]=arguments[f];if(n.isTypedFunction(l)){var p=n.resolve(l,c);if(p.params.length===1)throw new Error("chain function "+l.name+" cannot match rest parameter between chain value and additional arguments.");return new a(p.implementation.apply(l,c))}return new a(l.apply(l,c))}}a.createProxy=function(l,c){if(typeof l=="string")i(l,c);else{var f=function(v){Re(l,v)&&u[v]===void 0&&o(v,()=>l[v])};for(var p in l)f(p)}};var u={expression:!0,docs:!0,type:!0,classes:!0,json:!0,error:!0,isChain:!0};return a.createProxy(t),r&&r("import",function(l,c,f){f||o(l,c)}),a},{isClass:!0}),e1={name:"e",category:"Constants",syntax:["e"],description:"Euler's number, the base of the natural logarithm. Approximately equal to 2.71828",examples:["e","e ^ 2","exp(2)","log(e)"],seealso:["exp"]},HY={name:"false",category:"Constants",syntax:["false"],description:"Boolean value false",examples:["false"],seealso:["true"]},jY={name:"i",category:"Constants",syntax:["i"],description:"Imaginary unit, defined as i*i=-1. A complex number is described as a + b*i, where a is the real part, and b is the imaginary part.",examples:["i","i * i","sqrt(-1)"],seealso:[]},VY={name:"Infinity",category:"Constants",syntax:["Infinity"],description:"Infinity, a number which is larger than the maximum number that can be handled by a floating point number.",examples:["Infinity","1 / 0"],seealso:[]},GY={name:"LN10",category:"Constants",syntax:["LN10"],description:"Returns the natural logarithm of 10, approximately equal to 2.302",examples:["LN10","log(10)"],seealso:[]},WY={name:"LN2",category:"Constants",syntax:["LN2"],description:"Returns the natural logarithm of 2, approximately equal to 0.693",examples:["LN2","log(2)"],seealso:[]},ZY={name:"LOG10E",category:"Constants",syntax:["LOG10E"],description:"Returns the base-10 logarithm of E, approximately equal to 0.434",examples:["LOG10E","log(e, 10)"],seealso:[]},YY={name:"LOG2E",category:"Constants",syntax:["LOG2E"],description:"Returns the base-2 logarithm of E, approximately equal to 1.442",examples:["LOG2E","log(e, 2)"],seealso:[]},XY={name:"NaN",category:"Constants",syntax:["NaN"],description:"Not a number",examples:["NaN","0 / 0"],seealso:[]},KY={name:"null",category:"Constants",syntax:["null"],description:"Value null",examples:["null"],seealso:["true","false"]},JY={name:"phi",category:"Constants",syntax:["phi"],description:"Phi is the golden ratio. Two quantities are in the golden ratio if their ratio is the same as the ratio of their sum to the larger of the two quantities. Phi is defined as `(1 + sqrt(5)) / 2` and is approximately 1.618034...",examples:["phi"],seealso:[]},r1={name:"pi",category:"Constants",syntax:["pi"],description:"The number pi is a mathematical constant that is the ratio of a circle's circumference to its diameter, and is approximately equal to 3.14159",examples:["pi","sin(pi/2)"],seealso:["tau"]},QY={name:"SQRT1_2",category:"Constants",syntax:["SQRT1_2"],description:"Returns the square root of 1/2, approximately equal to 0.707",examples:["SQRT1_2","sqrt(1/2)"],seealso:[]},eX={name:"SQRT2",category:"Constants",syntax:["SQRT2"],description:"Returns the square root of 2, approximately equal to 1.414",examples:["SQRT2","sqrt(2)"],seealso:[]},rX={name:"tau",category:"Constants",syntax:["tau"],description:"Tau is the ratio constant of a circle's circumference to radius, equal to 2 * pi, approximately 6.2832.",examples:["tau","2 * pi"],seealso:["pi"]},tX={name:"true",category:"Constants",syntax:["true"],description:"Boolean value true",examples:["true"],seealso:["false"]},nX={name:"version",category:"Constants",syntax:["version"],description:"A string with the version number of math.js",examples:["version"],seealso:[]},aX={name:"bignumber",category:"Construction",syntax:["bignumber(x)"],description:"Create a big number from a number or string.",examples:["0.1 + 0.2","bignumber(0.1) + bignumber(0.2)",'bignumber("7.2")','bignumber("7.2e500")',"bignumber([0.1, 0.2, 0.3])"],seealso:["boolean","bigint","complex","fraction","index","matrix","string","unit"]},iX={name:"bigint",category:"Construction",syntax:["bigint(x)"],description:"Create a bigint, an integer with an arbitrary number of digits, from a number or string.",examples:["123123123123123123 # a large number will lose digits",'bigint("123123123123123123")','bignumber(["1", "3", "5"])'],seealso:["boolean","bignumber","number","complex","fraction","index","matrix","string","unit"]},oX={name:"boolean",category:"Construction",syntax:["x","boolean(x)"],description:"Convert a string or number into a boolean.",examples:["boolean(0)","boolean(1)","boolean(3)",'boolean("true")','boolean("false")',"boolean([1, 0, 1, 1])"],seealso:["bignumber","complex","index","matrix","number","string","unit"]},sX={name:"complex",category:"Construction",syntax:["complex()","complex(re, im)","complex(string)"],description:"Create a complex number.",examples:["complex()","complex(2, 3)",'complex("7 - 2i")'],seealso:["bignumber","boolean","index","matrix","number","string","unit"]},uX={name:"createUnit",category:"Construction",syntax:["createUnit(definitions)","createUnit(name, definition)"],description:"Create a user-defined unit and register it with the Unit type.",examples:['createUnit("foo")','createUnit("knot", {definition: "0.514444444 m/s", aliases: ["knots", "kt", "kts"]})','createUnit("mph", "1 mile/hour")'],seealso:["unit","splitUnit"]},lX={name:"fraction",category:"Construction",syntax:["fraction(num)","fraction(matrix)","fraction(num,den)","fraction({n: num, d: den})"],description:"Create a fraction from a number or from integer numerator and denominator.",examples:["fraction(0.125)","fraction(1, 3) + fraction(2, 5)","fraction({n: 333, d: 53})","fraction([sqrt(9), sqrt(10), sqrt(11)])"],seealso:["bignumber","boolean","complex","index","matrix","string","unit"]},cX={name:"index",category:"Construction",syntax:["[start]","[start:end]","[start:step:end]","[start1, start 2, ...]","[start1:end1, start2:end2, ...]","[start1:step1:end1, start2:step2:end2, ...]"],description:"Create an index to get or replace a subset of a matrix",examples:["A = [1, 2, 3; 4, 5, 6]","A[1, :]","A[1, 2] = 50","A[1:2, 1:2] = 1","B = [1, 2, 3]","B[B>1 and B<3]"],seealso:["bignumber","boolean","complex","matrix,","number","range","string","unit"]},fX={name:"matrix",category:"Construction",syntax:["[]","[a1, b1, ...; a2, b2, ...]","matrix()",'matrix("dense")',"matrix([...])"],description:"Create a matrix.",examples:["[]","[1, 2, 3]","[1, 2, 3; 4, 5, 6]","matrix()","matrix([3, 4])",'matrix([3, 4; 5, 6], "sparse")','matrix([3, 4; 5, 6], "sparse", "number")'],seealso:["bignumber","boolean","complex","index","number","string","unit","sparse"]},pX={name:"number",category:"Construction",syntax:["x","number(x)","number(unit, valuelessUnit)"],description:"Create a number or convert a string or boolean into a number.",examples:["2","2e3","4.05","number(2)",'number("7.2")',"number(true)","number([true, false, true, true])",'number(unit("52cm"), "m")'],seealso:["bignumber","bigint","boolean","complex","fraction","index","matrix","string","unit"]},dX={name:"sparse",category:"Construction",syntax:["sparse()","sparse([a1, b1, ...; a1, b2, ...])",'sparse([a1, b1, ...; a1, b2, ...], "number")'],description:"Create a sparse matrix.",examples:["sparse()","sparse([3, 4; 5, 6])",'sparse([3, 0; 5, 0], "number")'],seealso:["bignumber","boolean","complex","index","number","string","unit","matrix"]},vX={name:"splitUnit",category:"Construction",syntax:["splitUnit(unit: Unit, parts: Unit[])"],description:"Split a unit in an array of units whose sum is equal to the original unit.",examples:['splitUnit(1 m, ["feet", "inch"])'],seealso:["unit","createUnit"]},mX={name:"string",category:"Construction",syntax:['"text"',"string(x)"],description:"Create a string or convert a value to a string",examples:['"Hello World!"',"string(4.2)","string(3 + 2i)"],seealso:["bignumber","boolean","complex","index","matrix","number","unit"]},hX={name:"unit",category:"Construction",syntax:["value unit","unit(value, unit)","unit(string)"],description:"Create a unit.",examples:["5.5 mm","3 inch",'unit(7.1, "kilogram")','unit("23 deg")'],seealso:["bignumber","boolean","complex","index","matrix","number","string"]},gX={name:"config",category:"Core",syntax:["config()","config(options)"],description:"Get configuration or change configuration.",examples:["config()","1/3 + 1/4",'config({number: "Fraction"})',"1/3 + 1/4"],seealso:[]},yX={name:"import",category:"Core",syntax:["import(functions)","import(functions, options)"],description:"Import functions or constants from an object.",examples:["import({myFn: f(x)=x^2, myConstant: 32 })","myFn(2)","myConstant"],seealso:[]},bX={name:"typed",category:"Core",syntax:["typed(signatures)","typed(name, signatures)"],description:"Create a typed function.",examples:['double = typed({ "number": f(x)=x+x, "string": f(x)=concat(x,x) })',"double(2)",'double("hello")'],seealso:[]},xX={name:"derivative",category:"Algebra",syntax:["derivative(expr, variable)","derivative(expr, variable, {simplify: boolean})"],description:"Takes the derivative of an expression expressed in parser Nodes. The derivative will be taken over the supplied variable in the second parameter. If there are multiple variables in the expression, it will return a partial derivative.",examples:['derivative("2x^3", "x")','derivative("2x^3", "x", {simplify: false})','derivative("2x^2 + 3x + 4", "x")','derivative("sin(2x)", "x")','f = parse("x^2 + x")','x = parse("x")',"df = derivative(f, x)","df.evaluate({x: 3})"],seealso:["simplify","parse","evaluate"]},wX={name:"leafCount",category:"Algebra",syntax:["leafCount(expr)"],description:"Computes the number of leaves in the parse tree of the given expression",examples:['leafCount("e^(i*pi)-1")','leafCount(parse("{a: 22/7, b: 10^(1/2)}"))'],seealso:["simplify"]},EX={name:"lsolve",category:"Algebra",syntax:["x=lsolve(L, b)"],description:"Finds one solution of the linear system L * x = b where L is an [n x n] lower triangular matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lsolve(a, b)"],seealso:["lsolveAll","lup","lusolve","usolve","matrix","sparse"]},SX={name:"lsolveAll",category:"Algebra",syntax:["x=lsolveAll(L, b)"],description:"Finds all solutions of the linear system L * x = b where L is an [n x n] lower triangular matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lsolve(a, b)"],seealso:["lsolve","lup","lusolve","usolve","matrix","sparse"]},AX={name:"lup",category:"Algebra",syntax:["lup(m)"],description:"Calculate the Matrix LU decomposition with partial pivoting. Matrix A is decomposed in three matrices (L, U, P) where P * A = L * U",examples:["lup([[2, 1], [1, 4]])","lup(matrix([[2, 1], [1, 4]]))","lup(sparse([[2, 1], [1, 4]]))"],seealso:["lusolve","lsolve","usolve","matrix","sparse","slu","qr"]},DX={name:"lusolve",category:"Algebra",syntax:["x=lusolve(A, b)","x=lusolve(lu, b)"],description:"Solves the linear system A * x = b where A is an [n x n] matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lusolve(a, b)"],seealso:["lup","slu","lsolve","usolve","matrix","sparse"]},CX={name:"polynomialRoot",category:"Algebra",syntax:["x=polynomialRoot(-6, 3)","x=polynomialRoot(4, -4, 1)","x=polynomialRoot(-8, 12, -6, 1)"],description:"Finds the roots of a univariate polynomial given by its coefficients starting from constant, linear, and so on, increasing in degree.",examples:["a = polynomialRoot(-6, 11, -6, 1)"],seealso:["cbrt","sqrt"]},NX={name:"qr",category:"Algebra",syntax:["qr(A)"],description:"Calculates the Matrix QR decomposition. Matrix `A` is decomposed in two matrices (`Q`, `R`) where `Q` is an orthogonal matrix and `R` is an upper triangular matrix.",examples:["qr([[1, -1, 4], [1, 4, -2], [1, 4, 2], [1, -1, 0]])"],seealso:["lup","slu","matrix"]},MX={name:"rationalize",category:"Algebra",syntax:["rationalize(expr)","rationalize(expr, scope)","rationalize(expr, scope, detailed)"],description:"Transform a rationalizable expression in a rational fraction. If rational fraction is one variable polynomial then converts the numerator and denominator in canonical form, with decreasing exponents, returning the coefficients of numerator.",examples:['rationalize("2x/y - y/(x+1)")','rationalize("2x/y - y/(x+1)", true)'],seealso:["simplify"]},TX={name:"resolve",category:"Algebra",syntax:["resolve(node, scope)"],description:"Recursively substitute variables in an expression tree.",examples:['resolve(parse("1 + x"), { x: 7 })','resolve(parse("size(text)"), { text: "Hello World" })','resolve(parse("x + y"), { x: parse("3z") })','resolve(parse("3x"), { x: parse("y+z"), z: parse("w^y") })'],seealso:["simplify","evaluate"],mayThrow:["ReferenceError"]},OX={name:"simplify",category:"Algebra",syntax:["simplify(expr)","simplify(expr, rules)"],description:"Simplify an expression tree.",examples:['simplify("3 + 2 / 4")','simplify("2x + x")','f = parse("x * (x + 2 + x)")',"simplified = simplify(f)","simplified.evaluate({x: 2})"],seealso:["simplifyCore","derivative","evaluate","parse","rationalize","resolve"]},_X={name:"simplifyConstant",category:"Algebra",syntax:["simplifyConstant(expr)","simplifyConstant(expr, options)"],description:"Replace constant subexpressions of node with their values.",examples:['simplifyConstant("(3-3)*x")','simplifyConstant(parse("z-cos(tau/8)"))'],seealso:["simplify","simplifyCore","evaluate"]},$X={name:"simplifyCore",category:"Algebra",syntax:["simplifyCore(node)"],description:"Perform simple one-pass simplifications on an expression tree.",examples:['simplifyCore(parse("0*x"))','simplifyCore(parse("(x+0)*2"))'],seealso:["simplify","simplifyConstant","evaluate"]},FX={name:"slu",category:"Algebra",syntax:["slu(A, order, threshold)"],description:"Calculate the Matrix LU decomposition with full pivoting. Matrix A is decomposed in two matrices (L, U) and two permutation vectors (pinv, q) where P * A * Q = L * U",examples:["slu(sparse([4.5, 0, 3.2, 0; 3.1, 2.9, 0, 0.9; 0, 1.7, 3, 0; 3.5, 0.4, 0, 1]), 1, 0.001)"],seealso:["lusolve","lsolve","usolve","matrix","sparse","lup","qr"]},BX={name:"symbolicEqual",category:"Algebra",syntax:["symbolicEqual(expr1, expr2)","symbolicEqual(expr1, expr2, options)"],description:"Returns true if the difference of the expressions simplifies to 0",examples:['symbolicEqual("x*y","y*x")','symbolicEqual("abs(x^2)", "x^2")','symbolicEqual("abs(x)", "x", {context: {abs: {trivial: true}}})'],seealso:["simplify","evaluate"]},RX={name:"usolve",category:"Algebra",syntax:["x=usolve(U, b)"],description:"Finds one solution of the linear system U * x = b where U is an [n x n] upper triangular matrix and b is a [n] column vector.",examples:["x=usolve(sparse([1, 1, 1, 1; 0, 1, 1, 1; 0, 0, 1, 1; 0, 0, 0, 1]), [1; 2; 3; 4])"],seealso:["usolveAll","lup","lusolve","lsolve","matrix","sparse"]},PX={name:"usolveAll",category:"Algebra",syntax:["x=usolve(U, b)"],description:"Finds all solutions of the linear system U * x = b where U is an [n x n] upper triangular matrix and b is a [n] column vector.",examples:["x=usolve(sparse([1, 1, 1, 1; 0, 1, 1, 1; 0, 0, 1, 1; 0, 0, 0, 1]), [1; 2; 3; 4])"],seealso:["usolve","lup","lusolve","lsolve","matrix","sparse"]},zX={name:"abs",category:"Arithmetic",syntax:["abs(x)"],description:"Compute the absolute value.",examples:["abs(3.5)","abs(-4.2)"],seealso:["sign"]},IX={name:"add",category:"Operators",syntax:["x + y","add(x, y)"],description:"Add two values.",examples:["a = 2.1 + 3.6","a - 3.6","3 + 2i","3 cm + 2 inch",'"2.3" + "4"'],seealso:["subtract"]},LX={name:"cbrt",category:"Arithmetic",syntax:["cbrt(x)","cbrt(x, allRoots)"],description:"Compute the cubic root value. If x = y * y * y, then y is the cubic root of x. When `x` is a number or complex number, an optional second argument `allRoots` can be provided to return all three cubic roots. If not provided, the principal root is returned",examples:["cbrt(64)","cube(4)","cbrt(-8)","cbrt(2 + 3i)","cbrt(8i)","cbrt(8i, true)","cbrt(27 m^3)"],seealso:["square","sqrt","cube","multiply"]},qX={name:"ceil",category:"Arithmetic",syntax:["ceil(x)"],description:"Round a value towards plus infinity. If x is complex, both real and imaginary part are rounded towards plus infinity.",examples:["ceil(3.2)","ceil(3.8)","ceil(-4.2)"],seealso:["floor","fix","round"]},kX={name:"cube",category:"Arithmetic",syntax:["cube(x)"],description:"Compute the cube of a value. The cube of x is x * x * x.",examples:["cube(2)","2^3","2 * 2 * 2"],seealso:["multiply","square","pow"]},UX={name:"divide",category:"Operators",syntax:["x / y","divide(x, y)"],description:"Divide two values.",examples:["a = 2 / 3","a * 3","4.5 / 2","3 + 4 / 2","(3 + 4) / 2","18 km / 4.5"],seealso:["multiply"]},HX={name:"dotDivide",category:"Operators",syntax:["x ./ y","dotDivide(x, y)"],description:"Divide two values element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","b = [2, 1, 1; 3, 2, 5]","a ./ b"],seealso:["multiply","dotMultiply","divide"]},jX={name:"dotMultiply",category:"Operators",syntax:["x .* y","dotMultiply(x, y)"],description:"Multiply two values element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","b = [2, 1, 1; 3, 2, 5]","a .* b"],seealso:["multiply","divide","dotDivide"]},VX={name:"dotPow",category:"Operators",syntax:["x .^ y","dotPow(x, y)"],description:"Calculates the power of x to y element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","a .^ 2"],seealso:["pow"]},GX={name:"exp",category:"Arithmetic",syntax:["exp(x)"],description:"Calculate the exponent of a value.",examples:["exp(1.3)","e ^ 1.3","log(exp(1.3))","x = 2.4","(exp(i*x) == cos(x) + i*sin(x)) # Euler's formula"],seealso:["expm","expm1","pow","log"]},WX={name:"expm",category:"Arithmetic",syntax:["exp(x)"],description:"Compute the matrix exponential, expm(A) = e^A. The matrix must be square. Not to be confused with exp(a), which performs element-wise exponentiation.",examples:["expm([[0,2],[0,0]])"],seealso:["exp"]},ZX={name:"expm1",category:"Arithmetic",syntax:["expm1(x)"],description:"Calculate the value of subtracting 1 from the exponential value.",examples:["expm1(2)","pow(e, 2) - 1","log(expm1(2) + 1)"],seealso:["exp","pow","log"]},YX={name:"fix",category:"Arithmetic",syntax:["fix(x)"],description:"Round a value towards zero. If x is complex, both real and imaginary part are rounded towards zero.",examples:["fix(3.2)","fix(3.8)","fix(-4.2)","fix(-4.8)"],seealso:["ceil","floor","round"]},XX={name:"floor",category:"Arithmetic",syntax:["floor(x)"],description:"Round a value towards minus infinity.If x is complex, both real and imaginary part are rounded towards minus infinity.",examples:["floor(3.2)","floor(3.8)","floor(-4.2)"],seealso:["ceil","fix","round"]},KX={name:"gcd",category:"Arithmetic",syntax:["gcd(a, b)","gcd(a, b, c, ...)"],description:"Compute the greatest common divisor.",examples:["gcd(8, 12)","gcd(-4, 6)","gcd(25, 15, -10)"],seealso:["lcm","xgcd"]},JX={name:"hypot",category:"Arithmetic",syntax:["hypot(a, b, c, ...)","hypot([a, b, c, ...])"],description:"Calculate the hypotenusa of a list with values. ",examples:["hypot(3, 4)","sqrt(3^2 + 4^2)","hypot(-2)","hypot([3, 4, 5])"],seealso:["abs","norm"]},QX={name:"invmod",category:"Arithmetic",syntax:["invmod(a, b)"],description:"Calculate the (modular) multiplicative inverse of a modulo b. Solution to the equation ax ≣ 1 (mod b)",examples:["invmod(8, 12)","invmod(7, 13)","invmod(15151, 15122)"],seealso:["gcd","xgcd"]},eK={name:"lcm",category:"Arithmetic",syntax:["lcm(x, y)"],description:"Compute the least common multiple.",examples:["lcm(4, 6)","lcm(6, 21)","lcm(6, 21, 5)"],seealso:["gcd"]},rK={name:"log",category:"Arithmetic",syntax:["log(x)","log(x, base)"],description:"Compute the logarithm of a value. If no base is provided, the natural logarithm of x is calculated. If base if provided, the logarithm is calculated for the specified base. log(x, base) is defined as log(x) / log(base).",examples:["log(3.5)","a = log(2.4)","exp(a)","10 ^ 4","log(10000, 10)","log(10000) / log(10)","b = log(1024, 2)","2 ^ b"],seealso:["exp","log1p","log2","log10"]},tK={name:"log10",category:"Arithmetic",syntax:["log10(x)"],description:"Compute the 10-base logarithm of a value.",examples:["log10(0.00001)","log10(10000)","10 ^ 4","log(10000) / log(10)","log(10000, 10)"],seealso:["exp","log"]},nK={name:"log1p",category:"Arithmetic",syntax:["log1p(x)","log1p(x, base)"],description:"Calculate the logarithm of a `value+1`",examples:["log1p(2.5)","exp(log1p(1.4))","pow(10, 4)","log1p(9999, 10)","log1p(9999) / log(10)"],seealso:["exp","log","log2","log10"]},aK={name:"log2",category:"Arithmetic",syntax:["log2(x)"],description:"Calculate the 2-base of a value. This is the same as calculating `log(x, 2)`.",examples:["log2(0.03125)","log2(16)","log2(16) / log2(2)","pow(2, 4)"],seealso:["exp","log1p","log","log10"]},iK={name:"mod",category:"Operators",syntax:["x % y","x mod y","mod(x, y)"],description:"Calculates the modulus, the remainder of an integer division.",examples:["7 % 3","11 % 2","10 mod 4","isOdd(x) = x % 2","isOdd(2)","isOdd(3)"],seealso:["divide"]},oK={name:"multiply",category:"Operators",syntax:["x * y","multiply(x, y)"],description:"multiply two values.",examples:["a = 2.1 * 3.4","a / 3.4","2 * 3 + 4","2 * (3 + 4)","3 * 2.1 km"],seealso:["divide"]},sK={name:"norm",category:"Arithmetic",syntax:["norm(x)","norm(x, p)"],description:"Calculate the norm of a number, vector or matrix.",examples:["abs(-3.5)","norm(-3.5)","norm(3 - 4i)","norm([1, 2, -3], Infinity)","norm([1, 2, -3], -Infinity)","norm([3, 4], 2)","norm([[1, 2], [3, 4]], 1)",'norm([[1, 2], [3, 4]], "inf")','norm([[1, 2], [3, 4]], "fro")']},uK={name:"nthRoot",category:"Arithmetic",syntax:["nthRoot(a)","nthRoot(a, root)"],description:'Calculate the nth root of a value. The principal nth root of a positive real number A, is the positive real solution of the equation "x^root = A".',examples:["4 ^ 3","nthRoot(64, 3)","nthRoot(9, 2)","sqrt(9)"],seealso:["nthRoots","pow","sqrt"]},lK={name:"nthRoots",category:"Arithmetic",syntax:["nthRoots(A)","nthRoots(A, root)"],description:'Calculate the nth roots of a value. An nth root of a positive real number A, is a positive real solution of the equation "x^root = A". This function returns an array of complex values.',examples:["nthRoots(1)","nthRoots(1, 3)"],seealso:["sqrt","pow","nthRoot"]},cK={name:"pow",category:"Operators",syntax:["x ^ y","pow(x, y)"],description:"Calculates the power of x to y, x^y.",examples:["2^3","2*2*2","1 + e ^ (pi * i)","pow([[1, 2], [4, 3]], 2)","pow([[1, 2], [4, 3]], -1)"],seealso:["multiply","nthRoot","nthRoots","sqrt"]},fK={name:"round",category:"Arithmetic",syntax:["round(x)","round(x, n)","round(unit, valuelessUnit)","round(unit, n, valuelessUnit)"],description:"round a value towards the nearest integer.If x is complex, both real and imaginary part are rounded towards the nearest integer. When n is specified, the value is rounded to n decimals.",examples:["round(3.2)","round(3.8)","round(-4.2)","round(-4.8)","round(pi, 3)","round(123.45678, 2)","round(3.241cm, 2, cm)","round([3.2, 3.8, -4.7])"],seealso:["ceil","floor","fix"]},pK={name:"sign",category:"Arithmetic",syntax:["sign(x)"],description:"Compute the sign of a value. The sign of a value x is 1 when x>1, -1 when x<0, and 0 when x=0.",examples:["sign(3.5)","sign(-4.2)","sign(0)"],seealso:["abs"]},dK={name:"sqrt",category:"Arithmetic",syntax:["sqrt(x)"],description:"Compute the square root value. If x = y * y, then y is the square root of x.",examples:["sqrt(25)","5 * 5","sqrt(-1)"],seealso:["square","sqrtm","multiply","nthRoot","nthRoots","pow"]},vK={name:"sqrtm",category:"Arithmetic",syntax:["sqrtm(x)"],description:"Calculate the principal square root of a square matrix. The principal square root matrix `X` of another matrix `A` is such that `X * X = A`.",examples:["sqrtm([[33, 24], [48, 57]])"],seealso:["sqrt","abs","square","multiply"]},mK={name:"sylvester",category:"Algebra",syntax:["sylvester(A,B,C)"],description:"Solves the real-valued Sylvester equation AX+XB=C for X",examples:["sylvester([[-1, -2], [1, 1]], [[-2, 1], [-1, 2]], [[-3, 2], [3, 0]])","A = [[-1, -2], [1, 1]]; B = [[2, -1], [1, -2]]; C = [[-3, 2], [3, 0]]","sylvester(A, B, C)"],seealso:["schur","lyap"]},hK={name:"schur",category:"Algebra",syntax:["schur(A)"],description:"Performs a real Schur decomposition of the real matrix A = UTU'",examples:["schur([[1, 0], [-4, 3]])","A = [[1, 0], [-4, 3]]","schur(A)"],seealso:["lyap","sylvester"]},gK={name:"lyap",category:"Algebra",syntax:["lyap(A,Q)"],description:"Solves the Continuous-time Lyapunov equation AP+PA'+Q=0 for P",examples:["lyap([[-2, 0], [1, -4]], [[3, 1], [1, 3]])","A = [[-2, 0], [1, -4]]","Q = [[3, 1], [1, 3]]","lyap(A,Q)"],seealso:["schur","sylvester"]},yK={name:"square",category:"Arithmetic",syntax:["square(x)"],description:"Compute the square of a value. The square of x is x * x.",examples:["square(3)","sqrt(9)","3^2","3 * 3"],seealso:["multiply","pow","sqrt","cube"]},bK={name:"subtract",category:"Operators",syntax:["x - y","subtract(x, y)"],description:"subtract two values.",examples:["a = 5.3 - 2","a + 2","2/3 - 1/6","2 * 3 - 3","2.1 km - 500m"],seealso:["add"]},xK={name:"unaryMinus",category:"Operators",syntax:["-x","unaryMinus(x)"],description:"Inverse the sign of a value. Converts booleans and strings to numbers.",examples:["-4.5","-(-5.6)",'-"22"'],seealso:["add","subtract","unaryPlus"]},wK={name:"unaryPlus",category:"Operators",syntax:["+x","unaryPlus(x)"],description:"Converts booleans and strings to numbers.",examples:["+true",'+"2"'],seealso:["add","subtract","unaryMinus"]},EK={name:"xgcd",category:"Arithmetic",syntax:["xgcd(a, b)"],description:"Calculate the extended greatest common divisor for two values. The result is an array [d, x, y] with 3 entries, where d is the greatest common divisor, and d = x * a + y * b.",examples:["xgcd(8, 12)","gcd(8, 12)","xgcd(36163, 21199)"],seealso:["gcd","lcm"]},SK={name:"bitAnd",category:"Bitwise",syntax:["x & y","bitAnd(x, y)"],description:"Bitwise AND operation. Performs the logical AND operation on each pair of the corresponding bits of the two given values by multiplying them. If both bits in the compared position are 1, the bit in the resulting binary representation is 1, otherwise, the result is 0",examples:["5 & 3","bitAnd(53, 131)","[1, 12, 31] & 42"],seealso:["bitNot","bitOr","bitXor","leftShift","rightArithShift","rightLogShift"]},AK={name:"bitNot",category:"Bitwise",syntax:["~x","bitNot(x)"],description:"Bitwise NOT operation. Performs a logical negation on each bit of the given value. Bits that are 0 become 1, and those that are 1 become 0.",examples:["~1","~2","bitNot([2, -3, 4])"],seealso:["bitAnd","bitOr","bitXor","leftShift","rightArithShift","rightLogShift"]},DK={name:"bitOr",category:"Bitwise",syntax:["x | y","bitOr(x, y)"],description:"Bitwise OR operation. Performs the logical inclusive OR operation on each pair of corresponding bits of the two given values. The result in each position is 1 if the first bit is 1 or the second bit is 1 or both bits are 1, otherwise, the result is 0.",examples:["5 | 3","bitOr([1, 2, 3], 4)"],seealso:["bitAnd","bitNot","bitXor","leftShift","rightArithShift","rightLogShift"]},CK={name:"bitXor",category:"Bitwise",syntax:["bitXor(x, y)"],description:"Bitwise XOR operation, exclusive OR. Performs the logical exclusive OR operation on each pair of corresponding bits of the two given values. The result in each position is 1 if only the first bit is 1 or only the second bit is 1, but will be 0 if both are 0 or both are 1.",examples:["bitOr(1, 2)","bitXor([2, 3, 4], 4)"],seealso:["bitAnd","bitNot","bitOr","leftShift","rightArithShift","rightLogShift"]},NK={name:"leftShift",category:"Bitwise",syntax:["x << y","leftShift(x, y)"],description:"Bitwise left logical shift of a value x by y number of bits.",examples:["4 << 1","8 >> 1"],seealso:["bitAnd","bitNot","bitOr","bitXor","rightArithShift","rightLogShift"]},MK={name:"rightArithShift",category:"Bitwise",syntax:["x >> y","rightArithShift(x, y)"],description:"Bitwise right arithmetic shift of a value x by y number of bits.",examples:["8 >> 1","4 << 1","-12 >> 2"],seealso:["bitAnd","bitNot","bitOr","bitXor","leftShift","rightLogShift"]},TK={name:"rightLogShift",category:"Bitwise",syntax:["x >>> y","rightLogShift(x, y)"],description:"Bitwise right logical shift of a value x by y number of bits.",examples:["8 >>> 1","4 << 1","-12 >>> 2"],seealso:["bitAnd","bitNot","bitOr","bitXor","leftShift","rightArithShift"]},OK={name:"bellNumbers",category:"Combinatorics",syntax:["bellNumbers(n)"],description:"The Bell Numbers count the number of partitions of a set. A partition is a pairwise disjoint subset of S whose union is S. `bellNumbers` only takes integer arguments. The following condition must be enforced: n >= 0.",examples:["bellNumbers(3)","bellNumbers(8)"],seealso:["stirlingS2"]},_K={name:"catalan",category:"Combinatorics",syntax:["catalan(n)"],description:"The Catalan Numbers enumerate combinatorial structures of many different types. catalan only takes integer arguments. The following condition must be enforced: n >= 0.",examples:["catalan(3)","catalan(8)"],seealso:["bellNumbers"]},$K={name:"composition",category:"Combinatorics",syntax:["composition(n, k)"],description:"The composition counts of n into k parts. composition only takes integer arguments. The following condition must be enforced: k <= n.",examples:["composition(5, 3)"],seealso:["combinations"]},FK={name:"stirlingS2",category:"Combinatorics",syntax:["stirlingS2(n, k)"],description:"he Stirling numbers of the second kind, counts the number of ways to partition a set of n labelled objects into k nonempty unlabelled subsets. `stirlingS2` only takes integer arguments. The following condition must be enforced: k <= n. If n = k or k = 1, then s(n,k) = 1.",examples:["stirlingS2(5, 3)"],seealso:["bellNumbers"]},BK={name:"arg",category:"Complex",syntax:["arg(x)"],description:"Compute the argument of a complex value. If x = a+bi, the argument is computed as atan2(b, a).",examples:["arg(2 + 2i)","atan2(3, 2)","arg(2 + 3i)"],seealso:["re","im","conj","abs"]},RK={name:"conj",category:"Complex",syntax:["conj(x)"],description:"Compute the complex conjugate of a complex value. If x = a+bi, the complex conjugate is a-bi.",examples:["conj(2 + 3i)","conj(2 - 3i)","conj(-5.2i)"],seealso:["re","im","abs","arg"]},PK={name:"im",category:"Complex",syntax:["im(x)"],description:"Get the imaginary part of a complex number.",examples:["im(2 + 3i)","re(2 + 3i)","im(-5.2i)","im(2.4)"],seealso:["re","conj","abs","arg"]},zK={name:"re",category:"Complex",syntax:["re(x)"],description:"Get the real part of a complex number.",examples:["re(2 + 3i)","im(2 + 3i)","re(-5.2i)","re(2.4)"],seealso:["im","conj","abs","arg"]},IK={name:"evaluate",category:"Expression",syntax:["evaluate(expression)","evaluate(expression, scope)","evaluate([expr1, expr2, expr3, ...])","evaluate([expr1, expr2, expr3, ...], scope)"],description:"Evaluate an expression or an array with expressions.",examples:['evaluate("2 + 3")','evaluate("sqrt(16)")','evaluate("2 inch to cm")','evaluate("sin(x * pi)", { "x": 1/2 })','evaluate(["width=2", "height=4","width*height"])'],seealso:[]},LK={name:"help",category:"Expression",syntax:["help(object)","help(string)"],description:"Display documentation on a function or data type.",examples:["help(sqrt)",'help("complex")'],seealso:[]},qK={name:"distance",category:"Geometry",syntax:["distance([x1, y1], [x2, y2])","distance([[x1, y1], [x2, y2]])"],description:"Calculates the Euclidean distance between two points.",examples:["distance([0,0], [4,4])","distance([[0,0], [4,4]])"],seealso:[]},kK={name:"intersect",category:"Geometry",syntax:["intersect(expr1, expr2, expr3, expr4)","intersect(expr1, expr2, expr3)"],description:"Computes the intersection point of lines and/or planes.",examples:["intersect([0, 0], [10, 10], [10, 0], [0, 10])","intersect([1, 0, 1], [4, -2, 2], [1, 1, 1, 6])"],seealso:[]},UK={name:"and",category:"Logical",syntax:["x and y","and(x, y)"],description:"Logical and. Test whether two values are both defined with a nonzero/nonempty value.",examples:["true and false","true and true","2 and 4"],seealso:["not","or","xor"]},HK={name:"not",category:"Logical",syntax:["not x","not(x)"],description:"Logical not. Flips the boolean value of given argument.",examples:["not true","not false","not 2","not 0"],seealso:["and","or","xor"]},jK={name:"or",category:"Logical",syntax:["x or y","or(x, y)"],description:"Logical or. Test if at least one value is defined with a nonzero/nonempty value.",examples:["true or false","false or false","0 or 4"],seealso:["not","and","xor"]},VK={name:"xor",category:"Logical",syntax:["x xor y","xor(x, y)"],description:"Logical exclusive or, xor. Test whether one and only one value is defined with a nonzero/nonempty value.",examples:["true xor false","false xor false","true xor true","0 xor 4"],seealso:["not","and","or"]},GK={name:"column",category:"Matrix",syntax:["column(x, index)"],description:"Return a column from a matrix or array.",examples:["A = [[1, 2], [3, 4]]","column(A, 1)","column(A, 2)"],seealso:["row","matrixFromColumns"]},WK={name:"concat",category:"Matrix",syntax:["concat(A, B, C, ...)","concat(A, B, C, ..., dim)"],description:"Concatenate matrices. By default, the matrices are concatenated by the last dimension. The dimension on which to concatenate can be provided as last argument.",examples:["A = [1, 2; 5, 6]","B = [3, 4; 7, 8]","concat(A, B)","concat(A, B, 1)","concat(A, B, 2)"],seealso:["det","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},ZK={name:"count",category:"Matrix",syntax:["count(x)"],description:"Count the number of elements of a matrix, array or string.",examples:["a = [1, 2; 3, 4; 5, 6]","count(a)","size(a)",'count("hello world")'],seealso:["size"]},YK={name:"cross",category:"Matrix",syntax:["cross(A, B)"],description:"Calculate the cross product for two vectors in three dimensional space.",examples:["cross([1, 1, 0], [0, 1, 1])","cross([3, -3, 1], [4, 9, 2])","cross([2, 3, 4], [5, 6, 7])"],seealso:["multiply","dot"]},XK={name:"ctranspose",category:"Matrix",syntax:["x'","ctranspose(x)"],description:"Complex Conjugate and Transpose a matrix",examples:["a = [1, 2, 3; 4, 5, 6]","a'","ctranspose(a)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","zeros"]},KK={name:"det",category:"Matrix",syntax:["det(x)"],description:"Calculate the determinant of a matrix",examples:["det([1, 2; 3, 4])","det([-2, 2, 3; -1, 1, 3; 2, 0, -1])"],seealso:["concat","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},JK={name:"diag",category:"Matrix",syntax:["diag(x)","diag(x, k)"],description:"Create a diagonal matrix or retrieve the diagonal of a matrix. When x is a vector, a matrix with the vector values on the diagonal will be returned. When x is a matrix, a vector with the diagonal values of the matrix is returned. When k is provided, the k-th diagonal will be filled in or retrieved, if k is positive, the values are placed on the super diagonal. When k is negative, the values are placed on the sub diagonal.",examples:["diag(1:3)","diag(1:3, 1)","a = [1, 2, 3; 4, 5, 6; 7, 8, 9]","diag(a)"],seealso:["concat","det","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},QK={name:"diff",category:"Matrix",syntax:["diff(arr)","diff(arr, dim)"],description:["Create a new matrix or array with the difference of the passed matrix or array.","Dim parameter is optional and used to indicant the dimension of the array/matrix to apply the difference","If no dimension parameter is passed it is assumed as dimension 0","Dimension is zero-based in javascript and one-based in the parser","Arrays must be 'rectangular' meaning arrays like [1, 2]","If something is passed as a matrix it will be returned as a matrix but other than that all matrices are converted to arrays"],examples:["A = [1, 2, 4, 7, 0]","diff(A)","diff(A, 1)","B = [[1, 2], [3, 4]]","diff(B)","diff(B, 1)","diff(B, 2)","diff(B, bignumber(2))","diff([[1, 2], matrix([3, 4])], 2)"],seealso:["subtract","partitionSelect"]},eJ={name:"dot",category:"Matrix",syntax:["dot(A, B)","A * B"],description:"Calculate the dot product of two vectors. The dot product of A = [a1, a2, a3, ..., an] and B = [b1, b2, b3, ..., bn] is defined as dot(A, B) = a1 * b1 + a2 * b2 + a3 * b3 + ... + an * bn",examples:["dot([2, 4, 1], [2, 2, 3])","[2, 4, 1] * [2, 2, 3]"],seealso:["multiply","cross"]},rJ={name:"eigs",category:"Matrix",syntax:["eigs(x)"],description:"Calculate the eigenvalues and optionally eigenvectors of a square matrix",examples:["eigs([[5, 2.3], [2.3, 1]])","eigs([[1, 2, 3], [4, 5, 6], [7, 8, 9]], { precision: 1e-6, eigenvectors: false })"],seealso:["inv"]},tJ={name:"filter",category:"Matrix",syntax:["filter(x, test)"],description:"Filter items in a matrix.",examples:["isPositive(x) = x > 0","filter([6, -2, -1, 4, 3], isPositive)","filter([6, -2, 0, 1, 0], x != 0)"],seealso:["sort","map","forEach"]},nJ={name:"flatten",category:"Matrix",syntax:["flatten(x)"],description:"Flatten a multi dimensional matrix into a single dimensional matrix.",examples:["a = [1, 2, 3; 4, 5, 6]","size(a)","b = flatten(a)","size(b)"],seealso:["concat","resize","size","squeeze"]},aJ={name:"forEach",category:"Matrix",syntax:["forEach(x, callback)"],description:"Iterates over all elements of a matrix/array, and executes the given callback function.",examples:["numberOfPets = {}","addPet(n) = numberOfPets[n] = (numberOfPets[n] ? numberOfPets[n]:0 ) + 1;",'forEach(["Dog","Cat","Cat"], addPet)',"numberOfPets"],seealso:["map","sort","filter"]},iJ={name:"getMatrixDataType",category:"Matrix",syntax:["getMatrixDataType(x)"],description:'Find the data type of all elements in a matrix or array, for example "number" if all items are a number and "Complex" if all values are complex numbers. If a matrix contains more than one data type, it will return "mixed".',examples:["getMatrixDataType([1, 2, 3])","getMatrixDataType([[5 cm], [2 inch]])",'getMatrixDataType([1, "text"])',"getMatrixDataType([1, bignumber(4)])"],seealso:["matrix","sparse","typeOf"]},oJ={name:"identity",category:"Matrix",syntax:["identity(n)","identity(m, n)","identity([m, n])"],description:"Returns the identity matrix with size m-by-n. The matrix has ones on the diagonal and zeros elsewhere.",examples:["identity(3)","identity(3, 5)","a = [1, 2, 3; 4, 5, 6]","identity(size(a))"],seealso:["concat","det","diag","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},sJ={name:"inv",category:"Matrix",syntax:["inv(x)"],description:"Calculate the inverse of a matrix",examples:["inv([1, 2; 3, 4])","inv(4)","1 / 4"],seealso:["concat","det","diag","identity","ones","range","size","squeeze","subset","trace","transpose","zeros"]},uJ={name:"pinv",category:"Matrix",syntax:["pinv(x)"],description:"Calculate the Moore–Penrose inverse of a matrix",examples:["pinv([1, 2; 3, 4])","pinv([[1, 0], [0, 1], [0, 1]])","pinv(4)"],seealso:["inv"]},lJ={name:"kron",category:"Matrix",syntax:["kron(x, y)"],description:"Calculates the kronecker product of 2 matrices or vectors.",examples:["kron([[1, 0], [0, 1]], [[1, 2], [3, 4]])","kron([1,1], [2,3,4])"],seealso:["multiply","dot","cross"]},cJ={name:"map",category:"Matrix",syntax:["map(x, callback)"],description:"Create a new matrix or array with the results of the callback function executed on each entry of the matrix/array.",examples:["map([1, 2, 3], square)"],seealso:["filter","forEach"]},fJ={name:"matrixFromColumns",category:"Matrix",syntax:["matrixFromColumns(...arr)","matrixFromColumns(row1, row2)","matrixFromColumns(row1, row2, row3)"],description:"Create a dense matrix from vectors as individual columns.",examples:["matrixFromColumns([1, 2, 3], [[4],[5],[6]])"],seealso:["matrix","matrixFromRows","matrixFromFunction","zeros"]},pJ={name:"matrixFromFunction",category:"Matrix",syntax:["matrixFromFunction(size, fn)","matrixFromFunction(size, fn, format)","matrixFromFunction(size, fn, format, datatype)","matrixFromFunction(size, format, fn)","matrixFromFunction(size, format, datatype, fn)"],description:"Create a matrix by evaluating a generating function at each index.",examples:["f(I) = I[1] - I[2]","matrixFromFunction([3,3], f)","g(I) = I[1] - I[2] == 1 ? 4 : 0",'matrixFromFunction([100, 100], "sparse", g)',"matrixFromFunction([5], random)"],seealso:["matrix","matrixFromRows","matrixFromColumns","zeros"]},dJ={name:"matrixFromRows",category:"Matrix",syntax:["matrixFromRows(...arr)","matrixFromRows(row1, row2)","matrixFromRows(row1, row2, row3)"],description:"Create a dense matrix from vectors as individual rows.",examples:["matrixFromRows([1, 2, 3], [[4],[5],[6]])"],seealso:["matrix","matrixFromColumns","matrixFromFunction","zeros"]},vJ={name:"ones",category:"Matrix",syntax:["ones(m)","ones(m, n)","ones(m, n, p, ...)","ones([m])","ones([m, n])","ones([m, n, p, ...])"],description:"Create a matrix containing ones.",examples:["ones(3)","ones(3, 5)","ones([2,3]) * 4.5","a = [1, 2, 3; 4, 5, 6]","ones(size(a))"],seealso:["concat","det","diag","identity","inv","range","size","squeeze","subset","trace","transpose","zeros"]},mJ={name:"partitionSelect",category:"Matrix",syntax:["partitionSelect(x, k)","partitionSelect(x, k, compare)"],description:"Partition-based selection of an array or 1D matrix. Will find the kth smallest value, and mutates the input array. Uses Quickselect.",examples:["partitionSelect([5, 10, 1], 2)",'partitionSelect(["C", "B", "A", "D"], 1, compareText)',"arr = [5, 2, 1]","partitionSelect(arr, 0) # returns 1, arr is now: [1, 2, 5]","arr","partitionSelect(arr, 1, 'desc') # returns 2, arr is now: [5, 2, 1]","arr"],seealso:["sort"]},hJ={name:"range",category:"Type",syntax:["start:end","start:step:end","range(start, end)","range(start, end, step)","range(string)"],description:"Create a range. Lower bound of the range is included, upper bound is excluded.",examples:["1:5","3:-1:-3","range(3, 7)","range(0, 12, 2)",'range("4:10")',"range(1m, 1m, 3m)","a = [1, 2, 3, 4; 5, 6, 7, 8]","a[1:2, 1:2]"],seealso:["concat","det","diag","identity","inv","ones","size","squeeze","subset","trace","transpose","zeros"]},gJ={name:"reshape",category:"Matrix",syntax:["reshape(x, sizes)"],description:"Reshape a multi dimensional array to fit the specified dimensions.",examples:["reshape([1, 2, 3, 4, 5, 6], [2, 3])","reshape([[1, 2], [3, 4]], [1, 4])","reshape([[1, 2], [3, 4]], [4])","reshape([1, 2, 3, 4], [-1, 2])"],seealso:["size","squeeze","resize"]},yJ={name:"resize",category:"Matrix",syntax:["resize(x, size)","resize(x, size, defaultValue)"],description:"Resize a matrix.",examples:["resize([1,2,3,4,5], [3])","resize([1,2,3], [5])","resize([1,2,3], [5], -1)","resize(2, [2, 3])",'resize("hello", [8], "!")'],seealso:["size","subset","squeeze","reshape"]},bJ={name:"rotate",category:"Matrix",syntax:["rotate(w, theta)","rotate(w, theta, v)"],description:"Returns a 2-D rotation matrix (2x2) for a given angle (in radians). Returns a 2-D rotation matrix (3x3) of a given angle (in radians) around given axis.",examples:["rotate([1, 0], pi / 2)",'rotate(matrix([1, 0]), unit("35deg"))','rotate([1, 0, 0], unit("90deg"), [0, 0, 1])','rotate(matrix([1, 0, 0]), unit("90deg"), matrix([0, 0, 1]))'],seealso:["matrix","rotationMatrix"]},xJ={name:"rotationMatrix",category:"Matrix",syntax:["rotationMatrix(theta)","rotationMatrix(theta, v)","rotationMatrix(theta, v, format)"],description:"Returns a 2-D rotation matrix (2x2) for a given angle (in radians). Returns a 2-D rotation matrix (3x3) of a given angle (in radians) around given axis.",examples:["rotationMatrix(pi / 2)",'rotationMatrix(unit("45deg"), [0, 0, 1])','rotationMatrix(1, matrix([0, 0, 1]), "sparse")'],seealso:["cos","sin"]},wJ={name:"row",category:"Matrix",syntax:["row(x, index)"],description:"Return a row from a matrix or array.",examples:["A = [[1, 2], [3, 4]]","row(A, 1)","row(A, 2)"],seealso:["column","matrixFromRows"]},EJ={name:"size",category:"Matrix",syntax:["size(x)"],description:"Calculate the size of a matrix.",examples:["size(2.3)",'size("hello world")',"a = [1, 2; 3, 4; 5, 6]","size(a)","size(1:6)"],seealso:["concat","count","det","diag","identity","inv","ones","range","squeeze","subset","trace","transpose","zeros"]},SJ={name:"sort",category:"Matrix",syntax:["sort(x)","sort(x, compare)"],description:'Sort the items in a matrix. Compare can be a string "asc", "desc", "natural", or a custom sort function.',examples:["sort([5, 10, 1])",'sort(["C", "B", "A", "D"], "natural")',"sortByLength(a, b) = size(a)[1] - size(b)[1]",'sort(["Langdon", "Tom", "Sara"], sortByLength)','sort(["10", "1", "2"], "natural")'],seealso:["map","filter","forEach"]},AJ={name:"squeeze",category:"Matrix",syntax:["squeeze(x)"],description:"Remove inner and outer singleton dimensions from a matrix.",examples:["a = zeros(3,2,1)","size(squeeze(a))","b = zeros(1,1,3)","size(squeeze(b))"],seealso:["concat","det","diag","identity","inv","ones","range","size","subset","trace","transpose","zeros"]},DJ={name:"subset",category:"Matrix",syntax:["value(index)","value(index) = replacement","subset(value, [index])","subset(value, [index], replacement)"],description:"Get or set a subset of the entries of a matrix or characters of a string. Indexes are one-based. There should be one index specification for each dimension of the target. Each specification can be a single index, a list of indices, or a range in colon notation `l:u`. In a range, both the lower bound l and upper bound u are included; and if a bound is omitted it defaults to the most extreme valid value. The cartesian product of the indices specified in each dimension determines the target of the operation.",examples:["d = [1, 2; 3, 4]","e = []","e[1, 1:2] = [5, 6]","e[2, :] = [7, 8]","f = d * e","f[2, 1]","f[:, 1]","f[[1,2], [1,3]] = [9, 10; 11, 12]","f"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","trace","transpose","zeros"]},CJ={name:"trace",category:"Matrix",syntax:["trace(A)"],description:"Calculate the trace of a matrix: the sum of the elements on the main diagonal of a square matrix.",examples:["A = [1, 2, 3; -1, 2, 3; 2, 0, 3]","trace(A)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","transpose","zeros"]},NJ={name:"transpose",category:"Matrix",syntax:["x'","transpose(x)"],description:"Transpose a matrix",examples:["a = [1, 2, 3; 4, 5, 6]","a'","transpose(a)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","zeros"]},MJ={name:"zeros",category:"Matrix",syntax:["zeros(m)","zeros(m, n)","zeros(m, n, p, ...)","zeros([m])","zeros([m, n])","zeros([m, n, p, ...])"],description:"Create a matrix containing zeros.",examples:["zeros(3)","zeros(3, 5)","a = [1, 2, 3; 4, 5, 6]","zeros(size(a))"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose"]},TJ={name:"fft",category:"Matrix",syntax:["fft(x)"],description:"Calculate N-dimensional fourier transform",examples:["fft([[1, 0], [1, 0]])"],seealso:["ifft"]},OJ={name:"ifft",category:"Matrix",syntax:["ifft(x)"],description:"Calculate N-dimensional inverse fourier transform",examples:["ifft([[2, 2], [0, 0]])"],seealso:["fft"]},_J={name:"combinations",category:"Probability",syntax:["combinations(n, k)"],description:"Compute the number of combinations of n items taken k at a time",examples:["combinations(7, 5)"],seealso:["combinationsWithRep","permutations","factorial"]},$J={name:"combinationsWithRep",category:"Probability",syntax:["combinationsWithRep(n, k)"],description:"Compute the number of combinations of n items taken k at a time with replacements.",examples:["combinationsWithRep(7, 5)"],seealso:["combinations","permutations","factorial"]},FJ={name:"factorial",category:"Probability",syntax:["n!","factorial(n)"],description:"Compute the factorial of a value",examples:["5!","5 * 4 * 3 * 2 * 1","3!"],seealso:["combinations","combinationsWithRep","permutations","gamma"]},BJ={name:"gamma",category:"Probability",syntax:["gamma(n)"],description:"Compute the gamma function. For small values, the Lanczos approximation is used, and for large values the extended Stirling approximation.",examples:["gamma(4)","3!","gamma(1/2)","sqrt(pi)"],seealso:["factorial"]},RJ={name:"lgamma",category:"Probability",syntax:["lgamma(n)"],description:"Logarithm of the gamma function for real, positive numbers and complex numbers, using Lanczos approximation for numbers and Stirling series for complex numbers.",examples:["lgamma(4)","lgamma(1/2)","lgamma(i)","lgamma(complex(1.1, 2))"],seealso:["gamma"]},PJ={name:"kldivergence",category:"Probability",syntax:["kldivergence(x, y)"],description:"Calculate the Kullback-Leibler (KL) divergence between two distributions.",examples:["kldivergence([0.7,0.5,0.4], [0.2,0.9,0.5])"],seealso:[]},zJ={name:"multinomial",category:"Probability",syntax:["multinomial(A)"],description:"Multinomial Coefficients compute the number of ways of picking a1, a2, ..., ai unordered outcomes from `n` possibilities. multinomial takes one array of integers as an argument. The following condition must be enforced: every ai > 0.",examples:["multinomial([1, 2, 1])"],seealso:["combinations","factorial"]},IJ={name:"permutations",category:"Probability",syntax:["permutations(n)","permutations(n, k)"],description:"Compute the number of permutations of n items taken k at a time",examples:["permutations(5)","permutations(5, 3)"],seealso:["combinations","combinationsWithRep","factorial"]},LJ={name:"pickRandom",category:"Probability",syntax:["pickRandom(array)","pickRandom(array, number)","pickRandom(array, weights)","pickRandom(array, number, weights)","pickRandom(array, weights, number)"],description:"Pick a random entry from a given array.",examples:["pickRandom(0:10)","pickRandom([1, 3, 1, 6])","pickRandom([1, 3, 1, 6], 2)","pickRandom([1, 3, 1, 6], [2, 3, 2, 1])","pickRandom([1, 3, 1, 6], 2, [2, 3, 2, 1])","pickRandom([1, 3, 1, 6], [2, 3, 2, 1], 2)"],seealso:["random","randomInt"]},qJ={name:"random",category:"Probability",syntax:["random()","random(max)","random(min, max)","random(size)","random(size, max)","random(size, min, max)"],description:"Return a random number.",examples:["random()","random(10, 20)","random([2, 3])"],seealso:["pickRandom","randomInt"]},kJ={name:"randomInt",category:"Probability",syntax:["randomInt(max)","randomInt(min, max)","randomInt(size)","randomInt(size, max)","randomInt(size, min, max)"],description:"Return a random integer number",examples:["randomInt(10, 20)","randomInt([2, 3], 10)"],seealso:["pickRandom","random"]},UJ={name:"compare",category:"Relational",syntax:["compare(x, y)"],description:"Compare two values. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:["compare(2, 3)","compare(3, 2)","compare(2, 2)","compare(5cm, 40mm)","compare(2, [1, 2, 3])"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compareNatural","compareText"]},HJ={name:"compareNatural",category:"Relational",syntax:["compareNatural(x, y)"],description:"Compare two values of any type in a deterministic, natural way. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:["compareNatural(2, 3)","compareNatural(3, 2)","compareNatural(2, 2)","compareNatural(5cm, 40mm)",'compareNatural("2", "10")',"compareNatural(2 + 3i, 2 + 4i)","compareNatural([1, 2, 4], [1, 2, 3])","compareNatural([1, 5], [1, 2, 3])","compareNatural([1, 2], [1, 2])","compareNatural({a: 2}, {a: 4})"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compare","compareText"]},jJ={name:"compareText",category:"Relational",syntax:["compareText(x, y)"],description:"Compare two strings lexically. Comparison is case sensitive. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:['compareText("B", "A")','compareText("A", "B")','compareText("A", "A")','compareText("2", "10")','compare("2", "10")',"compare(2, 10)",'compareNatural("2", "10")','compareText("B", ["A", "B", "C"])'],seealso:["compare","compareNatural"]},VJ={name:"deepEqual",category:"Relational",syntax:["deepEqual(x, y)"],description:"Check equality of two matrices element wise. Returns true if the size of both matrices is equal and when and each of the elements are equal.",examples:["deepEqual([1,3,4], [1,3,4])","deepEqual([1,3,4], [1,3])"],seealso:["equal","unequal","smaller","larger","smallerEq","largerEq","compare"]},GJ={name:"equal",category:"Relational",syntax:["x == y","equal(x, y)"],description:"Check equality of two values. Returns true if the values are equal, and false if not.",examples:["2+2 == 3","2+2 == 4","a = 3.2","b = 6-2.8","a == b","50cm == 0.5m"],seealso:["unequal","smaller","larger","smallerEq","largerEq","compare","deepEqual","equalText"]},WJ={name:"equalText",category:"Relational",syntax:["equalText(x, y)"],description:"Check equality of two strings. Comparison is case sensitive. Returns true if the values are equal, and false if not.",examples:['equalText("Hello", "Hello")','equalText("a", "A")','equal("2e3", "2000")','equalText("2e3", "2000")','equalText("B", ["A", "B", "C"])'],seealso:["compare","compareNatural","compareText","equal"]},ZJ={name:"larger",category:"Relational",syntax:["x > y","larger(x, y)"],description:"Check if value x is larger than y. Returns true if x is larger than y, and false if not.",examples:["2 > 3","5 > 2*2","a = 3.3","b = 6-2.8","(a > b)","(b < a)","5 cm > 2 inch"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compare"]},YJ={name:"largerEq",category:"Relational",syntax:["x >= y","largerEq(x, y)"],description:"Check if value x is larger or equal to y. Returns true if x is larger or equal to y, and false if not.",examples:["2 >= 1+1","2 > 1+1","a = 3.2","b = 6-2.8","(a >= b)"],seealso:["equal","unequal","smallerEq","smaller","compare"]},XJ={name:"smaller",category:"Relational",syntax:["x < y","smaller(x, y)"],description:"Check if value x is smaller than value y. Returns true if x is smaller than y, and false if not.",examples:["2 < 3","5 < 2*2","a = 3.3","b = 6-2.8","(a < b)","5 cm < 2 inch"],seealso:["equal","unequal","larger","smallerEq","largerEq","compare"]},KJ={name:"smallerEq",category:"Relational",syntax:["x <= y","smallerEq(x, y)"],description:"Check if value x is smaller or equal to value y. Returns true if x is smaller than y, and false if not.",examples:["2 <= 1+1","2 < 1+1","a = 3.2","b = 6-2.8","(a <= b)"],seealso:["equal","unequal","larger","smaller","largerEq","compare"]},JJ={name:"unequal",category:"Relational",syntax:["x != y","unequal(x, y)"],description:"Check unequality of two values. Returns true if the values are unequal, and false if they are equal.",examples:["2+2 != 3","2+2 != 4","a = 3.2","b = 6-2.8","a != b","50cm != 0.5m","5 cm != 2 inch"],seealso:["equal","smaller","larger","smallerEq","largerEq","compare","deepEqual"]},QJ={name:"setCartesian",category:"Set",syntax:["setCartesian(set1, set2)"],description:"Create the cartesian product of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays and the values will be sorted in ascending order before the operation.",examples:["setCartesian([1, 2], [3, 4])"],seealso:["setUnion","setIntersect","setDifference","setPowerset"]},eQ={name:"setDifference",category:"Set",syntax:["setDifference(set1, set2)"],description:"Create the difference of two (multi)sets: every element of set1, that is not the element of set2. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setDifference([1, 2, 3, 4], [3, 4, 5, 6])","setDifference([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setIntersect","setSymDifference"]},rQ={name:"setDistinct",category:"Set",syntax:["setDistinct(set)"],description:"Collect the distinct elements of a multiset. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setDistinct([1, 1, 1, 2, 2, 3])"],seealso:["setMultiplicity"]},tQ={name:"setIntersect",category:"Set",syntax:["setIntersect(set1, set2)"],description:"Create the intersection of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setIntersect([1, 2, 3, 4], [3, 4, 5, 6])","setIntersect([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setDifference"]},nQ={name:"setIsSubset",category:"Set",syntax:["setIsSubset(set1, set2)"],description:"Check whether a (multi)set is a subset of another (multi)set: every element of set1 is the element of set2. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setIsSubset([1, 2], [3, 4, 5, 6])","setIsSubset([3, 4], [3, 4, 5, 6])"],seealso:["setUnion","setIntersect","setDifference"]},aQ={name:"setMultiplicity",category:"Set",syntax:["setMultiplicity(element, set)"],description:"Count the multiplicity of an element in a multiset. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setMultiplicity(1, [1, 2, 2, 4])","setMultiplicity(2, [1, 2, 2, 4])"],seealso:["setDistinct","setSize"]},iQ={name:"setPowerset",category:"Set",syntax:["setPowerset(set)"],description:"Create the powerset of a (multi)set: the powerset contains very possible subsets of a (multi)set. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setPowerset([1, 2, 3])"],seealso:["setCartesian"]},oQ={name:"setSize",category:"Set",syntax:["setSize(set)","setSize(set, unique)"],description:'Count the number of elements of a (multi)set. When the second parameter "unique" is true, count only the unique values. A multi-dimension array will be converted to a single-dimension array before the operation.',examples:["setSize([1, 2, 2, 4])","setSize([1, 2, 2, 4], true)"],seealso:["setUnion","setIntersect","setDifference"]},sQ={name:"setSymDifference",category:"Set",syntax:["setSymDifference(set1, set2)"],description:"Create the symmetric difference of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setSymDifference([1, 2, 3, 4], [3, 4, 5, 6])","setSymDifference([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setIntersect","setDifference"]},uQ={name:"setUnion",category:"Set",syntax:["setUnion(set1, set2)"],description:"Create the union of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setUnion([1, 2, 3, 4], [3, 4, 5, 6])","setUnion([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setIntersect","setDifference"]},lQ={name:"zpk2tf",category:"Signal",syntax:["zpk2tf(z, p, k)"],description:"Compute the transfer function of a zero-pole-gain model.",examples:["zpk2tf([1, 2], [-1, -2], 1)","zpk2tf([1, 2], [-1, -2])","zpk2tf([1 - 3i, 2 + 2i], [-1, -2])"],seealso:[]},cQ={name:"freqz",category:"Signal",syntax:["freqz(b, a)","freqz(b, a, w)"],description:"Calculates the frequency response of a filter given its numerator and denominator coefficients.",examples:["freqz([1, 2], [1, 2, 3])","freqz([1, 2], [1, 2, 3], [0, 1])","freqz([1, 2], [1, 2, 3], 512)"],seealso:[]},fQ={name:"erf",category:"Special",syntax:["erf(x)"],description:"Compute the erf function of a value using a rational Chebyshev approximations for different intervals of x",examples:["erf(0.2)","erf(-0.5)","erf(4)"],seealso:[]},pQ={name:"zeta",category:"Special",syntax:["zeta(s)"],description:"Compute the Riemann Zeta Function using an infinite series and Riemanns Functional Equation for the entire complex plane",examples:["zeta(0.2)","zeta(-0.5)","zeta(4)"],seealso:[]},dQ={name:"mad",category:"Statistics",syntax:["mad(a, b, c, ...)","mad(A)"],description:"Compute the median absolute deviation of a matrix or a list with values. The median absolute deviation is defined as the median of the absolute deviations from the median.",examples:["mad(10, 20, 30)","mad([1, 2, 3])"],seealso:["mean","median","std","abs"]},vQ={name:"max",category:"Statistics",syntax:["max(a, b, c, ...)","max(A)","max(A, dimension)"],description:"Compute the maximum value of a list of values.",examples:["max(2, 3, 4, 1)","max([2, 3, 4, 1])","max([2, 5; 4, 3])","max([2, 5; 4, 3], 1)","max([2, 5; 4, 3], 2)","max(2.7, 7.1, -4.5, 2.0, 4.1)","min(2.7, 7.1, -4.5, 2.0, 4.1)"],seealso:["mean","median","min","prod","std","sum","variance"]},mQ={name:"mean",category:"Statistics",syntax:["mean(a, b, c, ...)","mean(A)","mean(A, dimension)"],description:"Compute the arithmetic mean of a list of values.",examples:["mean(2, 3, 4, 1)","mean([2, 3, 4, 1])","mean([2, 5; 4, 3])","mean([2, 5; 4, 3], 1)","mean([2, 5; 4, 3], 2)","mean([1.0, 2.7, 3.2, 4.0])"],seealso:["max","median","min","prod","std","sum","variance"]},hQ={name:"median",category:"Statistics",syntax:["median(a, b, c, ...)","median(A)"],description:"Compute the median of all values. The values are sorted and the middle value is returned. In case of an even number of values, the average of the two middle values is returned.",examples:["median(5, 2, 7)","median([3, -1, 5, 7])"],seealso:["max","mean","min","prod","std","sum","variance","quantileSeq"]},gQ={name:"min",category:"Statistics",syntax:["min(a, b, c, ...)","min(A)","min(A, dimension)"],description:"Compute the minimum value of a list of values.",examples:["min(2, 3, 4, 1)","min([2, 3, 4, 1])","min([2, 5; 4, 3])","min([2, 5; 4, 3], 1)","min([2, 5; 4, 3], 2)","min(2.7, 7.1, -4.5, 2.0, 4.1)","max(2.7, 7.1, -4.5, 2.0, 4.1)"],seealso:["max","mean","median","prod","std","sum","variance"]},yQ={name:"mode",category:"Statistics",syntax:["mode(a, b, c, ...)","mode(A)","mode(A, a, b, B, c, ...)"],description:"Computes the mode of all values as an array. In case mode being more than one, multiple values are returned in an array.",examples:["mode(2, 1, 4, 3, 1)","mode([1, 2.7, 3.2, 4, 2.7])","mode(1, 4, 6, 1, 6)"],seealso:["max","mean","min","median","prod","std","sum","variance"]},bQ={name:"prod",category:"Statistics",syntax:["prod(a, b, c, ...)","prod(A)"],description:"Compute the product of all values.",examples:["prod(2, 3, 4)","prod([2, 3, 4])","prod([2, 5; 4, 3])"],seealso:["max","mean","min","median","min","std","sum","variance"]},xQ={name:"quantileSeq",category:"Statistics",syntax:["quantileSeq(A, prob[, sorted])","quantileSeq(A, [prob1, prob2, ...][, sorted])","quantileSeq(A, N[, sorted])"],description:`Compute the prob order quantile of a matrix or a list with values. The sequence is sorted and the middle value is returned. Supported types of sequence values are: Number, BigNumber, Unit Supported types of probablity are: Number, BigNumber.
|
|
139
139
|
|
|
140
|
-
In case of a (multi dimensional) array or matrix, the prob order quantile of all elements will be calculated.`,examples:["quantileSeq([3, -1, 5, 7], 0.5)","quantileSeq([3, -1, 5, 7], [1/3, 2/3])","quantileSeq([3, -1, 5, 7], 2)","quantileSeq([-1, 3, 5, 7], 0.5, true)"],seealso:["mean","median","min","max","prod","std","sum","variance"]},wQ={name:"std",category:"Statistics",syntax:["std(a, b, c, ...)","std(A)","std(A, dimension)","std(A, normalization)","std(A, dimension, normalization)"],description:'Compute the standard deviation of all values, defined as std(A) = sqrt(variance(A)). Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased".',examples:["std(2, 4, 6)","std([2, 4, 6, 8])",'std([2, 4, 6, 8], "uncorrected")','std([2, 4, 6, 8], "biased")',"std([1, 2, 3; 4, 5, 6])"],seealso:["max","mean","min","median","prod","sum","variance"]},EQ={name:"cumsum",category:"Statistics",syntax:["cumsum(a, b, c, ...)","cumsum(A)"],description:"Compute the cumulative sum of all values.",examples:["cumsum(2, 3, 4, 1)","cumsum([2, 3, 4, 1])","cumsum([1, 2; 3, 4])","cumsum([1, 2; 3, 4], 1)","cumsum([1, 2; 3, 4], 2)"],seealso:["max","mean","median","min","prod","std","sum","variance"]},SQ={name:"sum",category:"Statistics",syntax:["sum(a, b, c, ...)","sum(A)","sum(A, dimension)"],description:"Compute the sum of all values.",examples:["sum(2, 3, 4, 1)","sum([2, 3, 4, 1])","sum([2, 5; 4, 3])"],seealso:["max","mean","median","min","prod","std","sum","variance"]},AQ={name:"variance",category:"Statistics",syntax:["variance(a, b, c, ...)","variance(A)","variance(A, dimension)","variance(A, normalization)","variance(A, dimension, normalization)"],description:'Compute the variance of all values. Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased".',examples:["variance(2, 4, 6)","variance([2, 4, 6, 8])",'variance([2, 4, 6, 8], "uncorrected")','variance([2, 4, 6, 8], "biased")',"variance([1, 2, 3; 4, 5, 6])"],seealso:["max","mean","min","median","min","prod","std","sum"]},DQ={name:"corr",category:"Statistics",syntax:["corr(A,B)"],description:"Compute the correlation coefficient of a two list with values, For matrices, the matrix correlation coefficient is calculated.",examples:["corr([2, 4, 6, 8],[1, 2, 3, 6])","corr(matrix([[1, 2.2, 3, 4.8, 5], [1, 2, 3, 4, 5]]), matrix([[4, 5.3, 6.6, 7, 8], [1, 2, 3, 4, 5]]))"],seealso:["max","mean","min","median","min","prod","std","sum"]},CQ={name:"acos",category:"Trigonometry",syntax:["acos(x)"],description:"Compute the inverse cosine of a value in radians.",examples:["acos(0.5)","acos(cos(2.3))"],seealso:["cos","atan","asin"]},NQ={name:"acosh",category:"Trigonometry",syntax:["acosh(x)"],description:"Calculate the hyperbolic arccos of a value, defined as `acosh(x) = ln(sqrt(x^2 - 1) + x)`.",examples:["acosh(1.5)"],seealso:["cosh","asinh","atanh"]},MQ={name:"acot",category:"Trigonometry",syntax:["acot(x)"],description:"Calculate the inverse cotangent of a value.",examples:["acot(0.5)","acot(cot(0.5))","acot(2)"],seealso:["cot","atan"]},TQ={name:"acoth",category:"Trigonometry",syntax:["acoth(x)"],description:"Calculate the hyperbolic arccotangent of a value, defined as `acoth(x) = (ln((x+1)/x) + ln(x/(x-1))) / 2`.",examples:["acoth(2)","acoth(0.5)"],seealso:["acsch","asech"]},OQ={name:"acsc",category:"Trigonometry",syntax:["acsc(x)"],description:"Calculate the inverse cotangent of a value.",examples:["acsc(2)","acsc(csc(0.5))","acsc(0.5)"],seealso:["csc","asin","asec"]},_Q={name:"acsch",category:"Trigonometry",syntax:["acsch(x)"],description:"Calculate the hyperbolic arccosecant of a value, defined as `acsch(x) = ln(1/x + sqrt(1/x^2 + 1))`.",examples:["acsch(0.5)"],seealso:["asech","acoth"]},$Q={name:"asec",category:"Trigonometry",syntax:["asec(x)"],description:"Calculate the inverse secant of a value.",examples:["asec(0.5)","asec(sec(0.5))","asec(2)"],seealso:["acos","acot","acsc"]},FQ={name:"asech",category:"Trigonometry",syntax:["asech(x)"],description:"Calculate the inverse secant of a value.",examples:["asech(0.5)"],seealso:["acsch","acoth"]},BQ={name:"asin",category:"Trigonometry",syntax:["asin(x)"],description:"Compute the inverse sine of a value in radians.",examples:["asin(0.5)","asin(sin(0.5))"],seealso:["sin","acos","atan"]},RQ={name:"asinh",category:"Trigonometry",syntax:["asinh(x)"],description:"Calculate the hyperbolic arcsine of a value, defined as `asinh(x) = ln(x + sqrt(x^2 + 1))`.",examples:["asinh(0.5)"],seealso:["acosh","atanh"]},PQ={name:"atan",category:"Trigonometry",syntax:["atan(x)"],description:"Compute the inverse tangent of a value in radians.",examples:["atan(0.5)","atan(tan(0.5))"],seealso:["tan","acos","asin"]},zQ={name:"atan2",category:"Trigonometry",syntax:["atan2(y, x)"],description:"Computes the principal value of the arc tangent of y/x in radians.",examples:["atan2(2, 2) / pi","angle = 60 deg in rad","x = cos(angle)","y = sin(angle)","atan2(y, x)"],seealso:["sin","cos","tan"]},IQ={name:"atanh",category:"Trigonometry",syntax:["atanh(x)"],description:"Calculate the hyperbolic arctangent of a value, defined as `atanh(x) = ln((1 + x)/(1 - x)) / 2`.",examples:["atanh(0.5)"],seealso:["acosh","asinh"]},LQ={name:"cos",category:"Trigonometry",syntax:["cos(x)"],description:"Compute the cosine of x in radians.",examples:["cos(2)","cos(pi / 4) ^ 2","cos(180 deg)","cos(60 deg)","sin(0.2)^2 + cos(0.2)^2"],seealso:["acos","sin","tan"]},qQ={name:"cosh",category:"Trigonometry",syntax:["cosh(x)"],description:"Compute the hyperbolic cosine of x in radians.",examples:["cosh(0.5)"],seealso:["sinh","tanh","coth"]},kQ={name:"cot",category:"Trigonometry",syntax:["cot(x)"],description:"Compute the cotangent of x in radians. Defined as 1/tan(x)",examples:["cot(2)","1 / tan(2)"],seealso:["sec","csc","tan"]},UQ={name:"coth",category:"Trigonometry",syntax:["coth(x)"],description:"Compute the hyperbolic cotangent of x in radians.",examples:["coth(2)","1 / tanh(2)"],seealso:["sech","csch","tanh"]},HQ={name:"csc",category:"Trigonometry",syntax:["csc(x)"],description:"Compute the cosecant of x in radians. Defined as 1/sin(x)",examples:["csc(2)","1 / sin(2)"],seealso:["sec","cot","sin"]},jQ={name:"csch",category:"Trigonometry",syntax:["csch(x)"],description:"Compute the hyperbolic cosecant of x in radians. Defined as 1/sinh(x)",examples:["csch(2)","1 / sinh(2)"],seealso:["sech","coth","sinh"]},VQ={name:"sec",category:"Trigonometry",syntax:["sec(x)"],description:"Compute the secant of x in radians. Defined as 1/cos(x)",examples:["sec(2)","1 / cos(2)"],seealso:["cot","csc","cos"]},GQ={name:"sech",category:"Trigonometry",syntax:["sech(x)"],description:"Compute the hyperbolic secant of x in radians. Defined as 1/cosh(x)",examples:["sech(2)","1 / cosh(2)"],seealso:["coth","csch","cosh"]},WQ={name:"sin",category:"Trigonometry",syntax:["sin(x)"],description:"Compute the sine of x in radians.",examples:["sin(2)","sin(pi / 4) ^ 2","sin(90 deg)","sin(30 deg)","sin(0.2)^2 + cos(0.2)^2"],seealso:["asin","cos","tan"]},ZQ={name:"sinh",category:"Trigonometry",syntax:["sinh(x)"],description:"Compute the hyperbolic sine of x in radians.",examples:["sinh(0.5)"],seealso:["cosh","tanh"]},YQ={name:"tan",category:"Trigonometry",syntax:["tan(x)"],description:"Compute the tangent of x in radians.",examples:["tan(0.5)","sin(0.5) / cos(0.5)","tan(pi / 4)","tan(45 deg)"],seealso:["atan","sin","cos"]},XQ={name:"tanh",category:"Trigonometry",syntax:["tanh(x)"],description:"Compute the hyperbolic tangent of x in radians.",examples:["tanh(0.5)","sinh(0.5) / cosh(0.5)"],seealso:["sinh","cosh"]},KQ={name:"to",category:"Units",syntax:["x to unit","to(x, unit)"],description:"Change the unit of a value.",examples:["5 inch to cm","3.2kg to g","16 bytes in bits"],seealso:[]},JQ={name:"bin",category:"Utils",syntax:["bin(value)"],description:"Format a number as binary",examples:["bin(2)"],seealso:["oct","hex"]},QQ={name:"clone",category:"Utils",syntax:["clone(x)"],description:"Clone a variable. Creates a copy of primitive variables,and a deep copy of matrices",examples:["clone(3.5)","clone(2 - 4i)","clone(45 deg)","clone([1, 2; 3, 4])",'clone("hello world")'],seealso:[]},eee={name:"format",category:"Utils",syntax:["format(value)","format(value, precision)"],description:"Format a value of any type as string.",examples:["format(2.3)","format(3 - 4i)","format([])","format(pi, 3)"],seealso:["print"]},ree={name:"hasNumericValue",category:"Utils",syntax:["hasNumericValue(x)"],description:"Test whether a value is an numeric value. In case of a string, true is returned if the string contains a numeric value.",examples:["hasNumericValue(2)",'hasNumericValue("2")','isNumeric("2")',"hasNumericValue(0)","hasNumericValue(bignumber(500))","hasNumericValue(fraction(0.125))","hasNumericValue(2 + 3i)",'hasNumericValue([2.3, "foo", false])'],seealso:["isInteger","isZero","isNegative","isPositive","isNaN","isNumeric"]},tee={name:"hex",category:"Utils",syntax:["hex(value)"],description:"Format a number as hexadecimal",examples:["hex(240)"],seealso:["bin","oct"]},nee={name:"isInteger",category:"Utils",syntax:["isInteger(x)"],description:"Test whether a value is an integer number.",examples:["isInteger(2)","isInteger(3.5)","isInteger([3, 0.5, -2])"],seealso:["isNegative","isNumeric","isPositive","isZero"]},aee={name:"isNaN",category:"Utils",syntax:["isNaN(x)"],description:"Test whether a value is NaN (not a number)",examples:["isNaN(2)","isNaN(0 / 0)","isNaN(NaN)","isNaN(Infinity)"],seealso:["isNegative","isNumeric","isPositive","isZero"]},iee={name:"isNegative",category:"Utils",syntax:["isNegative(x)"],description:"Test whether a value is negative: smaller than zero.",examples:["isNegative(2)","isNegative(0)","isNegative(-4)","isNegative([3, 0.5, -2])"],seealso:["isInteger","isNumeric","isPositive","isZero"]},oee={name:"isNumeric",category:"Utils",syntax:["isNumeric(x)"],description:"Test whether a value is a numeric value. Returns true when the input is a number, BigNumber, Fraction, or boolean.",examples:["isNumeric(2)",'isNumeric("2")','hasNumericValue("2")',"isNumeric(0)","isNumeric(bignumber(500))","isNumeric(fraction(0.125))","isNumeric(2 + 3i)",'isNumeric([2.3, "foo", false])'],seealso:["isInteger","isZero","isNegative","isPositive","isNaN","hasNumericValue"]},see={name:"isPositive",category:"Utils",syntax:["isPositive(x)"],description:"Test whether a value is positive: larger than zero.",examples:["isPositive(2)","isPositive(0)","isPositive(-4)","isPositive([3, 0.5, -2])"],seealso:["isInteger","isNumeric","isNegative","isZero"]},uee={name:"isPrime",category:"Utils",syntax:["isPrime(x)"],description:"Test whether a value is prime: has no divisors other than itself and one.",examples:["isPrime(3)","isPrime(-2)","isPrime([2, 17, 100])"],seealso:["isInteger","isNumeric","isNegative","isZero"]},lee={name:"isZero",category:"Utils",syntax:["isZero(x)"],description:"Test whether a value is zero.",examples:["isZero(2)","isZero(0)","isZero(-4)","isZero([3, 0, -2, 0])"],seealso:["isInteger","isNumeric","isNegative","isPositive"]},cee={name:"numeric",category:"Utils",syntax:["numeric(x)"],description:"Convert a numeric input to a specific numeric type: number, BigNumber, bigint, or Fraction.",examples:['numeric("4")','numeric("4", "number")','numeric("4", "bigint")','numeric("4", "BigNumber")','numeric("4", "Fraction")','numeric(4, "Fraction")','numeric(fraction(2, 5), "number")'],seealso:["number","bigint","fraction","bignumber","string","format"]},fee={name:"oct",category:"Utils",syntax:["oct(value)"],description:"Format a number as octal",examples:["oct(56)"],seealso:["bin","hex"]},pee={name:"print",category:"Utils",syntax:["print(template, values)","print(template, values, precision)"],description:"Interpolate values into a string template.",examples:['print("Lucy is $age years old", {age: 5})','print("The value of pi is $pi", {pi: pi}, 3)','print("Hello, $user.name!", {user: {name: "John"}})','print("Values: $1, $2, $3", [6, 9, 4])'],seealso:["format"]},dee={name:"typeOf",category:"Utils",syntax:["typeOf(x)"],description:"Get the type of a variable.",examples:["typeOf(3.5)","typeOf(2 - 4i)","typeOf(45 deg)",'typeOf("hello world")'],seealso:["getMatrixDataType"]},vee={name:"solveODE",category:"Numeric",syntax:["solveODE(func, tspan, y0)","solveODE(func, tspan, y0, options)"],description:"Numerical Integration of Ordinary Differential Equations.",examples:["f(t,y) = y","tspan = [0, 4]","solveODE(f, tspan, 1)","solveODE(f, tspan, [1, 2])",'solveODE(f, tspan, 1, { method:"RK23", maxStep:0.1 })'],seealso:["derivative","simplifyCore"]},mee={bignumber:aX,bigint:iX,boolean:oX,complex:sX,createUnit:uX,fraction:lX,index:cX,matrix:fX,number:pX,sparse:dX,splitUnit:vX,string:mX,unit:hX,e:e1,E:e1,false:HY,i:jY,Infinity:VY,LN2:WY,LN10:GY,LOG2E:YY,LOG10E:ZY,NaN:XY,null:KY,pi:r1,PI:r1,phi:JY,SQRT1_2:QY,SQRT2:eX,tau:rX,true:tX,version:nX,speedOfLight:{description:"Speed of light in vacuum",examples:["speedOfLight"]},gravitationConstant:{description:"Newtonian constant of gravitation",examples:["gravitationConstant"]},planckConstant:{description:"Planck constant",examples:["planckConstant"]},reducedPlanckConstant:{description:"Reduced Planck constant",examples:["reducedPlanckConstant"]},magneticConstant:{description:"Magnetic constant (vacuum permeability)",examples:["magneticConstant"]},electricConstant:{description:"Electric constant (vacuum permeability)",examples:["electricConstant"]},vacuumImpedance:{description:"Characteristic impedance of vacuum",examples:["vacuumImpedance"]},coulomb:{description:"Coulomb's constant",examples:["coulomb"]},elementaryCharge:{description:"Elementary charge",examples:["elementaryCharge"]},bohrMagneton:{description:"Borh magneton",examples:["bohrMagneton"]},conductanceQuantum:{description:"Conductance quantum",examples:["conductanceQuantum"]},inverseConductanceQuantum:{description:"Inverse conductance quantum",examples:["inverseConductanceQuantum"]},magneticFluxQuantum:{description:"Magnetic flux quantum",examples:["magneticFluxQuantum"]},nuclearMagneton:{description:"Nuclear magneton",examples:["nuclearMagneton"]},klitzing:{description:"Von Klitzing constant",examples:["klitzing"]},bohrRadius:{description:"Borh radius",examples:["bohrRadius"]},classicalElectronRadius:{description:"Classical electron radius",examples:["classicalElectronRadius"]},electronMass:{description:"Electron mass",examples:["electronMass"]},fermiCoupling:{description:"Fermi coupling constant",examples:["fermiCoupling"]},fineStructure:{description:"Fine-structure constant",examples:["fineStructure"]},hartreeEnergy:{description:"Hartree energy",examples:["hartreeEnergy"]},protonMass:{description:"Proton mass",examples:["protonMass"]},deuteronMass:{description:"Deuteron Mass",examples:["deuteronMass"]},neutronMass:{description:"Neutron mass",examples:["neutronMass"]},quantumOfCirculation:{description:"Quantum of circulation",examples:["quantumOfCirculation"]},rydberg:{description:"Rydberg constant",examples:["rydberg"]},thomsonCrossSection:{description:"Thomson cross section",examples:["thomsonCrossSection"]},weakMixingAngle:{description:"Weak mixing angle",examples:["weakMixingAngle"]},efimovFactor:{description:"Efimov factor",examples:["efimovFactor"]},atomicMass:{description:"Atomic mass constant",examples:["atomicMass"]},avogadro:{description:"Avogadro's number",examples:["avogadro"]},boltzmann:{description:"Boltzmann constant",examples:["boltzmann"]},faraday:{description:"Faraday constant",examples:["faraday"]},firstRadiation:{description:"First radiation constant",examples:["firstRadiation"]},loschmidt:{description:"Loschmidt constant at T=273.15 K and p=101.325 kPa",examples:["loschmidt"]},gasConstant:{description:"Gas constant",examples:["gasConstant"]},molarPlanckConstant:{description:"Molar Planck constant",examples:["molarPlanckConstant"]},molarVolume:{description:"Molar volume of an ideal gas at T=273.15 K and p=101.325 kPa",examples:["molarVolume"]},sackurTetrode:{description:"Sackur-Tetrode constant at T=1 K and p=101.325 kPa",examples:["sackurTetrode"]},secondRadiation:{description:"Second radiation constant",examples:["secondRadiation"]},stefanBoltzmann:{description:"Stefan-Boltzmann constant",examples:["stefanBoltzmann"]},wienDisplacement:{description:"Wien displacement law constant",examples:["wienDisplacement"]},molarMass:{description:"Molar mass constant",examples:["molarMass"]},molarMassC12:{description:"Molar mass constant of carbon-12",examples:["molarMassC12"]},gravity:{description:"Standard acceleration of gravity (standard acceleration of free-fall on Earth)",examples:["gravity"]},planckLength:{description:"Planck length",examples:["planckLength"]},planckMass:{description:"Planck mass",examples:["planckMass"]},planckTime:{description:"Planck time",examples:["planckTime"]},planckCharge:{description:"Planck charge",examples:["planckCharge"]},planckTemperature:{description:"Planck temperature",examples:["planckTemperature"]},derivative:xX,lsolve:EX,lsolveAll:SX,lup:AX,lusolve:DX,leafCount:wX,polynomialRoot:CX,resolve:TX,simplify:OX,simplifyConstant:_X,simplifyCore:$X,symbolicEqual:BX,rationalize:MX,slu:FX,usolve:RX,usolveAll:PX,qr:NX,abs:zX,add:IX,cbrt:LX,ceil:qX,cube:kX,divide:UX,dotDivide:HX,dotMultiply:jX,dotPow:VX,exp:GX,expm:WX,expm1:ZX,fix:YX,floor:XX,gcd:KX,hypot:JX,lcm:eK,log:rK,log2:aK,log1p:nK,log10:tK,mod:iK,multiply:oK,norm:sK,nthRoot:uK,nthRoots:lK,pow:cK,round:fK,sign:pK,sqrt:dK,sqrtm:vK,square:yK,subtract:bK,unaryMinus:xK,unaryPlus:wK,xgcd:EK,invmod:QX,bitAnd:SK,bitNot:AK,bitOr:DK,bitXor:CK,leftShift:NK,rightArithShift:MK,rightLogShift:TK,bellNumbers:OK,catalan:_K,composition:$K,stirlingS2:FK,config:gX,import:yX,typed:bX,arg:BK,conj:RK,re:zK,im:PK,evaluate:IK,help:LK,distance:qK,intersect:kK,and:UK,not:HK,or:jK,xor:VK,concat:WK,count:ZK,cross:YK,column:GK,ctranspose:XK,det:KK,diag:JK,diff:QK,dot:eJ,getMatrixDataType:iJ,identity:oJ,filter:tJ,flatten:nJ,forEach:aJ,inv:sJ,pinv:uJ,eigs:rJ,kron:lJ,matrixFromFunction:pJ,matrixFromRows:dJ,matrixFromColumns:fJ,map:cJ,ones:vJ,partitionSelect:mJ,range:hJ,resize:yJ,reshape:gJ,rotate:bJ,rotationMatrix:xJ,row:wJ,size:EJ,sort:SJ,squeeze:AJ,subset:DJ,trace:CJ,transpose:NJ,zeros:MJ,fft:TJ,ifft:OJ,sylvester:mK,schur:hK,lyap:gK,solveODE:vee,combinations:_J,combinationsWithRep:$J,factorial:FJ,gamma:BJ,kldivergence:PJ,lgamma:RJ,multinomial:zJ,permutations:IJ,pickRandom:LJ,random:qJ,randomInt:kJ,compare:UJ,compareNatural:HJ,compareText:jJ,deepEqual:VJ,equal:GJ,equalText:WJ,larger:ZJ,largerEq:YJ,smaller:XJ,smallerEq:KJ,unequal:JJ,setCartesian:QJ,setDifference:eQ,setDistinct:rQ,setIntersect:tQ,setIsSubset:nQ,setMultiplicity:aQ,setPowerset:iQ,setSize:oQ,setSymDifference:sQ,setUnion:uQ,zpk2tf:lQ,freqz:cQ,erf:fQ,zeta:pQ,cumsum:EQ,mad:dQ,max:vQ,mean:mQ,median:hQ,min:gQ,mode:yQ,prod:bQ,quantileSeq:xQ,std:wQ,sum:SQ,variance:AQ,corr:DQ,acos:CQ,acosh:NQ,acot:MQ,acoth:TQ,acsc:OQ,acsch:_Q,asec:$Q,asech:FQ,asin:BQ,asinh:RQ,atan:PQ,atanh:IQ,atan2:zQ,cos:LQ,cosh:qQ,cot:kQ,coth:UQ,csc:HQ,csch:jQ,sec:VQ,sech:GQ,sin:WQ,sinh:ZQ,tan:YQ,tanh:XQ,to:KQ,clone:QQ,format:eee,bin:JQ,oct:fee,hex:tee,isNaN:aee,isInteger:nee,isNegative:iee,isNumeric:oee,hasNumericValue:ree,isPositive:see,isPrime:uee,isZero:lee,print:pee,typeOf:dee,numeric:cee},t1="help",hee=["typed","mathWithTransform","Help"],gee=L(t1,hee,e=>{var{typed:r,mathWithTransform:t,Help:n}=e;return r(t1,{any:function(i){var o,s=i;if(typeof i!="string"){for(o in t)if(Re(t,o)&&i===t[o]){s=o;break}}var u=ct(mee,s);if(!u){var l=typeof s=="function"?s.name:s;throw new Error('No documentation found on "'+l+'"')}return new n(u)}})}),n1="chain",yee=["typed","Chain"],bee=L(n1,yee,e=>{var{typed:r,Chain:t}=e;return r(n1,{"":function(){return new t},any:function(a){return new t(a)}})}),a1="det",xee=["typed","matrix","subtractScalar","multiply","divideScalar","isZero","unaryMinus"],wee=L(a1,xee,e=>{var{typed:r,matrix:t,subtractScalar:n,multiply:a,divideScalar:i,isZero:o,unaryMinus:s}=e;return r(a1,{any:function(c){return We(c)},"Array | Matrix":function(c){var f;switch(Ue(c)?f=c.size():Array.isArray(c)?(c=t(c),f=c.size()):f=[],f.length){case 0:return We(c);case 1:if(f[0]===1)return We(c.valueOf()[0]);if(f[0]===0)return 1;throw new RangeError("Matrix must be square (size: "+tr(f)+")");case 2:{var p=f[0],d=f[1];if(p===d)return u(c.clone().valueOf(),p);if(d===0)return 1;throw new RangeError("Matrix must be square (size: "+tr(f)+")")}default:throw new RangeError("Matrix must be two dimensional (size: "+tr(f)+")")}}});function u(l,c,f){if(c===1)return We(l[0][0]);if(c===2)return n(a(l[0][0],l[1][1]),a(l[1][0],l[0][1]));for(var p=!1,d=new Array(c).fill(0).map((D,A)=>A),v=0;v<c;v++){var m=d[v];if(o(l[m][v])){var g=void 0;for(g=v+1;g<c;g++)if(!o(l[d[g]][v])){m=d[g],d[g]=d[v],d[v]=m,p=!p;break}if(g===c)return l[m][v]}for(var y=l[m][v],E=v===0?1:l[d[v-1]][v-1],h=v+1;h<c;h++)for(var w=d[h],x=v+1;x<c;x++)l[w][x]=i(n(a(l[w][x],y),a(l[w][v],l[m][x])),E)}var b=l[d[c-1]][c-1];return p?s(b):b}}),i1="inv",Eee=["typed","matrix","divideScalar","addScalar","multiply","unaryMinus","det","identity","abs"],See=L(i1,Eee,e=>{var{typed:r,matrix:t,divideScalar:n,addScalar:a,multiply:i,unaryMinus:o,det:s,identity:u,abs:l}=e;return r(i1,{"Array | Matrix":function(p){var d=Ue(p)?p.size():Ke(p);switch(d.length){case 1:if(d[0]===1)return Ue(p)?t([n(1,p.valueOf()[0])]):[n(1,p[0])];throw new RangeError("Matrix must be square (size: "+tr(d)+")");case 2:{var v=d[0],m=d[1];if(v===m)return Ue(p)?t(c(p.valueOf(),v,m),p.storage()):c(p,v,m);throw new RangeError("Matrix must be square (size: "+tr(d)+")")}default:throw new RangeError("Matrix must be two dimensional (size: "+tr(d)+")")}},any:function(p){return n(1,p)}});function c(f,p,d){var v,m,g,y,E;if(p===1){if(y=f[0][0],y===0)throw Error("Cannot calculate inverse, determinant is zero");return[[n(1,y)]]}else if(p===2){var h=s(f);if(h===0)throw Error("Cannot calculate inverse, determinant is zero");return[[n(f[1][1],h),n(o(f[0][1]),h)],[n(o(f[1][0]),h),n(f[0][0],h)]]}else{var w=f.concat();for(v=0;v<p;v++)w[v]=w[v].concat();for(var x=u(p).valueOf(),b=0;b<d;b++){var D=l(w[b][b]),A=b;for(v=b+1;v<p;)l(w[v][b])>D&&(D=l(w[v][b]),A=v),v++;if(D===0)throw Error("Cannot calculate inverse, determinant is zero");v=A,v!==b&&(E=w[b],w[b]=w[v],w[v]=E,E=x[b],x[b]=x[v],x[v]=E);var S=w[b],C=x[b];for(v=0;v<p;v++){var N=w[v],$=x[v];if(v!==b){if(N[b]!==0){for(g=n(o(N[b]),S[b]),m=b;m<d;m++)N[m]=a(N[m],i(g,S[m]));for(m=0;m<d;m++)$[m]=a($[m],i(g,C[m]))}}else{for(g=S[b],m=b;m<d;m++)N[m]=n(N[m],g);for(m=0;m<d;m++)$[m]=n($[m],g)}}}return x}}}),o1="pinv",Aee=["typed","matrix","inv","deepEqual","equal","dotDivide","dot","ctranspose","divideScalar","multiply","add","Complex"],Dee=L(o1,Aee,e=>{var{typed:r,matrix:t,inv:n,deepEqual:a,equal:i,dotDivide:o,dot:s,ctranspose:u,divideScalar:l,multiply:c,add:f,Complex:p}=e;return r(o1,{"Array | Matrix":function(h){var w=Ue(h)?h.size():Ke(h);switch(w.length){case 1:return y(h)?u(h):w[0]===1?n(h):o(u(h),s(h,h));case 2:{if(y(h))return u(h);var x=w[0],b=w[1];if(x===b)try{return n(h)}catch(D){if(!(D instanceof Error&&D.message.match(/Cannot calculate inverse, determinant is zero/)))throw D}return Ue(h)?t(d(h.valueOf(),x,b),h.storage()):d(h,x,b)}default:throw new RangeError("Matrix must be two dimensional (size: "+tr(w)+")")}},any:function(h){return i(h,0)?We(h):l(1,h)}});function d(E,h,w){var{C:x,F:b}=m(E,h,w),D=c(n(c(u(x),x)),u(x)),A=c(u(b),n(c(b,u(b))));return c(A,D)}function v(E,h,w){for(var x=We(E),b=0,D=0;D<h;D++){if(w<=b)return x;for(var A=D;g(x[A][b]);)if(A++,h===A&&(A=D,b++,w===b))return x;[x[A],x[D]]=[x[D],x[A]];for(var S=x[D][b],C=0;C<w;C++)x[D][C]=o(x[D][C],S);for(var N=0;N<h;N++)if(N!==D){S=x[N][b];for(var $=0;$<w;$++)x[N][$]=f(x[N][$],c(-1,c(S,x[D][$])))}b++}return x}function m(E,h,w){var x=v(E,h,w),b=E.map((A,S)=>A.filter((C,N)=>N<h&&!g(s(x[N],x[N])))),D=x.filter((A,S)=>!g(s(x[S],x[S])));return{C:b,F:D}}function g(E){return i(f(E,p(1,1)),f(0,p(1,1)))}function y(E){return a(f(E,p(1,1)),f(c(E,0),p(1,1)))}});function Cee(e){var{addScalar:r,subtract:t,flatten:n,multiply:a,multiplyScalar:i,divideScalar:o,sqrt:s,abs:u,bignumber:l,diag:c,size:f,reshape:p,inv:d,qr:v,usolve:m,usolveAll:g,equal:y,complex:E,larger:h,smaller:w,matrixFromColumns:x,dot:b}=e;function D(V,z,J,le){var Q=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,re=A(V,z,J,le,Q);S(V,z,J,le,Q,re);var{values:se,C:te}=C(V,z,J,le,Q);if(Q){var ae=N(V,z,te,re,se,J,le);return{values:se,eigenvectors:ae}}return{values:se}}function A(V,z,J,le,Q){var re=le==="BigNumber",se=le==="Complex",te=re?l(0):0,ae=re?l(1):se?E(1):1,fe=re?l(1):1,ne=re?l(10):2,be=i(ne,ne),$e;Q&&($e=Array(z).fill(ae));for(var k=!1;!k;){k=!0;for(var W=0;W<z;W++){for(var ue=te,j=te,K=0;K<z;K++)W!==K&&(ue=r(ue,u(V[K][W])),j=r(j,u(V[W][K])));if(!y(ue,0)&&!y(j,0)){for(var oe=fe,he=ue,me=o(j,ne),I=i(j,ne);w(he,me);)he=i(he,be),oe=i(oe,ne);for(;h(he,I);)he=o(he,be),oe=o(oe,ne);var H=w(o(r(he,j),oe),i(r(ue,j),.95));if(H){k=!1;for(var ie=o(1,oe),ce=0;ce<z;ce++)W!==ce&&(V[W][ce]=i(V[W][ce],ie),V[ce][W]=i(V[ce][W],oe));Q&&($e[W]=i($e[W],ie))}}}}return Q?c($e):null}function S(V,z,J,le,Q,re){var se=le==="BigNumber",te=le==="Complex",ae=se?l(0):te?E(0):0;se&&(J=l(J));for(var fe=0;fe<z-2;fe++){for(var ne=0,be=ae,$e=fe+1;$e<z;$e++){var k=V[$e][fe];w(u(be),u(k))&&(be=k,ne=$e)}if(!w(u(be),J)){if(ne!==fe+1){var W=V[ne];V[ne]=V[fe+1],V[fe+1]=W;for(var ue=0;ue<z;ue++){var j=V[ue][ne];V[ue][ne]=V[ue][fe+1],V[ue][fe+1]=j}if(Q){var K=re[ne];re[ne]=re[fe+1],re[fe+1]=K}}for(var oe=fe+2;oe<z;oe++){var he=o(V[oe][fe],be);if(he!==0){for(var me=0;me<z;me++)V[oe][me]=t(V[oe][me],i(he,V[fe+1][me]));for(var I=0;I<z;I++)V[I][fe+1]=r(V[I][fe+1],i(he,V[I][oe]));if(Q)for(var H=0;H<z;H++)re[oe][H]=t(re[oe][H],i(he,re[fe+1][H]))}}}}return re}function C(V,z,J,le,Q){var re=le==="BigNumber",se=le==="Complex",te=re?l(1):se?E(1):1;re&&(J=l(J));for(var ae=We(V),fe=[],ne=z,be=[],$e=Q?c(Array(z).fill(te)):void 0,k=Q?c(Array(ne).fill(te)):void 0,W=0;W<=100;){W+=1;for(var ue=ae[ne-1][ne-1],j=0;j<ne;j++)ae[j][j]=t(ae[j][j],ue);var{Q:K,R:oe}=v(ae);ae=a(oe,K);for(var he=0;he<ne;he++)ae[he][he]=r(ae[he][he],ue);if(Q&&(k=a(k,K)),ne===1||w(u(ae[ne-1][ne-2]),J)){W=0,fe.push(ae[ne-1][ne-1]),Q&&(be.unshift([[1]]),P(k,z),$e=a($e,k),ne>1&&(k=c(Array(ne-1).fill(te)))),ne-=1,ae.pop();for(var me=0;me<ne;me++)ae[me].pop()}else if(ne===2||w(u(ae[ne-2][ne-3]),J)){W=0;var I=$(ae[ne-2][ne-2],ae[ne-2][ne-1],ae[ne-1][ne-2],ae[ne-1][ne-1]);fe.push(...I),Q&&(be.unshift(B(ae[ne-2][ne-2],ae[ne-2][ne-1],ae[ne-1][ne-2],ae[ne-1][ne-1],I[0],I[1],J,le)),P(k,z),$e=a($e,k),ne>2&&(k=c(Array(ne-2).fill(te)))),ne-=2,ae.pop(),ae.pop();for(var H=0;H<ne;H++)ae[H].pop(),ae[H].pop()}if(ne===0)break}if(fe.sort((de,ve)=>+t(u(de),u(ve))),W>100){var ie=Error("The eigenvalues failed to converge. Only found these eigenvalues: "+fe.join(", "));throw ie.values=fe,ie.vectors=[],ie}var ce=Q?a($e,R(be,z)):void 0;return{values:fe,C:ce}}function N(V,z,J,le,Q,re,se){var te=d(J),ae=a(te,V,J),fe=se==="BigNumber",ne=se==="Complex",be=fe?l(0):ne?E(0):0,$e=fe?l(1):ne?E(1):1,k=[],W=[];for(var ue of Q){var j=O(k,ue,y);j===-1?(k.push(ue),W.push(1)):W[j]+=1}for(var K=[],oe=k.length,he=Array(z).fill(be),me=c(Array(z).fill($e)),I=function(){var ce=k[H],de=t(ae,a(ce,me)),ve=g(de,he);for(ve.shift();ve.length<W[H];){var Se=T(de,z,ve,re,se);if(Se===null)break;ve.push(Se)}var we=a(d(le),J);ve=ve.map(Me=>a(we,Me)),K.push(...ve.map(Me=>({value:ce,vector:n(Me)})))},H=0;H<oe;H++)I();return K}function $(V,z,J,le){var Q=r(V,le),re=t(i(V,le),i(z,J)),se=i(Q,.5),te=i(s(t(i(Q,Q),i(4,re))),.5);return[r(se,te),t(se,te)]}function B(V,z,J,le,Q,re,se,te){var ae=te==="BigNumber",fe=te==="Complex",ne=ae?l(0):fe?E(0):0,be=ae?l(1):fe?E(1):1;if(w(u(J),se))return[[be,ne],[ne,be]];if(h(u(t(Q,re)),se))return[[t(Q,le),t(re,le)],[J,J]];var $e=t(V,Q),k=t(le,Q);return w(u(z),se)&&w(u(k),se)?[[$e,be],[J,ne]]:[[z,ne],[k,be]]}function P(V,z){for(var J=0;J<V.length;J++)V[J].push(...Array(z-V[J].length).fill(0));for(var le=V.length;le<z;le++)V.push(Array(z).fill(0)),V[le][le]=1;return V}function R(V,z){for(var J=[],le=0;le<z;le++)J[le]=Array(z).fill(0);var Q=0;for(var re of V){for(var se=re.length,te=0;te<se;te++)for(var ae=0;ae<se;ae++)J[Q+te][Q+ae]=re[te][ae];Q+=se}return J}function O(V,z,J){for(var le=0;le<V.length;le++)if(J(V[le],z))return le;return-1}function T(V,z,J,le,Q){for(var re=Q==="BigNumber"?l(1e3):1e3,se,te=0;te<5;++te){se=U(z,J,Q);try{se=m(V,se)}catch{continue}if(h(q(se),re))break}if(te>=5)return null;for(te=0;;){var ae=m(V,se);if(w(q(F(se,[ae])),le))break;if(++te>=10)return null;se=Y(ae)}return se}function U(V,z,J){var le=J==="BigNumber",Q=J==="Complex",re=Array(V).fill(0).map(se=>2*Math.random()-1);return le&&(re=re.map(se=>l(se))),Q&&(re=re.map(se=>E(se))),re=F(re,z),Y(re,J)}function F(V,z){var J=f(V);for(var le of z)le=p(le,J),V=t(V,a(o(b(le,V),b(le,le)),le));return V}function q(V){return u(s(b(V,V)))}function Y(V,z){var J=z==="BigNumber",le=z==="Complex",Q=J?l(1):le?E(1):1;return a(o(Q,q(V)),V)}return D}function Nee(e){var{config:r,addScalar:t,subtract:n,abs:a,atan:i,cos:o,sin:s,multiplyScalar:u,inv:l,bignumber:c,multiply:f,add:p}=e;function d(S,C){var N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:r.relTol,$=arguments.length>3?arguments[3]:void 0,B=arguments.length>4?arguments[4]:void 0;if($==="number")return v(S,N,B);if($==="BigNumber")return m(S,N,B);throw TypeError("Unsupported data type: "+$)}function v(S,C,N){var $=S.length,B=Math.abs(C/$),P,R;if(N){R=new Array($);for(var O=0;O<$;O++)R[O]=Array($).fill(0),R[O][O]=1}for(var T=b(S);Math.abs(T[1])>=Math.abs(B);){var U=T[0][0],F=T[0][1];P=g(S[U][U],S[F][F],S[U][F]),S=x(S,P,U,F),N&&(R=E(R,P,U,F)),T=b(S)}for(var q=Array($).fill(0),Y=0;Y<$;Y++)q[Y]=S[Y][Y];return A(We(q),R,N)}function m(S,C,N){var $=S.length,B=a(C/$),P,R;if(N){R=new Array($);for(var O=0;O<$;O++)R[O]=Array($).fill(0),R[O][O]=1}for(var T=D(S);a(T[1])>=a(B);){var U=T[0][0],F=T[0][1];P=y(S[U][U],S[F][F],S[U][F]),S=w(S,P,U,F),N&&(R=h(R,P,U,F)),T=D(S)}for(var q=Array($).fill(0),Y=0;Y<$;Y++)q[Y]=S[Y][Y];return A(We(q),R,N)}function g(S,C,N){var $=C-S;return Math.abs($)<=r.relTol?Math.PI/4:.5*Math.atan(2*N/(C-S))}function y(S,C,N){var $=n(C,S);return a($)<=r.relTol?c(-1).acos().div(4):u(.5,i(f(2,N,l($))))}function E(S,C,N,$){for(var B=S.length,P=Math.cos(C),R=Math.sin(C),O=Array(B).fill(0),T=Array(B).fill(0),U=0;U<B;U++)O[U]=P*S[U][N]-R*S[U][$],T[U]=R*S[U][N]+P*S[U][$];for(var F=0;F<B;F++)S[F][N]=O[F],S[F][$]=T[F];return S}function h(S,C,N,$){for(var B=S.length,P=o(C),R=s(C),O=Array(B).fill(c(0)),T=Array(B).fill(c(0)),U=0;U<B;U++)O[U]=n(u(P,S[U][N]),u(R,S[U][$])),T[U]=t(u(R,S[U][N]),u(P,S[U][$]));for(var F=0;F<B;F++)S[F][N]=O[F],S[F][$]=T[F];return S}function w(S,C,N,$){for(var B=S.length,P=c(o(C)),R=c(s(C)),O=u(P,P),T=u(R,R),U=Array(B).fill(c(0)),F=Array(B).fill(c(0)),q=f(c(2),P,R,S[N][$]),Y=t(n(u(O,S[N][N]),q),u(T,S[$][$])),V=p(u(T,S[N][N]),q,u(O,S[$][$])),z=0;z<B;z++)U[z]=n(u(P,S[N][z]),u(R,S[$][z])),F[z]=t(u(R,S[N][z]),u(P,S[$][z]));S[N][N]=Y,S[$][$]=V,S[N][$]=c(0),S[$][N]=c(0);for(var J=0;J<B;J++)J!==N&&J!==$&&(S[N][J]=U[J],S[J][N]=U[J],S[$][J]=F[J],S[J][$]=F[J]);return S}function x(S,C,N,$){for(var B=S.length,P=Math.cos(C),R=Math.sin(C),O=P*P,T=R*R,U=Array(B).fill(0),F=Array(B).fill(0),q=O*S[N][N]-2*P*R*S[N][$]+T*S[$][$],Y=T*S[N][N]+2*P*R*S[N][$]+O*S[$][$],V=0;V<B;V++)U[V]=P*S[N][V]-R*S[$][V],F[V]=R*S[N][V]+P*S[$][V];S[N][N]=q,S[$][$]=Y,S[N][$]=0,S[$][N]=0;for(var z=0;z<B;z++)z!==N&&z!==$&&(S[N][z]=U[z],S[z][N]=U[z],S[$][z]=F[z],S[z][$]=F[z]);return S}function b(S){for(var C=S.length,N=0,$=[0,1],B=0;B<C;B++)for(var P=B+1;P<C;P++)Math.abs(N)<Math.abs(S[B][P])&&(N=Math.abs(S[B][P]),$=[B,P]);return[$,N]}function D(S){for(var C=S.length,N=0,$=[0,1],B=0;B<C;B++)for(var P=B+1;P<C;P++)a(N)<a(S[B][P])&&(N=a(S[B][P]),$=[B,P]);return[$,N]}function A(S,C,N){var $=S.length,B=Array($),P;if(N){P=Array($);for(var R=0;R<$;R++)P[R]=Array($)}for(var O=0;O<$;O++){for(var T=0,U=S[0],F=0;F<S.length;F++)a(S[F])<a(U)&&(T=F,U=S[T]);if(B[O]=S.splice(T,1)[0],N)for(var q=0;q<$;q++)P[O][q]=C[q][T],C[q].splice(T,1)}if(!N)return{values:B};var Y=P.map((V,z)=>({value:B[z],vector:V}));return{values:B,eigenvectors:Y}}return d}var Mee="eigs",Tee=["config","typed","matrix","addScalar","equal","subtract","abs","atan","cos","sin","multiplyScalar","divideScalar","inv","bignumber","multiply","add","larger","column","flatten","number","complex","sqrt","diag","size","reshape","qr","usolve","usolveAll","im","re","smaller","matrixFromColumns","dot"],Oee=L(Mee,Tee,e=>{var{config:r,typed:t,matrix:n,addScalar:a,subtract:i,equal:o,abs:s,atan:u,cos:l,sin:c,multiplyScalar:f,divideScalar:p,inv:d,bignumber:v,multiply:m,add:g,larger:y,column:E,flatten:h,number:w,complex:x,sqrt:b,diag:D,size:A,reshape:S,qr:C,usolve:N,usolveAll:$,im:B,re:P,smaller:R,matrixFromColumns:O,dot:T}=e,U=Nee({config:r,addScalar:a,subtract:i,column:E,flatten:h,equal:o,abs:s,atan:u,cos:l,sin:c,multiplyScalar:f,inv:d,bignumber:v,complex:x,multiply:m,add:g}),F=Cee({config:r,addScalar:a,subtract:i,multiply:m,multiplyScalar:f,flatten:h,divideScalar:p,sqrt:b,abs:s,bignumber:v,diag:D,size:A,reshape:S,qr:C,inv:d,usolve:N,usolveAll:$,equal:o,complex:x,larger:y,smaller:R,matrixFromColumns:O,dot:T});return t("eigs",{Array:function(re){return q(n(re))},"Array, number|BigNumber":function(re,se){return q(n(re),{precision:se})},"Array, Object"(Q,re){return q(n(Q),re)},Matrix:function(re){return q(re,{matricize:!0})},"Matrix, number|BigNumber":function(re,se){return q(re,{precision:se,matricize:!0})},"Matrix, Object":function(re,se){var te={matricize:!0};return Hr(te,se),q(re,te)}});function q(Q){var re,se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te="eigenvectors"in se?se.eigenvectors:!0,ae=(re=se.precision)!==null&&re!==void 0?re:r.relTol,fe=Y(Q,ae,te);return se.matricize&&(fe.values=n(fe.values),te&&(fe.eigenvectors=fe.eigenvectors.map(ne=>{var{value:be,vector:$e}=ne;return{value:be,vector:n($e)}}))),te&&Object.defineProperty(fe,"vectors",{enumerable:!1,get:()=>{throw new Error("eigs(M).vectors replaced with eigs(M).eigenvectors")}}),fe}function Y(Q,re,se){var te=Q.toArray(),ae=Q.size();if(ae.length!==2||ae[0]!==ae[1])throw new RangeError("Matrix must be square (size: ".concat(tr(ae),")"));var fe=ae[0];if(z(te,fe,re)&&(J(te,fe),V(te,fe,re))){var ne=le(Q,te,fe);return U(te,fe,re,ne,se)}var be=le(Q,te,fe);return F(te,fe,re,be,se)}function V(Q,re,se){for(var te=0;te<re;te++)for(var ae=te;ae<re;ae++)if(y(v(s(i(Q[te][ae],Q[ae][te]))),se))return!1;return!0}function z(Q,re,se){for(var te=0;te<re;te++)for(var ae=0;ae<re;ae++)if(y(v(s(B(Q[te][ae]))),se))return!1;return!0}function J(Q,re){for(var se=0;se<re;se++)for(var te=0;te<re;te++)Q[se][te]=P(Q[se][te])}function le(Q,re,se){var te=Q.datatype();if(te==="number"||te==="BigNumber"||te==="Complex")return te;for(var ae=!1,fe=!1,ne=!1,be=0;be<se;be++)for(var $e=0;$e<se;$e++){var k=re[be][$e];if(Je(k)||So(k))ae=!0;else if(Qe(k))fe=!0;else if(bn(k))ne=!0;else throw TypeError("Unsupported type in Matrix: "+Cr(k))}if(fe&&ne&&console.warn("Complex BigNumbers not supported, this operation will lose precission."),ne){for(var W=0;W<se;W++)for(var ue=0;ue<se;ue++)re[W][ue]=x(re[W][ue]);return"Complex"}if(fe){for(var j=0;j<se;j++)for(var K=0;K<se;K++)re[j][K]=v(re[j][K]);return"BigNumber"}if(ae){for(var oe=0;oe<se;oe++)for(var he=0;he<se;he++)re[oe][he]=w(re[oe][he]);return"number"}else throw TypeError("Matrix contains unsupported types only.")}}),s1="expm",_ee=["typed","abs","add","identity","inv","multiply"],$ee=L(s1,_ee,e=>{var{typed:r,abs:t,add:n,identity:a,inv:i,multiply:o}=e;return r(s1,{Matrix:function(f){var p=f.size();if(p.length!==2||p[0]!==p[1])throw new RangeError("Matrix must be square (size: "+tr(p)+")");for(var d=p[0],v=1e-15,m=s(f),g=u(m,v),y=g.q,E=g.j,h=o(f,Math.pow(2,-E)),w=a(d),x=a(d),b=1,D=h,A=-1,S=1;S<=y;S++)S>1&&(D=o(D,h),A=-A),b=b*(y-S+1)/((2*y-S+1)*S),w=n(w,o(b,D)),x=n(x,o(b*A,D));for(var C=o(i(x),w),N=0;N<E;N++)C=o(C,C);return ea(f)?f.createSparseMatrix(C):C}});function s(c){for(var f=c.size()[0],p=0,d=0;d<f;d++){for(var v=0,m=0;m<f;m++)v+=t(c.get([d,m]));p=Math.max(v,p)}return p}function u(c,f){for(var p=30,d=0;d<p;d++)for(var v=0;v<=d;v++){var m=d-v;if(l(c,v,m)<f)return{q:v,j:m}}throw new Error("Could not find acceptable parameters to compute the matrix exponential (try increasing maxSearchSize in expm.js)")}function l(c,f,p){for(var d=1,v=2;v<=f;v++)d*=v;for(var m=d,g=f+1;g<=2*f;g++)m*=g;var y=m*(2*f+1);return 8*Math.pow(c/Math.pow(2,p),2*f)*d*d/(m*y)}}),u1="sqrtm",Fee=["typed","abs","add","multiply","map","sqrt","subtract","inv","size","max","identity"],Bee=L(u1,Fee,e=>{var{typed:r,abs:t,add:n,multiply:a,map:i,sqrt:o,subtract:s,inv:u,size:l,max:c,identity:f}=e,p=1e3,d=1e-6;function v(m){var g,y=0,E=m,h=f(l(m));do{var w=E;if(E=a(.5,n(w,u(h))),h=a(.5,n(h,u(w))),g=c(t(s(E,w))),g>d&&++y>p)throw new Error("computing square root of matrix: iterative method could not converge")}while(g>d);return E}return r(u1,{"Array | Matrix":function(g){var y=Ue(g)?g.size():Ke(g);switch(y.length){case 1:if(y[0]===1)return i(g,o);throw new RangeError("Matrix must be square (size: "+tr(y)+")");case 2:{var E=y[0],h=y[1];if(E===h)return v(g);throw new RangeError("Matrix must be square (size: "+tr(y)+")")}default:throw new RangeError("Matrix must be at most two dimensional (size: "+tr(y)+")")}}})}),l1="sylvester",Ree=["typed","schur","matrixFromColumns","matrix","multiply","range","concat","transpose","index","subset","add","subtract","identity","lusolve","abs"],Pee=L(l1,Ree,e=>{var{typed:r,schur:t,matrixFromColumns:n,matrix:a,multiply:i,range:o,concat:s,transpose:u,index:l,subset:c,add:f,subtract:p,identity:d,lusolve:v,abs:m}=e;return r(l1,{"Matrix, Matrix, Matrix":g,"Array, Matrix, Matrix":function(E,h,w){return g(a(E),h,w)},"Array, Array, Matrix":function(E,h,w){return g(a(E),a(h),w)},"Array, Matrix, Array":function(E,h,w){return g(a(E),h,a(w))},"Matrix, Array, Matrix":function(E,h,w){return g(E,a(h),w)},"Matrix, Array, Array":function(E,h,w){return g(E,a(h),a(w))},"Matrix, Matrix, Array":function(E,h,w){return g(E,h,a(w))},"Array, Array, Array":function(E,h,w){return g(a(E),a(h),a(w)).toArray()}});function g(y,E,h){for(var w=E.size()[0],x=y.size()[0],b=t(y),D=b.T,A=b.U,S=t(i(-1,E)),C=S.T,N=S.U,$=i(i(u(A),h),N),B=o(0,x),P=[],R=(ne,be)=>s(ne,be,1),O=(ne,be)=>s(ne,be,0),T=0;T<w;T++)if(T<w-1&&m(c(C,l(T+1,T)))>1e-5){for(var U=O(c($,l(B,T)),c($,l(B,T+1))),F=0;F<T;F++)U=f(U,O(i(P[F],c(C,l(F,T))),i(P[F],c(C,l(F,T+1)))));var q=i(d(x),i(-1,c(C,l(T,T)))),Y=i(d(x),i(-1,c(C,l(T+1,T)))),V=i(d(x),i(-1,c(C,l(T,T+1)))),z=i(d(x),i(-1,c(C,l(T+1,T+1)))),J=O(R(f(D,q),Y),R(V,f(D,z))),le=v(J,U);P[T]=le.subset(l(o(0,x),0)),P[T+1]=le.subset(l(o(x,2*x),0)),T++}else{for(var Q=c($,l(B,T)),re=0;re<T;re++)Q=f(Q,i(P[re],c(C,l(re,T))));var se=c(C,l(T,T)),te=p(D,i(se,d(x)));P[T]=v(te,Q)}var ae=a(n(...P)),fe=i(A,i(ae,u(N)));return fe}}),c1="schur",zee=["typed","matrix","identity","multiply","qr","norm","subtract"],Iee=L(c1,zee,e=>{var{typed:r,matrix:t,identity:n,multiply:a,qr:i,norm:o,subtract:s}=e;return r(c1,{Array:function(c){var f=u(t(c));return{U:f.U.valueOf(),T:f.T.valueOf()}},Matrix:function(c){return u(c)}});function u(l){var c=l.size()[0],f=l,p=n(c),d=0,v;do{v=f;var m=i(f),g=m.Q,y=m.R;if(f=a(y,g),p=a(p,g),d++>100)break}while(o(s(f,v))>1e-4);return{U:p,T:f}}}),f1="lyap",Lee=["typed","matrix","sylvester","multiply","transpose"],qee=L(f1,Lee,e=>{var{typed:r,matrix:t,sylvester:n,multiply:a,transpose:i}=e;return r(f1,{"Matrix, Matrix":function(s,u){return n(s,i(s),a(-1,u))},"Array, Matrix":function(s,u){return n(t(s),i(t(s)),a(-1,u))},"Matrix, Array":function(s,u){return n(s,i(t(s)),t(a(-1,u)))},"Array, Array":function(s,u){return n(t(s),i(t(s)),t(a(-1,u))).toArray()}})}),kee="divide",Uee=["typed","matrix","multiply","equalScalar","divideScalar","inv"],Hee=L(kee,Uee,e=>{var{typed:r,matrix:t,multiply:n,equalScalar:a,divideScalar:i,inv:o}=e,s=tt({typed:r,equalScalar:a}),u=tn({typed:r});return r("divide",m2({"Array | Matrix, Array | Matrix":function(c,f){return n(c,o(f))},"DenseMatrix, any":function(c,f){return u(c,f,i,!1)},"SparseMatrix, any":function(c,f){return s(c,f,i,!1)},"Array, any":function(c,f){return u(t(c),f,i,!1).valueOf()},"any, Array | Matrix":function(c,f){return n(c,o(f))}},i.signatures))}),p1="distance",jee=["typed","addScalar","subtractScalar","divideScalar","multiplyScalar","deepEqual","sqrt","abs"],Vee=L(p1,jee,e=>{var{typed:r,addScalar:t,subtractScalar:n,multiplyScalar:a,divideScalar:i,deepEqual:o,sqrt:s,abs:u}=e;return r(p1,{"Array, Array, Array":function(x,b,D){if(x.length===2&&b.length===2&&D.length===2){if(!c(x))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!c(b))throw new TypeError("Array with 2 numbers or BigNumbers expected for second argument");if(!c(D))throw new TypeError("Array with 2 numbers or BigNumbers expected for third argument");if(o(b,D))throw new TypeError("LinePoint1 should not be same with LinePoint2");var A=n(D[1],b[1]),S=n(b[0],D[0]),C=n(a(D[0],b[1]),a(b[0],D[1]));return g(x[0],x[1],A,S,C)}else throw new TypeError("Invalid Arguments: Try again")},"Object, Object, Object":function(x,b,D){if(Object.keys(x).length===2&&Object.keys(b).length===2&&Object.keys(D).length===2){if(!c(x))throw new TypeError("Values of pointX and pointY should be numbers or BigNumbers");if(!c(b))throw new TypeError("Values of lineOnePtX and lineOnePtY should be numbers or BigNumbers");if(!c(D))throw new TypeError("Values of lineTwoPtX and lineTwoPtY should be numbers or BigNumbers");if(o(v(b),v(D)))throw new TypeError("LinePoint1 should not be same with LinePoint2");if("pointX"in x&&"pointY"in x&&"lineOnePtX"in b&&"lineOnePtY"in b&&"lineTwoPtX"in D&&"lineTwoPtY"in D){var A=n(D.lineTwoPtY,b.lineOnePtY),S=n(b.lineOnePtX,D.lineTwoPtX),C=n(a(D.lineTwoPtX,b.lineOnePtY),a(b.lineOnePtX,D.lineTwoPtY));return g(x.pointX,x.pointY,A,S,C)}else throw new TypeError("Key names do not match")}else throw new TypeError("Invalid Arguments: Try again")},"Array, Array":function(x,b){if(x.length===2&&b.length===3){if(!c(x))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!f(b))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");return g(x[0],x[1],b[0],b[1],b[2])}else if(x.length===3&&b.length===6){if(!f(x))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!d(b))throw new TypeError("Array with 6 numbers or BigNumbers expected for second argument");return y(x[0],x[1],x[2],b[0],b[1],b[2],b[3],b[4],b[5])}else if(x.length===b.length&&x.length>0){if(!p(x))throw new TypeError("All values of an array should be numbers or BigNumbers");if(!p(b))throw new TypeError("All values of an array should be numbers or BigNumbers");return E(x,b)}else throw new TypeError("Invalid Arguments: Try again")},"Object, Object":function(x,b){if(Object.keys(x).length===2&&Object.keys(b).length===3){if(!c(x))throw new TypeError("Values of pointX and pointY should be numbers or BigNumbers");if(!f(b))throw new TypeError("Values of xCoeffLine, yCoeffLine and constant should be numbers or BigNumbers");if("pointX"in x&&"pointY"in x&&"xCoeffLine"in b&&"yCoeffLine"in b&&"constant"in b)return g(x.pointX,x.pointY,b.xCoeffLine,b.yCoeffLine,b.constant);throw new TypeError("Key names do not match")}else if(Object.keys(x).length===3&&Object.keys(b).length===6){if(!f(x))throw new TypeError("Values of pointX, pointY and pointZ should be numbers or BigNumbers");if(!d(b))throw new TypeError("Values of x0, y0, z0, a, b and c should be numbers or BigNumbers");if("pointX"in x&&"pointY"in x&&"x0"in b&&"y0"in b&&"z0"in b&&"a"in b&&"b"in b&&"c"in b)return y(x.pointX,x.pointY,x.pointZ,b.x0,b.y0,b.z0,b.a,b.b,b.c);throw new TypeError("Key names do not match")}else if(Object.keys(x).length===2&&Object.keys(b).length===2){if(!c(x))throw new TypeError("Values of pointOneX and pointOneY should be numbers or BigNumbers");if(!c(b))throw new TypeError("Values of pointTwoX and pointTwoY should be numbers or BigNumbers");if("pointOneX"in x&&"pointOneY"in x&&"pointTwoX"in b&&"pointTwoY"in b)return E([x.pointOneX,x.pointOneY],[b.pointTwoX,b.pointTwoY]);throw new TypeError("Key names do not match")}else if(Object.keys(x).length===3&&Object.keys(b).length===3){if(!f(x))throw new TypeError("Values of pointOneX, pointOneY and pointOneZ should be numbers or BigNumbers");if(!f(b))throw new TypeError("Values of pointTwoX, pointTwoY and pointTwoZ should be numbers or BigNumbers");if("pointOneX"in x&&"pointOneY"in x&&"pointOneZ"in x&&"pointTwoX"in b&&"pointTwoY"in b&&"pointTwoZ"in b)return E([x.pointOneX,x.pointOneY,x.pointOneZ],[b.pointTwoX,b.pointTwoY,b.pointTwoZ]);throw new TypeError("Key names do not match")}else throw new TypeError("Invalid Arguments: Try again")},Array:function(x){if(!m(x))throw new TypeError("Incorrect array format entered for pairwise distance calculation");return h(x)}});function l(w){return typeof w=="number"||Qe(w)}function c(w){return w.constructor!==Array&&(w=v(w)),l(w[0])&&l(w[1])}function f(w){return w.constructor!==Array&&(w=v(w)),l(w[0])&&l(w[1])&&l(w[2])}function p(w){return Array.isArray(w)||(w=v(w)),w.every(l)}function d(w){return w.constructor!==Array&&(w=v(w)),l(w[0])&&l(w[1])&&l(w[2])&&l(w[3])&&l(w[4])&&l(w[5])}function v(w){for(var x=Object.keys(w),b=[],D=0;D<x.length;D++)b.push(w[x[D]]);return b}function m(w){if(w[0].length===2&&l(w[0][0])&&l(w[0][1])){if(w.some(x=>x.length!==2||!l(x[0])||!l(x[1])))return!1}else if(w[0].length===3&&l(w[0][0])&&l(w[0][1])&&l(w[0][2])){if(w.some(x=>x.length!==3||!l(x[0])||!l(x[1])||!l(x[2])))return!1}else return!1;return!0}function g(w,x,b,D,A){var S=u(t(t(a(b,w),a(D,x)),A)),C=s(t(a(b,b),a(D,D)));return i(S,C)}function y(w,x,b,D,A,S,C,N,$){var B=[n(a(n(A,x),$),a(n(S,b),N)),n(a(n(S,b),C),a(n(D,w),$)),n(a(n(D,w),N),a(n(A,x),C))];B=s(t(t(a(B[0],B[0]),a(B[1],B[1])),a(B[2],B[2])));var P=s(t(t(a(C,C),a(N,N)),a($,$)));return i(B,P)}function E(w,x){for(var b=w.length,D=0,A=0,S=0;S<b;S++)A=n(w[S],x[S]),D=t(a(A,A),D);return s(D)}function h(w){for(var x=[],b=[],D=[],A=0;A<w.length-1;A++)for(var S=A+1;S<w.length;S++)w[0].length===2?(b=[w[A][0],w[A][1]],D=[w[S][0],w[S][1]]):w[0].length===3&&(b=[w[A][0],w[A][1],w[A][2]],D=[w[S][0],w[S][1],w[S][2]]),x.push(E(b,D));return x}}),Gee="intersect",Wee=["typed","config","abs","add","addScalar","matrix","multiply","multiplyScalar","divideScalar","subtract","smaller","equalScalar","flatten","isZero","isNumeric"],Zee=L(Gee,Wee,e=>{var{typed:r,config:t,abs:n,add:a,addScalar:i,matrix:o,multiply:s,multiplyScalar:u,divideScalar:l,subtract:c,smaller:f,equalScalar:p,flatten:d,isZero:v,isNumeric:m}=e;return r("intersect",{"Array, Array, Array":g,"Array, Array, Array, Array":y,"Matrix, Matrix, Matrix":function(N,$,B){var P=g(N.valueOf(),$.valueOf(),B.valueOf());return P===null?null:o(P)},"Matrix, Matrix, Matrix, Matrix":function(N,$,B,P){var R=y(N.valueOf(),$.valueOf(),B.valueOf(),P.valueOf());return R===null?null:o(R)}});function g(C,N,$){if(C=E(C),N=E(N),$=E($),!w(C))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!w(N))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");if(!x($))throw new TypeError("Array with 4 numbers expected as third argument");return S(C[0],C[1],C[2],N[0],N[1],N[2],$[0],$[1],$[2],$[3])}function y(C,N,$,B){if(C=E(C),N=E(N),$=E($),B=E(B),C.length===2){if(!h(C))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!h(N))throw new TypeError("Array with 2 numbers or BigNumbers expected for second argument");if(!h($))throw new TypeError("Array with 2 numbers or BigNumbers expected for third argument");if(!h(B))throw new TypeError("Array with 2 numbers or BigNumbers expected for fourth argument");return b(C,N,$,B)}else if(C.length===3){if(!w(C))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!w(N))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");if(!w($))throw new TypeError("Array with 3 numbers or BigNumbers expected for third argument");if(!w(B))throw new TypeError("Array with 3 numbers or BigNumbers expected for fourth argument");return A(C[0],C[1],C[2],N[0],N[1],N[2],$[0],$[1],$[2],B[0],B[1],B[2])}else throw new TypeError("Arrays with two or thee dimensional points expected")}function E(C){return C.length===1?C[0]:C.length>1&&Array.isArray(C[0])&&C.every(N=>Array.isArray(N)&&N.length===1)?d(C):C}function h(C){return C.length===2&&m(C[0])&&m(C[1])}function w(C){return C.length===3&&m(C[0])&&m(C[1])&&m(C[2])}function x(C){return C.length===4&&m(C[0])&&m(C[1])&&m(C[2])&&m(C[3])}function b(C,N,$,B){var P=C,R=$,O=c(P,N),T=c(R,B),U=c(u(O[0],T[1]),u(T[0],O[1]));if(v(U)||f(n(U),t.relTol))return null;var F=u(T[0],P[1]),q=u(T[1],P[0]),Y=u(T[0],R[1]),V=u(T[1],R[0]),z=l(i(c(c(F,q),Y),V),U);return a(s(O,z),P)}function D(C,N,$,B,P,R,O,T,U,F,q,Y){var V=u(c(C,N),c($,B)),z=u(c(P,R),c(O,T)),J=u(c(U,F),c(q,Y));return i(i(V,z),J)}function A(C,N,$,B,P,R,O,T,U,F,q,Y){var V=D(C,O,F,O,N,T,q,T,$,U,Y,U),z=D(F,O,B,C,q,T,P,N,Y,U,R,$),J=D(C,O,B,C,N,T,P,N,$,U,R,$),le=D(F,O,F,O,q,T,q,T,Y,U,Y,U),Q=D(B,C,B,C,P,N,P,N,R,$,R,$),re=c(u(V,z),u(J,le)),se=c(u(Q,le),u(z,z));if(v(se))return null;var te=l(re,se),ae=l(i(V,u(te,z)),le),fe=i(C,u(te,c(B,C))),ne=i(N,u(te,c(P,N))),be=i($,u(te,c(R,$))),$e=i(O,u(ae,c(F,O))),k=i(T,u(ae,c(q,T))),W=i(U,u(ae,c(Y,U)));return p(fe,$e)&&p(ne,k)&&p(be,W)?[fe,ne,be]:null}function S(C,N,$,B,P,R,O,T,U,F){var q=u(C,O),Y=u(B,O),V=u(N,T),z=u(P,T),J=u($,U),le=u(R,U),Q=c(c(c(F,q),V),J),re=c(c(c(i(i(Y,z),le),q),V),J),se=l(Q,re),te=i(C,u(se,c(B,C))),ae=i(N,u(se,c(P,N))),fe=i($,u(se,c(R,$)));return[te,ae,fe]}}),d1="sum",Yee=["typed","config","add","numeric"],px=L(d1,Yee,e=>{var{typed:r,config:t,add:n,numeric:a}=e;return r(d1,{"Array | Matrix":i,"Array | Matrix, number | BigNumber":o,"...":function(u){if(Di(u))throw new TypeError("Scalar values expected in function sum");return i(u)}});function i(s){var u;return An(s,function(l){try{u=u===void 0?l:n(u,l)}catch(c){throw dt(c,"sum",l)}}),u===void 0&&(u=a(0,t.number)),typeof u=="string"&&(u=a(u,jn(u,t))),u}function o(s,u){try{var l=Mu(s,u,n);return l}catch(c){throw dt(c,"sum")}}}),fs="cumsum",Xee=["typed","add","unaryPlus"],dx=L(fs,Xee,e=>{var{typed:r,add:t,unaryPlus:n}=e;return r(fs,{Array:a,Matrix:function(l){return l.create(a(l.valueOf()))},"Array, number | BigNumber":o,"Matrix, number | BigNumber":function(l,c){return l.create(o(l.valueOf(),c))},"...":function(l){if(Di(l))throw new TypeError("All values expected to be scalar in function cumsum");return a(l)}});function a(u){try{return i(u)}catch(l){throw dt(l,fs)}}function i(u){if(u.length===0)return[];for(var l=[n(u[0])],c=1;c<u.length;++c)l.push(t(l[c-1],u[c]));return l}function o(u,l){var c=Ke(u);if(l<0||l>=c.length)throw new en(l,c.length);try{return s(u,l)}catch(f){throw dt(f,fs)}}function s(u,l){var c,f,p;if(l<=0){var d=u[0][0];if(Array.isArray(d)){for(p=X2(u),f=[],c=0;c<p.length;c++)f[c]=s(p[c],l-1);return f}else return i(u)}else{for(f=[],c=0;c<u.length;c++)f[c]=s(u[c],l-1);return f}}}),v1="mean",Kee=["typed","add","divide"],vx=L(v1,Kee,e=>{var{typed:r,add:t,divide:n}=e;return r(v1,{"Array | Matrix":i,"Array | Matrix, number | BigNumber":a,"...":function(s){if(Di(s))throw new TypeError("Scalar values expected in function mean");return i(s)}});function a(o,s){try{var u=Mu(o,s,t),l=Array.isArray(o)?Ke(o):o.size();return n(u,l[s])}catch(c){throw dt(c,"mean")}}function i(o){var s,u=0;if(An(o,function(l){try{s=s===void 0?l:t(s,l),u++}catch(c){throw dt(c,"mean",l)}}),u===0)throw new Error("Cannot calculate the mean of an empty array");return n(s,u)}}),m1="median",Jee=["typed","add","divide","compare","partitionSelect"],Qee=L(m1,Jee,e=>{var{typed:r,add:t,divide:n,compare:a,partitionSelect:i}=e;function o(l){try{l=mr(l.valueOf());var c=l.length;if(c===0)throw new Error("Cannot calculate median of an empty array");if(c%2===0){for(var f=c/2-1,p=i(l,f+1),d=l[f],v=0;v<f;++v)a(l[v],d)>0&&(d=l[v]);return u(d,p)}else{var m=i(l,(c-1)/2);return s(m)}}catch(g){throw dt(g,"median")}}var s=r({"number | BigNumber | Complex | Unit":function(c){return c}}),u=r({"number | BigNumber | Complex | Unit, number | BigNumber | Complex | Unit":function(c,f){return n(t(c,f),2)}});return r(m1,{"Array | Matrix":o,"Array | Matrix, number | BigNumber":function(c,f){throw new Error("median(A, dim) is not yet supported")},"...":function(c){if(Di(c))throw new TypeError("Scalar values expected in function median");return o(c)}})}),h1="mad",ere=["typed","abs","map","median","subtract"],rre=L(h1,ere,e=>{var{typed:r,abs:t,map:n,median:a,subtract:i}=e;return r(h1,{"Array | Matrix":o,"...":function(u){return o(u)}});function o(s){if(s=mr(s.valueOf()),s.length===0)throw new Error("Cannot calculate median absolute deviation (mad) of an empty array");try{var u=a(s);return a(n(s,function(l){return t(i(l,u))}))}catch(l){throw l instanceof TypeError&&l.message.includes("median")?new TypeError(l.message.replace("median","mad")):dt(l,"mad")}}}),El="unbiased",g1="variance",tre=["typed","add","subtract","multiply","divide","apply","isNaN"],mx=L(g1,tre,e=>{var{typed:r,add:t,subtract:n,multiply:a,divide:i,apply:o,isNaN:s}=e;return r(g1,{"Array | Matrix":function(f){return u(f,El)},"Array | Matrix, string":u,"Array | Matrix, number | BigNumber":function(f,p){return l(f,p,El)},"Array | Matrix, number | BigNumber, string":l,"...":function(f){return u(f,El)}});function u(c,f){var p,d=0;if(c.length===0)throw new SyntaxError("Function variance requires one or more parameters (0 provided)");if(An(c,function(g){try{p=p===void 0?g:t(p,g),d++}catch(y){throw dt(y,"variance",g)}}),d===0)throw new Error("Cannot calculate variance of an empty array");var v=i(p,d);if(p=void 0,An(c,function(g){var y=n(g,v);p=p===void 0?a(y,y):t(p,a(y,y))}),s(p))return p;switch(f){case"uncorrected":return i(p,d);case"biased":return i(p,d+1);case"unbiased":{var m=Qe(p)?p.mul(0):0;return d===1?m:i(p,d-1)}default:throw new Error('Unknown normalization "'+f+'". Choose "unbiased" (default), "uncorrected", or "biased".')}}function l(c,f,p){try{if(c.length===0)throw new SyntaxError("Function variance requires one or more parameters (0 provided)");return o(c,f,d=>u(d,p))}catch(d){throw dt(d,"variance")}}}),y1="quantileSeq",nre=["typed","?bignumber","add","subtract","divide","multiply","partitionSelect","compare","isInteger","smaller","smallerEq","larger"],hx=L(y1,nre,e=>{var{typed:r,bignumber:t,add:n,subtract:a,divide:i,multiply:o,partitionSelect:s,compare:u,isInteger:l,smaller:c,smallerEq:f,larger:p}=e,d=Bf({typed:r,isInteger:l});return r(y1,{"Array | Matrix, number | BigNumber":(E,h)=>m(E,h,!1),"Array | Matrix, number | BigNumber, number":(E,h,w)=>v(E,h,!1,w,m),"Array | Matrix, number | BigNumber, boolean":m,"Array | Matrix, number | BigNumber, boolean, number":(E,h,w,x)=>v(E,h,w,x,m),"Array | Matrix, Array | Matrix":(E,h)=>g(E,h,!1),"Array | Matrix, Array | Matrix, number":(E,h,w)=>v(E,h,!1,w,g),"Array | Matrix, Array | Matrix, boolean":g,"Array | Matrix, Array | Matrix, boolean, number":(E,h,w,x)=>v(E,h,w,x,g)});function v(E,h,w,x,b){return d(E,x,D=>b(D,h,w))}function m(E,h,w){var x,b=E.valueOf();if(c(h,0))throw new Error("N/prob must be non-negative");if(f(h,1))return Je(h)?y(b,h,w):t(y(b,h,w));if(p(h,1)){if(!l(h))throw new Error("N must be a positive integer");if(p(h,4294967295))throw new Error("N must be less than or equal to 2^32-1, as that is the maximum length of an Array");var D=n(h,1);x=[];for(var A=0;c(A,h);A++){var S=i(A+1,D);x.push(y(b,S,w))}return Je(h)?x:t(x)}}function g(E,h,w){for(var x=E.valueOf(),b=h.valueOf(),D=[],A=0;A<b.length;++A)D.push(y(x,b[A],w));return D}function y(E,h,w){var x=mr(E),b=x.length;if(b===0)throw new Error("Cannot calculate quantile of an empty sequence");var D=Je(h)?h*(b-1):h.times(b-1),A=Je(h)?Math.floor(D):D.floor().toNumber(),S=Je(h)?D%1:D.minus(A);if(l(D))return w?x[D]:s(x,Je(h)?D:D.valueOf());var C,N;if(w)C=x[A],N=x[A+1];else{N=s(x,A+1),C=x[A];for(var $=0;$<A;++$)u(x[$],C)>0&&(C=x[$])}return n(o(C,a(1,S)),o(N,S))}}),b1="std",are=["typed","map","sqrt","variance"],gx=L(b1,are,e=>{var{typed:r,map:t,sqrt:n,variance:a}=e;return r(b1,{"Array | Matrix":i,"Array | Matrix, string":i,"Array | Matrix, number | BigNumber":i,"Array | Matrix, number | BigNumber, string":i,"...":function(s){return i(s)}});function i(o,s){if(o.length===0)throw new SyntaxError("Function std requires one or more parameters (0 provided)");try{var u=a.apply(null,arguments);return Ut(u)?t(u,n):n(u)}catch(l){throw l instanceof TypeError&&l.message.includes(" variance")?new TypeError(l.message.replace(" variance"," std")):l}}}),x1="corr",ire=["typed","matrix","mean","sqrt","sum","add","subtract","multiply","pow","divide"],ore=L(x1,ire,e=>{var{typed:r,matrix:t,sqrt:n,sum:a,add:i,subtract:o,multiply:s,pow:u,divide:l}=e;return r(x1,{"Array, Array":function(d,v){return c(d,v)},"Matrix, Matrix":function(d,v){var m=c(d.toArray(),v.toArray());return Array.isArray(m)?t(m):m}});function c(p,d){var v=[];if(Array.isArray(p[0])&&Array.isArray(d[0])){if(p.length!==d.length)throw new SyntaxError("Dimension mismatch. Array A and B must have the same length.");for(var m=0;m<p.length;m++){if(p[m].length!==d[m].length)throw new SyntaxError("Dimension mismatch. Array A and B must have the same number of elements.");v.push(f(p[m],d[m]))}return v}else{if(p.length!==d.length)throw new SyntaxError("Dimension mismatch. Array A and B must have the same number of elements.");return f(p,d)}}function f(p,d){var v=p.length,m=a(p),g=a(d),y=p.reduce((b,D,A)=>i(b,s(D,d[A])),0),E=a(p.map(b=>u(b,2))),h=a(d.map(b=>u(b,2))),w=o(s(v,y),s(m,g)),x=n(s(o(s(v,E),u(m,2)),o(s(v,h),u(g,2))));return l(w,x)}}),w1="combinations",sre=["typed"],ure=L(w1,sre,e=>{var{typed:r}=e;return r(w1,{"number, number":bb,"BigNumber, BigNumber":function(n,a){var i=n.constructor,o,s,u=n.minus(a),l=new i(1);if(!E1(n)||!E1(a))throw new TypeError("Positive integer value expected in function combinations");if(a.gt(n))throw new TypeError("k must be less than n in function combinations");if(o=l,a.lt(u))for(s=l;s.lte(u);s=s.plus(l))o=o.times(a.plus(s)).dividedBy(s);else for(s=l;s.lte(a);s=s.plus(l))o=o.times(u.plus(s)).dividedBy(s);return o}})});function E1(e){return e.isInteger()&&e.gte(0)}var S1="combinationsWithRep",lre=["typed"],cre=L(S1,lre,e=>{var{typed:r}=e;return r(S1,{"number, number":function(n,a){if(!ze(n)||n<0)throw new TypeError("Positive integer value expected in function combinationsWithRep");if(!ze(a)||a<0)throw new TypeError("Positive integer value expected in function combinationsWithRep");if(n<1)throw new TypeError("k must be less than or equal to n + k - 1");if(a<n-1){var i=yn(n,n+a-1);return i/yn(1,a)}var o=yn(a+1,n+a-1);return o/yn(1,n-1)},"BigNumber, BigNumber":function(n,a){var i=n.constructor,o,s,u=new i(1),l=n.minus(u);if(!A1(n)||!A1(a))throw new TypeError("Positive integer value expected in function combinationsWithRep");if(n.lt(u))throw new TypeError("k must be less than or equal to n + k - 1 in function combinationsWithRep");if(o=u,a.lt(l))for(s=u;s.lte(l);s=s.plus(u))o=o.times(a.plus(s)).dividedBy(s);else for(s=u;s.lte(a);s=s.plus(u))o=o.times(l.plus(s)).dividedBy(s);return o}})});function A1(e){return e.isInteger()&&e.gte(0)}var D1="gamma",fre=["typed","config","multiplyScalar","pow","BigNumber","Complex"],pre=L(D1,fre,e=>{var{typed:r,config:t,multiplyScalar:n,pow:a,BigNumber:i,Complex:o}=e;function s(l){if(l.im===0)return Is(l.re);if(l.re<.5){var c=new o(1-l.re,-l.im),f=new o(Math.PI*l.re,Math.PI*l.im);return new o(Math.PI).div(f.sin()).div(s(c))}l=new o(l.re-1,l.im);for(var p=new o(ei[0],0),d=1;d<ei.length;++d){var v=new o(ei[d],0);p=p.add(v.div(l.add(d)))}var m=new o(l.re+wb+.5,l.im),g=Math.sqrt(2*Math.PI),y=m.pow(l.add(.5)),E=m.neg().exp();return p.mul(g).mul(y).mul(E)}return r(D1,{number:Is,Complex:s,BigNumber:function(c){if(c.isInteger())return c.isNegative()||c.isZero()?new i(1/0):u(c.minus(1));if(!c.isFinite())return new i(c.isNegative()?NaN:1/0);throw new Error("Integer BigNumber expected")}});function u(l){if(l<8)return new i([1,1,2,6,24,120,720,5040][l]);var c=t.precision+(Math.log(l.toNumber())|0),f=i.clone({precision:c});if(l%2===1)return l.times(u(new i(l-1)));for(var p=l,d=new f(l),v=l.toNumber();p>2;)p-=2,v+=p,d=d.times(v);return new i(d.toPrecision(i.precision))}}),C1="lgamma",dre=["Complex","typed"],vre=L(C1,dre,e=>{var{Complex:r,typed:t}=e,n=7,a=7,i=[-.029550653594771242,.00641025641025641,-.0019175269175269176,.0008417508417508417,-.0005952380952380953,.0007936507936507937,-.002777777777777778,.08333333333333333];return t(C1,{number:Ls,Complex:o,BigNumber:function(){throw new Error("mathjs doesn't yet provide an implementation of the algorithm lgamma for BigNumber")}});function o(l){var c=6.283185307179586,f=1.1447298858494002,p=.1;if(l.isNaN())return new r(NaN,NaN);if(l.im===0)return new r(Ls(l.re),0);if(l.re>=n||Math.abs(l.im)>=a)return s(l);if(l.re<=p){var d=eI(c,l.im)*Math.floor(.5*l.re+.25),v=l.mul(Math.PI).sin().log(),m=o(new r(1-l.re,-l.im));return new r(f,d).sub(v).sub(m)}else return l.im>=0?u(l):u(l.conjugate()).conjugate()}function s(l){for(var c=l.sub(.5).mul(l.log()).sub(l).add(Eb),f=new r(1,0).div(l),p=f.div(l),d=i[0],v=i[1],m=2*p.re,g=p.re*p.re+p.im*p.im,y=2;y<8;y++){var E=v;v=-g*d+i[y],d=m*d+E}var h=f.mul(p.mul(d).add(v));return c.add(h)}function u(l){var c=0,f=0,p=l;for(l=l.add(1);l.re<=n;){p=p.mul(l);var d=p.im<0?1:0;d!==0&&f===0&&c++,f=d,l=l.add(1)}return s(l).sub(p.log()).sub(new r(0,c*2*Math.PI*1))}}),N1="factorial",mre=["typed","gamma"],hre=L(N1,mre,e=>{var{typed:r,gamma:t}=e;return r(N1,{number:function(a){if(a<0)throw new Error("Value must be non-negative");return t(a+1)},BigNumber:function(a){if(a.isNegative())throw new Error("Value must be non-negative");return t(a.plus(1))},"Array | Matrix":r.referToSelf(n=>a=>rr(a,n))})}),M1="kldivergence",gre=["typed","matrix","divide","sum","multiply","map","dotDivide","log","isNumeric"],yre=L(M1,gre,e=>{var{typed:r,matrix:t,divide:n,sum:a,multiply:i,map:o,dotDivide:s,log:u,isNumeric:l}=e;return r(M1,{"Array, Array":function(p,d){return c(t(p),t(d))},"Matrix, Array":function(p,d){return c(p,t(d))},"Array, Matrix":function(p,d){return c(t(p),d)},"Matrix, Matrix":function(p,d){return c(p,d)}});function c(f,p){var d=p.size().length,v=f.size().length;if(d>1)throw new Error("first object must be one dimensional");if(v>1)throw new Error("second object must be one dimensional");if(d!==v)throw new Error("Length of two vectors must be equal");var m=a(f);if(m===0)throw new Error("Sum of elements in first object must be non zero");var g=a(p);if(g===0)throw new Error("Sum of elements in second object must be non zero");var y=n(f,a(f)),E=n(p,a(p)),h=a(i(y,o(s(y,E),w=>u(w))));return l(h)?h:Number.NaN}}),T1="multinomial",bre=["typed","add","divide","multiply","factorial","isInteger","isPositive"],xre=L(T1,bre,e=>{var{typed:r,add:t,divide:n,multiply:a,factorial:i,isInteger:o,isPositive:s}=e;return r(T1,{"Array | Matrix":function(l){var c=0,f=1;return An(l,function(p){if(!o(p)||!s(p))throw new TypeError("Positive integer value expected in function multinomial");c=t(c,p),f=a(f,i(p))}),n(i(c),f)}})}),O1="permutations",wre=["typed","factorial"],Ere=L(O1,wre,e=>{var{typed:r,factorial:t}=e;return r(O1,{"number | BigNumber":t,"number, number":function(a,i){if(!ze(a)||a<0)throw new TypeError("Positive integer value expected in function permutations");if(!ze(i)||i<0)throw new TypeError("Positive integer value expected in function permutations");if(i>a)throw new TypeError("second argument k must be less than or equal to first argument n");return yn(a-i+1,a)},"BigNumber, BigNumber":function(a,i){var o,s;if(!_1(a)||!_1(i))throw new TypeError("Positive integer value expected in function permutations");if(i.gt(a))throw new TypeError("second argument k must be less than or equal to first argument n");var u=a.mul(0).add(1);for(o=u,s=a.minus(i).plus(1);s.lte(a);s=s.plus(1))o=o.times(s);return o}})});function _1(e){return e.isInteger()&&e.gte(0)}var kf={exports:{}};kf.exports;(function(e){(function(r,t,n){function a(u){var l=this,c=s();l.next=function(){var f=2091639*l.s0+l.c*23283064365386963e-26;return l.s0=l.s1,l.s1=l.s2,l.s2=f-(l.c=f|0)},l.c=1,l.s0=c(" "),l.s1=c(" "),l.s2=c(" "),l.s0-=c(u),l.s0<0&&(l.s0+=1),l.s1-=c(u),l.s1<0&&(l.s1+=1),l.s2-=c(u),l.s2<0&&(l.s2+=1),c=null}function i(u,l){return l.c=u.c,l.s0=u.s0,l.s1=u.s1,l.s2=u.s2,l}function o(u,l){var c=new a(u),f=l&&l.state,p=c.next;return p.int32=function(){return c.next()*4294967296|0},p.double=function(){return p()+(p()*2097152|0)*11102230246251565e-32},p.quick=p,f&&(typeof f=="object"&&i(f,c),p.state=function(){return i(c,{})}),p}function s(){var u=4022871197,l=function(c){c=String(c);for(var f=0;f<c.length;f++){u+=c.charCodeAt(f);var p=.02519603282416938*u;u=p>>>0,p-=u,p*=u,u=p>>>0,p-=u,u+=p*4294967296}return(u>>>0)*23283064365386963e-26};return l}t&&t.exports?t.exports=o:this.alea=o})(ye.commonjsGlobal,e)})(kf);var Sre=kf.exports,Uf={exports:{}};Uf.exports;(function(e){(function(r,t,n){function a(s){var u=this,l="";u.x=0,u.y=0,u.z=0,u.w=0,u.next=function(){var f=u.x^u.x<<11;return u.x=u.y,u.y=u.z,u.z=u.w,u.w^=u.w>>>19^f^f>>>8},s===(s|0)?u.x=s:l+=s;for(var c=0;c<l.length+64;c++)u.x^=l.charCodeAt(c)|0,u.next()}function i(s,u){return u.x=s.x,u.y=s.y,u.z=s.z,u.w=s.w,u}function o(s,u){var l=new a(s),c=u&&u.state,f=function(){return(l.next()>>>0)/4294967296};return f.double=function(){do var p=l.next()>>>11,d=(l.next()>>>0)/4294967296,v=(p+d)/(1<<21);while(v===0);return v},f.int32=l.next,f.quick=f,c&&(typeof c=="object"&&i(c,l),f.state=function(){return i(l,{})}),f}t&&t.exports?t.exports=o:this.xor128=o})(ye.commonjsGlobal,e)})(Uf);var Are=Uf.exports,Hf={exports:{}};Hf.exports;(function(e){(function(r,t,n){function a(s){var u=this,l="";u.next=function(){var f=u.x^u.x>>>2;return u.x=u.y,u.y=u.z,u.z=u.w,u.w=u.v,(u.d=u.d+362437|0)+(u.v=u.v^u.v<<4^(f^f<<1))|0},u.x=0,u.y=0,u.z=0,u.w=0,u.v=0,s===(s|0)?u.x=s:l+=s;for(var c=0;c<l.length+64;c++)u.x^=l.charCodeAt(c)|0,c==l.length&&(u.d=u.x<<10^u.x>>>4),u.next()}function i(s,u){return u.x=s.x,u.y=s.y,u.z=s.z,u.w=s.w,u.v=s.v,u.d=s.d,u}function o(s,u){var l=new a(s),c=u&&u.state,f=function(){return(l.next()>>>0)/4294967296};return f.double=function(){do var p=l.next()>>>11,d=(l.next()>>>0)/4294967296,v=(p+d)/(1<<21);while(v===0);return v},f.int32=l.next,f.quick=f,c&&(typeof c=="object"&&i(c,l),f.state=function(){return i(l,{})}),f}t&&t.exports?t.exports=o:this.xorwow=o})(ye.commonjsGlobal,e)})(Hf);var Dre=Hf.exports,jf={exports:{}};jf.exports;(function(e){(function(r,t,n){function a(s){var u=this;u.next=function(){var c=u.x,f=u.i,p,d;return p=c[f],p^=p>>>7,d=p^p<<24,p=c[f+1&7],d^=p^p>>>10,p=c[f+3&7],d^=p^p>>>3,p=c[f+4&7],d^=p^p<<7,p=c[f+7&7],p=p^p<<13,d^=p^p<<9,c[f]=d,u.i=f+1&7,d};function l(c,f){var p,d=[];if(f===(f|0))d[0]=f;else for(f=""+f,p=0;p<f.length;++p)d[p&7]=d[p&7]<<15^f.charCodeAt(p)+d[p+1&7]<<13;for(;d.length<8;)d.push(0);for(p=0;p<8&&d[p]===0;++p);for(p==8?d[7]=-1:d[p],c.x=d,c.i=0,p=256;p>0;--p)c.next()}l(u,s)}function i(s,u){return u.x=s.x.slice(),u.i=s.i,u}function o(s,u){s==null&&(s=+new Date);var l=new a(s),c=u&&u.state,f=function(){return(l.next()>>>0)/4294967296};return f.double=function(){do var p=l.next()>>>11,d=(l.next()>>>0)/4294967296,v=(p+d)/(1<<21);while(v===0);return v},f.int32=l.next,f.quick=f,c&&(c.x&&i(c,l),f.state=function(){return i(l,{})}),f}t&&t.exports?t.exports=o:this.xorshift7=o})(ye.commonjsGlobal,e)})(jf);var Cre=jf.exports,Vf={exports:{}};Vf.exports;(function(e){(function(r,t,n){function a(s){var u=this;u.next=function(){var c=u.w,f=u.X,p=u.i,d,v;return u.w=c=c+1640531527|0,v=f[p+34&127],d=f[p=p+1&127],v^=v<<13,d^=d<<17,v^=v>>>15,d^=d>>>12,v=f[p]=v^d,u.i=p,v+(c^c>>>16)|0};function l(c,f){var p,d,v,m,g,y=[],E=128;for(f===(f|0)?(d=f,f=null):(f=f+"\0",d=0,E=Math.max(E,f.length)),v=0,m=-32;m<E;++m)f&&(d^=f.charCodeAt((m+32)%f.length)),m===0&&(g=d),d^=d<<10,d^=d>>>15,d^=d<<4,d^=d>>>13,m>=0&&(g=g+1640531527|0,p=y[m&127]^=d+g,v=p==0?v+1:0);for(v>=128&&(y[(f&&f.length||0)&127]=-1),v=127,m=4*128;m>0;--m)d=y[v+34&127],p=y[v=v+1&127],d^=d<<13,p^=p<<17,d^=d>>>15,p^=p>>>12,y[v]=d^p;c.w=g,c.X=y,c.i=v}l(u,s)}function i(s,u){return u.i=s.i,u.w=s.w,u.X=s.X.slice(),u}function o(s,u){s==null&&(s=+new Date);var l=new a(s),c=u&&u.state,f=function(){return(l.next()>>>0)/4294967296};return f.double=function(){do var p=l.next()>>>11,d=(l.next()>>>0)/4294967296,v=(p+d)/(1<<21);while(v===0);return v},f.int32=l.next,f.quick=f,c&&(c.X&&i(c,l),f.state=function(){return i(l,{})}),f}t&&t.exports?t.exports=o:this.xor4096=o})(ye.commonjsGlobal,e)})(Vf);var Nre=Vf.exports,Gf={exports:{}};Gf.exports;(function(e){(function(r,t,n){function a(s){var u=this,l="";u.next=function(){var f=u.b,p=u.c,d=u.d,v=u.a;return f=f<<25^f>>>7^p,p=p-d|0,d=d<<24^d>>>8^v,v=v-f|0,u.b=f=f<<20^f>>>12^p,u.c=p=p-d|0,u.d=d<<16^p>>>16^v,u.a=v-f|0},u.a=0,u.b=0,u.c=-1640531527,u.d=1367130551,s===Math.floor(s)?(u.a=s/4294967296|0,u.b=s|0):l+=s;for(var c=0;c<l.length+20;c++)u.b^=l.charCodeAt(c)|0,u.next()}function i(s,u){return u.a=s.a,u.b=s.b,u.c=s.c,u.d=s.d,u}function o(s,u){var l=new a(s),c=u&&u.state,f=function(){return(l.next()>>>0)/4294967296};return f.double=function(){do var p=l.next()>>>11,d=(l.next()>>>0)/4294967296,v=(p+d)/(1<<21);while(v===0);return v},f.int32=l.next,f.quick=f,c&&(typeof c=="object"&&i(c,l),f.state=function(){return i(l,{})}),f}t&&t.exports?t.exports=o:this.tychei=o})(ye.commonjsGlobal,e)})(Gf);var Mre=Gf.exports,yx={exports:{}};const Tre={},Ore=Object.freeze(Object.defineProperty({__proto__:null,default:Tre},Symbol.toStringTag,{value:"Module"})),_re=ye.getAugmentedNamespace(Ore);(function(e){(function(r,t,n){var a=256,i=6,o=52,s="random",u=n.pow(a,i),l=n.pow(2,o),c=l*2,f=a-1,p;function d(w,x,b){var D=[];x=x==!0?{entropy:!0}:x||{};var A=y(g(x.entropy?[w,h(t)]:w??E(),3),D),S=new v(D),C=function(){for(var N=S.g(i),$=u,B=0;N<l;)N=(N+B)*a,$*=a,B=S.g(1);for(;N>=c;)N/=2,$/=2,B>>>=1;return(N+B)/$};return C.int32=function(){return S.g(4)|0},C.quick=function(){return S.g(4)/4294967296},C.double=C,y(h(S.S),t),(x.pass||b||function(N,$,B,P){return P&&(P.S&&m(P,S),N.state=function(){return m(S,{})}),B?(n[s]=N,$):N})(C,A,"global"in x?x.global:this==n,x.state)}function v(w){var x,b=w.length,D=this,A=0,S=D.i=D.j=0,C=D.S=[];for(b||(w=[b++]);A<a;)C[A]=A++;for(A=0;A<a;A++)C[A]=C[S=f&S+w[A%b]+(x=C[A])],C[S]=x;(D.g=function(N){for(var $,B=0,P=D.i,R=D.j,O=D.S;N--;)$=O[P=f&P+1],B=B*a+O[f&(O[P]=O[R=f&R+$])+(O[R]=$)];return D.i=P,D.j=R,B})(a)}function m(w,x){return x.i=w.i,x.j=w.j,x.S=w.S.slice(),x}function g(w,x){var b=[],D=typeof w,A;if(x&&D=="object")for(A in w)try{b.push(g(w[A],x-1))}catch{}return b.length?b:D=="string"?w:w+"\0"}function y(w,x){for(var b=w+"",D,A=0;A<b.length;)x[f&A]=f&(D^=x[f&A]*19)+b.charCodeAt(A++);return h(x)}function E(){try{var w;return p&&(w=p.randomBytes)?w=w(a):(w=new Uint8Array(a),(r.crypto||r.msCrypto).getRandomValues(w)),h(w)}catch{var x=r.navigator,b=x&&x.plugins;return[+new Date,r,b,r.screen,h(t)]}}function h(w){return String.fromCharCode.apply(0,w)}if(y(n.random(),t),e.exports){e.exports=d;try{p=_re}catch{}}else n["seed"+s]=d})(typeof self<"u"?self:ye.commonjsGlobal,[],Math)})(yx);var $re=yx.exports,Fre=Sre,Bre=Are,Rre=Dre,Pre=Cre,zre=Nre,Ire=Mre,ha=$re;ha.alea=Fre;ha.xor128=Bre;ha.xorwow=Rre;ha.xorshift7=Pre;ha.xor4096=zre;ha.tychei=Ire;var Lre=ha;const bx=ye.getDefaultExportFromCjs(Lre);var qre=bx(Date.now());function ui(e){var r;function t(a){r=a===null?qre:bx(String(a))}t(e);function n(){return r()}return n}var $1="pickRandom",kre=["typed","config","?on"],Ure=L($1,kre,e=>{var{typed:r,config:t,on:n}=e,a=ui(t.randomSeed);return n&&n("config",function(o,s){o.randomSeed!==s.randomSeed&&(a=ui(o.randomSeed))}),r($1,{"Array | Matrix":function(s){return i(s,{})},"Array | Matrix, Object":function(s,u){return i(s,u)},"Array | Matrix, number":function(s,u){return i(s,{number:u})},"Array | Matrix, Array | Matrix":function(s,u){return i(s,{weights:u})},"Array | Matrix, Array | Matrix, number":function(s,u,l){return i(s,{number:l,weights:u})},"Array | Matrix, number, Array | Matrix":function(s,u,l){return i(s,{number:u,weights:l})}});function i(o,s){var{number:u,weights:l,elementWise:c=!0}=s,f=typeof u>"u";f&&(u=1);var p=Ue(o)?o.create:Ue(l)?l.create:null;o=o.valueOf(),l&&(l=l.valueOf()),c===!0&&(o=mr(o),l=mr(l));var d=0;if(typeof l<"u"){if(l.length!==o.length)throw new Error("Weights must have the same length as possibles");for(var v=0,m=l.length;v<m;v++){if(!Je(l[v])||l[v]<0)throw new Error("Weights must be an array of positive numbers");d+=l[v]}}for(var g=o.length,y=[],E;y.length<u;){if(typeof l>"u")E=o[Math.floor(a()*g)];else for(var h=a()*d,w=0,x=o.length;w<x;w++)if(h-=l[w],h<0){E=o[w];break}y.push(E)}return f?y[0]:p?p(y):y}});function Wf(e,r){var t=[];if(e=e.slice(0),e.length>1)for(var n=0,a=e.shift();n<a;n++)t.push(Wf(e,r));else for(var i=0,o=e.shift();i<o;i++)t.push(r());return t}var F1="random",Hre=["typed","config","?on"],jre=L(F1,Hre,e=>{var{typed:r,config:t,on:n}=e,a=ui(t.randomSeed);return n&&n("config",function(s,u){s.randomSeed!==u.randomSeed&&(a=ui(s.randomSeed))}),r(F1,{"":()=>o(0,1),number:s=>o(0,s),"number, number":(s,u)=>o(s,u),"Array | Matrix":s=>i(s,0,1),"Array | Matrix, number":(s,u)=>i(s,0,u),"Array | Matrix, number, number":(s,u,l)=>i(s,u,l)});function i(s,u,l){var c=Wf(s.valueOf(),()=>o(u,l));return Ue(s)?s.create(c):c}function o(s,u){return s+a()*(u-s)}}),B1="randomInt",Vre=["typed","config","?on"],Gre=L(B1,Vre,e=>{var{typed:r,config:t,on:n}=e,a=ui(t.randomSeed);return n&&n("config",function(s,u){s.randomSeed!==u.randomSeed&&(a=ui(s.randomSeed))}),r(B1,{"":()=>o(0,1),number:s=>o(0,s),"number, number":(s,u)=>o(s,u),"Array | Matrix":s=>i(s,0,1),"Array | Matrix, number":(s,u)=>i(s,0,u),"Array | Matrix, number, number":(s,u,l)=>i(s,u,l)});function i(s,u,l){var c=Wf(s.valueOf(),()=>o(u,l));return Ue(s)?s.create(c):c}function o(s,u){return Math.floor(s+a()*(u-s))}}),R1="stirlingS2",Wre=["typed","addScalar","subtractScalar","multiplyScalar","divideScalar","pow","factorial","combinations","isNegative","isInteger","number","?bignumber","larger"],Zre=L(R1,Wre,e=>{var{typed:r,addScalar:t,subtractScalar:n,multiplyScalar:a,divideScalar:i,pow:o,factorial:s,combinations:u,isNegative:l,isInteger:c,number:f,bignumber:p,larger:d}=e,v=[],m=[];return r(R1,{"number | BigNumber, number | BigNumber":function(y,E){if(!c(y)||l(y)||!c(E)||l(E))throw new TypeError("Non-negative integer value expected in function stirlingS2");if(d(E,y))throw new TypeError("k must be less than or equal to n in function stirlingS2");var h=!(Je(y)&&Je(E)),w=h?m:v,x=h?p:f,b=f(y),D=f(E);if(w[b]&&w[b].length>D)return w[b][D];for(var A=0;A<=b;++A)if(w[A]||(w[A]=[x(A===0?1:0)]),A!==0)for(var S=w[A],C=w[A-1],N=S.length;N<=A&&N<=D;++N)N===A?S[N]=1:S[N]=t(a(x(N),C[N]),C[N-1]);return w[b][D]}})}),P1="bellNumbers",Yre=["typed","addScalar","isNegative","isInteger","stirlingS2"],Xre=L(P1,Yre,e=>{var{typed:r,addScalar:t,isNegative:n,isInteger:a,stirlingS2:i}=e;return r(P1,{"number | BigNumber":function(s){if(!a(s)||n(s))throw new TypeError("Non-negative integer value expected in function bellNumbers");for(var u=0,l=0;l<=s;l++)u=t(u,i(s,l));return u}})}),z1="catalan",Kre=["typed","addScalar","divideScalar","multiplyScalar","combinations","isNegative","isInteger"],Jre=L(z1,Kre,e=>{var{typed:r,addScalar:t,divideScalar:n,multiplyScalar:a,combinations:i,isNegative:o,isInteger:s}=e;return r(z1,{"number | BigNumber":function(l){if(!s(l)||o(l))throw new TypeError("Non-negative integer value expected in function catalan");return n(i(a(l,2),l),t(l,1))}})}),I1="composition",Qre=["typed","addScalar","combinations","isNegative","isPositive","isInteger","larger"],ete=L(I1,Qre,e=>{var{typed:r,addScalar:t,combinations:n,isPositive:a,isNegative:i,isInteger:o,larger:s}=e;return r(I1,{"number | BigNumber, number | BigNumber":function(l,c){if(!o(l)||!a(l)||!o(c)||!a(c))throw new TypeError("Positive integer value expected in function composition");if(s(c,l))throw new TypeError("k must be less than or equal to n in function composition");return n(t(l,-1),t(c,-1))}})}),L1="leafCount",rte=["parse","typed"],tte=L(L1,rte,e=>{var{parse:r,typed:t}=e;function n(a){var i=0;return a.forEach(o=>{i+=n(o)}),i||1}return t(L1,{Node:function(i){return n(i)}})});function q1(e){return cr(e)||kr(e)&&e.isUnary()&&cr(e.args[0])}function Ys(e){return!!(cr(e)||(qn(e)||kr(e))&&e.args.every(Ys)||En(e)&&Ys(e.content))}function k1(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,n)}return t}function Sl(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?k1(Object(t),!0).forEach(function(n){jr(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):k1(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}var nte="simplifyUtil",ate=["FunctionNode","OperatorNode","SymbolNode"],Zf=L(nte,ate,e=>{var{FunctionNode:r,OperatorNode:t,SymbolNode:n}=e,a=!0,i=!1,o="defaultF",s={add:{trivial:a,total:a,commutative:a,associative:a},unaryPlus:{trivial:a,total:a,commutative:a,associative:a},subtract:{trivial:i,total:a,commutative:i,associative:i},multiply:{trivial:a,total:a,commutative:a,associative:a},divide:{trivial:i,total:a,commutative:i,associative:i},paren:{trivial:a,total:a,commutative:a,associative:i},defaultF:{trivial:i,total:a,commutative:i,associative:i}},u={divide:{total:i},log:{total:i}},l={subtract:{total:i},abs:{trivial:a},log:{total:a}};function c(h,w){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:s,b=o;if(typeof h=="string"?b=h:kr(h)?b=h.fn.toString():qn(h)?b=h.name:En(h)&&(b="paren"),Re(x,b)){var D=x[b];if(Re(D,w))return D[w];if(Re(s,b))return s[b][w]}if(Re(x,o)){var A=x[o];return Re(A,w)?A[w]:s[o][w]}if(Re(s,b)){var S=s[b];if(Re(S,w))return S[w]}return s[o][w]}function f(h){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s;return c(h,"commutative",w)}function p(h){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s;return c(h,"associative",w)}function d(h,w){var x=Sl({},h);for(var b in w)Re(h,b)?x[b]=Sl(Sl({},w[b]),h[b]):x[b]=w[b];return x}function v(h,w){if(!h.args||h.args.length===0)return h;h.args=m(h,w);for(var x=0;x<h.args.length;x++)v(h.args[x],w)}function m(h,w){var x,b=[],D=function A(S){for(var C=0;C<S.args.length;C++){var N=S.args[C];kr(N)&&x===N.op?A(N):b.push(N)}};return p(h,w)?(x=h.op,D(h),b):h.args}function g(h,w){if(!(!h.args||h.args.length===0)){for(var x=E(h),b=h.args.length,D=0;D<b;D++)g(h.args[D],w);if(b>2&&p(h,w)){for(var A=h.args.pop();h.args.length>0;)A=x([h.args.pop(),A]);h.args=A.args}}}function y(h,w){if(!(!h.args||h.args.length===0)){for(var x=E(h),b=h.args.length,D=0;D<b;D++)y(h.args[D],w);if(b>2&&p(h,w)){for(var A=h.args.shift();h.args.length>0;)A=x([A,h.args.shift()]);h.args=A.args}}}function E(h){return kr(h)?function(w){try{return new t(h.op,h.fn,w,h.implicit)}catch(x){return console.error(x),[]}}:function(w){return new r(new n(h.name),w)}}return{createMakeNodeFunction:E,hasProperty:c,isCommutative:f,isAssociative:p,mergeContext:d,flatten:v,allChildren:m,unflattenr:g,unflattenl:y,defaultContext:s,realContext:u,positiveContext:l}}),ite="simplify",ote=["config","typed","parse","add","subtract","multiply","divide","pow","isZero","equal","resolve","simplifyConstant","simplifyCore","?fraction","?bignumber","mathWithTransform","matrix","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","ParenthesisNode","SymbolNode"],ste=L(ite,ote,e=>{var{config:r,typed:t,parse:n,add:a,subtract:i,multiply:o,divide:s,pow:u,isZero:l,equal:c,resolve:f,simplifyConstant:p,simplifyCore:d,fraction:v,bignumber:m,mathWithTransform:g,matrix:y,AccessorNode:E,ArrayNode:h,ConstantNode:w,FunctionNode:x,IndexNode:b,ObjectNode:D,OperatorNode:A,ParenthesisNode:S,SymbolNode:C}=e,{hasProperty:N,isCommutative:$,isAssociative:B,mergeContext:P,flatten:R,unflattenr:O,unflattenl:T,createMakeNodeFunction:U,defaultContext:F,realContext:q,positiveContext:Y}=Zf({FunctionNode:x,OperatorNode:A,SymbolNode:C});t.addConversion({from:"Object",to:"Map",convert:Qa});var V=t("simplify",{Node:te,"Node, Map":(j,K)=>te(j,!1,K),"Node, Map, Object":(j,K,oe)=>te(j,!1,K,oe),"Node, Array":te,"Node, Array, Map":te,"Node, Array, Map, Object":te});t.removeConversion({from:"Object",to:"Map",convert:Qa}),V.defaultContext=F,V.realContext=q,V.positiveContext=Y;function z(j){return j.transform(function(K,oe,he){return En(K)?z(K.content):K})}var J={true:!0,false:!0,e:!0,i:!0,Infinity:!0,LN2:!0,LN10:!0,LOG2E:!0,LOG10E:!0,NaN:!0,phi:!0,pi:!0,SQRT1_2:!0,SQRT2:!0,tau:!0};V.rules=[d,{l:"log(e)",r:"1"},{s:"n-n1 -> n+-n1",assuming:{subtract:{total:!0}}},{s:"n-n -> 0",assuming:{subtract:{total:!1}}},{s:"-(cl*v) -> v * (-cl)",assuming:{multiply:{commutative:!0},subtract:{total:!0}}},{s:"-(cl*v) -> (-cl) * v",assuming:{multiply:{commutative:!1},subtract:{total:!0}}},{s:"-(v*cl) -> v * (-cl)",assuming:{multiply:{commutative:!1},subtract:{total:!0}}},{l:"-(n1/n2)",r:"-n1/n2"},{l:"-v",r:"v * (-1)"},{l:"(n1 + n2)*(-1)",r:"n1*(-1) + n2*(-1)",repeat:!0},{l:"n/n1^n2",r:"n*n1^-n2"},{l:"n/n1",r:"n*n1^-1"},{s:"(n1*n2)^n3 -> n1^n3 * n2^n3",assuming:{multiply:{commutative:!0}}},{s:"(n1*n2)^(-1) -> n2^(-1) * n1^(-1)",assuming:{multiply:{commutative:!1}}},{s:"(n ^ n1) ^ n2 -> n ^ (n1 * n2)",assuming:{divide:{total:!0}}},{l:" vd * ( vd * n1 + n2)",r:"vd^2 * n1 + vd * n2"},{s:" vd * (vd^n4 * n1 + n2) -> vd^(1+n4) * n1 + vd * n2",assuming:{divide:{total:!0}}},{s:"vd^n3 * ( vd * n1 + n2) -> vd^(n3+1) * n1 + vd^n3 * n2",assuming:{divide:{total:!0}}},{s:"vd^n3 * (vd^n4 * n1 + n2) -> vd^(n3+n4) * n1 + vd^n3 * n2",assuming:{divide:{total:!0}}},{l:"n*n",r:"n^2"},{s:"n * n^n1 -> n^(n1+1)",assuming:{divide:{total:!0}}},{s:"n^n1 * n^n2 -> n^(n1+n2)",assuming:{divide:{total:!0}}},p,{s:"n+n -> 2*n",assuming:{add:{total:!0}}},{l:"n+-n",r:"0"},{l:"vd*n + vd",r:"vd*(n+1)"},{l:"n3*n1 + n3*n2",r:"n3*(n1+n2)"},{l:"n3^(-n4)*n1 + n3 * n2",r:"n3^(-n4)*(n1 + n3^(n4+1) *n2)"},{l:"n3^(-n4)*n1 + n3^n5 * n2",r:"n3^(-n4)*(n1 + n3^(n4+n5)*n2)"},{s:"n*vd + vd -> (n+1)*vd",assuming:{multiply:{commutative:!1}}},{s:"vd + n*vd -> (1+n)*vd",assuming:{multiply:{commutative:!1}}},{s:"n1*n3 + n2*n3 -> (n1+n2)*n3",assuming:{multiply:{commutative:!1}}},{s:"n^n1 * n -> n^(n1+1)",assuming:{divide:{total:!0},multiply:{commutative:!1}}},{s:"n1*n3^(-n4) + n2 * n3 -> (n1 + n2*n3^(n4 + 1))*n3^(-n4)",assuming:{multiply:{commutative:!1}}},{s:"n1*n3^(-n4) + n2 * n3^n5 -> (n1 + n2*n3^(n4 + n5))*n3^(-n4)",assuming:{multiply:{commutative:!1}}},{l:"n*cd + cd",r:"(n+1)*cd"},{s:"cd*n + cd -> cd*(n+1)",assuming:{multiply:{commutative:!1}}},{s:"cd + cd*n -> cd*(1+n)",assuming:{multiply:{commutative:!1}}},p,{s:"(-n)*n1 -> -(n*n1)",assuming:{subtract:{total:!0}}},{s:"n1*(-n) -> -(n1*n)",assuming:{subtract:{total:!0},multiply:{commutative:!1}}},{s:"ce+ve -> ve+ce",assuming:{add:{commutative:!0}},imposeContext:{add:{commutative:!1}}},{s:"vd*cd -> cd*vd",assuming:{multiply:{commutative:!0}},imposeContext:{multiply:{commutative:!1}}},{l:"n+-n1",r:"n-n1"},{l:"n+-(n1)",r:"n-(n1)"},{s:"n*(n1^-1) -> n/n1",assuming:{multiply:{commutative:!0}}},{s:"n*n1^-n2 -> n/n1^n2",assuming:{multiply:{commutative:!0}}},{s:"n^-1 -> 1/n",assuming:{multiply:{commutative:!0}}},{l:"n^1",r:"n"},{s:"n*(n1/n2) -> (n*n1)/n2",assuming:{multiply:{associative:!0}}},{s:"n-(n1+n2) -> n-n1-n2",assuming:{addition:{associative:!0,commutative:!0}}},{l:"1*n",r:"n",imposeContext:{multiply:{commutative:!0}}},{s:"n1/(n2/n3) -> (n1*n3)/n2",assuming:{multiply:{associative:!0}}},{l:"n1/(-n2)",r:"-n1/n2"}];function le(j,K){var oe={};if(j.s){var he=j.s.split("->");if(he.length===2)oe.l=he[0],oe.r=he[1];else throw SyntaxError("Could not parse rule: "+j.s)}else oe.l=j.l,oe.r=j.r;oe.l=z(n(oe.l)),oe.r=z(n(oe.r));for(var me of["imposeContext","repeat","assuming"])me in j&&(oe[me]=j[me]);if(j.evaluate&&(oe.evaluate=n(j.evaluate)),B(oe.l,K)){var I=!$(oe.l,K),H;I&&(H=se());var ie=U(oe.l),ce=se();oe.expanded={},oe.expanded.l=ie([oe.l,ce]),R(oe.expanded.l,K),O(oe.expanded.l,K),oe.expanded.r=ie([oe.r,ce]),I&&(oe.expandedNC1={},oe.expandedNC1.l=ie([H,oe.l]),oe.expandedNC1.r=ie([H,oe.r]),oe.expandedNC2={},oe.expandedNC2.l=ie([H,oe.expanded.l]),oe.expandedNC2.r=ie([H,oe.expanded.r]))}return oe}function Q(j,K){for(var oe=[],he=0;he<j.length;he++){var me=j[he],I=void 0,H=typeof me;switch(H){case"string":me={s:me};case"object":I=le(me,K);break;case"function":I=me;break;default:throw TypeError("Unsupported type of rule: "+H)}oe.push(I)}return oe}var re=0;function se(){return new C("_p"+re++)}function te(j,K){var oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:io(),he=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},me=he.consoleDebug;K=Q(K||V.rules,he.context);var I=f(j,oe);I=z(I);for(var H={},ie=I.toString({parenthesis:"all"});!H[ie];){H[ie]=!0,re=0;var ce=ie;me&&console.log("Working on: ",ie);for(var de=0;de<K.length;de++){var ve="";if(typeof K[de]=="function"?(I=K[de](I,he),me&&(ve=K[de].name)):(R(I,he.context),I=fe(I,K[de],he.context),me&&(ve="".concat(K[de].l.toString()," -> ").concat(K[de].r.toString()))),me){var Se=I.toString({parenthesis:"all"});Se!==ce&&(console.log("Applying",ve,"produced",Se),ce=Se)}T(I,he.context)}ie=I.toString({parenthesis:"all"})}return I}function ae(j,K,oe){var he=j;if(j)for(var me=0;me<j.length;++me){var I=fe(j[me],K,oe);I!==j[me]&&(he===j&&(he=j.slice()),he[me]=I)}return he}function fe(j,K,oe){if(K.assuming){for(var he in K.assuming)for(var me in K.assuming[he])if(N(he,me,oe)!==K.assuming[he][me])return j}var I=P(K.imposeContext,oe),H=j;if(H instanceof A||H instanceof x){var ie=ae(H.args,K,oe);ie!==H.args&&(H=H.clone(),H.args=ie)}else if(H instanceof S){if(H.content){var ce=fe(H.content,K,oe);ce!==H.content&&(H=new S(ce))}}else if(H instanceof h){var de=ae(H.items,K,oe);de!==H.items&&(H=new h(de))}else if(H instanceof E){var ve=H.object;H.object&&(ve=fe(H.object,K,oe));var Se=H.index;H.index&&(Se=fe(H.index,K,oe)),(ve!==H.object||Se!==H.index)&&(H=new E(ve,Se))}else if(H instanceof b){var we=ae(H.dimensions,K,oe);we!==H.dimensions&&(H=new b(we))}else if(H instanceof D){var Me=!1,De={};for(var ir in H.properties)De[ir]=fe(H.properties[ir],K,oe),De[ir]!==H.properties[ir]&&(Me=!0);Me&&(H=new D(De))}var or=K.r,Le=W(K.l,H,I)[0];if(!Le&&K.expanded&&(or=K.expanded.r,Le=W(K.expanded.l,H,I)[0]),!Le&&K.expandedNC1&&(or=K.expandedNC1.r,Le=W(K.expandedNC1.l,H,I)[0],Le||(or=K.expandedNC2.r,Le=W(K.expandedNC2.l,H,I)[0])),Le){var _r=H.implicit;H=or.clone(),_r&&"implicit"in or&&(H.implicit=!0),H=H.transform(function(M){return M.isSymbolNode&&Re(Le.placeholders,M.name)?Le.placeholders[M.name].clone():M})}return K.repeat&&H!==j&&(H=fe(H,K,oe)),H}function ne(j,K){var oe=[],he,me,I=U(j);if($(j,K))for(var H=0;H<j.args.length;H++)me=j.args.slice(0),me.splice(H,1),he=me.length===1?me[0]:I(me),oe.push(I([j.args[H],he]));else for(var ie=1;ie<j.args.length;ie++){var ce=j.args[0];ie>1&&(ce=I(j.args.slice(0,ie))),me=j.args.slice(ie),he=me.length===1?me[0]:I(me),oe.push(I([ce,he]))}return oe}function be(j,K){var oe={placeholders:{}};if(!j.placeholders&&!K.placeholders)return oe;if(j.placeholders){if(!K.placeholders)return j}else return K;for(var he in j.placeholders)if(Re(j.placeholders,he)&&(oe.placeholders[he]=j.placeholders[he],Re(K.placeholders,he)&&!ue(j.placeholders[he],K.placeholders[he])))return null;for(var me in K.placeholders)Re(K.placeholders,me)&&(oe.placeholders[me]=K.placeholders[me]);return oe}function $e(j,K){var oe=[];if(j.length===0||K.length===0)return oe;for(var he,me=0;me<j.length;me++)for(var I=0;I<K.length;I++)he=be(j[me],K[I]),he&&oe.push(he);return oe}function k(j){if(j.length===0)return j;for(var K=j.reduce($e),oe=[],he={},me=0;me<K.length;me++){var I=JSON.stringify(K[me]);he[I]||(he[I]=!0,oe.push(K[me]))}return oe}function W(j,K,oe,he){var me=[{placeholders:{}}];if(j instanceof A&&K instanceof A||j instanceof x&&K instanceof x){if(j instanceof A){if(j.op!==K.op||j.fn!==K.fn)return[]}else if(j instanceof x&&j.name!==K.name)return[];if(K.args.length===1&&j.args.length===1||!B(K,oe)&&K.args.length===j.args.length||he){for(var I=[],H=0;H<j.args.length;H++){var ie=W(j.args[H],K.args[H],oe);if(ie.length===0)break;I.push(ie)}if(I.length!==j.args.length){if(!$(K,oe)||j.args.length===1)return[];if(j.args.length>2)throw new Error("permuting >2 commutative non-associative rule arguments not yet implemented");var ce=W(j.args[0],K.args[1],oe);if(ce.length===0)return[];var de=W(j.args[1],K.args[0],oe);if(de.length===0)return[];I=[ce,de]}me=k(I)}else if(K.args.length>=2&&j.args.length===2){for(var ve=ne(K,oe),Se=[],we=0;we<ve.length;we++){var Me=W(j,ve[we],oe,!0);Se=Se.concat(Me)}return Se}else{if(j.args.length>2)throw Error("Unexpected non-binary associative function: "+j.toString());return[]}}else if(j instanceof C){if(j.name.length===0)throw new Error("Symbol in rule has 0 length...!?");if(J[j.name]){if(j.name!==K.name)return[]}else switch(j.name[1]>="a"&&j.name[1]<="z"?j.name.substring(0,2):j.name[0]){case"n":case"_p":me[0].placeholders[j.name]=K;break;case"c":case"cl":if(cr(K))me[0].placeholders[j.name]=K;else return[];break;case"v":if(!cr(K))me[0].placeholders[j.name]=K;else return[];break;case"vl":if(Zr(K))me[0].placeholders[j.name]=K;else return[];break;case"cd":if(q1(K))me[0].placeholders[j.name]=K;else return[];break;case"vd":if(!q1(K))me[0].placeholders[j.name]=K;else return[];break;case"ce":if(Ys(K))me[0].placeholders[j.name]=K;else return[];break;case"ve":if(!Ys(K))me[0].placeholders[j.name]=K;else return[];break;default:throw new Error("Invalid symbol in rule: "+j.name)}}else if(j instanceof w){if(!c(j.value,K.value))return[]}else return[];return me}function ue(j,K){if(j instanceof w&&K instanceof w){if(!c(j.value,K.value))return!1}else if(j instanceof C&&K instanceof C){if(j.name!==K.name)return!1}else if(j instanceof A&&K instanceof A||j instanceof x&&K instanceof x){if(j instanceof A){if(j.op!==K.op||j.fn!==K.fn)return!1}else if(j instanceof x&&j.name!==K.name)return!1;if(j.args.length!==K.args.length)return!1;for(var oe=0;oe<j.args.length;oe++)if(!ue(j.args[oe],K.args[oe]))return!1}else return!1;return!0}return V}),ute="simplifyConstant",lte=["typed","config","mathWithTransform","matrix","?fraction","?bignumber","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","SymbolNode"],cte=L(ute,lte,e=>{var{typed:r,config:t,mathWithTransform:n,matrix:a,fraction:i,bignumber:o,AccessorNode:s,ArrayNode:u,ConstantNode:l,FunctionNode:c,IndexNode:f,ObjectNode:p,OperatorNode:d,SymbolNode:v}=e,{isCommutative:m,isAssociative:g,allChildren:y,createMakeNodeFunction:E}=Zf({FunctionNode:c,OperatorNode:d,SymbolNode:v}),h=r("simplifyConstant",{Node:R=>D(P(R,{})),"Node, Object":function(O,T){return D(P(O,T))}});function w(R){return So(R)?R.valueOf():R instanceof Array?R.map(w):Ue(R)?a(w(R.valueOf())):R}function x(R,O,T){try{return n[R].apply(null,O)}catch{return O=O.map(w),S(n[R].apply(null,O),T)}}var b=r({Fraction:N,number:function(O){return O<0?C(new l(-O)):new l(O)},BigNumber:function(O){return O<0?C(new l(-O)):new l(O)},bigint:function(O){return O<0n?C(new l(-O)):new l(O)},Complex:function(O){throw new Error("Cannot convert Complex number to Node")},string:function(O){return new l(O)},Matrix:function(O){return new u(O.valueOf().map(T=>b(T)))}});function D(R){return Er(R)?R:b(R)}function A(R,O){var T=O&&O.exactFractions!==!1;if(T&&isFinite(R)&&i){var U=i(R),F=O&&typeof O.fractionsLimit=="number"?O.fractionsLimit:1/0;if(U.valueOf()===R&&U.n<F&&U.d<F)return U}return R}var S=r({"string, Object":function(O,T){var U=jn(O,t);if(U==="BigNumber")return o===void 0&&zf(),o(O);if(U==="bigint")return BigInt(O);if(U==="Fraction")return i===void 0&&Kb(),i(O);var F=parseFloat(O);return A(F,T)},"Fraction, Object":function(O,T){return O},"BigNumber, Object":function(O,T){return O},"number, Object":function(O,T){return A(O,T)},"bigint, Object":function(O,T){return O},"Complex, Object":function(O,T){return O.im!==0?O:A(O.re,T)},"Matrix, Object":function(O,T){return a(A(O.valueOf()))},"Array, Object":function(O,T){return O.map(A)}});function C(R){return new d("-","unaryMinus",[R])}function N(R){var O,T=R.s*R.n;return T<0?O=new d("-","unaryMinus",[new l(-T)]):O=new l(T),R.d===1?O:new d("/","divide",[O,new l(R.d)])}function $(R,O,T){if(!Ai(O))return new s(D(R),D(O));if(Bt(R)||Ue(R)){for(var U=Array.from(O.dimensions);U.length>0;)if(cr(U[0])&&typeof U[0].value!="string"){var F=S(U.shift().value,T);Bt(R)?R=R.items[F-1]:(R=R.valueOf()[F-1],R instanceof Array&&(R=a(R)))}else if(U.length>1&&cr(U[1])&&typeof U[1].value!="string"){var q=S(U[1].value,T),Y=[],V=Bt(R)?R.items:R.valueOf();for(var z of V)if(Bt(z))Y.push(z.items[q-1]);else if(Ue(R))Y.push(z[q-1]);else break;if(Y.length===V.length)Bt(R)?R=new u(Y):R=a(Y),U.splice(1,1);else break}else break;return U.length===O.dimensions.length?new s(D(R),O):U.length>0?(O=new f(U),new s(D(R),O)):R}if(wu(R)&&O.dimensions.length===1&&cr(O.dimensions[0])){var J=O.dimensions[0].value;return J in R.properties?R.properties[J]:new l}return new s(D(R),O)}function B(R,O,T,U){var F=O.shift(),q=O.reduce((Y,V)=>{if(!Er(V)){var z=Y.pop();if(Er(z))return[z,V];try{return Y.push(x(R,[z,V],U)),Y}catch{Y.push(z)}}Y.push(D(Y.pop()));var J=Y.length===1?Y[0]:T(Y);return[T([J,D(V)])]},[F]);return q.length===1?q[0]:T([q[0],b(q[1])])}function P(R,O){switch(R.type){case"SymbolNode":return R;case"ConstantNode":switch(typeof R.value){case"number":return S(R.value,O);case"bigint":return S(R.value,O);case"string":return R.value;default:if(!isNaN(R.value))return S(R.value,O)}return R;case"FunctionNode":if(n[R.name]&&n[R.name].rawArgs)return R;{var T=["add","multiply"];if(!T.includes(R.name)){var U=R.args.map(fe=>P(fe,O));if(!U.some(Er))try{return x(R.name,U,O)}catch{}if(R.name==="size"&&U.length===1&&Bt(U[0])){for(var F=[],q=U[0];Bt(q);)F.push(q.items.length),q=q.items[0];return a(F)}return new c(R.name,U.map(D))}}case"OperatorNode":{var Y=R.fn.toString(),V,z,J=E(R);if(kr(R)&&R.isUnary())V=[P(R.args[0],O)],Er(V[0])?z=J(V):z=x(Y,V,O);else if(g(R,O.context))if(V=y(R,O.context),V=V.map(fe=>P(fe,O)),m(Y,O.context)){for(var le=[],Q=[],re=0;re<V.length;re++)Er(V[re])?Q.push(V[re]):le.push(V[re]);le.length>1?(z=B(Y,le,J,O),Q.unshift(z),z=B(Y,Q,J,O)):z=B(Y,V,J,O)}else z=B(Y,V,J,O);else V=R.args.map(fe=>P(fe,O)),z=B(Y,V,J,O);return z}case"ParenthesisNode":return P(R.content,O);case"AccessorNode":return $(P(R.object,O),P(R.index,O),O);case"ArrayNode":{var se=R.items.map(fe=>P(fe,O));return se.some(Er)?new u(se.map(D)):a(se)}case"IndexNode":return new f(R.dimensions.map(fe=>h(fe,O)));case"ObjectNode":{var te={};for(var ae in R.properties)te[ae]=h(R.properties[ae],O);return new p(te)}case"AssignmentNode":case"BlockNode":case"FunctionAssignmentNode":case"RangeNode":case"ConditionalNode":default:throw new Error("Unimplemented node type in simplifyConstant: ".concat(R.type))}}return h}),U1="simplifyCore",fte=["typed","parse","equal","isZero","add","subtract","multiply","divide","pow","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","ParenthesisNode","SymbolNode"],pte=L(U1,fte,e=>{var{typed:r,parse:t,equal:n,isZero:a,add:i,subtract:o,multiply:s,divide:u,pow:l,AccessorNode:c,ArrayNode:f,ConstantNode:p,FunctionNode:d,IndexNode:v,ObjectNode:m,OperatorNode:g,ParenthesisNode:y,SymbolNode:E}=e,h=new p(0),w=new p(1),x=new p(!0),b=new p(!1);function D(N){return kr(N)&&["and","not","or"].includes(N.op)}var{hasProperty:A,isCommutative:S}=Zf({FunctionNode:d,OperatorNode:g,SymbolNode:E});function C(N){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=$?$.context:void 0;if(A(N,"trivial",B)){if(qn(N)&&N.args.length===1)return C(N.args[0],$);var P=!1,R=0;if(N.forEach(Q=>{++R,R===1&&(P=C(Q,$))}),R===1)return P}var O=N;if(qn(O)){var T=vZ(O.name);if(T){if(O.args.length>2&&A(O,"associative",B))for(;O.args.length>2;){var U=O.args.pop(),F=O.args.pop();O.args.push(new g(T,O.name,[U,F]))}O=new g(T,O.name,O.args)}else return new d(C(O.fn),O.args.map(Q=>C(Q,$)))}if(kr(O)&&O.isUnary()){var q=C(O.args[0],$);if(O.op==="~"&&kr(q)&&q.isUnary()&&q.op==="~"||O.op==="not"&&kr(q)&&q.isUnary()&&q.op==="not"&&D(q.args[0]))return q.args[0];var Y=!0;if(O.op==="-"&&kr(q)&&(q.isBinary()&&q.fn==="subtract"&&(O=new g("-","subtract",[q.args[1],q.args[0]]),Y=!1),q.isUnary()&&q.op==="-"))return q.args[0];if(Y)return new g(O.op,O.fn,[q])}if(kr(O)&&O.isBinary()){var V=C(O.args[0],$),z=C(O.args[1],$);if(O.op==="+"){if(cr(V)&&a(V.value))return z;if(cr(z)&&a(z.value))return V;kr(z)&&z.isUnary()&&z.op==="-"&&(z=z.args[0],O=new g("-","subtract",[V,z]))}if(O.op==="-")return kr(z)&&z.isUnary()&&z.op==="-"?C(new g("+","add",[V,z.args[0]]),$):cr(V)&&a(V.value)?C(new g("-","unaryMinus",[z])):cr(z)&&a(z.value)?V:new g(O.op,O.fn,[V,z]);if(O.op==="*"){if(cr(V)){if(a(V.value))return h;if(n(V.value,1))return z}if(cr(z)){if(a(z.value))return h;if(n(z.value,1))return V;if(S(O,B))return new g(O.op,O.fn,[z,V],O.implicit)}return new g(O.op,O.fn,[V,z],O.implicit)}if(O.op==="/")return cr(V)&&a(V.value)?h:cr(z)&&n(z.value,1)?V:new g(O.op,O.fn,[V,z]);if(O.op==="^"&&cr(z)){if(a(z.value))return w;if(n(z.value,1))return V}if(O.op==="and"){if(cr(V))if(V.value){if(D(z))return z;if(cr(z))return z.value?x:b}else return b;if(cr(z))if(z.value){if(D(V))return V}else return b}if(O.op==="or"){if(cr(V)){if(V.value)return x;if(D(z))return z}if(cr(z)){if(z.value)return x;if(D(V))return V}}return new g(O.op,O.fn,[V,z])}if(kr(O))return new g(O.op,O.fn,O.args.map(Q=>C(Q,$)));if(Bt(O))return new f(O.items.map(Q=>C(Q,$)));if(ia(O))return new c(C(O.object,$),C(O.index,$));if(Ai(O))return new v(O.dimensions.map(Q=>C(Q,$)));if(wu(O)){var J={};for(var le in O.properties)J[le]=C(O.properties[le],$);return new m(J)}return O}return r(U1,{Node:C,"Node,Object":C})}),dte="resolve",vte=["typed","parse","ConstantNode","FunctionNode","OperatorNode","ParenthesisNode"],mte=L(dte,vte,e=>{var{typed:r,parse:t,ConstantNode:n,FunctionNode:a,OperatorNode:i,ParenthesisNode:o}=e;function s(u,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new Set;if(!l)return u;if(Zr(u)){if(c.has(u.name)){var f=Array.from(c).join(", ");throw new ReferenceError("recursive loop of variable definitions among {".concat(f,"}"))}var p=l.get(u.name);if(Er(p)){var d=new Set(c);return d.add(u.name),s(p,l,d)}else return typeof p=="number"?t(String(p)):p!==void 0?new n(p):u}else if(kr(u)){var v=u.args.map(function(g){return s(g,l,c)});return new i(u.op,u.fn,v,u.implicit)}else{if(En(u))return new o(s(u.content,l,c));if(qn(u)){var m=u.args.map(function(g){return s(g,l,c)});return new a(u.name,m)}}return u.map(g=>s(g,l,c))}return r("resolve",{Node:s,"Node, Map | null | undefined":s,"Node, Object":(u,l)=>s(u,Qa(l)),"Array | Matrix":r.referToSelf(u=>l=>l.map(c=>u(c))),"Array | Matrix, null | undefined":r.referToSelf(u=>l=>l.map(c=>u(c))),"Array, Object":r.referTo("Array,Map",u=>(l,c)=>u(l,Qa(c))),"Matrix, Object":r.referTo("Matrix,Map",u=>(l,c)=>u(l,Qa(c))),"Array | Matrix, Map":r.referToSelf(u=>(l,c)=>l.map(f=>u(f,c)))})}),H1="symbolicEqual",hte=["parse","simplify","typed","OperatorNode"],gte=L(H1,hte,e=>{var{parse:r,simplify:t,typed:n,OperatorNode:a}=e;function i(o,s){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=new a("-","subtract",[o,s]),c=t(l,{},u);return cr(c)&&!c.value}return n(H1,{"Node, Node":i,"Node, Node, Object":i})}),j1="derivative",yte=["typed","config","parse","simplify","equal","isZero","numeric","ConstantNode","FunctionNode","OperatorNode","ParenthesisNode","SymbolNode"],bte=L(j1,yte,e=>{var{typed:r,config:t,parse:n,simplify:a,equal:i,isZero:o,numeric:s,ConstantNode:u,FunctionNode:l,OperatorNode:c,ParenthesisNode:f,SymbolNode:p}=e;function d(h,w){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{simplify:!0},b={};g(b,h,w.name);var D=y(h,b);return x.simplify?a(D):D}r.addConversion({from:"identifier",to:"SymbolNode",convert:n});var v=r(j1,{"Node, SymbolNode":d,"Node, SymbolNode, Object":d});r.removeConversion({from:"identifier",to:"SymbolNode",convert:n}),v._simplify=!0,v.toTex=function(h){return m.apply(null,h.args)};var m=r("_derivTex",{"Node, SymbolNode":function(w,x){return cr(w)&&Cr(w.value)==="string"?m(n(w.value).toString(),x.toString(),1):m(w.toTex(),x.toString(),1)},"Node, ConstantNode":function(w,x){if(Cr(x.value)==="string")return m(w,n(x.value));throw new Error("The second parameter to 'derivative' is a non-string constant")},"Node, SymbolNode, ConstantNode":function(w,x,b){return m(w.toString(),x.name,b.value)},"string, string, number":function(w,x,b){var D;return b===1?D="{d\\over d"+x+"}":D="{d^{"+b+"}\\over d"+x+"^{"+b+"}}",D+"\\left[".concat(w,"\\right]")}}),g=r("constTag",{"Object, ConstantNode, string":function(w,x){return w[x]=!0,!0},"Object, SymbolNode, string":function(w,x,b){return x.name!==b?(w[x]=!0,!0):!1},"Object, ParenthesisNode, string":function(w,x,b){return g(w,x.content,b)},"Object, FunctionAssignmentNode, string":function(w,x,b){return x.params.includes(b)?g(w,x.expr,b):(w[x]=!0,!0)},"Object, FunctionNode | OperatorNode, string":function(w,x,b){if(x.args.length>0){for(var D=g(w,x.args[0],b),A=1;A<x.args.length;++A)D=g(w,x.args[A],b)&&D;if(D)return w[x]=!0,!0}return!1}}),y=r("_derivative",{"ConstantNode, Object":function(w){return E(0)},"SymbolNode, Object":function(w,x){return x[w]!==void 0?E(0):E(1)},"ParenthesisNode, Object":function(w,x){return new f(y(w.content,x))},"FunctionAssignmentNode, Object":function(w,x){return x[w]!==void 0?E(0):y(w.expr,x)},"FunctionNode, Object":function(w,x){if(x[w]!==void 0)return E(0);var b=w.args[0],D,A=!1,S=!1,C;switch(w.name){case"cbrt":A=!0,C=new c("*","multiply",[E(3),new c("^","pow",[b,new c("/","divide",[E(2),E(3)])])]);break;case"sqrt":case"nthRoot":if(w.args.length===1)A=!0,C=new c("*","multiply",[E(2),new l("sqrt",[b])]);else if(w.args.length===2)return D=new c("/","divide",[E(1),w.args[1]]),x[D]=x[w.args[1]],y(new c("^","pow",[b,D]),x);break;case"log10":D=E(10);case"log":if(!D&&w.args.length===1)C=b.clone(),A=!0;else if(w.args.length===1&&D||w.args.length===2&&x[w.args[1]]!==void 0)C=new c("*","multiply",[b.clone(),new l("log",[D||w.args[1]])]),A=!0;else if(w.args.length===2)return y(new c("/","divide",[new l("log",[b]),new l("log",[w.args[1]])]),x);break;case"pow":if(w.args.length===2)return x[D]=x[w.args[1]],y(new c("^","pow",[b,w.args[1]]),x);break;case"exp":C=new l("exp",[b.clone()]);break;case"sin":C=new l("cos",[b.clone()]);break;case"cos":C=new c("-","unaryMinus",[new l("sin",[b.clone()])]);break;case"tan":C=new c("^","pow",[new l("sec",[b.clone()]),E(2)]);break;case"sec":C=new c("*","multiply",[w,new l("tan",[b.clone()])]);break;case"csc":S=!0,C=new c("*","multiply",[w,new l("cot",[b.clone()])]);break;case"cot":S=!0,C=new c("^","pow",[new l("csc",[b.clone()]),E(2)]);break;case"asin":A=!0,C=new l("sqrt",[new c("-","subtract",[E(1),new c("^","pow",[b.clone(),E(2)])])]);break;case"acos":A=!0,S=!0,C=new l("sqrt",[new c("-","subtract",[E(1),new c("^","pow",[b.clone(),E(2)])])]);break;case"atan":A=!0,C=new c("+","add",[new c("^","pow",[b.clone(),E(2)]),E(1)]);break;case"asec":A=!0,C=new c("*","multiply",[new l("abs",[b.clone()]),new l("sqrt",[new c("-","subtract",[new c("^","pow",[b.clone(),E(2)]),E(1)])])]);break;case"acsc":A=!0,S=!0,C=new c("*","multiply",[new l("abs",[b.clone()]),new l("sqrt",[new c("-","subtract",[new c("^","pow",[b.clone(),E(2)]),E(1)])])]);break;case"acot":A=!0,S=!0,C=new c("+","add",[new c("^","pow",[b.clone(),E(2)]),E(1)]);break;case"sinh":C=new l("cosh",[b.clone()]);break;case"cosh":C=new l("sinh",[b.clone()]);break;case"tanh":C=new c("^","pow",[new l("sech",[b.clone()]),E(2)]);break;case"sech":S=!0,C=new c("*","multiply",[w,new l("tanh",[b.clone()])]);break;case"csch":S=!0,C=new c("*","multiply",[w,new l("coth",[b.clone()])]);break;case"coth":S=!0,C=new c("^","pow",[new l("csch",[b.clone()]),E(2)]);break;case"asinh":A=!0,C=new l("sqrt",[new c("+","add",[new c("^","pow",[b.clone(),E(2)]),E(1)])]);break;case"acosh":A=!0,C=new l("sqrt",[new c("-","subtract",[new c("^","pow",[b.clone(),E(2)]),E(1)])]);break;case"atanh":A=!0,C=new c("-","subtract",[E(1),new c("^","pow",[b.clone(),E(2)])]);break;case"asech":A=!0,S=!0,C=new c("*","multiply",[b.clone(),new l("sqrt",[new c("-","subtract",[E(1),new c("^","pow",[b.clone(),E(2)])])])]);break;case"acsch":A=!0,S=!0,C=new c("*","multiply",[new l("abs",[b.clone()]),new l("sqrt",[new c("+","add",[new c("^","pow",[b.clone(),E(2)]),E(1)])])]);break;case"acoth":A=!0,S=!0,C=new c("-","subtract",[E(1),new c("^","pow",[b.clone(),E(2)])]);break;case"abs":C=new c("/","divide",[new l(new p("abs"),[b.clone()]),b.clone()]);break;case"gamma":default:throw new Error('Cannot process function "'+w.name+'" in derivative: the function is not supported, undefined, or the number of arguments passed to it are not supported')}var N,$;A?(N="/",$="divide"):(N="*",$="multiply");var B=y(b,x);return S&&(B=new c("-","unaryMinus",[B])),new c(N,$,[B,C])},"OperatorNode, Object":function(w,x){if(x[w]!==void 0)return E(0);if(w.op==="+")return new c(w.op,w.fn,w.args.map(function(R){return y(R,x)}));if(w.op==="-"){if(w.isUnary())return new c(w.op,w.fn,[y(w.args[0],x)]);if(w.isBinary())return new c(w.op,w.fn,[y(w.args[0],x),y(w.args[1],x)])}if(w.op==="*"){var b=w.args.filter(function(R){return x[R]!==void 0});if(b.length>0){var D=w.args.filter(function(R){return x[R]===void 0}),A=D.length===1?D[0]:new c("*","multiply",D),S=b.concat(y(A,x));return new c("*","multiply",S)}return new c("+","add",w.args.map(function(R){return new c("*","multiply",w.args.map(function(O){return O===R?y(O,x):O.clone()}))}))}if(w.op==="/"&&w.isBinary()){var C=w.args[0],N=w.args[1];return x[N]!==void 0?new c("/","divide",[y(C,x),N]):x[C]!==void 0?new c("*","multiply",[new c("-","unaryMinus",[C]),new c("/","divide",[y(N,x),new c("^","pow",[N.clone(),E(2)])])]):new c("/","divide",[new c("-","subtract",[new c("*","multiply",[y(C,x),N.clone()]),new c("*","multiply",[C.clone(),y(N,x)])]),new c("^","pow",[N.clone(),E(2)])])}if(w.op==="^"&&w.isBinary()){var $=w.args[0],B=w.args[1];if(x[$]!==void 0)return cr($)&&(o($.value)||i($.value,1))?E(0):new c("*","multiply",[w,new c("*","multiply",[new l("log",[$.clone()]),y(B.clone(),x)])]);if(x[B]!==void 0){if(cr(B)){if(o(B.value))return E(0);if(i(B.value,1))return y($,x)}var P=new c("^","pow",[$.clone(),new c("-","subtract",[B,E(1)])]);return new c("*","multiply",[B.clone(),new c("*","multiply",[y($,x),P])])}return new c("*","multiply",[new c("^","pow",[$.clone(),B.clone()]),new c("+","add",[new c("*","multiply",[y($,x),new c("/","divide",[B.clone(),$.clone()])]),new c("*","multiply",[y(B,x),new l("log",[$.clone()])])])])}throw new Error('Cannot process operator "'+w.op+'" in derivative: the operator is not supported, undefined, or the number of arguments passed to it are not supported')}});function E(h,w){return new u(s(h,jn(String(h),t)))}return v}),V1="rationalize",xte=["config","typed","equal","isZero","add","subtract","multiply","divide","pow","parse","simplifyConstant","simplifyCore","simplify","?bignumber","?fraction","mathWithTransform","matrix","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","SymbolNode","ParenthesisNode"],wte=L(V1,xte,e=>{var{config:r,typed:t,equal:n,isZero:a,add:i,subtract:o,multiply:s,divide:u,pow:l,parse:c,simplifyConstant:f,simplifyCore:p,simplify:d,fraction:v,bignumber:m,mathWithTransform:g,matrix:y,AccessorNode:E,ArrayNode:h,ConstantNode:w,FunctionNode:x,IndexNode:b,ObjectNode:D,OperatorNode:A,SymbolNode:S,ParenthesisNode:C}=e;function N(O){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,F=B(),q=$(O,T,!0,F.firstRules),Y=q.variables.length,V={exactFractions:!1},z={exactFractions:!0};if(O=q.expression,Y>=1){O=P(O);var J,le,Q=!0,re=!1;O=d(O,F.firstRules,{},V);for(var se;le=Q?F.distrDivRules:F.sucDivRules,O=d(O,le,{},z),Q=!Q,se=O.toString(),se!==J;)re=!0,J=se;re&&(O=d(O,F.firstRulesAgain,{},V)),O=d(O,F.finalRules,{},V)}var te=[],ae={};return O.type==="OperatorNode"&&O.isBinary()&&O.op==="/"?(Y===1&&(O.args[0]=R(O.args[0],te),O.args[1]=R(O.args[1])),U&&(ae.numerator=O.args[0],ae.denominator=O.args[1])):(Y===1&&(O=R(O,te)),U&&(ae.numerator=O,ae.denominator=null)),U?(ae.coefficients=te,ae.variables=q.variables,ae.expression=O,ae):O}return t(V1,{Node:N,"Node, boolean":(O,T)=>N(O,{},T),"Node, Object":N,"Node, Object, boolean":N});function $(O,T,U,F){var q=[],Y=d(O,F,T,{exactFractions:!1});U=!!U;var V="+-*"+(U?"/":"");J(Y);var z={};return z.expression=Y,z.variables=q,z;function J(le){var Q=le.type;if(Q==="FunctionNode")throw new Error("There is an unsolved function call");if(Q==="OperatorNode")if(le.op==="^"){if(le.args[1].type!=="ConstantNode"||!ze(parseFloat(le.args[1].value)))throw new Error("There is a non-integer exponent");J(le.args[0])}else{if(!V.includes(le.op))throw new Error("Operator "+le.op+" invalid in polynomial expression");for(var re=0;re<le.args.length;re++)J(le.args[re])}else if(Q==="SymbolNode"){var se=le.name,te=q.indexOf(se);te===-1&&q.push(se)}else if(Q==="ParenthesisNode")J(le.content);else if(Q!=="ConstantNode")throw new Error("type "+Q+" is not allowed in polynomial expression")}}function B(){var O=[p,{l:"n+n",r:"2*n"},{l:"n+-n",r:"0"},f,{l:"n*(n1^-1)",r:"n/n1"},{l:"n*n1^-n2",r:"n/n1^n2"},{l:"n1^-1",r:"1/n1"},{l:"n*(n1/n2)",r:"(n*n1)/n2"},{l:"1*n",r:"n"}],T=[{l:"(-n1)/(-n2)",r:"n1/n2"},{l:"(-n1)*(-n2)",r:"n1*n2"},{l:"n1--n2",r:"n1+n2"},{l:"n1-n2",r:"n1+(-n2)"},{l:"(n1+n2)*n3",r:"(n1*n3 + n2*n3)"},{l:"n1*(n2+n3)",r:"(n1*n2+n1*n3)"},{l:"c1*n + c2*n",r:"(c1+c2)*n"},{l:"c1*n + n",r:"(c1+1)*n"},{l:"c1*n - c2*n",r:"(c1-c2)*n"},{l:"c1*n - n",r:"(c1-1)*n"},{l:"v/c",r:"(1/c)*v"},{l:"v/-c",r:"-(1/c)*v"},{l:"-v*-c",r:"c*v"},{l:"-v*c",r:"-c*v"},{l:"v*-c",r:"-c*v"},{l:"v*c",r:"c*v"},{l:"-(-n1*n2)",r:"(n1*n2)"},{l:"-(n1*n2)",r:"(-n1*n2)"},{l:"-(-n1+n2)",r:"(n1-n2)"},{l:"-(n1+n2)",r:"(-n1-n2)"},{l:"(n1^n2)^n3",r:"(n1^(n2*n3))"},{l:"-(-n1/n2)",r:"(n1/n2)"},{l:"-(n1/n2)",r:"(-n1/n2)"}],U=[{l:"(n1/n2 + n3/n4)",r:"((n1*n4 + n3*n2)/(n2*n4))"},{l:"(n1/n2 + n3)",r:"((n1 + n3*n2)/n2)"},{l:"(n1 + n2/n3)",r:"((n1*n3 + n2)/n3)"}],F=[{l:"(n1/(n2/n3))",r:"((n1*n3)/n2)"},{l:"(n1/n2/n3)",r:"(n1/(n2*n3))"}],q={};return q.firstRules=O.concat(T,F),q.distrDivRules=U,q.sucDivRules=F,q.firstRulesAgain=O.concat(T),q.finalRules=[p,{l:"n*-n",r:"-n^2"},{l:"n*n",r:"n^2"},f,{l:"n*-n^n1",r:"-n^(n1+1)"},{l:"n*n^n1",r:"n^(n1+1)"},{l:"n^n1*-n^n2",r:"-n^(n1+n2)"},{l:"n^n1*n^n2",r:"n^(n1+n2)"},{l:"n^n1*-n",r:"-n^(n1+1)"},{l:"n^n1*n",r:"n^(n1+1)"},{l:"n^n1/-n",r:"-n^(n1-1)"},{l:"n^n1/n",r:"n^(n1-1)"},{l:"n/-n^n1",r:"-n^(1-n1)"},{l:"n/n^n1",r:"n^(1-n1)"},{l:"n^n1/-n^n2",r:"n^(n1-n2)"},{l:"n^n1/n^n2",r:"n^(n1-n2)"},{l:"n1+(-n2*n3)",r:"n1-n2*n3"},{l:"v*(-c)",r:"-c*v"},{l:"n1+-n2",r:"n1-n2"},{l:"v*c",r:"c*v"},{l:"(n1^n2)^n3",r:"(n1^(n2*n3))"}],q}function P(O,T,U){var F=O.type,q=arguments.length>1;if(F==="OperatorNode"&&O.isBinary()){var Y=!1,V;if(O.op==="^"&&(O.args[0].type==="ParenthesisNode"||O.args[0].type==="OperatorNode")&&O.args[1].type==="ConstantNode"&&(V=parseFloat(O.args[1].value),Y=V>=2&&ze(V)),Y){if(V>2){var z=O.args[0],J=new A("^","pow",[O.args[0].cloneDeep(),new w(V-1)]);O=new A("*","multiply",[z,J])}else O=new A("*","multiply",[O.args[0],O.args[0].cloneDeep()]);q&&(U==="content"?T.content=O:T.args[U]=O)}}if(F==="ParenthesisNode")P(O.content,O,"content");else if(F!=="ConstantNode"&&F!=="SymbolNode")for(var le=0;le<O.args.length;le++)P(O.args[le],O,le);if(!q)return O}function R(O,T){T===void 0&&(T=[]),T[0]=0;var U={};U.cte=1,U.oper="+",U.fire="";var F=0,q="";se(O,null,U),F=T.length-1;for(var Y=!0,V,z=F;z>=0;z--)if(T[z]!==0){var J=new w(Y?T[z]:Math.abs(T[z])),le=T[z]<0?"-":"+";if(z>0){var Q=new S(q);if(z>1){var re=new w(z);Q=new A("^","pow",[Q,re])}T[z]===-1&&Y?J=new A("-","unaryMinus",[Q]):Math.abs(T[z])===1?J=Q:J=new A("*","multiply",[J,Q])}Y?V=J:le==="+"?V=new A("+","add",[V,J]):V=new A("-","subtract",[V,J]),Y=!1}if(Y)return new w(0);return V;function se(te,ae,fe){var ne=te.type;if(ne==="FunctionNode")throw new Error("There is an unsolved function call");if(ne==="OperatorNode"){if(!"+-*^".includes(te.op))throw new Error("Operator "+te.op+" invalid");if(ae!==null){if((te.fn==="unaryMinus"||te.fn==="pow")&&ae.fn!=="add"&&ae.fn!=="subtract"&&ae.fn!=="multiply")throw new Error("Invalid "+te.op+" placing");if((te.fn==="subtract"||te.fn==="add"||te.fn==="multiply")&&ae.fn!=="add"&&ae.fn!=="subtract")throw new Error("Invalid "+te.op+" placing");if((te.fn==="subtract"||te.fn==="add"||te.fn==="unaryMinus")&&fe.noFil!==0)throw new Error("Invalid "+te.op+" placing")}(te.op==="^"||te.op==="*")&&(fe.fire=te.op);for(var be=0;be<te.args.length;be++)te.fn==="unaryMinus"&&(fe.oper="-"),(te.op==="+"||te.fn==="subtract")&&(fe.fire="",fe.cte=1,fe.oper=be===0?"+":te.op),fe.noFil=be,se(te.args[be],te,fe)}else if(ne==="SymbolNode"){if(te.name!==q&&q!=="")throw new Error("There is more than one variable");if(q=te.name,ae===null){T[1]=1;return}if(ae.op==="^"&&fe.noFil!==0)throw new Error("In power the variable should be the first parameter");if(ae.op==="*"&&fe.noFil!==1)throw new Error("In multiply the variable should be the second parameter");(fe.fire===""||fe.fire==="*")&&(F<1&&(T[1]=0),T[1]+=fe.cte*(fe.oper==="+"?1:-1),F=Math.max(1,F))}else if(ne==="ConstantNode"){var $e=parseFloat(te.value);if(ae===null){T[0]=$e;return}if(ae.op==="^"){if(fe.noFil!==1)throw new Error("Constant cannot be powered");if(!ze($e)||$e<=0)throw new Error("Non-integer exponent is not allowed");for(var k=F+1;k<$e;k++)T[k]=0;$e>F&&(T[$e]=0),T[$e]+=fe.cte*(fe.oper==="+"?1:-1),F=Math.max($e,F);return}fe.cte=$e,fe.fire===""&&(T[0]+=fe.cte*(fe.oper==="+"?1:-1))}else throw new Error("Type "+ne+" is not allowed")}}}),G1="zpk2tf",Ete=["typed","add","multiply","Complex","number"],Ste=L(G1,Ete,e=>{var{typed:r,add:t,multiply:n,Complex:a,number:i}=e;return r(G1,{"Array,Array,number":function(l,c,f){return o(l,c,f)},"Array,Array":function(l,c){return o(l,c,1)},"Matrix,Matrix,number":function(l,c,f){return o(l.valueOf(),c.valueOf(),f)},"Matrix,Matrix":function(l,c){return o(l.valueOf(),c.valueOf(),1)}});function o(u,l,c){u.some(E=>E.type==="BigNumber")&&(u=u.map(E=>i(E))),l.some(E=>E.type==="BigNumber")&&(l=l.map(E=>i(E)));for(var f=[a(1,0)],p=[a(1,0)],d=0;d<u.length;d++){var v=u[d];typeof v=="number"&&(v=a(v,0)),f=s(f,[a(1,0),a(-v.re,-v.im)])}for(var m=0;m<l.length;m++){var g=l[m];typeof g=="number"&&(g=a(g,0)),p=s(p,[a(1,0),a(-g.re,-g.im)])}for(var y=0;y<f.length;y++)f[y]=n(f[y],c);return[f,p]}function s(u,l){for(var c=[],f=0;f<u.length+l.length-1;f++){c[f]=a(0,0);for(var p=0;p<u.length;p++)f-p>=0&&f-p<l.length&&(c[f]=t(c[f],n(u[p],l[f-p])))}return c}}),W1="freqz",Ate=["typed","add","multiply","Complex","divide","matrix"],Dte=L(W1,Ate,e=>{var{typed:r,add:t,multiply:n,Complex:a,divide:i,matrix:o}=e;return r(W1,{"Array, Array":function(c,f){var p=u(512);return s(c,f,p)},"Array, Array, Array":function(c,f,p){return s(c,f,p)},"Array, Array, number":function(c,f,p){if(p<0)throw new Error("w must be a positive number");var d=u(p);return s(c,f,d)},"Matrix, Matrix":function(c,f){var p=u(512),{w:d,h:v}=s(c.valueOf(),f.valueOf(),p);return{w:o(d),h:o(v)}},"Matrix, Matrix, Matrix":function(c,f,p){var{h:d}=s(c.valueOf(),f.valueOf(),p.valueOf());return{h:o(d),w:o(p)}},"Matrix, Matrix, number":function(c,f,p){if(p<0)throw new Error("w must be a positive number");var d=u(p),{h:v}=s(c.valueOf(),f.valueOf(),d);return{h:o(v),w:o(d)}}});function s(l,c,f){for(var p=[],d=[],v=0;v<f.length;v++){for(var m=a(0,0),g=a(0,0),y=0;y<l.length;y++)m=t(m,n(l[y],a(Math.cos(-y*f[v]),Math.sin(-y*f[v]))));for(var E=0;E<c.length;E++)g=t(g,n(c[E],a(Math.cos(-E*f[v]),Math.sin(-E*f[v]))));p.push(m),d.push(g)}for(var h=[],w=0;w<p.length;w++)h.push(i(p[w],d[w]));return{h,w:f}}function u(l){for(var c=[],f=0;f<l;f++)c.push(f/l*Math.PI);return c}}),Cte="reviver",Nte=["classes"],Mte=L(Cte,Nte,e=>{var{classes:r}=e;return function(n,a){var i=r[a&&a.mathjs];return i&&typeof i.fromJSON=="function"?i.fromJSON(a):a}}),Tte="replacer",Ote=[],_te=L(Tte,Ote,()=>function(r,t){return typeof t=="number"&&(!isFinite(t)||isNaN(t))?{mathjs:"number",value:String(t)}:typeof t=="bigint"?{mathjs:"bigint",value:String(t)}:t}),$te="13.0.1",Fte=L("true",[],()=>!0),Bte=L("false",[],()=>!1),Rte=L("null",[],()=>null),Pte=Ot("Infinity",["config","?BigNumber"],e=>{var{config:r,BigNumber:t}=e;return r.number==="BigNumber"?new t(1/0):1/0}),zte=Ot("NaN",["config","?BigNumber"],e=>{var{config:r,BigNumber:t}=e;return r.number==="BigNumber"?new t(NaN):NaN}),Ite=Ot("pi",["config","?BigNumber"],e=>{var{config:r,BigNumber:t}=e;return r.number==="BigNumber"?qf(t):ZL}),Lte=Ot("tau",["config","?BigNumber"],e=>{var{config:r,BigNumber:t}=e;return r.number==="BigNumber"?yG(t):YL}),qte=Ot("e",["config","?BigNumber"],e=>{var{config:r,BigNumber:t}=e;return r.number==="BigNumber"?hG(t):XL}),kte=Ot("phi",["config","?BigNumber"],e=>{var{config:r,BigNumber:t}=e;return r.number==="BigNumber"?gG(t):KL}),Ute=Ot("LN2",["config","?BigNumber"],e=>{var{config:r,BigNumber:t}=e;return r.number==="BigNumber"?new t(2).ln():Math.LN2}),Hte=Ot("LN10",["config","?BigNumber"],e=>{var{config:r,BigNumber:t}=e;return r.number==="BigNumber"?new t(10).ln():Math.LN10}),jte=Ot("LOG2E",["config","?BigNumber"],e=>{var{config:r,BigNumber:t}=e;return r.number==="BigNumber"?new t(1).div(new t(2).ln()):Math.LOG2E}),Vte=Ot("LOG10E",["config","?BigNumber"],e=>{var{config:r,BigNumber:t}=e;return r.number==="BigNumber"?new t(1).div(new t(10).ln()):Math.LOG10E}),Gte=Ot("SQRT1_2",["config","?BigNumber"],e=>{var{config:r,BigNumber:t}=e;return r.number==="BigNumber"?new t("0.5").sqrt():Math.SQRT1_2}),Wte=Ot("SQRT2",["config","?BigNumber"],e=>{var{config:r,BigNumber:t}=e;return r.number==="BigNumber"?new t(2).sqrt():Math.SQRT2}),Zte=Ot("i",["Complex"],e=>{var{Complex:r}=e;return r.I}),Yte=L("version",[],()=>$te);function Ot(e,r,t){return L(e,r,t,{recreateOnConfigChange:!0})}var Xte=Xe("speedOfLight","299792458","m s^-1"),Kte=Xe("gravitationConstant","6.67430e-11","m^3 kg^-1 s^-2"),Jte=Xe("planckConstant","6.62607015e-34","J s"),Qte=Xe("reducedPlanckConstant","1.0545718176461565e-34","J s"),ene=Xe("magneticConstant","1.25663706212e-6","N A^-2"),rne=Xe("electricConstant","8.8541878128e-12","F m^-1"),tne=Xe("vacuumImpedance","376.730313667","ohm"),nne=Xe("coulomb","8.987551792261171e9","N m^2 C^-2"),ane=Xe("elementaryCharge","1.602176634e-19","C"),ine=Xe("bohrMagneton","9.2740100783e-24","J T^-1"),one=Xe("conductanceQuantum","7.748091729863649e-5","S"),sne=Xe("inverseConductanceQuantum","12906.403729652257","ohm"),une=Xe("magneticFluxQuantum","2.0678338484619295e-15","Wb"),lne=Xe("nuclearMagneton","5.0507837461e-27","J T^-1"),cne=Xe("klitzing","25812.807459304513","ohm"),fne=Xe("bohrRadius","5.29177210903e-11","m"),pne=Xe("classicalElectronRadius","2.8179403262e-15","m"),dne=Xe("electronMass","9.1093837015e-31","kg"),vne=Xe("fermiCoupling","1.1663787e-5","GeV^-2"),mne=$u("fineStructure",.0072973525693),hne=Xe("hartreeEnergy","4.3597447222071e-18","J"),gne=Xe("protonMass","1.67262192369e-27","kg"),yne=Xe("deuteronMass","3.3435830926e-27","kg"),bne=Xe("neutronMass","1.6749271613e-27","kg"),xne=Xe("quantumOfCirculation","3.6369475516e-4","m^2 s^-1"),wne=Xe("rydberg","10973731.568160","m^-1"),Ene=Xe("thomsonCrossSection","6.6524587321e-29","m^2"),Sne=$u("weakMixingAngle",.2229),Ane=$u("efimovFactor",22.7),Dne=Xe("atomicMass","1.66053906660e-27","kg"),Cne=Xe("avogadro","6.02214076e23","mol^-1"),Nne=Xe("boltzmann","1.380649e-23","J K^-1"),Mne=Xe("faraday","96485.33212331001","C mol^-1"),Tne=Xe("firstRadiation","3.7417718521927573e-16","W m^2"),One=Xe("loschmidt","2.686780111798444e25","m^-3"),_ne=Xe("gasConstant","8.31446261815324","J K^-1 mol^-1"),$ne=Xe("molarPlanckConstant","3.990312712893431e-10","J s mol^-1"),Fne=Xe("molarVolume","0.022413969545014137","m^3 mol^-1"),Bne=$u("sackurTetrode",-1.16487052358),Rne=Xe("secondRadiation","0.014387768775039337","m K"),Pne=Xe("stefanBoltzmann","5.67037441918443e-8","W m^-2 K^-4"),zne=Xe("wienDisplacement","2.897771955e-3","m K"),Ine=Xe("molarMass","0.99999999965e-3","kg mol^-1"),Lne=Xe("molarMassC12","11.9999999958e-3","kg mol^-1"),qne=Xe("gravity","9.80665","m s^-2"),kne=Xe("planckLength","1.616255e-35","m"),Une=Xe("planckMass","2.176435e-8","kg"),Hne=Xe("planckTime","5.391245e-44","s"),jne=Xe("planckCharge","1.87554603778e-18","C"),Vne=Xe("planckTemperature","1.416785e+32","K");function Xe(e,r,t){var n=["config","Unit","BigNumber"];return L(e,n,a=>{var{config:i,Unit:o,BigNumber:s}=a,u=i.number==="BigNumber"?new s(r):parseFloat(r),l=new o(u,t);return l.fixPrefix=!0,l})}function $u(e,r){var t=["config","BigNumber"];return L(e,t,n=>{var{config:a,BigNumber:i}=n;return a.number==="BigNumber"?new i(r):r})}var Gne="apply",Wne=["typed","isInteger"],Zne=L(Gne,Wne,e=>{var{typed:r,isInteger:t}=e,n=Bf({typed:r,isInteger:t});return r("apply",{"...any":function(i){var o=i[1];Je(o)?i[1]=o-1:Qe(o)&&(i[1]=o.minus(1));try{return n.apply(null,i)}catch(s){throw mt(s)}}})},{isTransformFunction:!0}),Yne="column",Xne=["typed","Index","matrix","range"],Kne=L(Yne,Xne,e=>{var{typed:r,Index:t,matrix:n,range:a}=e,i=Yb({typed:r,Index:t,matrix:n,range:a});return r("column",{"...any":function(s){var u=s.length-1,l=s[u];Je(l)&&(s[u]=l-1);try{return i.apply(null,s)}catch(c){throw mt(c)}}})},{isTransformFunction:!0});function Yf(e,r,t){var n=e.filter(function(u){return Zr(u)&&!(u.name in r)&&!t.has(u.name)})[0];if(!n)throw new Error('No undefined variable found in inline expression "'+e+'"');var a=n.name,i=new Map,o=new E2(t,i,new Set([a])),s=e.compile();return function(l){return i.set(a,l),s.evaluate(o)}}var Jne="filter",Qne=["typed"],eae=L(Jne,Qne,e=>{var{typed:r}=e;function t(a,i,o){var s,u;return a[0]&&(s=a[0].compile().evaluate(o)),a[1]&&(Zr(a[1])||Ao(a[1])?u=a[1].compile().evaluate(o):u=Yf(a[1],i,o)),n(s,u)}t.rawArgs=!0;var n=r("filter",{"Array, function":Z1,"Matrix, function":function(i,o){return i.create(Z1(i.toArray(),o))},"Array, RegExp":Rs,"Matrix, RegExp":function(i,o){return i.create(Rs(i.toArray(),o))}});return t},{isTransformFunction:!0});function Z1(e,r){return j2(e,function(t,n,a){return Ti(r,t,[n+1],a,"filter")})}var rae="forEach",tae=["typed"],nae=L(rae,tae,e=>{var{typed:r}=e;function t(a,i,o){var s,u;return a[0]&&(s=a[0].compile().evaluate(o)),a[1]&&(Zr(a[1])||Ao(a[1])?u=a[1].compile().evaluate(o):u=Yf(a[1],i,o)),n(s,u)}t.rawArgs=!0;var n=r("forEach",{"Array | Matrix, function":function(i,o){var s=function u(l,c){if(Array.isArray(l))Nu(l,function(f,p){u(f,c.concat(p+1))});else return Ti(o,l,c,i,"forEach")};s(i.valueOf(),[])}});return t},{isTransformFunction:!0}),aae="index",iae=["Index","getMatrixDataType"],oae=L(aae,iae,e=>{var{Index:r,getMatrixDataType:t}=e;return function(){for(var a=[],i=0,o=arguments.length;i<o;i++){var s=arguments[i];if(Cf(s))s.start--,s.end-=s.step>0?0:2;else if(s&&s.isSet===!0)s=s.map(function(l){return l-1});else if(hr(s)||Ue(s))t(s)!=="boolean"&&(s=s.map(function(l){return l-1}));else if(Je(s))s--;else if(Qe(s))s=s.toNumber()-1;else if(typeof s!="string")throw new TypeError("Dimension must be an Array, Matrix, number, string, or Range");a[i]=s}var u=new r;return r.apply(u,a),u}},{isTransformFunction:!0}),sae="map",uae=["typed"],lae=L(sae,uae,e=>{var{typed:r}=e;function t(a,i,o){var s,u;return a[0]&&(s=a[0].compile().evaluate(o)),a[1]&&(Zr(a[1])||Ao(a[1])?u=a[1].compile().evaluate(o):u=Yf(a[1],i,o)),n(s,u)}t.rawArgs=!0;var n=r("map",{"Array, function":function(i,o){return Y1(i,o,i)},"Matrix, function":function(i,o){return i.create(Y1(i.valueOf(),o,i))}});return t},{isTransformFunction:!0});function Y1(e,r,t){function n(a,i){return Array.isArray(a)?xn(a,function(o,s){return n(o,i.concat(s+1))}):Ti(r,a,i,t,"map")}return n(e,[])}function Wn(e){if(e.length===2&&Ut(e[0])){e=e.slice();var r=e[1];Je(r)?e[1]=r-1:Qe(r)&&(e[1]=r.minus(1))}return e}var cae="max",fae=["typed","config","numeric","larger"],pae=L(cae,fae,e=>{var{typed:r,config:t,numeric:n,larger:a}=e,i=ix({typed:r,config:t,numeric:n,larger:a});return r("max",{"...any":function(s){s=Wn(s);try{return i.apply(null,s)}catch(u){throw mt(u)}}})},{isTransformFunction:!0}),dae="mean",vae=["typed","add","divide"],mae=L(dae,vae,e=>{var{typed:r,add:t,divide:n}=e,a=vx({typed:r,add:t,divide:n});return r("mean",{"...any":function(o){o=Wn(o);try{return a.apply(null,o)}catch(s){throw mt(s)}}})},{isTransformFunction:!0}),hae="min",gae=["typed","config","numeric","smaller"],yae=L(hae,gae,e=>{var{typed:r,config:t,numeric:n,smaller:a}=e,i=ox({typed:r,config:t,numeric:n,smaller:a});return r("min",{"...any":function(s){s=Wn(s);try{return i.apply(null,s)}catch(u){throw mt(u)}}})},{isTransformFunction:!0}),bae="range",xae=["typed","config","?matrix","?bignumber","smaller","smallerEq","larger","largerEq","add","isPositive"],wae=L(bae,xae,e=>{var{typed:r,config:t,matrix:n,bignumber:a,smaller:i,smallerEq:o,larger:s,largerEq:u,add:l,isPositive:c}=e,f=Qb({typed:r,config:t,matrix:n,bignumber:a,smaller:i,smallerEq:o,larger:s,largerEq:u,add:l,isPositive:c});return r("range",{"...any":function(d){var v=d.length-1,m=d[v];return typeof m!="boolean"&&d.push(!0),f.apply(null,d)}})},{isTransformFunction:!0}),Eae="row",Sae=["typed","Index","matrix","range"],Aae=L(Eae,Sae,e=>{var{typed:r,Index:t,matrix:n,range:a}=e,i=ex({typed:r,Index:t,matrix:n,range:a});return r("row",{"...any":function(s){var u=s.length-1,l=s[u];Je(l)&&(s[u]=l-1);try{return i.apply(null,s)}catch(c){throw mt(c)}}})},{isTransformFunction:!0}),Dae="subset",Cae=["typed","matrix","zeros","add"],Nae=L(Dae,Cae,e=>{var{typed:r,matrix:t,zeros:n,add:a}=e,i=rx({typed:r,matrix:t,zeros:n,add:a});return r("subset",{"...any":function(s){try{return i.apply(null,s)}catch(u){throw mt(u)}}})},{isTransformFunction:!0}),Mae="concat",Tae=["typed","matrix","isInteger"],Oae=L(Mae,Tae,e=>{var{typed:r,matrix:t,isInteger:n}=e,a=Zb({typed:r,matrix:t,isInteger:n});return r("concat",{"...any":function(o){var s=o.length-1,u=o[s];Je(u)?o[s]=u-1:Qe(u)&&(o[s]=u.minus(1));try{return a.apply(null,o)}catch(l){throw mt(l)}}})},{isTransformFunction:!0}),X1="diff",_ae=["typed","matrix","subtract","number","bignumber"],$ae=L(X1,_ae,e=>{var{typed:r,matrix:t,subtract:n,number:a,bignumber:i}=e,o=Xb({typed:r,matrix:t,subtract:n,number:a,bignumber:i});return r(X1,{"...any":function(u){u=Wn(u);try{return o.apply(null,u)}catch(l){throw mt(l)}}})},{isTransformFunction:!0}),Fae="std",Bae=["typed","map","sqrt","variance"],Rae=L(Fae,Bae,e=>{var{typed:r,map:t,sqrt:n,variance:a}=e,i=gx({typed:r,map:t,sqrt:n,variance:a});return r("std",{"...any":function(s){s=Wn(s);try{return i.apply(null,s)}catch(u){throw mt(u)}}})},{isTransformFunction:!0}),K1="sum",Pae=["typed","config","add","numeric"],zae=L(K1,Pae,e=>{var{typed:r,config:t,add:n,numeric:a}=e,i=px({typed:r,config:t,add:n,numeric:a});return r(K1,{"...any":function(s){s=Wn(s);try{return i.apply(null,s)}catch(u){throw mt(u)}}})},{isTransformFunction:!0}),Iae="quantileSeq",Lae=["typed","bignumber","add","subtract","divide","multiply","partitionSelect","compare","isInteger","smaller","smallerEq","larger"],qae=L(Iae,Lae,e=>{var{typed:r,bignumber:t,add:n,subtract:a,divide:i,multiply:o,partitionSelect:s,compare:u,isInteger:l,smaller:c,smallerEq:f,larger:p}=e,d=hx({typed:r,bignumber:t,add:n,subtract:a,divide:i,multiply:o,partitionSelect:s,compare:u,isInteger:l,smaller:c,smallerEq:f,larger:p});return r("quantileSeq",{"Array | Matrix, number | BigNumber":d,"Array | Matrix, number | BigNumber, number":(m,g,y)=>d(m,g,v(y)),"Array | Matrix, number | BigNumber, boolean":d,"Array | Matrix, number | BigNumber, boolean, number":(m,g,y,E)=>d(m,g,y,v(E)),"Array | Matrix, Array | Matrix":d,"Array | Matrix, Array | Matrix, number":(m,g,y)=>d(m,g,v(y)),"Array | Matrix, Array | Matrix, boolean":d,"Array | Matrix, Array | Matrix, boolean, number":(m,g,y,E)=>d(m,g,y,v(E))});function v(m){return Wn([[],m])[1]}},{isTransformFunction:!0}),J1="cumsum",kae=["typed","add","unaryPlus"],Uae=L(J1,kae,e=>{var{typed:r,add:t,unaryPlus:n}=e,a=dx({typed:r,add:t,unaryPlus:n});return r(J1,{"...any":function(o){if(o.length===2&&Ut(o[0])){var s=o[1];Je(s)?o[1]=s-1:Qe(s)&&(o[1]=s.minus(1))}try{return a.apply(null,o)}catch(u){throw mt(u)}}})},{isTransformFunction:!0}),Q1="variance",Hae=["typed","add","subtract","multiply","divide","apply","isNaN"],jae=L(Q1,Hae,e=>{var{typed:r,add:t,subtract:n,multiply:a,divide:i,apply:o,isNaN:s}=e,u=mx({typed:r,add:t,subtract:n,multiply:a,divide:i,apply:o,isNaN:s});return r(Q1,{"...any":function(c){c=Wn(c);try{return u.apply(null,c)}catch(f){throw mt(f)}}})},{isTransformFunction:!0}),eg="print",Vae=["typed","matrix","zeros","add"],Gae=L(eg,Vae,e=>{var{typed:r,matrix:t,zeros:n,add:a}=e,i=nx({typed:r,matrix:t,zeros:n,add:a});return r(eg,{"string, Object | Array":function(u,l){return i(o(u),l)},"string, Object | Array, number | Object":function(u,l,c){return i(o(u),l,c)}});function o(s){return s.replace(tx,u=>{var l=u.slice(1).split("."),c=l.map(function(f){return!isNaN(f)&&f.length>0?parseInt(f)-1:f});return"$"+c.join(".")})}},{isTransformFunction:!0}),Wae="and",Zae=["typed","matrix","zeros","add","equalScalar","not","concat"],Yae=L(Wae,Zae,e=>{var{typed:r,matrix:t,equalScalar:n,zeros:a,not:i,concat:o}=e,s=ax({typed:r,matrix:t,equalScalar:n,zeros:a,not:i,concat:o});function u(l,c,f){var p=l[0].compile().evaluate(f);if(!Ut(p)&&!s(p,!0))return!1;var d=l[1].compile().evaluate(f);return s(p,d)}return u.rawArgs=!0,u},{isTransformFunction:!0}),Xae="or",Kae=["typed","matrix","equalScalar","DenseMatrix","concat"],Jae=L(Xae,Kae,e=>{var{typed:r,matrix:t,equalScalar:n,DenseMatrix:a,concat:i}=e,o=Wb({typed:r,matrix:t,equalScalar:n,DenseMatrix:a,concat:i});function s(u,l,c){var f=u[0].compile().evaluate(c);if(!Ut(f)&&o(f,!1))return!0;var p=u[1].compile().evaluate(c);return o(f,p)}return s.rawArgs=!0,s},{isTransformFunction:!0}),Qae="bitAnd",eie=["typed","matrix","zeros","add","equalScalar","not","concat"],rie=L(Qae,eie,e=>{var{typed:r,matrix:t,equalScalar:n,zeros:a,not:i,concat:o}=e,s=Vb({typed:r,matrix:t,equalScalar:n,zeros:a,not:i,concat:o});function u(l,c,f){var p=l[0].compile().evaluate(f);if(!Ut(p)){if(isNaN(p))return NaN;if(p===0||p===!1)return 0}var d=l[1].compile().evaluate(f);return s(p,d)}return u.rawArgs=!0,u},{isTransformFunction:!0}),tie="bitOr",nie=["typed","matrix","equalScalar","DenseMatrix","concat"],aie=L(tie,nie,e=>{var{typed:r,matrix:t,equalScalar:n,DenseMatrix:a,concat:i}=e,o=Gb({typed:r,matrix:t,equalScalar:n,DenseMatrix:a,concat:i});function s(u,l,c){var f=u[0].compile().evaluate(c);if(!Ut(f)){if(isNaN(f))return NaN;if(f===-1)return-1;if(f===!0)return 1}var p=u[1].compile().evaluate(c);return o(f,p)}return s.rawArgs=!0,s},{isTransformFunction:!0}),_e=cL({config:ge}),Nr=vL({}),rg=qte({BigNumber:_e,config:ge}),iie=Bte({}),oie=mne({BigNumber:_e,config:ge}),ga=EL({}),xx=Zte({Complex:Nr}),sie=Pte({BigNumber:_e,config:ge}),uie=Hte({BigNumber:_e,config:ge}),lie=Vte({BigNumber:_e,config:ge}),Fu=ML({}),cie=zte({BigNumber:_e,config:ge}),fie=Rte({}),pie=kte({BigNumber:_e,config:ge}),die=DL({}),wx=vI({}),vie=Gte({BigNumber:_e,config:ge}),mie=Bne({BigNumber:_e,config:ge}),Ex=Lte({BigNumber:_e,config:ge}),hie=Fte({}),gie=Yte({}),er=kL({Matrix:Fu}),yie=Ane({BigNumber:_e,config:ge}),bie=Ute({BigNumber:_e,config:ge}),hc=Ite({BigNumber:_e,config:ge}),xie=_te({}),wie=Wte({BigNumber:_e,config:ge}),Z=cI({BigNumber:_e,Complex:Nr,DenseMatrix:er,Fraction:ga}),Eie=Sne({BigNumber:_e,config:ge}),ht=nk({typed:Z}),Sie=TG({Complex:Nr,config:ge,typed:Z}),Aie=FG({BigNumber:_e,typed:Z}),Die=zG({BigNumber:_e,Complex:Nr,config:ge,typed:Z}),Gr=sk({typed:Z}),Cie=GU({typed:Z}),Nie=HG({BigNumber:_e,Complex:Nr,config:ge,typed:Z}),Mie=ZG({typed:Z}),Sx=KG({typed:Z}),Tie=rW({Complex:Nr,config:ge,typed:Z}),Oie=Mq({typed:Z}),_ie=LU({typed:Z}),$ie=$q({typed:Z}),Fie=HL({typed:Z}),Bu=ure({typed:Z}),Ru=Iq({Complex:Nr,typed:Z}),ya=ZU({typed:Z}),Xf=nW({typed:Z}),Bie=sW({BigNumber:_e,typed:Z}),Rie=fW({BigNumber:_e,typed:Z}),Pie=Ek({typed:Z}),ar=gq({config:ge,typed:Z}),zie=hj({typed:Z}),Ax=Ak({typed:Z}),Iie=Ck({Complex:Nr,typed:Z}),Lie=vH({typed:Z}),qie=yH({typed:Z}),Mo=Nj({typed:Z}),Kf=wH({typed:Z}),kie=Fj({format:Mo,typed:Z}),Jf=XU({typed:Z}),bt=VL({typed:Z}),Zn=tq({config:ge,typed:Z}),ba=uq({config:ge,typed:Z}),an=cq({equalScalar:ar,typed:Z}),Uie=jte({BigNumber:_e,config:ge}),Hie=vre({Complex:Nr,typed:Z}),jie=iU({Complex:Nr,config:ge,typed:Z}),Dx=sU({Complex:Nr,config:ge,typed:Z}),xa=NH({typed:Z}),qr=cU({typed:Z}),Xs=eH({typed:Z}),Mn=Dq({typed:Z}),Vie=_j({format:Mo,typed:Z}),Gie=Ure({config:ge,typed:Z}),Wie=nx({typed:Z}),Zie=jre({config:ge,typed:Z}),Qf=JU({typed:Z}),Yie=mW({BigNumber:_e,typed:Z}),Cx=hU({BigNumber:_e,Fraction:ga,complex:Ru,typed:Z}),Pu=bW({typed:Z}),Tn=xq({Matrix:Fu,equalScalar:ar,typed:Z}),Xie=Kq({typed:Z}),Kie=wU({typed:Z}),Jie=Oq({typed:Z}),Ht=lk({typed:Z}),Qie=SW({typed:Z}),Nx=vq({typed:Z}),eoe=_G({Complex:Nr,config:ge,typed:Z}),roe=LG({BigNumber:_e,typed:Z}),ep=Bf({isInteger:bt,typed:Z}),toe=kG({BigNumber:_e,Complex:Nr,config:ge,typed:Z}),Mt=Rq({BigNumber:_e,typed:Z}),noe=cre({typed:Z}),aoe=iW({typed:Z}),ioe=dW({BigNumber:_e,typed:Z}),To=pq({typed:Z}),ooe=Ij({typed:Z}),soe=Gre({config:ge,typed:Z}),uoe=gW({BigNumber:_e,typed:Z}),loe=wW({typed:Z}),coe=DG({SparseMatrix:Tn,typed:Z}),on=bU({Complex:Nr,config:ge,typed:Z}),foe=CW({typed:Z}),fn=Qq({typed:Z}),poe=RG({BigNumber:_e,Complex:Nr,config:ge,typed:Z}),doe=Tj({format:Mo,typed:Z}),voe=lW({BigNumber:_e,typed:Z}),_i=kq({Fraction:ga,typed:Z}),wa=aq({typed:Z}),Ne=Hq({DenseMatrix:er,Matrix:Fu,SparseMatrix:Tn,typed:Z}),moe=Vq({isZero:an,matrix:Ne,typed:Z}),hoe=Sj({isNaN:To,isNumeric:wa,typed:Z}),Lt=kj({bignumber:Mt,fraction:_i,number:Mn}),Mx=Dj({config:ge,multiplyScalar:qr,numeric:Lt,typed:Z}),Tx=RH({isInteger:bt,matrix:Ne,typed:Z}),nt=VH({matrix:Ne,config:ge,typed:Z}),goe=WH({matrix:Ne,typed:Z}),Oo=QH({matrix:Ne,typed:Z}),Ox=DU({BigNumber:_e,config:ge,matrix:Ne,typed:Z}),et=nj({BigNumber:_e,config:ge,matrix:Ne,typed:Z}),yoe=VG({Complex:Nr,config:ge,typed:Z}),_x=fk({BigNumber:_e,Complex:Nr,Fraction:ga,config:ge,isNegative:Zn,matrix:Ne,typed:Z,unaryMinus:fn}),fr=Zb({isInteger:bt,matrix:Ne,typed:Z}),boe=sH({prod:Mx,size:nt,typed:Z}),rp=rj({conj:ya,transpose:Oo,typed:Z}),$x=fH({DenseMatrix:er,SparseMatrix:Tn,matrix:Ne,typed:Z}),Rr=Hj({numeric:Lt,typed:Z}),_o=nV({DenseMatrix:er,concat:fr,divideScalar:Rr,equalScalar:ar,matrix:Ne,typed:Z}),jt=_V({DenseMatrix:er,concat:fr,equalScalar:ar,matrix:Ne,typed:Z}),$o=hH({matrix:Ne,typed:Z}),xoe=oq({isNumeric:wa,typed:Z}),Yn=SH({BigNumber:_e,DenseMatrix:er,SparseMatrix:Tn,config:ge,matrix:Ne,typed:Z}),woe=DH({matrix:Ne,multiplyScalar:qr,typed:Z}),zu=VV({DenseMatrix:er,concat:fr,config:ge,matrix:Ne,typed:Z}),Eoe=mV({DenseMatrix:er,concat:fr,equalScalar:ar,matrix:Ne,typed:Z,zeros:et}),Fx=iV({DenseMatrix:er,divideScalar:Rr,equalScalar:ar,matrix:Ne,multiplyScalar:qr,subtractScalar:Ht,typed:Z}),tp=Yq({flatten:$o,matrix:Ne,size:nt,typed:Z}),Soe=vU({BigNumber:_e,concat:fr,equalScalar:ar,matrix:Ne,typed:Z}),Aoe=$H({BigNumber:_e,config:ge,matrix:Ne,typed:Z}),np=uY({addScalar:Gr,complex:Ru,conj:ya,divideScalar:Rr,equal:jt,identity:Yn,isZero:an,matrix:Ne,multiplyScalar:qr,sign:Cx,sqrt:on,subtractScalar:Ht,typed:Z,unaryMinus:fn,zeros:et}),Doe=IH({config:ge,matrix:Ne}),Coe=gV({DenseMatrix:er,concat:fr,equalScalar:ar,matrix:Ne,typed:Z,zeros:et}),$i=Wj({BigNumber:_e,DenseMatrix:er,config:ge,equalScalar:ar,matrix:Ne,typed:Z,zeros:et}),ft=PV({DenseMatrix:er,concat:fr,config:ge,matrix:Ne,typed:Z}),Lr=SU({DenseMatrix:er,concat:fr,equalScalar:ar,matrix:Ne,subtractScalar:Ht,typed:Z,unaryMinus:fn}),Noe=Pj({concat:fr,matrix:Ne,typed:Z}),ap=rk({config:ge,numeric:Lt,typed:Z}),ip=sV({DenseMatrix:er,divideScalar:Rr,equalScalar:ar,matrix:Ne,multiplyScalar:qr,subtractScalar:Ht,typed:Z}),Moe=nH({DenseMatrix:er,concat:fr,matrix:Ne,typed:Z}),ur=ZW({DenseMatrix:er,SparseMatrix:Tn,addScalar:Gr,concat:fr,equalScalar:ar,matrix:Ne,typed:Z}),Toe=QG({BigNumber:_e,DenseMatrix:er,concat:fr,equalScalar:ar,matrix:Ne,typed:Z}),Ooe=Vb({concat:fr,equalScalar:ar,matrix:Ne,typed:Z}),_oe=Gb({DenseMatrix:er,concat:fr,equalScalar:ar,matrix:Ne,typed:Z}),$oe=jU({DenseMatrix:er,concat:fr,matrix:Ne,typed:Z}),Foe=Jre({addScalar:Gr,combinations:Bu,divideScalar:Rr,isInteger:bt,isNegative:Zn,multiplyScalar:qr,typed:Z}),Ea=EV({BigNumber:_e,DenseMatrix:er,Fraction:ga,concat:fr,config:ge,equalScalar:ar,matrix:Ne,typed:Z}),Bx=TV({concat:fr,matrix:Ne,typed:Z}),Boe=dx({add:ur,typed:Z,unaryPlus:ap}),op=ZV({equal:jt,typed:Z}),Roe=Xb({matrix:Ne,number:Mn,subtract:Lr,typed:Z}),Poe=Vee({abs:ht,addScalar:Gr,deepEqual:op,divideScalar:Rr,multiplyScalar:qr,sqrt:on,subtractScalar:Ht,typed:Z}),Iu=eZ({addScalar:Gr,conj:ya,multiplyScalar:qr,size:nt,typed:Z}),zoe=BV({compareText:Bx,isZero:an,typed:Z}),Rx=Ub({DenseMatrix:er,config:ge,equalScalar:ar,matrix:Ne,round:$i,typed:Z,zeros:et}),Ioe=Qk({BigNumber:_e,DenseMatrix:er,concat:fr,config:ge,equalScalar:ar,matrix:Ne,round:$i,typed:Z,zeros:et}),Loe=XW({abs:ht,addScalar:Gr,divideScalar:Rr,isPositive:ba,multiplyScalar:qr,smaller:ft,sqrt:on,typed:Z}),Px=oG({DenseMatrix:er,smaller:ft}),ot=lG({ImmutableDenseMatrix:Px,getMatrixDataType:Kf}),pt=UV({DenseMatrix:er,concat:fr,config:ge,matrix:Ne,typed:Z}),sp=Yj({Complex:Nr,config:ge,divideScalar:Rr,typed:Z}),qoe=lV({DenseMatrix:er,divideScalar:Rr,equalScalar:ar,matrix:Ne,multiplyScalar:qr,subtractScalar:Ht,typed:Z}),koe=Wq({flatten:$o,matrix:Ne,size:nt,typed:Z}),Uoe=ox({config:ge,numeric:Lt,smaller:ft,typed:Z}),zx=Hb({DenseMatrix:er,concat:fr,config:ge,equalScalar:ar,matrix:Ne,round:$i,typed:Z,zeros:et}),yr=pU({addScalar:Gr,dot:Iu,equalScalar:ar,matrix:Ne,multiplyScalar:qr,typed:Z}),Hoe=Qj({Complex:Nr,config:ge,divideScalar:Rr,typed:Z}),joe=Wb({DenseMatrix:er,concat:fr,equalScalar:ar,matrix:Ne,typed:Z}),Lu=QV({compare:Ea,isNaN:To,isNumeric:wa,typed:Z}),Voe=bV({DenseMatrix:er,concat:fr,equalScalar:ar,matrix:Ne,typed:Z,zeros:et}),Ix=$Y({SparseMatrix:Tn,abs:ht,add:ur,divideScalar:Rr,larger:pt,largerEq:zu,multiply:yr,subtract:Lr,transpose:Oo,typed:Z}),_t=rx({add:ur,matrix:Ne,typed:Z,zeros:et}),up=px({add:ur,config:ge,numeric:Lt,typed:Z}),Goe=nZ({add:ur,matrix:Ne,typed:Z}),Lx=fV({DenseMatrix:er,divideScalar:Rr,equalScalar:ar,matrix:Ne,multiplyScalar:qr,subtractScalar:Ht,typed:Z}),Woe=Ste({Complex:Nr,add:ur,multiply:yr,number:Mn,typed:Z}),lp=xk({DenseMatrix:er,config:ge,equalScalar:ar,matrix:Ne,round:$i,typed:Z,zeros:et}),pn=CV({compare:Ea,typed:Z}),Zoe=ete({addScalar:Gr,combinations:Bu,isInteger:bt,isNegative:Zn,isPositive:ba,larger:pt,typed:Z}),Yoe=lH({matrix:Ne,multiply:yr,subtract:Lr,typed:Z}),qx=wee({divideScalar:Rr,isZero:an,matrix:Ne,multiply:yr,subtractScalar:Ht,typed:Z,unaryMinus:fn}),Xoe=_U({concat:fr,equalScalar:ar,matrix:Ne,multiplyScalar:qr,typed:Z}),kx=pG({larger:pt,smaller:ft}),Ux=Tk({Complex:Nr,DenseMatrix:er,ceil:lp,equalScalar:ar,floor:Rx,matrix:Ne,typed:Z,zeros:et}),Hx=iZ({Index:ot,typed:Z}),Koe=Zee({abs:ht,add:ur,addScalar:Gr,config:ge,divideScalar:Rr,equalScalar:ar,flatten:$o,isNumeric:wa,isZero:an,matrix:Ne,multiply:yr,multiplyScalar:qr,smaller:ft,subtract:Lr,typed:Z}),Joe=NU({BigNumber:_e,add:ur,config:ge,equal:jt,isInteger:bt,mod:zx,smaller:ft,typed:Z,xgcd:Ox}),Qoe=nU({concat:fr,equalScalar:ar,matrix:Ne,typed:Z}),ese=Kj({Complex:Nr,config:ge,divideScalar:Rr,log:sp,typed:Z}),cp=ix({config:ge,larger:pt,numeric:Lt,typed:Z}),rse=MW({DenseMatrix:er,Index:ot,compareNatural:pn,size:nt,subset:_t,typed:Z}),tse=$W({DenseMatrix:er,Index:ot,compareNatural:pn,size:nt,subset:_t,typed:Z}),nse=PW({Index:ot,compareNatural:pn,size:nt,subset:_t,typed:Z}),ase=qW({Index:ot,compareNatural:pn,size:nt,subset:_t,typed:Z}),li=LV({DenseMatrix:er,concat:fr,config:ge,matrix:Ne,typed:Z}),ise=rG({compare:Ea,compareNatural:pn,matrix:Ne,typed:Z}),ose=XV({DenseMatrix:er,concat:fr,config:ge,equalScalar:ar,matrix:Ne,typed:Z}),sse=ax({concat:fr,equalScalar:ar,matrix:Ne,not:Xs,typed:Z,zeros:et}),ci=Qb({bignumber:Mt,matrix:Ne,add:ur,config:ge,isPositive:ba,larger:pt,largerEq:zu,smaller:ft,smallerEq:li,typed:Z}),use=ex({Index:ot,matrix:Ne,range:ci,typed:Z}),jx=OW({DenseMatrix:er,Index:ot,compareNatural:pn,size:nt,subset:_t,typed:Z}),lse=IW({Index:ot,compareNatural:pn,size:nt,subset:_t,typed:Z}),Vx=jW({Index:ot,concat:fr,setDifference:jx,size:nt,subset:_t,typed:Z}),Gx=mG({FibonacciHeap:kx,addScalar:Gr,equalScalar:ar}),Wx=Yb({Index:ot,matrix:Ne,range:ci,typed:Z}),Sa=See({abs:ht,addScalar:Gr,det:qx,divideScalar:Rr,identity:Yn,matrix:Ne,multiply:yr,typed:Z,unaryMinus:fn}),Zx=oY({DenseMatrix:er,Spa:Gx,SparseMatrix:Tn,abs:ht,addScalar:Gr,divideScalar:Rr,equalScalar:ar,larger:pt,matrix:Ne,multiplyScalar:qr,subtractScalar:Ht,typed:Z,unaryMinus:fn}),cse=Dee({Complex:Nr,add:ur,ctranspose:rp,deepEqual:op,divideScalar:Rr,dot:Iu,dotDivide:_o,equal:jt,inv:Sa,matrix:Ne,multiply:yr,typed:Z}),Vt=Vj({Complex:Nr,config:ge,fraction:_i,identity:Yn,inv:Sa,matrix:Ne,multiply:yr,number:Mn,typed:Z}),Yx=BW({DenseMatrix:er,Index:ot,compareNatural:pn,size:nt,subset:_t,typed:Z}),fse=GW({Index:ot,concat:fr,setIntersect:Yx,setSymDifference:Vx,size:nt,subset:_t,typed:Z}),pse=Bee({abs:ht,add:ur,identity:Yn,inv:Sa,map:xa,max:cp,multiply:yr,size:nt,sqrt:on,subtract:Lr,typed:Z}),je=wG({BigNumber:_e,Complex:Nr,Fraction:ga,abs:ht,addScalar:Gr,config:ge,divideScalar:Rr,equal:jt,fix:Ux,format:Mo,isNumeric:wa,multiplyScalar:qr,number:Mn,pow:Vt,round:$i,subtractScalar:Ht}),dse=tne({BigNumber:_e,Unit:je,config:ge}),vse=zne({BigNumber:_e,Unit:je,config:ge}),mse=Dne({BigNumber:_e,Unit:je,config:ge}),hse=ine({BigNumber:_e,Unit:je,config:ge}),gse=Nne({BigNumber:_e,Unit:je,config:ge}),yse=one({BigNumber:_e,Unit:je,config:ge}),bse=nne({BigNumber:_e,Unit:je,config:ge}),xse=yne({BigNumber:_e,Unit:je,config:ge}),wse=rV({DenseMatrix:er,concat:fr,equalScalar:ar,matrix:Ne,pow:Vt,typed:Z}),Ese=rne({BigNumber:_e,Unit:je,config:ge}),Sse=ane({BigNumber:_e,Unit:je,config:ge}),Ase=$ee({abs:ht,add:ur,identity:Yn,inv:Sa,multiply:yr,typed:Z}),Dse=Mne({BigNumber:_e,Unit:je,config:ge}),Xx=ij({addScalar:Gr,ceil:lp,conj:ya,divideScalar:Rr,dotDivide:_o,exp:Ax,i:xx,log2:Dx,matrix:Ne,multiplyScalar:qr,pow:Vt,tau:Ex,typed:Z}),fp=pre({BigNumber:_e,Complex:Nr,config:ge,multiplyScalar:qr,pow:Vt,typed:Z}),Cse=Kte({BigNumber:_e,Unit:je,config:ge}),Nse=hne({BigNumber:_e,Unit:je,config:ge}),Mse=sj({conj:ya,dotDivide:_o,fft:Xx,typed:Z}),Tse=cne({BigNumber:_e,Unit:je,config:ge}),Ose=One({BigNumber:_e,Unit:je,config:ge}),_se=ene({BigNumber:_e,Unit:je,config:ge}),$se=Ine({BigNumber:_e,Unit:je,config:ge}),Fse=$ne({BigNumber:_e,Unit:je,config:ge}),Bse=bne({BigNumber:_e,Unit:je,config:ge}),Rse=lne({BigNumber:_e,Unit:je,config:ge}),Pse=jne({BigNumber:_e,Unit:je,config:ge}),zse=kne({BigNumber:_e,Unit:je,config:ge}),Ise=Vne({BigNumber:_e,Unit:je,config:ge}),Lse=gne({BigNumber:_e,Unit:je,config:ge}),qse=xne({BigNumber:_e,Unit:je,config:ge}),kse=Qte({BigNumber:_e,Unit:je,config:ge}),Use=wne({BigNumber:_e,Unit:je,config:ge}),Hse=Rne({BigNumber:_e,Unit:je,config:ge}),jse=Xte({BigNumber:_e,Unit:je,config:ge}),Vse=Pne({BigNumber:_e,Unit:je,config:ge}),Gse=Ene({BigNumber:_e,Unit:je,config:ge}),Wse=Cne({BigNumber:_e,Unit:je,config:ge}),Zse=fne({BigNumber:_e,Unit:je,config:ge}),Yse=NG({Unit:je,typed:Z}),Yr=Hee({divideScalar:Rr,equalScalar:ar,inv:Sa,matrix:Ne,multiply:yr,typed:Z}),Xse=dne({BigNumber:_e,Unit:je,config:ge}),Fo=hre({gamma:fp,typed:Z}),Kse=Tne({BigNumber:_e,Unit:je,config:ge}),Jse=qne({BigNumber:_e,Unit:je,config:ge}),Qse=sne({BigNumber:_e,Unit:je,config:ge}),Kx=BY({DenseMatrix:er,lsolve:Fx,lup:Zx,matrix:Ne,slu:Ix,typed:Z,usolve:ip}),eue=une({BigNumber:_e,Unit:je,config:ge}),rue=Lne({BigNumber:_e,Unit:je,config:ge}),tue=xre({add:ur,divide:Yr,factorial:Fo,isInteger:bt,isPositive:ba,multiply:yr,typed:Z}),nue=Ere({factorial:Fo,typed:Z}),aue=Une({BigNumber:_e,Unit:je,config:ge}),iue=PY({add:ur,cbrt:_x,divide:Yr,equalScalar:ar,im:Jf,isZero:an,multiply:yr,re:Qf,sqrt:on,subtract:Lr,typeOf:Nx,typed:Z,unaryMinus:fn}),oue=UW({compareNatural:pn,typed:Z}),sue=dj({abs:ht,add:ur,bignumber:Mt,divide:Yr,isNegative:Zn,isPositive:ba,larger:pt,map:xa,matrix:Ne,max:cp,multiply:yr,smaller:ft,subtract:Lr,typed:Z,unaryMinus:fn}),Jx=Zre({bignumber:Mt,addScalar:Gr,combinations:Bu,divideScalar:Rr,factorial:Fo,isInteger:bt,isNegative:Zn,larger:pt,multiplyScalar:qr,number:Mn,pow:Vt,subtractScalar:Ht,typed:Z}),uue=SG({Unit:je,typed:Z}),lue=Xre({addScalar:Gr,isInteger:bt,isNegative:Zn,stirlingS2:Jx,typed:Z}),Qx=Oee({abs:ht,add:ur,addScalar:Gr,atan:Sx,bignumber:Mt,column:Wx,complex:Ru,config:ge,cos:Xf,diag:$x,divideScalar:Rr,dot:Iu,equal:jt,flatten:$o,im:Jf,inv:Sa,larger:pt,matrix:Ne,matrixFromColumns:tp,multiply:yr,multiplyScalar:qr,number:Mn,qr:np,re:Qf,reshape:Tx,sin:Pu,size:nt,smaller:ft,sqrt:on,subtract:Lr,typed:Z,usolve:ip,usolveAll:Lx}),cue=vne({BigNumber:_e,Unit:je,config:ge}),fue=_ne({BigNumber:_e,Unit:je,config:ge}),pue=yre({divide:Yr,dotDivide:_o,isNumeric:wa,log:sp,map:xa,matrix:Ne,multiply:yr,sum:up,typed:Z}),ew=vx({add:ur,divide:Yr,typed:Z}),due=Fne({BigNumber:_e,Unit:je,config:ge}),vue=Jte({BigNumber:_e,Unit:je,config:ge}),mue=hx({bignumber:Mt,add:ur,compare:Ea,divide:Yr,isInteger:bt,larger:pt,multiply:yr,partitionSelect:Lu,smaller:ft,smallerEq:li,subtract:Lr,typed:Z}),pp=mx({add:ur,apply:ep,divide:Yr,isNaN:To,multiply:yr,subtract:Lr,typed:Z}),hue=pne({BigNumber:_e,Unit:je,config:ge}),rw=Qee({add:ur,compare:Ea,divide:Yr,partitionSelect:Lu,typed:Z}),gue=ore({add:ur,divide:Yr,matrix:Ne,mean:ew,multiply:yr,pow:Vt,sqrt:on,subtract:Lr,sum:up,typed:Z}),yue=Dte({Complex:Nr,add:ur,divide:Yr,matrix:Ne,multiply:yr,typed:Z}),bue=rre({abs:ht,map:xa,median:rw,subtract:Lr,typed:Z}),xue=gx({map:xa,sqrt:on,typed:Z,variance:pp}),wue=wj({BigNumber:_e,Complex:Nr,add:ur,config:ge,divide:Yr,equal:jt,factorial:Fo,gamma:fp,isNegative:Zn,multiply:yr,pi:hc,pow:Vt,sin:Pu,smallerEq:li,subtract:Lr,typed:Z}),dp=JW({abs:ht,add:ur,conj:ya,ctranspose:rp,eigs:Qx,equalScalar:ar,larger:pt,matrix:Ne,multiply:yr,pow:Vt,smaller:ft,sqrt:on,typed:Z}),tw=UH({BigNumber:_e,DenseMatrix:er,SparseMatrix:Tn,addScalar:Gr,config:ge,cos:Xf,matrix:Ne,multiplyScalar:qr,norm:dp,sin:Pu,typed:Z,unaryMinus:fn}),Eue=Hne({BigNumber:_e,Unit:je,config:ge}),nw=Iee({identity:Yn,matrix:Ne,multiply:yr,norm:dp,qr:np,subtract:Lr,typed:Z}),Sue=qH({multiply:yr,rotationMatrix:tw,typed:Z}),aw=Pee({abs:ht,add:ur,concat:fr,identity:Yn,index:Hx,lusolve:Kx,matrix:Ne,matrixFromColumns:tp,multiply:yr,range:ci,schur:nw,subset:_t,subtract:Lr,transpose:Oo,typed:Z}),Aue=qee({matrix:Ne,multiply:yr,sylvester:aw,transpose:Oo,typed:Z}),Fi={},Bi={},iw={},lt=uZ({mathWithTransform:Bi}),Ri=BZ({Node:lt}),On=PZ({Node:lt}),Aa=IZ({Node:lt}),ow=UZ({Node:lt}),Pi=pZ({Node:lt}),sw=yZ({Node:lt,ResultSet:wx}),uw=xZ({Node:lt}),Xn=MZ({Node:lt}),lw=qZ({Node:lt}),Due=Mte({classes:iw}),vp=UY({math:Fi,typed:Z}),cw=OZ({Node:lt,typed:Z}),Cue=bee({Chain:vp,typed:Z}),zi=$Z({Node:lt,size:nt}),Ii=cZ({Node:lt,subset:_t}),fw=hZ({matrix:Ne,Node:lt,subset:_t}),Kn=VZ({Unit:je,Node:lt,math:Fi}),Jn=WZ({Node:lt,SymbolNode:Kn,math:Fi}),dn=YZ({AccessorNode:Ii,ArrayNode:Pi,AssignmentNode:fw,BlockNode:sw,ConditionalNode:uw,ConstantNode:Xn,FunctionAssignmentNode:cw,FunctionNode:Jn,IndexNode:zi,ObjectNode:Ri,OperatorNode:On,ParenthesisNode:Aa,RangeNode:lw,RelationalNode:ow,SymbolNode:Kn,config:ge,numeric:Lt,typed:Z}),pw=mte({ConstantNode:Xn,FunctionNode:Jn,OperatorNode:On,ParenthesisNode:Aa,parse:dn,typed:Z}),mp=cte({bignumber:Mt,fraction:_i,AccessorNode:Ii,ArrayNode:Pi,ConstantNode:Xn,FunctionNode:Jn,IndexNode:zi,ObjectNode:Ri,OperatorNode:On,SymbolNode:Kn,config:ge,mathWithTransform:Bi,matrix:Ne,typed:Z}),Nue=KZ({parse:dn,typed:Z}),hp=pte({AccessorNode:Ii,ArrayNode:Pi,ConstantNode:Xn,FunctionNode:Jn,IndexNode:zi,ObjectNode:Ri,OperatorNode:On,ParenthesisNode:Aa,SymbolNode:Kn,add:ur,divide:Yr,equal:jt,isZero:an,multiply:yr,parse:dn,pow:Vt,subtract:Lr,typed:Z}),qu=QZ({parse:dn,typed:Z}),dw=LY({evaluate:qu}),vw=tY({evaluate:qu}),ku=ste({bignumber:Mt,fraction:_i,AccessorNode:Ii,ArrayNode:Pi,ConstantNode:Xn,FunctionNode:Jn,IndexNode:zi,ObjectNode:Ri,OperatorNode:On,ParenthesisNode:Aa,SymbolNode:Kn,add:ur,config:ge,divide:Yr,equal:jt,isZero:an,mathWithTransform:Bi,matrix:Ne,multiply:yr,parse:dn,pow:Vt,resolve:pw,simplifyConstant:mp,simplifyCore:hp,subtract:Lr,typed:Z}),Mue=gte({OperatorNode:On,parse:dn,simplify:ku,typed:Z}),Tue=tte({parse:dn,typed:Z}),Oue=aY({Parser:vw,typed:Z}),_ue=wte({bignumber:Mt,fraction:_i,AccessorNode:Ii,ArrayNode:Pi,ConstantNode:Xn,FunctionNode:Jn,IndexNode:zi,ObjectNode:Ri,OperatorNode:On,ParenthesisNode:Aa,SymbolNode:Kn,add:ur,config:ge,divide:Yr,equal:jt,isZero:an,mathWithTransform:Bi,matrix:Ne,multiply:yr,parse:dn,pow:Vt,simplify:ku,simplifyConstant:mp,simplifyCore:hp,subtract:Lr,typed:Z}),$ue=bte({ConstantNode:Xn,FunctionNode:Jn,OperatorNode:On,ParenthesisNode:Aa,SymbolNode:Kn,config:ge,equal:jt,isZero:an,numeric:Lt,parse:dn,simplify:ku,typed:Z}),Fue=gee({Help:dw,mathWithTransform:Bi,typed:Z});Hr(Fi,{e:rg,false:iie,fineStructure:oie,i:xx,Infinity:sie,LN10:uie,LOG10E:lie,NaN:cie,null:fie,phi:pie,SQRT1_2:vie,sackurTetrode:mie,tau:Ex,true:hie,E:rg,version:gie,efimovFactor:yie,LN2:bie,pi:hc,replacer:xie,reviver:Due,SQRT2:wie,typed:Z,PI:hc,weakMixingAngle:Eie,abs:ht,acos:Sie,acot:Aie,acsc:Die,addScalar:Gr,arg:Cie,asech:Nie,asinh:Mie,atan:Sx,atanh:Tie,bigint:Oie,bitNot:_ie,boolean:$ie,clone:Fie,combinations:Bu,complex:Ru,conj:ya,cos:Xf,cot:Bie,csc:Rie,cube:Pie,equalScalar:ar,erf:zie,exp:Ax,expm1:Iie,filter:Lie,forEach:qie,format:Mo,getMatrixDataType:Kf,hex:kie,im:Jf,isInteger:bt,isNegative:Zn,isPositive:ba,isZero:an,LOG2E:Uie,lgamma:Hie,log10:jie,log2:Dx,map:xa,multiplyScalar:qr,not:Xs,number:Mn,oct:Vie,pickRandom:Gie,print:Wie,random:Zie,re:Qf,sec:Yie,sign:Cx,sin:Pu,splitUnit:Xie,square:Kie,string:Jie,subtractScalar:Ht,tan:Qie,typeOf:Nx,acosh:eoe,acsch:roe,apply:ep,asec:toe,bignumber:Mt,chain:Cue,combinationsWithRep:noe,cosh:aoe,csch:ioe,isNaN:To,isPrime:ooe,randomInt:soe,sech:uoe,sinh:loe,sparse:coe,sqrt:on,tanh:foe,unaryMinus:fn,acoth:poe,bin:doe,coth:voe,fraction:_i,isNumeric:wa,matrix:Ne,matrixFromFunction:moe,mode:hoe,numeric:Lt,prod:Mx,reshape:Tx,size:nt,squeeze:goe,transpose:Oo,xgcd:Ox,zeros:et,asin:yoe,cbrt:_x,concat:fr,count:boe,ctranspose:rp,diag:$x,divideScalar:Rr,dotDivide:_o,equal:jt,flatten:$o,hasNumericValue:xoe,identity:Yn,kron:woe,largerEq:zu,leftShift:Eoe,lsolve:Fx,matrixFromColumns:tp,nthRoot:Soe,ones:Aoe,qr:np,resize:Doe,rightArithShift:Coe,round:$i,smaller:ft,subtract:Lr,to:Noe,unaryPlus:ap,usolve:ip,xor:Moe,add:ur,atan2:Toe,bitAnd:Ooe,bitOr:_oe,bitXor:$oe,catalan:Foe,compare:Ea,compareText:Bx,cumsum:Boe,deepEqual:op,diff:Roe,distance:Poe,dot:Iu,equalText:zoe,floor:Rx,gcd:Ioe,hypot:Loe,larger:pt,log:sp,lsolveAll:qoe,matrixFromRows:koe,min:Uoe,mod:zx,multiply:yr,nthRoots:Hoe,or:joe,partitionSelect:Lu,rightLogShift:Voe,slu:Ix,subset:_t,sum:up,trace:Goe,usolveAll:Lx,zpk2tf:Woe,ceil:lp,compareNatural:pn,composition:Zoe,cross:Yoe,det:qx,dotMultiply:Xoe,fix:Ux,index:Hx,intersect:Koe,invmod:Joe,lcm:Qoe,log1p:ese,max:cp,setCartesian:rse,setDistinct:tse,setIsSubset:nse,setPowerset:ase,smallerEq:li,sort:ise,unequal:ose,and:sse,range:ci,row:use,setDifference:jx,setMultiplicity:lse,setSymDifference:Vx,column:Wx,inv:Sa,lup:Zx,pinv:cse,pow:Vt,setIntersect:Yx,setUnion:fse,sqrtm:pse,vacuumImpedance:dse,wienDisplacement:vse,atomicMass:mse,bohrMagneton:hse,boltzmann:gse,conductanceQuantum:yse,coulomb:bse,deuteronMass:xse,dotPow:wse,electricConstant:Ese,elementaryCharge:Sse,expm:Ase,faraday:Dse,fft:Xx,gamma:fp,gravitationConstant:Cse,hartreeEnergy:Nse,ifft:Mse,klitzing:Tse,loschmidt:Ose,magneticConstant:_se,molarMass:$se,molarPlanckConstant:Fse,neutronMass:Bse,nuclearMagneton:Rse,planckCharge:Pse,planckLength:zse,planckTemperature:Ise,protonMass:Lse,quantumOfCirculation:qse,reducedPlanckConstant:kse,rydberg:Use,secondRadiation:Hse,speedOfLight:jse,stefanBoltzmann:Vse,thomsonCrossSection:Gse,avogadro:Wse,bohrRadius:Zse,createUnit:Yse,divide:Yr,electronMass:Xse,factorial:Fo,firstRadiation:Kse,gravity:Jse,inverseConductanceQuantum:Qse,lusolve:Kx,magneticFluxQuantum:eue,molarMassC12:rue,multinomial:tue,parse:dn,permutations:nue,planckMass:aue,polynomialRoot:iue,resolve:pw,setSize:oue,simplifyConstant:mp,solveODE:sue,stirlingS2:Jx,unit:uue,bellNumbers:lue,compile:Nue,eigs:Qx,fermiCoupling:cue,gasConstant:fue,kldivergence:pue,mean:ew,molarVolume:due,planckConstant:vue,quantileSeq:mue,simplifyCore:hp,variance:pp,classicalElectronRadius:hue,evaluate:qu,median:rw,simplify:ku,symbolicEqual:Mue,corr:gue,freqz:yue,leafCount:Tue,mad:bue,parser:Oue,rationalize:_ue,std:xue,zeta:wue,derivative:$ue,norm:dp,rotationMatrix:tw,help:Fue,planckTime:Eue,schur:nw,rotate:Sue,sylvester:aw,lyap:Aue,config:ge});Hr(Bi,Fi,{filter:eae({typed:Z}),forEach:nae({typed:Z}),map:lae({typed:Z}),apply:Zne({isInteger:bt,typed:Z}),or:Jae({DenseMatrix:er,concat:fr,equalScalar:ar,matrix:Ne,typed:Z}),and:Yae({add:ur,concat:fr,equalScalar:ar,matrix:Ne,not:Xs,typed:Z,zeros:et}),concat:Oae({isInteger:bt,matrix:Ne,typed:Z}),max:pae({config:ge,larger:pt,numeric:Lt,typed:Z}),print:Gae({add:ur,matrix:Ne,typed:Z,zeros:et}),bitAnd:rie({add:ur,concat:fr,equalScalar:ar,matrix:Ne,not:Xs,typed:Z,zeros:et}),diff:$ae({bignumber:Mt,matrix:Ne,number:Mn,subtract:Lr,typed:Z}),min:yae({config:ge,numeric:Lt,smaller:ft,typed:Z}),subset:Nae({add:ur,matrix:Ne,typed:Z,zeros:et}),bitOr:aie({DenseMatrix:er,concat:fr,equalScalar:ar,matrix:Ne,typed:Z}),cumsum:Uae({add:ur,typed:Z,unaryPlus:ap}),index:oae({Index:ot,getMatrixDataType:Kf}),sum:zae({add:ur,config:ge,numeric:Lt,typed:Z}),range:wae({bignumber:Mt,matrix:Ne,add:ur,config:ge,isPositive:ba,larger:pt,largerEq:zu,smaller:ft,smallerEq:li,typed:Z}),row:Aae({Index:ot,matrix:Ne,range:ci,typed:Z}),column:Kne({Index:ot,matrix:Ne,range:ci,typed:Z}),mean:mae({add:ur,divide:Yr,typed:Z}),quantileSeq:qae({add:ur,bignumber:Mt,compare:Ea,divide:Yr,isInteger:bt,larger:pt,multiply:yr,partitionSelect:Lu,smaller:ft,smallerEq:li,subtract:Lr,typed:Z}),variance:jae({add:ur,apply:ep,divide:Yr,isNaN:To,multiply:yr,subtract:Lr,typed:Z}),std:Rae({map:xa,sqrt:on,typed:Z,variance:pp})});Hr(iw,{BigNumber:_e,Complex:Nr,Fraction:ga,Matrix:Fu,Node:lt,ObjectNode:Ri,OperatorNode:On,ParenthesisNode:Aa,Range:die,RelationalNode:ow,ResultSet:wx,ArrayNode:Pi,BlockNode:sw,ConditionalNode:uw,ConstantNode:Xn,DenseMatrix:er,RangeNode:lw,Chain:vp,FunctionAssignmentNode:cw,SparseMatrix:Tn,IndexNode:zi,ImmutableDenseMatrix:Px,Index:ot,AccessorNode:Ii,AssignmentNode:fw,FibonacciHeap:kx,Spa:Gx,Unit:je,SymbolNode:Kn,FunctionNode:Jn,Help:dw,Parser:vw});vp.createProxy(Fi);const mw=_.forwardRef(({onChange:e,value:r,dragDirection:t,showDragHandle:n=!0,dragScale:a,selectOnFocus:i=!0,bounds:o=G.R.INFINITE,resetValue:s,style:u,variant:l="outlined",className:c,children:f,onBlur:p,...d},v)=>{const[m,g,y]=ri(r.toString()),[E,h,w]=ri(!0),x=kt(r),b=_.useCallback(()=>{if(w.current)return;h(!0);let B=!1,P=0;try{P=qu(y.current),B=P!=null}catch{B=!1}B?e==null||e(G.R.clamp(o,P)):g(x.current.toString())},[e,g]),D=kt(b),A=_.useCallback(()=>{p==null||p(),b()},[p,b]);_.useEffect(()=>()=>{var B;return(B=D.current)==null?void 0:B.call(D)},[]);const S=_.useCallback(B=>{h(!1),g(B)},[g,h]),C=E?r:m,N=_.useCallback(B=>{h(!1),g(Math.round(G.R.clamp(o,B)).toString())},[g,h]),$=_.useCallback(B=>{h(!0),e==null||e(G.R.clamp(o,Math.round(B)))},[e,h]);return a==null&&G.R.isFinite(o)&&(a={x:G.R.span(o)*.01,y:G.R.span(o)*.02}),Oe.jsxRuntimeExports.jsxs(Si,{ref:v,type:"text",variant:l,value:C.toString(),onChange:S,style:u,selectOnFocus:i,onKeyDown:B=>{ti(B)==="Enter"&&(b(),p==null||p())},onBlur:A,...d,children:[n&&Oe.jsxRuntimeExports.jsx(yu,{direction:t,value:r,onChange:N,dragScale:a,resetValue:s,onDragEnd:$,onBlur:A}),f]})});mw.displayName="InputNumber";const Al="input-switch",gp=_.forwardRef(({className:e,value:r,onChange:t,size:n="medium",...a},i)=>Oe.jsxRuntimeExports.jsx("div",{className:G.CSS(G.CSS.BE(Al,"container"),G.CSS.size(n)),children:Oe.jsxRuntimeExports.jsxs("label",{className:G.CSS(G.CSS.BE(Al,"track"),e),children:[Oe.jsxRuntimeExports.jsx("input",{className:G.CSS.BE(Al,"input"),type:"checkbox",ref:i,checked:r,onChange:o=>t(o.target.checked),value:"",...a}),Oe.jsxRuntimeExports.jsx("span",{className:"pluto-input-switch__slider"})]})}));gp.displayName="InputSwitch";const hw=_.forwardRef(({value:e,style:r,onChange:t,className:n,onFocus:a,selectOnFocus:i=!1,placeholder:o,variant:s="outlined",sharp:u=!1,children:l,...c},f)=>Oe.jsxRuntimeExports.jsx("textarea",{style:r,className:G.CSS(G.CSS.B("textarea"),G.CSS.BM("textarea",s),G.CSS.sharp(u),n),ref:f,value:e,onChange:p=>t(p.target.value.replace(/\n/g,"")),onFocus:p=>{i&&p.target.select(),a==null||a(p)},placeholder:o,...c}));hw.displayName="InputTextArea";const Bue=(e,r)=>new ye.m(e).add(r).sub(ye.m.utcOffset),Rue={x:Number(ye.y.SECOND.valueOf())*.5,y:Number(ye.y.MINUTE.valueOf())},gw=({value:e,onChange:r,tzInfo:t})=>{const n=new ye.m(e,"UTC"),a=n.sub(ye.m.utcOffset);if(a.after(ye.m.DAY)){const s=a.remainder(ye.m.DAY);r(Number(new ye.m(s,"local").valueOf()))}const i=_.useCallback(s=>{let u;if(typeof s=="number")u=new ye.m(s,"UTC");else{if(s.length===0)return;u=new ye.m(s,"local")}r(Number(u.valueOf()))},[r,t]);return{inputValue:n.fString("time",t),ts:n,handleChange:i}},yw=_.forwardRef(({size:e,value:r,tzInfo:t="local",onChange:n,dragDirection:a,showDragHandle:i=!0,className:o,children:s,...u},l)=>{const{inputValue:c,ts:f,handleChange:p}=gw({value:r,onChange:n,tzInfo:t});return Oe.jsxRuntimeExports.jsxs(Si,{ref:l,value:c,className:G.CSS(G.CSS.B("input-time"),o),type:"time",step:"1",onChange:p,...u,children:[i&&Oe.jsxRuntimeExports.jsx(yu,{direction:a,value:Number(f.valueOf()),onChange:p,dragScale:Rue}),s]})});yw.displayName="InputTime";const bw=_.createContext({theme:ye.themeZ.parse(ye.SYNNAX_THEMES.synnaxLight),toggleTheme:()=>{},setTheme:()=>{}}),gc=()=>typeof(window==null?void 0:window.matchMedia)>"u"?null:window.matchMedia("(prefers-color-scheme: dark)"),tg=()=>{var e;return((e=gc())==null?void 0:e.matches)??!0},xw=({theme:e,themes:r=ye.SYNNAX_THEMES,setTheme:t,toggleTheme:n,lightTheme:a="synnaxLight",darkTheme:i="synnaxDark"})=>{const[o,s]=_.useState(tg()?i:a),u=_.useMemo(()=>{if(e!=null){const f=ye.themeZ.parse(ye._.override(ye._.copy(ye.SYNNAX_LIGHT),e)),p=ye.themeZ.parse(ye._.override(ye._.copy(ye.SYNNAX_DARK),e));return e.key!=null&&e.key.length>0&&s(e.key),{synnaxLight:f,synnaxDark:p}}return Object.entries(r).reduce((f,[p,d])=>({...f,[p]:ye.themeZ.parse(d)}),{})},[e,r]),l=_.useCallback(()=>{const f=Object.keys(r),d=(f.indexOf(o)+1)%f.length;s(f[d])},[n,o,r]),c=_.useMemo(()=>u[o],[u,o]);return _.useEffect(()=>{var p;const f=()=>s(tg()?i:a);return(p=gc())==null||p.addEventListener("change",f),()=>{var d;return(d=gc())==null?void 0:d.removeEventListener("change",f)}},[]),{theme:c,toggleTheme:n??l,setTheme:t??s}},Uu=()=>_.useContext(bw),Pue=()=>Uu().theme,zue=gu(ye.Provider.TYPE,({children:e,aetherKey:r,applyCSSVars:t=!0,...n})=>{const a=xw(n),[{path:i},,o]=hu({aetherKey:r,type:ye.Provider.TYPE,schema:ye.Provider.z,initialState:{theme:a.theme}});return _.useEffect(()=>o({theme:a.theme}),[a.theme]),_.useLayoutEffect(()=>{t?G.CSS.applyVars(document.documentElement,n2(a.theme)):G.CSS.removeVars(document.documentElement,"--pluto")},[a.theme]),Oe.jsxRuntimeExports.jsx(bw.Provider,{value:a,children:Oe.jsxRuntimeExports.jsx(Eo,{path:i,children:e})})}),Iue=({...e})=>{const{toggleTheme:r}=Uu(),[t,n]=_.useState(!1);return Oe.jsxRuntimeExports.jsx(gp,{value:t,onChange:a=>{r(),n(a)},...e})},ww=e=>{const{theme:r}=Uu(),t=r.typography[e];return{...t,toString:()=>ye.fontString(r,e),baseSize:r.sizes.base,lineHeightPx:t.lineHeight*r.sizes.base,sizePx:t.size*r.sizes.base}},yp=_.createContext(null),Lue=()=>wf(yp),Dl="sort",que=({hide:e=!1,columns:r,children:t})=>{const n=Qy(),{setTransform:a,deleteTransform:i}=wo(),o=ww("p").toString(),[s,u]=_.useState([null,!1]),[l,c]=_.useState({columns:r}),f=p=>{const[d,v]=s;d===p?v?(u([p,!v]),a(Dl,ng(p,!v))):(u([null,!1]),i(Dl)):(u([p,!0]),a(Dl,ng(p,!0)))};return _.useEffect(()=>{c(p=>({columns:Hue(p.columns.length===0?r:p.columns,n,o)}))},[o,n,r]),Oe.jsxRuntimeExports.jsxs(yp.Provider,{value:l,children:[Oe.jsxRuntimeExports.jsx(Zt.Space,{direction:"x",size:"medium",className:G.CSS(G.CSS.BE("list-col-header","container"),G.CSS.visible(!e)),children:l.columns.filter(({visible:p=!0})=>p).map(({key:p,cWidth:d,name:v})=>{const[m,g]=s;let y;const E=n[0];return p===m&&(y=g?Oe.jsxRuntimeExports.jsx(It.Caret.Up,{}):Oe.jsxRuntimeExports.jsx(It.Caret.Down,{})),Oe.jsxRuntimeExports.jsx(Vu,{className:G.CSS.BE("list-col-header","item"),justify:"spaceBetween",level:"p",endIcon:y,style:{width:d},shrink:!1,onClick:()=>E!=null&&p in E&&f(p),children:v},p.toString())})}),t]})},kue=({entry:e,onSelect:r,className:t,...n})=>{const{columns:a}=Lue();return Oe.jsxRuntimeExports.jsx(t2,{entry:e,onSelect:r,className:G.CSS(t,G.CSS.BE("list-col-item","container"),r!=null&&G.CSS.BEM("list-col-item","container","selectable")),align:"center",size:"medium",...n,children:a.filter(({visible:i=!0})=>i).map(i=>Oe.jsxRuntimeExports.jsx(Uue,{entry:e,col:i},i.key.toString()))},e.key.toString())},Uue=({entry:e,col:{width:r,...t}})=>{const n={width:t.cWidth,userSelect:"none",padding:"1rem",flexShrink:0};if(t.render!=null)return t.render({key:t.key,entry:e,style:n});let a;return t.stringer!=null?a=t.stringer(e):a=e[t.key],Oe.jsxRuntimeExports.jsx(wn,{className:G.CSS.BE("list-col-item-value",t.key.toString()),level:"p",style:n,shade:t.shade,weight:t.weight,children:ye.L(a)},t.key.toString())},Hue=(e,r,t,n=30)=>{const a=jue(r,e);return e.map(i=>{if(i.width!=null)i.cWidth=i.width;else{const{width:o}=ye.dimensions(i.name,t),{width:s}=ye.dimensions(a[i.key],t);i.cWidth=Math.max(o,s)+n}return i})},jue=(e,r)=>{const t={};return e.forEach(n=>r.forEach(({key:a,stringer:i})=>{const o=n[a];if(o==null)return;const s=i!=null?i(n):o.toString();(!(a in t)||s.length>t[a].length)&&(t[a]=s)})),t},ng=(e,r)=>({data:t})=>t.length===0?{data:t,transformed:!1}:{data:[...t].sort(ye.E.newFieldF(e,t[0],!r)),transformed:!0},Vue={Header:que,Item:kue,itemHeight:5.5*6};function Zi(e,r,t){let n=t.initialDeps??[],a;return()=>{var i,o,s,u;let l;t.key&&((i=t.debug)!=null&&i.call(t))&&(l=Date.now());const c=e();if(!(c.length!==n.length||c.some((d,v)=>n[v]!==d)))return a;n=c;let p;if(t.key&&((o=t.debug)!=null&&o.call(t))&&(p=Date.now()),a=r(...c),t.key&&((s=t.debug)!=null&&s.call(t))){const d=Math.round((Date.now()-l)*100)/100,v=Math.round((Date.now()-p)*100)/100,m=v/16,g=(y,E)=>{for(y=String(y);y.length<E;)y=" "+y;return y};console.info(`%c⏱ ${g(v,5)} /${g(d,5)} ms`,`
|
|
140
|
+
In case of a (multi dimensional) array or matrix, the prob order quantile of all elements will be calculated.`,examples:["quantileSeq([3, -1, 5, 7], 0.5)","quantileSeq([3, -1, 5, 7], [1/3, 2/3])","quantileSeq([3, -1, 5, 7], 2)","quantileSeq([-1, 3, 5, 7], 0.5, true)"],seealso:["mean","median","min","max","prod","std","sum","variance"]},wQ={name:"std",category:"Statistics",syntax:["std(a, b, c, ...)","std(A)","std(A, dimension)","std(A, normalization)","std(A, dimension, normalization)"],description:'Compute the standard deviation of all values, defined as std(A) = sqrt(variance(A)). Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased".',examples:["std(2, 4, 6)","std([2, 4, 6, 8])",'std([2, 4, 6, 8], "uncorrected")','std([2, 4, 6, 8], "biased")',"std([1, 2, 3; 4, 5, 6])"],seealso:["max","mean","min","median","prod","sum","variance"]},EQ={name:"cumsum",category:"Statistics",syntax:["cumsum(a, b, c, ...)","cumsum(A)"],description:"Compute the cumulative sum of all values.",examples:["cumsum(2, 3, 4, 1)","cumsum([2, 3, 4, 1])","cumsum([1, 2; 3, 4])","cumsum([1, 2; 3, 4], 1)","cumsum([1, 2; 3, 4], 2)"],seealso:["max","mean","median","min","prod","std","sum","variance"]},SQ={name:"sum",category:"Statistics",syntax:["sum(a, b, c, ...)","sum(A)","sum(A, dimension)"],description:"Compute the sum of all values.",examples:["sum(2, 3, 4, 1)","sum([2, 3, 4, 1])","sum([2, 5; 4, 3])"],seealso:["max","mean","median","min","prod","std","sum","variance"]},AQ={name:"variance",category:"Statistics",syntax:["variance(a, b, c, ...)","variance(A)","variance(A, dimension)","variance(A, normalization)","variance(A, dimension, normalization)"],description:'Compute the variance of all values. Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased".',examples:["variance(2, 4, 6)","variance([2, 4, 6, 8])",'variance([2, 4, 6, 8], "uncorrected")','variance([2, 4, 6, 8], "biased")',"variance([1, 2, 3; 4, 5, 6])"],seealso:["max","mean","min","median","min","prod","std","sum"]},DQ={name:"corr",category:"Statistics",syntax:["corr(A,B)"],description:"Compute the correlation coefficient of a two list with values, For matrices, the matrix correlation coefficient is calculated.",examples:["corr([2, 4, 6, 8],[1, 2, 3, 6])","corr(matrix([[1, 2.2, 3, 4.8, 5], [1, 2, 3, 4, 5]]), matrix([[4, 5.3, 6.6, 7, 8], [1, 2, 3, 4, 5]]))"],seealso:["max","mean","min","median","min","prod","std","sum"]},CQ={name:"acos",category:"Trigonometry",syntax:["acos(x)"],description:"Compute the inverse cosine of a value in radians.",examples:["acos(0.5)","acos(cos(2.3))"],seealso:["cos","atan","asin"]},NQ={name:"acosh",category:"Trigonometry",syntax:["acosh(x)"],description:"Calculate the hyperbolic arccos of a value, defined as `acosh(x) = ln(sqrt(x^2 - 1) + x)`.",examples:["acosh(1.5)"],seealso:["cosh","asinh","atanh"]},MQ={name:"acot",category:"Trigonometry",syntax:["acot(x)"],description:"Calculate the inverse cotangent of a value.",examples:["acot(0.5)","acot(cot(0.5))","acot(2)"],seealso:["cot","atan"]},TQ={name:"acoth",category:"Trigonometry",syntax:["acoth(x)"],description:"Calculate the hyperbolic arccotangent of a value, defined as `acoth(x) = (ln((x+1)/x) + ln(x/(x-1))) / 2`.",examples:["acoth(2)","acoth(0.5)"],seealso:["acsch","asech"]},OQ={name:"acsc",category:"Trigonometry",syntax:["acsc(x)"],description:"Calculate the inverse cotangent of a value.",examples:["acsc(2)","acsc(csc(0.5))","acsc(0.5)"],seealso:["csc","asin","asec"]},_Q={name:"acsch",category:"Trigonometry",syntax:["acsch(x)"],description:"Calculate the hyperbolic arccosecant of a value, defined as `acsch(x) = ln(1/x + sqrt(1/x^2 + 1))`.",examples:["acsch(0.5)"],seealso:["asech","acoth"]},$Q={name:"asec",category:"Trigonometry",syntax:["asec(x)"],description:"Calculate the inverse secant of a value.",examples:["asec(0.5)","asec(sec(0.5))","asec(2)"],seealso:["acos","acot","acsc"]},FQ={name:"asech",category:"Trigonometry",syntax:["asech(x)"],description:"Calculate the inverse secant of a value.",examples:["asech(0.5)"],seealso:["acsch","acoth"]},BQ={name:"asin",category:"Trigonometry",syntax:["asin(x)"],description:"Compute the inverse sine of a value in radians.",examples:["asin(0.5)","asin(sin(0.5))"],seealso:["sin","acos","atan"]},RQ={name:"asinh",category:"Trigonometry",syntax:["asinh(x)"],description:"Calculate the hyperbolic arcsine of a value, defined as `asinh(x) = ln(x + sqrt(x^2 + 1))`.",examples:["asinh(0.5)"],seealso:["acosh","atanh"]},PQ={name:"atan",category:"Trigonometry",syntax:["atan(x)"],description:"Compute the inverse tangent of a value in radians.",examples:["atan(0.5)","atan(tan(0.5))"],seealso:["tan","acos","asin"]},zQ={name:"atan2",category:"Trigonometry",syntax:["atan2(y, x)"],description:"Computes the principal value of the arc tangent of y/x in radians.",examples:["atan2(2, 2) / pi","angle = 60 deg in rad","x = cos(angle)","y = sin(angle)","atan2(y, x)"],seealso:["sin","cos","tan"]},IQ={name:"atanh",category:"Trigonometry",syntax:["atanh(x)"],description:"Calculate the hyperbolic arctangent of a value, defined as `atanh(x) = ln((1 + x)/(1 - x)) / 2`.",examples:["atanh(0.5)"],seealso:["acosh","asinh"]},LQ={name:"cos",category:"Trigonometry",syntax:["cos(x)"],description:"Compute the cosine of x in radians.",examples:["cos(2)","cos(pi / 4) ^ 2","cos(180 deg)","cos(60 deg)","sin(0.2)^2 + cos(0.2)^2"],seealso:["acos","sin","tan"]},qQ={name:"cosh",category:"Trigonometry",syntax:["cosh(x)"],description:"Compute the hyperbolic cosine of x in radians.",examples:["cosh(0.5)"],seealso:["sinh","tanh","coth"]},kQ={name:"cot",category:"Trigonometry",syntax:["cot(x)"],description:"Compute the cotangent of x in radians. Defined as 1/tan(x)",examples:["cot(2)","1 / tan(2)"],seealso:["sec","csc","tan"]},UQ={name:"coth",category:"Trigonometry",syntax:["coth(x)"],description:"Compute the hyperbolic cotangent of x in radians.",examples:["coth(2)","1 / tanh(2)"],seealso:["sech","csch","tanh"]},HQ={name:"csc",category:"Trigonometry",syntax:["csc(x)"],description:"Compute the cosecant of x in radians. Defined as 1/sin(x)",examples:["csc(2)","1 / sin(2)"],seealso:["sec","cot","sin"]},jQ={name:"csch",category:"Trigonometry",syntax:["csch(x)"],description:"Compute the hyperbolic cosecant of x in radians. Defined as 1/sinh(x)",examples:["csch(2)","1 / sinh(2)"],seealso:["sech","coth","sinh"]},VQ={name:"sec",category:"Trigonometry",syntax:["sec(x)"],description:"Compute the secant of x in radians. Defined as 1/cos(x)",examples:["sec(2)","1 / cos(2)"],seealso:["cot","csc","cos"]},GQ={name:"sech",category:"Trigonometry",syntax:["sech(x)"],description:"Compute the hyperbolic secant of x in radians. Defined as 1/cosh(x)",examples:["sech(2)","1 / cosh(2)"],seealso:["coth","csch","cosh"]},WQ={name:"sin",category:"Trigonometry",syntax:["sin(x)"],description:"Compute the sine of x in radians.",examples:["sin(2)","sin(pi / 4) ^ 2","sin(90 deg)","sin(30 deg)","sin(0.2)^2 + cos(0.2)^2"],seealso:["asin","cos","tan"]},ZQ={name:"sinh",category:"Trigonometry",syntax:["sinh(x)"],description:"Compute the hyperbolic sine of x in radians.",examples:["sinh(0.5)"],seealso:["cosh","tanh"]},YQ={name:"tan",category:"Trigonometry",syntax:["tan(x)"],description:"Compute the tangent of x in radians.",examples:["tan(0.5)","sin(0.5) / cos(0.5)","tan(pi / 4)","tan(45 deg)"],seealso:["atan","sin","cos"]},XQ={name:"tanh",category:"Trigonometry",syntax:["tanh(x)"],description:"Compute the hyperbolic tangent of x in radians.",examples:["tanh(0.5)","sinh(0.5) / cosh(0.5)"],seealso:["sinh","cosh"]},KQ={name:"to",category:"Units",syntax:["x to unit","to(x, unit)"],description:"Change the unit of a value.",examples:["5 inch to cm","3.2kg to g","16 bytes in bits"],seealso:[]},JQ={name:"bin",category:"Utils",syntax:["bin(value)"],description:"Format a number as binary",examples:["bin(2)"],seealso:["oct","hex"]},QQ={name:"clone",category:"Utils",syntax:["clone(x)"],description:"Clone a variable. Creates a copy of primitive variables,and a deep copy of matrices",examples:["clone(3.5)","clone(2 - 4i)","clone(45 deg)","clone([1, 2; 3, 4])",'clone("hello world")'],seealso:[]},eee={name:"format",category:"Utils",syntax:["format(value)","format(value, precision)"],description:"Format a value of any type as string.",examples:["format(2.3)","format(3 - 4i)","format([])","format(pi, 3)"],seealso:["print"]},ree={name:"hasNumericValue",category:"Utils",syntax:["hasNumericValue(x)"],description:"Test whether a value is an numeric value. In case of a string, true is returned if the string contains a numeric value.",examples:["hasNumericValue(2)",'hasNumericValue("2")','isNumeric("2")',"hasNumericValue(0)","hasNumericValue(bignumber(500))","hasNumericValue(fraction(0.125))","hasNumericValue(2 + 3i)",'hasNumericValue([2.3, "foo", false])'],seealso:["isInteger","isZero","isNegative","isPositive","isNaN","isNumeric"]},tee={name:"hex",category:"Utils",syntax:["hex(value)"],description:"Format a number as hexadecimal",examples:["hex(240)"],seealso:["bin","oct"]},nee={name:"isInteger",category:"Utils",syntax:["isInteger(x)"],description:"Test whether a value is an integer number.",examples:["isInteger(2)","isInteger(3.5)","isInteger([3, 0.5, -2])"],seealso:["isNegative","isNumeric","isPositive","isZero"]},aee={name:"isNaN",category:"Utils",syntax:["isNaN(x)"],description:"Test whether a value is NaN (not a number)",examples:["isNaN(2)","isNaN(0 / 0)","isNaN(NaN)","isNaN(Infinity)"],seealso:["isNegative","isNumeric","isPositive","isZero"]},iee={name:"isNegative",category:"Utils",syntax:["isNegative(x)"],description:"Test whether a value is negative: smaller than zero.",examples:["isNegative(2)","isNegative(0)","isNegative(-4)","isNegative([3, 0.5, -2])"],seealso:["isInteger","isNumeric","isPositive","isZero"]},oee={name:"isNumeric",category:"Utils",syntax:["isNumeric(x)"],description:"Test whether a value is a numeric value. Returns true when the input is a number, BigNumber, Fraction, or boolean.",examples:["isNumeric(2)",'isNumeric("2")','hasNumericValue("2")',"isNumeric(0)","isNumeric(bignumber(500))","isNumeric(fraction(0.125))","isNumeric(2 + 3i)",'isNumeric([2.3, "foo", false])'],seealso:["isInteger","isZero","isNegative","isPositive","isNaN","hasNumericValue"]},see={name:"isPositive",category:"Utils",syntax:["isPositive(x)"],description:"Test whether a value is positive: larger than zero.",examples:["isPositive(2)","isPositive(0)","isPositive(-4)","isPositive([3, 0.5, -2])"],seealso:["isInteger","isNumeric","isNegative","isZero"]},uee={name:"isPrime",category:"Utils",syntax:["isPrime(x)"],description:"Test whether a value is prime: has no divisors other than itself and one.",examples:["isPrime(3)","isPrime(-2)","isPrime([2, 17, 100])"],seealso:["isInteger","isNumeric","isNegative","isZero"]},lee={name:"isZero",category:"Utils",syntax:["isZero(x)"],description:"Test whether a value is zero.",examples:["isZero(2)","isZero(0)","isZero(-4)","isZero([3, 0, -2, 0])"],seealso:["isInteger","isNumeric","isNegative","isPositive"]},cee={name:"numeric",category:"Utils",syntax:["numeric(x)"],description:"Convert a numeric input to a specific numeric type: number, BigNumber, bigint, or Fraction.",examples:['numeric("4")','numeric("4", "number")','numeric("4", "bigint")','numeric("4", "BigNumber")','numeric("4", "Fraction")','numeric(4, "Fraction")','numeric(fraction(2, 5), "number")'],seealso:["number","bigint","fraction","bignumber","string","format"]},fee={name:"oct",category:"Utils",syntax:["oct(value)"],description:"Format a number as octal",examples:["oct(56)"],seealso:["bin","hex"]},pee={name:"print",category:"Utils",syntax:["print(template, values)","print(template, values, precision)"],description:"Interpolate values into a string template.",examples:['print("Lucy is $age years old", {age: 5})','print("The value of pi is $pi", {pi: pi}, 3)','print("Hello, $user.name!", {user: {name: "John"}})','print("Values: $1, $2, $3", [6, 9, 4])'],seealso:["format"]},dee={name:"typeOf",category:"Utils",syntax:["typeOf(x)"],description:"Get the type of a variable.",examples:["typeOf(3.5)","typeOf(2 - 4i)","typeOf(45 deg)",'typeOf("hello world")'],seealso:["getMatrixDataType"]},vee={name:"solveODE",category:"Numeric",syntax:["solveODE(func, tspan, y0)","solveODE(func, tspan, y0, options)"],description:"Numerical Integration of Ordinary Differential Equations.",examples:["f(t,y) = y","tspan = [0, 4]","solveODE(f, tspan, 1)","solveODE(f, tspan, [1, 2])",'solveODE(f, tspan, 1, { method:"RK23", maxStep:0.1 })'],seealso:["derivative","simplifyCore"]},mee={bignumber:aX,bigint:iX,boolean:oX,complex:sX,createUnit:uX,fraction:lX,index:cX,matrix:fX,number:pX,sparse:dX,splitUnit:vX,string:mX,unit:hX,e:e1,E:e1,false:HY,i:jY,Infinity:VY,LN2:WY,LN10:GY,LOG2E:YY,LOG10E:ZY,NaN:XY,null:KY,pi:r1,PI:r1,phi:JY,SQRT1_2:QY,SQRT2:eX,tau:rX,true:tX,version:nX,speedOfLight:{description:"Speed of light in vacuum",examples:["speedOfLight"]},gravitationConstant:{description:"Newtonian constant of gravitation",examples:["gravitationConstant"]},planckConstant:{description:"Planck constant",examples:["planckConstant"]},reducedPlanckConstant:{description:"Reduced Planck constant",examples:["reducedPlanckConstant"]},magneticConstant:{description:"Magnetic constant (vacuum permeability)",examples:["magneticConstant"]},electricConstant:{description:"Electric constant (vacuum permeability)",examples:["electricConstant"]},vacuumImpedance:{description:"Characteristic impedance of vacuum",examples:["vacuumImpedance"]},coulomb:{description:"Coulomb's constant",examples:["coulomb"]},elementaryCharge:{description:"Elementary charge",examples:["elementaryCharge"]},bohrMagneton:{description:"Borh magneton",examples:["bohrMagneton"]},conductanceQuantum:{description:"Conductance quantum",examples:["conductanceQuantum"]},inverseConductanceQuantum:{description:"Inverse conductance quantum",examples:["inverseConductanceQuantum"]},magneticFluxQuantum:{description:"Magnetic flux quantum",examples:["magneticFluxQuantum"]},nuclearMagneton:{description:"Nuclear magneton",examples:["nuclearMagneton"]},klitzing:{description:"Von Klitzing constant",examples:["klitzing"]},bohrRadius:{description:"Borh radius",examples:["bohrRadius"]},classicalElectronRadius:{description:"Classical electron radius",examples:["classicalElectronRadius"]},electronMass:{description:"Electron mass",examples:["electronMass"]},fermiCoupling:{description:"Fermi coupling constant",examples:["fermiCoupling"]},fineStructure:{description:"Fine-structure constant",examples:["fineStructure"]},hartreeEnergy:{description:"Hartree energy",examples:["hartreeEnergy"]},protonMass:{description:"Proton mass",examples:["protonMass"]},deuteronMass:{description:"Deuteron Mass",examples:["deuteronMass"]},neutronMass:{description:"Neutron mass",examples:["neutronMass"]},quantumOfCirculation:{description:"Quantum of circulation",examples:["quantumOfCirculation"]},rydberg:{description:"Rydberg constant",examples:["rydberg"]},thomsonCrossSection:{description:"Thomson cross section",examples:["thomsonCrossSection"]},weakMixingAngle:{description:"Weak mixing angle",examples:["weakMixingAngle"]},efimovFactor:{description:"Efimov factor",examples:["efimovFactor"]},atomicMass:{description:"Atomic mass constant",examples:["atomicMass"]},avogadro:{description:"Avogadro's number",examples:["avogadro"]},boltzmann:{description:"Boltzmann constant",examples:["boltzmann"]},faraday:{description:"Faraday constant",examples:["faraday"]},firstRadiation:{description:"First radiation constant",examples:["firstRadiation"]},loschmidt:{description:"Loschmidt constant at T=273.15 K and p=101.325 kPa",examples:["loschmidt"]},gasConstant:{description:"Gas constant",examples:["gasConstant"]},molarPlanckConstant:{description:"Molar Planck constant",examples:["molarPlanckConstant"]},molarVolume:{description:"Molar volume of an ideal gas at T=273.15 K and p=101.325 kPa",examples:["molarVolume"]},sackurTetrode:{description:"Sackur-Tetrode constant at T=1 K and p=101.325 kPa",examples:["sackurTetrode"]},secondRadiation:{description:"Second radiation constant",examples:["secondRadiation"]},stefanBoltzmann:{description:"Stefan-Boltzmann constant",examples:["stefanBoltzmann"]},wienDisplacement:{description:"Wien displacement law constant",examples:["wienDisplacement"]},molarMass:{description:"Molar mass constant",examples:["molarMass"]},molarMassC12:{description:"Molar mass constant of carbon-12",examples:["molarMassC12"]},gravity:{description:"Standard acceleration of gravity (standard acceleration of free-fall on Earth)",examples:["gravity"]},planckLength:{description:"Planck length",examples:["planckLength"]},planckMass:{description:"Planck mass",examples:["planckMass"]},planckTime:{description:"Planck time",examples:["planckTime"]},planckCharge:{description:"Planck charge",examples:["planckCharge"]},planckTemperature:{description:"Planck temperature",examples:["planckTemperature"]},derivative:xX,lsolve:EX,lsolveAll:SX,lup:AX,lusolve:DX,leafCount:wX,polynomialRoot:CX,resolve:TX,simplify:OX,simplifyConstant:_X,simplifyCore:$X,symbolicEqual:BX,rationalize:MX,slu:FX,usolve:RX,usolveAll:PX,qr:NX,abs:zX,add:IX,cbrt:LX,ceil:qX,cube:kX,divide:UX,dotDivide:HX,dotMultiply:jX,dotPow:VX,exp:GX,expm:WX,expm1:ZX,fix:YX,floor:XX,gcd:KX,hypot:JX,lcm:eK,log:rK,log2:aK,log1p:nK,log10:tK,mod:iK,multiply:oK,norm:sK,nthRoot:uK,nthRoots:lK,pow:cK,round:fK,sign:pK,sqrt:dK,sqrtm:vK,square:yK,subtract:bK,unaryMinus:xK,unaryPlus:wK,xgcd:EK,invmod:QX,bitAnd:SK,bitNot:AK,bitOr:DK,bitXor:CK,leftShift:NK,rightArithShift:MK,rightLogShift:TK,bellNumbers:OK,catalan:_K,composition:$K,stirlingS2:FK,config:gX,import:yX,typed:bX,arg:BK,conj:RK,re:zK,im:PK,evaluate:IK,help:LK,distance:qK,intersect:kK,and:UK,not:HK,or:jK,xor:VK,concat:WK,count:ZK,cross:YK,column:GK,ctranspose:XK,det:KK,diag:JK,diff:QK,dot:eJ,getMatrixDataType:iJ,identity:oJ,filter:tJ,flatten:nJ,forEach:aJ,inv:sJ,pinv:uJ,eigs:rJ,kron:lJ,matrixFromFunction:pJ,matrixFromRows:dJ,matrixFromColumns:fJ,map:cJ,ones:vJ,partitionSelect:mJ,range:hJ,resize:yJ,reshape:gJ,rotate:bJ,rotationMatrix:xJ,row:wJ,size:EJ,sort:SJ,squeeze:AJ,subset:DJ,trace:CJ,transpose:NJ,zeros:MJ,fft:TJ,ifft:OJ,sylvester:mK,schur:hK,lyap:gK,solveODE:vee,combinations:_J,combinationsWithRep:$J,factorial:FJ,gamma:BJ,kldivergence:PJ,lgamma:RJ,multinomial:zJ,permutations:IJ,pickRandom:LJ,random:qJ,randomInt:kJ,compare:UJ,compareNatural:HJ,compareText:jJ,deepEqual:VJ,equal:GJ,equalText:WJ,larger:ZJ,largerEq:YJ,smaller:XJ,smallerEq:KJ,unequal:JJ,setCartesian:QJ,setDifference:eQ,setDistinct:rQ,setIntersect:tQ,setIsSubset:nQ,setMultiplicity:aQ,setPowerset:iQ,setSize:oQ,setSymDifference:sQ,setUnion:uQ,zpk2tf:lQ,freqz:cQ,erf:fQ,zeta:pQ,cumsum:EQ,mad:dQ,max:vQ,mean:mQ,median:hQ,min:gQ,mode:yQ,prod:bQ,quantileSeq:xQ,std:wQ,sum:SQ,variance:AQ,corr:DQ,acos:CQ,acosh:NQ,acot:MQ,acoth:TQ,acsc:OQ,acsch:_Q,asec:$Q,asech:FQ,asin:BQ,asinh:RQ,atan:PQ,atanh:IQ,atan2:zQ,cos:LQ,cosh:qQ,cot:kQ,coth:UQ,csc:HQ,csch:jQ,sec:VQ,sech:GQ,sin:WQ,sinh:ZQ,tan:YQ,tanh:XQ,to:KQ,clone:QQ,format:eee,bin:JQ,oct:fee,hex:tee,isNaN:aee,isInteger:nee,isNegative:iee,isNumeric:oee,hasNumericValue:ree,isPositive:see,isPrime:uee,isZero:lee,print:pee,typeOf:dee,numeric:cee},t1="help",hee=["typed","mathWithTransform","Help"],gee=L(t1,hee,e=>{var{typed:r,mathWithTransform:t,Help:n}=e;return r(t1,{any:function(i){var o,s=i;if(typeof i!="string"){for(o in t)if(Re(t,o)&&i===t[o]){s=o;break}}var u=ct(mee,s);if(!u){var l=typeof s=="function"?s.name:s;throw new Error('No documentation found on "'+l+'"')}return new n(u)}})}),n1="chain",yee=["typed","Chain"],bee=L(n1,yee,e=>{var{typed:r,Chain:t}=e;return r(n1,{"":function(){return new t},any:function(a){return new t(a)}})}),a1="det",xee=["typed","matrix","subtractScalar","multiply","divideScalar","isZero","unaryMinus"],wee=L(a1,xee,e=>{var{typed:r,matrix:t,subtractScalar:n,multiply:a,divideScalar:i,isZero:o,unaryMinus:s}=e;return r(a1,{any:function(c){return We(c)},"Array | Matrix":function(c){var f;switch(Ue(c)?f=c.size():Array.isArray(c)?(c=t(c),f=c.size()):f=[],f.length){case 0:return We(c);case 1:if(f[0]===1)return We(c.valueOf()[0]);if(f[0]===0)return 1;throw new RangeError("Matrix must be square (size: "+tr(f)+")");case 2:{var p=f[0],d=f[1];if(p===d)return u(c.clone().valueOf(),p);if(d===0)return 1;throw new RangeError("Matrix must be square (size: "+tr(f)+")")}default:throw new RangeError("Matrix must be two dimensional (size: "+tr(f)+")")}}});function u(l,c,f){if(c===1)return We(l[0][0]);if(c===2)return n(a(l[0][0],l[1][1]),a(l[1][0],l[0][1]));for(var p=!1,d=new Array(c).fill(0).map((D,A)=>A),v=0;v<c;v++){var m=d[v];if(o(l[m][v])){var g=void 0;for(g=v+1;g<c;g++)if(!o(l[d[g]][v])){m=d[g],d[g]=d[v],d[v]=m,p=!p;break}if(g===c)return l[m][v]}for(var y=l[m][v],E=v===0?1:l[d[v-1]][v-1],h=v+1;h<c;h++)for(var w=d[h],x=v+1;x<c;x++)l[w][x]=i(n(a(l[w][x],y),a(l[w][v],l[m][x])),E)}var b=l[d[c-1]][c-1];return p?s(b):b}}),i1="inv",Eee=["typed","matrix","divideScalar","addScalar","multiply","unaryMinus","det","identity","abs"],See=L(i1,Eee,e=>{var{typed:r,matrix:t,divideScalar:n,addScalar:a,multiply:i,unaryMinus:o,det:s,identity:u,abs:l}=e;return r(i1,{"Array | Matrix":function(p){var d=Ue(p)?p.size():Ke(p);switch(d.length){case 1:if(d[0]===1)return Ue(p)?t([n(1,p.valueOf()[0])]):[n(1,p[0])];throw new RangeError("Matrix must be square (size: "+tr(d)+")");case 2:{var v=d[0],m=d[1];if(v===m)return Ue(p)?t(c(p.valueOf(),v,m),p.storage()):c(p,v,m);throw new RangeError("Matrix must be square (size: "+tr(d)+")")}default:throw new RangeError("Matrix must be two dimensional (size: "+tr(d)+")")}},any:function(p){return n(1,p)}});function c(f,p,d){var v,m,g,y,E;if(p===1){if(y=f[0][0],y===0)throw Error("Cannot calculate inverse, determinant is zero");return[[n(1,y)]]}else if(p===2){var h=s(f);if(h===0)throw Error("Cannot calculate inverse, determinant is zero");return[[n(f[1][1],h),n(o(f[0][1]),h)],[n(o(f[1][0]),h),n(f[0][0],h)]]}else{var w=f.concat();for(v=0;v<p;v++)w[v]=w[v].concat();for(var x=u(p).valueOf(),b=0;b<d;b++){var D=l(w[b][b]),A=b;for(v=b+1;v<p;)l(w[v][b])>D&&(D=l(w[v][b]),A=v),v++;if(D===0)throw Error("Cannot calculate inverse, determinant is zero");v=A,v!==b&&(E=w[b],w[b]=w[v],w[v]=E,E=x[b],x[b]=x[v],x[v]=E);var S=w[b],C=x[b];for(v=0;v<p;v++){var N=w[v],$=x[v];if(v!==b){if(N[b]!==0){for(g=n(o(N[b]),S[b]),m=b;m<d;m++)N[m]=a(N[m],i(g,S[m]));for(m=0;m<d;m++)$[m]=a($[m],i(g,C[m]))}}else{for(g=S[b],m=b;m<d;m++)N[m]=n(N[m],g);for(m=0;m<d;m++)$[m]=n($[m],g)}}}return x}}}),o1="pinv",Aee=["typed","matrix","inv","deepEqual","equal","dotDivide","dot","ctranspose","divideScalar","multiply","add","Complex"],Dee=L(o1,Aee,e=>{var{typed:r,matrix:t,inv:n,deepEqual:a,equal:i,dotDivide:o,dot:s,ctranspose:u,divideScalar:l,multiply:c,add:f,Complex:p}=e;return r(o1,{"Array | Matrix":function(h){var w=Ue(h)?h.size():Ke(h);switch(w.length){case 1:return y(h)?u(h):w[0]===1?n(h):o(u(h),s(h,h));case 2:{if(y(h))return u(h);var x=w[0],b=w[1];if(x===b)try{return n(h)}catch(D){if(!(D instanceof Error&&D.message.match(/Cannot calculate inverse, determinant is zero/)))throw D}return Ue(h)?t(d(h.valueOf(),x,b),h.storage()):d(h,x,b)}default:throw new RangeError("Matrix must be two dimensional (size: "+tr(w)+")")}},any:function(h){return i(h,0)?We(h):l(1,h)}});function d(E,h,w){var{C:x,F:b}=m(E,h,w),D=c(n(c(u(x),x)),u(x)),A=c(u(b),n(c(b,u(b))));return c(A,D)}function v(E,h,w){for(var x=We(E),b=0,D=0;D<h;D++){if(w<=b)return x;for(var A=D;g(x[A][b]);)if(A++,h===A&&(A=D,b++,w===b))return x;[x[A],x[D]]=[x[D],x[A]];for(var S=x[D][b],C=0;C<w;C++)x[D][C]=o(x[D][C],S);for(var N=0;N<h;N++)if(N!==D){S=x[N][b];for(var $=0;$<w;$++)x[N][$]=f(x[N][$],c(-1,c(S,x[D][$])))}b++}return x}function m(E,h,w){var x=v(E,h,w),b=E.map((A,S)=>A.filter((C,N)=>N<h&&!g(s(x[N],x[N])))),D=x.filter((A,S)=>!g(s(x[S],x[S])));return{C:b,F:D}}function g(E){return i(f(E,p(1,1)),f(0,p(1,1)))}function y(E){return a(f(E,p(1,1)),f(c(E,0),p(1,1)))}});function Cee(e){var{addScalar:r,subtract:t,flatten:n,multiply:a,multiplyScalar:i,divideScalar:o,sqrt:s,abs:u,bignumber:l,diag:c,size:f,reshape:p,inv:d,qr:v,usolve:m,usolveAll:g,equal:y,complex:E,larger:h,smaller:w,matrixFromColumns:x,dot:b}=e;function D(V,z,J,le){var Q=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,re=A(V,z,J,le,Q);S(V,z,J,le,Q,re);var{values:se,C:te}=C(V,z,J,le,Q);if(Q){var ae=N(V,z,te,re,se,J,le);return{values:se,eigenvectors:ae}}return{values:se}}function A(V,z,J,le,Q){var re=le==="BigNumber",se=le==="Complex",te=re?l(0):0,ae=re?l(1):se?E(1):1,fe=re?l(1):1,ne=re?l(10):2,be=i(ne,ne),$e;Q&&($e=Array(z).fill(ae));for(var k=!1;!k;){k=!0;for(var W=0;W<z;W++){for(var ue=te,j=te,K=0;K<z;K++)W!==K&&(ue=r(ue,u(V[K][W])),j=r(j,u(V[W][K])));if(!y(ue,0)&&!y(j,0)){for(var oe=fe,he=ue,me=o(j,ne),I=i(j,ne);w(he,me);)he=i(he,be),oe=i(oe,ne);for(;h(he,I);)he=o(he,be),oe=o(oe,ne);var H=w(o(r(he,j),oe),i(r(ue,j),.95));if(H){k=!1;for(var ie=o(1,oe),ce=0;ce<z;ce++)W!==ce&&(V[W][ce]=i(V[W][ce],ie),V[ce][W]=i(V[ce][W],oe));Q&&($e[W]=i($e[W],ie))}}}}return Q?c($e):null}function S(V,z,J,le,Q,re){var se=le==="BigNumber",te=le==="Complex",ae=se?l(0):te?E(0):0;se&&(J=l(J));for(var fe=0;fe<z-2;fe++){for(var ne=0,be=ae,$e=fe+1;$e<z;$e++){var k=V[$e][fe];w(u(be),u(k))&&(be=k,ne=$e)}if(!w(u(be),J)){if(ne!==fe+1){var W=V[ne];V[ne]=V[fe+1],V[fe+1]=W;for(var ue=0;ue<z;ue++){var j=V[ue][ne];V[ue][ne]=V[ue][fe+1],V[ue][fe+1]=j}if(Q){var K=re[ne];re[ne]=re[fe+1],re[fe+1]=K}}for(var oe=fe+2;oe<z;oe++){var he=o(V[oe][fe],be);if(he!==0){for(var me=0;me<z;me++)V[oe][me]=t(V[oe][me],i(he,V[fe+1][me]));for(var I=0;I<z;I++)V[I][fe+1]=r(V[I][fe+1],i(he,V[I][oe]));if(Q)for(var H=0;H<z;H++)re[oe][H]=t(re[oe][H],i(he,re[fe+1][H]))}}}}return re}function C(V,z,J,le,Q){var re=le==="BigNumber",se=le==="Complex",te=re?l(1):se?E(1):1;re&&(J=l(J));for(var ae=We(V),fe=[],ne=z,be=[],$e=Q?c(Array(z).fill(te)):void 0,k=Q?c(Array(ne).fill(te)):void 0,W=0;W<=100;){W+=1;for(var ue=ae[ne-1][ne-1],j=0;j<ne;j++)ae[j][j]=t(ae[j][j],ue);var{Q:K,R:oe}=v(ae);ae=a(oe,K);for(var he=0;he<ne;he++)ae[he][he]=r(ae[he][he],ue);if(Q&&(k=a(k,K)),ne===1||w(u(ae[ne-1][ne-2]),J)){W=0,fe.push(ae[ne-1][ne-1]),Q&&(be.unshift([[1]]),P(k,z),$e=a($e,k),ne>1&&(k=c(Array(ne-1).fill(te)))),ne-=1,ae.pop();for(var me=0;me<ne;me++)ae[me].pop()}else if(ne===2||w(u(ae[ne-2][ne-3]),J)){W=0;var I=$(ae[ne-2][ne-2],ae[ne-2][ne-1],ae[ne-1][ne-2],ae[ne-1][ne-1]);fe.push(...I),Q&&(be.unshift(B(ae[ne-2][ne-2],ae[ne-2][ne-1],ae[ne-1][ne-2],ae[ne-1][ne-1],I[0],I[1],J,le)),P(k,z),$e=a($e,k),ne>2&&(k=c(Array(ne-2).fill(te)))),ne-=2,ae.pop(),ae.pop();for(var H=0;H<ne;H++)ae[H].pop(),ae[H].pop()}if(ne===0)break}if(fe.sort((de,ve)=>+t(u(de),u(ve))),W>100){var ie=Error("The eigenvalues failed to converge. Only found these eigenvalues: "+fe.join(", "));throw ie.values=fe,ie.vectors=[],ie}var ce=Q?a($e,R(be,z)):void 0;return{values:fe,C:ce}}function N(V,z,J,le,Q,re,se){var te=d(J),ae=a(te,V,J),fe=se==="BigNumber",ne=se==="Complex",be=fe?l(0):ne?E(0):0,$e=fe?l(1):ne?E(1):1,k=[],W=[];for(var ue of Q){var j=O(k,ue,y);j===-1?(k.push(ue),W.push(1)):W[j]+=1}for(var K=[],oe=k.length,he=Array(z).fill(be),me=c(Array(z).fill($e)),I=function(){var ce=k[H],de=t(ae,a(ce,me)),ve=g(de,he);for(ve.shift();ve.length<W[H];){var Se=T(de,z,ve,re,se);if(Se===null)break;ve.push(Se)}var we=a(d(le),J);ve=ve.map(Me=>a(we,Me)),K.push(...ve.map(Me=>({value:ce,vector:n(Me)})))},H=0;H<oe;H++)I();return K}function $(V,z,J,le){var Q=r(V,le),re=t(i(V,le),i(z,J)),se=i(Q,.5),te=i(s(t(i(Q,Q),i(4,re))),.5);return[r(se,te),t(se,te)]}function B(V,z,J,le,Q,re,se,te){var ae=te==="BigNumber",fe=te==="Complex",ne=ae?l(0):fe?E(0):0,be=ae?l(1):fe?E(1):1;if(w(u(J),se))return[[be,ne],[ne,be]];if(h(u(t(Q,re)),se))return[[t(Q,le),t(re,le)],[J,J]];var $e=t(V,Q),k=t(le,Q);return w(u(z),se)&&w(u(k),se)?[[$e,be],[J,ne]]:[[z,ne],[k,be]]}function P(V,z){for(var J=0;J<V.length;J++)V[J].push(...Array(z-V[J].length).fill(0));for(var le=V.length;le<z;le++)V.push(Array(z).fill(0)),V[le][le]=1;return V}function R(V,z){for(var J=[],le=0;le<z;le++)J[le]=Array(z).fill(0);var Q=0;for(var re of V){for(var se=re.length,te=0;te<se;te++)for(var ae=0;ae<se;ae++)J[Q+te][Q+ae]=re[te][ae];Q+=se}return J}function O(V,z,J){for(var le=0;le<V.length;le++)if(J(V[le],z))return le;return-1}function T(V,z,J,le,Q){for(var re=Q==="BigNumber"?l(1e3):1e3,se,te=0;te<5;++te){se=U(z,J,Q);try{se=m(V,se)}catch{continue}if(h(q(se),re))break}if(te>=5)return null;for(te=0;;){var ae=m(V,se);if(w(q(F(se,[ae])),le))break;if(++te>=10)return null;se=Y(ae)}return se}function U(V,z,J){var le=J==="BigNumber",Q=J==="Complex",re=Array(V).fill(0).map(se=>2*Math.random()-1);return le&&(re=re.map(se=>l(se))),Q&&(re=re.map(se=>E(se))),re=F(re,z),Y(re,J)}function F(V,z){var J=f(V);for(var le of z)le=p(le,J),V=t(V,a(o(b(le,V),b(le,le)),le));return V}function q(V){return u(s(b(V,V)))}function Y(V,z){var J=z==="BigNumber",le=z==="Complex",Q=J?l(1):le?E(1):1;return a(o(Q,q(V)),V)}return D}function Nee(e){var{config:r,addScalar:t,subtract:n,abs:a,atan:i,cos:o,sin:s,multiplyScalar:u,inv:l,bignumber:c,multiply:f,add:p}=e;function d(S,C){var N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:r.relTol,$=arguments.length>3?arguments[3]:void 0,B=arguments.length>4?arguments[4]:void 0;if($==="number")return v(S,N,B);if($==="BigNumber")return m(S,N,B);throw TypeError("Unsupported data type: "+$)}function v(S,C,N){var $=S.length,B=Math.abs(C/$),P,R;if(N){R=new Array($);for(var O=0;O<$;O++)R[O]=Array($).fill(0),R[O][O]=1}for(var T=b(S);Math.abs(T[1])>=Math.abs(B);){var U=T[0][0],F=T[0][1];P=g(S[U][U],S[F][F],S[U][F]),S=x(S,P,U,F),N&&(R=E(R,P,U,F)),T=b(S)}for(var q=Array($).fill(0),Y=0;Y<$;Y++)q[Y]=S[Y][Y];return A(We(q),R,N)}function m(S,C,N){var $=S.length,B=a(C/$),P,R;if(N){R=new Array($);for(var O=0;O<$;O++)R[O]=Array($).fill(0),R[O][O]=1}for(var T=D(S);a(T[1])>=a(B);){var U=T[0][0],F=T[0][1];P=y(S[U][U],S[F][F],S[U][F]),S=w(S,P,U,F),N&&(R=h(R,P,U,F)),T=D(S)}for(var q=Array($).fill(0),Y=0;Y<$;Y++)q[Y]=S[Y][Y];return A(We(q),R,N)}function g(S,C,N){var $=C-S;return Math.abs($)<=r.relTol?Math.PI/4:.5*Math.atan(2*N/(C-S))}function y(S,C,N){var $=n(C,S);return a($)<=r.relTol?c(-1).acos().div(4):u(.5,i(f(2,N,l($))))}function E(S,C,N,$){for(var B=S.length,P=Math.cos(C),R=Math.sin(C),O=Array(B).fill(0),T=Array(B).fill(0),U=0;U<B;U++)O[U]=P*S[U][N]-R*S[U][$],T[U]=R*S[U][N]+P*S[U][$];for(var F=0;F<B;F++)S[F][N]=O[F],S[F][$]=T[F];return S}function h(S,C,N,$){for(var B=S.length,P=o(C),R=s(C),O=Array(B).fill(c(0)),T=Array(B).fill(c(0)),U=0;U<B;U++)O[U]=n(u(P,S[U][N]),u(R,S[U][$])),T[U]=t(u(R,S[U][N]),u(P,S[U][$]));for(var F=0;F<B;F++)S[F][N]=O[F],S[F][$]=T[F];return S}function w(S,C,N,$){for(var B=S.length,P=c(o(C)),R=c(s(C)),O=u(P,P),T=u(R,R),U=Array(B).fill(c(0)),F=Array(B).fill(c(0)),q=f(c(2),P,R,S[N][$]),Y=t(n(u(O,S[N][N]),q),u(T,S[$][$])),V=p(u(T,S[N][N]),q,u(O,S[$][$])),z=0;z<B;z++)U[z]=n(u(P,S[N][z]),u(R,S[$][z])),F[z]=t(u(R,S[N][z]),u(P,S[$][z]));S[N][N]=Y,S[$][$]=V,S[N][$]=c(0),S[$][N]=c(0);for(var J=0;J<B;J++)J!==N&&J!==$&&(S[N][J]=U[J],S[J][N]=U[J],S[$][J]=F[J],S[J][$]=F[J]);return S}function x(S,C,N,$){for(var B=S.length,P=Math.cos(C),R=Math.sin(C),O=P*P,T=R*R,U=Array(B).fill(0),F=Array(B).fill(0),q=O*S[N][N]-2*P*R*S[N][$]+T*S[$][$],Y=T*S[N][N]+2*P*R*S[N][$]+O*S[$][$],V=0;V<B;V++)U[V]=P*S[N][V]-R*S[$][V],F[V]=R*S[N][V]+P*S[$][V];S[N][N]=q,S[$][$]=Y,S[N][$]=0,S[$][N]=0;for(var z=0;z<B;z++)z!==N&&z!==$&&(S[N][z]=U[z],S[z][N]=U[z],S[$][z]=F[z],S[z][$]=F[z]);return S}function b(S){for(var C=S.length,N=0,$=[0,1],B=0;B<C;B++)for(var P=B+1;P<C;P++)Math.abs(N)<Math.abs(S[B][P])&&(N=Math.abs(S[B][P]),$=[B,P]);return[$,N]}function D(S){for(var C=S.length,N=0,$=[0,1],B=0;B<C;B++)for(var P=B+1;P<C;P++)a(N)<a(S[B][P])&&(N=a(S[B][P]),$=[B,P]);return[$,N]}function A(S,C,N){var $=S.length,B=Array($),P;if(N){P=Array($);for(var R=0;R<$;R++)P[R]=Array($)}for(var O=0;O<$;O++){for(var T=0,U=S[0],F=0;F<S.length;F++)a(S[F])<a(U)&&(T=F,U=S[T]);if(B[O]=S.splice(T,1)[0],N)for(var q=0;q<$;q++)P[O][q]=C[q][T],C[q].splice(T,1)}if(!N)return{values:B};var Y=P.map((V,z)=>({value:B[z],vector:V}));return{values:B,eigenvectors:Y}}return d}var Mee="eigs",Tee=["config","typed","matrix","addScalar","equal","subtract","abs","atan","cos","sin","multiplyScalar","divideScalar","inv","bignumber","multiply","add","larger","column","flatten","number","complex","sqrt","diag","size","reshape","qr","usolve","usolveAll","im","re","smaller","matrixFromColumns","dot"],Oee=L(Mee,Tee,e=>{var{config:r,typed:t,matrix:n,addScalar:a,subtract:i,equal:o,abs:s,atan:u,cos:l,sin:c,multiplyScalar:f,divideScalar:p,inv:d,bignumber:v,multiply:m,add:g,larger:y,column:E,flatten:h,number:w,complex:x,sqrt:b,diag:D,size:A,reshape:S,qr:C,usolve:N,usolveAll:$,im:B,re:P,smaller:R,matrixFromColumns:O,dot:T}=e,U=Nee({config:r,addScalar:a,subtract:i,column:E,flatten:h,equal:o,abs:s,atan:u,cos:l,sin:c,multiplyScalar:f,inv:d,bignumber:v,complex:x,multiply:m,add:g}),F=Cee({config:r,addScalar:a,subtract:i,multiply:m,multiplyScalar:f,flatten:h,divideScalar:p,sqrt:b,abs:s,bignumber:v,diag:D,size:A,reshape:S,qr:C,inv:d,usolve:N,usolveAll:$,equal:o,complex:x,larger:y,smaller:R,matrixFromColumns:O,dot:T});return t("eigs",{Array:function(re){return q(n(re))},"Array, number|BigNumber":function(re,se){return q(n(re),{precision:se})},"Array, Object"(Q,re){return q(n(Q),re)},Matrix:function(re){return q(re,{matricize:!0})},"Matrix, number|BigNumber":function(re,se){return q(re,{precision:se,matricize:!0})},"Matrix, Object":function(re,se){var te={matricize:!0};return Hr(te,se),q(re,te)}});function q(Q){var re,se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te="eigenvectors"in se?se.eigenvectors:!0,ae=(re=se.precision)!==null&&re!==void 0?re:r.relTol,fe=Y(Q,ae,te);return se.matricize&&(fe.values=n(fe.values),te&&(fe.eigenvectors=fe.eigenvectors.map(ne=>{var{value:be,vector:$e}=ne;return{value:be,vector:n($e)}}))),te&&Object.defineProperty(fe,"vectors",{enumerable:!1,get:()=>{throw new Error("eigs(M).vectors replaced with eigs(M).eigenvectors")}}),fe}function Y(Q,re,se){var te=Q.toArray(),ae=Q.size();if(ae.length!==2||ae[0]!==ae[1])throw new RangeError("Matrix must be square (size: ".concat(tr(ae),")"));var fe=ae[0];if(z(te,fe,re)&&(J(te,fe),V(te,fe,re))){var ne=le(Q,te,fe);return U(te,fe,re,ne,se)}var be=le(Q,te,fe);return F(te,fe,re,be,se)}function V(Q,re,se){for(var te=0;te<re;te++)for(var ae=te;ae<re;ae++)if(y(v(s(i(Q[te][ae],Q[ae][te]))),se))return!1;return!0}function z(Q,re,se){for(var te=0;te<re;te++)for(var ae=0;ae<re;ae++)if(y(v(s(B(Q[te][ae]))),se))return!1;return!0}function J(Q,re){for(var se=0;se<re;se++)for(var te=0;te<re;te++)Q[se][te]=P(Q[se][te])}function le(Q,re,se){var te=Q.datatype();if(te==="number"||te==="BigNumber"||te==="Complex")return te;for(var ae=!1,fe=!1,ne=!1,be=0;be<se;be++)for(var $e=0;$e<se;$e++){var k=re[be][$e];if(Je(k)||So(k))ae=!0;else if(Qe(k))fe=!0;else if(bn(k))ne=!0;else throw TypeError("Unsupported type in Matrix: "+Cr(k))}if(fe&&ne&&console.warn("Complex BigNumbers not supported, this operation will lose precission."),ne){for(var W=0;W<se;W++)for(var ue=0;ue<se;ue++)re[W][ue]=x(re[W][ue]);return"Complex"}if(fe){for(var j=0;j<se;j++)for(var K=0;K<se;K++)re[j][K]=v(re[j][K]);return"BigNumber"}if(ae){for(var oe=0;oe<se;oe++)for(var he=0;he<se;he++)re[oe][he]=w(re[oe][he]);return"number"}else throw TypeError("Matrix contains unsupported types only.")}}),s1="expm",_ee=["typed","abs","add","identity","inv","multiply"],$ee=L(s1,_ee,e=>{var{typed:r,abs:t,add:n,identity:a,inv:i,multiply:o}=e;return r(s1,{Matrix:function(f){var p=f.size();if(p.length!==2||p[0]!==p[1])throw new RangeError("Matrix must be square (size: "+tr(p)+")");for(var d=p[0],v=1e-15,m=s(f),g=u(m,v),y=g.q,E=g.j,h=o(f,Math.pow(2,-E)),w=a(d),x=a(d),b=1,D=h,A=-1,S=1;S<=y;S++)S>1&&(D=o(D,h),A=-A),b=b*(y-S+1)/((2*y-S+1)*S),w=n(w,o(b,D)),x=n(x,o(b*A,D));for(var C=o(i(x),w),N=0;N<E;N++)C=o(C,C);return ea(f)?f.createSparseMatrix(C):C}});function s(c){for(var f=c.size()[0],p=0,d=0;d<f;d++){for(var v=0,m=0;m<f;m++)v+=t(c.get([d,m]));p=Math.max(v,p)}return p}function u(c,f){for(var p=30,d=0;d<p;d++)for(var v=0;v<=d;v++){var m=d-v;if(l(c,v,m)<f)return{q:v,j:m}}throw new Error("Could not find acceptable parameters to compute the matrix exponential (try increasing maxSearchSize in expm.js)")}function l(c,f,p){for(var d=1,v=2;v<=f;v++)d*=v;for(var m=d,g=f+1;g<=2*f;g++)m*=g;var y=m*(2*f+1);return 8*Math.pow(c/Math.pow(2,p),2*f)*d*d/(m*y)}}),u1="sqrtm",Fee=["typed","abs","add","multiply","map","sqrt","subtract","inv","size","max","identity"],Bee=L(u1,Fee,e=>{var{typed:r,abs:t,add:n,multiply:a,map:i,sqrt:o,subtract:s,inv:u,size:l,max:c,identity:f}=e,p=1e3,d=1e-6;function v(m){var g,y=0,E=m,h=f(l(m));do{var w=E;if(E=a(.5,n(w,u(h))),h=a(.5,n(h,u(w))),g=c(t(s(E,w))),g>d&&++y>p)throw new Error("computing square root of matrix: iterative method could not converge")}while(g>d);return E}return r(u1,{"Array | Matrix":function(g){var y=Ue(g)?g.size():Ke(g);switch(y.length){case 1:if(y[0]===1)return i(g,o);throw new RangeError("Matrix must be square (size: "+tr(y)+")");case 2:{var E=y[0],h=y[1];if(E===h)return v(g);throw new RangeError("Matrix must be square (size: "+tr(y)+")")}default:throw new RangeError("Matrix must be at most two dimensional (size: "+tr(y)+")")}}})}),l1="sylvester",Ree=["typed","schur","matrixFromColumns","matrix","multiply","range","concat","transpose","index","subset","add","subtract","identity","lusolve","abs"],Pee=L(l1,Ree,e=>{var{typed:r,schur:t,matrixFromColumns:n,matrix:a,multiply:i,range:o,concat:s,transpose:u,index:l,subset:c,add:f,subtract:p,identity:d,lusolve:v,abs:m}=e;return r(l1,{"Matrix, Matrix, Matrix":g,"Array, Matrix, Matrix":function(E,h,w){return g(a(E),h,w)},"Array, Array, Matrix":function(E,h,w){return g(a(E),a(h),w)},"Array, Matrix, Array":function(E,h,w){return g(a(E),h,a(w))},"Matrix, Array, Matrix":function(E,h,w){return g(E,a(h),w)},"Matrix, Array, Array":function(E,h,w){return g(E,a(h),a(w))},"Matrix, Matrix, Array":function(E,h,w){return g(E,h,a(w))},"Array, Array, Array":function(E,h,w){return g(a(E),a(h),a(w)).toArray()}});function g(y,E,h){for(var w=E.size()[0],x=y.size()[0],b=t(y),D=b.T,A=b.U,S=t(i(-1,E)),C=S.T,N=S.U,$=i(i(u(A),h),N),B=o(0,x),P=[],R=(ne,be)=>s(ne,be,1),O=(ne,be)=>s(ne,be,0),T=0;T<w;T++)if(T<w-1&&m(c(C,l(T+1,T)))>1e-5){for(var U=O(c($,l(B,T)),c($,l(B,T+1))),F=0;F<T;F++)U=f(U,O(i(P[F],c(C,l(F,T))),i(P[F],c(C,l(F,T+1)))));var q=i(d(x),i(-1,c(C,l(T,T)))),Y=i(d(x),i(-1,c(C,l(T+1,T)))),V=i(d(x),i(-1,c(C,l(T,T+1)))),z=i(d(x),i(-1,c(C,l(T+1,T+1)))),J=O(R(f(D,q),Y),R(V,f(D,z))),le=v(J,U);P[T]=le.subset(l(o(0,x),0)),P[T+1]=le.subset(l(o(x,2*x),0)),T++}else{for(var Q=c($,l(B,T)),re=0;re<T;re++)Q=f(Q,i(P[re],c(C,l(re,T))));var se=c(C,l(T,T)),te=p(D,i(se,d(x)));P[T]=v(te,Q)}var ae=a(n(...P)),fe=i(A,i(ae,u(N)));return fe}}),c1="schur",zee=["typed","matrix","identity","multiply","qr","norm","subtract"],Iee=L(c1,zee,e=>{var{typed:r,matrix:t,identity:n,multiply:a,qr:i,norm:o,subtract:s}=e;return r(c1,{Array:function(c){var f=u(t(c));return{U:f.U.valueOf(),T:f.T.valueOf()}},Matrix:function(c){return u(c)}});function u(l){var c=l.size()[0],f=l,p=n(c),d=0,v;do{v=f;var m=i(f),g=m.Q,y=m.R;if(f=a(y,g),p=a(p,g),d++>100)break}while(o(s(f,v))>1e-4);return{U:p,T:f}}}),f1="lyap",Lee=["typed","matrix","sylvester","multiply","transpose"],qee=L(f1,Lee,e=>{var{typed:r,matrix:t,sylvester:n,multiply:a,transpose:i}=e;return r(f1,{"Matrix, Matrix":function(s,u){return n(s,i(s),a(-1,u))},"Array, Matrix":function(s,u){return n(t(s),i(t(s)),a(-1,u))},"Matrix, Array":function(s,u){return n(s,i(t(s)),t(a(-1,u)))},"Array, Array":function(s,u){return n(t(s),i(t(s)),t(a(-1,u))).toArray()}})}),kee="divide",Uee=["typed","matrix","multiply","equalScalar","divideScalar","inv"],Hee=L(kee,Uee,e=>{var{typed:r,matrix:t,multiply:n,equalScalar:a,divideScalar:i,inv:o}=e,s=tt({typed:r,equalScalar:a}),u=tn({typed:r});return r("divide",m2({"Array | Matrix, Array | Matrix":function(c,f){return n(c,o(f))},"DenseMatrix, any":function(c,f){return u(c,f,i,!1)},"SparseMatrix, any":function(c,f){return s(c,f,i,!1)},"Array, any":function(c,f){return u(t(c),f,i,!1).valueOf()},"any, Array | Matrix":function(c,f){return n(c,o(f))}},i.signatures))}),p1="distance",jee=["typed","addScalar","subtractScalar","divideScalar","multiplyScalar","deepEqual","sqrt","abs"],Vee=L(p1,jee,e=>{var{typed:r,addScalar:t,subtractScalar:n,multiplyScalar:a,divideScalar:i,deepEqual:o,sqrt:s,abs:u}=e;return r(p1,{"Array, Array, Array":function(x,b,D){if(x.length===2&&b.length===2&&D.length===2){if(!c(x))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!c(b))throw new TypeError("Array with 2 numbers or BigNumbers expected for second argument");if(!c(D))throw new TypeError("Array with 2 numbers or BigNumbers expected for third argument");if(o(b,D))throw new TypeError("LinePoint1 should not be same with LinePoint2");var A=n(D[1],b[1]),S=n(b[0],D[0]),C=n(a(D[0],b[1]),a(b[0],D[1]));return g(x[0],x[1],A,S,C)}else throw new TypeError("Invalid Arguments: Try again")},"Object, Object, Object":function(x,b,D){if(Object.keys(x).length===2&&Object.keys(b).length===2&&Object.keys(D).length===2){if(!c(x))throw new TypeError("Values of pointX and pointY should be numbers or BigNumbers");if(!c(b))throw new TypeError("Values of lineOnePtX and lineOnePtY should be numbers or BigNumbers");if(!c(D))throw new TypeError("Values of lineTwoPtX and lineTwoPtY should be numbers or BigNumbers");if(o(v(b),v(D)))throw new TypeError("LinePoint1 should not be same with LinePoint2");if("pointX"in x&&"pointY"in x&&"lineOnePtX"in b&&"lineOnePtY"in b&&"lineTwoPtX"in D&&"lineTwoPtY"in D){var A=n(D.lineTwoPtY,b.lineOnePtY),S=n(b.lineOnePtX,D.lineTwoPtX),C=n(a(D.lineTwoPtX,b.lineOnePtY),a(b.lineOnePtX,D.lineTwoPtY));return g(x.pointX,x.pointY,A,S,C)}else throw new TypeError("Key names do not match")}else throw new TypeError("Invalid Arguments: Try again")},"Array, Array":function(x,b){if(x.length===2&&b.length===3){if(!c(x))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!f(b))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");return g(x[0],x[1],b[0],b[1],b[2])}else if(x.length===3&&b.length===6){if(!f(x))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!d(b))throw new TypeError("Array with 6 numbers or BigNumbers expected for second argument");return y(x[0],x[1],x[2],b[0],b[1],b[2],b[3],b[4],b[5])}else if(x.length===b.length&&x.length>0){if(!p(x))throw new TypeError("All values of an array should be numbers or BigNumbers");if(!p(b))throw new TypeError("All values of an array should be numbers or BigNumbers");return E(x,b)}else throw new TypeError("Invalid Arguments: Try again")},"Object, Object":function(x,b){if(Object.keys(x).length===2&&Object.keys(b).length===3){if(!c(x))throw new TypeError("Values of pointX and pointY should be numbers or BigNumbers");if(!f(b))throw new TypeError("Values of xCoeffLine, yCoeffLine and constant should be numbers or BigNumbers");if("pointX"in x&&"pointY"in x&&"xCoeffLine"in b&&"yCoeffLine"in b&&"constant"in b)return g(x.pointX,x.pointY,b.xCoeffLine,b.yCoeffLine,b.constant);throw new TypeError("Key names do not match")}else if(Object.keys(x).length===3&&Object.keys(b).length===6){if(!f(x))throw new TypeError("Values of pointX, pointY and pointZ should be numbers or BigNumbers");if(!d(b))throw new TypeError("Values of x0, y0, z0, a, b and c should be numbers or BigNumbers");if("pointX"in x&&"pointY"in x&&"x0"in b&&"y0"in b&&"z0"in b&&"a"in b&&"b"in b&&"c"in b)return y(x.pointX,x.pointY,x.pointZ,b.x0,b.y0,b.z0,b.a,b.b,b.c);throw new TypeError("Key names do not match")}else if(Object.keys(x).length===2&&Object.keys(b).length===2){if(!c(x))throw new TypeError("Values of pointOneX and pointOneY should be numbers or BigNumbers");if(!c(b))throw new TypeError("Values of pointTwoX and pointTwoY should be numbers or BigNumbers");if("pointOneX"in x&&"pointOneY"in x&&"pointTwoX"in b&&"pointTwoY"in b)return E([x.pointOneX,x.pointOneY],[b.pointTwoX,b.pointTwoY]);throw new TypeError("Key names do not match")}else if(Object.keys(x).length===3&&Object.keys(b).length===3){if(!f(x))throw new TypeError("Values of pointOneX, pointOneY and pointOneZ should be numbers or BigNumbers");if(!f(b))throw new TypeError("Values of pointTwoX, pointTwoY and pointTwoZ should be numbers or BigNumbers");if("pointOneX"in x&&"pointOneY"in x&&"pointOneZ"in x&&"pointTwoX"in b&&"pointTwoY"in b&&"pointTwoZ"in b)return E([x.pointOneX,x.pointOneY,x.pointOneZ],[b.pointTwoX,b.pointTwoY,b.pointTwoZ]);throw new TypeError("Key names do not match")}else throw new TypeError("Invalid Arguments: Try again")},Array:function(x){if(!m(x))throw new TypeError("Incorrect array format entered for pairwise distance calculation");return h(x)}});function l(w){return typeof w=="number"||Qe(w)}function c(w){return w.constructor!==Array&&(w=v(w)),l(w[0])&&l(w[1])}function f(w){return w.constructor!==Array&&(w=v(w)),l(w[0])&&l(w[1])&&l(w[2])}function p(w){return Array.isArray(w)||(w=v(w)),w.every(l)}function d(w){return w.constructor!==Array&&(w=v(w)),l(w[0])&&l(w[1])&&l(w[2])&&l(w[3])&&l(w[4])&&l(w[5])}function v(w){for(var x=Object.keys(w),b=[],D=0;D<x.length;D++)b.push(w[x[D]]);return b}function m(w){if(w[0].length===2&&l(w[0][0])&&l(w[0][1])){if(w.some(x=>x.length!==2||!l(x[0])||!l(x[1])))return!1}else if(w[0].length===3&&l(w[0][0])&&l(w[0][1])&&l(w[0][2])){if(w.some(x=>x.length!==3||!l(x[0])||!l(x[1])||!l(x[2])))return!1}else return!1;return!0}function g(w,x,b,D,A){var S=u(t(t(a(b,w),a(D,x)),A)),C=s(t(a(b,b),a(D,D)));return i(S,C)}function y(w,x,b,D,A,S,C,N,$){var B=[n(a(n(A,x),$),a(n(S,b),N)),n(a(n(S,b),C),a(n(D,w),$)),n(a(n(D,w),N),a(n(A,x),C))];B=s(t(t(a(B[0],B[0]),a(B[1],B[1])),a(B[2],B[2])));var P=s(t(t(a(C,C),a(N,N)),a($,$)));return i(B,P)}function E(w,x){for(var b=w.length,D=0,A=0,S=0;S<b;S++)A=n(w[S],x[S]),D=t(a(A,A),D);return s(D)}function h(w){for(var x=[],b=[],D=[],A=0;A<w.length-1;A++)for(var S=A+1;S<w.length;S++)w[0].length===2?(b=[w[A][0],w[A][1]],D=[w[S][0],w[S][1]]):w[0].length===3&&(b=[w[A][0],w[A][1],w[A][2]],D=[w[S][0],w[S][1],w[S][2]]),x.push(E(b,D));return x}}),Gee="intersect",Wee=["typed","config","abs","add","addScalar","matrix","multiply","multiplyScalar","divideScalar","subtract","smaller","equalScalar","flatten","isZero","isNumeric"],Zee=L(Gee,Wee,e=>{var{typed:r,config:t,abs:n,add:a,addScalar:i,matrix:o,multiply:s,multiplyScalar:u,divideScalar:l,subtract:c,smaller:f,equalScalar:p,flatten:d,isZero:v,isNumeric:m}=e;return r("intersect",{"Array, Array, Array":g,"Array, Array, Array, Array":y,"Matrix, Matrix, Matrix":function(N,$,B){var P=g(N.valueOf(),$.valueOf(),B.valueOf());return P===null?null:o(P)},"Matrix, Matrix, Matrix, Matrix":function(N,$,B,P){var R=y(N.valueOf(),$.valueOf(),B.valueOf(),P.valueOf());return R===null?null:o(R)}});function g(C,N,$){if(C=E(C),N=E(N),$=E($),!w(C))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!w(N))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");if(!x($))throw new TypeError("Array with 4 numbers expected as third argument");return S(C[0],C[1],C[2],N[0],N[1],N[2],$[0],$[1],$[2],$[3])}function y(C,N,$,B){if(C=E(C),N=E(N),$=E($),B=E(B),C.length===2){if(!h(C))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!h(N))throw new TypeError("Array with 2 numbers or BigNumbers expected for second argument");if(!h($))throw new TypeError("Array with 2 numbers or BigNumbers expected for third argument");if(!h(B))throw new TypeError("Array with 2 numbers or BigNumbers expected for fourth argument");return b(C,N,$,B)}else if(C.length===3){if(!w(C))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!w(N))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");if(!w($))throw new TypeError("Array with 3 numbers or BigNumbers expected for third argument");if(!w(B))throw new TypeError("Array with 3 numbers or BigNumbers expected for fourth argument");return A(C[0],C[1],C[2],N[0],N[1],N[2],$[0],$[1],$[2],B[0],B[1],B[2])}else throw new TypeError("Arrays with two or thee dimensional points expected")}function E(C){return C.length===1?C[0]:C.length>1&&Array.isArray(C[0])&&C.every(N=>Array.isArray(N)&&N.length===1)?d(C):C}function h(C){return C.length===2&&m(C[0])&&m(C[1])}function w(C){return C.length===3&&m(C[0])&&m(C[1])&&m(C[2])}function x(C){return C.length===4&&m(C[0])&&m(C[1])&&m(C[2])&&m(C[3])}function b(C,N,$,B){var P=C,R=$,O=c(P,N),T=c(R,B),U=c(u(O[0],T[1]),u(T[0],O[1]));if(v(U)||f(n(U),t.relTol))return null;var F=u(T[0],P[1]),q=u(T[1],P[0]),Y=u(T[0],R[1]),V=u(T[1],R[0]),z=l(i(c(c(F,q),Y),V),U);return a(s(O,z),P)}function D(C,N,$,B,P,R,O,T,U,F,q,Y){var V=u(c(C,N),c($,B)),z=u(c(P,R),c(O,T)),J=u(c(U,F),c(q,Y));return i(i(V,z),J)}function A(C,N,$,B,P,R,O,T,U,F,q,Y){var V=D(C,O,F,O,N,T,q,T,$,U,Y,U),z=D(F,O,B,C,q,T,P,N,Y,U,R,$),J=D(C,O,B,C,N,T,P,N,$,U,R,$),le=D(F,O,F,O,q,T,q,T,Y,U,Y,U),Q=D(B,C,B,C,P,N,P,N,R,$,R,$),re=c(u(V,z),u(J,le)),se=c(u(Q,le),u(z,z));if(v(se))return null;var te=l(re,se),ae=l(i(V,u(te,z)),le),fe=i(C,u(te,c(B,C))),ne=i(N,u(te,c(P,N))),be=i($,u(te,c(R,$))),$e=i(O,u(ae,c(F,O))),k=i(T,u(ae,c(q,T))),W=i(U,u(ae,c(Y,U)));return p(fe,$e)&&p(ne,k)&&p(be,W)?[fe,ne,be]:null}function S(C,N,$,B,P,R,O,T,U,F){var q=u(C,O),Y=u(B,O),V=u(N,T),z=u(P,T),J=u($,U),le=u(R,U),Q=c(c(c(F,q),V),J),re=c(c(c(i(i(Y,z),le),q),V),J),se=l(Q,re),te=i(C,u(se,c(B,C))),ae=i(N,u(se,c(P,N))),fe=i($,u(se,c(R,$)));return[te,ae,fe]}}),d1="sum",Yee=["typed","config","add","numeric"],px=L(d1,Yee,e=>{var{typed:r,config:t,add:n,numeric:a}=e;return r(d1,{"Array | Matrix":i,"Array | Matrix, number | BigNumber":o,"...":function(u){if(Di(u))throw new TypeError("Scalar values expected in function sum");return i(u)}});function i(s){var u;return An(s,function(l){try{u=u===void 0?l:n(u,l)}catch(c){throw dt(c,"sum",l)}}),u===void 0&&(u=a(0,t.number)),typeof u=="string"&&(u=a(u,jn(u,t))),u}function o(s,u){try{var l=Mu(s,u,n);return l}catch(c){throw dt(c,"sum")}}}),fs="cumsum",Xee=["typed","add","unaryPlus"],dx=L(fs,Xee,e=>{var{typed:r,add:t,unaryPlus:n}=e;return r(fs,{Array:a,Matrix:function(l){return l.create(a(l.valueOf()))},"Array, number | BigNumber":o,"Matrix, number | BigNumber":function(l,c){return l.create(o(l.valueOf(),c))},"...":function(l){if(Di(l))throw new TypeError("All values expected to be scalar in function cumsum");return a(l)}});function a(u){try{return i(u)}catch(l){throw dt(l,fs)}}function i(u){if(u.length===0)return[];for(var l=[n(u[0])],c=1;c<u.length;++c)l.push(t(l[c-1],u[c]));return l}function o(u,l){var c=Ke(u);if(l<0||l>=c.length)throw new en(l,c.length);try{return s(u,l)}catch(f){throw dt(f,fs)}}function s(u,l){var c,f,p;if(l<=0){var d=u[0][0];if(Array.isArray(d)){for(p=X2(u),f=[],c=0;c<p.length;c++)f[c]=s(p[c],l-1);return f}else return i(u)}else{for(f=[],c=0;c<u.length;c++)f[c]=s(u[c],l-1);return f}}}),v1="mean",Kee=["typed","add","divide"],vx=L(v1,Kee,e=>{var{typed:r,add:t,divide:n}=e;return r(v1,{"Array | Matrix":i,"Array | Matrix, number | BigNumber":a,"...":function(s){if(Di(s))throw new TypeError("Scalar values expected in function mean");return i(s)}});function a(o,s){try{var u=Mu(o,s,t),l=Array.isArray(o)?Ke(o):o.size();return n(u,l[s])}catch(c){throw dt(c,"mean")}}function i(o){var s,u=0;if(An(o,function(l){try{s=s===void 0?l:t(s,l),u++}catch(c){throw dt(c,"mean",l)}}),u===0)throw new Error("Cannot calculate the mean of an empty array");return n(s,u)}}),m1="median",Jee=["typed","add","divide","compare","partitionSelect"],Qee=L(m1,Jee,e=>{var{typed:r,add:t,divide:n,compare:a,partitionSelect:i}=e;function o(l){try{l=mr(l.valueOf());var c=l.length;if(c===0)throw new Error("Cannot calculate median of an empty array");if(c%2===0){for(var f=c/2-1,p=i(l,f+1),d=l[f],v=0;v<f;++v)a(l[v],d)>0&&(d=l[v]);return u(d,p)}else{var m=i(l,(c-1)/2);return s(m)}}catch(g){throw dt(g,"median")}}var s=r({"number | BigNumber | Complex | Unit":function(c){return c}}),u=r({"number | BigNumber | Complex | Unit, number | BigNumber | Complex | Unit":function(c,f){return n(t(c,f),2)}});return r(m1,{"Array | Matrix":o,"Array | Matrix, number | BigNumber":function(c,f){throw new Error("median(A, dim) is not yet supported")},"...":function(c){if(Di(c))throw new TypeError("Scalar values expected in function median");return o(c)}})}),h1="mad",ere=["typed","abs","map","median","subtract"],rre=L(h1,ere,e=>{var{typed:r,abs:t,map:n,median:a,subtract:i}=e;return r(h1,{"Array | Matrix":o,"...":function(u){return o(u)}});function o(s){if(s=mr(s.valueOf()),s.length===0)throw new Error("Cannot calculate median absolute deviation (mad) of an empty array");try{var u=a(s);return a(n(s,function(l){return t(i(l,u))}))}catch(l){throw l instanceof TypeError&&l.message.includes("median")?new TypeError(l.message.replace("median","mad")):dt(l,"mad")}}}),El="unbiased",g1="variance",tre=["typed","add","subtract","multiply","divide","apply","isNaN"],mx=L(g1,tre,e=>{var{typed:r,add:t,subtract:n,multiply:a,divide:i,apply:o,isNaN:s}=e;return r(g1,{"Array | Matrix":function(f){return u(f,El)},"Array | Matrix, string":u,"Array | Matrix, number | BigNumber":function(f,p){return l(f,p,El)},"Array | Matrix, number | BigNumber, string":l,"...":function(f){return u(f,El)}});function u(c,f){var p,d=0;if(c.length===0)throw new SyntaxError("Function variance requires one or more parameters (0 provided)");if(An(c,function(g){try{p=p===void 0?g:t(p,g),d++}catch(y){throw dt(y,"variance",g)}}),d===0)throw new Error("Cannot calculate variance of an empty array");var v=i(p,d);if(p=void 0,An(c,function(g){var y=n(g,v);p=p===void 0?a(y,y):t(p,a(y,y))}),s(p))return p;switch(f){case"uncorrected":return i(p,d);case"biased":return i(p,d+1);case"unbiased":{var m=Qe(p)?p.mul(0):0;return d===1?m:i(p,d-1)}default:throw new Error('Unknown normalization "'+f+'". Choose "unbiased" (default), "uncorrected", or "biased".')}}function l(c,f,p){try{if(c.length===0)throw new SyntaxError("Function variance requires one or more parameters (0 provided)");return o(c,f,d=>u(d,p))}catch(d){throw dt(d,"variance")}}}),y1="quantileSeq",nre=["typed","?bignumber","add","subtract","divide","multiply","partitionSelect","compare","isInteger","smaller","smallerEq","larger"],hx=L(y1,nre,e=>{var{typed:r,bignumber:t,add:n,subtract:a,divide:i,multiply:o,partitionSelect:s,compare:u,isInteger:l,smaller:c,smallerEq:f,larger:p}=e,d=Bf({typed:r,isInteger:l});return r(y1,{"Array | Matrix, number | BigNumber":(E,h)=>m(E,h,!1),"Array | Matrix, number | BigNumber, number":(E,h,w)=>v(E,h,!1,w,m),"Array | Matrix, number | BigNumber, boolean":m,"Array | Matrix, number | BigNumber, boolean, number":(E,h,w,x)=>v(E,h,w,x,m),"Array | Matrix, Array | Matrix":(E,h)=>g(E,h,!1),"Array | Matrix, Array | Matrix, number":(E,h,w)=>v(E,h,!1,w,g),"Array | Matrix, Array | Matrix, boolean":g,"Array | Matrix, Array | Matrix, boolean, number":(E,h,w,x)=>v(E,h,w,x,g)});function v(E,h,w,x,b){return d(E,x,D=>b(D,h,w))}function m(E,h,w){var x,b=E.valueOf();if(c(h,0))throw new Error("N/prob must be non-negative");if(f(h,1))return Je(h)?y(b,h,w):t(y(b,h,w));if(p(h,1)){if(!l(h))throw new Error("N must be a positive integer");if(p(h,4294967295))throw new Error("N must be less than or equal to 2^32-1, as that is the maximum length of an Array");var D=n(h,1);x=[];for(var A=0;c(A,h);A++){var S=i(A+1,D);x.push(y(b,S,w))}return Je(h)?x:t(x)}}function g(E,h,w){for(var x=E.valueOf(),b=h.valueOf(),D=[],A=0;A<b.length;++A)D.push(y(x,b[A],w));return D}function y(E,h,w){var x=mr(E),b=x.length;if(b===0)throw new Error("Cannot calculate quantile of an empty sequence");var D=Je(h)?h*(b-1):h.times(b-1),A=Je(h)?Math.floor(D):D.floor().toNumber(),S=Je(h)?D%1:D.minus(A);if(l(D))return w?x[D]:s(x,Je(h)?D:D.valueOf());var C,N;if(w)C=x[A],N=x[A+1];else{N=s(x,A+1),C=x[A];for(var $=0;$<A;++$)u(x[$],C)>0&&(C=x[$])}return n(o(C,a(1,S)),o(N,S))}}),b1="std",are=["typed","map","sqrt","variance"],gx=L(b1,are,e=>{var{typed:r,map:t,sqrt:n,variance:a}=e;return r(b1,{"Array | Matrix":i,"Array | Matrix, string":i,"Array | Matrix, number | BigNumber":i,"Array | Matrix, number | BigNumber, string":i,"...":function(s){return i(s)}});function i(o,s){if(o.length===0)throw new SyntaxError("Function std requires one or more parameters (0 provided)");try{var u=a.apply(null,arguments);return Ut(u)?t(u,n):n(u)}catch(l){throw l instanceof TypeError&&l.message.includes(" variance")?new TypeError(l.message.replace(" variance"," std")):l}}}),x1="corr",ire=["typed","matrix","mean","sqrt","sum","add","subtract","multiply","pow","divide"],ore=L(x1,ire,e=>{var{typed:r,matrix:t,sqrt:n,sum:a,add:i,subtract:o,multiply:s,pow:u,divide:l}=e;return r(x1,{"Array, Array":function(d,v){return c(d,v)},"Matrix, Matrix":function(d,v){var m=c(d.toArray(),v.toArray());return Array.isArray(m)?t(m):m}});function c(p,d){var v=[];if(Array.isArray(p[0])&&Array.isArray(d[0])){if(p.length!==d.length)throw new SyntaxError("Dimension mismatch. Array A and B must have the same length.");for(var m=0;m<p.length;m++){if(p[m].length!==d[m].length)throw new SyntaxError("Dimension mismatch. Array A and B must have the same number of elements.");v.push(f(p[m],d[m]))}return v}else{if(p.length!==d.length)throw new SyntaxError("Dimension mismatch. Array A and B must have the same number of elements.");return f(p,d)}}function f(p,d){var v=p.length,m=a(p),g=a(d),y=p.reduce((b,D,A)=>i(b,s(D,d[A])),0),E=a(p.map(b=>u(b,2))),h=a(d.map(b=>u(b,2))),w=o(s(v,y),s(m,g)),x=n(s(o(s(v,E),u(m,2)),o(s(v,h),u(g,2))));return l(w,x)}}),w1="combinations",sre=["typed"],ure=L(w1,sre,e=>{var{typed:r}=e;return r(w1,{"number, number":bb,"BigNumber, BigNumber":function(n,a){var i=n.constructor,o,s,u=n.minus(a),l=new i(1);if(!E1(n)||!E1(a))throw new TypeError("Positive integer value expected in function combinations");if(a.gt(n))throw new TypeError("k must be less than n in function combinations");if(o=l,a.lt(u))for(s=l;s.lte(u);s=s.plus(l))o=o.times(a.plus(s)).dividedBy(s);else for(s=l;s.lte(a);s=s.plus(l))o=o.times(u.plus(s)).dividedBy(s);return o}})});function E1(e){return e.isInteger()&&e.gte(0)}var S1="combinationsWithRep",lre=["typed"],cre=L(S1,lre,e=>{var{typed:r}=e;return r(S1,{"number, number":function(n,a){if(!ze(n)||n<0)throw new TypeError("Positive integer value expected in function combinationsWithRep");if(!ze(a)||a<0)throw new TypeError("Positive integer value expected in function combinationsWithRep");if(n<1)throw new TypeError("k must be less than or equal to n + k - 1");if(a<n-1){var i=yn(n,n+a-1);return i/yn(1,a)}var o=yn(a+1,n+a-1);return o/yn(1,n-1)},"BigNumber, BigNumber":function(n,a){var i=n.constructor,o,s,u=new i(1),l=n.minus(u);if(!A1(n)||!A1(a))throw new TypeError("Positive integer value expected in function combinationsWithRep");if(n.lt(u))throw new TypeError("k must be less than or equal to n + k - 1 in function combinationsWithRep");if(o=u,a.lt(l))for(s=u;s.lte(l);s=s.plus(u))o=o.times(a.plus(s)).dividedBy(s);else for(s=u;s.lte(a);s=s.plus(u))o=o.times(l.plus(s)).dividedBy(s);return o}})});function A1(e){return e.isInteger()&&e.gte(0)}var D1="gamma",fre=["typed","config","multiplyScalar","pow","BigNumber","Complex"],pre=L(D1,fre,e=>{var{typed:r,config:t,multiplyScalar:n,pow:a,BigNumber:i,Complex:o}=e;function s(l){if(l.im===0)return Is(l.re);if(l.re<.5){var c=new o(1-l.re,-l.im),f=new o(Math.PI*l.re,Math.PI*l.im);return new o(Math.PI).div(f.sin()).div(s(c))}l=new o(l.re-1,l.im);for(var p=new o(ei[0],0),d=1;d<ei.length;++d){var v=new o(ei[d],0);p=p.add(v.div(l.add(d)))}var m=new o(l.re+wb+.5,l.im),g=Math.sqrt(2*Math.PI),y=m.pow(l.add(.5)),E=m.neg().exp();return p.mul(g).mul(y).mul(E)}return r(D1,{number:Is,Complex:s,BigNumber:function(c){if(c.isInteger())return c.isNegative()||c.isZero()?new i(1/0):u(c.minus(1));if(!c.isFinite())return new i(c.isNegative()?NaN:1/0);throw new Error("Integer BigNumber expected")}});function u(l){if(l<8)return new i([1,1,2,6,24,120,720,5040][l]);var c=t.precision+(Math.log(l.toNumber())|0),f=i.clone({precision:c});if(l%2===1)return l.times(u(new i(l-1)));for(var p=l,d=new f(l),v=l.toNumber();p>2;)p-=2,v+=p,d=d.times(v);return new i(d.toPrecision(i.precision))}}),C1="lgamma",dre=["Complex","typed"],vre=L(C1,dre,e=>{var{Complex:r,typed:t}=e,n=7,a=7,i=[-.029550653594771242,.00641025641025641,-.0019175269175269176,.0008417508417508417,-.0005952380952380953,.0007936507936507937,-.002777777777777778,.08333333333333333];return t(C1,{number:Ls,Complex:o,BigNumber:function(){throw new Error("mathjs doesn't yet provide an implementation of the algorithm lgamma for BigNumber")}});function o(l){var c=6.283185307179586,f=1.1447298858494002,p=.1;if(l.isNaN())return new r(NaN,NaN);if(l.im===0)return new r(Ls(l.re),0);if(l.re>=n||Math.abs(l.im)>=a)return s(l);if(l.re<=p){var d=eI(c,l.im)*Math.floor(.5*l.re+.25),v=l.mul(Math.PI).sin().log(),m=o(new r(1-l.re,-l.im));return new r(f,d).sub(v).sub(m)}else return l.im>=0?u(l):u(l.conjugate()).conjugate()}function s(l){for(var c=l.sub(.5).mul(l.log()).sub(l).add(Eb),f=new r(1,0).div(l),p=f.div(l),d=i[0],v=i[1],m=2*p.re,g=p.re*p.re+p.im*p.im,y=2;y<8;y++){var E=v;v=-g*d+i[y],d=m*d+E}var h=f.mul(p.mul(d).add(v));return c.add(h)}function u(l){var c=0,f=0,p=l;for(l=l.add(1);l.re<=n;){p=p.mul(l);var d=p.im<0?1:0;d!==0&&f===0&&c++,f=d,l=l.add(1)}return s(l).sub(p.log()).sub(new r(0,c*2*Math.PI*1))}}),N1="factorial",mre=["typed","gamma"],hre=L(N1,mre,e=>{var{typed:r,gamma:t}=e;return r(N1,{number:function(a){if(a<0)throw new Error("Value must be non-negative");return t(a+1)},BigNumber:function(a){if(a.isNegative())throw new Error("Value must be non-negative");return t(a.plus(1))},"Array | Matrix":r.referToSelf(n=>a=>rr(a,n))})}),M1="kldivergence",gre=["typed","matrix","divide","sum","multiply","map","dotDivide","log","isNumeric"],yre=L(M1,gre,e=>{var{typed:r,matrix:t,divide:n,sum:a,multiply:i,map:o,dotDivide:s,log:u,isNumeric:l}=e;return r(M1,{"Array, Array":function(p,d){return c(t(p),t(d))},"Matrix, Array":function(p,d){return c(p,t(d))},"Array, Matrix":function(p,d){return c(t(p),d)},"Matrix, Matrix":function(p,d){return c(p,d)}});function c(f,p){var d=p.size().length,v=f.size().length;if(d>1)throw new Error("first object must be one dimensional");if(v>1)throw new Error("second object must be one dimensional");if(d!==v)throw new Error("Length of two vectors must be equal");var m=a(f);if(m===0)throw new Error("Sum of elements in first object must be non zero");var g=a(p);if(g===0)throw new Error("Sum of elements in second object must be non zero");var y=n(f,a(f)),E=n(p,a(p)),h=a(i(y,o(s(y,E),w=>u(w))));return l(h)?h:Number.NaN}}),T1="multinomial",bre=["typed","add","divide","multiply","factorial","isInteger","isPositive"],xre=L(T1,bre,e=>{var{typed:r,add:t,divide:n,multiply:a,factorial:i,isInteger:o,isPositive:s}=e;return r(T1,{"Array | Matrix":function(l){var c=0,f=1;return An(l,function(p){if(!o(p)||!s(p))throw new TypeError("Positive integer value expected in function multinomial");c=t(c,p),f=a(f,i(p))}),n(i(c),f)}})}),O1="permutations",wre=["typed","factorial"],Ere=L(O1,wre,e=>{var{typed:r,factorial:t}=e;return r(O1,{"number | BigNumber":t,"number, number":function(a,i){if(!ze(a)||a<0)throw new TypeError("Positive integer value expected in function permutations");if(!ze(i)||i<0)throw new TypeError("Positive integer value expected in function permutations");if(i>a)throw new TypeError("second argument k must be less than or equal to first argument n");return yn(a-i+1,a)},"BigNumber, BigNumber":function(a,i){var o,s;if(!_1(a)||!_1(i))throw new TypeError("Positive integer value expected in function permutations");if(i.gt(a))throw new TypeError("second argument k must be less than or equal to first argument n");var u=a.mul(0).add(1);for(o=u,s=a.minus(i).plus(1);s.lte(a);s=s.plus(1))o=o.times(s);return o}})});function _1(e){return e.isInteger()&&e.gte(0)}var kf={exports:{}};kf.exports;(function(e){(function(r,t,n){function a(u){var l=this,c=s();l.next=function(){var f=2091639*l.s0+l.c*23283064365386963e-26;return l.s0=l.s1,l.s1=l.s2,l.s2=f-(l.c=f|0)},l.c=1,l.s0=c(" "),l.s1=c(" "),l.s2=c(" "),l.s0-=c(u),l.s0<0&&(l.s0+=1),l.s1-=c(u),l.s1<0&&(l.s1+=1),l.s2-=c(u),l.s2<0&&(l.s2+=1),c=null}function i(u,l){return l.c=u.c,l.s0=u.s0,l.s1=u.s1,l.s2=u.s2,l}function o(u,l){var c=new a(u),f=l&&l.state,p=c.next;return p.int32=function(){return c.next()*4294967296|0},p.double=function(){return p()+(p()*2097152|0)*11102230246251565e-32},p.quick=p,f&&(typeof f=="object"&&i(f,c),p.state=function(){return i(c,{})}),p}function s(){var u=4022871197,l=function(c){c=String(c);for(var f=0;f<c.length;f++){u+=c.charCodeAt(f);var p=.02519603282416938*u;u=p>>>0,p-=u,p*=u,u=p>>>0,p-=u,u+=p*4294967296}return(u>>>0)*23283064365386963e-26};return l}t&&t.exports?t.exports=o:this.alea=o})(ye.commonjsGlobal,e)})(kf);var Sre=kf.exports,Uf={exports:{}};Uf.exports;(function(e){(function(r,t,n){function a(s){var u=this,l="";u.x=0,u.y=0,u.z=0,u.w=0,u.next=function(){var f=u.x^u.x<<11;return u.x=u.y,u.y=u.z,u.z=u.w,u.w^=u.w>>>19^f^f>>>8},s===(s|0)?u.x=s:l+=s;for(var c=0;c<l.length+64;c++)u.x^=l.charCodeAt(c)|0,u.next()}function i(s,u){return u.x=s.x,u.y=s.y,u.z=s.z,u.w=s.w,u}function o(s,u){var l=new a(s),c=u&&u.state,f=function(){return(l.next()>>>0)/4294967296};return f.double=function(){do var p=l.next()>>>11,d=(l.next()>>>0)/4294967296,v=(p+d)/(1<<21);while(v===0);return v},f.int32=l.next,f.quick=f,c&&(typeof c=="object"&&i(c,l),f.state=function(){return i(l,{})}),f}t&&t.exports?t.exports=o:this.xor128=o})(ye.commonjsGlobal,e)})(Uf);var Are=Uf.exports,Hf={exports:{}};Hf.exports;(function(e){(function(r,t,n){function a(s){var u=this,l="";u.next=function(){var f=u.x^u.x>>>2;return u.x=u.y,u.y=u.z,u.z=u.w,u.w=u.v,(u.d=u.d+362437|0)+(u.v=u.v^u.v<<4^(f^f<<1))|0},u.x=0,u.y=0,u.z=0,u.w=0,u.v=0,s===(s|0)?u.x=s:l+=s;for(var c=0;c<l.length+64;c++)u.x^=l.charCodeAt(c)|0,c==l.length&&(u.d=u.x<<10^u.x>>>4),u.next()}function i(s,u){return u.x=s.x,u.y=s.y,u.z=s.z,u.w=s.w,u.v=s.v,u.d=s.d,u}function o(s,u){var l=new a(s),c=u&&u.state,f=function(){return(l.next()>>>0)/4294967296};return f.double=function(){do var p=l.next()>>>11,d=(l.next()>>>0)/4294967296,v=(p+d)/(1<<21);while(v===0);return v},f.int32=l.next,f.quick=f,c&&(typeof c=="object"&&i(c,l),f.state=function(){return i(l,{})}),f}t&&t.exports?t.exports=o:this.xorwow=o})(ye.commonjsGlobal,e)})(Hf);var Dre=Hf.exports,jf={exports:{}};jf.exports;(function(e){(function(r,t,n){function a(s){var u=this;u.next=function(){var c=u.x,f=u.i,p,d;return p=c[f],p^=p>>>7,d=p^p<<24,p=c[f+1&7],d^=p^p>>>10,p=c[f+3&7],d^=p^p>>>3,p=c[f+4&7],d^=p^p<<7,p=c[f+7&7],p=p^p<<13,d^=p^p<<9,c[f]=d,u.i=f+1&7,d};function l(c,f){var p,d=[];if(f===(f|0))d[0]=f;else for(f=""+f,p=0;p<f.length;++p)d[p&7]=d[p&7]<<15^f.charCodeAt(p)+d[p+1&7]<<13;for(;d.length<8;)d.push(0);for(p=0;p<8&&d[p]===0;++p);for(p==8?d[7]=-1:d[p],c.x=d,c.i=0,p=256;p>0;--p)c.next()}l(u,s)}function i(s,u){return u.x=s.x.slice(),u.i=s.i,u}function o(s,u){s==null&&(s=+new Date);var l=new a(s),c=u&&u.state,f=function(){return(l.next()>>>0)/4294967296};return f.double=function(){do var p=l.next()>>>11,d=(l.next()>>>0)/4294967296,v=(p+d)/(1<<21);while(v===0);return v},f.int32=l.next,f.quick=f,c&&(c.x&&i(c,l),f.state=function(){return i(l,{})}),f}t&&t.exports?t.exports=o:this.xorshift7=o})(ye.commonjsGlobal,e)})(jf);var Cre=jf.exports,Vf={exports:{}};Vf.exports;(function(e){(function(r,t,n){function a(s){var u=this;u.next=function(){var c=u.w,f=u.X,p=u.i,d,v;return u.w=c=c+1640531527|0,v=f[p+34&127],d=f[p=p+1&127],v^=v<<13,d^=d<<17,v^=v>>>15,d^=d>>>12,v=f[p]=v^d,u.i=p,v+(c^c>>>16)|0};function l(c,f){var p,d,v,m,g,y=[],E=128;for(f===(f|0)?(d=f,f=null):(f=f+"\0",d=0,E=Math.max(E,f.length)),v=0,m=-32;m<E;++m)f&&(d^=f.charCodeAt((m+32)%f.length)),m===0&&(g=d),d^=d<<10,d^=d>>>15,d^=d<<4,d^=d>>>13,m>=0&&(g=g+1640531527|0,p=y[m&127]^=d+g,v=p==0?v+1:0);for(v>=128&&(y[(f&&f.length||0)&127]=-1),v=127,m=4*128;m>0;--m)d=y[v+34&127],p=y[v=v+1&127],d^=d<<13,p^=p<<17,d^=d>>>15,p^=p>>>12,y[v]=d^p;c.w=g,c.X=y,c.i=v}l(u,s)}function i(s,u){return u.i=s.i,u.w=s.w,u.X=s.X.slice(),u}function o(s,u){s==null&&(s=+new Date);var l=new a(s),c=u&&u.state,f=function(){return(l.next()>>>0)/4294967296};return f.double=function(){do var p=l.next()>>>11,d=(l.next()>>>0)/4294967296,v=(p+d)/(1<<21);while(v===0);return v},f.int32=l.next,f.quick=f,c&&(c.X&&i(c,l),f.state=function(){return i(l,{})}),f}t&&t.exports?t.exports=o:this.xor4096=o})(ye.commonjsGlobal,e)})(Vf);var Nre=Vf.exports,Gf={exports:{}};Gf.exports;(function(e){(function(r,t,n){function a(s){var u=this,l="";u.next=function(){var f=u.b,p=u.c,d=u.d,v=u.a;return f=f<<25^f>>>7^p,p=p-d|0,d=d<<24^d>>>8^v,v=v-f|0,u.b=f=f<<20^f>>>12^p,u.c=p=p-d|0,u.d=d<<16^p>>>16^v,u.a=v-f|0},u.a=0,u.b=0,u.c=-1640531527,u.d=1367130551,s===Math.floor(s)?(u.a=s/4294967296|0,u.b=s|0):l+=s;for(var c=0;c<l.length+20;c++)u.b^=l.charCodeAt(c)|0,u.next()}function i(s,u){return u.a=s.a,u.b=s.b,u.c=s.c,u.d=s.d,u}function o(s,u){var l=new a(s),c=u&&u.state,f=function(){return(l.next()>>>0)/4294967296};return f.double=function(){do var p=l.next()>>>11,d=(l.next()>>>0)/4294967296,v=(p+d)/(1<<21);while(v===0);return v},f.int32=l.next,f.quick=f,c&&(typeof c=="object"&&i(c,l),f.state=function(){return i(l,{})}),f}t&&t.exports?t.exports=o:this.tychei=o})(ye.commonjsGlobal,e)})(Gf);var Mre=Gf.exports,yx={exports:{}};const Tre={},Ore=Object.freeze(Object.defineProperty({__proto__:null,default:Tre},Symbol.toStringTag,{value:"Module"})),_re=ye.getAugmentedNamespace(Ore);(function(e){(function(r,t,n){var a=256,i=6,o=52,s="random",u=n.pow(a,i),l=n.pow(2,o),c=l*2,f=a-1,p;function d(w,x,b){var D=[];x=x==!0?{entropy:!0}:x||{};var A=y(g(x.entropy?[w,h(t)]:w??E(),3),D),S=new v(D),C=function(){for(var N=S.g(i),$=u,B=0;N<l;)N=(N+B)*a,$*=a,B=S.g(1);for(;N>=c;)N/=2,$/=2,B>>>=1;return(N+B)/$};return C.int32=function(){return S.g(4)|0},C.quick=function(){return S.g(4)/4294967296},C.double=C,y(h(S.S),t),(x.pass||b||function(N,$,B,P){return P&&(P.S&&m(P,S),N.state=function(){return m(S,{})}),B?(n[s]=N,$):N})(C,A,"global"in x?x.global:this==n,x.state)}function v(w){var x,b=w.length,D=this,A=0,S=D.i=D.j=0,C=D.S=[];for(b||(w=[b++]);A<a;)C[A]=A++;for(A=0;A<a;A++)C[A]=C[S=f&S+w[A%b]+(x=C[A])],C[S]=x;(D.g=function(N){for(var $,B=0,P=D.i,R=D.j,O=D.S;N--;)$=O[P=f&P+1],B=B*a+O[f&(O[P]=O[R=f&R+$])+(O[R]=$)];return D.i=P,D.j=R,B})(a)}function m(w,x){return x.i=w.i,x.j=w.j,x.S=w.S.slice(),x}function g(w,x){var b=[],D=typeof w,A;if(x&&D=="object")for(A in w)try{b.push(g(w[A],x-1))}catch{}return b.length?b:D=="string"?w:w+"\0"}function y(w,x){for(var b=w+"",D,A=0;A<b.length;)x[f&A]=f&(D^=x[f&A]*19)+b.charCodeAt(A++);return h(x)}function E(){try{var w;return p&&(w=p.randomBytes)?w=w(a):(w=new Uint8Array(a),(r.crypto||r.msCrypto).getRandomValues(w)),h(w)}catch{var x=r.navigator,b=x&&x.plugins;return[+new Date,r,b,r.screen,h(t)]}}function h(w){return String.fromCharCode.apply(0,w)}if(y(n.random(),t),e.exports){e.exports=d;try{p=_re}catch{}}else n["seed"+s]=d})(typeof self<"u"?self:ye.commonjsGlobal,[],Math)})(yx);var $re=yx.exports,Fre=Sre,Bre=Are,Rre=Dre,Pre=Cre,zre=Nre,Ire=Mre,ha=$re;ha.alea=Fre;ha.xor128=Bre;ha.xorwow=Rre;ha.xorshift7=Pre;ha.xor4096=zre;ha.tychei=Ire;var Lre=ha;const bx=ye.getDefaultExportFromCjs(Lre);var qre=bx(Date.now());function ui(e){var r;function t(a){r=a===null?qre:bx(String(a))}t(e);function n(){return r()}return n}var $1="pickRandom",kre=["typed","config","?on"],Ure=L($1,kre,e=>{var{typed:r,config:t,on:n}=e,a=ui(t.randomSeed);return n&&n("config",function(o,s){o.randomSeed!==s.randomSeed&&(a=ui(o.randomSeed))}),r($1,{"Array | Matrix":function(s){return i(s,{})},"Array | Matrix, Object":function(s,u){return i(s,u)},"Array | Matrix, number":function(s,u){return i(s,{number:u})},"Array | Matrix, Array | Matrix":function(s,u){return i(s,{weights:u})},"Array | Matrix, Array | Matrix, number":function(s,u,l){return i(s,{number:l,weights:u})},"Array | Matrix, number, Array | Matrix":function(s,u,l){return i(s,{number:u,weights:l})}});function i(o,s){var{number:u,weights:l,elementWise:c=!0}=s,f=typeof u>"u";f&&(u=1);var p=Ue(o)?o.create:Ue(l)?l.create:null;o=o.valueOf(),l&&(l=l.valueOf()),c===!0&&(o=mr(o),l=mr(l));var d=0;if(typeof l<"u"){if(l.length!==o.length)throw new Error("Weights must have the same length as possibles");for(var v=0,m=l.length;v<m;v++){if(!Je(l[v])||l[v]<0)throw new Error("Weights must be an array of positive numbers");d+=l[v]}}for(var g=o.length,y=[],E;y.length<u;){if(typeof l>"u")E=o[Math.floor(a()*g)];else for(var h=a()*d,w=0,x=o.length;w<x;w++)if(h-=l[w],h<0){E=o[w];break}y.push(E)}return f?y[0]:p?p(y):y}});function Wf(e,r){var t=[];if(e=e.slice(0),e.length>1)for(var n=0,a=e.shift();n<a;n++)t.push(Wf(e,r));else for(var i=0,o=e.shift();i<o;i++)t.push(r());return t}var F1="random",Hre=["typed","config","?on"],jre=L(F1,Hre,e=>{var{typed:r,config:t,on:n}=e,a=ui(t.randomSeed);return n&&n("config",function(s,u){s.randomSeed!==u.randomSeed&&(a=ui(s.randomSeed))}),r(F1,{"":()=>o(0,1),number:s=>o(0,s),"number, number":(s,u)=>o(s,u),"Array | Matrix":s=>i(s,0,1),"Array | Matrix, number":(s,u)=>i(s,0,u),"Array | Matrix, number, number":(s,u,l)=>i(s,u,l)});function i(s,u,l){var c=Wf(s.valueOf(),()=>o(u,l));return Ue(s)?s.create(c):c}function o(s,u){return s+a()*(u-s)}}),B1="randomInt",Vre=["typed","config","?on"],Gre=L(B1,Vre,e=>{var{typed:r,config:t,on:n}=e,a=ui(t.randomSeed);return n&&n("config",function(s,u){s.randomSeed!==u.randomSeed&&(a=ui(s.randomSeed))}),r(B1,{"":()=>o(0,1),number:s=>o(0,s),"number, number":(s,u)=>o(s,u),"Array | Matrix":s=>i(s,0,1),"Array | Matrix, number":(s,u)=>i(s,0,u),"Array | Matrix, number, number":(s,u,l)=>i(s,u,l)});function i(s,u,l){var c=Wf(s.valueOf(),()=>o(u,l));return Ue(s)?s.create(c):c}function o(s,u){return Math.floor(s+a()*(u-s))}}),R1="stirlingS2",Wre=["typed","addScalar","subtractScalar","multiplyScalar","divideScalar","pow","factorial","combinations","isNegative","isInteger","number","?bignumber","larger"],Zre=L(R1,Wre,e=>{var{typed:r,addScalar:t,subtractScalar:n,multiplyScalar:a,divideScalar:i,pow:o,factorial:s,combinations:u,isNegative:l,isInteger:c,number:f,bignumber:p,larger:d}=e,v=[],m=[];return r(R1,{"number | BigNumber, number | BigNumber":function(y,E){if(!c(y)||l(y)||!c(E)||l(E))throw new TypeError("Non-negative integer value expected in function stirlingS2");if(d(E,y))throw new TypeError("k must be less than or equal to n in function stirlingS2");var h=!(Je(y)&&Je(E)),w=h?m:v,x=h?p:f,b=f(y),D=f(E);if(w[b]&&w[b].length>D)return w[b][D];for(var A=0;A<=b;++A)if(w[A]||(w[A]=[x(A===0?1:0)]),A!==0)for(var S=w[A],C=w[A-1],N=S.length;N<=A&&N<=D;++N)N===A?S[N]=1:S[N]=t(a(x(N),C[N]),C[N-1]);return w[b][D]}})}),P1="bellNumbers",Yre=["typed","addScalar","isNegative","isInteger","stirlingS2"],Xre=L(P1,Yre,e=>{var{typed:r,addScalar:t,isNegative:n,isInteger:a,stirlingS2:i}=e;return r(P1,{"number | BigNumber":function(s){if(!a(s)||n(s))throw new TypeError("Non-negative integer value expected in function bellNumbers");for(var u=0,l=0;l<=s;l++)u=t(u,i(s,l));return u}})}),z1="catalan",Kre=["typed","addScalar","divideScalar","multiplyScalar","combinations","isNegative","isInteger"],Jre=L(z1,Kre,e=>{var{typed:r,addScalar:t,divideScalar:n,multiplyScalar:a,combinations:i,isNegative:o,isInteger:s}=e;return r(z1,{"number | BigNumber":function(l){if(!s(l)||o(l))throw new TypeError("Non-negative integer value expected in function catalan");return n(i(a(l,2),l),t(l,1))}})}),I1="composition",Qre=["typed","addScalar","combinations","isNegative","isPositive","isInteger","larger"],ete=L(I1,Qre,e=>{var{typed:r,addScalar:t,combinations:n,isPositive:a,isNegative:i,isInteger:o,larger:s}=e;return r(I1,{"number | BigNumber, number | BigNumber":function(l,c){if(!o(l)||!a(l)||!o(c)||!a(c))throw new TypeError("Positive integer value expected in function composition");if(s(c,l))throw new TypeError("k must be less than or equal to n in function composition");return n(t(l,-1),t(c,-1))}})}),L1="leafCount",rte=["parse","typed"],tte=L(L1,rte,e=>{var{parse:r,typed:t}=e;function n(a){var i=0;return a.forEach(o=>{i+=n(o)}),i||1}return t(L1,{Node:function(i){return n(i)}})});function q1(e){return cr(e)||kr(e)&&e.isUnary()&&cr(e.args[0])}function Ys(e){return!!(cr(e)||(qn(e)||kr(e))&&e.args.every(Ys)||En(e)&&Ys(e.content))}function k1(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,n)}return t}function Sl(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?k1(Object(t),!0).forEach(function(n){jr(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):k1(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}var nte="simplifyUtil",ate=["FunctionNode","OperatorNode","SymbolNode"],Zf=L(nte,ate,e=>{var{FunctionNode:r,OperatorNode:t,SymbolNode:n}=e,a=!0,i=!1,o="defaultF",s={add:{trivial:a,total:a,commutative:a,associative:a},unaryPlus:{trivial:a,total:a,commutative:a,associative:a},subtract:{trivial:i,total:a,commutative:i,associative:i},multiply:{trivial:a,total:a,commutative:a,associative:a},divide:{trivial:i,total:a,commutative:i,associative:i},paren:{trivial:a,total:a,commutative:a,associative:i},defaultF:{trivial:i,total:a,commutative:i,associative:i}},u={divide:{total:i},log:{total:i}},l={subtract:{total:i},abs:{trivial:a},log:{total:a}};function c(h,w){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:s,b=o;if(typeof h=="string"?b=h:kr(h)?b=h.fn.toString():qn(h)?b=h.name:En(h)&&(b="paren"),Re(x,b)){var D=x[b];if(Re(D,w))return D[w];if(Re(s,b))return s[b][w]}if(Re(x,o)){var A=x[o];return Re(A,w)?A[w]:s[o][w]}if(Re(s,b)){var S=s[b];if(Re(S,w))return S[w]}return s[o][w]}function f(h){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s;return c(h,"commutative",w)}function p(h){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s;return c(h,"associative",w)}function d(h,w){var x=Sl({},h);for(var b in w)Re(h,b)?x[b]=Sl(Sl({},w[b]),h[b]):x[b]=w[b];return x}function v(h,w){if(!h.args||h.args.length===0)return h;h.args=m(h,w);for(var x=0;x<h.args.length;x++)v(h.args[x],w)}function m(h,w){var x,b=[],D=function A(S){for(var C=0;C<S.args.length;C++){var N=S.args[C];kr(N)&&x===N.op?A(N):b.push(N)}};return p(h,w)?(x=h.op,D(h),b):h.args}function g(h,w){if(!(!h.args||h.args.length===0)){for(var x=E(h),b=h.args.length,D=0;D<b;D++)g(h.args[D],w);if(b>2&&p(h,w)){for(var A=h.args.pop();h.args.length>0;)A=x([h.args.pop(),A]);h.args=A.args}}}function y(h,w){if(!(!h.args||h.args.length===0)){for(var x=E(h),b=h.args.length,D=0;D<b;D++)y(h.args[D],w);if(b>2&&p(h,w)){for(var A=h.args.shift();h.args.length>0;)A=x([A,h.args.shift()]);h.args=A.args}}}function E(h){return kr(h)?function(w){try{return new t(h.op,h.fn,w,h.implicit)}catch(x){return console.error(x),[]}}:function(w){return new r(new n(h.name),w)}}return{createMakeNodeFunction:E,hasProperty:c,isCommutative:f,isAssociative:p,mergeContext:d,flatten:v,allChildren:m,unflattenr:g,unflattenl:y,defaultContext:s,realContext:u,positiveContext:l}}),ite="simplify",ote=["config","typed","parse","add","subtract","multiply","divide","pow","isZero","equal","resolve","simplifyConstant","simplifyCore","?fraction","?bignumber","mathWithTransform","matrix","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","ParenthesisNode","SymbolNode"],ste=L(ite,ote,e=>{var{config:r,typed:t,parse:n,add:a,subtract:i,multiply:o,divide:s,pow:u,isZero:l,equal:c,resolve:f,simplifyConstant:p,simplifyCore:d,fraction:v,bignumber:m,mathWithTransform:g,matrix:y,AccessorNode:E,ArrayNode:h,ConstantNode:w,FunctionNode:x,IndexNode:b,ObjectNode:D,OperatorNode:A,ParenthesisNode:S,SymbolNode:C}=e,{hasProperty:N,isCommutative:$,isAssociative:B,mergeContext:P,flatten:R,unflattenr:O,unflattenl:T,createMakeNodeFunction:U,defaultContext:F,realContext:q,positiveContext:Y}=Zf({FunctionNode:x,OperatorNode:A,SymbolNode:C});t.addConversion({from:"Object",to:"Map",convert:Qa});var V=t("simplify",{Node:te,"Node, Map":(j,K)=>te(j,!1,K),"Node, Map, Object":(j,K,oe)=>te(j,!1,K,oe),"Node, Array":te,"Node, Array, Map":te,"Node, Array, Map, Object":te});t.removeConversion({from:"Object",to:"Map",convert:Qa}),V.defaultContext=F,V.realContext=q,V.positiveContext=Y;function z(j){return j.transform(function(K,oe,he){return En(K)?z(K.content):K})}var J={true:!0,false:!0,e:!0,i:!0,Infinity:!0,LN2:!0,LN10:!0,LOG2E:!0,LOG10E:!0,NaN:!0,phi:!0,pi:!0,SQRT1_2:!0,SQRT2:!0,tau:!0};V.rules=[d,{l:"log(e)",r:"1"},{s:"n-n1 -> n+-n1",assuming:{subtract:{total:!0}}},{s:"n-n -> 0",assuming:{subtract:{total:!1}}},{s:"-(cl*v) -> v * (-cl)",assuming:{multiply:{commutative:!0},subtract:{total:!0}}},{s:"-(cl*v) -> (-cl) * v",assuming:{multiply:{commutative:!1},subtract:{total:!0}}},{s:"-(v*cl) -> v * (-cl)",assuming:{multiply:{commutative:!1},subtract:{total:!0}}},{l:"-(n1/n2)",r:"-n1/n2"},{l:"-v",r:"v * (-1)"},{l:"(n1 + n2)*(-1)",r:"n1*(-1) + n2*(-1)",repeat:!0},{l:"n/n1^n2",r:"n*n1^-n2"},{l:"n/n1",r:"n*n1^-1"},{s:"(n1*n2)^n3 -> n1^n3 * n2^n3",assuming:{multiply:{commutative:!0}}},{s:"(n1*n2)^(-1) -> n2^(-1) * n1^(-1)",assuming:{multiply:{commutative:!1}}},{s:"(n ^ n1) ^ n2 -> n ^ (n1 * n2)",assuming:{divide:{total:!0}}},{l:" vd * ( vd * n1 + n2)",r:"vd^2 * n1 + vd * n2"},{s:" vd * (vd^n4 * n1 + n2) -> vd^(1+n4) * n1 + vd * n2",assuming:{divide:{total:!0}}},{s:"vd^n3 * ( vd * n1 + n2) -> vd^(n3+1) * n1 + vd^n3 * n2",assuming:{divide:{total:!0}}},{s:"vd^n3 * (vd^n4 * n1 + n2) -> vd^(n3+n4) * n1 + vd^n3 * n2",assuming:{divide:{total:!0}}},{l:"n*n",r:"n^2"},{s:"n * n^n1 -> n^(n1+1)",assuming:{divide:{total:!0}}},{s:"n^n1 * n^n2 -> n^(n1+n2)",assuming:{divide:{total:!0}}},p,{s:"n+n -> 2*n",assuming:{add:{total:!0}}},{l:"n+-n",r:"0"},{l:"vd*n + vd",r:"vd*(n+1)"},{l:"n3*n1 + n3*n2",r:"n3*(n1+n2)"},{l:"n3^(-n4)*n1 + n3 * n2",r:"n3^(-n4)*(n1 + n3^(n4+1) *n2)"},{l:"n3^(-n4)*n1 + n3^n5 * n2",r:"n3^(-n4)*(n1 + n3^(n4+n5)*n2)"},{s:"n*vd + vd -> (n+1)*vd",assuming:{multiply:{commutative:!1}}},{s:"vd + n*vd -> (1+n)*vd",assuming:{multiply:{commutative:!1}}},{s:"n1*n3 + n2*n3 -> (n1+n2)*n3",assuming:{multiply:{commutative:!1}}},{s:"n^n1 * n -> n^(n1+1)",assuming:{divide:{total:!0},multiply:{commutative:!1}}},{s:"n1*n3^(-n4) + n2 * n3 -> (n1 + n2*n3^(n4 + 1))*n3^(-n4)",assuming:{multiply:{commutative:!1}}},{s:"n1*n3^(-n4) + n2 * n3^n5 -> (n1 + n2*n3^(n4 + n5))*n3^(-n4)",assuming:{multiply:{commutative:!1}}},{l:"n*cd + cd",r:"(n+1)*cd"},{s:"cd*n + cd -> cd*(n+1)",assuming:{multiply:{commutative:!1}}},{s:"cd + cd*n -> cd*(1+n)",assuming:{multiply:{commutative:!1}}},p,{s:"(-n)*n1 -> -(n*n1)",assuming:{subtract:{total:!0}}},{s:"n1*(-n) -> -(n1*n)",assuming:{subtract:{total:!0},multiply:{commutative:!1}}},{s:"ce+ve -> ve+ce",assuming:{add:{commutative:!0}},imposeContext:{add:{commutative:!1}}},{s:"vd*cd -> cd*vd",assuming:{multiply:{commutative:!0}},imposeContext:{multiply:{commutative:!1}}},{l:"n+-n1",r:"n-n1"},{l:"n+-(n1)",r:"n-(n1)"},{s:"n*(n1^-1) -> n/n1",assuming:{multiply:{commutative:!0}}},{s:"n*n1^-n2 -> n/n1^n2",assuming:{multiply:{commutative:!0}}},{s:"n^-1 -> 1/n",assuming:{multiply:{commutative:!0}}},{l:"n^1",r:"n"},{s:"n*(n1/n2) -> (n*n1)/n2",assuming:{multiply:{associative:!0}}},{s:"n-(n1+n2) -> n-n1-n2",assuming:{addition:{associative:!0,commutative:!0}}},{l:"1*n",r:"n",imposeContext:{multiply:{commutative:!0}}},{s:"n1/(n2/n3) -> (n1*n3)/n2",assuming:{multiply:{associative:!0}}},{l:"n1/(-n2)",r:"-n1/n2"}];function le(j,K){var oe={};if(j.s){var he=j.s.split("->");if(he.length===2)oe.l=he[0],oe.r=he[1];else throw SyntaxError("Could not parse rule: "+j.s)}else oe.l=j.l,oe.r=j.r;oe.l=z(n(oe.l)),oe.r=z(n(oe.r));for(var me of["imposeContext","repeat","assuming"])me in j&&(oe[me]=j[me]);if(j.evaluate&&(oe.evaluate=n(j.evaluate)),B(oe.l,K)){var I=!$(oe.l,K),H;I&&(H=se());var ie=U(oe.l),ce=se();oe.expanded={},oe.expanded.l=ie([oe.l,ce]),R(oe.expanded.l,K),O(oe.expanded.l,K),oe.expanded.r=ie([oe.r,ce]),I&&(oe.expandedNC1={},oe.expandedNC1.l=ie([H,oe.l]),oe.expandedNC1.r=ie([H,oe.r]),oe.expandedNC2={},oe.expandedNC2.l=ie([H,oe.expanded.l]),oe.expandedNC2.r=ie([H,oe.expanded.r]))}return oe}function Q(j,K){for(var oe=[],he=0;he<j.length;he++){var me=j[he],I=void 0,H=typeof me;switch(H){case"string":me={s:me};case"object":I=le(me,K);break;case"function":I=me;break;default:throw TypeError("Unsupported type of rule: "+H)}oe.push(I)}return oe}var re=0;function se(){return new C("_p"+re++)}function te(j,K){var oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:io(),he=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},me=he.consoleDebug;K=Q(K||V.rules,he.context);var I=f(j,oe);I=z(I);for(var H={},ie=I.toString({parenthesis:"all"});!H[ie];){H[ie]=!0,re=0;var ce=ie;me&&console.log("Working on: ",ie);for(var de=0;de<K.length;de++){var ve="";if(typeof K[de]=="function"?(I=K[de](I,he),me&&(ve=K[de].name)):(R(I,he.context),I=fe(I,K[de],he.context),me&&(ve="".concat(K[de].l.toString()," -> ").concat(K[de].r.toString()))),me){var Se=I.toString({parenthesis:"all"});Se!==ce&&(console.log("Applying",ve,"produced",Se),ce=Se)}T(I,he.context)}ie=I.toString({parenthesis:"all"})}return I}function ae(j,K,oe){var he=j;if(j)for(var me=0;me<j.length;++me){var I=fe(j[me],K,oe);I!==j[me]&&(he===j&&(he=j.slice()),he[me]=I)}return he}function fe(j,K,oe){if(K.assuming){for(var he in K.assuming)for(var me in K.assuming[he])if(N(he,me,oe)!==K.assuming[he][me])return j}var I=P(K.imposeContext,oe),H=j;if(H instanceof A||H instanceof x){var ie=ae(H.args,K,oe);ie!==H.args&&(H=H.clone(),H.args=ie)}else if(H instanceof S){if(H.content){var ce=fe(H.content,K,oe);ce!==H.content&&(H=new S(ce))}}else if(H instanceof h){var de=ae(H.items,K,oe);de!==H.items&&(H=new h(de))}else if(H instanceof E){var ve=H.object;H.object&&(ve=fe(H.object,K,oe));var Se=H.index;H.index&&(Se=fe(H.index,K,oe)),(ve!==H.object||Se!==H.index)&&(H=new E(ve,Se))}else if(H instanceof b){var we=ae(H.dimensions,K,oe);we!==H.dimensions&&(H=new b(we))}else if(H instanceof D){var Me=!1,De={};for(var ir in H.properties)De[ir]=fe(H.properties[ir],K,oe),De[ir]!==H.properties[ir]&&(Me=!0);Me&&(H=new D(De))}var or=K.r,Le=W(K.l,H,I)[0];if(!Le&&K.expanded&&(or=K.expanded.r,Le=W(K.expanded.l,H,I)[0]),!Le&&K.expandedNC1&&(or=K.expandedNC1.r,Le=W(K.expandedNC1.l,H,I)[0],Le||(or=K.expandedNC2.r,Le=W(K.expandedNC2.l,H,I)[0])),Le){var _r=H.implicit;H=or.clone(),_r&&"implicit"in or&&(H.implicit=!0),H=H.transform(function(M){return M.isSymbolNode&&Re(Le.placeholders,M.name)?Le.placeholders[M.name].clone():M})}return K.repeat&&H!==j&&(H=fe(H,K,oe)),H}function ne(j,K){var oe=[],he,me,I=U(j);if($(j,K))for(var H=0;H<j.args.length;H++)me=j.args.slice(0),me.splice(H,1),he=me.length===1?me[0]:I(me),oe.push(I([j.args[H],he]));else for(var ie=1;ie<j.args.length;ie++){var ce=j.args[0];ie>1&&(ce=I(j.args.slice(0,ie))),me=j.args.slice(ie),he=me.length===1?me[0]:I(me),oe.push(I([ce,he]))}return oe}function be(j,K){var oe={placeholders:{}};if(!j.placeholders&&!K.placeholders)return oe;if(j.placeholders){if(!K.placeholders)return j}else return K;for(var he in j.placeholders)if(Re(j.placeholders,he)&&(oe.placeholders[he]=j.placeholders[he],Re(K.placeholders,he)&&!ue(j.placeholders[he],K.placeholders[he])))return null;for(var me in K.placeholders)Re(K.placeholders,me)&&(oe.placeholders[me]=K.placeholders[me]);return oe}function $e(j,K){var oe=[];if(j.length===0||K.length===0)return oe;for(var he,me=0;me<j.length;me++)for(var I=0;I<K.length;I++)he=be(j[me],K[I]),he&&oe.push(he);return oe}function k(j){if(j.length===0)return j;for(var K=j.reduce($e),oe=[],he={},me=0;me<K.length;me++){var I=JSON.stringify(K[me]);he[I]||(he[I]=!0,oe.push(K[me]))}return oe}function W(j,K,oe,he){var me=[{placeholders:{}}];if(j instanceof A&&K instanceof A||j instanceof x&&K instanceof x){if(j instanceof A){if(j.op!==K.op||j.fn!==K.fn)return[]}else if(j instanceof x&&j.name!==K.name)return[];if(K.args.length===1&&j.args.length===1||!B(K,oe)&&K.args.length===j.args.length||he){for(var I=[],H=0;H<j.args.length;H++){var ie=W(j.args[H],K.args[H],oe);if(ie.length===0)break;I.push(ie)}if(I.length!==j.args.length){if(!$(K,oe)||j.args.length===1)return[];if(j.args.length>2)throw new Error("permuting >2 commutative non-associative rule arguments not yet implemented");var ce=W(j.args[0],K.args[1],oe);if(ce.length===0)return[];var de=W(j.args[1],K.args[0],oe);if(de.length===0)return[];I=[ce,de]}me=k(I)}else if(K.args.length>=2&&j.args.length===2){for(var ve=ne(K,oe),Se=[],we=0;we<ve.length;we++){var Me=W(j,ve[we],oe,!0);Se=Se.concat(Me)}return Se}else{if(j.args.length>2)throw Error("Unexpected non-binary associative function: "+j.toString());return[]}}else if(j instanceof C){if(j.name.length===0)throw new Error("Symbol in rule has 0 length...!?");if(J[j.name]){if(j.name!==K.name)return[]}else switch(j.name[1]>="a"&&j.name[1]<="z"?j.name.substring(0,2):j.name[0]){case"n":case"_p":me[0].placeholders[j.name]=K;break;case"c":case"cl":if(cr(K))me[0].placeholders[j.name]=K;else return[];break;case"v":if(!cr(K))me[0].placeholders[j.name]=K;else return[];break;case"vl":if(Zr(K))me[0].placeholders[j.name]=K;else return[];break;case"cd":if(q1(K))me[0].placeholders[j.name]=K;else return[];break;case"vd":if(!q1(K))me[0].placeholders[j.name]=K;else return[];break;case"ce":if(Ys(K))me[0].placeholders[j.name]=K;else return[];break;case"ve":if(!Ys(K))me[0].placeholders[j.name]=K;else return[];break;default:throw new Error("Invalid symbol in rule: "+j.name)}}else if(j instanceof w){if(!c(j.value,K.value))return[]}else return[];return me}function ue(j,K){if(j instanceof w&&K instanceof w){if(!c(j.value,K.value))return!1}else if(j instanceof C&&K instanceof C){if(j.name!==K.name)return!1}else if(j instanceof A&&K instanceof A||j instanceof x&&K instanceof x){if(j instanceof A){if(j.op!==K.op||j.fn!==K.fn)return!1}else if(j instanceof x&&j.name!==K.name)return!1;if(j.args.length!==K.args.length)return!1;for(var oe=0;oe<j.args.length;oe++)if(!ue(j.args[oe],K.args[oe]))return!1}else return!1;return!0}return V}),ute="simplifyConstant",lte=["typed","config","mathWithTransform","matrix","?fraction","?bignumber","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","SymbolNode"],cte=L(ute,lte,e=>{var{typed:r,config:t,mathWithTransform:n,matrix:a,fraction:i,bignumber:o,AccessorNode:s,ArrayNode:u,ConstantNode:l,FunctionNode:c,IndexNode:f,ObjectNode:p,OperatorNode:d,SymbolNode:v}=e,{isCommutative:m,isAssociative:g,allChildren:y,createMakeNodeFunction:E}=Zf({FunctionNode:c,OperatorNode:d,SymbolNode:v}),h=r("simplifyConstant",{Node:R=>D(P(R,{})),"Node, Object":function(O,T){return D(P(O,T))}});function w(R){return So(R)?R.valueOf():R instanceof Array?R.map(w):Ue(R)?a(w(R.valueOf())):R}function x(R,O,T){try{return n[R].apply(null,O)}catch{return O=O.map(w),S(n[R].apply(null,O),T)}}var b=r({Fraction:N,number:function(O){return O<0?C(new l(-O)):new l(O)},BigNumber:function(O){return O<0?C(new l(-O)):new l(O)},bigint:function(O){return O<0n?C(new l(-O)):new l(O)},Complex:function(O){throw new Error("Cannot convert Complex number to Node")},string:function(O){return new l(O)},Matrix:function(O){return new u(O.valueOf().map(T=>b(T)))}});function D(R){return Er(R)?R:b(R)}function A(R,O){var T=O&&O.exactFractions!==!1;if(T&&isFinite(R)&&i){var U=i(R),F=O&&typeof O.fractionsLimit=="number"?O.fractionsLimit:1/0;if(U.valueOf()===R&&U.n<F&&U.d<F)return U}return R}var S=r({"string, Object":function(O,T){var U=jn(O,t);if(U==="BigNumber")return o===void 0&&zf(),o(O);if(U==="bigint")return BigInt(O);if(U==="Fraction")return i===void 0&&Kb(),i(O);var F=parseFloat(O);return A(F,T)},"Fraction, Object":function(O,T){return O},"BigNumber, Object":function(O,T){return O},"number, Object":function(O,T){return A(O,T)},"bigint, Object":function(O,T){return O},"Complex, Object":function(O,T){return O.im!==0?O:A(O.re,T)},"Matrix, Object":function(O,T){return a(A(O.valueOf()))},"Array, Object":function(O,T){return O.map(A)}});function C(R){return new d("-","unaryMinus",[R])}function N(R){var O,T=R.s*R.n;return T<0?O=new d("-","unaryMinus",[new l(-T)]):O=new l(T),R.d===1?O:new d("/","divide",[O,new l(R.d)])}function $(R,O,T){if(!Ai(O))return new s(D(R),D(O));if(Bt(R)||Ue(R)){for(var U=Array.from(O.dimensions);U.length>0;)if(cr(U[0])&&typeof U[0].value!="string"){var F=S(U.shift().value,T);Bt(R)?R=R.items[F-1]:(R=R.valueOf()[F-1],R instanceof Array&&(R=a(R)))}else if(U.length>1&&cr(U[1])&&typeof U[1].value!="string"){var q=S(U[1].value,T),Y=[],V=Bt(R)?R.items:R.valueOf();for(var z of V)if(Bt(z))Y.push(z.items[q-1]);else if(Ue(R))Y.push(z[q-1]);else break;if(Y.length===V.length)Bt(R)?R=new u(Y):R=a(Y),U.splice(1,1);else break}else break;return U.length===O.dimensions.length?new s(D(R),O):U.length>0?(O=new f(U),new s(D(R),O)):R}if(wu(R)&&O.dimensions.length===1&&cr(O.dimensions[0])){var J=O.dimensions[0].value;return J in R.properties?R.properties[J]:new l}return new s(D(R),O)}function B(R,O,T,U){var F=O.shift(),q=O.reduce((Y,V)=>{if(!Er(V)){var z=Y.pop();if(Er(z))return[z,V];try{return Y.push(x(R,[z,V],U)),Y}catch{Y.push(z)}}Y.push(D(Y.pop()));var J=Y.length===1?Y[0]:T(Y);return[T([J,D(V)])]},[F]);return q.length===1?q[0]:T([q[0],b(q[1])])}function P(R,O){switch(R.type){case"SymbolNode":return R;case"ConstantNode":switch(typeof R.value){case"number":return S(R.value,O);case"bigint":return S(R.value,O);case"string":return R.value;default:if(!isNaN(R.value))return S(R.value,O)}return R;case"FunctionNode":if(n[R.name]&&n[R.name].rawArgs)return R;{var T=["add","multiply"];if(!T.includes(R.name)){var U=R.args.map(fe=>P(fe,O));if(!U.some(Er))try{return x(R.name,U,O)}catch{}if(R.name==="size"&&U.length===1&&Bt(U[0])){for(var F=[],q=U[0];Bt(q);)F.push(q.items.length),q=q.items[0];return a(F)}return new c(R.name,U.map(D))}}case"OperatorNode":{var Y=R.fn.toString(),V,z,J=E(R);if(kr(R)&&R.isUnary())V=[P(R.args[0],O)],Er(V[0])?z=J(V):z=x(Y,V,O);else if(g(R,O.context))if(V=y(R,O.context),V=V.map(fe=>P(fe,O)),m(Y,O.context)){for(var le=[],Q=[],re=0;re<V.length;re++)Er(V[re])?Q.push(V[re]):le.push(V[re]);le.length>1?(z=B(Y,le,J,O),Q.unshift(z),z=B(Y,Q,J,O)):z=B(Y,V,J,O)}else z=B(Y,V,J,O);else V=R.args.map(fe=>P(fe,O)),z=B(Y,V,J,O);return z}case"ParenthesisNode":return P(R.content,O);case"AccessorNode":return $(P(R.object,O),P(R.index,O),O);case"ArrayNode":{var se=R.items.map(fe=>P(fe,O));return se.some(Er)?new u(se.map(D)):a(se)}case"IndexNode":return new f(R.dimensions.map(fe=>h(fe,O)));case"ObjectNode":{var te={};for(var ae in R.properties)te[ae]=h(R.properties[ae],O);return new p(te)}case"AssignmentNode":case"BlockNode":case"FunctionAssignmentNode":case"RangeNode":case"ConditionalNode":default:throw new Error("Unimplemented node type in simplifyConstant: ".concat(R.type))}}return h}),U1="simplifyCore",fte=["typed","parse","equal","isZero","add","subtract","multiply","divide","pow","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","ParenthesisNode","SymbolNode"],pte=L(U1,fte,e=>{var{typed:r,parse:t,equal:n,isZero:a,add:i,subtract:o,multiply:s,divide:u,pow:l,AccessorNode:c,ArrayNode:f,ConstantNode:p,FunctionNode:d,IndexNode:v,ObjectNode:m,OperatorNode:g,ParenthesisNode:y,SymbolNode:E}=e,h=new p(0),w=new p(1),x=new p(!0),b=new p(!1);function D(N){return kr(N)&&["and","not","or"].includes(N.op)}var{hasProperty:A,isCommutative:S}=Zf({FunctionNode:d,OperatorNode:g,SymbolNode:E});function C(N){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=$?$.context:void 0;if(A(N,"trivial",B)){if(qn(N)&&N.args.length===1)return C(N.args[0],$);var P=!1,R=0;if(N.forEach(Q=>{++R,R===1&&(P=C(Q,$))}),R===1)return P}var O=N;if(qn(O)){var T=vZ(O.name);if(T){if(O.args.length>2&&A(O,"associative",B))for(;O.args.length>2;){var U=O.args.pop(),F=O.args.pop();O.args.push(new g(T,O.name,[U,F]))}O=new g(T,O.name,O.args)}else return new d(C(O.fn),O.args.map(Q=>C(Q,$)))}if(kr(O)&&O.isUnary()){var q=C(O.args[0],$);if(O.op==="~"&&kr(q)&&q.isUnary()&&q.op==="~"||O.op==="not"&&kr(q)&&q.isUnary()&&q.op==="not"&&D(q.args[0]))return q.args[0];var Y=!0;if(O.op==="-"&&kr(q)&&(q.isBinary()&&q.fn==="subtract"&&(O=new g("-","subtract",[q.args[1],q.args[0]]),Y=!1),q.isUnary()&&q.op==="-"))return q.args[0];if(Y)return new g(O.op,O.fn,[q])}if(kr(O)&&O.isBinary()){var V=C(O.args[0],$),z=C(O.args[1],$);if(O.op==="+"){if(cr(V)&&a(V.value))return z;if(cr(z)&&a(z.value))return V;kr(z)&&z.isUnary()&&z.op==="-"&&(z=z.args[0],O=new g("-","subtract",[V,z]))}if(O.op==="-")return kr(z)&&z.isUnary()&&z.op==="-"?C(new g("+","add",[V,z.args[0]]),$):cr(V)&&a(V.value)?C(new g("-","unaryMinus",[z])):cr(z)&&a(z.value)?V:new g(O.op,O.fn,[V,z]);if(O.op==="*"){if(cr(V)){if(a(V.value))return h;if(n(V.value,1))return z}if(cr(z)){if(a(z.value))return h;if(n(z.value,1))return V;if(S(O,B))return new g(O.op,O.fn,[z,V],O.implicit)}return new g(O.op,O.fn,[V,z],O.implicit)}if(O.op==="/")return cr(V)&&a(V.value)?h:cr(z)&&n(z.value,1)?V:new g(O.op,O.fn,[V,z]);if(O.op==="^"&&cr(z)){if(a(z.value))return w;if(n(z.value,1))return V}if(O.op==="and"){if(cr(V))if(V.value){if(D(z))return z;if(cr(z))return z.value?x:b}else return b;if(cr(z))if(z.value){if(D(V))return V}else return b}if(O.op==="or"){if(cr(V)){if(V.value)return x;if(D(z))return z}if(cr(z)){if(z.value)return x;if(D(V))return V}}return new g(O.op,O.fn,[V,z])}if(kr(O))return new g(O.op,O.fn,O.args.map(Q=>C(Q,$)));if(Bt(O))return new f(O.items.map(Q=>C(Q,$)));if(ia(O))return new c(C(O.object,$),C(O.index,$));if(Ai(O))return new v(O.dimensions.map(Q=>C(Q,$)));if(wu(O)){var J={};for(var le in O.properties)J[le]=C(O.properties[le],$);return new m(J)}return O}return r(U1,{Node:C,"Node,Object":C})}),dte="resolve",vte=["typed","parse","ConstantNode","FunctionNode","OperatorNode","ParenthesisNode"],mte=L(dte,vte,e=>{var{typed:r,parse:t,ConstantNode:n,FunctionNode:a,OperatorNode:i,ParenthesisNode:o}=e;function s(u,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new Set;if(!l)return u;if(Zr(u)){if(c.has(u.name)){var f=Array.from(c).join(", ");throw new ReferenceError("recursive loop of variable definitions among {".concat(f,"}"))}var p=l.get(u.name);if(Er(p)){var d=new Set(c);return d.add(u.name),s(p,l,d)}else return typeof p=="number"?t(String(p)):p!==void 0?new n(p):u}else if(kr(u)){var v=u.args.map(function(g){return s(g,l,c)});return new i(u.op,u.fn,v,u.implicit)}else{if(En(u))return new o(s(u.content,l,c));if(qn(u)){var m=u.args.map(function(g){return s(g,l,c)});return new a(u.name,m)}}return u.map(g=>s(g,l,c))}return r("resolve",{Node:s,"Node, Map | null | undefined":s,"Node, Object":(u,l)=>s(u,Qa(l)),"Array | Matrix":r.referToSelf(u=>l=>l.map(c=>u(c))),"Array | Matrix, null | undefined":r.referToSelf(u=>l=>l.map(c=>u(c))),"Array, Object":r.referTo("Array,Map",u=>(l,c)=>u(l,Qa(c))),"Matrix, Object":r.referTo("Matrix,Map",u=>(l,c)=>u(l,Qa(c))),"Array | Matrix, Map":r.referToSelf(u=>(l,c)=>l.map(f=>u(f,c)))})}),H1="symbolicEqual",hte=["parse","simplify","typed","OperatorNode"],gte=L(H1,hte,e=>{var{parse:r,simplify:t,typed:n,OperatorNode:a}=e;function i(o,s){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=new a("-","subtract",[o,s]),c=t(l,{},u);return cr(c)&&!c.value}return n(H1,{"Node, Node":i,"Node, Node, Object":i})}),j1="derivative",yte=["typed","config","parse","simplify","equal","isZero","numeric","ConstantNode","FunctionNode","OperatorNode","ParenthesisNode","SymbolNode"],bte=L(j1,yte,e=>{var{typed:r,config:t,parse:n,simplify:a,equal:i,isZero:o,numeric:s,ConstantNode:u,FunctionNode:l,OperatorNode:c,ParenthesisNode:f,SymbolNode:p}=e;function d(h,w){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{simplify:!0},b={};g(b,h,w.name);var D=y(h,b);return x.simplify?a(D):D}r.addConversion({from:"identifier",to:"SymbolNode",convert:n});var v=r(j1,{"Node, SymbolNode":d,"Node, SymbolNode, Object":d});r.removeConversion({from:"identifier",to:"SymbolNode",convert:n}),v._simplify=!0,v.toTex=function(h){return m.apply(null,h.args)};var m=r("_derivTex",{"Node, SymbolNode":function(w,x){return cr(w)&&Cr(w.value)==="string"?m(n(w.value).toString(),x.toString(),1):m(w.toTex(),x.toString(),1)},"Node, ConstantNode":function(w,x){if(Cr(x.value)==="string")return m(w,n(x.value));throw new Error("The second parameter to 'derivative' is a non-string constant")},"Node, SymbolNode, ConstantNode":function(w,x,b){return m(w.toString(),x.name,b.value)},"string, string, number":function(w,x,b){var D;return b===1?D="{d\\over d"+x+"}":D="{d^{"+b+"}\\over d"+x+"^{"+b+"}}",D+"\\left[".concat(w,"\\right]")}}),g=r("constTag",{"Object, ConstantNode, string":function(w,x){return w[x]=!0,!0},"Object, SymbolNode, string":function(w,x,b){return x.name!==b?(w[x]=!0,!0):!1},"Object, ParenthesisNode, string":function(w,x,b){return g(w,x.content,b)},"Object, FunctionAssignmentNode, string":function(w,x,b){return x.params.includes(b)?g(w,x.expr,b):(w[x]=!0,!0)},"Object, FunctionNode | OperatorNode, string":function(w,x,b){if(x.args.length>0){for(var D=g(w,x.args[0],b),A=1;A<x.args.length;++A)D=g(w,x.args[A],b)&&D;if(D)return w[x]=!0,!0}return!1}}),y=r("_derivative",{"ConstantNode, Object":function(w){return E(0)},"SymbolNode, Object":function(w,x){return x[w]!==void 0?E(0):E(1)},"ParenthesisNode, Object":function(w,x){return new f(y(w.content,x))},"FunctionAssignmentNode, Object":function(w,x){return x[w]!==void 0?E(0):y(w.expr,x)},"FunctionNode, Object":function(w,x){if(x[w]!==void 0)return E(0);var b=w.args[0],D,A=!1,S=!1,C;switch(w.name){case"cbrt":A=!0,C=new c("*","multiply",[E(3),new c("^","pow",[b,new c("/","divide",[E(2),E(3)])])]);break;case"sqrt":case"nthRoot":if(w.args.length===1)A=!0,C=new c("*","multiply",[E(2),new l("sqrt",[b])]);else if(w.args.length===2)return D=new c("/","divide",[E(1),w.args[1]]),x[D]=x[w.args[1]],y(new c("^","pow",[b,D]),x);break;case"log10":D=E(10);case"log":if(!D&&w.args.length===1)C=b.clone(),A=!0;else if(w.args.length===1&&D||w.args.length===2&&x[w.args[1]]!==void 0)C=new c("*","multiply",[b.clone(),new l("log",[D||w.args[1]])]),A=!0;else if(w.args.length===2)return y(new c("/","divide",[new l("log",[b]),new l("log",[w.args[1]])]),x);break;case"pow":if(w.args.length===2)return x[D]=x[w.args[1]],y(new c("^","pow",[b,w.args[1]]),x);break;case"exp":C=new l("exp",[b.clone()]);break;case"sin":C=new l("cos",[b.clone()]);break;case"cos":C=new c("-","unaryMinus",[new l("sin",[b.clone()])]);break;case"tan":C=new c("^","pow",[new l("sec",[b.clone()]),E(2)]);break;case"sec":C=new c("*","multiply",[w,new l("tan",[b.clone()])]);break;case"csc":S=!0,C=new c("*","multiply",[w,new l("cot",[b.clone()])]);break;case"cot":S=!0,C=new c("^","pow",[new l("csc",[b.clone()]),E(2)]);break;case"asin":A=!0,C=new l("sqrt",[new c("-","subtract",[E(1),new c("^","pow",[b.clone(),E(2)])])]);break;case"acos":A=!0,S=!0,C=new l("sqrt",[new c("-","subtract",[E(1),new c("^","pow",[b.clone(),E(2)])])]);break;case"atan":A=!0,C=new c("+","add",[new c("^","pow",[b.clone(),E(2)]),E(1)]);break;case"asec":A=!0,C=new c("*","multiply",[new l("abs",[b.clone()]),new l("sqrt",[new c("-","subtract",[new c("^","pow",[b.clone(),E(2)]),E(1)])])]);break;case"acsc":A=!0,S=!0,C=new c("*","multiply",[new l("abs",[b.clone()]),new l("sqrt",[new c("-","subtract",[new c("^","pow",[b.clone(),E(2)]),E(1)])])]);break;case"acot":A=!0,S=!0,C=new c("+","add",[new c("^","pow",[b.clone(),E(2)]),E(1)]);break;case"sinh":C=new l("cosh",[b.clone()]);break;case"cosh":C=new l("sinh",[b.clone()]);break;case"tanh":C=new c("^","pow",[new l("sech",[b.clone()]),E(2)]);break;case"sech":S=!0,C=new c("*","multiply",[w,new l("tanh",[b.clone()])]);break;case"csch":S=!0,C=new c("*","multiply",[w,new l("coth",[b.clone()])]);break;case"coth":S=!0,C=new c("^","pow",[new l("csch",[b.clone()]),E(2)]);break;case"asinh":A=!0,C=new l("sqrt",[new c("+","add",[new c("^","pow",[b.clone(),E(2)]),E(1)])]);break;case"acosh":A=!0,C=new l("sqrt",[new c("-","subtract",[new c("^","pow",[b.clone(),E(2)]),E(1)])]);break;case"atanh":A=!0,C=new c("-","subtract",[E(1),new c("^","pow",[b.clone(),E(2)])]);break;case"asech":A=!0,S=!0,C=new c("*","multiply",[b.clone(),new l("sqrt",[new c("-","subtract",[E(1),new c("^","pow",[b.clone(),E(2)])])])]);break;case"acsch":A=!0,S=!0,C=new c("*","multiply",[new l("abs",[b.clone()]),new l("sqrt",[new c("+","add",[new c("^","pow",[b.clone(),E(2)]),E(1)])])]);break;case"acoth":A=!0,S=!0,C=new c("-","subtract",[E(1),new c("^","pow",[b.clone(),E(2)])]);break;case"abs":C=new c("/","divide",[new l(new p("abs"),[b.clone()]),b.clone()]);break;case"gamma":default:throw new Error('Cannot process function "'+w.name+'" in derivative: the function is not supported, undefined, or the number of arguments passed to it are not supported')}var N,$;A?(N="/",$="divide"):(N="*",$="multiply");var B=y(b,x);return S&&(B=new c("-","unaryMinus",[B])),new c(N,$,[B,C])},"OperatorNode, Object":function(w,x){if(x[w]!==void 0)return E(0);if(w.op==="+")return new c(w.op,w.fn,w.args.map(function(R){return y(R,x)}));if(w.op==="-"){if(w.isUnary())return new c(w.op,w.fn,[y(w.args[0],x)]);if(w.isBinary())return new c(w.op,w.fn,[y(w.args[0],x),y(w.args[1],x)])}if(w.op==="*"){var b=w.args.filter(function(R){return x[R]!==void 0});if(b.length>0){var D=w.args.filter(function(R){return x[R]===void 0}),A=D.length===1?D[0]:new c("*","multiply",D),S=b.concat(y(A,x));return new c("*","multiply",S)}return new c("+","add",w.args.map(function(R){return new c("*","multiply",w.args.map(function(O){return O===R?y(O,x):O.clone()}))}))}if(w.op==="/"&&w.isBinary()){var C=w.args[0],N=w.args[1];return x[N]!==void 0?new c("/","divide",[y(C,x),N]):x[C]!==void 0?new c("*","multiply",[new c("-","unaryMinus",[C]),new c("/","divide",[y(N,x),new c("^","pow",[N.clone(),E(2)])])]):new c("/","divide",[new c("-","subtract",[new c("*","multiply",[y(C,x),N.clone()]),new c("*","multiply",[C.clone(),y(N,x)])]),new c("^","pow",[N.clone(),E(2)])])}if(w.op==="^"&&w.isBinary()){var $=w.args[0],B=w.args[1];if(x[$]!==void 0)return cr($)&&(o($.value)||i($.value,1))?E(0):new c("*","multiply",[w,new c("*","multiply",[new l("log",[$.clone()]),y(B.clone(),x)])]);if(x[B]!==void 0){if(cr(B)){if(o(B.value))return E(0);if(i(B.value,1))return y($,x)}var P=new c("^","pow",[$.clone(),new c("-","subtract",[B,E(1)])]);return new c("*","multiply",[B.clone(),new c("*","multiply",[y($,x),P])])}return new c("*","multiply",[new c("^","pow",[$.clone(),B.clone()]),new c("+","add",[new c("*","multiply",[y($,x),new c("/","divide",[B.clone(),$.clone()])]),new c("*","multiply",[y(B,x),new l("log",[$.clone()])])])])}throw new Error('Cannot process operator "'+w.op+'" in derivative: the operator is not supported, undefined, or the number of arguments passed to it are not supported')}});function E(h,w){return new u(s(h,jn(String(h),t)))}return v}),V1="rationalize",xte=["config","typed","equal","isZero","add","subtract","multiply","divide","pow","parse","simplifyConstant","simplifyCore","simplify","?bignumber","?fraction","mathWithTransform","matrix","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","SymbolNode","ParenthesisNode"],wte=L(V1,xte,e=>{var{config:r,typed:t,equal:n,isZero:a,add:i,subtract:o,multiply:s,divide:u,pow:l,parse:c,simplifyConstant:f,simplifyCore:p,simplify:d,fraction:v,bignumber:m,mathWithTransform:g,matrix:y,AccessorNode:E,ArrayNode:h,ConstantNode:w,FunctionNode:x,IndexNode:b,ObjectNode:D,OperatorNode:A,SymbolNode:S,ParenthesisNode:C}=e;function N(O){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,F=B(),q=$(O,T,!0,F.firstRules),Y=q.variables.length,V={exactFractions:!1},z={exactFractions:!0};if(O=q.expression,Y>=1){O=P(O);var J,le,Q=!0,re=!1;O=d(O,F.firstRules,{},V);for(var se;le=Q?F.distrDivRules:F.sucDivRules,O=d(O,le,{},z),Q=!Q,se=O.toString(),se!==J;)re=!0,J=se;re&&(O=d(O,F.firstRulesAgain,{},V)),O=d(O,F.finalRules,{},V)}var te=[],ae={};return O.type==="OperatorNode"&&O.isBinary()&&O.op==="/"?(Y===1&&(O.args[0]=R(O.args[0],te),O.args[1]=R(O.args[1])),U&&(ae.numerator=O.args[0],ae.denominator=O.args[1])):(Y===1&&(O=R(O,te)),U&&(ae.numerator=O,ae.denominator=null)),U?(ae.coefficients=te,ae.variables=q.variables,ae.expression=O,ae):O}return t(V1,{Node:N,"Node, boolean":(O,T)=>N(O,{},T),"Node, Object":N,"Node, Object, boolean":N});function $(O,T,U,F){var q=[],Y=d(O,F,T,{exactFractions:!1});U=!!U;var V="+-*"+(U?"/":"");J(Y);var z={};return z.expression=Y,z.variables=q,z;function J(le){var Q=le.type;if(Q==="FunctionNode")throw new Error("There is an unsolved function call");if(Q==="OperatorNode")if(le.op==="^"){if(le.args[1].type!=="ConstantNode"||!ze(parseFloat(le.args[1].value)))throw new Error("There is a non-integer exponent");J(le.args[0])}else{if(!V.includes(le.op))throw new Error("Operator "+le.op+" invalid in polynomial expression");for(var re=0;re<le.args.length;re++)J(le.args[re])}else if(Q==="SymbolNode"){var se=le.name,te=q.indexOf(se);te===-1&&q.push(se)}else if(Q==="ParenthesisNode")J(le.content);else if(Q!=="ConstantNode")throw new Error("type "+Q+" is not allowed in polynomial expression")}}function B(){var O=[p,{l:"n+n",r:"2*n"},{l:"n+-n",r:"0"},f,{l:"n*(n1^-1)",r:"n/n1"},{l:"n*n1^-n2",r:"n/n1^n2"},{l:"n1^-1",r:"1/n1"},{l:"n*(n1/n2)",r:"(n*n1)/n2"},{l:"1*n",r:"n"}],T=[{l:"(-n1)/(-n2)",r:"n1/n2"},{l:"(-n1)*(-n2)",r:"n1*n2"},{l:"n1--n2",r:"n1+n2"},{l:"n1-n2",r:"n1+(-n2)"},{l:"(n1+n2)*n3",r:"(n1*n3 + n2*n3)"},{l:"n1*(n2+n3)",r:"(n1*n2+n1*n3)"},{l:"c1*n + c2*n",r:"(c1+c2)*n"},{l:"c1*n + n",r:"(c1+1)*n"},{l:"c1*n - c2*n",r:"(c1-c2)*n"},{l:"c1*n - n",r:"(c1-1)*n"},{l:"v/c",r:"(1/c)*v"},{l:"v/-c",r:"-(1/c)*v"},{l:"-v*-c",r:"c*v"},{l:"-v*c",r:"-c*v"},{l:"v*-c",r:"-c*v"},{l:"v*c",r:"c*v"},{l:"-(-n1*n2)",r:"(n1*n2)"},{l:"-(n1*n2)",r:"(-n1*n2)"},{l:"-(-n1+n2)",r:"(n1-n2)"},{l:"-(n1+n2)",r:"(-n1-n2)"},{l:"(n1^n2)^n3",r:"(n1^(n2*n3))"},{l:"-(-n1/n2)",r:"(n1/n2)"},{l:"-(n1/n2)",r:"(-n1/n2)"}],U=[{l:"(n1/n2 + n3/n4)",r:"((n1*n4 + n3*n2)/(n2*n4))"},{l:"(n1/n2 + n3)",r:"((n1 + n3*n2)/n2)"},{l:"(n1 + n2/n3)",r:"((n1*n3 + n2)/n3)"}],F=[{l:"(n1/(n2/n3))",r:"((n1*n3)/n2)"},{l:"(n1/n2/n3)",r:"(n1/(n2*n3))"}],q={};return q.firstRules=O.concat(T,F),q.distrDivRules=U,q.sucDivRules=F,q.firstRulesAgain=O.concat(T),q.finalRules=[p,{l:"n*-n",r:"-n^2"},{l:"n*n",r:"n^2"},f,{l:"n*-n^n1",r:"-n^(n1+1)"},{l:"n*n^n1",r:"n^(n1+1)"},{l:"n^n1*-n^n2",r:"-n^(n1+n2)"},{l:"n^n1*n^n2",r:"n^(n1+n2)"},{l:"n^n1*-n",r:"-n^(n1+1)"},{l:"n^n1*n",r:"n^(n1+1)"},{l:"n^n1/-n",r:"-n^(n1-1)"},{l:"n^n1/n",r:"n^(n1-1)"},{l:"n/-n^n1",r:"-n^(1-n1)"},{l:"n/n^n1",r:"n^(1-n1)"},{l:"n^n1/-n^n2",r:"n^(n1-n2)"},{l:"n^n1/n^n2",r:"n^(n1-n2)"},{l:"n1+(-n2*n3)",r:"n1-n2*n3"},{l:"v*(-c)",r:"-c*v"},{l:"n1+-n2",r:"n1-n2"},{l:"v*c",r:"c*v"},{l:"(n1^n2)^n3",r:"(n1^(n2*n3))"}],q}function P(O,T,U){var F=O.type,q=arguments.length>1;if(F==="OperatorNode"&&O.isBinary()){var Y=!1,V;if(O.op==="^"&&(O.args[0].type==="ParenthesisNode"||O.args[0].type==="OperatorNode")&&O.args[1].type==="ConstantNode"&&(V=parseFloat(O.args[1].value),Y=V>=2&&ze(V)),Y){if(V>2){var z=O.args[0],J=new A("^","pow",[O.args[0].cloneDeep(),new w(V-1)]);O=new A("*","multiply",[z,J])}else O=new A("*","multiply",[O.args[0],O.args[0].cloneDeep()]);q&&(U==="content"?T.content=O:T.args[U]=O)}}if(F==="ParenthesisNode")P(O.content,O,"content");else if(F!=="ConstantNode"&&F!=="SymbolNode")for(var le=0;le<O.args.length;le++)P(O.args[le],O,le);if(!q)return O}function R(O,T){T===void 0&&(T=[]),T[0]=0;var U={};U.cte=1,U.oper="+",U.fire="";var F=0,q="";se(O,null,U),F=T.length-1;for(var Y=!0,V,z=F;z>=0;z--)if(T[z]!==0){var J=new w(Y?T[z]:Math.abs(T[z])),le=T[z]<0?"-":"+";if(z>0){var Q=new S(q);if(z>1){var re=new w(z);Q=new A("^","pow",[Q,re])}T[z]===-1&&Y?J=new A("-","unaryMinus",[Q]):Math.abs(T[z])===1?J=Q:J=new A("*","multiply",[J,Q])}Y?V=J:le==="+"?V=new A("+","add",[V,J]):V=new A("-","subtract",[V,J]),Y=!1}if(Y)return new w(0);return V;function se(te,ae,fe){var ne=te.type;if(ne==="FunctionNode")throw new Error("There is an unsolved function call");if(ne==="OperatorNode"){if(!"+-*^".includes(te.op))throw new Error("Operator "+te.op+" invalid");if(ae!==null){if((te.fn==="unaryMinus"||te.fn==="pow")&&ae.fn!=="add"&&ae.fn!=="subtract"&&ae.fn!=="multiply")throw new Error("Invalid "+te.op+" placing");if((te.fn==="subtract"||te.fn==="add"||te.fn==="multiply")&&ae.fn!=="add"&&ae.fn!=="subtract")throw new Error("Invalid "+te.op+" placing");if((te.fn==="subtract"||te.fn==="add"||te.fn==="unaryMinus")&&fe.noFil!==0)throw new Error("Invalid "+te.op+" placing")}(te.op==="^"||te.op==="*")&&(fe.fire=te.op);for(var be=0;be<te.args.length;be++)te.fn==="unaryMinus"&&(fe.oper="-"),(te.op==="+"||te.fn==="subtract")&&(fe.fire="",fe.cte=1,fe.oper=be===0?"+":te.op),fe.noFil=be,se(te.args[be],te,fe)}else if(ne==="SymbolNode"){if(te.name!==q&&q!=="")throw new Error("There is more than one variable");if(q=te.name,ae===null){T[1]=1;return}if(ae.op==="^"&&fe.noFil!==0)throw new Error("In power the variable should be the first parameter");if(ae.op==="*"&&fe.noFil!==1)throw new Error("In multiply the variable should be the second parameter");(fe.fire===""||fe.fire==="*")&&(F<1&&(T[1]=0),T[1]+=fe.cte*(fe.oper==="+"?1:-1),F=Math.max(1,F))}else if(ne==="ConstantNode"){var $e=parseFloat(te.value);if(ae===null){T[0]=$e;return}if(ae.op==="^"){if(fe.noFil!==1)throw new Error("Constant cannot be powered");if(!ze($e)||$e<=0)throw new Error("Non-integer exponent is not allowed");for(var k=F+1;k<$e;k++)T[k]=0;$e>F&&(T[$e]=0),T[$e]+=fe.cte*(fe.oper==="+"?1:-1),F=Math.max($e,F);return}fe.cte=$e,fe.fire===""&&(T[0]+=fe.cte*(fe.oper==="+"?1:-1))}else throw new Error("Type "+ne+" is not allowed")}}}),G1="zpk2tf",Ete=["typed","add","multiply","Complex","number"],Ste=L(G1,Ete,e=>{var{typed:r,add:t,multiply:n,Complex:a,number:i}=e;return r(G1,{"Array,Array,number":function(l,c,f){return o(l,c,f)},"Array,Array":function(l,c){return o(l,c,1)},"Matrix,Matrix,number":function(l,c,f){return o(l.valueOf(),c.valueOf(),f)},"Matrix,Matrix":function(l,c){return o(l.valueOf(),c.valueOf(),1)}});function o(u,l,c){u.some(E=>E.type==="BigNumber")&&(u=u.map(E=>i(E))),l.some(E=>E.type==="BigNumber")&&(l=l.map(E=>i(E)));for(var f=[a(1,0)],p=[a(1,0)],d=0;d<u.length;d++){var v=u[d];typeof v=="number"&&(v=a(v,0)),f=s(f,[a(1,0),a(-v.re,-v.im)])}for(var m=0;m<l.length;m++){var g=l[m];typeof g=="number"&&(g=a(g,0)),p=s(p,[a(1,0),a(-g.re,-g.im)])}for(var y=0;y<f.length;y++)f[y]=n(f[y],c);return[f,p]}function s(u,l){for(var c=[],f=0;f<u.length+l.length-1;f++){c[f]=a(0,0);for(var p=0;p<u.length;p++)f-p>=0&&f-p<l.length&&(c[f]=t(c[f],n(u[p],l[f-p])))}return c}}),W1="freqz",Ate=["typed","add","multiply","Complex","divide","matrix"],Dte=L(W1,Ate,e=>{var{typed:r,add:t,multiply:n,Complex:a,divide:i,matrix:o}=e;return r(W1,{"Array, Array":function(c,f){var p=u(512);return s(c,f,p)},"Array, Array, Array":function(c,f,p){return s(c,f,p)},"Array, Array, number":function(c,f,p){if(p<0)throw new Error("w must be a positive number");var d=u(p);return s(c,f,d)},"Matrix, Matrix":function(c,f){var p=u(512),{w:d,h:v}=s(c.valueOf(),f.valueOf(),p);return{w:o(d),h:o(v)}},"Matrix, Matrix, Matrix":function(c,f,p){var{h:d}=s(c.valueOf(),f.valueOf(),p.valueOf());return{h:o(d),w:o(p)}},"Matrix, Matrix, number":function(c,f,p){if(p<0)throw new Error("w must be a positive number");var d=u(p),{h:v}=s(c.valueOf(),f.valueOf(),d);return{h:o(v),w:o(d)}}});function s(l,c,f){for(var p=[],d=[],v=0;v<f.length;v++){for(var m=a(0,0),g=a(0,0),y=0;y<l.length;y++)m=t(m,n(l[y],a(Math.cos(-y*f[v]),Math.sin(-y*f[v]))));for(var E=0;E<c.length;E++)g=t(g,n(c[E],a(Math.cos(-E*f[v]),Math.sin(-E*f[v]))));p.push(m),d.push(g)}for(var h=[],w=0;w<p.length;w++)h.push(i(p[w],d[w]));return{h,w:f}}function u(l){for(var c=[],f=0;f<l;f++)c.push(f/l*Math.PI);return c}}),Cte="reviver",Nte=["classes"],Mte=L(Cte,Nte,e=>{var{classes:r}=e;return function(n,a){var i=r[a&&a.mathjs];return i&&typeof i.fromJSON=="function"?i.fromJSON(a):a}}),Tte="replacer",Ote=[],_te=L(Tte,Ote,()=>function(r,t){return typeof t=="number"&&(!isFinite(t)||isNaN(t))?{mathjs:"number",value:String(t)}:typeof t=="bigint"?{mathjs:"bigint",value:String(t)}:t}),$te="13.0.1",Fte=L("true",[],()=>!0),Bte=L("false",[],()=>!1),Rte=L("null",[],()=>null),Pte=Ot("Infinity",["config","?BigNumber"],e=>{var{config:r,BigNumber:t}=e;return r.number==="BigNumber"?new t(1/0):1/0}),zte=Ot("NaN",["config","?BigNumber"],e=>{var{config:r,BigNumber:t}=e;return r.number==="BigNumber"?new t(NaN):NaN}),Ite=Ot("pi",["config","?BigNumber"],e=>{var{config:r,BigNumber:t}=e;return r.number==="BigNumber"?qf(t):ZL}),Lte=Ot("tau",["config","?BigNumber"],e=>{var{config:r,BigNumber:t}=e;return r.number==="BigNumber"?yG(t):YL}),qte=Ot("e",["config","?BigNumber"],e=>{var{config:r,BigNumber:t}=e;return r.number==="BigNumber"?hG(t):XL}),kte=Ot("phi",["config","?BigNumber"],e=>{var{config:r,BigNumber:t}=e;return r.number==="BigNumber"?gG(t):KL}),Ute=Ot("LN2",["config","?BigNumber"],e=>{var{config:r,BigNumber:t}=e;return r.number==="BigNumber"?new t(2).ln():Math.LN2}),Hte=Ot("LN10",["config","?BigNumber"],e=>{var{config:r,BigNumber:t}=e;return r.number==="BigNumber"?new t(10).ln():Math.LN10}),jte=Ot("LOG2E",["config","?BigNumber"],e=>{var{config:r,BigNumber:t}=e;return r.number==="BigNumber"?new t(1).div(new t(2).ln()):Math.LOG2E}),Vte=Ot("LOG10E",["config","?BigNumber"],e=>{var{config:r,BigNumber:t}=e;return r.number==="BigNumber"?new t(1).div(new t(10).ln()):Math.LOG10E}),Gte=Ot("SQRT1_2",["config","?BigNumber"],e=>{var{config:r,BigNumber:t}=e;return r.number==="BigNumber"?new t("0.5").sqrt():Math.SQRT1_2}),Wte=Ot("SQRT2",["config","?BigNumber"],e=>{var{config:r,BigNumber:t}=e;return r.number==="BigNumber"?new t(2).sqrt():Math.SQRT2}),Zte=Ot("i",["Complex"],e=>{var{Complex:r}=e;return r.I}),Yte=L("version",[],()=>$te);function Ot(e,r,t){return L(e,r,t,{recreateOnConfigChange:!0})}var Xte=Xe("speedOfLight","299792458","m s^-1"),Kte=Xe("gravitationConstant","6.67430e-11","m^3 kg^-1 s^-2"),Jte=Xe("planckConstant","6.62607015e-34","J s"),Qte=Xe("reducedPlanckConstant","1.0545718176461565e-34","J s"),ene=Xe("magneticConstant","1.25663706212e-6","N A^-2"),rne=Xe("electricConstant","8.8541878128e-12","F m^-1"),tne=Xe("vacuumImpedance","376.730313667","ohm"),nne=Xe("coulomb","8.987551792261171e9","N m^2 C^-2"),ane=Xe("elementaryCharge","1.602176634e-19","C"),ine=Xe("bohrMagneton","9.2740100783e-24","J T^-1"),one=Xe("conductanceQuantum","7.748091729863649e-5","S"),sne=Xe("inverseConductanceQuantum","12906.403729652257","ohm"),une=Xe("magneticFluxQuantum","2.0678338484619295e-15","Wb"),lne=Xe("nuclearMagneton","5.0507837461e-27","J T^-1"),cne=Xe("klitzing","25812.807459304513","ohm"),fne=Xe("bohrRadius","5.29177210903e-11","m"),pne=Xe("classicalElectronRadius","2.8179403262e-15","m"),dne=Xe("electronMass","9.1093837015e-31","kg"),vne=Xe("fermiCoupling","1.1663787e-5","GeV^-2"),mne=$u("fineStructure",.0072973525693),hne=Xe("hartreeEnergy","4.3597447222071e-18","J"),gne=Xe("protonMass","1.67262192369e-27","kg"),yne=Xe("deuteronMass","3.3435830926e-27","kg"),bne=Xe("neutronMass","1.6749271613e-27","kg"),xne=Xe("quantumOfCirculation","3.6369475516e-4","m^2 s^-1"),wne=Xe("rydberg","10973731.568160","m^-1"),Ene=Xe("thomsonCrossSection","6.6524587321e-29","m^2"),Sne=$u("weakMixingAngle",.2229),Ane=$u("efimovFactor",22.7),Dne=Xe("atomicMass","1.66053906660e-27","kg"),Cne=Xe("avogadro","6.02214076e23","mol^-1"),Nne=Xe("boltzmann","1.380649e-23","J K^-1"),Mne=Xe("faraday","96485.33212331001","C mol^-1"),Tne=Xe("firstRadiation","3.7417718521927573e-16","W m^2"),One=Xe("loschmidt","2.686780111798444e25","m^-3"),_ne=Xe("gasConstant","8.31446261815324","J K^-1 mol^-1"),$ne=Xe("molarPlanckConstant","3.990312712893431e-10","J s mol^-1"),Fne=Xe("molarVolume","0.022413969545014137","m^3 mol^-1"),Bne=$u("sackurTetrode",-1.16487052358),Rne=Xe("secondRadiation","0.014387768775039337","m K"),Pne=Xe("stefanBoltzmann","5.67037441918443e-8","W m^-2 K^-4"),zne=Xe("wienDisplacement","2.897771955e-3","m K"),Ine=Xe("molarMass","0.99999999965e-3","kg mol^-1"),Lne=Xe("molarMassC12","11.9999999958e-3","kg mol^-1"),qne=Xe("gravity","9.80665","m s^-2"),kne=Xe("planckLength","1.616255e-35","m"),Une=Xe("planckMass","2.176435e-8","kg"),Hne=Xe("planckTime","5.391245e-44","s"),jne=Xe("planckCharge","1.87554603778e-18","C"),Vne=Xe("planckTemperature","1.416785e+32","K");function Xe(e,r,t){var n=["config","Unit","BigNumber"];return L(e,n,a=>{var{config:i,Unit:o,BigNumber:s}=a,u=i.number==="BigNumber"?new s(r):parseFloat(r),l=new o(u,t);return l.fixPrefix=!0,l})}function $u(e,r){var t=["config","BigNumber"];return L(e,t,n=>{var{config:a,BigNumber:i}=n;return a.number==="BigNumber"?new i(r):r})}var Gne="apply",Wne=["typed","isInteger"],Zne=L(Gne,Wne,e=>{var{typed:r,isInteger:t}=e,n=Bf({typed:r,isInteger:t});return r("apply",{"...any":function(i){var o=i[1];Je(o)?i[1]=o-1:Qe(o)&&(i[1]=o.minus(1));try{return n.apply(null,i)}catch(s){throw mt(s)}}})},{isTransformFunction:!0}),Yne="column",Xne=["typed","Index","matrix","range"],Kne=L(Yne,Xne,e=>{var{typed:r,Index:t,matrix:n,range:a}=e,i=Yb({typed:r,Index:t,matrix:n,range:a});return r("column",{"...any":function(s){var u=s.length-1,l=s[u];Je(l)&&(s[u]=l-1);try{return i.apply(null,s)}catch(c){throw mt(c)}}})},{isTransformFunction:!0});function Yf(e,r,t){var n=e.filter(function(u){return Zr(u)&&!(u.name in r)&&!t.has(u.name)})[0];if(!n)throw new Error('No undefined variable found in inline expression "'+e+'"');var a=n.name,i=new Map,o=new E2(t,i,new Set([a])),s=e.compile();return function(l){return i.set(a,l),s.evaluate(o)}}var Jne="filter",Qne=["typed"],eae=L(Jne,Qne,e=>{var{typed:r}=e;function t(a,i,o){var s,u;return a[0]&&(s=a[0].compile().evaluate(o)),a[1]&&(Zr(a[1])||Ao(a[1])?u=a[1].compile().evaluate(o):u=Yf(a[1],i,o)),n(s,u)}t.rawArgs=!0;var n=r("filter",{"Array, function":Z1,"Matrix, function":function(i,o){return i.create(Z1(i.toArray(),o))},"Array, RegExp":Rs,"Matrix, RegExp":function(i,o){return i.create(Rs(i.toArray(),o))}});return t},{isTransformFunction:!0});function Z1(e,r){return j2(e,function(t,n,a){return Ti(r,t,[n+1],a,"filter")})}var rae="forEach",tae=["typed"],nae=L(rae,tae,e=>{var{typed:r}=e;function t(a,i,o){var s,u;return a[0]&&(s=a[0].compile().evaluate(o)),a[1]&&(Zr(a[1])||Ao(a[1])?u=a[1].compile().evaluate(o):u=Yf(a[1],i,o)),n(s,u)}t.rawArgs=!0;var n=r("forEach",{"Array | Matrix, function":function(i,o){var s=function u(l,c){if(Array.isArray(l))Nu(l,function(f,p){u(f,c.concat(p+1))});else return Ti(o,l,c,i,"forEach")};s(i.valueOf(),[])}});return t},{isTransformFunction:!0}),aae="index",iae=["Index","getMatrixDataType"],oae=L(aae,iae,e=>{var{Index:r,getMatrixDataType:t}=e;return function(){for(var a=[],i=0,o=arguments.length;i<o;i++){var s=arguments[i];if(Cf(s))s.start--,s.end-=s.step>0?0:2;else if(s&&s.isSet===!0)s=s.map(function(l){return l-1});else if(hr(s)||Ue(s))t(s)!=="boolean"&&(s=s.map(function(l){return l-1}));else if(Je(s))s--;else if(Qe(s))s=s.toNumber()-1;else if(typeof s!="string")throw new TypeError("Dimension must be an Array, Matrix, number, string, or Range");a[i]=s}var u=new r;return r.apply(u,a),u}},{isTransformFunction:!0}),sae="map",uae=["typed"],lae=L(sae,uae,e=>{var{typed:r}=e;function t(a,i,o){var s,u;return a[0]&&(s=a[0].compile().evaluate(o)),a[1]&&(Zr(a[1])||Ao(a[1])?u=a[1].compile().evaluate(o):u=Yf(a[1],i,o)),n(s,u)}t.rawArgs=!0;var n=r("map",{"Array, function":function(i,o){return Y1(i,o,i)},"Matrix, function":function(i,o){return i.create(Y1(i.valueOf(),o,i))}});return t},{isTransformFunction:!0});function Y1(e,r,t){function n(a,i){return Array.isArray(a)?xn(a,function(o,s){return n(o,i.concat(s+1))}):Ti(r,a,i,t,"map")}return n(e,[])}function Wn(e){if(e.length===2&&Ut(e[0])){e=e.slice();var r=e[1];Je(r)?e[1]=r-1:Qe(r)&&(e[1]=r.minus(1))}return e}var cae="max",fae=["typed","config","numeric","larger"],pae=L(cae,fae,e=>{var{typed:r,config:t,numeric:n,larger:a}=e,i=ix({typed:r,config:t,numeric:n,larger:a});return r("max",{"...any":function(s){s=Wn(s);try{return i.apply(null,s)}catch(u){throw mt(u)}}})},{isTransformFunction:!0}),dae="mean",vae=["typed","add","divide"],mae=L(dae,vae,e=>{var{typed:r,add:t,divide:n}=e,a=vx({typed:r,add:t,divide:n});return r("mean",{"...any":function(o){o=Wn(o);try{return a.apply(null,o)}catch(s){throw mt(s)}}})},{isTransformFunction:!0}),hae="min",gae=["typed","config","numeric","smaller"],yae=L(hae,gae,e=>{var{typed:r,config:t,numeric:n,smaller:a}=e,i=ox({typed:r,config:t,numeric:n,smaller:a});return r("min",{"...any":function(s){s=Wn(s);try{return i.apply(null,s)}catch(u){throw mt(u)}}})},{isTransformFunction:!0}),bae="range",xae=["typed","config","?matrix","?bignumber","smaller","smallerEq","larger","largerEq","add","isPositive"],wae=L(bae,xae,e=>{var{typed:r,config:t,matrix:n,bignumber:a,smaller:i,smallerEq:o,larger:s,largerEq:u,add:l,isPositive:c}=e,f=Qb({typed:r,config:t,matrix:n,bignumber:a,smaller:i,smallerEq:o,larger:s,largerEq:u,add:l,isPositive:c});return r("range",{"...any":function(d){var v=d.length-1,m=d[v];return typeof m!="boolean"&&d.push(!0),f.apply(null,d)}})},{isTransformFunction:!0}),Eae="row",Sae=["typed","Index","matrix","range"],Aae=L(Eae,Sae,e=>{var{typed:r,Index:t,matrix:n,range:a}=e,i=ex({typed:r,Index:t,matrix:n,range:a});return r("row",{"...any":function(s){var u=s.length-1,l=s[u];Je(l)&&(s[u]=l-1);try{return i.apply(null,s)}catch(c){throw mt(c)}}})},{isTransformFunction:!0}),Dae="subset",Cae=["typed","matrix","zeros","add"],Nae=L(Dae,Cae,e=>{var{typed:r,matrix:t,zeros:n,add:a}=e,i=rx({typed:r,matrix:t,zeros:n,add:a});return r("subset",{"...any":function(s){try{return i.apply(null,s)}catch(u){throw mt(u)}}})},{isTransformFunction:!0}),Mae="concat",Tae=["typed","matrix","isInteger"],Oae=L(Mae,Tae,e=>{var{typed:r,matrix:t,isInteger:n}=e,a=Zb({typed:r,matrix:t,isInteger:n});return r("concat",{"...any":function(o){var s=o.length-1,u=o[s];Je(u)?o[s]=u-1:Qe(u)&&(o[s]=u.minus(1));try{return a.apply(null,o)}catch(l){throw mt(l)}}})},{isTransformFunction:!0}),X1="diff",_ae=["typed","matrix","subtract","number","bignumber"],$ae=L(X1,_ae,e=>{var{typed:r,matrix:t,subtract:n,number:a,bignumber:i}=e,o=Xb({typed:r,matrix:t,subtract:n,number:a,bignumber:i});return r(X1,{"...any":function(u){u=Wn(u);try{return o.apply(null,u)}catch(l){throw mt(l)}}})},{isTransformFunction:!0}),Fae="std",Bae=["typed","map","sqrt","variance"],Rae=L(Fae,Bae,e=>{var{typed:r,map:t,sqrt:n,variance:a}=e,i=gx({typed:r,map:t,sqrt:n,variance:a});return r("std",{"...any":function(s){s=Wn(s);try{return i.apply(null,s)}catch(u){throw mt(u)}}})},{isTransformFunction:!0}),K1="sum",Pae=["typed","config","add","numeric"],zae=L(K1,Pae,e=>{var{typed:r,config:t,add:n,numeric:a}=e,i=px({typed:r,config:t,add:n,numeric:a});return r(K1,{"...any":function(s){s=Wn(s);try{return i.apply(null,s)}catch(u){throw mt(u)}}})},{isTransformFunction:!0}),Iae="quantileSeq",Lae=["typed","bignumber","add","subtract","divide","multiply","partitionSelect","compare","isInteger","smaller","smallerEq","larger"],qae=L(Iae,Lae,e=>{var{typed:r,bignumber:t,add:n,subtract:a,divide:i,multiply:o,partitionSelect:s,compare:u,isInteger:l,smaller:c,smallerEq:f,larger:p}=e,d=hx({typed:r,bignumber:t,add:n,subtract:a,divide:i,multiply:o,partitionSelect:s,compare:u,isInteger:l,smaller:c,smallerEq:f,larger:p});return r("quantileSeq",{"Array | Matrix, number | BigNumber":d,"Array | Matrix, number | BigNumber, number":(m,g,y)=>d(m,g,v(y)),"Array | Matrix, number | BigNumber, boolean":d,"Array | Matrix, number | BigNumber, boolean, number":(m,g,y,E)=>d(m,g,y,v(E)),"Array | Matrix, Array | Matrix":d,"Array | Matrix, Array | Matrix, number":(m,g,y)=>d(m,g,v(y)),"Array | Matrix, Array | Matrix, boolean":d,"Array | Matrix, Array | Matrix, boolean, number":(m,g,y,E)=>d(m,g,y,v(E))});function v(m){return Wn([[],m])[1]}},{isTransformFunction:!0}),J1="cumsum",kae=["typed","add","unaryPlus"],Uae=L(J1,kae,e=>{var{typed:r,add:t,unaryPlus:n}=e,a=dx({typed:r,add:t,unaryPlus:n});return r(J1,{"...any":function(o){if(o.length===2&&Ut(o[0])){var s=o[1];Je(s)?o[1]=s-1:Qe(s)&&(o[1]=s.minus(1))}try{return a.apply(null,o)}catch(u){throw mt(u)}}})},{isTransformFunction:!0}),Q1="variance",Hae=["typed","add","subtract","multiply","divide","apply","isNaN"],jae=L(Q1,Hae,e=>{var{typed:r,add:t,subtract:n,multiply:a,divide:i,apply:o,isNaN:s}=e,u=mx({typed:r,add:t,subtract:n,multiply:a,divide:i,apply:o,isNaN:s});return r(Q1,{"...any":function(c){c=Wn(c);try{return u.apply(null,c)}catch(f){throw mt(f)}}})},{isTransformFunction:!0}),eg="print",Vae=["typed","matrix","zeros","add"],Gae=L(eg,Vae,e=>{var{typed:r,matrix:t,zeros:n,add:a}=e,i=nx({typed:r,matrix:t,zeros:n,add:a});return r(eg,{"string, Object | Array":function(u,l){return i(o(u),l)},"string, Object | Array, number | Object":function(u,l,c){return i(o(u),l,c)}});function o(s){return s.replace(tx,u=>{var l=u.slice(1).split("."),c=l.map(function(f){return!isNaN(f)&&f.length>0?parseInt(f)-1:f});return"$"+c.join(".")})}},{isTransformFunction:!0}),Wae="and",Zae=["typed","matrix","zeros","add","equalScalar","not","concat"],Yae=L(Wae,Zae,e=>{var{typed:r,matrix:t,equalScalar:n,zeros:a,not:i,concat:o}=e,s=ax({typed:r,matrix:t,equalScalar:n,zeros:a,not:i,concat:o});function u(l,c,f){var p=l[0].compile().evaluate(f);if(!Ut(p)&&!s(p,!0))return!1;var d=l[1].compile().evaluate(f);return s(p,d)}return u.rawArgs=!0,u},{isTransformFunction:!0}),Xae="or",Kae=["typed","matrix","equalScalar","DenseMatrix","concat"],Jae=L(Xae,Kae,e=>{var{typed:r,matrix:t,equalScalar:n,DenseMatrix:a,concat:i}=e,o=Wb({typed:r,matrix:t,equalScalar:n,DenseMatrix:a,concat:i});function s(u,l,c){var f=u[0].compile().evaluate(c);if(!Ut(f)&&o(f,!1))return!0;var p=u[1].compile().evaluate(c);return o(f,p)}return s.rawArgs=!0,s},{isTransformFunction:!0}),Qae="bitAnd",eie=["typed","matrix","zeros","add","equalScalar","not","concat"],rie=L(Qae,eie,e=>{var{typed:r,matrix:t,equalScalar:n,zeros:a,not:i,concat:o}=e,s=Vb({typed:r,matrix:t,equalScalar:n,zeros:a,not:i,concat:o});function u(l,c,f){var p=l[0].compile().evaluate(f);if(!Ut(p)){if(isNaN(p))return NaN;if(p===0||p===!1)return 0}var d=l[1].compile().evaluate(f);return s(p,d)}return u.rawArgs=!0,u},{isTransformFunction:!0}),tie="bitOr",nie=["typed","matrix","equalScalar","DenseMatrix","concat"],aie=L(tie,nie,e=>{var{typed:r,matrix:t,equalScalar:n,DenseMatrix:a,concat:i}=e,o=Gb({typed:r,matrix:t,equalScalar:n,DenseMatrix:a,concat:i});function s(u,l,c){var f=u[0].compile().evaluate(c);if(!Ut(f)){if(isNaN(f))return NaN;if(f===-1)return-1;if(f===!0)return 1}var p=u[1].compile().evaluate(c);return o(f,p)}return s.rawArgs=!0,s},{isTransformFunction:!0}),_e=cL({config:ge}),Nr=vL({}),rg=qte({BigNumber:_e,config:ge}),iie=Bte({}),oie=mne({BigNumber:_e,config:ge}),ga=EL({}),xx=Zte({Complex:Nr}),sie=Pte({BigNumber:_e,config:ge}),uie=Hte({BigNumber:_e,config:ge}),lie=Vte({BigNumber:_e,config:ge}),Fu=ML({}),cie=zte({BigNumber:_e,config:ge}),fie=Rte({}),pie=kte({BigNumber:_e,config:ge}),die=DL({}),wx=vI({}),vie=Gte({BigNumber:_e,config:ge}),mie=Bne({BigNumber:_e,config:ge}),Ex=Lte({BigNumber:_e,config:ge}),hie=Fte({}),gie=Yte({}),er=kL({Matrix:Fu}),yie=Ane({BigNumber:_e,config:ge}),bie=Ute({BigNumber:_e,config:ge}),hc=Ite({BigNumber:_e,config:ge}),xie=_te({}),wie=Wte({BigNumber:_e,config:ge}),Z=cI({BigNumber:_e,Complex:Nr,DenseMatrix:er,Fraction:ga}),Eie=Sne({BigNumber:_e,config:ge}),ht=nk({typed:Z}),Sie=TG({Complex:Nr,config:ge,typed:Z}),Aie=FG({BigNumber:_e,typed:Z}),Die=zG({BigNumber:_e,Complex:Nr,config:ge,typed:Z}),Gr=sk({typed:Z}),Cie=GU({typed:Z}),Nie=HG({BigNumber:_e,Complex:Nr,config:ge,typed:Z}),Mie=ZG({typed:Z}),Sx=KG({typed:Z}),Tie=rW({Complex:Nr,config:ge,typed:Z}),Oie=Mq({typed:Z}),_ie=LU({typed:Z}),$ie=$q({typed:Z}),Fie=HL({typed:Z}),Bu=ure({typed:Z}),Ru=Iq({Complex:Nr,typed:Z}),ya=ZU({typed:Z}),Xf=nW({typed:Z}),Bie=sW({BigNumber:_e,typed:Z}),Rie=fW({BigNumber:_e,typed:Z}),Pie=Ek({typed:Z}),ar=gq({config:ge,typed:Z}),zie=hj({typed:Z}),Ax=Ak({typed:Z}),Iie=Ck({Complex:Nr,typed:Z}),Lie=vH({typed:Z}),qie=yH({typed:Z}),Mo=Nj({typed:Z}),Kf=wH({typed:Z}),kie=Fj({format:Mo,typed:Z}),Jf=XU({typed:Z}),bt=VL({typed:Z}),Zn=tq({config:ge,typed:Z}),ba=uq({config:ge,typed:Z}),an=cq({equalScalar:ar,typed:Z}),Uie=jte({BigNumber:_e,config:ge}),Hie=vre({Complex:Nr,typed:Z}),jie=iU({Complex:Nr,config:ge,typed:Z}),Dx=sU({Complex:Nr,config:ge,typed:Z}),xa=NH({typed:Z}),qr=cU({typed:Z}),Xs=eH({typed:Z}),Mn=Dq({typed:Z}),Vie=_j({format:Mo,typed:Z}),Gie=Ure({config:ge,typed:Z}),Wie=nx({typed:Z}),Zie=jre({config:ge,typed:Z}),Qf=JU({typed:Z}),Yie=mW({BigNumber:_e,typed:Z}),Cx=hU({BigNumber:_e,Fraction:ga,complex:Ru,typed:Z}),Pu=bW({typed:Z}),Tn=xq({Matrix:Fu,equalScalar:ar,typed:Z}),Xie=Kq({typed:Z}),Kie=wU({typed:Z}),Jie=Oq({typed:Z}),Ht=lk({typed:Z}),Qie=SW({typed:Z}),Nx=vq({typed:Z}),eoe=_G({Complex:Nr,config:ge,typed:Z}),roe=LG({BigNumber:_e,typed:Z}),ep=Bf({isInteger:bt,typed:Z}),toe=kG({BigNumber:_e,Complex:Nr,config:ge,typed:Z}),Mt=Rq({BigNumber:_e,typed:Z}),noe=cre({typed:Z}),aoe=iW({typed:Z}),ioe=dW({BigNumber:_e,typed:Z}),To=pq({typed:Z}),ooe=Ij({typed:Z}),soe=Gre({config:ge,typed:Z}),uoe=gW({BigNumber:_e,typed:Z}),loe=wW({typed:Z}),coe=DG({SparseMatrix:Tn,typed:Z}),on=bU({Complex:Nr,config:ge,typed:Z}),foe=CW({typed:Z}),fn=Qq({typed:Z}),poe=RG({BigNumber:_e,Complex:Nr,config:ge,typed:Z}),doe=Tj({format:Mo,typed:Z}),voe=lW({BigNumber:_e,typed:Z}),_i=kq({Fraction:ga,typed:Z}),wa=aq({typed:Z}),Ne=Hq({DenseMatrix:er,Matrix:Fu,SparseMatrix:Tn,typed:Z}),moe=Vq({isZero:an,matrix:Ne,typed:Z}),hoe=Sj({isNaN:To,isNumeric:wa,typed:Z}),Lt=kj({bignumber:Mt,fraction:_i,number:Mn}),Mx=Dj({config:ge,multiplyScalar:qr,numeric:Lt,typed:Z}),Tx=RH({isInteger:bt,matrix:Ne,typed:Z}),nt=VH({matrix:Ne,config:ge,typed:Z}),goe=WH({matrix:Ne,typed:Z}),Oo=QH({matrix:Ne,typed:Z}),Ox=DU({BigNumber:_e,config:ge,matrix:Ne,typed:Z}),et=nj({BigNumber:_e,config:ge,matrix:Ne,typed:Z}),yoe=VG({Complex:Nr,config:ge,typed:Z}),_x=fk({BigNumber:_e,Complex:Nr,Fraction:ga,config:ge,isNegative:Zn,matrix:Ne,typed:Z,unaryMinus:fn}),fr=Zb({isInteger:bt,matrix:Ne,typed:Z}),boe=sH({prod:Mx,size:nt,typed:Z}),rp=rj({conj:ya,transpose:Oo,typed:Z}),$x=fH({DenseMatrix:er,SparseMatrix:Tn,matrix:Ne,typed:Z}),Rr=Hj({numeric:Lt,typed:Z}),_o=nV({DenseMatrix:er,concat:fr,divideScalar:Rr,equalScalar:ar,matrix:Ne,typed:Z}),jt=_V({DenseMatrix:er,concat:fr,equalScalar:ar,matrix:Ne,typed:Z}),$o=hH({matrix:Ne,typed:Z}),xoe=oq({isNumeric:wa,typed:Z}),Yn=SH({BigNumber:_e,DenseMatrix:er,SparseMatrix:Tn,config:ge,matrix:Ne,typed:Z}),woe=DH({matrix:Ne,multiplyScalar:qr,typed:Z}),zu=VV({DenseMatrix:er,concat:fr,config:ge,matrix:Ne,typed:Z}),Eoe=mV({DenseMatrix:er,concat:fr,equalScalar:ar,matrix:Ne,typed:Z,zeros:et}),Fx=iV({DenseMatrix:er,divideScalar:Rr,equalScalar:ar,matrix:Ne,multiplyScalar:qr,subtractScalar:Ht,typed:Z}),tp=Yq({flatten:$o,matrix:Ne,size:nt,typed:Z}),Soe=vU({BigNumber:_e,concat:fr,equalScalar:ar,matrix:Ne,typed:Z}),Aoe=$H({BigNumber:_e,config:ge,matrix:Ne,typed:Z}),np=uY({addScalar:Gr,complex:Ru,conj:ya,divideScalar:Rr,equal:jt,identity:Yn,isZero:an,matrix:Ne,multiplyScalar:qr,sign:Cx,sqrt:on,subtractScalar:Ht,typed:Z,unaryMinus:fn,zeros:et}),Doe=IH({config:ge,matrix:Ne}),Coe=gV({DenseMatrix:er,concat:fr,equalScalar:ar,matrix:Ne,typed:Z,zeros:et}),$i=Wj({BigNumber:_e,DenseMatrix:er,config:ge,equalScalar:ar,matrix:Ne,typed:Z,zeros:et}),ft=PV({DenseMatrix:er,concat:fr,config:ge,matrix:Ne,typed:Z}),Lr=SU({DenseMatrix:er,concat:fr,equalScalar:ar,matrix:Ne,subtractScalar:Ht,typed:Z,unaryMinus:fn}),Noe=Pj({concat:fr,matrix:Ne,typed:Z}),ap=rk({config:ge,numeric:Lt,typed:Z}),ip=sV({DenseMatrix:er,divideScalar:Rr,equalScalar:ar,matrix:Ne,multiplyScalar:qr,subtractScalar:Ht,typed:Z}),Moe=nH({DenseMatrix:er,concat:fr,matrix:Ne,typed:Z}),ur=ZW({DenseMatrix:er,SparseMatrix:Tn,addScalar:Gr,concat:fr,equalScalar:ar,matrix:Ne,typed:Z}),Toe=QG({BigNumber:_e,DenseMatrix:er,concat:fr,equalScalar:ar,matrix:Ne,typed:Z}),Ooe=Vb({concat:fr,equalScalar:ar,matrix:Ne,typed:Z}),_oe=Gb({DenseMatrix:er,concat:fr,equalScalar:ar,matrix:Ne,typed:Z}),$oe=jU({DenseMatrix:er,concat:fr,matrix:Ne,typed:Z}),Foe=Jre({addScalar:Gr,combinations:Bu,divideScalar:Rr,isInteger:bt,isNegative:Zn,multiplyScalar:qr,typed:Z}),Ea=EV({BigNumber:_e,DenseMatrix:er,Fraction:ga,concat:fr,config:ge,equalScalar:ar,matrix:Ne,typed:Z}),Bx=TV({concat:fr,matrix:Ne,typed:Z}),Boe=dx({add:ur,typed:Z,unaryPlus:ap}),op=ZV({equal:jt,typed:Z}),Roe=Xb({matrix:Ne,number:Mn,subtract:Lr,typed:Z}),Poe=Vee({abs:ht,addScalar:Gr,deepEqual:op,divideScalar:Rr,multiplyScalar:qr,sqrt:on,subtractScalar:Ht,typed:Z}),Iu=eZ({addScalar:Gr,conj:ya,multiplyScalar:qr,size:nt,typed:Z}),zoe=BV({compareText:Bx,isZero:an,typed:Z}),Rx=Ub({DenseMatrix:er,config:ge,equalScalar:ar,matrix:Ne,round:$i,typed:Z,zeros:et}),Ioe=Qk({BigNumber:_e,DenseMatrix:er,concat:fr,config:ge,equalScalar:ar,matrix:Ne,round:$i,typed:Z,zeros:et}),Loe=XW({abs:ht,addScalar:Gr,divideScalar:Rr,isPositive:ba,multiplyScalar:qr,smaller:ft,sqrt:on,typed:Z}),Px=oG({DenseMatrix:er,smaller:ft}),ot=lG({ImmutableDenseMatrix:Px,getMatrixDataType:Kf}),pt=UV({DenseMatrix:er,concat:fr,config:ge,matrix:Ne,typed:Z}),sp=Yj({Complex:Nr,config:ge,divideScalar:Rr,typed:Z}),qoe=lV({DenseMatrix:er,divideScalar:Rr,equalScalar:ar,matrix:Ne,multiplyScalar:qr,subtractScalar:Ht,typed:Z}),koe=Wq({flatten:$o,matrix:Ne,size:nt,typed:Z}),Uoe=ox({config:ge,numeric:Lt,smaller:ft,typed:Z}),zx=Hb({DenseMatrix:er,concat:fr,config:ge,equalScalar:ar,matrix:Ne,round:$i,typed:Z,zeros:et}),yr=pU({addScalar:Gr,dot:Iu,equalScalar:ar,matrix:Ne,multiplyScalar:qr,typed:Z}),Hoe=Qj({Complex:Nr,config:ge,divideScalar:Rr,typed:Z}),joe=Wb({DenseMatrix:er,concat:fr,equalScalar:ar,matrix:Ne,typed:Z}),Lu=QV({compare:Ea,isNaN:To,isNumeric:wa,typed:Z}),Voe=bV({DenseMatrix:er,concat:fr,equalScalar:ar,matrix:Ne,typed:Z,zeros:et}),Ix=$Y({SparseMatrix:Tn,abs:ht,add:ur,divideScalar:Rr,larger:pt,largerEq:zu,multiply:yr,subtract:Lr,transpose:Oo,typed:Z}),_t=rx({add:ur,matrix:Ne,typed:Z,zeros:et}),up=px({add:ur,config:ge,numeric:Lt,typed:Z}),Goe=nZ({add:ur,matrix:Ne,typed:Z}),Lx=fV({DenseMatrix:er,divideScalar:Rr,equalScalar:ar,matrix:Ne,multiplyScalar:qr,subtractScalar:Ht,typed:Z}),Woe=Ste({Complex:Nr,add:ur,multiply:yr,number:Mn,typed:Z}),lp=xk({DenseMatrix:er,config:ge,equalScalar:ar,matrix:Ne,round:$i,typed:Z,zeros:et}),pn=CV({compare:Ea,typed:Z}),Zoe=ete({addScalar:Gr,combinations:Bu,isInteger:bt,isNegative:Zn,isPositive:ba,larger:pt,typed:Z}),Yoe=lH({matrix:Ne,multiply:yr,subtract:Lr,typed:Z}),qx=wee({divideScalar:Rr,isZero:an,matrix:Ne,multiply:yr,subtractScalar:Ht,typed:Z,unaryMinus:fn}),Xoe=_U({concat:fr,equalScalar:ar,matrix:Ne,multiplyScalar:qr,typed:Z}),kx=pG({larger:pt,smaller:ft}),Ux=Tk({Complex:Nr,DenseMatrix:er,ceil:lp,equalScalar:ar,floor:Rx,matrix:Ne,typed:Z,zeros:et}),Hx=iZ({Index:ot,typed:Z}),Koe=Zee({abs:ht,add:ur,addScalar:Gr,config:ge,divideScalar:Rr,equalScalar:ar,flatten:$o,isNumeric:wa,isZero:an,matrix:Ne,multiply:yr,multiplyScalar:qr,smaller:ft,subtract:Lr,typed:Z}),Joe=NU({BigNumber:_e,add:ur,config:ge,equal:jt,isInteger:bt,mod:zx,smaller:ft,typed:Z,xgcd:Ox}),Qoe=nU({concat:fr,equalScalar:ar,matrix:Ne,typed:Z}),ese=Kj({Complex:Nr,config:ge,divideScalar:Rr,log:sp,typed:Z}),cp=ix({config:ge,larger:pt,numeric:Lt,typed:Z}),rse=MW({DenseMatrix:er,Index:ot,compareNatural:pn,size:nt,subset:_t,typed:Z}),tse=$W({DenseMatrix:er,Index:ot,compareNatural:pn,size:nt,subset:_t,typed:Z}),nse=PW({Index:ot,compareNatural:pn,size:nt,subset:_t,typed:Z}),ase=qW({Index:ot,compareNatural:pn,size:nt,subset:_t,typed:Z}),li=LV({DenseMatrix:er,concat:fr,config:ge,matrix:Ne,typed:Z}),ise=rG({compare:Ea,compareNatural:pn,matrix:Ne,typed:Z}),ose=XV({DenseMatrix:er,concat:fr,config:ge,equalScalar:ar,matrix:Ne,typed:Z}),sse=ax({concat:fr,equalScalar:ar,matrix:Ne,not:Xs,typed:Z,zeros:et}),ci=Qb({bignumber:Mt,matrix:Ne,add:ur,config:ge,isPositive:ba,larger:pt,largerEq:zu,smaller:ft,smallerEq:li,typed:Z}),use=ex({Index:ot,matrix:Ne,range:ci,typed:Z}),jx=OW({DenseMatrix:er,Index:ot,compareNatural:pn,size:nt,subset:_t,typed:Z}),lse=IW({Index:ot,compareNatural:pn,size:nt,subset:_t,typed:Z}),Vx=jW({Index:ot,concat:fr,setDifference:jx,size:nt,subset:_t,typed:Z}),Gx=mG({FibonacciHeap:kx,addScalar:Gr,equalScalar:ar}),Wx=Yb({Index:ot,matrix:Ne,range:ci,typed:Z}),Sa=See({abs:ht,addScalar:Gr,det:qx,divideScalar:Rr,identity:Yn,matrix:Ne,multiply:yr,typed:Z,unaryMinus:fn}),Zx=oY({DenseMatrix:er,Spa:Gx,SparseMatrix:Tn,abs:ht,addScalar:Gr,divideScalar:Rr,equalScalar:ar,larger:pt,matrix:Ne,multiplyScalar:qr,subtractScalar:Ht,typed:Z,unaryMinus:fn}),cse=Dee({Complex:Nr,add:ur,ctranspose:rp,deepEqual:op,divideScalar:Rr,dot:Iu,dotDivide:_o,equal:jt,inv:Sa,matrix:Ne,multiply:yr,typed:Z}),Vt=Vj({Complex:Nr,config:ge,fraction:_i,identity:Yn,inv:Sa,matrix:Ne,multiply:yr,number:Mn,typed:Z}),Yx=BW({DenseMatrix:er,Index:ot,compareNatural:pn,size:nt,subset:_t,typed:Z}),fse=GW({Index:ot,concat:fr,setIntersect:Yx,setSymDifference:Vx,size:nt,subset:_t,typed:Z}),pse=Bee({abs:ht,add:ur,identity:Yn,inv:Sa,map:xa,max:cp,multiply:yr,size:nt,sqrt:on,subtract:Lr,typed:Z}),je=wG({BigNumber:_e,Complex:Nr,Fraction:ga,abs:ht,addScalar:Gr,config:ge,divideScalar:Rr,equal:jt,fix:Ux,format:Mo,isNumeric:wa,multiplyScalar:qr,number:Mn,pow:Vt,round:$i,subtractScalar:Ht}),dse=tne({BigNumber:_e,Unit:je,config:ge}),vse=zne({BigNumber:_e,Unit:je,config:ge}),mse=Dne({BigNumber:_e,Unit:je,config:ge}),hse=ine({BigNumber:_e,Unit:je,config:ge}),gse=Nne({BigNumber:_e,Unit:je,config:ge}),yse=one({BigNumber:_e,Unit:je,config:ge}),bse=nne({BigNumber:_e,Unit:je,config:ge}),xse=yne({BigNumber:_e,Unit:je,config:ge}),wse=rV({DenseMatrix:er,concat:fr,equalScalar:ar,matrix:Ne,pow:Vt,typed:Z}),Ese=rne({BigNumber:_e,Unit:je,config:ge}),Sse=ane({BigNumber:_e,Unit:je,config:ge}),Ase=$ee({abs:ht,add:ur,identity:Yn,inv:Sa,multiply:yr,typed:Z}),Dse=Mne({BigNumber:_e,Unit:je,config:ge}),Xx=ij({addScalar:Gr,ceil:lp,conj:ya,divideScalar:Rr,dotDivide:_o,exp:Ax,i:xx,log2:Dx,matrix:Ne,multiplyScalar:qr,pow:Vt,tau:Ex,typed:Z}),fp=pre({BigNumber:_e,Complex:Nr,config:ge,multiplyScalar:qr,pow:Vt,typed:Z}),Cse=Kte({BigNumber:_e,Unit:je,config:ge}),Nse=hne({BigNumber:_e,Unit:je,config:ge}),Mse=sj({conj:ya,dotDivide:_o,fft:Xx,typed:Z}),Tse=cne({BigNumber:_e,Unit:je,config:ge}),Ose=One({BigNumber:_e,Unit:je,config:ge}),_se=ene({BigNumber:_e,Unit:je,config:ge}),$se=Ine({BigNumber:_e,Unit:je,config:ge}),Fse=$ne({BigNumber:_e,Unit:je,config:ge}),Bse=bne({BigNumber:_e,Unit:je,config:ge}),Rse=lne({BigNumber:_e,Unit:je,config:ge}),Pse=jne({BigNumber:_e,Unit:je,config:ge}),zse=kne({BigNumber:_e,Unit:je,config:ge}),Ise=Vne({BigNumber:_e,Unit:je,config:ge}),Lse=gne({BigNumber:_e,Unit:je,config:ge}),qse=xne({BigNumber:_e,Unit:je,config:ge}),kse=Qte({BigNumber:_e,Unit:je,config:ge}),Use=wne({BigNumber:_e,Unit:je,config:ge}),Hse=Rne({BigNumber:_e,Unit:je,config:ge}),jse=Xte({BigNumber:_e,Unit:je,config:ge}),Vse=Pne({BigNumber:_e,Unit:je,config:ge}),Gse=Ene({BigNumber:_e,Unit:je,config:ge}),Wse=Cne({BigNumber:_e,Unit:je,config:ge}),Zse=fne({BigNumber:_e,Unit:je,config:ge}),Yse=NG({Unit:je,typed:Z}),Yr=Hee({divideScalar:Rr,equalScalar:ar,inv:Sa,matrix:Ne,multiply:yr,typed:Z}),Xse=dne({BigNumber:_e,Unit:je,config:ge}),Fo=hre({gamma:fp,typed:Z}),Kse=Tne({BigNumber:_e,Unit:je,config:ge}),Jse=qne({BigNumber:_e,Unit:je,config:ge}),Qse=sne({BigNumber:_e,Unit:je,config:ge}),Kx=BY({DenseMatrix:er,lsolve:Fx,lup:Zx,matrix:Ne,slu:Ix,typed:Z,usolve:ip}),eue=une({BigNumber:_e,Unit:je,config:ge}),rue=Lne({BigNumber:_e,Unit:je,config:ge}),tue=xre({add:ur,divide:Yr,factorial:Fo,isInteger:bt,isPositive:ba,multiply:yr,typed:Z}),nue=Ere({factorial:Fo,typed:Z}),aue=Une({BigNumber:_e,Unit:je,config:ge}),iue=PY({add:ur,cbrt:_x,divide:Yr,equalScalar:ar,im:Jf,isZero:an,multiply:yr,re:Qf,sqrt:on,subtract:Lr,typeOf:Nx,typed:Z,unaryMinus:fn}),oue=UW({compareNatural:pn,typed:Z}),sue=dj({abs:ht,add:ur,bignumber:Mt,divide:Yr,isNegative:Zn,isPositive:ba,larger:pt,map:xa,matrix:Ne,max:cp,multiply:yr,smaller:ft,subtract:Lr,typed:Z,unaryMinus:fn}),Jx=Zre({bignumber:Mt,addScalar:Gr,combinations:Bu,divideScalar:Rr,factorial:Fo,isInteger:bt,isNegative:Zn,larger:pt,multiplyScalar:qr,number:Mn,pow:Vt,subtractScalar:Ht,typed:Z}),uue=SG({Unit:je,typed:Z}),lue=Xre({addScalar:Gr,isInteger:bt,isNegative:Zn,stirlingS2:Jx,typed:Z}),Qx=Oee({abs:ht,add:ur,addScalar:Gr,atan:Sx,bignumber:Mt,column:Wx,complex:Ru,config:ge,cos:Xf,diag:$x,divideScalar:Rr,dot:Iu,equal:jt,flatten:$o,im:Jf,inv:Sa,larger:pt,matrix:Ne,matrixFromColumns:tp,multiply:yr,multiplyScalar:qr,number:Mn,qr:np,re:Qf,reshape:Tx,sin:Pu,size:nt,smaller:ft,sqrt:on,subtract:Lr,typed:Z,usolve:ip,usolveAll:Lx}),cue=vne({BigNumber:_e,Unit:je,config:ge}),fue=_ne({BigNumber:_e,Unit:je,config:ge}),pue=yre({divide:Yr,dotDivide:_o,isNumeric:wa,log:sp,map:xa,matrix:Ne,multiply:yr,sum:up,typed:Z}),ew=vx({add:ur,divide:Yr,typed:Z}),due=Fne({BigNumber:_e,Unit:je,config:ge}),vue=Jte({BigNumber:_e,Unit:je,config:ge}),mue=hx({bignumber:Mt,add:ur,compare:Ea,divide:Yr,isInteger:bt,larger:pt,multiply:yr,partitionSelect:Lu,smaller:ft,smallerEq:li,subtract:Lr,typed:Z}),pp=mx({add:ur,apply:ep,divide:Yr,isNaN:To,multiply:yr,subtract:Lr,typed:Z}),hue=pne({BigNumber:_e,Unit:je,config:ge}),rw=Qee({add:ur,compare:Ea,divide:Yr,partitionSelect:Lu,typed:Z}),gue=ore({add:ur,divide:Yr,matrix:Ne,mean:ew,multiply:yr,pow:Vt,sqrt:on,subtract:Lr,sum:up,typed:Z}),yue=Dte({Complex:Nr,add:ur,divide:Yr,matrix:Ne,multiply:yr,typed:Z}),bue=rre({abs:ht,map:xa,median:rw,subtract:Lr,typed:Z}),xue=gx({map:xa,sqrt:on,typed:Z,variance:pp}),wue=wj({BigNumber:_e,Complex:Nr,add:ur,config:ge,divide:Yr,equal:jt,factorial:Fo,gamma:fp,isNegative:Zn,multiply:yr,pi:hc,pow:Vt,sin:Pu,smallerEq:li,subtract:Lr,typed:Z}),dp=JW({abs:ht,add:ur,conj:ya,ctranspose:rp,eigs:Qx,equalScalar:ar,larger:pt,matrix:Ne,multiply:yr,pow:Vt,smaller:ft,sqrt:on,typed:Z}),tw=UH({BigNumber:_e,DenseMatrix:er,SparseMatrix:Tn,addScalar:Gr,config:ge,cos:Xf,matrix:Ne,multiplyScalar:qr,norm:dp,sin:Pu,typed:Z,unaryMinus:fn}),Eue=Hne({BigNumber:_e,Unit:je,config:ge}),nw=Iee({identity:Yn,matrix:Ne,multiply:yr,norm:dp,qr:np,subtract:Lr,typed:Z}),Sue=qH({multiply:yr,rotationMatrix:tw,typed:Z}),aw=Pee({abs:ht,add:ur,concat:fr,identity:Yn,index:Hx,lusolve:Kx,matrix:Ne,matrixFromColumns:tp,multiply:yr,range:ci,schur:nw,subset:_t,subtract:Lr,transpose:Oo,typed:Z}),Aue=qee({matrix:Ne,multiply:yr,sylvester:aw,transpose:Oo,typed:Z}),Fi={},Bi={},iw={},lt=uZ({mathWithTransform:Bi}),Ri=BZ({Node:lt}),On=PZ({Node:lt}),Aa=IZ({Node:lt}),ow=UZ({Node:lt}),Pi=pZ({Node:lt}),sw=yZ({Node:lt,ResultSet:wx}),uw=xZ({Node:lt}),Xn=MZ({Node:lt}),lw=qZ({Node:lt}),Due=Mte({classes:iw}),vp=UY({math:Fi,typed:Z}),cw=OZ({Node:lt,typed:Z}),Cue=bee({Chain:vp,typed:Z}),zi=$Z({Node:lt,size:nt}),Ii=cZ({Node:lt,subset:_t}),fw=hZ({matrix:Ne,Node:lt,subset:_t}),Kn=VZ({Unit:je,Node:lt,math:Fi}),Jn=WZ({Node:lt,SymbolNode:Kn,math:Fi}),dn=YZ({AccessorNode:Ii,ArrayNode:Pi,AssignmentNode:fw,BlockNode:sw,ConditionalNode:uw,ConstantNode:Xn,FunctionAssignmentNode:cw,FunctionNode:Jn,IndexNode:zi,ObjectNode:Ri,OperatorNode:On,ParenthesisNode:Aa,RangeNode:lw,RelationalNode:ow,SymbolNode:Kn,config:ge,numeric:Lt,typed:Z}),pw=mte({ConstantNode:Xn,FunctionNode:Jn,OperatorNode:On,ParenthesisNode:Aa,parse:dn,typed:Z}),mp=cte({bignumber:Mt,fraction:_i,AccessorNode:Ii,ArrayNode:Pi,ConstantNode:Xn,FunctionNode:Jn,IndexNode:zi,ObjectNode:Ri,OperatorNode:On,SymbolNode:Kn,config:ge,mathWithTransform:Bi,matrix:Ne,typed:Z}),Nue=KZ({parse:dn,typed:Z}),hp=pte({AccessorNode:Ii,ArrayNode:Pi,ConstantNode:Xn,FunctionNode:Jn,IndexNode:zi,ObjectNode:Ri,OperatorNode:On,ParenthesisNode:Aa,SymbolNode:Kn,add:ur,divide:Yr,equal:jt,isZero:an,multiply:yr,parse:dn,pow:Vt,subtract:Lr,typed:Z}),qu=QZ({parse:dn,typed:Z}),dw=LY({evaluate:qu}),vw=tY({evaluate:qu}),ku=ste({bignumber:Mt,fraction:_i,AccessorNode:Ii,ArrayNode:Pi,ConstantNode:Xn,FunctionNode:Jn,IndexNode:zi,ObjectNode:Ri,OperatorNode:On,ParenthesisNode:Aa,SymbolNode:Kn,add:ur,config:ge,divide:Yr,equal:jt,isZero:an,mathWithTransform:Bi,matrix:Ne,multiply:yr,parse:dn,pow:Vt,resolve:pw,simplifyConstant:mp,simplifyCore:hp,subtract:Lr,typed:Z}),Mue=gte({OperatorNode:On,parse:dn,simplify:ku,typed:Z}),Tue=tte({parse:dn,typed:Z}),Oue=aY({Parser:vw,typed:Z}),_ue=wte({bignumber:Mt,fraction:_i,AccessorNode:Ii,ArrayNode:Pi,ConstantNode:Xn,FunctionNode:Jn,IndexNode:zi,ObjectNode:Ri,OperatorNode:On,ParenthesisNode:Aa,SymbolNode:Kn,add:ur,config:ge,divide:Yr,equal:jt,isZero:an,mathWithTransform:Bi,matrix:Ne,multiply:yr,parse:dn,pow:Vt,simplify:ku,simplifyConstant:mp,simplifyCore:hp,subtract:Lr,typed:Z}),$ue=bte({ConstantNode:Xn,FunctionNode:Jn,OperatorNode:On,ParenthesisNode:Aa,SymbolNode:Kn,config:ge,equal:jt,isZero:an,numeric:Lt,parse:dn,simplify:ku,typed:Z}),Fue=gee({Help:dw,mathWithTransform:Bi,typed:Z});Hr(Fi,{e:rg,false:iie,fineStructure:oie,i:xx,Infinity:sie,LN10:uie,LOG10E:lie,NaN:cie,null:fie,phi:pie,SQRT1_2:vie,sackurTetrode:mie,tau:Ex,true:hie,E:rg,version:gie,efimovFactor:yie,LN2:bie,pi:hc,replacer:xie,reviver:Due,SQRT2:wie,typed:Z,PI:hc,weakMixingAngle:Eie,abs:ht,acos:Sie,acot:Aie,acsc:Die,addScalar:Gr,arg:Cie,asech:Nie,asinh:Mie,atan:Sx,atanh:Tie,bigint:Oie,bitNot:_ie,boolean:$ie,clone:Fie,combinations:Bu,complex:Ru,conj:ya,cos:Xf,cot:Bie,csc:Rie,cube:Pie,equalScalar:ar,erf:zie,exp:Ax,expm1:Iie,filter:Lie,forEach:qie,format:Mo,getMatrixDataType:Kf,hex:kie,im:Jf,isInteger:bt,isNegative:Zn,isPositive:ba,isZero:an,LOG2E:Uie,lgamma:Hie,log10:jie,log2:Dx,map:xa,multiplyScalar:qr,not:Xs,number:Mn,oct:Vie,pickRandom:Gie,print:Wie,random:Zie,re:Qf,sec:Yie,sign:Cx,sin:Pu,splitUnit:Xie,square:Kie,string:Jie,subtractScalar:Ht,tan:Qie,typeOf:Nx,acosh:eoe,acsch:roe,apply:ep,asec:toe,bignumber:Mt,chain:Cue,combinationsWithRep:noe,cosh:aoe,csch:ioe,isNaN:To,isPrime:ooe,randomInt:soe,sech:uoe,sinh:loe,sparse:coe,sqrt:on,tanh:foe,unaryMinus:fn,acoth:poe,bin:doe,coth:voe,fraction:_i,isNumeric:wa,matrix:Ne,matrixFromFunction:moe,mode:hoe,numeric:Lt,prod:Mx,reshape:Tx,size:nt,squeeze:goe,transpose:Oo,xgcd:Ox,zeros:et,asin:yoe,cbrt:_x,concat:fr,count:boe,ctranspose:rp,diag:$x,divideScalar:Rr,dotDivide:_o,equal:jt,flatten:$o,hasNumericValue:xoe,identity:Yn,kron:woe,largerEq:zu,leftShift:Eoe,lsolve:Fx,matrixFromColumns:tp,nthRoot:Soe,ones:Aoe,qr:np,resize:Doe,rightArithShift:Coe,round:$i,smaller:ft,subtract:Lr,to:Noe,unaryPlus:ap,usolve:ip,xor:Moe,add:ur,atan2:Toe,bitAnd:Ooe,bitOr:_oe,bitXor:$oe,catalan:Foe,compare:Ea,compareText:Bx,cumsum:Boe,deepEqual:op,diff:Roe,distance:Poe,dot:Iu,equalText:zoe,floor:Rx,gcd:Ioe,hypot:Loe,larger:pt,log:sp,lsolveAll:qoe,matrixFromRows:koe,min:Uoe,mod:zx,multiply:yr,nthRoots:Hoe,or:joe,partitionSelect:Lu,rightLogShift:Voe,slu:Ix,subset:_t,sum:up,trace:Goe,usolveAll:Lx,zpk2tf:Woe,ceil:lp,compareNatural:pn,composition:Zoe,cross:Yoe,det:qx,dotMultiply:Xoe,fix:Ux,index:Hx,intersect:Koe,invmod:Joe,lcm:Qoe,log1p:ese,max:cp,setCartesian:rse,setDistinct:tse,setIsSubset:nse,setPowerset:ase,smallerEq:li,sort:ise,unequal:ose,and:sse,range:ci,row:use,setDifference:jx,setMultiplicity:lse,setSymDifference:Vx,column:Wx,inv:Sa,lup:Zx,pinv:cse,pow:Vt,setIntersect:Yx,setUnion:fse,sqrtm:pse,vacuumImpedance:dse,wienDisplacement:vse,atomicMass:mse,bohrMagneton:hse,boltzmann:gse,conductanceQuantum:yse,coulomb:bse,deuteronMass:xse,dotPow:wse,electricConstant:Ese,elementaryCharge:Sse,expm:Ase,faraday:Dse,fft:Xx,gamma:fp,gravitationConstant:Cse,hartreeEnergy:Nse,ifft:Mse,klitzing:Tse,loschmidt:Ose,magneticConstant:_se,molarMass:$se,molarPlanckConstant:Fse,neutronMass:Bse,nuclearMagneton:Rse,planckCharge:Pse,planckLength:zse,planckTemperature:Ise,protonMass:Lse,quantumOfCirculation:qse,reducedPlanckConstant:kse,rydberg:Use,secondRadiation:Hse,speedOfLight:jse,stefanBoltzmann:Vse,thomsonCrossSection:Gse,avogadro:Wse,bohrRadius:Zse,createUnit:Yse,divide:Yr,electronMass:Xse,factorial:Fo,firstRadiation:Kse,gravity:Jse,inverseConductanceQuantum:Qse,lusolve:Kx,magneticFluxQuantum:eue,molarMassC12:rue,multinomial:tue,parse:dn,permutations:nue,planckMass:aue,polynomialRoot:iue,resolve:pw,setSize:oue,simplifyConstant:mp,solveODE:sue,stirlingS2:Jx,unit:uue,bellNumbers:lue,compile:Nue,eigs:Qx,fermiCoupling:cue,gasConstant:fue,kldivergence:pue,mean:ew,molarVolume:due,planckConstant:vue,quantileSeq:mue,simplifyCore:hp,variance:pp,classicalElectronRadius:hue,evaluate:qu,median:rw,simplify:ku,symbolicEqual:Mue,corr:gue,freqz:yue,leafCount:Tue,mad:bue,parser:Oue,rationalize:_ue,std:xue,zeta:wue,derivative:$ue,norm:dp,rotationMatrix:tw,help:Fue,planckTime:Eue,schur:nw,rotate:Sue,sylvester:aw,lyap:Aue,config:ge});Hr(Bi,Fi,{filter:eae({typed:Z}),forEach:nae({typed:Z}),map:lae({typed:Z}),apply:Zne({isInteger:bt,typed:Z}),or:Jae({DenseMatrix:er,concat:fr,equalScalar:ar,matrix:Ne,typed:Z}),and:Yae({add:ur,concat:fr,equalScalar:ar,matrix:Ne,not:Xs,typed:Z,zeros:et}),concat:Oae({isInteger:bt,matrix:Ne,typed:Z}),max:pae({config:ge,larger:pt,numeric:Lt,typed:Z}),print:Gae({add:ur,matrix:Ne,typed:Z,zeros:et}),bitAnd:rie({add:ur,concat:fr,equalScalar:ar,matrix:Ne,not:Xs,typed:Z,zeros:et}),diff:$ae({bignumber:Mt,matrix:Ne,number:Mn,subtract:Lr,typed:Z}),min:yae({config:ge,numeric:Lt,smaller:ft,typed:Z}),subset:Nae({add:ur,matrix:Ne,typed:Z,zeros:et}),bitOr:aie({DenseMatrix:er,concat:fr,equalScalar:ar,matrix:Ne,typed:Z}),cumsum:Uae({add:ur,typed:Z,unaryPlus:ap}),index:oae({Index:ot,getMatrixDataType:Kf}),sum:zae({add:ur,config:ge,numeric:Lt,typed:Z}),range:wae({bignumber:Mt,matrix:Ne,add:ur,config:ge,isPositive:ba,larger:pt,largerEq:zu,smaller:ft,smallerEq:li,typed:Z}),row:Aae({Index:ot,matrix:Ne,range:ci,typed:Z}),column:Kne({Index:ot,matrix:Ne,range:ci,typed:Z}),mean:mae({add:ur,divide:Yr,typed:Z}),quantileSeq:qae({add:ur,bignumber:Mt,compare:Ea,divide:Yr,isInteger:bt,larger:pt,multiply:yr,partitionSelect:Lu,smaller:ft,smallerEq:li,subtract:Lr,typed:Z}),variance:jae({add:ur,apply:ep,divide:Yr,isNaN:To,multiply:yr,subtract:Lr,typed:Z}),std:Rae({map:xa,sqrt:on,typed:Z,variance:pp})});Hr(iw,{BigNumber:_e,Complex:Nr,Fraction:ga,Matrix:Fu,Node:lt,ObjectNode:Ri,OperatorNode:On,ParenthesisNode:Aa,Range:die,RelationalNode:ow,ResultSet:wx,ArrayNode:Pi,BlockNode:sw,ConditionalNode:uw,ConstantNode:Xn,DenseMatrix:er,RangeNode:lw,Chain:vp,FunctionAssignmentNode:cw,SparseMatrix:Tn,IndexNode:zi,ImmutableDenseMatrix:Px,Index:ot,AccessorNode:Ii,AssignmentNode:fw,FibonacciHeap:kx,Spa:Gx,Unit:je,SymbolNode:Kn,FunctionNode:Jn,Help:dw,Parser:vw});vp.createProxy(Fi);const mw=_.forwardRef(({onChange:e,value:r,dragDirection:t,showDragHandle:n=!0,dragScale:a,selectOnFocus:i=!0,bounds:o=G.R.INFINITE,resetValue:s,style:u,variant:l="outlined",className:c,children:f,onBlur:p,...d},v)=>{const[m,g,y]=ri(r.toString()),[E,h,w]=ri(!0),x=kt(r),b=_.useCallback(()=>{if(w.current)return;h(!0);let B=!1,P=0;try{P=qu(y.current),B=P!=null}catch{B=!1}B?e==null||e(G.R.clamp(o,P)):g(x.current.toString())},[e,g]),D=kt(b),A=_.useCallback(()=>{p==null||p(),b()},[p,b]);_.useEffect(()=>()=>{var B;return(B=D.current)==null?void 0:B.call(D)},[]);const S=_.useCallback(B=>{h(!1),g(B)},[g,h]),C=E?r:m,N=_.useCallback(B=>{h(!1),g(Math.round(G.R.clamp(o,B)).toString())},[g,h]),$=_.useCallback(B=>{h(!0),e==null||e(G.R.clamp(o,Math.round(B)))},[e,h]);return a==null&&G.R.isFinite(o)&&(a={x:G.R.span(o)*.01,y:G.R.span(o)*.02}),Oe.jsxRuntimeExports.jsxs(Si,{ref:v,type:"text",variant:l,value:C.toString(),onChange:S,style:u,selectOnFocus:i,onKeyDown:B=>{ti(B)==="Enter"&&(b(),p==null||p())},onBlur:A,...d,children:[n&&Oe.jsxRuntimeExports.jsx(yu,{direction:t,value:r,onChange:N,dragScale:a,resetValue:s,onDragEnd:$,onBlur:A}),f]})});mw.displayName="InputNumber";const Al="input-switch",gp=_.forwardRef(({className:e,value:r,onChange:t,size:n="medium",...a},i)=>Oe.jsxRuntimeExports.jsx("div",{className:G.CSS(G.CSS.BE(Al,"container"),G.CSS.size(n)),children:Oe.jsxRuntimeExports.jsxs("label",{className:G.CSS(G.CSS.BE(Al,"track"),e),children:[Oe.jsxRuntimeExports.jsx("input",{className:G.CSS.BE(Al,"input"),type:"checkbox",ref:i,checked:r,onChange:o=>t(o.target.checked),value:"",...a}),Oe.jsxRuntimeExports.jsx("span",{className:"pluto-input-switch__slider"})]})}));gp.displayName="InputSwitch";const hw=_.forwardRef(({value:e,style:r,onChange:t,className:n,onFocus:a,selectOnFocus:i=!1,placeholder:o,variant:s="outlined",sharp:u=!1,children:l,...c},f)=>Oe.jsxRuntimeExports.jsx("textarea",{style:r,className:G.CSS(G.CSS.B("textarea"),G.CSS.BM("textarea",s),G.CSS.sharp(u),n),ref:f,value:e,onChange:p=>t(p.target.value.replace(/\n/g,"")),onFocus:p=>{i&&p.target.select(),a==null||a(p)},placeholder:o,...c}));hw.displayName="InputTextArea";const Bue=(e,r)=>new ye.m(e).add(r).sub(ye.m.utcOffset),Rue={x:Number(ye.w.SECOND.valueOf())*.5,y:Number(ye.w.MINUTE.valueOf())},gw=({value:e,onChange:r,tzInfo:t})=>{const n=new ye.m(e,"UTC"),a=n.sub(ye.m.utcOffset);if(a.after(ye.m.DAY)){const s=a.remainder(ye.m.DAY);r(Number(new ye.m(s,"local").valueOf()))}const i=_.useCallback(s=>{let u;if(typeof s=="number")u=new ye.m(s,"UTC");else{if(s.length===0)return;u=new ye.m(s,"local")}r(Number(u.valueOf()))},[r,t]);return{inputValue:n.fString("time",t),ts:n,handleChange:i}},yw=_.forwardRef(({size:e,value:r,tzInfo:t="local",onChange:n,dragDirection:a,showDragHandle:i=!0,className:o,children:s,...u},l)=>{const{inputValue:c,ts:f,handleChange:p}=gw({value:r,onChange:n,tzInfo:t});return Oe.jsxRuntimeExports.jsxs(Si,{ref:l,value:c,className:G.CSS(G.CSS.B("input-time"),o),type:"time",step:"1",onChange:p,...u,children:[i&&Oe.jsxRuntimeExports.jsx(yu,{direction:a,value:Number(f.valueOf()),onChange:p,dragScale:Rue}),s]})});yw.displayName="InputTime";const bw=_.createContext({theme:ye.themeZ.parse(ye.SYNNAX_THEMES.synnaxLight),toggleTheme:()=>{},setTheme:()=>{}}),gc=()=>typeof(window==null?void 0:window.matchMedia)>"u"?null:window.matchMedia("(prefers-color-scheme: dark)"),tg=()=>{var e;return((e=gc())==null?void 0:e.matches)??!0},xw=({theme:e,themes:r=ye.SYNNAX_THEMES,setTheme:t,toggleTheme:n,lightTheme:a="synnaxLight",darkTheme:i="synnaxDark"})=>{const[o,s]=_.useState(tg()?i:a),u=_.useMemo(()=>{if(e!=null){const f=ye.themeZ.parse(ye._.override(ye._.copy(ye.SYNNAX_LIGHT),e)),p=ye.themeZ.parse(ye._.override(ye._.copy(ye.SYNNAX_DARK),e));return e.key!=null&&e.key.length>0&&s(e.key),{synnaxLight:f,synnaxDark:p}}return Object.entries(r).reduce((f,[p,d])=>({...f,[p]:ye.themeZ.parse(d)}),{})},[e,r]),l=_.useCallback(()=>{const f=Object.keys(r),d=(f.indexOf(o)+1)%f.length;s(f[d])},[n,o,r]),c=_.useMemo(()=>u[o],[u,o]);return _.useEffect(()=>{var p;const f=()=>s(tg()?i:a);return(p=gc())==null||p.addEventListener("change",f),()=>{var d;return(d=gc())==null?void 0:d.removeEventListener("change",f)}},[]),{theme:c,toggleTheme:n??l,setTheme:t??s}},Uu=()=>_.useContext(bw),Pue=()=>Uu().theme,zue=gu(ye.Provider.TYPE,({children:e,aetherKey:r,applyCSSVars:t=!0,...n})=>{const a=xw(n),[{path:i},,o]=hu({aetherKey:r,type:ye.Provider.TYPE,schema:ye.Provider.z,initialState:{theme:a.theme}});return _.useEffect(()=>o({theme:a.theme}),[a.theme]),_.useLayoutEffect(()=>{t?G.CSS.applyVars(document.documentElement,n2(a.theme)):G.CSS.removeVars(document.documentElement,"--pluto")},[a.theme]),Oe.jsxRuntimeExports.jsx(bw.Provider,{value:a,children:Oe.jsxRuntimeExports.jsx(Eo,{path:i,children:e})})}),Iue=({...e})=>{const{toggleTheme:r}=Uu(),[t,n]=_.useState(!1);return Oe.jsxRuntimeExports.jsx(gp,{value:t,onChange:a=>{r(),n(a)},...e})},ww=e=>{const{theme:r}=Uu(),t=r.typography[e];return{...t,toString:()=>ye.fontString(r,e),baseSize:r.sizes.base,lineHeightPx:t.lineHeight*r.sizes.base,sizePx:t.size*r.sizes.base}},yp=_.createContext(null),Lue=()=>wf(yp),Dl="sort",que=({hide:e=!1,columns:r,children:t})=>{const n=Qy(),{setTransform:a,deleteTransform:i}=wo(),o=ww("p").toString(),[s,u]=_.useState([null,!1]),[l,c]=_.useState({columns:r}),f=p=>{const[d,v]=s;d===p?v?(u([p,!v]),a(Dl,ng(p,!v))):(u([null,!1]),i(Dl)):(u([p,!0]),a(Dl,ng(p,!0)))};return _.useEffect(()=>{c(p=>({columns:Hue(p.columns.length===0?r:p.columns,n,o)}))},[o,n,r]),Oe.jsxRuntimeExports.jsxs(yp.Provider,{value:l,children:[Oe.jsxRuntimeExports.jsx(Zt.Space,{direction:"x",size:"medium",className:G.CSS(G.CSS.BE("list-col-header","container"),G.CSS.visible(!e)),children:l.columns.filter(({visible:p=!0})=>p).map(({key:p,cWidth:d,name:v})=>{const[m,g]=s;let y;const E=n[0];return p===m&&(y=g?Oe.jsxRuntimeExports.jsx(It.Caret.Up,{}):Oe.jsxRuntimeExports.jsx(It.Caret.Down,{})),Oe.jsxRuntimeExports.jsx(Vu,{className:G.CSS.BE("list-col-header","item"),justify:"spaceBetween",level:"p",endIcon:y,style:{width:d},shrink:!1,onClick:()=>E!=null&&p in E&&f(p),children:v},p.toString())})}),t]})},kue=({entry:e,onSelect:r,className:t,...n})=>{const{columns:a}=Lue();return Oe.jsxRuntimeExports.jsx(t2,{entry:e,onSelect:r,className:G.CSS(t,G.CSS.BE("list-col-item","container"),r!=null&&G.CSS.BEM("list-col-item","container","selectable")),align:"center",size:"medium",...n,children:a.filter(({visible:i=!0})=>i).map(i=>Oe.jsxRuntimeExports.jsx(Uue,{entry:e,col:i},i.key.toString()))},e.key.toString())},Uue=({entry:e,col:{width:r,...t}})=>{const n={width:t.cWidth,userSelect:"none",padding:"1rem",flexShrink:0};if(t.render!=null)return t.render({key:t.key,entry:e,style:n});let a;return t.stringer!=null?a=t.stringer(e):a=e[t.key],Oe.jsxRuntimeExports.jsx(wn,{className:G.CSS.BE("list-col-item-value",t.key.toString()),level:"p",style:n,shade:t.shade,weight:t.weight,children:ye.L(a)},t.key.toString())},Hue=(e,r,t,n=30)=>{const a=jue(r,e);return e.map(i=>{if(i.width!=null)i.cWidth=i.width;else{const{width:o}=ye.dimensions(i.name,t),{width:s}=ye.dimensions(a[i.key],t);i.cWidth=Math.max(o,s)+n}return i})},jue=(e,r)=>{const t={};return e.forEach(n=>r.forEach(({key:a,stringer:i})=>{const o=n[a];if(o==null)return;const s=i!=null?i(n):o.toString();(!(a in t)||s.length>t[a].length)&&(t[a]=s)})),t},ng=(e,r)=>({data:t})=>t.length===0?{data:t,transformed:!1}:{data:[...t].sort(ye.E.newFieldF(e,t[0],!r)),transformed:!0},Vue={Header:que,Item:kue,itemHeight:5.5*6};function Zi(e,r,t){let n=t.initialDeps??[],a;return()=>{var i,o,s,u;let l;t.key&&((i=t.debug)!=null&&i.call(t))&&(l=Date.now());const c=e();if(!(c.length!==n.length||c.some((d,v)=>n[v]!==d)))return a;n=c;let p;if(t.key&&((o=t.debug)!=null&&o.call(t))&&(p=Date.now()),a=r(...c),t.key&&((s=t.debug)!=null&&s.call(t))){const d=Math.round((Date.now()-l)*100)/100,v=Math.round((Date.now()-p)*100)/100,m=v/16,g=(y,E)=>{for(y=String(y);y.length<E;)y=" "+y;return y};console.info(`%c⏱ ${g(v,5)} /${g(d,5)} ms`,`
|
|
141
141
|
font-size: .6rem;
|
|
142
142
|
font-weight: bold;
|
|
143
|
-
color: hsl(${Math.max(0,Math.min(120-120*m,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(u=t==null?void 0:t.onChange)==null||u.call(t,a),a}}function Cl(e,r){if(e===void 0)throw new Error("Unexpected undefined");return e}const Gue=(e,r)=>Math.abs(e-r)<1,Wue=(e,r,t)=>{let n;return function(...a){e.clearTimeout(n),n=e.setTimeout(()=>r.apply(this,a),t)}},Zue=e=>e,Yue=e=>{const r=Math.max(e.startIndex-e.overscan,0),t=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let a=r;a<=t;a++)n.push(a);return n},Xue=(e,r)=>{const t=e.scrollElement;if(!t)return;const n=e.targetWindow;if(!n)return;const a=o=>{const{width:s,height:u}=o;r({width:Math.round(s),height:Math.round(u)})};if(a(t.getBoundingClientRect()),!n.ResizeObserver)return()=>{};const i=new n.ResizeObserver(o=>{const s=o[0];if(s!=null&&s.borderBoxSize){const u=s.borderBoxSize[0];if(u){a({width:u.inlineSize,height:u.blockSize});return}}a(t.getBoundingClientRect())});return i.observe(t,{box:"border-box"}),()=>{i.unobserve(t)}},ag={passive:!0},Kue=typeof window>"u"?!0:"onscrollend"in window,Jue=(e,r)=>{const t=e.scrollElement;if(!t)return;const n=e.targetWindow;if(!n)return;let a=0;const i=Kue?()=>{}:Wue(n,()=>{r(a,!1)},e.options.isScrollingResetDelay),o=l=>()=>{a=t[e.options.horizontal?"scrollLeft":"scrollTop"],i(),r(a,l)},s=o(!0),u=o(!1);return u(),t.addEventListener("scroll",s,ag),t.addEventListener("scrollend",u,ag),()=>{t.removeEventListener("scroll",s),t.removeEventListener("scrollend",u)}},Que=(e,r,t)=>{if(r!=null&&r.borderBoxSize){const n=r.borderBoxSize[0];if(n)return Math.round(n[t.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[t.options.horizontal?"width":"height"])},ele=(e,{adjustments:r=0,behavior:t},n)=>{var a,i;const o=e+r;(i=(a=n.scrollElement)==null?void 0:a.scrollTo)==null||i.call(a,{[n.options.horizontal?"left":"top"]:o,behavior:t})};class rle{constructor(r){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null;const n=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(a=>{a.forEach(i=>{this._measureElement(i.target,i)})}));return{disconnect:()=>{var a;return(a=n())==null?void 0:a.disconnect()},observe:a=>{var i;return(i=n())==null?void 0:i.observe(a,{box:"border-box"})},unobserve:a=>{var i;return(i=n())==null?void 0:i.unobserve(a)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([n,a])=>{typeof a>"u"&&delete t[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Zue,rangeExtractor:Yue,onChange:()=>{},measureElement:Que,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,...t}},this.notify=(t,n)=>{var a,i;const{startIndex:o,endIndex:s}=this.range??{startIndex:void 0,endIndex:void 0},u=this.calculateRange();(t||o!==(u==null?void 0:u.startIndex)||s!==(u==null?void 0:u.endIndex))&&((i=(a=this.options).onChange)==null||i.call(a,this,n))},this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.observer.disconnect(),this.elementsCache.clear()},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.notify(!1,!1);return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((t=this.scrollElement)==null?void 0:t.window)??null,this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.notify(!1,!1)})),this.unsubs.push(this.options.observeElementOffset(this,(a,i)=>{this.scrollAdjustments=0,this.scrollDirection=i?this.getScrollOffset()<a?"forward":"backward":null,this.scrollOffset=a;const o=this.isScrolling;this.isScrolling=i,this.notify(o!==i,i)}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(t,n)=>{const a=new Map,i=new Map;for(let o=n-1;o>=0;o--){const s=t[o];if(a.has(s.lane))continue;const u=i.get(s.lane);if(u==null||s.end>u.end?i.set(s.lane,s):s.end<u.end&&a.set(s.lane,!0),a.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((o,s)=>o.end===s.end?o.index-s.index:o.end-s.end)[0]:void 0},this.getMeasurementOptions=Zi(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,n,a,i,o)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:n,scrollMargin:a,getItemKey:i,enabled:o}),{key:!1}),this.getMeasurements=Zi(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:n,scrollMargin:a,getItemKey:i,enabled:o},s)=>{var u;if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(f=>{this.itemSizeCache.set(f.key,f.size)}));const l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const c=this.measurementsCache.slice(0,l);for(let f=l;f<t;f++){let p=(u=this.measurementsCache[f])==null?void 0:u.measureElement;p||(p=w=>{const x=i(f),b=this.elementsCache.get(x);if(!w){b&&(this.observer.unobserve(b),this.elementsCache.delete(x));return}b!==w&&(b&&this.observer.unobserve(b),this.observer.observe(w),this.elementsCache.set(x,w)),w.isConnected&&this.resizeItem(f,this.options.measureElement(w,void 0,this))});const d=i(f),v=this.options.lanes===1?c[f-1]:this.getFurthestMeasurement(c,f),m=v?v.end+this.options.gap:n+a,g=s.get(d),y=typeof g=="number"?g:this.options.estimateSize(f),E=m+y,h=v?v.lane:f%this.options.lanes;c[f]={index:f,start:m,size:y,end:E,key:d,lane:h,measureElement:p}}return this.measurementsCache=c,c},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=Zi(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(t,n,a)=>this.range=t.length>0&&n>0?tle({measurements:t,outerSize:n,scrollOffset:a}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getIndexes=Zi(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(t,n,a,i)=>n===null?[]:t({startIndex:n.startIndex,endIndex:n.endIndex,overscan:a,count:i}),{key:process.env.NODE_ENV!=="production"&&"getIndexes",debug:()=>this.options.debug}),this.indexFromElement=t=>{const n=this.options.indexAttribute,a=t.getAttribute(n);return a?parseInt(a,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this._measureElement=(t,n)=>{const a=this.indexFromElement(t),i=this.getMeasurements()[a];if(!i||!t.isConnected){this.elementsCache.forEach((s,u)=>{s===t&&(this.observer.unobserve(t),this.elementsCache.delete(u))});return}const o=this.elementsCache.get(i.key);o!==t&&(o&&this.observer.unobserve(o),this.observer.observe(t),this.elementsCache.set(i.key,t)),this.resizeItem(a,this.options.measureElement(t,n,this))},this.resizeItem=(t,n)=>{const a=this.getMeasurements()[t];if(!a)return;const i=this.itemSizeCache.get(a.key)??a.size,o=n-i;o!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(a,o,this):a.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",o),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=o,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(a.index),this.itemSizeCache=new Map(this.itemSizeCache.set(a.key,n)),this.notify(!0,!1))},this.measureElement=t=>{t&&this._measureElement(t,void 0)},this.getVirtualItems=Zi(()=>[this.getIndexes(),this.getMeasurements()],(t,n)=>{const a=[];for(let i=0,o=t.length;i<o;i++){const s=t[i],u=n[s];a.push(u)}return a},{key:process.env.NODE_ENV!=="production"&&"getIndexes",debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{const n=this.getMeasurements();if(n.length!==0)return Cl(n[Ew(0,n.length-1,a=>Cl(n[a]).start,t)])},this.getOffsetForAlignment=(t,n)=>{const a=this.getSize(),i=this.getScrollOffset();n==="auto"&&(t<=i?n="start":t>=i+a?n="end":n="start"),n==="start"?t=t:n==="end"?t=t-a:n==="center"&&(t=t-a/2);const o=this.options.horizontal?"scrollWidth":"scrollHeight",u=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[o]:this.scrollElement[o]:0)-a;return Math.max(Math.min(u,t),0)},this.getOffsetForIndex=(t,n="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));const a=this.getMeasurements()[t];if(!a)return;const i=this.getSize(),o=this.getScrollOffset();if(n==="auto")if(a.end>=o+i-this.options.scrollPaddingEnd)n="end";else if(a.start<=o+this.options.scrollPaddingStart)n="start";else return[o,n];const s=n==="end"?a.end+this.options.scrollPaddingEnd:a.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,n),n]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(t,{align:n="start",behavior:a}={})=>{this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,n),{adjustments:void 0,behavior:a})},this.scrollToIndex=(t,{align:n="auto",behavior:a}={})=>{t=Math.max(0,Math.min(t,this.options.count-1)),this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const i=this.getOffsetForIndex(t,n);if(!i)return;const[o,s]=i;this._scrollToOffset(o,{adjustments:void 0,behavior:a}),a!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(t))){const[l]=Cl(this.getOffsetForIndex(t,s));Gue(l,this.getScrollOffset())||this.scrollToIndex(t,{align:s,behavior:a})}else this.scrollToIndex(t,{align:s,behavior:a})}))},this.scrollBy=(t,{behavior:n}={})=>{this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:n})},this.getTotalSize=()=>{var t;const n=this.getMeasurements();let a;return n.length===0?a=this.options.paddingStart:a=this.options.lanes===1?((t=n[n.length-1])==null?void 0:t.end)??0:Math.max(...n.slice(-this.options.lanes).map(i=>i.end)),a-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(t,{adjustments:n,behavior:a})=>{this.options.scrollToFn(t,{behavior:a,adjustments:n},this)},this.measure=()=>{var t,n;this.itemSizeCache=new Map,(n=(t=this.options).onChange)==null||n.call(t,this,!1)},this.setOptions(r)}}const Ew=(e,r,t,n)=>{for(;e<=r;){const a=(e+r)/2|0,i=t(a);if(i<n)e=a+1;else if(i>n)r=a-1;else return a}return e>0?e-1:0};function tle({measurements:e,outerSize:r,scrollOffset:t}){const n=e.length-1,i=Ew(0,n,s=>e[s].start,t);let o=i;for(;o<n&&e[o].end<t+r;)o++;return{startIndex:i,endIndex:o}}const nle=typeof document<"u"?eo.useLayoutEffect:eo.useEffect;function ale(e){const r=eo.useReducer(()=>({}),{})[1],t={...e,onChange:(a,i)=>{var o;i?to.flushSync(r):r(),(o=e.onChange)==null||o.call(e,a,i)}},[n]=eo.useState(()=>new rle(t));return n.setOptions(t),eo.useEffect(()=>n._didMount(),[]),nle(()=>n._willUpdate()),n}function ile(e){return ale({observeElementRect:Xue,observeElementOffset:Jue,scrollToFn:ele,...e})}const Sw=_.createContext({selected:[]}),Aw=_.createContext({onSelect:()=>{},clear:()=>{},getSelected:()=>[]}),bp=()=>_.useContext(Sw),Dw=()=>bp().selected,Hu=()=>_.useContext(Aw),Cw=_.memo(({value:e,children:r,...t})=>{const n=Ef(),{onSelect:a,clear:i}=Xy({...t,value:e,data:n}),o=kt(e),s=_.useMemo(()=>({selected:ye.o(e)}),[e]),u=_.useMemo(()=>({onSelect:a,clear:i,getSelected:()=>ye.o(o.current)}),[a,i]);return Oe.jsxRuntimeExports.jsx(Aw.Provider,{value:u,children:Oe.jsxRuntimeExports.jsx(Sw.Provider,{value:s,children:r})})});Cw.displayName="List.Selector";const ole=Cw,Nw=["ArrowUp"],Mw=["ArrowDown"],Tw=["Enter"],sle=[Nw,Mw,Tw],Ow=_.createContext({hover:-1,setHover:()=>{}}),xp=()=>_.useContext(Ow),ule=({children:e,initialHover:r=-1,disabled:t=!1})=>{const n=Ef(),{transformedData:a}=Ei(),{onSelect:i}=Hu(),[o,s,u]=ri(r),l=_.useRef(r);_.useEffect(()=>{t&&(l.current=o),s(t?-1:l.current)},[t]),_.useEffect(()=>{o>=a.length&&s(0)},[a.length]);const c=_.useRef(null),f=_.useCallback(({triggers:d,stage:v})=>{if(c.current!=null&&(clearInterval(c.current),c.current=null),v!=="start"||t)return;const m=n();if(ra(d,[Tw])){if(u.current===-1)return;i==null||i(m[u.current].key);return}const g=()=>{const y=n();ra(d,[Nw],!0)?s(E=>E<=0?y.length-1:E-1):ra(d,[Mw],!0)&&s(E=>E>=y.length-1?0:E+1)};g(),c.current=setTimeout(()=>{c.current=setInterval(g,100)},200)},[i,t]);wi({triggers:sle,callback:f,loose:!0});const p=_.useMemo(()=>({hover:o,setHover:s}),[o,s]);return Oe.jsxRuntimeExports.jsx(Ow.Provider,{value:p,children:e})},_w=_.createContext({hasMore:!1,onFetchMore:()=>{}}),$w=_.createContext({setHasMore:()=>{},setOnFetchMore:()=>{}}),lle=()=>_.useContext(_w),cle=()=>_.useContext($w),fle=({children:e})=>{const[r,t]=_.useState(!1),[n,a]=xo(()=>{}),i=_.useCallback(()=>{var u;(u=n.current)==null||u.call(n)},[n]),o=_.useMemo(()=>({hasMore:r,onFetchMore:i}),[r,i]),s=_.useMemo(()=>({setHasMore:t,setOnFetchMore:u=>{a(()=>u)}}),[t,a]);return Oe.jsxRuntimeExports.jsx(_w.Provider,{value:o,children:Oe.jsxRuntimeExports.jsx($w.Provider,{value:s,children:e})})},ple=(e,r,t)=>{var o;const n=e>r?1:-1;let a=e;const i=e+n*2;G.R.contains({lower:0,upper:t.children.length},i)?a=e+n*2:a=e,(o=t.children[a])==null||o.scrollIntoView({block:"nearest",inline:"nearest",behavior:"smooth"})},dle=({itemHeight:e,children:r,overscan:t=5,className:n,...a})=>{var b;const{hasMore:i,onFetchMore:o}=lle(),{hover:s,setHover:u}=xp(),{transformedData:l,emptyContent:c,transformed:f,sourceData:p}=Ei(),d=Dw(),{onSelect:v}=Hu(),m=_.useRef(null),g=ile({count:l.length,getScrollElement:()=>m.current,estimateSize:()=>e,overscan:t}),y=hf(l);_.useLayoutEffect(()=>{y==null||y.length===0||l.length>0&&l[0].key!==y[0].key&&(g==null||g.scrollToIndex(0),u(0))},[l]),_.useEffect(()=>{if(m.current==null)return;const D=g.calculateRange();if(D==null)return;const A=G.R.construct(D.startIndex+2,D.endIndex-2);G.R.contains(A,s)||g.scrollToIndex(s)},[s,e]);const E=g.getVirtualItems(),h=(b=E.at(-1))==null?void 0:b.index,w=l.length;if(_.useEffect(()=>{h===w-1&&i&&(o==null||o())},[h,w,i]),e<=0)throw new Error("itemHeight must be greater than 0");const x=l.length===0;return Oe.jsxRuntimeExports.jsx("div",{ref:m,className:G.CSS(n,G.CSS.BE("list","container"),x&&G.CSS.BM("list","empty")),...a,children:x?c:Oe.jsxRuntimeExports.jsx("div",{className:G.CSS.BE("list","virtualizer"),style:{height:g.getTotalSize()},children:E.map(({index:D,start:A})=>{const S=l[D];let C=D;return f&&(C=p.findIndex(N=>N.key===S.key)),r({key:S.key,sourceIndex:C,index:D,onSelect:v,entry:S,selected:d.includes(S.key),hovered:D===s,translate:A})})})})},Fw=({itemHeight:e=50,...r})=>{const{transformedData:t,transformed:n,emptyContent:a,sourceData:i}=Ei(),{hover:o}=xp(),{selected:s}=bp(),{onSelect:u}=Hu(),l=_.useRef(null),c=hf(o)??0;return _.useLayoutEffect(()=>{l.current!=null&&ple(o,c,l.current)},[o,e]),Oe.jsxRuntimeExports.jsx(Zt.Space,{className:G.CSS.BE("list","container"),ref:l,size:0,...r,children:t.length===0?a:Oe.jsxRuntimeExports.jsx(Oe.jsxRuntimeExports.Fragment,{children:t.map((f,p)=>{let d=p;return n&&(d=i.findIndex(v=>v.key===f.key)),r.children({key:f.key,index:p,sourceIndex:d,onSelect:u,entry:f,selected:s.includes(f.key),hovered:p===o})})})})};Fw.Virtual=dle;const vle={statuses:[],add:()=>{}},wp=_.createContext(vle),Ep=_.useContext,mle=gu(ye.Aggregator.TYPE,({aetherKey:e,children:r,maxHistory:t=500})=>{const[{path:n},{statuses:a},i]=hu({aetherKey:e,type:ye.Aggregator.TYPE,schema:ye.aggregatorStateZ,initialState:{statuses:[]}});if(t!=null&&a.length>t){const u=Math.floor(t*.9);i(l=>({...l,statuses:a.slice(0,u)}))}const o=_.useCallback(u=>{const l=ye.m.now(),c={time:l,key:l.toString(),...u};i(f=>({...f,statuses:[c,...f.statuses]}))},[i]),s=_.useMemo(()=>({statuses:a,add:o}),[a,o]);return Oe.jsxRuntimeExports.jsx(wp.Provider,{value:s,children:Oe.jsxRuntimeExports.jsx(Eo,{path:n,children:r})})}),hle=()=>Ep(wp).add,gle=ye.y.seconds(5),yle=(e={})=>{const{statuses:r}=Ep(wp),{expiration:t=gle}=e,n=kt(r),[a,i]=_.useState(()=>ye.m.now()),[o,s]=_.useState([]),u=r.filter(c=>{const f=c.time.after(a);return f&&setTimeout(()=>i(p=>c.time.after(p)?c.time:p),t.milliseconds),f&&!o.includes(c.key)}),l=_.useCallback(c=>{const f=n.current.find(d=>d.key===c);if(f==null)return;const p=xle(f,n.current);s(d=>[...d,...p.map(v=>v.key)])},[s]);return{statuses:ble(u),silence:l}},ble=e=>e.reduce((r,t)=>{const{message:n,variant:a}=t,i=r.find(o=>o.message===n&&o.variant===a);return i!=null?(i.count+=1,i.time.before(t.time)&&(i.time=t.time)):r.push({...t,count:1}),r},[]),xle=(e,r)=>r.filter(t=>{const{message:n,variant:a}=t;return n===e.message&&a===e.variant}),Bw={info:"var(--pluto-text-color)",error:"var(--pluto-error-z)",warning:"var(--pluto-warning-z)",success:"var(--pluto-primary-z)",loading:"var(--pluto-text-color)",disabled:"var(--pluto-gray-l6)",secondary:"var(--pluto-secondary-z)"},Rw=({variant:e="info",level:r="p",hideIcon:t=!1,className:n,...a})=>{const i=e==="loading"?Oe.jsxRuntimeExports.jsx(It.Loading,{}):Oe.jsxRuntimeExports.jsx(It.Circle,{});return Oe.jsxRuntimeExports.jsx(Vu,{color:Bw[e],className:G.CSS(n,G.CSS.B("status-text")),level:r,startIcon:!t&&i,...a})},wle=({style:e,...r})=>Oe.jsxRuntimeExports.jsx(Zt.Center,{style:e,grow:!0,children:Oe.jsxRuntimeExports.jsx(Rw,{...r})}),Da=Rw;Da.Centered=wle;const Pw=e=>({key:r,...t})=>Oe.jsxRuntimeExports.jsx(e,{...t},r),zw=e=>typeof e=="function",ju={height:150},Nl=Oe.jsxRuntimeExports.jsx(Da.Centered,{level:"h4",variant:"disabled",hideIcon:!0,style:ju,children:"No Results"}),Ele=Oe.jsxRuntimeExports.jsx(Da.Centered,{level:"h4",variant:"disabled",hideIcon:!0,style:ju,children:"Type to search"}),Sle=Oe.jsxRuntimeExports.jsx(Da.Centered,{level:"h2",variant:"disabled",hideIcon:!0,style:ju,children:Oe.jsxRuntimeExports.jsx(It.Loading,{})}),Ale=({error:e})=>Oe.jsxRuntimeExports.jsx(Da.Centered,{level:"h4",variant:"error",style:ju,children:e.message}),Iw=({debounce:e=250,searcher:r,value:t,onChange:n,pageSize:a=10})=>{const[i,o]=ye.usePurePassthrough({value:t,onChange:n,initial:""}),s=kt(i),u=_.useRef(!1),l=_.useRef(!0),c=_.useRef(0),{setSourceData:f,setEmptyContent:p,getDefaultEmptyContent:d}=wo(),{setHasMore:v,setOnFetchMore:m}=cle();_.useEffect(()=>p(Ele),[p]);const g=_.useCallback((h=!1)=>{if(s.current.length>0||u.current||r==null)return;h&&(c.current=0,l.current=!0,v(!0)),u.current=!0,p(Sle),(async()=>{try{const x=await r.page(c.current,a);x.length===0&&p(d()??Nl),x.length<a&&(l.current=!1,v(!1)),c.current+=a,f(h?x:b=>[...b,...x])}catch(x){u.current=!1,p(Oe.jsxRuntimeExports.jsx(Ale,{error:x}))}finally{u.current=!1}})()},[r,f,a]);_.useEffect(()=>{g(!0),m(g)},[g]);const y=Oy(h=>{if(h.length===0){g(!0);return}if(r==null)return p(Nl);r.search(h).then(w=>{w.length===0&&p(Nl),f(w)}).catch(w=>{p(Oe.jsxRuntimeExports.jsx(Da.Centered,{level:"h4",variant:"error",children:w.message}))})},e,[r,f,p]),E=_.useCallback(h=>{o(h),y(h)},[o,y]);return{value:i,onChange:E}},Dle=({children:e=Pw(Si),...r})=>e(Iw(r)),ig=ye.w.getOS()==="Windows",Cle={Meta:ig?It.Keyboard.Control:It.Keyboard.Command,Alt:ig?()=>"Alt":It.Keyboard.Option},Ks=({direction:e="y",className:r,padded:t=!1,...n})=>(t===!0&&(t="center"),Oe.jsxRuntimeExports.jsx("div",{className:G.CSS(G.CSS.B("divider"),G.CSS.dir(e),t!==!1&&G.CSS.BM("divider","padded"),typeof t=="string"&&G.CSS.loc(t),r),...n})),Nle=Object.freeze(Object.defineProperty({__proto__:null,Divider:Ks},Symbol.toStringTag,{value:"Module"})),Mle=e=>_.isValidElement(e)&&!("hydrate"in e.props),Vu=({level:e="h1",divided:r=!1,startIcon:t,endIcon:n,children:a,color:i,className:o,noWrap:s=!1,shade:u,weight:l,...c})=>{const f=xf(i,u),p=_.Children.toArray(t),d=_.Children.toArray(n),v=Sp(e,a,f,u,l);return Oe.jsxRuntimeExports.jsxs(Zt.Space,{className:G.CSS(G.CSS.B("text-icon"),G.CSS.BM("text-icon",e),G.CSS.noWrap(s),o),direction:"x",size:"small",align:"center",...c,style:{...c.style,color:f},children:[p,r&&t!=null&&Oe.jsxRuntimeExports.jsx(Ks,{direction:"y"}),v,r&&n!=null&&Oe.jsxRuntimeExports.jsx(Ks,{direction:"y"}),d]})},Sp=(e,r=[],t,n,a)=>{const i=ye.A(r),o=[];let s=[];const u={color:t,level:e,shade:n,weight:a};return i.forEach(l=>{l!=null&&(typeof l=="string"||typeof l=="number"||!Mle(l)?s.push(l):(s.length>0&&(o.push(Oe.jsxRuntimeExports.jsx(wn,{...u,children:s},s[0])),s=[]),o.push(l)))}),s.length>0&&o.push(Oe.jsxRuntimeExports.jsx(wn,{...u,children:s},s[0])),o.length===1?o[0]:o},yc=()=>document.getElementById("root")??document.body,Lw=_P,Tle={dialogBox:G.To.ZERO,dialogLoc:G.J.BOTTOM_LEFT},Ap=({visible:e,children:r,location:t,keepMounted:n=!0,className:a,variant:i="connected",close:o,maxHeight:s,open:u,toggle:l,...c})=>{const f=_.useRef(null),p=kt(e),d=_.useRef(null),v=_.useRef(void 0),[{dialogBox:m,dialogLoc:g},y]=_.useState({...Tle}),E=_.useCallback(()=>{if(f.current==null||d.current==null||!p.current)return;const C=i==="floating"?$le:Ble,{adjustedDialog:N,location:$}=C({target:f.current,dialog:d.current,initial:t,prefer:v.current!=null?[v.current]:void 0});v.current=$,y({dialogLoc:$,dialogBox:N})},[t,i]);_.useLayoutEffect(()=>{E()},[e,E]),wi({triggers:[["Escape"]],callback:o,loose:!0});const h=Wl(E,{enabled:e}),w=Gl(f,h),x=Wl(E,{enabled:e}),b=Gl(d,x);let D={};i!=="modal"&&(D={...G.q.css(G.To.topLeft(m))},i==="connected"&&(D.width=G.To.width(m))),typeof s=="number"&&(D.maxHeight=s);const A=i==="connected"?Zt.Pack:Zt.Space;gf({ref:d,exclude:[f],onClickOutside:o});let S=Oe.jsxRuntimeExports.jsx(Zt.Space,{ref:b,className:G.CSS(G.CSS.BE("dropdown","dialog"),G.CSS.loc(g.x),G.CSS.loc(g.y),G.CSS.visible(e),G.CSS.M(i),typeof s=="string"&&G.CSS.B(`height-${s}`)),role:"dialog",empty:!0,style:D,children:(n||e)&&r[1]});return i==="floating"?S=to.createPortal(S,yc()):i==="modal"&&(S=to.createPortal(Oe.jsxRuntimeExports.jsx(Zt.Space,{className:G.CSS(G.CSS.BE("dropdown","bg"),G.CSS.visible(e)),role:"dialog",empty:!0,align:"center",children:S}),yc())),Oe.jsxRuntimeExports.jsxs(A,{...c,ref:w,className:G.CSS(a,G.CSS.B("dropdown"),G.CSS.visible(e),G.CSS.M(i),G.CSS.loc(g.x),G.CSS.loc(g.y)),direction:"y",reverse:g.y==="top",children:[r[0],S]})};Ap.displayName="Dropdown";const Ole={alignments:["end"],disable:["center"],prefer:[{y:"bottom"}]},_le=6,$le=({target:e,dialog:r,initial:t,prefer:n})=>{const a=Ec.dialog({container:G.To.construct(0,0,window.innerWidth,window.innerHeight),target:G.To.construct(e),dialog:G.To.construct(r),...Ole,initial:t,prefer:n}),{location:i}=a;return{adjustedDialog:G.To.translate(a.adjustedDialog,"y",ye.G(i.y==="top")*_le),location:i}},Ml={alignments:["center"],disable:[{y:"center"}],initial:{x:"center"},prefer:[{y:"bottom"}]},Fle=1,Ble=({target:e,dialog:r,initial:t=Ml.initial,prefer:n=Ml.prefer})=>{let a=G.To.construct(e),i=G.To.construct(0,0,window.innerWidth,window.innerHeight),o=e.parentElement;for(;o!=null;){if(window.getComputedStyle(o).getPropertyValue("container-type")!=="normal"){i=G.To.construct(o),a=G.To.translate(a,G.q.scale(G.To.topLeft(i),-1));break}o=o.parentElement}const s={target:a,dialog:G.To.resize(G.To.construct(r),"x",G.To.width(a)),container:i,...Ml,initial:t,prefer:n},u=Ec.dialog(s),{location:l}=u;return{adjustedDialog:G.To.translate(u.adjustedDialog,"y",ye.G(l.y==="bottom")*Fle),location:l}},Rle=Object.freeze(Object.defineProperty({__proto__:null,Dialog:Ap,use:Lw},Symbol.toStringTag,{value:"Module"})),bc=Ft.z.object({key:Ft.z.string().or(Ft.z.number()),type:Ft.z.string(),elementID:Ft.z.string().optional(),data:Ft.z.record(Ft.z.unknown()).optional()}),Ple=Ft.z.object({source:bc,items:Ft.z.array(bc)}),qw={key:"",type:""},na={source:qw,items:[]},Dp="file",zle={key:"file",type:Dp},Ile=(e,r)=>e.dataTransfer.effectAllowed==="all"&&r.items.length===0,xc=_.createContext(null),Tl={...na,onSuccessfulDrop:()=>{}},Li=()=>_.useContext(xc),kw=({children:e,useState:r=_.useState,onDropOutside:t})=>{const n=_.useContext(xc),[a,i]=r(na),o=_.useRef(Tl),s=_.useRef(new Set),u=_.useCallback((d,v,m)=>{o.current={source:d,items:v,onSuccessfulDrop:m},i({source:d,items:v})},[i,t]),l=_.useCallback(({target:d,dropped:v})=>{var g,y;const m=o.current.items;(y=(g=o.current).onSuccessfulDrop)==null||y.call(g,{target:d,dropped:v,hauled:m}),o.current=Tl,i(na)},[i]),c=_.useCallback(d=>{let v=null;s.current.forEach(m=>{v==null&&(v=m(o.current,d))}),v!=null&&l(v),o.current=Tl,i(na)},[i]),f=_.useCallback(d=>(s.current.add(d),()=>s.current.delete(d)),[]),p=_.useMemo(()=>n??{state:a,start:u,end:c,drop:l,bind:f},[a,u,c,l,n]);return Oe.jsxRuntimeExports.jsx(xc.Provider,{value:p,children:e})},Cp=()=>{const e=_.useRef(na),r=Li();return r==null||(e.current=r.state),e},Uw=()=>{const e=Li();return e==null?na:e.state},Hw=({type:e,key:r})=>{const t=r??_.useId(),n=_.useMemo(()=>({key:t,type:e}),[t,e]),a=Li();if(a==null)return{startDrag:()=>{},onDragEnd:()=>{}};const{start:i,end:o}=a;return{startDrag:_.useCallback((s,u)=>i(n,s,u),[i,n]),onDragEnd:s=>o(G.q.construct({x:s.screenX,y:s.screenY}))}},Np=({type:e,key:r,canDrop:t,onDrop:n,onDragOver:a})=>{const i=Cp(),o=Li();if(o==null)return{onDragOver:()=>{},onDrop:()=>{}};const{drop:s}=o,u=r??_.useId(),l=_.useMemo(()=>({key:u,type:e}),[u,e]),c=_.useCallback(p=>{t(i.current)&&(p.preventDefault(),a==null||a({event:p,...i.current}))},[i,t]),f=_.useCallback(p=>{t(i.current)&&(p.preventDefault(),s({target:l,dropped:n({...i.current,event:p})}))},[i,n,t,s,l]);return{onDragOver:c,onDrop:f}},jw=({type:e,key:r,...t})=>{const n=r??_.useId(),a=_.useMemo(()=>({key:n,type:e}),[n,e]),i=Hw(a),o=Np({...t,...a});return{...i,...o}},Vw=e=>({items:r})=>r.some(t=>t.type===e),Gw=(e,r)=>r.filter(t=>t.type===e),Lle=({type:e,key:r,...t})=>{const n=Li();if(n==null)return;const a=Cp(),{bind:i}=n,o=_.useRef(!1),s=r??_.useId(),u=_.useMemo(()=>({key:s,type:e}),[s,e]),l=_.useRef({...t,type:e,key:s});_.useEffect(()=>{const c=i((d,v)=>{const{canDrop:m,onDrop:g}=l.current;if(!m(d)||!o.current)return null;const y=g({...d},v);return{target:u,dropped:y}}),f=()=>{const{canDrop:d}=l.current;o.current=!1,d(a.current)},p=d=>{const{onDragOver:v,canDrop:m}=l.current,g=G.To.construct(window.document.documentElement);G.To.contains(g,G.q.construct(d.clientX,d.clientY)),o.current=!0,m(a.current)&&(v==null||v(a.current))};return document.body.addEventListener("dragleave",p),document.body.addEventListener("mouseenter",f),()=>{c(),document.body.removeEventListener("dragleave",p),document.body.removeEventListener("mouseenter",f)}},[])},qle=Object.freeze(Object.defineProperty({__proto__:null,FILE:zle,FILE_TYPE:Dp,Provider:kw,ZERO_DRAGGING_STATE:na,ZERO_ITEM:qw,canDropOfType:Vw,draggingStateZ:Ple,filterByType:Gw,isFileDrag:Ile,itemZ:bc,useContext:Li,useDrag:Hw,useDragAndDrop:jw,useDraggingRef:Cp,useDraggingState:Uw,useDrop:Np,useDropOutside:Lle},Symbol.toStringTag,{value:"Module"})),kle={delay:ye.y.milliseconds(750),startAccelerating:()=>{}},Mp=_.createContext(kle),Ww=()=>_.useContext(Mp),Ule=({delay:e=ye.y.milliseconds(700),accelerate:r=!0,acceleratedDelay:t=ye.y.minutes(60),accelerationDelay:n=ye.y.seconds(0),children:a})=>{const[i,o]=_.useState(!1),s=_.useRef(null),u=_.useCallback(()=>{i||!r||(o(!0),s.current=setTimeout(()=>{o(!1)},new ye.y(n).milliseconds))},[i,n]);return Oe.jsxRuntimeExports.jsx(Mp.Provider,{value:{delay:i?t:e,startAccelerating:u},children:a})},Hle=150,Zw=["top","bottom"],Yw=["left","right"],Xw=[...Yw,...Zw],og=[...Xw,"center"],jle={[G.J.xyToString(G.J.TOP_RIGHT)]:(e,r)=>G.q.translate(e,"x",-G.To.width(r)),[G.J.xyToString(G.J.TOP_LEFT)]:(e,r)=>G.q.translate(e,"x",G.To.width(r)),[G.J.xyToString(G.J.BOTTOM_RIGHT)]:(e,r)=>G.q.translate(e,"x",-G.To.width(r)),[G.J.xyToString(G.J.BOTTOM_LEFT)]:(e,r)=>G.q.translate(e,"x",G.To.width(r))},Ol=(e,r,t)=>{for(const n of t)if(Math.abs(G.To.loc(r,n)-G.To.loc(e,n))>Hle)return n;return t[0]},Kw=(e,r,t)=>{const n=G.J.location.safeParse(e),a=o=>{let s;return o==="center"?s=Xw:G.J.isX(o)?s=["center",...Zw]:s=["center",...Yw],G.J.construct(Ol(r,t,s))};if(n.success)return G.J.constructXY(n.data,a(n.data));if(e!=null){const o={...e};return o.x==null&&o.y!=null?o.x=a(G.J.construct(o.y)):o.y==null&&o.x!=null?o.y=a(G.J.construct(o.x)):o.x==null&&o.y==null&&(o.x=Ol(r,t,og),o.y=a(G.J.construct(o.x))),G.J.constructXY(o)}const i=Ol(r,t,og);return G.J.constructXY(i,a(i))},Vle=(e,r)=>{let t=e;for(;t!=null;){if(t.id===r)return t;t=t.parentElement}return e},Jw=({delay:e,children:r,location:t,hide:n=!1})=>{const{startAccelerating:a,delay:i}=Ww(),o=new ye.y(e??i),[s,u]=_.useState(null),l=_.useRef(null),c=_.useId(),f=_.useRef(null),p=_.useCallback((E,h)=>{var N,$,B;if(!h||n)return(N=f.current)==null||N.call(f),u(null);a();const w=G.To.construct(Vle(E.target,c));if(!G.To.contains(w,G.q.construct(E)))return($=f.current)==null||$.call(f),u(null);const x=G.To.construct(document.documentElement),b=Kw(t,w,x);let D=G.To.xyLoc(w,b);const A=jle[G.J.xyToString(b)];A!=null&&(D=A(D,w));const S=G.To.construct(document.body);u({location:b,position:G.q.translate(D,G.q.scale(G.To.topLeft(S),-1)),triggerDims:G.To.dims(w)}),(B=f.current)==null||B.call(f);const C=P=>{const R=G.q.construct(P);G.To.contains(w,R)||(u(null),document.removeEventListener("mousemove",C),f.current=null,l.current!=null&&clearTimeout(l.current))};document.addEventListener("mousemove",C),f.current=()=>document.removeEventListener("mousemove",C),document.addEventListener("mousedown",()=>{var P;u(null),(P=f.current)==null||P.call(f)},{once:!0})},[a,t,n,c,o.milliseconds]);n&&s!=null&&u(null);const d=_.useCallback(E=>{l.current=setTimeout(()=>p(E,!0),o.milliseconds)},[p,o.milliseconds]),v=_.useCallback(E=>{l.current!=null&&clearTimeout(l.current),p(E,!1)},[p]),[m,g]=r,y=document.body;return Oe.jsxRuntimeExports.jsxs(Oe.jsxRuntimeExports.Fragment,{children:[s!=null&&to.createPortal(Oe.jsxRuntimeExports.jsx("div",{className:G.CSS(G.CSS.B("tooltip"),G.CSS.loc(s.location.x),G.CSS.loc(s.location.y)),style:{"--pos-x":G.CSS.px(s.position.x),"--pos-y":G.CSS.px(s.position.y),"--el-width":G.CSS.px(s.triggerDims.width)},children:zw(m)?m(s):Qw(m)}),y),_.cloneElement(g,{id:c,onMouseEnter:d,onMouseLeave:v,onMouseDown:_.useCallback(E=>{var h,w;v(E),(w=(h=g.props).onMouseDown)==null||w.call(h,E)},[p])})]})},Qw=e=>typeof e=="string"||typeof e=="number"||!_.isValidElement(e)?Oe.jsxRuntimeExports.jsx(wn,{level:"small",children:e}):e,Tp=e=>{const r=_.forwardRef(({tooltipDelay:t,tooltip:n,tooltipLocation:a,...i},o)=>{const s=Oe.jsxRuntimeExports.jsx(e,{ref:o,...i});return n==null?s:Oe.jsxRuntimeExports.jsxs(Jw,{delay:t,location:a,children:[n,s]})});return r.displayName=`Tooltip.Wrap(${e.displayName??e.name})`,r},e3=Tp(({size:e="medium",variant:r="filled",type:t="button",className:n,children:a,iconSpacing:i,sharp:o=!1,disabled:s=!1,loading:u=!1,level:l,triggers:c,startIcon:f=[],delay:p=0,onClick:d,color:v,status:m,...g})=>{u&&(f=[...ye.A(f),Oe.jsxRuntimeExports.jsx(It.Loading,{},"loader")]),i==null&&(i=e==="small"?"small":"medium");const y=E=>{if(s)return;if((p instanceof ye.y?p:ye.y.milliseconds(p)).isZero)return d==null?void 0:d(E)};return wi({triggers:c,callback:_.useCallback(({stage:E})=>{E==="end"&&y(new MouseEvent("click"))},[y])}),Oe.jsxRuntimeExports.jsx(Vu,{el:"button",className:G.CSS(G.CSS.B("btn"),G.CSS.size(e),G.CSS.sharp(o),G.CSS.disabled(s),m!=null&&G.CSS.M(m),G.CSS.BM("btn",r),n),type:t,level:l??ye.ComponentSizeLevels[e],size:i,onClick:y,noWrap:!0,color:G.cssString(v),startIcon:f,...g,children:a})}),Gle=(e,r,t,n)=>r===!0?"var(--pluto-gray-l5)":t!=null?G.cssString(t):e==="filled"?"var(--pluto-text-on-primary)":"var(--pluto-text-color)",r3=_.forwardRef(({children:e,className:r,variant:t="text",size:n="medium",sharp:a=!1,disabled:i=!1,loading:o=!1,onClick:s,...u},l)=>(o&&(e=Oe.jsxRuntimeExports.jsx(It.Loading,{})),Oe.jsxRuntimeExports.jsx("button",{ref:l,className:G.clsx(r,G.CSS.B("btn"),G.CSS.B("btn-icon"),G.CSS.size(n),G.CSS.sharp(a),G.CSS.BM("btn",t),G.CSS.disabled(i)),onClick:i?void 0:s,...u,children:typeof e=="string"?e:_.cloneElement(e,{color:Gle(t,i,u.color),fill:"currentColor",...e.props})})));r3.displayName="ButtonIcon";const Op=Tp(r3),t3=e=>({value:r,onClick:t,onChange:n,checkedVariant:a="filled",uncheckedVariant:i="outlined",rightClickToggle:o=!1,...s})=>Oe.jsxRuntimeExports.jsx(e,{...s,checked:r,onClick:u=>{t==null||t(u),!o&&n(!r)},onContextMenu:u=>{u.preventDefault(),u.stopPropagation(),o&&n(!r)},className:G.CSS(G.CSS.B("btn-toggle"),s.className),variant:r?a:i}),n3=t3(e3);n3.displayName="ButtonToggle";const a3=t3(Op);a3.displayName="ButtonToggleIcon";exports.ALPHANUMERIC_KEYS=yf;exports.ALPHANUMERIC_KEYS_SET=$y;exports.Aggregator=mle;exports.Button=e3;exports.CONTEXT_SELECTED=Sf;exports.CONTEXT_TARGET=Ms;exports.Column=Vue;exports.ColumnContext=yp;exports.Composite=Eo;exports.Config=Ule;exports.Context=Mp;exports.Context$1=vz;exports.ContextMenu=r2;exports.Core=Fw;exports.CoreDateTime=jy;exports.DataProvider=lz;exports.Date=f2;exports.DateTime=KP;exports.Dialog=Ap;exports.Dialog$1=Jw;exports.Divider=Ks;exports.Divider$1=Nle;exports.DragButton=yu;exports.Dropdown=Rle;exports.Editable=Zy;exports.FILE_TYPE=Dp;exports.Haul=qle;exports.Hover=ule;exports.Icon=Op;exports.InfiniteProvider=fle;exports.ItemFrame=t2;exports.KEYS=Fy;exports.Link=az;exports.MOUSE_KEYS=vu;exports.MaybeEditable=tz;exports.Numeric=mw;exports.Provider=zue;exports.Provider$1=WP;exports.Provider$2=kw;exports.Provider$3=s2;exports.Provider$4=Af;exports.Search=Dle;exports.Selector=ole;exports.SketchPicker=wP;exports.Switch=Iue;exports.Switch$1=gp;exports.Symbols=Cle;exports.Text=wn;exports.Text$1=Si;exports.Text$2=Da;exports.TextArea=hw;exports.Time=yw;exports.Toggle=n3;exports.ToggleIcon=a3;exports.WithIcon=Vu;exports.asyncEdit=rz;exports.canDropOfType=Vw;exports.chooseLocation=Kw;exports.combineDateAndTimeValue=Bue;exports.compareArrayDeps=My;exports.compareModeConfigs=Ly;exports.componentRenderProp=Pw;exports.determineMode=kP;exports.diff=zy;exports.edit=Wy;exports.evalColor=xf;exports.eventKey=ti;exports.filter=Ns;exports.filterByType=Gw;exports.flattenConfig=qy;exports.formatChildren=Sp;exports.formatTip=Qw;exports.getRootElement=yc;exports.isRenderProp=zw;exports.k0=It;exports.keyZ=By;exports.keyboardKey=Ry;exports.main=gz;exports.match=ra;exports.matchCallback=LP;exports.mouseKey=Py;exports.mouseKeyZ=RP;exports.purge=bf;exports.purgeMouse=HP;exports.selectValueIsZero=Yy;exports.toCSSVars=n2;exports.triggerZ=PP;exports.use=Pue;exports.use$1=Lw;exports.use$2=wi;exports.use$3=hu;exports.useAggregator=hle;exports.useAsyncEffect=FP;exports.useClickOutside=gf;exports.useCombinedRefs=Gl;exports.useCombinedStateAndRef=ri;exports.useConfig=Ww;exports.useContext=Uu;exports.useContext$1=Uy;exports.useContext$2=Ep;exports.useContextMenu=pz;exports.useDataContext=Ei;exports.useDataUtilContext=wo;exports.useDate=c2;exports.useDebouncedCallback=Oy;exports.useDragAndDrop=jw;exports.useDraggingState=Uw;exports.useDrop=Np;exports.useEffectCompare=Ty;exports.useFlattenedMemoConfig=UP;exports.useGetTransformedData=Ef;exports.useHeld=YP;exports.useHeldRef=Zl;exports.useHoverContext=xp;exports.useMemoCompare=da;exports.useMemoDeepEqualProps=$P;exports.useNotifications=yle;exports.usePrevious=hf;exports.useProvider=xw;exports.useResize=Wl;exports.useSearch=Iw;exports.useSelect=Xy;exports.useSelection=Dw;exports.useSelectionContext=bp;exports.useSelectionUtils=Hu;exports.useSetSourceData=uz;exports.useSourceData=Qy;exports.useStateRef=xo;exports.useSyncedRef=kt;exports.useTime=gw;exports.useTransformedData=sz;exports.useTransforms=_y;exports.useTypography=ww;exports.useUniqueKey=a2;exports.variantColors=Bw;exports.wrap=Tp;exports.wrap$1=gu;
|
|
143
|
+
color: hsl(${Math.max(0,Math.min(120-120*m,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(u=t==null?void 0:t.onChange)==null||u.call(t,a),a}}function Cl(e,r){if(e===void 0)throw new Error("Unexpected undefined");return e}const Gue=(e,r)=>Math.abs(e-r)<1,Wue=(e,r,t)=>{let n;return function(...a){e.clearTimeout(n),n=e.setTimeout(()=>r.apply(this,a),t)}},Zue=e=>e,Yue=e=>{const r=Math.max(e.startIndex-e.overscan,0),t=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let a=r;a<=t;a++)n.push(a);return n},Xue=(e,r)=>{const t=e.scrollElement;if(!t)return;const n=e.targetWindow;if(!n)return;const a=o=>{const{width:s,height:u}=o;r({width:Math.round(s),height:Math.round(u)})};if(a(t.getBoundingClientRect()),!n.ResizeObserver)return()=>{};const i=new n.ResizeObserver(o=>{const s=o[0];if(s!=null&&s.borderBoxSize){const u=s.borderBoxSize[0];if(u){a({width:u.inlineSize,height:u.blockSize});return}}a(t.getBoundingClientRect())});return i.observe(t,{box:"border-box"}),()=>{i.unobserve(t)}},ag={passive:!0},Kue=typeof window>"u"?!0:"onscrollend"in window,Jue=(e,r)=>{const t=e.scrollElement;if(!t)return;const n=e.targetWindow;if(!n)return;let a=0;const i=Kue?()=>{}:Wue(n,()=>{r(a,!1)},e.options.isScrollingResetDelay),o=l=>()=>{a=t[e.options.horizontal?"scrollLeft":"scrollTop"],i(),r(a,l)},s=o(!0),u=o(!1);return u(),t.addEventListener("scroll",s,ag),t.addEventListener("scrollend",u,ag),()=>{t.removeEventListener("scroll",s),t.removeEventListener("scrollend",u)}},Que=(e,r,t)=>{if(r!=null&&r.borderBoxSize){const n=r.borderBoxSize[0];if(n)return Math.round(n[t.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[t.options.horizontal?"width":"height"])},ele=(e,{adjustments:r=0,behavior:t},n)=>{var a,i;const o=e+r;(i=(a=n.scrollElement)==null?void 0:a.scrollTo)==null||i.call(a,{[n.options.horizontal?"left":"top"]:o,behavior:t})};class rle{constructor(r){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null;const n=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(a=>{a.forEach(i=>{this._measureElement(i.target,i)})}));return{disconnect:()=>{var a;return(a=n())==null?void 0:a.disconnect()},observe:a=>{var i;return(i=n())==null?void 0:i.observe(a,{box:"border-box"})},unobserve:a=>{var i;return(i=n())==null?void 0:i.unobserve(a)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([n,a])=>{typeof a>"u"&&delete t[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Zue,rangeExtractor:Yue,onChange:()=>{},measureElement:Que,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,...t}},this.notify=(t,n)=>{var a,i;const{startIndex:o,endIndex:s}=this.range??{startIndex:void 0,endIndex:void 0},u=this.calculateRange();(t||o!==(u==null?void 0:u.startIndex)||s!==(u==null?void 0:u.endIndex))&&((i=(a=this.options).onChange)==null||i.call(a,this,n))},this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.observer.disconnect(),this.elementsCache.clear()},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.notify(!1,!1);return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((t=this.scrollElement)==null?void 0:t.window)??null,this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.notify(!1,!1)})),this.unsubs.push(this.options.observeElementOffset(this,(a,i)=>{this.scrollAdjustments=0,this.scrollDirection=i?this.getScrollOffset()<a?"forward":"backward":null,this.scrollOffset=a;const o=this.isScrolling;this.isScrolling=i,this.notify(o!==i,i)}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(t,n)=>{const a=new Map,i=new Map;for(let o=n-1;o>=0;o--){const s=t[o];if(a.has(s.lane))continue;const u=i.get(s.lane);if(u==null||s.end>u.end?i.set(s.lane,s):s.end<u.end&&a.set(s.lane,!0),a.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((o,s)=>o.end===s.end?o.index-s.index:o.end-s.end)[0]:void 0},this.getMeasurementOptions=Zi(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,n,a,i,o)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:n,scrollMargin:a,getItemKey:i,enabled:o}),{key:!1}),this.getMeasurements=Zi(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:n,scrollMargin:a,getItemKey:i,enabled:o},s)=>{var u;if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(f=>{this.itemSizeCache.set(f.key,f.size)}));const l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const c=this.measurementsCache.slice(0,l);for(let f=l;f<t;f++){let p=(u=this.measurementsCache[f])==null?void 0:u.measureElement;p||(p=w=>{const x=i(f),b=this.elementsCache.get(x);if(!w){b&&(this.observer.unobserve(b),this.elementsCache.delete(x));return}b!==w&&(b&&this.observer.unobserve(b),this.observer.observe(w),this.elementsCache.set(x,w)),w.isConnected&&this.resizeItem(f,this.options.measureElement(w,void 0,this))});const d=i(f),v=this.options.lanes===1?c[f-1]:this.getFurthestMeasurement(c,f),m=v?v.end+this.options.gap:n+a,g=s.get(d),y=typeof g=="number"?g:this.options.estimateSize(f),E=m+y,h=v?v.lane:f%this.options.lanes;c[f]={index:f,start:m,size:y,end:E,key:d,lane:h,measureElement:p}}return this.measurementsCache=c,c},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=Zi(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(t,n,a)=>this.range=t.length>0&&n>0?tle({measurements:t,outerSize:n,scrollOffset:a}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getIndexes=Zi(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(t,n,a,i)=>n===null?[]:t({startIndex:n.startIndex,endIndex:n.endIndex,overscan:a,count:i}),{key:process.env.NODE_ENV!=="production"&&"getIndexes",debug:()=>this.options.debug}),this.indexFromElement=t=>{const n=this.options.indexAttribute,a=t.getAttribute(n);return a?parseInt(a,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this._measureElement=(t,n)=>{const a=this.indexFromElement(t),i=this.getMeasurements()[a];if(!i||!t.isConnected){this.elementsCache.forEach((s,u)=>{s===t&&(this.observer.unobserve(t),this.elementsCache.delete(u))});return}const o=this.elementsCache.get(i.key);o!==t&&(o&&this.observer.unobserve(o),this.observer.observe(t),this.elementsCache.set(i.key,t)),this.resizeItem(a,this.options.measureElement(t,n,this))},this.resizeItem=(t,n)=>{const a=this.getMeasurements()[t];if(!a)return;const i=this.itemSizeCache.get(a.key)??a.size,o=n-i;o!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(a,o,this):a.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",o),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=o,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(a.index),this.itemSizeCache=new Map(this.itemSizeCache.set(a.key,n)),this.notify(!0,!1))},this.measureElement=t=>{t&&this._measureElement(t,void 0)},this.getVirtualItems=Zi(()=>[this.getIndexes(),this.getMeasurements()],(t,n)=>{const a=[];for(let i=0,o=t.length;i<o;i++){const s=t[i],u=n[s];a.push(u)}return a},{key:process.env.NODE_ENV!=="production"&&"getIndexes",debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{const n=this.getMeasurements();if(n.length!==0)return Cl(n[Ew(0,n.length-1,a=>Cl(n[a]).start,t)])},this.getOffsetForAlignment=(t,n)=>{const a=this.getSize(),i=this.getScrollOffset();n==="auto"&&(t<=i?n="start":t>=i+a?n="end":n="start"),n==="start"?t=t:n==="end"?t=t-a:n==="center"&&(t=t-a/2);const o=this.options.horizontal?"scrollWidth":"scrollHeight",u=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[o]:this.scrollElement[o]:0)-a;return Math.max(Math.min(u,t),0)},this.getOffsetForIndex=(t,n="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));const a=this.getMeasurements()[t];if(!a)return;const i=this.getSize(),o=this.getScrollOffset();if(n==="auto")if(a.end>=o+i-this.options.scrollPaddingEnd)n="end";else if(a.start<=o+this.options.scrollPaddingStart)n="start";else return[o,n];const s=n==="end"?a.end+this.options.scrollPaddingEnd:a.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,n),n]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(t,{align:n="start",behavior:a}={})=>{this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,n),{adjustments:void 0,behavior:a})},this.scrollToIndex=(t,{align:n="auto",behavior:a}={})=>{t=Math.max(0,Math.min(t,this.options.count-1)),this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const i=this.getOffsetForIndex(t,n);if(!i)return;const[o,s]=i;this._scrollToOffset(o,{adjustments:void 0,behavior:a}),a!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(t))){const[l]=Cl(this.getOffsetForIndex(t,s));Gue(l,this.getScrollOffset())||this.scrollToIndex(t,{align:s,behavior:a})}else this.scrollToIndex(t,{align:s,behavior:a})}))},this.scrollBy=(t,{behavior:n}={})=>{this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:n})},this.getTotalSize=()=>{var t;const n=this.getMeasurements();let a;return n.length===0?a=this.options.paddingStart:a=this.options.lanes===1?((t=n[n.length-1])==null?void 0:t.end)??0:Math.max(...n.slice(-this.options.lanes).map(i=>i.end)),a-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(t,{adjustments:n,behavior:a})=>{this.options.scrollToFn(t,{behavior:a,adjustments:n},this)},this.measure=()=>{var t,n;this.itemSizeCache=new Map,(n=(t=this.options).onChange)==null||n.call(t,this,!1)},this.setOptions(r)}}const Ew=(e,r,t,n)=>{for(;e<=r;){const a=(e+r)/2|0,i=t(a);if(i<n)e=a+1;else if(i>n)r=a-1;else return a}return e>0?e-1:0};function tle({measurements:e,outerSize:r,scrollOffset:t}){const n=e.length-1,i=Ew(0,n,s=>e[s].start,t);let o=i;for(;o<n&&e[o].end<t+r;)o++;return{startIndex:i,endIndex:o}}const nle=typeof document<"u"?eo.useLayoutEffect:eo.useEffect;function ale(e){const r=eo.useReducer(()=>({}),{})[1],t={...e,onChange:(a,i)=>{var o;i?to.flushSync(r):r(),(o=e.onChange)==null||o.call(e,a,i)}},[n]=eo.useState(()=>new rle(t));return n.setOptions(t),eo.useEffect(()=>n._didMount(),[]),nle(()=>n._willUpdate()),n}function ile(e){return ale({observeElementRect:Xue,observeElementOffset:Jue,scrollToFn:ele,...e})}const Sw=_.createContext({selected:[]}),Aw=_.createContext({onSelect:()=>{},clear:()=>{},getSelected:()=>[]}),bp=()=>_.useContext(Sw),Dw=()=>bp().selected,Hu=()=>_.useContext(Aw),Cw=_.memo(({value:e,children:r,...t})=>{const n=Ef(),{onSelect:a,clear:i}=Xy({...t,value:e,data:n}),o=kt(e),s=_.useMemo(()=>({selected:ye.o(e)}),[e]),u=_.useMemo(()=>({onSelect:a,clear:i,getSelected:()=>ye.o(o.current)}),[a,i]);return Oe.jsxRuntimeExports.jsx(Aw.Provider,{value:u,children:Oe.jsxRuntimeExports.jsx(Sw.Provider,{value:s,children:r})})});Cw.displayName="List.Selector";const ole=Cw,Nw=["ArrowUp"],Mw=["ArrowDown"],Tw=["Enter"],sle=[Nw,Mw,Tw],Ow=_.createContext({hover:-1,setHover:()=>{}}),xp=()=>_.useContext(Ow),ule=({children:e,initialHover:r=-1,disabled:t=!1})=>{const n=Ef(),{transformedData:a}=Ei(),{onSelect:i}=Hu(),[o,s,u]=ri(r),l=_.useRef(r);_.useEffect(()=>{t&&(l.current=o),s(t?-1:l.current)},[t]),_.useEffect(()=>{o>=a.length&&s(0)},[a.length]);const c=_.useRef(null),f=_.useCallback(({triggers:d,stage:v})=>{if(c.current!=null&&(clearInterval(c.current),c.current=null),v!=="start"||t)return;const m=n();if(ra(d,[Tw])){if(u.current===-1)return;i==null||i(m[u.current].key);return}const g=()=>{const y=n();ra(d,[Nw],!0)?s(E=>E<=0?y.length-1:E-1):ra(d,[Mw],!0)&&s(E=>E>=y.length-1?0:E+1)};g(),c.current=setTimeout(()=>{c.current=setInterval(g,100)},200)},[i,t]);wi({triggers:sle,callback:f,loose:!0});const p=_.useMemo(()=>({hover:o,setHover:s}),[o,s]);return Oe.jsxRuntimeExports.jsx(Ow.Provider,{value:p,children:e})},_w=_.createContext({hasMore:!1,onFetchMore:()=>{}}),$w=_.createContext({setHasMore:()=>{},setOnFetchMore:()=>{}}),lle=()=>_.useContext(_w),cle=()=>_.useContext($w),fle=({children:e})=>{const[r,t]=_.useState(!1),[n,a]=xo(()=>{}),i=_.useCallback(()=>{var u;(u=n.current)==null||u.call(n)},[n]),o=_.useMemo(()=>({hasMore:r,onFetchMore:i}),[r,i]),s=_.useMemo(()=>({setHasMore:t,setOnFetchMore:u=>{a(()=>u)}}),[t,a]);return Oe.jsxRuntimeExports.jsx(_w.Provider,{value:o,children:Oe.jsxRuntimeExports.jsx($w.Provider,{value:s,children:e})})},ple=(e,r,t)=>{var o;const n=e>r?1:-1;let a=e;const i=e+n*2;G.R.contains({lower:0,upper:t.children.length},i)?a=e+n*2:a=e,(o=t.children[a])==null||o.scrollIntoView({block:"nearest",inline:"nearest",behavior:"smooth"})},dle=({itemHeight:e,children:r,overscan:t=5,className:n,...a})=>{var b;const{hasMore:i,onFetchMore:o}=lle(),{hover:s,setHover:u}=xp(),{transformedData:l,emptyContent:c,transformed:f,sourceData:p}=Ei(),d=Dw(),{onSelect:v}=Hu(),m=_.useRef(null),g=ile({count:l.length,getScrollElement:()=>m.current,estimateSize:()=>e,overscan:t}),y=hf(l);_.useLayoutEffect(()=>{y==null||y.length===0||l.length>0&&l[0].key!==y[0].key&&(g==null||g.scrollToIndex(0),u(0))},[l]),_.useEffect(()=>{if(m.current==null)return;const D=g.calculateRange();if(D==null)return;const A=G.R.construct(D.startIndex+2,D.endIndex-2);G.R.contains(A,s)||g.scrollToIndex(s)},[s,e]);const E=g.getVirtualItems(),h=(b=E.at(-1))==null?void 0:b.index,w=l.length;if(_.useEffect(()=>{h===w-1&&i&&(o==null||o())},[h,w,i]),e<=0)throw new Error("itemHeight must be greater than 0");const x=l.length===0;return Oe.jsxRuntimeExports.jsx("div",{ref:m,className:G.CSS(n,G.CSS.BE("list","container"),x&&G.CSS.BM("list","empty")),...a,children:x?c:Oe.jsxRuntimeExports.jsx("div",{className:G.CSS.BE("list","virtualizer"),style:{height:g.getTotalSize()},children:E.map(({index:D,start:A})=>{const S=l[D];let C=D;return f&&(C=p.findIndex(N=>N.key===S.key)),r({key:S.key,sourceIndex:C,index:D,onSelect:v,entry:S,selected:d.includes(S.key),hovered:D===s,translate:A})})})})},Fw=({itemHeight:e=50,...r})=>{const{transformedData:t,transformed:n,emptyContent:a,sourceData:i}=Ei(),{hover:o}=xp(),{selected:s}=bp(),{onSelect:u}=Hu(),l=_.useRef(null),c=hf(o)??0;return _.useLayoutEffect(()=>{l.current!=null&&ple(o,c,l.current)},[o,e]),Oe.jsxRuntimeExports.jsx(Zt.Space,{className:G.CSS.BE("list","container"),ref:l,size:0,...r,children:t.length===0?a:Oe.jsxRuntimeExports.jsx(Oe.jsxRuntimeExports.Fragment,{children:t.map((f,p)=>{let d=p;return n&&(d=i.findIndex(v=>v.key===f.key)),r.children({key:f.key,index:p,sourceIndex:d,onSelect:u,entry:f,selected:s.includes(f.key),hovered:p===o})})})})};Fw.Virtual=dle;const vle={statuses:[],add:()=>{}},wp=_.createContext(vle),Ep=_.useContext,mle=gu(ye.Aggregator.TYPE,({aetherKey:e,children:r,maxHistory:t=500})=>{const[{path:n},{statuses:a},i]=hu({aetherKey:e,type:ye.Aggregator.TYPE,schema:ye.aggregatorStateZ,initialState:{statuses:[]}});if(t!=null&&a.length>t){const u=Math.floor(t*.9);i(l=>({...l,statuses:a.slice(0,u)}))}const o=_.useCallback(u=>{const l=ye.m.now(),c={time:l,key:l.toString(),...u};i(f=>({...f,statuses:[c,...f.statuses]}))},[i]),s=_.useMemo(()=>({statuses:a,add:o}),[a,o]);return Oe.jsxRuntimeExports.jsx(wp.Provider,{value:s,children:Oe.jsxRuntimeExports.jsx(Eo,{path:n,children:r})})}),hle=()=>Ep(wp).add,gle=ye.w.seconds(5),yle=(e={})=>{const{statuses:r}=Ep(wp),{expiration:t=gle}=e,n=kt(r),[a,i]=_.useState(()=>ye.m.now()),[o,s]=_.useState([]),u=r.filter(c=>{const f=c.time.after(a);return f&&setTimeout(()=>i(p=>c.time.after(p)?c.time:p),t.milliseconds),f&&!o.includes(c.key)}),l=_.useCallback(c=>{const f=n.current.find(d=>d.key===c);if(f==null)return;const p=xle(f,n.current);s(d=>[...d,...p.map(v=>v.key)])},[s]);return{statuses:ble(u),silence:l}},ble=e=>e.reduce((r,t)=>{const{message:n,variant:a}=t,i=r.find(o=>o.message===n&&o.variant===a);return i!=null?(i.count+=1,i.time.before(t.time)&&(i.time=t.time)):r.push({...t,count:1}),r},[]),xle=(e,r)=>r.filter(t=>{const{message:n,variant:a}=t;return n===e.message&&a===e.variant}),Bw={info:"var(--pluto-text-color)",error:"var(--pluto-error-z)",warning:"var(--pluto-warning-z)",success:"var(--pluto-primary-z)",loading:"var(--pluto-text-color)",disabled:"var(--pluto-gray-l6)",secondary:"var(--pluto-secondary-z)"},Rw=({variant:e="info",level:r="p",hideIcon:t=!1,className:n,...a})=>{const i=e==="loading"?Oe.jsxRuntimeExports.jsx(It.Loading,{}):Oe.jsxRuntimeExports.jsx(It.Circle,{});return Oe.jsxRuntimeExports.jsx(Vu,{color:Bw[e],className:G.CSS(n,G.CSS.B("status-text")),level:r,startIcon:!t&&i,...a})},wle=({style:e,...r})=>Oe.jsxRuntimeExports.jsx(Zt.Center,{style:e,grow:!0,children:Oe.jsxRuntimeExports.jsx(Rw,{...r})}),Da=Rw;Da.Centered=wle;const Pw=e=>({key:r,...t})=>Oe.jsxRuntimeExports.jsx(e,{...t},r),zw=e=>typeof e=="function",ju={height:150},Nl=Oe.jsxRuntimeExports.jsx(Da.Centered,{level:"h4",variant:"disabled",hideIcon:!0,style:ju,children:"No Results"}),Ele=Oe.jsxRuntimeExports.jsx(Da.Centered,{level:"h4",variant:"disabled",hideIcon:!0,style:ju,children:"Type to search"}),Sle=Oe.jsxRuntimeExports.jsx(Da.Centered,{level:"h2",variant:"disabled",hideIcon:!0,style:ju,children:Oe.jsxRuntimeExports.jsx(It.Loading,{})}),Ale=({error:e})=>Oe.jsxRuntimeExports.jsx(Da.Centered,{level:"h4",variant:"error",style:ju,children:e.message}),Iw=({debounce:e=250,searcher:r,value:t,onChange:n,pageSize:a=10})=>{const[i,o]=ye.usePurePassthrough({value:t,onChange:n,initial:""}),s=kt(i),u=_.useRef(!1),l=_.useRef(!0),c=_.useRef(0),{setSourceData:f,setEmptyContent:p,getDefaultEmptyContent:d}=wo(),{setHasMore:v,setOnFetchMore:m}=cle();_.useEffect(()=>p(Ele),[p]);const g=_.useCallback((h=!1)=>{if(s.current.length>0||u.current||r==null)return;h&&(c.current=0,l.current=!0,v(!0)),u.current=!0,p(Sle),(async()=>{try{const x=await r.page(c.current,a);x.length===0&&p(d()??Nl),x.length<a&&(l.current=!1,v(!1)),c.current+=a,f(h?x:b=>[...b,...x])}catch(x){u.current=!1,p(Oe.jsxRuntimeExports.jsx(Ale,{error:x}))}finally{u.current=!1}})()},[r,f,a]);_.useEffect(()=>{g(!0),m(g)},[g]);const y=Oy(h=>{if(h.length===0){g(!0);return}if(r==null)return p(Nl);r.search(h).then(w=>{w.length===0&&p(Nl),f(w)}).catch(w=>{p(Oe.jsxRuntimeExports.jsx(Da.Centered,{level:"h4",variant:"error",children:w.message}))})},e,[r,f,p]),E=_.useCallback(h=>{o(h),y(h)},[o,y]);return{value:i,onChange:E}},Dle=({children:e=Pw(Si),...r})=>e(Iw(r)),ig=ye.w$1.getOS()==="Windows",Cle={Meta:ig?It.Keyboard.Control:It.Keyboard.Command,Alt:ig?()=>"Alt":It.Keyboard.Option},Ks=({direction:e="y",className:r,padded:t=!1,...n})=>(t===!0&&(t="center"),Oe.jsxRuntimeExports.jsx("div",{className:G.CSS(G.CSS.B("divider"),G.CSS.dir(e),t!==!1&&G.CSS.BM("divider","padded"),typeof t=="string"&&G.CSS.loc(t),r),...n})),Nle=Object.freeze(Object.defineProperty({__proto__:null,Divider:Ks},Symbol.toStringTag,{value:"Module"})),Mle=e=>_.isValidElement(e)&&!("hydrate"in e.props),Vu=({level:e="h1",divided:r=!1,startIcon:t,endIcon:n,children:a,color:i,className:o,noWrap:s=!1,shade:u,weight:l,...c})=>{const f=xf(i,u),p=_.Children.toArray(t),d=_.Children.toArray(n),v=Sp(e,a,f,u,l);return Oe.jsxRuntimeExports.jsxs(Zt.Space,{className:G.CSS(G.CSS.B("text-icon"),G.CSS.BM("text-icon",e),G.CSS.noWrap(s),o),direction:"x",size:"small",align:"center",...c,style:{...c.style,color:f},children:[p,r&&t!=null&&Oe.jsxRuntimeExports.jsx(Ks,{direction:"y"}),v,r&&n!=null&&Oe.jsxRuntimeExports.jsx(Ks,{direction:"y"}),d]})},Sp=(e,r=[],t,n,a)=>{const i=ye.A(r),o=[];let s=[];const u={color:t,level:e,shade:n,weight:a};return i.forEach(l=>{l!=null&&(typeof l=="string"||typeof l=="number"||!Mle(l)?s.push(l):(s.length>0&&(o.push(Oe.jsxRuntimeExports.jsx(wn,{...u,children:s},s[0])),s=[]),o.push(l)))}),s.length>0&&o.push(Oe.jsxRuntimeExports.jsx(wn,{...u,children:s},s[0])),o.length===1?o[0]:o},yc=()=>document.getElementById("root")??document.body,Lw=_P,Tle={dialogBox:G.To.ZERO,dialogLoc:G.J.BOTTOM_LEFT},Ap=({visible:e,children:r,location:t,keepMounted:n=!0,className:a,variant:i="connected",close:o,maxHeight:s,open:u,toggle:l,...c})=>{const f=_.useRef(null),p=kt(e),d=_.useRef(null),v=_.useRef(void 0),[{dialogBox:m,dialogLoc:g},y]=_.useState({...Tle}),E=_.useCallback(()=>{if(f.current==null||d.current==null||!p.current)return;const C=i==="floating"?$le:Ble,{adjustedDialog:N,location:$}=C({target:f.current,dialog:d.current,initial:t,prefer:v.current!=null?[v.current]:void 0});v.current=$,y({dialogLoc:$,dialogBox:N})},[t,i]);_.useLayoutEffect(()=>{E()},[e,E]),wi({triggers:[["Escape"]],callback:o,loose:!0});const h=Wl(E,{enabled:e}),w=Gl(f,h),x=Wl(E,{enabled:e}),b=Gl(d,x);let D={};i!=="modal"&&(D={...G.q.css(G.To.topLeft(m))},i==="connected"&&(D.width=G.To.width(m))),typeof s=="number"&&(D.maxHeight=s);const A=i==="connected"?Zt.Pack:Zt.Space;gf({ref:d,exclude:[f],onClickOutside:o});let S=Oe.jsxRuntimeExports.jsx(Zt.Space,{ref:b,className:G.CSS(G.CSS.BE("dropdown","dialog"),G.CSS.loc(g.x),G.CSS.loc(g.y),G.CSS.visible(e),G.CSS.M(i),typeof s=="string"&&G.CSS.B(`height-${s}`)),role:"dialog",empty:!0,style:D,children:(n||e)&&r[1]});return i==="floating"?S=to.createPortal(S,yc()):i==="modal"&&(S=to.createPortal(Oe.jsxRuntimeExports.jsx(Zt.Space,{className:G.CSS(G.CSS.BE("dropdown","bg"),G.CSS.visible(e)),role:"dialog",empty:!0,align:"center",children:S}),yc())),Oe.jsxRuntimeExports.jsxs(A,{...c,ref:w,className:G.CSS(a,G.CSS.B("dropdown"),G.CSS.visible(e),G.CSS.M(i),G.CSS.loc(g.x),G.CSS.loc(g.y)),direction:"y",reverse:g.y==="top",children:[r[0],S]})};Ap.displayName="Dropdown";const Ole={alignments:["end"],disable:["center"],prefer:[{y:"bottom"}]},_le=6,$le=({target:e,dialog:r,initial:t,prefer:n})=>{const a=Ec.dialog({container:G.To.construct(0,0,window.innerWidth,window.innerHeight),target:G.To.construct(e),dialog:G.To.construct(r),...Ole,initial:t,prefer:n}),{location:i}=a;return{adjustedDialog:G.To.translate(a.adjustedDialog,"y",ye.G(i.y==="top")*_le),location:i}},Ml={alignments:["center"],disable:[{y:"center"}],initial:{x:"center"},prefer:[{y:"bottom"}]},Fle=1,Ble=({target:e,dialog:r,initial:t=Ml.initial,prefer:n=Ml.prefer})=>{let a=G.To.construct(e),i=G.To.construct(0,0,window.innerWidth,window.innerHeight),o=e.parentElement;for(;o!=null;){if(window.getComputedStyle(o).getPropertyValue("container-type")!=="normal"){i=G.To.construct(o),a=G.To.translate(a,G.q.scale(G.To.topLeft(i),-1));break}o=o.parentElement}const s={target:a,dialog:G.To.resize(G.To.construct(r),"x",G.To.width(a)),container:i,...Ml,initial:t,prefer:n},u=Ec.dialog(s),{location:l}=u;return{adjustedDialog:G.To.translate(u.adjustedDialog,"y",ye.G(l.y==="bottom")*Fle),location:l}},Rle=Object.freeze(Object.defineProperty({__proto__:null,Dialog:Ap,use:Lw},Symbol.toStringTag,{value:"Module"})),bc=Ft.z.object({key:Ft.z.string().or(Ft.z.number()),type:Ft.z.string(),elementID:Ft.z.string().optional(),data:Ft.z.record(Ft.z.unknown()).optional()}),Ple=Ft.z.object({source:bc,items:Ft.z.array(bc)}),qw={key:"",type:""},na={source:qw,items:[]},Dp="file",zle={key:"file",type:Dp},Ile=(e,r)=>e.dataTransfer.effectAllowed==="all"&&r.items.length===0,xc=_.createContext(null),Tl={...na,onSuccessfulDrop:()=>{}},Li=()=>_.useContext(xc),kw=({children:e,useState:r=_.useState,onDropOutside:t})=>{const n=_.useContext(xc),[a,i]=r(na),o=_.useRef(Tl),s=_.useRef(new Set),u=_.useCallback((d,v,m)=>{o.current={source:d,items:v,onSuccessfulDrop:m},i({source:d,items:v})},[i,t]),l=_.useCallback(({target:d,dropped:v})=>{var g,y;const m=o.current.items;(y=(g=o.current).onSuccessfulDrop)==null||y.call(g,{target:d,dropped:v,hauled:m}),o.current=Tl,i(na)},[i]),c=_.useCallback(d=>{let v=null;s.current.forEach(m=>{v==null&&(v=m(o.current,d))}),v!=null&&l(v),o.current=Tl,i(na)},[i]),f=_.useCallback(d=>(s.current.add(d),()=>s.current.delete(d)),[]),p=_.useMemo(()=>n??{state:a,start:u,end:c,drop:l,bind:f},[a,u,c,l,n]);return Oe.jsxRuntimeExports.jsx(xc.Provider,{value:p,children:e})},Cp=()=>{const e=_.useRef(na),r=Li();return r==null||(e.current=r.state),e},Uw=()=>{const e=Li();return e==null?na:e.state},Hw=({type:e,key:r})=>{const t=r??_.useId(),n=_.useMemo(()=>({key:t,type:e}),[t,e]),a=Li();if(a==null)return{startDrag:()=>{},onDragEnd:()=>{}};const{start:i,end:o}=a;return{startDrag:_.useCallback((s,u)=>i(n,s,u),[i,n]),onDragEnd:s=>o(G.q.construct({x:s.screenX,y:s.screenY}))}},Np=({type:e,key:r,canDrop:t,onDrop:n,onDragOver:a})=>{const i=Cp(),o=Li();if(o==null)return{onDragOver:()=>{},onDrop:()=>{}};const{drop:s}=o,u=r??_.useId(),l=_.useMemo(()=>({key:u,type:e}),[u,e]),c=_.useCallback(p=>{t(i.current)&&(p.preventDefault(),a==null||a({event:p,...i.current}))},[i,t]),f=_.useCallback(p=>{t(i.current)&&(p.preventDefault(),s({target:l,dropped:n({...i.current,event:p})}))},[i,n,t,s,l]);return{onDragOver:c,onDrop:f}},jw=({type:e,key:r,...t})=>{const n=r??_.useId(),a=_.useMemo(()=>({key:n,type:e}),[n,e]),i=Hw(a),o=Np({...t,...a});return{...i,...o}},Vw=e=>({items:r})=>r.some(t=>t.type===e),Gw=(e,r)=>r.filter(t=>t.type===e),Lle=({type:e,key:r,...t})=>{const n=Li();if(n==null)return;const a=Cp(),{bind:i}=n,o=_.useRef(!1),s=r??_.useId(),u=_.useMemo(()=>({key:s,type:e}),[s,e]),l=_.useRef({...t,type:e,key:s});_.useEffect(()=>{const c=i((d,v)=>{const{canDrop:m,onDrop:g}=l.current;if(!m(d)||!o.current)return null;const y=g({...d},v);return{target:u,dropped:y}}),f=()=>{const{canDrop:d}=l.current;o.current=!1,d(a.current)},p=d=>{const{onDragOver:v,canDrop:m}=l.current,g=G.To.construct(window.document.documentElement);G.To.contains(g,G.q.construct(d.clientX,d.clientY)),o.current=!0,m(a.current)&&(v==null||v(a.current))};return document.body.addEventListener("dragleave",p),document.body.addEventListener("mouseenter",f),()=>{c(),document.body.removeEventListener("dragleave",p),document.body.removeEventListener("mouseenter",f)}},[])},qle=Object.freeze(Object.defineProperty({__proto__:null,FILE:zle,FILE_TYPE:Dp,Provider:kw,ZERO_DRAGGING_STATE:na,ZERO_ITEM:qw,canDropOfType:Vw,draggingStateZ:Ple,filterByType:Gw,isFileDrag:Ile,itemZ:bc,useContext:Li,useDrag:Hw,useDragAndDrop:jw,useDraggingRef:Cp,useDraggingState:Uw,useDrop:Np,useDropOutside:Lle},Symbol.toStringTag,{value:"Module"})),kle={delay:ye.w.milliseconds(750),startAccelerating:()=>{}},Mp=_.createContext(kle),Ww=()=>_.useContext(Mp),Ule=({delay:e=ye.w.milliseconds(700),accelerate:r=!0,acceleratedDelay:t=ye.w.minutes(60),accelerationDelay:n=ye.w.seconds(0),children:a})=>{const[i,o]=_.useState(!1),s=_.useRef(null),u=_.useCallback(()=>{i||!r||(o(!0),s.current=setTimeout(()=>{o(!1)},new ye.w(n).milliseconds))},[i,n]);return Oe.jsxRuntimeExports.jsx(Mp.Provider,{value:{delay:i?t:e,startAccelerating:u},children:a})},Hle=150,Zw=["top","bottom"],Yw=["left","right"],Xw=[...Yw,...Zw],og=[...Xw,"center"],jle={[G.J.xyToString(G.J.TOP_RIGHT)]:(e,r)=>G.q.translate(e,"x",-G.To.width(r)),[G.J.xyToString(G.J.TOP_LEFT)]:(e,r)=>G.q.translate(e,"x",G.To.width(r)),[G.J.xyToString(G.J.BOTTOM_RIGHT)]:(e,r)=>G.q.translate(e,"x",-G.To.width(r)),[G.J.xyToString(G.J.BOTTOM_LEFT)]:(e,r)=>G.q.translate(e,"x",G.To.width(r))},Ol=(e,r,t)=>{for(const n of t)if(Math.abs(G.To.loc(r,n)-G.To.loc(e,n))>Hle)return n;return t[0]},Kw=(e,r,t)=>{const n=G.J.location.safeParse(e),a=o=>{let s;return o==="center"?s=Xw:G.J.isX(o)?s=["center",...Zw]:s=["center",...Yw],G.J.construct(Ol(r,t,s))};if(n.success)return G.J.constructXY(n.data,a(n.data));if(e!=null){const o={...e};return o.x==null&&o.y!=null?o.x=a(G.J.construct(o.y)):o.y==null&&o.x!=null?o.y=a(G.J.construct(o.x)):o.x==null&&o.y==null&&(o.x=Ol(r,t,og),o.y=a(G.J.construct(o.x))),G.J.constructXY(o)}const i=Ol(r,t,og);return G.J.constructXY(i,a(i))},Vle=(e,r)=>{let t=e;for(;t!=null;){if(t.id===r)return t;t=t.parentElement}return e},Jw=({delay:e,children:r,location:t,hide:n=!1})=>{const{startAccelerating:a,delay:i}=Ww(),o=new ye.w(e??i),[s,u]=_.useState(null),l=_.useRef(null),c=_.useId(),f=_.useRef(null),p=_.useCallback((E,h)=>{var N,$,B;if(!h||n)return(N=f.current)==null||N.call(f),u(null);a();const w=G.To.construct(Vle(E.target,c));if(!G.To.contains(w,G.q.construct(E)))return($=f.current)==null||$.call(f),u(null);const x=G.To.construct(document.documentElement),b=Kw(t,w,x);let D=G.To.xyLoc(w,b);const A=jle[G.J.xyToString(b)];A!=null&&(D=A(D,w));const S=G.To.construct(document.body);u({location:b,position:G.q.translate(D,G.q.scale(G.To.topLeft(S),-1)),triggerDims:G.To.dims(w)}),(B=f.current)==null||B.call(f);const C=P=>{const R=G.q.construct(P);G.To.contains(w,R)||(u(null),document.removeEventListener("mousemove",C),f.current=null,l.current!=null&&clearTimeout(l.current))};document.addEventListener("mousemove",C),f.current=()=>document.removeEventListener("mousemove",C),document.addEventListener("mousedown",()=>{var P;u(null),(P=f.current)==null||P.call(f)},{once:!0})},[a,t,n,c,o.milliseconds]);n&&s!=null&&u(null);const d=_.useCallback(E=>{l.current=setTimeout(()=>p(E,!0),o.milliseconds)},[p,o.milliseconds]),v=_.useCallback(E=>{l.current!=null&&clearTimeout(l.current),p(E,!1)},[p]),[m,g]=r,y=document.body;return Oe.jsxRuntimeExports.jsxs(Oe.jsxRuntimeExports.Fragment,{children:[s!=null&&to.createPortal(Oe.jsxRuntimeExports.jsx("div",{className:G.CSS(G.CSS.B("tooltip"),G.CSS.loc(s.location.x),G.CSS.loc(s.location.y)),style:{"--pos-x":G.CSS.px(s.position.x),"--pos-y":G.CSS.px(s.position.y),"--el-width":G.CSS.px(s.triggerDims.width)},children:zw(m)?m(s):Qw(m)}),y),_.cloneElement(g,{id:c,onMouseEnter:d,onMouseLeave:v,onMouseDown:_.useCallback(E=>{var h,w;v(E),(w=(h=g.props).onMouseDown)==null||w.call(h,E)},[p])})]})},Qw=e=>typeof e=="string"||typeof e=="number"||!_.isValidElement(e)?Oe.jsxRuntimeExports.jsx(wn,{level:"small",children:e}):e,Tp=e=>{const r=_.forwardRef(({tooltipDelay:t,tooltip:n,tooltipLocation:a,...i},o)=>{const s=Oe.jsxRuntimeExports.jsx(e,{ref:o,...i});return n==null?s:Oe.jsxRuntimeExports.jsxs(Jw,{delay:t,location:a,children:[n,s]})});return r.displayName=`Tooltip.Wrap(${e.displayName??e.name})`,r},e3=Tp(({size:e="medium",variant:r="filled",type:t="button",className:n,children:a,iconSpacing:i,sharp:o=!1,disabled:s=!1,loading:u=!1,level:l,triggers:c,startIcon:f=[],delay:p=0,onClick:d,color:v,status:m,...g})=>{u&&(f=[...ye.A(f),Oe.jsxRuntimeExports.jsx(It.Loading,{},"loader")]),i==null&&(i=e==="small"?"small":"medium");const y=E=>{if(s)return;if((p instanceof ye.w?p:ye.w.milliseconds(p)).isZero)return d==null?void 0:d(E)};return wi({triggers:c,callback:_.useCallback(({stage:E})=>{E==="end"&&y(new MouseEvent("click"))},[y])}),Oe.jsxRuntimeExports.jsx(Vu,{el:"button",className:G.CSS(G.CSS.B("btn"),G.CSS.size(e),G.CSS.sharp(o),G.CSS.disabled(s),m!=null&&G.CSS.M(m),G.CSS.BM("btn",r),n),type:t,level:l??ye.ComponentSizeLevels[e],size:i,onClick:y,noWrap:!0,color:G.cssString(v),startIcon:f,...g,children:a})}),Gle=(e,r,t,n)=>r===!0?"var(--pluto-gray-l5)":t!=null?G.cssString(t):e==="filled"?"var(--pluto-text-on-primary)":"var(--pluto-text-color)",r3=_.forwardRef(({children:e,className:r,variant:t="text",size:n="medium",sharp:a=!1,disabled:i=!1,loading:o=!1,onClick:s,...u},l)=>(o&&(e=Oe.jsxRuntimeExports.jsx(It.Loading,{})),Oe.jsxRuntimeExports.jsx("button",{ref:l,className:G.clsx(r,G.CSS.B("btn"),G.CSS.B("btn-icon"),G.CSS.size(n),G.CSS.sharp(a),G.CSS.BM("btn",t),G.CSS.disabled(i)),onClick:i?void 0:s,...u,children:typeof e=="string"?e:_.cloneElement(e,{color:Gle(t,i,u.color),fill:"currentColor",...e.props})})));r3.displayName="ButtonIcon";const Op=Tp(r3),t3=e=>({value:r,onClick:t,onChange:n,checkedVariant:a="filled",uncheckedVariant:i="outlined",rightClickToggle:o=!1,...s})=>Oe.jsxRuntimeExports.jsx(e,{...s,checked:r,onClick:u=>{t==null||t(u),!o&&n(!r)},onContextMenu:u=>{u.preventDefault(),u.stopPropagation(),o&&n(!r)},className:G.CSS(G.CSS.B("btn-toggle"),s.className),variant:r?a:i}),n3=t3(e3);n3.displayName="ButtonToggle";const a3=t3(Op);a3.displayName="ButtonToggleIcon";exports.ALPHANUMERIC_KEYS=yf;exports.ALPHANUMERIC_KEYS_SET=$y;exports.Aggregator=mle;exports.Button=e3;exports.CONTEXT_SELECTED=Sf;exports.CONTEXT_TARGET=Ms;exports.Column=Vue;exports.ColumnContext=yp;exports.Composite=Eo;exports.Config=Ule;exports.Context=Mp;exports.Context$1=vz;exports.ContextMenu=r2;exports.Core=Fw;exports.CoreDateTime=jy;exports.DataProvider=lz;exports.Date=f2;exports.DateTime=KP;exports.Dialog=Ap;exports.Dialog$1=Jw;exports.Divider=Ks;exports.Divider$1=Nle;exports.DragButton=yu;exports.Dropdown=Rle;exports.Editable=Zy;exports.FILE_TYPE=Dp;exports.Haul=qle;exports.Hover=ule;exports.Icon=Op;exports.InfiniteProvider=fle;exports.ItemFrame=t2;exports.KEYS=Fy;exports.Link=az;exports.MOUSE_KEYS=vu;exports.MaybeEditable=tz;exports.Numeric=mw;exports.Provider=zue;exports.Provider$1=WP;exports.Provider$2=kw;exports.Provider$3=s2;exports.Provider$4=Af;exports.Search=Dle;exports.Selector=ole;exports.SketchPicker=wP;exports.Switch=Iue;exports.Switch$1=gp;exports.Symbols=Cle;exports.Text=wn;exports.Text$1=Si;exports.Text$2=Da;exports.TextArea=hw;exports.Time=yw;exports.Toggle=n3;exports.ToggleIcon=a3;exports.WithIcon=Vu;exports.asyncEdit=rz;exports.canDropOfType=Vw;exports.chooseLocation=Kw;exports.combineDateAndTimeValue=Bue;exports.compareArrayDeps=My;exports.compareModeConfigs=Ly;exports.componentRenderProp=Pw;exports.determineMode=kP;exports.diff=zy;exports.edit=Wy;exports.evalColor=xf;exports.eventKey=ti;exports.filter=Ns;exports.filterByType=Gw;exports.flattenConfig=qy;exports.formatChildren=Sp;exports.formatTip=Qw;exports.getRootElement=yc;exports.isRenderProp=zw;exports.k0=It;exports.keyZ=By;exports.keyboardKey=Ry;exports.main=gz;exports.match=ra;exports.matchCallback=LP;exports.mouseKey=Py;exports.mouseKeyZ=RP;exports.purge=bf;exports.purgeMouse=HP;exports.selectValueIsZero=Yy;exports.toCSSVars=n2;exports.triggerZ=PP;exports.use=Pue;exports.use$1=Lw;exports.use$2=wi;exports.use$3=hu;exports.useAggregator=hle;exports.useAsyncEffect=FP;exports.useClickOutside=gf;exports.useCombinedRefs=Gl;exports.useCombinedStateAndRef=ri;exports.useConfig=Ww;exports.useContext=Uu;exports.useContext$1=Uy;exports.useContext$2=Ep;exports.useContextMenu=pz;exports.useDataContext=Ei;exports.useDataUtilContext=wo;exports.useDate=c2;exports.useDebouncedCallback=Oy;exports.useDragAndDrop=jw;exports.useDraggingState=Uw;exports.useDrop=Np;exports.useEffectCompare=Ty;exports.useFlattenedMemoConfig=UP;exports.useGetTransformedData=Ef;exports.useHeld=YP;exports.useHeldRef=Zl;exports.useHoverContext=xp;exports.useMemoCompare=da;exports.useMemoDeepEqualProps=$P;exports.useNotifications=yle;exports.usePrevious=hf;exports.useProvider=xw;exports.useResize=Wl;exports.useSearch=Iw;exports.useSelect=Xy;exports.useSelection=Dw;exports.useSelectionContext=bp;exports.useSelectionUtils=Hu;exports.useSetSourceData=uz;exports.useSourceData=Qy;exports.useStateRef=xo;exports.useSyncedRef=kt;exports.useTime=gw;exports.useTransformedData=sz;exports.useTransforms=_y;exports.useTypography=ww;exports.useUniqueKey=a2;exports.variantColors=Bw;exports.wrap=Tp;exports.wrap$1=gu;
|