(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[476],{50676:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},19756:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},34699:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(82961);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},87329:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(50676);var o=n(82961);function i(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||(0,o.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},82961:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(50676);function o(e,t){if(e){if("string"===typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},56769:function(e,t,n){"use strict";n.d(t,{UQ:function(){return R},KF:function(){return B},XE:function(){return F},Qd:function(){return N},Hk:function(){return z}});var r=n(70058),o=n(90063),i=n(2326),a=n(55284),s=n(29676),u=n(89384),c=n(15267),l=n(84461),d=n(73808),f=n(80658),p=n(28500),h=n(67294),v=n(21888),m=n(77581),g=n(51034),y=n(94577),b=n(72947),w=n(27277),x=n(47248);function _(){return(_=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var[E,O,C,T]=(0,v.n)();function M(e){var{onChange:t,defaultIndex:n,index:r,allowMultiple:o,allowToggle:i}=e,a=k(e,["onChange","defaultIndex","index","allowMultiple","allowToggle"]);!function(e){var t=e.index||e.defaultIndex,n=!(0,d.o8)(t)&&!(0,d.kJ)(t)&&e.allowMultiple;(0,f.ZK)({condition:!!n,message:"If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: "+typeof t+","})}(e),function(e){(0,f.ZK)({condition:!(!e.allowMultiple||!e.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}(e);var s=C(),[u,c]=(0,h.useState)(-1);(0,m.z)((()=>{c(-1)}));var[l,p]=(0,g.T)({value:r,defaultValue:()=>o?null!=n?n:[]:null!=n?n:-1,onChange:t});return{index:l,setIndex:p,htmlProps:a,getAccordionItemProps:e=>{var t=!1;null!==e&&(t=(0,d.kJ)(l)?l.includes(e):l===e);return{isOpen:t,onChange:t=>{if(null!==e)if(o&&(0,d.kJ)(l)){var n=t?(0,w.jX)(l,e):(0,w.cl)(l,e);p(n)}else t?p(e):i&&p(-1)}}},focusedIndex:u,setFocusedIndex:c,descendants:s}}var[S,P]=(0,p.k)({name:"AccordionContext",errorMessage:"useAccordionContext: `context` is undefined. Seems you forgot to wrap the accordion components in ``"});function j(e){var{isDisabled:t,isFocusable:n,id:r}=e,o=k(e,["isDisabled","isFocusable","id"]),{getAccordionItemProps:i,setFocusedIndex:a}=P(),s=(0,h.useRef)(null),[u,c]=(0,y.ZS)(r,"accordion-button","accordion-panel");!function(e){(0,f.ZK)({condition:!(!e.isFocusable||e.isDisabled),message:"Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well.\n "})}(e);var{register:d,index:p,descendants:v}=T({disabled:t&&!n}),{isOpen:m,onChange:g}=i(-1===p?null:p);!function(e){(0,f.ZK)({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}({isOpen:m,isDisabled:t});var w=(0,h.useCallback)((()=>{null==g||g(!m),a(p)}),[p,a,m,g]),E=(0,h.useCallback)((e=>{var t={ArrowDown:()=>{var e=v.nextEnabled(p);e&&(0,x.T)(e.node)},ArrowUp:()=>{var e=v.prevEnabled(p);e&&(0,x.T)(e.node)},Home:()=>{var e=v.firstEnabled();e&&(0,x.T)(e.node)},End:()=>{var e=v.lastEnabled();e&&(0,x.T)(e.node)}}[(0,l.uh)(e)];t&&(e.preventDefault(),t(e))}),[v,p]),O=(0,h.useCallback)((()=>{a(p)}),[a,p]),C=(0,h.useCallback)((function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),_({},e,{type:"button",ref:(0,b.l)(d,s,n),id:u,disabled:!!t,"aria-expanded":!!m,"aria-controls":c,onClick:(0,f.v0)(e.onClick,w),onFocus:(0,f.v0)(e.onFocus,O),onKeyDown:(0,f.v0)(e.onKeyDown,E)})}),[u,t,m,w,O,E,c,d]),M=(0,h.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),_({},e,{ref:t,role:"region",id:c,"aria-labelledby":u,hidden:!m})}),[u,m,c]);return{isOpen:m,isDisabled:t,isFocusable:n,onOpen:()=>{null==g||g(!0)},onClose:()=>{null==g||g(!1)},getButtonProps:C,getPanelProps:M,htmlProps:o}}function I(){return(I=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var R=(0,o.G)(((e,t)=>{var{children:n,reduceMotion:r}=e,o=A(e,["children","reduceMotion"]),c=(0,i.j)("Accordion",o),d=M((0,a.Lr)(o)),{htmlProps:f,descendants:p}=d,v=A(d,["htmlProps","descendants"]),m=h.useMemo((()=>I({},v,{reduceMotion:!!r})),[v,r]);return h.createElement(E,{value:p},h.createElement(S,{value:m},h.createElement(s.Fo,{value:c},h.createElement(u.m$.div,I({ref:t},f,{className:(0,l.cx)("chakra-accordion",o.className)}),n))))}));d.Ts&&(R.displayName="Accordion");var[D,L]=(0,p.k)({name:"AccordionItemContext",errorMessage:"useAccordionItemContext: `context` is undefined. Seems you forgot to wrap the accordion item parts in `` "}),N=(0,o.G)(((e,t)=>{var{children:n,className:r}=e,o=j(e),{htmlProps:i}=o,a=A(o,["htmlProps"]),c=I({},(0,s.yK)().container,{overflowAnchor:"none"}),d=h.useMemo((()=>a),[a]);return h.createElement(D,{value:d},h.createElement(u.m$.div,I({ref:t},i,{className:(0,l.cx)("chakra-accordion__item",r),__css:c}),(0,f.Pu)(n,{isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled})))}));d.Ts&&(N.displayName="AccordionItem");var B=(0,o.G)(((e,t)=>{var{getButtonProps:n}=L(),r=n(e,t),o=I({display:"flex",alignItems:"center",width:"100%",outline:0},(0,s.yK)().button);return h.createElement(u.m$.button,I({},r,{className:(0,l.cx)("chakra-accordion__button",e.className),__css:o}))}));d.Ts&&(B.displayName="AccordionButton");var z=(0,o.G)(((e,t)=>{var{reduceMotion:n}=P(),{getPanelProps:r,isOpen:o}=L(),i=r(e,t),a=(0,l.cx)("chakra-accordion__panel",e.className),d=(0,s.yK)();n||delete i.hidden;var f=h.createElement(u.m$.div,I({},i,{__css:d.panel,className:a}));return n?f:h.createElement(c.U,{in:o},f)}));d.Ts&&(z.displayName="AccordionPanel");var F=e=>{var{isOpen:t,isDisabled:n}=L(),{reduceMotion:o}=P(),i=(0,l.cx)("chakra-accordion__icon",e.className),a=I({opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:o?void 0:"transform 0.2s",transformOrigin:"center"},(0,s.yK)().icon);return h.createElement(r.J,I({viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:a},e),h.createElement("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}))};d.Ts&&(F.displayName="AccordionIcon")},40419:function(e,t,n){"use strict";t.__esModule=!0,t.ButtonGroup=t.useButtonGroup=void 0;var r=n(48121),o=n(66751),i=n(19277),a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,["size","colorScheme","variant","className","spacing","isAttached","isDisabled"]),m=(0,o.cx)("chakra-button__group",c),g=a.useMemo((function(){return{size:n,colorScheme:i,variant:s,isDisabled:h}}),[n,i,s,h]),y={display:"inline-flex"};return y=u({},y,p?{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}}:{"& > *:not(style) ~ *:not(style)":{marginStart:f}}),a.createElement(l,{value:g},a.createElement(r.chakra.div,u({ref:t,role:"group",__css:y,className:m},v)))}));t.ButtonGroup=f,o.__DEV__&&(f.displayName="ButtonGroup")},24686:function(e,t,n){"use strict";t.__esModule=!0,t.Button=void 0;var r=n(19277),o=n(90716),i=n(48121),a=n(66751),s=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),u=n(40419);function c(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function l(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}function d(){return(d=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,["icon","children","isRound","aria-label"]),l=n||r,d=i.isValidElement(l)?i.cloneElement(l,{"aria-hidden":!0,focusable:!1}):null;return i.createElement(a.Button,u({padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":s},c),d)}));t.IconButton=c,o.__DEV__&&(c.displayName="IconButton")},46017:function(e,t,n){"use strict";t.__esModule=!0;var r=n(24686);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(40419);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(84175);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}))},40155:function(e,t,n){"use strict";n.d(t,{z:function(){return O}});var r=n(72947),o=n(70917),i=n(90063),a=n(2326),s=n(55284),u=n(89384),c=n(84461),l=n(73808),d=n(65415),f=n(67294);function p(){return(p=Object.assign||function(e){for(var t=1;t{var n=(0,a.m)("Spinner",e),r=(0,s.Lr)(e),{label:o="Loading...",thickness:i="2px",speed:l="0.45s",emptyColor:v="transparent",className:m}=r,g=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(r,["label","thickness","speed","emptyColor","className"]),y=(0,c.cx)("chakra-spinner",m),b=p({display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:v,borderLeftColor:v,animation:h+" "+l+" linear infinite"},n);return f.createElement(u.m$.div,p({ref:t,__css:b,className:y},g),o&&f.createElement(d.TX,null,o))}));l.Ts&&(v.displayName="Spinner");var m=n(38554),g=n.n(m),y=n(28500);function b(){return(b=Object.assign||function(e){for(var t=1;t{var{size:n,colorScheme:r,variant:o,className:i,spacing:a="0.5rem",isAttached:s,isDisabled:l}=e,d=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["size","colorScheme","variant","className","spacing","isAttached","isDisabled"]),p=(0,c.cx)("chakra-button__group",i),h=f.useMemo((()=>({size:n,colorScheme:r,variant:o,isDisabled:l})),[n,r,o,l]),v={display:"inline-flex"};return v=b({},v,s?{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}}:{"& > *:not(style) ~ *:not(style)":{marginStart:a}}),f.createElement(w,{value:h},f.createElement(u.m$.div,b({ref:t,role:"group",__css:v,className:p},d)))}));function k(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}function E(){return(E=Object.assign||function(e){for(var t=1;t{var n,o=x(),i=(0,a.m)("Button",E({},o,e)),l=(0,s.Lr)(e),{isDisabled:d=(null==o?void 0:o.isDisabled),isLoading:p,isActive:h,isFullWidth:v,children:m,leftIcon:y,rightIcon:b,loadingText:w,iconSpacing:_="0.5rem",type:O,spinner:M,spinnerPlacement:S="start",className:P,as:j}=l,I=k(l,["isDisabled","isLoading","isActive","isFullWidth","children","leftIcon","rightIcon","loadingText","iconSpacing","type","spinner","spinnerPlacement","className","as"]),A=g()({},null!=(n=null==i?void 0:i._focus)?n:{},{zIndex:1}),R=E({display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",width:v?"100%":"auto"},i,!!o&&{_focus:A}),{ref:D,type:L}=function(e){var[t,n]=f.useState(!e),r=f.useCallback((e=>{e&&n("BUTTON"===e.tagName)}),[]),o=t?"button":void 0;return{ref:r,type:o}}(j);return f.createElement(u.m$.button,E({disabled:d||p,ref:(0,r.l)(t,D),as:j,type:null!=O?O:L,"data-active":(0,c.PB)(h),"data-loading":(0,c.PB)(p),__css:R,className:(0,c.cx)("chakra-button",P)},I),y&&!p&&f.createElement(C,{marginEnd:_},y),p&&"start"===S&&f.createElement(T,{className:"chakra-button__spinner--start",label:w,placement:"start"},M),p?w||f.createElement(u.m$.span,{opacity:0},m):m,p&&"end"===S&&f.createElement(T,{className:"chakra-button__spinner--end",label:w,placement:"end"},M),b&&!p&&f.createElement(C,{marginStart:_},b))}));l.Ts&&(O.displayName="Button");var C=e=>{var{children:t,className:n}=e,r=k(e,["children","className"]),o=f.isValidElement(t)?f.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=(0,c.cx)("chakra-button__icon",n);return f.createElement(u.m$.span,E({display:"inline-flex",alignSelf:"center",flexShrink:0},r,{className:i}),o)};l.Ts&&(C.displayName="ButtonIcon");var T=e=>{var{label:t,placement:n,children:r=f.createElement(v,{color:"currentColor",width:"1em",height:"1em"}),className:o,__css:i}=e,a=k(e,["label","placement","spacing","children","className","__css"]),s=(0,c.cx)("chakra-button__spinner",o),l=E({display:"flex",alignItems:"center",position:t?"relative":"absolute",["start"===n?"marginEnd":"marginStart"]:t?"0.5rem":0,fontSize:"1em",lineHeight:"normal"},i);return f.createElement(u.m$.div,E({className:s},a,{__css:l}),r)};l.Ts&&(T.displayName="ButtonSpinner")},48420:function(e,t,n){"use strict";n.d(t,{h:function(){return u}});var r=n(90063),o=n(73808),i=n(67294),a=n(40155);function s(){return(s=Object.assign||function(e){for(var t=1;t{var{icon:n,children:r,isRound:o,"aria-label":u}=e,c=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["icon","children","isRound","aria-label"]),l=n||r,d=i.isValidElement(l)?i.cloneElement(l,{"aria-hidden":!0,focusable:!1}):null;return i.createElement(a.z,s({padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":u},c),d)}));o.Ts&&(u.displayName="IconButton")},45771:function(e,t,n){"use strict";t.__esModule=!0,t.ColorModeProvider=d,t.useColorModeValue=function(e,t){return"dark"===l().colorMode?t:e},t.LightMode=t.DarkMode=t.useColorMode=t.ColorModeContext=void 0;var r=n(66751),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),i=n(77570),a=n(68346);function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(){return(u=Object.assign||function(e){for(var t=1;t{var{type:t="checkbox",_hover:n,_invalid:o,_disabled:s,_focus:u,_checked:c,_child:l={opacity:0},_checkedAndChild:d={opacity:1},_checkedAndDisabled:f,_checkedAndFocus:p,_checkedAndHover:h,children:v}=e,m=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["type","_hover","_invalid","_disabled","_focus","_checked","_child","_checkedAndChild","_checkedAndDisabled","_checkedAndFocus","_checkedAndHover","children"]),g="input[type="+t+"]:checked:disabled + &",y="input[type="+t+"]:checked:hover:not(:disabled) + &",b="input[type="+t+"]:checked:focus + &",w="input[type="+t+"]:disabled + &",x="input[type="+t+"]:focus + &",_="input[type="+t+"]:hover:not(:disabled):not(:checked) + &",k="input[type="+t+"]:checked + &, input[type="+t+"][aria-checked=mixed] + &",E="input[type="+t+"][aria-invalid=true] + &",O="& > *";return i.createElement(r.m$.div,a({},m,{"aria-hidden":!0,__css:{display:"inline-flex",alignItems:"center",justifyContent:"center",transitionProperty:"common",transitionDuration:"fast",flexShrink:0,[x]:u,[_]:n,[w]:s,[E]:o,[g]:f,[b]:p,[y]:h,[O]:l,[k]:a({},c,{[O]:d})}}),v)};o.Ts&&(s.displayName="ControlBox")},21888:function(e,t,n){"use strict";n.d(t,{n:function(){return v}});var r=n(28500),o=n(72947),i=n(67294);function a(e){return e.sort(((e,t)=>{var n=e.compareDocumentPosition(t);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(n&Node.DOCUMENT_POSITION_DISCONNECTED||n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0}))}function s(e,t,n){var r=e+1;return n&&r>=t&&(r=0),r}function u(e,t,n){var r=e-1;return n&&r<0&&(r=t),r}var c="undefined"!==typeof window?i.useLayoutEffect:i.useEffect;function l(){return(l=Object.assign||function(e){for(var t=1;t{var t;if(null!=e)return"object"==typeof(t=e)&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE?this.registerNode(e):t=>{this.registerNode(t,e)}})),d(this,"unregister",(e=>{this.descendants.delete(e);var t=a(Array.from(this.descendants.keys()));this.assignIndex(t)})),d(this,"destroy",(()=>{this.descendants.clear()})),d(this,"assignIndex",(e=>{this.descendants.forEach((t=>{var n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()}))})),d(this,"count",(()=>this.descendants.size)),d(this,"enabledCount",(()=>this.enabledValues().length)),d(this,"values",(()=>Array.from(this.descendants.values()).sort(((e,t)=>e.index-t.index)))),d(this,"enabledValues",(()=>this.values().filter((e=>!e.disabled)))),d(this,"item",(e=>{if(0!==this.count())return this.values()[e]})),d(this,"enabledItem",(e=>{if(0!==this.enabledCount())return this.enabledValues()[e]})),d(this,"first",(()=>this.item(0))),d(this,"firstEnabled",(()=>this.enabledItem(0))),d(this,"last",(()=>this.item(this.descendants.size-1))),d(this,"lastEnabled",(()=>{var e=this.enabledValues().length-1;return this.enabledItem(e)})),d(this,"indexOf",(e=>{var t,n;return e&&null!=(t=null==(n=this.descendants.get(e))?void 0:n.index)?t:-1})),d(this,"enabledIndexOf",(e=>null==e?-1:this.enabledValues().findIndex((t=>t.node.isSameNode(e))))),d(this,"next",(function(t,n){void 0===n&&(n=!0);var r=s(t,e.count(),n);return e.item(r)})),d(this,"nextEnabled",(function(t,n){void 0===n&&(n=!0);var r=e.item(t);if(r){var o=s(e.enabledIndexOf(r.node),e.enabledCount(),n);return e.enabledItem(o)}})),d(this,"prev",(function(t,n){void 0===n&&(n=!0);var r=u(t,e.count()-1,n);return e.item(r)})),d(this,"prevEnabled",(function(t,n){void 0===n&&(n=!0);var r=e.item(t);if(r){var o=u(e.enabledIndexOf(r.node),e.enabledCount()-1,n);return e.enabledItem(o)}})),d(this,"registerNode",((e,t)=>{if(e&&!this.descendants.has(e)){var n=a(Array.from(this.descendants.keys()).concat(e));null!=t&&t.disabled&&(t.disabled=!!t.disabled);var r=l({node:e,index:-1},t);this.descendants.set(e,r),this.assignIndex(n)}}))}}var[p,h]=(0,r.k)({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function v(){return[p,()=>h(),()=>function(){var[e]=(0,i.useState)((()=>new f));return c((()=>()=>e.destroy())),e}(),e=>function(e){var t=h(),[n,r]=(0,i.useState)(-1),a=(0,i.useRef)(null);c((()=>()=>{a.current&&t.unregister(a.current)}),[]),c((()=>{if(a.current){var e=Number(a.current.dataset.index);n==e||Number.isNaN(e)||r(e)}}));var s=e?t.register(e):t.register;return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(a.current),register:(0,o.l)(s,a)}}(e)]}},71312:function(e,t,n){"use strict";t.__esModule=!0,t.FormHelperText=t.FormControl=t.useFormControlContext=void 0;var r=n(81959),o=n(48121),i=n(66751),a=n(19277),s=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){return(c=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var d=(0,a.createContext)({strict:!1,name:"FormControlContext"}),f=d[0],p=d[1];t.useFormControlContext=p;var h=(0,o.forwardRef)((function(e,t){var n=(0,o.useMultiStyleConfig)("Form",e),u=function(e){var t=e.id,n=e.isRequired,o=e.isInvalid,u=e.isDisabled,d=e.isReadOnly,f=l(e,["id","isRequired","isInvalid","isDisabled","isReadOnly"]),p=(0,r.useId)(),h=t||"field-"+p,v=h+"-label",m=h+"-feedback",g=h+"-helptext",y=s.useState(!1),b=y[0],w=y[1],x=s.useState(!1),_=x[0],k=x[1],E=(0,r.useBoolean)(),O=E[0],C=E[1],T=s.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),c({id:g},e,{ref:(0,a.mergeRefs)(t,(function(e){e&&k(!0)}))})}),[g]),M=s.useCallback((function(e,t){var n,r;return void 0===e&&(e={}),void 0===t&&(t=null),c({},e,{ref:t,"data-focus":(0,i.dataAttr)(O),"data-disabled":(0,i.dataAttr)(u),"data-invalid":(0,i.dataAttr)(o),"data-readonly":(0,i.dataAttr)(d),id:null!=(n=e.id)?n:v,htmlFor:null!=(r=e.htmlFor)?r:h})}),[h,u,O,o,d,v]),S=s.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),c({id:m},e,{ref:(0,a.mergeRefs)(t,(function(e){e&&w(!0)})),"aria-live":"polite"})}),[m]),P=s.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),c({},e,f,{ref:t,role:"group"})}),[f]),j=s.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),c({},e,{ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"})}),[]),I=s.useCallback((function(){(0,i.scheduleMicrotask)(C.on)}),[C]);return{isRequired:!!n,isInvalid:!!o,isReadOnly:!!d,isDisabled:!!u,isFocused:!!O,onFocus:I,onBlur:C.off,hasFeedbackText:b,setHasFeedbackText:w,hasHelpText:_,setHasHelpText:k,id:h,labelId:v,feedbackId:m,helpTextId:g,htmlProps:f,getHelpTextProps:T,getErrorMessageProps:S,getRootProps:P,getLabelProps:M,getRequiredIndicatorProps:j}}((0,o.omitThemingProps)(e)),d=u.getRootProps,p=(u.htmlProps,l(u,["getRootProps","htmlProps"])),h=(0,i.cx)("chakra-form-control",e.className),v=s.useMemo((function(){return p}),[p]);return s.createElement(f,{value:v},s.createElement(o.StylesProvider,{value:n},s.createElement(o.chakra.div,c({},d({},t),{className:h,__css:{width:"100%",position:"relative"}}))))}));t.FormControl=h,i.__DEV__&&(h.displayName="FormControl");var v=(0,o.forwardRef)((function(e,t){var n=p(),r=(0,o.useStyles)(),a=(0,i.cx)("chakra-form__helper-text",e.className);return s.createElement(o.chakra.div,c({},null==n?void 0:n.getHelpTextProps(e,t),{__css:r.helperText,className:a}))}));t.FormHelperText=v,i.__DEV__&&(v.displayName="FormHelperText")},7609:function(e,t,n){"use strict";t.__esModule=!0,t.FormErrorIcon=t.FormErrorMessage=void 0;var r,o=(r=n(29559))&&r.__esModule?r:{default:r},i=n(48121),a=n(66751),s=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),u=n(71312);function c(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function l(){return(l=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(c,["className","children","requiredIndicator"]),v=(0,a.useFormControlContext)(),m=null!=(n=null==v?void 0:v.getLabelProps(h,t))?n:u({ref:t},h);return i.createElement(r.chakra.label,u({},m,{className:(0,o.cx)("chakra-form__label",c.className),__css:u({display:"block",textAlign:"start"},s)}),d,null!=v&&v.isRequired?p:null)}));t.FormLabel=c,o.__DEV__&&(c.displayName="FormLabel");var l=(0,r.forwardRef)((function(e,t){var n=(0,a.useFormControlContext)(),s=(0,r.useStyles)();if(null==n||!n.isRequired)return null;var c=(0,o.cx)("chakra-form__required-indicator",e.className);return i.createElement(r.chakra.span,u({},null==n?void 0:n.getRequiredIndicatorProps(e,t),{__css:s.requiredIndicator,className:c}))}));t.RequiredIndicator=l,o.__DEV__&&(l.displayName="RequiredIndicator")},88323:function(e,t,n){"use strict";t.__esModule=!0;var r=n(71312);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(436);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(7609);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var a=n(22786);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||(t[e]=a[e]))}))},436:function(e,t,n){"use strict";t.__esModule=!0,t.useFormControl=function(e){var t=s(e),n=t.isDisabled,o=t.isInvalid,u=t.isReadOnly,c=t.isRequired;return i({},a(t,["isDisabled","isInvalid","isReadOnly","isRequired"]),{disabled:n,readOnly:u,required:c,"aria-invalid":(0,r.ariaAttr)(o),"aria-required":(0,r.ariaAttr)(c),"aria-readonly":(0,r.ariaAttr)(u)})},t.useFormControlProps=s;var r=n(66751),o=n(71312);function i(){return(i=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function s(e){var t,n,s,u=(0,o.useFormControlContext)(),c=e.id,l=e.disabled,d=e.readOnly,f=e.required,p=e.isRequired,h=e.isInvalid,v=e.isReadOnly,m=e.isDisabled,g=e.onFocus,y=e.onBlur,b=a(e,["id","disabled","readOnly","required","isRequired","isInvalid","isReadOnly","isDisabled","onFocus","onBlur"]),w=[];return null!=u&&u.hasFeedbackText&&null!=u&&u.isInvalid&&w.push(u.feedbackId),null!=u&&u.hasHelpText&&w.push(u.helpTextId),i({},b,{"aria-describedby":w.join(" ")||void 0,id:null!=c?c:null==u?void 0:u.id,isDisabled:null!=(t=null!=l?l:m)?t:null==u?void 0:u.isDisabled,isReadOnly:null!=(n=null!=d?d:v)?n:null==u?void 0:u.isReadOnly,isRequired:null!=(s=null!=f?f:p)?s:null==u?void 0:u.isRequired,isInvalid:null!=h?h:null==u?void 0:u.isInvalid,onFocus:(0,r.callAllHandlers)(null==u?void 0:u.onFocus,g),onBlur:(0,r.callAllHandlers)(null==u?void 0:u.onBlur,y)})}},81959:function(e,t,n){"use strict";t.__esModule=!0;var r=n(59627);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(69038);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(26872);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var a=n(46903);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||(t[e]=a[e]))}));var s=n(6993);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))}));var u=n(75624);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||(t[e]=u[e]))}));var c=n(33243);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||(t[e]=c[e]))}));var l=n(97649);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||(t[e]=l[e]))}));var d=n(31948);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||(t[e]=d[e]))}));var f=n(33131);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||(t[e]=f[e]))}));var p=n(53498);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||(t[e]=p[e]))}));var h=n(19867);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||(t[e]=h[e]))}));var v=n(59457);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===v[e]||(t[e]=v[e]))}));var m=n(92695);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===m[e]||(t[e]=m[e]))}));var g=n(34281);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===g[e]||(t[e]=g[e]))}));var y=n(8042);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===y[e]||(t[e]=y[e]))}));var b=n(19679);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===b[e]||(t[e]=b[e]))}));var w=n(24754);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===w[e]||(t[e]=w[e]))}));var x=n(12166);Object.keys(x).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===x[e]||(t[e]=x[e]))}));var _=n(89395);Object.keys(_).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===_[e]||(t[e]=_[e]))}));var k=n(3267);Object.keys(k).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===k[e]||(t[e]=k[e]))}));var E=n(26465);Object.keys(E).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===E[e]||(t[e]=E[e]))}));var O=n(30474);Object.keys(O).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===O[e]||(t[e]=O[e]))}));var C=n(129);Object.keys(C).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===C[e]||(t[e]=C[e]))}));var T=n(70709);Object.keys(T).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===T[e]||(t[e]=T[e]))}));var M=n(19197);Object.keys(M).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===M[e]||(t[e]=M[e]))}));var S=n(43670);Object.keys(S).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===S[e]||(t[e]=S[e]))}));var P=n(42093);Object.keys(P).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===P[e]||(t[e]=P[e]))}));var j=n(52594);Object.keys(j).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===j[e]||(t[e]=j[e]))}));var I=n(70005);Object.keys(I).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===I[e]||(t[e]=I[e]))}))},59627:function(e,t,n){"use strict";t.__esModule=!0,t.useBoolean=function(e){void 0===e&&(e=!1);var t=(0,r.useState)(e),n=t[0],o=t[1],i=(0,r.useCallback)((function(){o(!0)}),[]),a=(0,r.useCallback)((function(){o(!1)}),[]),s=(0,r.useCallback)((function(){o((function(e){return!e}))}),[]);return[n,{on:i,off:a,toggle:s}]};var r=n(67294)},69038:function(e,t,n){"use strict";t.__esModule=!0,t.useCallbackRef=function(e,t){void 0===t&&(t=[]);var n=r.useRef(e);return(0,o.useSafeLayoutEffect)((function(){n.current=e})),r.useCallback((function(){for(var e=arguments.length,t=new Array(e),r=0;r=0||(o[n]=e[n]);return o}(s,["timeout"]),d=(0,o.useCallback)((function(){var t=(0,i.default)(e,l);a(t)}),[e,l]);return(0,o.useEffect)((function(){var e=null;return r&&(e=window.setTimeout((function(){a(!1)}),c)),function(){e&&window.clearTimeout(e)}}),[c,r]),{value:e,onCopy:d,hasCopied:r}};var r,o=n(67294),i=(r=n(20640))&&r.__esModule?r:{default:r}},46903:function(e,t,n){"use strict";t.__esModule=!0,t.useConst=function(e){var t=(0,r.useRef)(null);null===t.current&&(t.current="function"===typeof e?e():e);return t.current};var r=n(67294)},6993:function(e,t,n){"use strict";t.__esModule=!0,t.useControllableProp=function(e,t){var n=void 0!==e;return[n,n&&"undefined"!==typeof e?e:t]},t.useControllableState=function(e){var t=e.value,n=e.defaultValue,a=e.onChange,s=e.shouldUpdate,u=void 0===s?function(e,t){return e!==t}:s,c=(0,i.useCallbackRef)(a),l=(0,i.useCallbackRef)(u),d=o.useState(n),f=d[0],p=d[1],h=void 0!==t,v=h?t:f,m=o.useCallback((function(e){var t=(0,r.runIfFn)(e,v);l(v,t)&&(h||p(t),c(t))}),[h,c,v,l]);return[v,m]};var r=n(66751),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),i=n(69038);function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}},75624:function(e,t,n){"use strict";t.__esModule=!0,t.useDimensions=function(e,t){var n=r.useState(null),a=n[0],s=n[1],u=r.useRef();return(0,i.useSafeLayoutEffect)((function(){if(e.current){var n=e.current;return r(),t&&(window.addEventListener("resize",r),window.addEventListener("scroll",r)),function(){t&&(window.removeEventListener("resize",r),window.removeEventListener("scroll",r)),u.current&&cancelAnimationFrame(u.current)}}function r(){u.current=requestAnimationFrame((function(){var e=(0,o.getBox)(n);s(e)}))}}),[t]),a};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),o=n(66751),i=n(70709);function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}},33243:function(e,t,n){"use strict";t.__esModule=!0,t.useDisclosure=function(e){void 0===e&&(e={});var t=e,n=t.onClose,s=t.onOpen,c=t.isOpen,l=t.id,d=o.useState(e.defaultIsOpen||!1),f=d[0],p=d[1],h=(0,i.useControllableProp)(c,f),v=h[0],m=h[1],g=(0,a.useId)(l,"disclosure"),y=o.useCallback((function(){v||p(!1),null==n||n()}),[v,n]),b=o.useCallback((function(){v||p(!0),null==s||s()}),[v,s]),w=o.useCallback((function(){(m?y:b)()}),[m,b,y]);return{isOpen:!!m,onOpen:b,onClose:y,onToggle:w,isControlled:v,getButtonProps:function(e){return void 0===e&&(e={}),u({},e,{"aria-expanded":"true","aria-controls":g,onClick:(0,r.callAllHandlers)(e.onClick,w)})},getDisclosureProps:function(e){return void 0===e&&(e={}),u({},e,{hidden:!m,id:g})}}};var r=n(66751),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),i=n(6993),a=n(8042);function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(){return(u=Object.assign||function(e){for(var t=1;t1?n-1:0),o=1;o0&&(0,r.focus)(e[0],{preventScroll:c,nextTick:!0})}}),[p,c,f,u]);(0,a.useUpdateEffect)((function(){h()}),[h]),(0,i.useEventListener)("transitionend",h,f)};var r=n(66751),o=n(67294),i=n(31948),a=n(52594),s={preventScroll:!0,shouldFocus:!1}},34281:function(e,t,n){"use strict";t.__esModule=!0,t.useForceUpdate=function(){var e=r.useRef(!1),t=r.useState(0),n=t[0],i=t[1];return(0,o.useUnmountEffect)((function(){e.current=!0})),r.useCallback((function(){e.current||i(n+1)}),[n])};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),o=n(42093);function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}},8042:function(e,t,n){"use strict";t.__esModule=!0,t.useId=u,t.useIds=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o0)return!1;if(o&&!(0,r.getOwnerDocument)(o).body.contains(o))return!1;return!(null!=(n=t.current)&&n.contains(o))}},26465:function(e,t,n){"use strict";t.__esModule=!0,t.usePanGesture=function(e,t){var n=t.onPan,s=t.onPanStart,u=t.onPanEnd,c=t.onPanSessionStart,l=t.onPanSessionEnd,d=Boolean(n||s||u||c||l),f=(0,o.useRef)(null),p={onSessionStart:c,onSessionEnd:l,onStart:s,onMove:n,onEnd:function(e,t){f.current=null,null==u||u(e,t)}};(0,o.useEffect)((function(){var e;null==(e=f.current)||e.updateHandlers(p)})),(0,i.usePointerEvent)((function(){return e.current}),"pointerdown",d?function(e){f.current=new r.PanSession(e,p)}:r.noop),(0,a.useUnmountEffect)((function(){var e;null==(e=f.current)||e.end(),f.current=null}))};var r=n(66751),o=n(67294),i=n(30474),a=n(42093)},30474:function(e,t,n){"use strict";t.__esModule=!0,t.usePointerEvent=function(e,t,n,i){return(0,o.useEventListener)((0,r.getPointerEventName)(t),(0,r.wrapPointerEventHandler)(n,"pointerdown"===t),e,i)};var r=n(66751),o=n(31948)},129:function(e,t,n){"use strict";t.__esModule=!0,t.usePrevious=function(e){var t=(0,r.useRef)();return(0,r.useEffect)((function(){t.current=e}),[e]),t.current};var r=n(67294)},70709:function(e,t,n){"use strict";t.__esModule=!0,t.useSafeLayoutEffect=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}var i=n(66751).isBrowser?r.useLayoutEffect:r.useEffect;t.useSafeLayoutEffect=i},19197:function(e,t,n){"use strict";t.__esModule=!0,t.useShortcut=function(e){void 0===e&&(e={});var t=e,n=t.timeout,o=void 0===n?300:n,i=t.preventDefault,a=void 0===i?function(){return!0}:i,s=r.useState([]),u=s[0],c=s[1],l=r.useRef(),d=function(){l.current&&(clearTimeout(l.current),l.current=null)},f=function(){d(),l.current=setTimeout((function(){c([]),l.current=null}),o)};return r.useEffect((function(){return d}),[]),function(e){return function(t){if("Backspace"===t.key){var n=[].concat(u);return n.pop(),void c(n)}if(function(e){var t=e.key;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(t)){var r=u.concat(t.key);a(t)&&(t.preventDefault(),t.stopPropagation()),c(r),e(r.join("")),f()}}}};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}},43670:function(e,t,n){"use strict";t.__esModule=!0,t.useTimeout=function(e,t){var n=(0,o.useCallbackRef)(e);r.useEffect((function(){if(null!=t){var e;return e=window.setTimeout((function(){n()}),t),function(){e&&window.clearTimeout(e)}}}),[t,n])};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),o=n(69038);function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}},42093:function(e,t,n){"use strict";t.__esModule=!0,t.useUnmountEffect=function(e,t){void 0===t&&(t=[]);return r.useEffect((function(){return function(){return e()}}),t)};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}},52594:function(e,t,n){"use strict";t.__esModule=!0,t.useUpdateEffect=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}t.useUpdateEffect=function(e,t){var n=r.useRef(!1);return r.useEffect((function(){if(n.current)return e();n.current=!0}),t),n.current}},70005:function(e,t,n){"use strict";t.__esModule=!0,t.useWhyDidYouUpdate=function(e,t){var n=r.useRef();r.useEffect((function(){if(n.current){var r=Object.keys(i({},n.current,t)),o={};r.forEach((function(e){n.current[e]!==t[e]&&(o[e]={from:n.current[e],to:t[e]})})),Object.keys(o).length&&console.log("[why-did-you-update]",e,o)}n.current=t}))};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function i(){return(i=Object.assign||function(e){for(var t=1;t{n(!0)}),[]),off:(0,r.useCallback)((()=>{n(!1)}),[]),toggle:(0,r.useCallback)((()=>{n((e=>!e))}),[])}]}},10762:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(67294),o=n(68327);function i(e,t){void 0===t&&(t=[]);var n=r.useRef(e);return(0,o.G)((()=>{n.current=e})),r.useCallback((function(){for(var e=arguments.length,t=new Array(e),r=0;re!==t)}=e,u=(0,i.W)(a),c=(0,i.W)(s),[l,d]=o.useState(n),f=void 0!==t,p=f?t:l,h=o.useCallback((e=>{var t=(0,r.Pu)(e,p);c(p,t)&&(f||d(t),u(t))}),[f,u,p,c]);return[p,h]}},74860:function(e,t,n){"use strict";n.d(t,{q:function(){return u}});var r=n(80658),o=n(67294),i=n(51034),a=n(94577);function s(){return(s=Object.assign||function(e){for(var t=1;t{f||d(!1),null==t||t()}),[f,t]),m=o.useCallback((()=>{f||d(!0),null==n||n()}),[f,n]),g=o.useCallback((()=>{(p?v:m)()}),[p,m,v]);return{isOpen:!!p,onOpen:m,onClose:v,onToggle:g,isControlled:f,getButtonProps:function(e){return void 0===e&&(e={}),s({},e,{"aria-expanded":"true","aria-controls":h,onClick:(0,r.v0)(e.onClick,g)})},getDisclosureProps:function(e){return void 0===e&&(e={}),s({},e,{hidden:!p,id:h})}}}},34941:function(e,t,n){"use strict";n.d(t,{O:function(){return a}});var r=n(80658),o=n(67294),i=n(10762);function a(e,t,n,a){var s=(0,i.W)(t);return o.useEffect((()=>{var t,o=null!=(t=(0,r.Pu)(n))?t:document;return o.addEventListener(e,s,a),()=>{o.removeEventListener(e,s,a)}}),[e,n,a,s]),()=>{var t;(null!=(t=(0,r.Pu)(n))?t:document).removeEventListener(e,s,a)}}},68327:function(e,t,n){"use strict";n.d(t,{G:function(){return o}});var r=n(67294),o=n(84461).jU?r.useLayoutEffect:r.useEffect},77581:function(e,t,n){"use strict";n.d(t,{z:function(){return o}});var r=n(67294);function o(e,t){return void 0===t&&(t=[]),r.useEffect((()=>()=>e()),t)}},22653:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(67294),o=(e,t)=>{var n=r.useRef(!1);return r.useEffect((()=>{if(n.current)return e();n.current=!0}),t),n.current}},87474:function(e,t,n){"use strict";t.__esModule=!0,t.createIcon=function(e){var t=e.viewBox,n=void 0===t?"0 0 24 24":t,s=e.d,c=e.path,l=e.displayName,d=e.defaultProps,f=void 0===d?{}:d,p=(0,r.forwardRef)((function(e,t){return i.createElement(a.Icon,u({ref:t,viewBox:n},f,e),null!=c?c:i.createElement("path",{fill:"currentColor",d:s}))}));o.__DEV__&&(p.displayName=l);return p};var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),a=n(41120);function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,["as","viewBox","color","focusable","children","className","__css"]),g={ref:t,focusable:f,className:(0,o.cx)("chakra-icon",h),__css:s({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:l},v)},y=null!=a?a:u.viewBox;if(n&&"string"!==typeof n)return i.createElement(r.chakra.svg,s({as:n},g,m));var b=null!=p?p:u.path;return i.createElement(r.chakra.svg,s({verticalAlign:"middle",viewBox:y},g,m),b)}));t.Icon=c,o.__DEV__&&(c.displayName="Icon");var l=c;t.default=l},29559:function(e,t,n){"use strict";t.__esModule=!0;var r={};t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(41120));t.default=o.default,Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(87474);function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===i[e]||(t[e]=i[e]))}))},89867:function(e,t,n){"use strict";n.d(t,{I:function(){return u}});var r=n(90063),o=n(73808),i=n(67294),a=n(70058);function s(){return(s=Object.assign||function(e){for(var t=1;ti.createElement(a.J,s({ref:r,viewBox:t},l,e),null!=u?u:i.createElement("path",{fill:"currentColor",d:n}))));return o.Ts&&(d.displayName=c),d}},70058:function(e,t,n){"use strict";n.d(t,{J:function(){return l}});var r=n(90063),o=n(89384),i=n(84461),a=n(73808),s=n(67294);function u(){return(u=Object.assign||function(e){for(var t=1;t{var{as:n,viewBox:r,color:a="currentColor",focusable:l=!1,children:d,className:f,__css:p}=e,h=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["as","viewBox","color","focusable","children","className","__css"]),v={ref:t,focusable:l,className:(0,i.cx)("chakra-icon",f),__css:u({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:a},p)},m=null!=r?r:c.viewBox;if(n&&"string"!==typeof n)return s.createElement(o.m$.svg,u({as:n},v,h));var g=null!=d?d:c.path;return s.createElement(o.m$.svg,u({verticalAlign:"middle",viewBox:m},v,h),g)}));a.Ts&&(l.displayName="Icon")},79095:function(e,t,n){"use strict";t.__esModule=!0,t.AddIcon=void 0;var r=(0,n(29559).createIcon)({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"});t.AddIcon=r},41725:function(e,t,n){"use strict";t.__esModule=!0,t.ArrowBackIcon=void 0;var r=(0,n(29559).createIcon)({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"});t.ArrowBackIcon=r},16748:function(e,t,n){"use strict";t.__esModule=!0,t.ArrowDownIcon=void 0;var r=(0,n(29559).createIcon)({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"});t.ArrowDownIcon=r},75616:function(e,t,n){"use strict";t.__esModule=!0,t.ArrowForwardIcon=void 0;var r=(0,n(29559).createIcon)({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"});t.ArrowForwardIcon=r},30820:function(e,t,n){"use strict";t.__esModule=!0,t.ArrowLeftIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"ArrowLeftIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M10.416,12a2.643,2.643,0,0,1,.775-1.875L20.732.584a1.768,1.768,0,0,1,2.5,2.5l-8.739,8.739a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5l-9.541-9.541A2.643,2.643,0,0,1,10.416,12Z"}),o.createElement("path",{d:"M.25,12a2.643,2.643,0,0,1,.775-1.875L10.566.584a1.768,1.768,0,0,1,2.5,2.5L4.327,11.823a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5L1.025,13.875A2.643,2.643,0,0,1,.25,12Z"}))});t.ArrowLeftIcon=a},57243:function(e,t,n){"use strict";t.__esModule=!0,t.ArrowRightIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"ArrowRightIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"}),o.createElement("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"}))});t.ArrowRightIcon=a},38677:function(e,t,n){"use strict";t.__esModule=!0,t.ArrowUpIcon=void 0;var r=(0,n(29559).createIcon)({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"});t.ArrowUpIcon=r},94707:function(e,t,n){"use strict";t.__esModule=!0,t.ArrowUpDownIcon=void 0;var r=(0,n(29559).createIcon)({viewBox:"0 0 16 16",d:"M11.891 9.992a1 1 0 1 1 1.416 1.415l-4.3 4.3a1 1 0 0 1-1.414 0l-4.3-4.3A1 1 0 0 1 4.71 9.992l3.59 3.591 3.591-3.591zm0-3.984L8.3 2.417 4.709 6.008a1 1 0 0 1-1.416-1.415l4.3-4.3a1 1 0 0 1 1.414 0l4.3 4.3a1 1 0 1 1-1.416 1.415z",displayName:"ArrowUpDownIcon"});t.ArrowUpDownIcon=r},64551:function(e,t,n){"use strict";t.__esModule=!0,t.AtSignIcon=void 0;var r=(0,n(29559).createIcon)({displayName:"AtSignIcon",d:"M12,.5A11.634,11.634,0,0,0,.262,12,11.634,11.634,0,0,0,12,23.5a11.836,11.836,0,0,0,6.624-2,1.25,1.25,0,1,0-1.393-2.076A9.34,9.34,0,0,1,12,21a9.132,9.132,0,0,1-9.238-9A9.132,9.132,0,0,1,12,3a9.132,9.132,0,0,1,9.238,9v.891a1.943,1.943,0,0,1-3.884,0V12A5.355,5.355,0,1,0,12,17.261a5.376,5.376,0,0,0,3.861-1.634,4.438,4.438,0,0,0,7.877-2.736V12A11.634,11.634,0,0,0,12,.5Zm0,14.261A2.763,2.763,0,1,1,14.854,12,2.812,2.812,0,0,1,12,14.761Z"});t.AtSignIcon=r},78281:function(e,t,n){"use strict";t.__esModule=!0,t.AttachmentIcon=void 0;var r=(0,n(29559).createIcon)({displayName:"AttachmentIcon",d:"M21.843,3.455a6.961,6.961,0,0,0-9.846,0L1.619,13.832a5.128,5.128,0,0,0,7.252,7.252L17.3,12.653A3.293,3.293,0,1,0,12.646,8L7.457,13.184A1,1,0,1,0,8.871,14.6L14.06,9.409a1.294,1.294,0,0,1,1.829,1.83L7.457,19.67a3.128,3.128,0,0,1-4.424-4.424L13.411,4.869a4.962,4.962,0,1,1,7.018,7.018L12.646,19.67a1,1,0,1,0,1.414,1.414L21.843,13.3a6.96,6.96,0,0,0,0-9.846Z"});t.AttachmentIcon=r},94688:function(e,t,n){"use strict";t.__esModule=!0,t.BellIcon=void 0;var r=(0,n(29559).createIcon)({displayName:"BellIcon",d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"});t.BellIcon=r},51713:function(e,t,n){"use strict";t.__esModule=!0,t.CalendarIcon=void 0;var r=(0,n(29559).createIcon)({displayName:"CalendarIcon",viewBox:"0 0 14 14",d:"M10.8889,5.5 L3.11111,5.5 L3.11111,7.05556 L10.8889,7.05556 L10.8889,5.5 Z M12.4444,1.05556 L11.6667,1.05556 L11.6667,0 L10.1111,0 L10.1111,1.05556 L3.88889,1.05556 L3.88889,0 L2.33333,0 L2.33333,1.05556 L1.55556,1.05556 C0.692222,1.05556 0.00777777,1.75556 0.00777777,2.61111 L0,12.5 C0,13.3556 0.692222,14 1.55556,14 L12.4444,14 C13.3,14 14,13.3556 14,12.5 L14,2.61111 C14,1.75556 13.3,1.05556 12.4444,1.05556 Z M12.4444,12.5 L1.55556,12.5 L1.55556,3.94444 L12.4444,3.94444 L12.4444,12.5 Z M8.55556,8.61111 L3.11111,8.61111 L3.11111,10.1667 L8.55556,10.1667 L8.55556,8.61111 Z"});t.CalendarIcon=r},92547:function(e,t,n){"use strict";t.__esModule=!0,t.ChatIcon=void 0;var r=(0,n(29559).createIcon)({d:"M0.913134,0.920639 C1.49851,0.331726 2.29348,0 3.12342,0 L10.8766,0 C11.7065,0 12.5015,0.331725 13.0869,0.920639 C13.6721,1.50939 14,2.30689 14,3.13746 L14,8.12943 C13.9962,8.51443 13.9059,8.97125 13.7629,9.32852 C13.6128,9.683 13.3552,10.0709 13.0869,10.3462 C12.813,10.6163 12.4265,10.8761 12.0734,11.0274 C11.7172,11.1716 11.2607,11.263 10.8766,11.2669 L10.1234,11.2669 L10.1234,12.5676 L10.1209,12.5676 C10.1204,12.793 10.0633,13.0791 9.97807,13.262 C9.8627,13.466 9.61158,13.7198 9.40818,13.8382 L9.40824,13.8383 C9.4077,13.8386 9.40716,13.8388 9.40661,13.8391 C9.40621,13.8393 9.4058,13.8396 9.40539,13.8398 L9.40535,13.8397 C9.22958,13.9254 8.94505,13.9951 8.75059,14 L8.74789,14 C8.35724,13.9963 7.98473,13.8383 7.71035,13.5617 L5.39553,11.2669 L3.12342,11.2669 C2.29348,11.2669 1.49851,10.9352 0.913134,10.3462 C0.644826,10.0709 0.387187,9.683 0.23711,9.32852 C0.0941235,8.97125 0.00379528,8.51443 0,8.12943 L0,3.13746 C0,2.30689 0.327915,1.50939 0.913134,0.920639 Z M3.12342,1.59494 C2.71959,1.59494 2.33133,1.75628 2.04431,2.04503 C1.75713,2.33395 1.59494,2.72681 1.59494,3.13746 L1.59494,8.12943 C1.59114,8.35901 1.62114,8.51076 1.71193,8.72129 C1.79563,8.9346 1.88065,9.06264 2.04431,9.22185 C2.33133,9.5106 2.71959,9.67195 3.12342,9.67195 L5.72383,9.67195 C5.93413,9.67195 6.13592,9.75502 6.28527,9.90308 L8.52848,12.1269 L8.52848,10.4694 C8.52848,10.029 8.88552,9.67195 9.32595,9.67195 L10.8766,9.67195 C11.1034,9.67583 11.2517,9.64614 11.4599,9.55518 C11.6712,9.47132 11.7976,9.38635 11.9557,9.22185 C12.1193,9.06264 12.2044,8.9346 12.2881,8.72129 C12.3789,8.51076 12.4089,8.35901 12.4051,8.12943 L12.4051,3.13746 C12.4051,2.72681 12.2429,2.33394 11.9557,2.04503 C11.6687,1.75628 11.2804,1.59494 10.8766,1.59494 L3.12342,1.59494 Z",displayName:"ChatIcon",viewBox:"0 0 14 14"});t.ChatIcon=r},26324:function(e,t,n){"use strict";t.__esModule=!0,t.CheckIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({viewBox:"0 0 14 14",path:o.createElement("g",{fill:"currentColor"},o.createElement("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"}))});t.CheckIcon=a},91204:function(e,t,n){"use strict";t.__esModule=!0,t.CheckCircleIcon=void 0;var r=(0,n(29559).createIcon)({displayName:"CheckCircleIcon",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"});t.CheckCircleIcon=r},62628:function(e,t,n){"use strict";t.__esModule=!0,t.ChevronDownIcon=void 0;var r=(0,n(29559).createIcon)({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"});t.ChevronDownIcon=r},65128:function(e,t,n){"use strict";t.__esModule=!0,t.ChevronLeftIcon=void 0;var r=(0,n(29559).createIcon)({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"});t.ChevronLeftIcon=r},7659:function(e,t,n){"use strict";t.__esModule=!0,t.ChevronRightIcon=void 0;var r=(0,n(29559).createIcon)({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});t.ChevronRightIcon=r},48959:function(e,t,n){"use strict";t.__esModule=!0,t.ChevronUpIcon=void 0;var r=(0,n(29559).createIcon)({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"});t.ChevronUpIcon=r},34066:function(e,t,n){"use strict";t.__esModule=!0,t.CloseIcon=void 0;var r=(0,n(29559).createIcon)({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"});t.CloseIcon=r},68789:function(e,t,n){"use strict";t.__esModule=!0,t.CopyIcon=void 0;var r=(0,n(29559).createIcon)({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"});t.CopyIcon=r},60915:function(e,t,n){"use strict";t.__esModule=!0,t.DeleteIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"DeleteIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"}))});t.DeleteIcon=a},5013:function(e,t,n){"use strict";t.__esModule=!0,t.DownloadIcon=void 0;var r=(0,n(29559).createIcon)({d:"M11.2857,6.05714 L10.08571,4.85714 L7.85714,7.14786 L7.85714,1 L6.14286,1 L6.14286,7.14786 L3.91429,4.85714 L2.71429,6.05714 L7,10.42857 L11.2857,6.05714 Z M1,11.2857 L1,13 L13,13 L13,11.2857 L1,11.2857 Z",displayName:"DownloadIcon",viewBox:"0 0 14 14"});t.DownloadIcon=r},54411:function(e,t,n){"use strict";t.__esModule=!0,t.DragHandleIcon=void 0;var r=(0,n(29559).createIcon)({viewBox:"0 0 10 10",d:"M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z",displayName:"DragHandleIcon"});t.DragHandleIcon=r},27915:function(e,t,n){"use strict";t.__esModule=!0,t.EditIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"EditIcon",path:o.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},o.createElement("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),o.createElement("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"}))});t.EditIcon=a},9079:function(e,t,n){"use strict";t.__esModule=!0,t.EmailIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"EmailIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M11.114,14.556a1.252,1.252,0,0,0,1.768,0L22.568,4.87a.5.5,0,0,0-.281-.849A1.966,1.966,0,0,0,22,4H2a1.966,1.966,0,0,0-.289.021.5.5,0,0,0-.281.849Z"}),o.createElement("path",{d:"M23.888,5.832a.182.182,0,0,0-.2.039l-6.2,6.2a.251.251,0,0,0,0,.354l5.043,5.043a.75.75,0,1,1-1.06,1.061l-5.043-5.043a.25.25,0,0,0-.354,0l-2.129,2.129a2.75,2.75,0,0,1-3.888,0L7.926,13.488a.251.251,0,0,0-.354,0L2.529,18.531a.75.75,0,0,1-1.06-1.061l5.043-5.043a.251.251,0,0,0,0-.354l-6.2-6.2a.18.18,0,0,0-.2-.039A.182.182,0,0,0,0,6V18a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V6A.181.181,0,0,0,23.888,5.832Z"}))});t.EmailIcon=a},59096:function(e,t,n){"use strict";t.__esModule=!0,t.ExternalLinkIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"ExternalLinkIcon",path:o.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},o.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),o.createElement("path",{d:"M15 3h6v6"}),o.createElement("path",{d:"M10 14L21 3"}))});t.ExternalLinkIcon=a},14122:function(e,t,n){"use strict";t.__esModule=!0,t.HamburgerIcon=void 0;var r=(0,n(29559).createIcon)({displayName:"HamburgerIcon",viewBox:"0 0 24 24",d:"M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z"});t.HamburgerIcon=r},49537:function(e,t,n){"use strict";t.__esModule=!0,t.InfoIcon=void 0;var r=(0,n(29559).createIcon)({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"});t.InfoIcon=r},20883:function(e,t,n){"use strict";t.__esModule=!0,t.InfoOutlineIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"InfoOutlineIcon",path:o.createElement("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2"},o.createElement("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),o.createElement("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),o.createElement("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"}))});t.InfoOutlineIcon=a},25929:function(e,t,n){"use strict";t.__esModule=!0,t.LinkIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"LinkIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M10.458,18.374,7.721,21.11a2.853,2.853,0,0,1-3.942,0l-.892-.891a2.787,2.787,0,0,1,0-3.941l5.8-5.8a2.789,2.789,0,0,1,3.942,0l.893.892A1,1,0,0,0,14.94,9.952l-.893-.892a4.791,4.791,0,0,0-6.771,0l-5.8,5.8a4.787,4.787,0,0,0,0,6.77l.892.891a4.785,4.785,0,0,0,6.771,0l2.736-2.735a1,1,0,1,0-1.414-1.415Z"}),o.createElement("path",{d:"M22.526,2.363l-.892-.892a4.8,4.8,0,0,0-6.77,0l-2.905,2.9a1,1,0,0,0,1.414,1.414l2.9-2.9a2.79,2.79,0,0,1,3.941,0l.893.893a2.786,2.786,0,0,1,0,3.942l-5.8,5.8a2.769,2.769,0,0,1-1.971.817h0a2.766,2.766,0,0,1-1.969-.816,1,1,0,1,0-1.415,1.412,4.751,4.751,0,0,0,3.384,1.4h0a4.752,4.752,0,0,0,3.385-1.4l5.8-5.8a4.786,4.786,0,0,0,0-6.771Z"}))});t.LinkIcon=a},81971:function(e,t,n){"use strict";t.__esModule=!0,t.LockIcon=void 0;var r=(0,n(29559).createIcon)({d:"M19.5,9.5h-.75V6.75a6.75,6.75,0,0,0-13.5,0V9.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5ZM7.75,6.75a4.25,4.25,0,0,1,8.5,0V9a.5.5,0,0,1-.5.5H8.25a.5.5,0,0,1-.5-.5Z",displayName:"LockIcon"});t.LockIcon=r},49888:function(e,t,n){"use strict";t.__esModule=!0,t.MinusIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"MinusIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("rect",{height:"4",width:"20",x:"2",y:"10"}))});t.MinusIcon=a},38054:function(e,t,n){"use strict";t.__esModule=!0,t.MoonIcon=void 0;var r=(0,n(29559).createIcon)({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"});t.MoonIcon=r},7846:function(e,t,n){"use strict";t.__esModule=!0,t.NotAllowedIcon=void 0;var r=(0,n(29559).createIcon)({d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z",displayName:"NotAllowedIcon"});t.NotAllowedIcon=r},98271:function(e,t,n){"use strict";t.__esModule=!0,t.PhoneIcon=void 0;var r=(0,n(29559).createIcon)({d:"M2.20731,0.0127209 C2.1105,-0.0066419 1.99432,-0.00664663 1.91687,0.032079 C0.871279,0.438698 0.212942,1.92964 0.0580392,2.95587 C-0.426031,6.28627 2.20731,9.17133 4.62766,11.0689 C6.77694,12.7534 10.9012,15.5223 13.3409,12.8503 C13.6507,12.5211 14.0186,12.037 13.9993,11.553 C13.9412,10.7397 13.186,10.1588 12.6051,9.71349 C12.1598,9.38432 11.2304,8.47427 10.6495,8.49363 C10.1267,8.51299 9.79754,9.05515 9.46837,9.38432 L8.88748,9.96521 C8.79067,10.062 7.55145,9.24878 7.41591,9.15197 C6.91248,8.8228 6.4284,8.45491 6.00242,8.04829 C5.57644,7.64167 5.18919,7.19632 4.86002,6.73161 C4.7632,6.59607 3.96933,5.41495 4.04678,5.31813 C4.04678,5.31813 4.72448,4.58234 4.91811,4.2919 C5.32473,3.67229 5.63453,3.18822 5.16982,2.45243 C4.99556,2.18135 4.78257,1.96836 4.55021,1.73601 C4.14359,1.34875 3.73698,0.942131 3.27227,0.612963 C3.02055,0.419335 2.59457,0.0708094 2.20731,0.0127209 Z",displayName:"PhoneIcon",viewBox:"0 0 14 14"});t.PhoneIcon=r},12779:function(e,t,n){"use strict";t.__esModule=!0,t.PlusSquareIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"PlusSquareIcon",path:o.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},o.createElement("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"}),o.createElement("path",{d:"M12 8v8"}),o.createElement("path",{d:"M8 12h8"}))});t.PlusSquareIcon=a},93942:function(e,t,n){"use strict";t.__esModule=!0,t.QuestionIcon=void 0;var r=(0,n(29559).createIcon)({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm0,19a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,12,19Zm1.6-6.08a1,1,0,0,0-.6.917,1,1,0,1,1-2,0,3,3,0,0,1,1.8-2.75A2,2,0,1,0,10,9.255a1,1,0,1,1-2,0,4,4,0,1,1,5.6,3.666Z",displayName:"QuestionIcon"});t.QuestionIcon=r},43370:function(e,t,n){"use strict";t.__esModule=!0,t.QuestionOutlineIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"QuestionOutlineIcon",path:o.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},o.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),o.createElement("path",{fill:"none",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),o.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"}))});t.QuestionOutlineIcon=a},46889:function(e,t,n){"use strict";t.__esModule=!0,t.RepeatIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"RepeatIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"}),o.createElement("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"}))});t.RepeatIcon=a},46364:function(e,t,n){"use strict";t.__esModule=!0,t.RepeatClockIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"RepeatClockIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M12.965,6a1,1,0,0,0-1,1v5.5a1,1,0,0,0,1,1h5a1,1,0,0,0,0-2h-3.75a.25.25,0,0,1-.25-.25V7A1,1,0,0,0,12.965,6Z"}),o.createElement("path",{d:"M12.567,1.258A10.822,10.822,0,0,0,2.818,8.4a.25.25,0,0,1-.271.163L.858,8.309a.514.514,0,0,0-.485.213.5.5,0,0,0-.021.53l2.679,4.7a.5.5,0,0,0,.786.107l3.77-3.746a.5.5,0,0,0-.279-.85L5.593,9.007a.25.25,0,0,1-.192-.35,8.259,8.259,0,1,1,7.866,11.59,1.25,1.25,0,0,0,.045,2.5h.047a10.751,10.751,0,1,0-.792-21.487Z"}))});t.RepeatClockIcon=a},43761:function(e,t,n){"use strict";t.__esModule=!0,t.SearchIcon=void 0;var r=(0,n(29559).createIcon)({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"});t.SearchIcon=r},66264:function(e,t,n){"use strict";t.__esModule=!0,t.Search2Icon=void 0;var r=(0,n(29559).createIcon)({d:"M23.414,20.591l-4.645-4.645a10.256,10.256,0,1,0-2.828,2.829l4.645,4.644a2.025,2.025,0,0,0,2.828,0A2,2,0,0,0,23.414,20.591ZM10.25,3.005A7.25,7.25,0,1,1,3,10.255,7.258,7.258,0,0,1,10.25,3.005Z",displayName:"Search2Icon"});t.Search2Icon=r},11375:function(e,t,n){"use strict";t.__esModule=!0,t.SettingsIcon=void 0;var r=(0,n(29559).createIcon)({viewBox:"0 0 14 14",d:"M14,7.77 L14,6.17 L12.06,5.53 L11.61,4.44 L12.49,2.6 L11.36,1.47 L9.55,2.38 L8.46,1.93 L7.77,0.01 L6.17,0.01 L5.54,1.95 L4.43,2.4 L2.59,1.52 L1.46,2.65 L2.37,4.46 L1.92,5.55 L0,6.23 L0,7.82 L1.94,8.46 L2.39,9.55 L1.51,11.39 L2.64,12.52 L4.45,11.61 L5.54,12.06 L6.23,13.98 L7.82,13.98 L8.45,12.04 L9.56,11.59 L11.4,12.47 L12.53,11.34 L11.61,9.53 L12.08,8.44 L14,7.75 L14,7.77 Z M7,10 C5.34,10 4,8.66 4,7 C4,5.34 5.34,4 7,4 C8.66,4 10,5.34 10,7 C10,8.66 8.66,10 7,10 Z",displayName:"SettingsIcon"});t.SettingsIcon=r},23961:function(e,t,n){"use strict";t.__esModule=!0,t.SmallAddIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:o.createElement("path",{fill:"currentColor",d:"M14 9h-3V6c0-.55-.45-1-1-1s-1 .45-1 1v3H6c-.55 0-1 .45-1 1s.45 1 1 1h3v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1-1s-.45-1-1-1z",fillRule:"evenodd"})});t.SmallAddIcon=a},2746:function(e,t,n){"use strict";t.__esModule=!0,t.SmallCloseIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:o.createElement("path",{d:"M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z",fillRule:"evenodd",fill:"currentColor"})});t.SmallCloseIcon=a},28317:function(e,t,n){"use strict";t.__esModule=!0,t.SpinnerIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"SpinnerIcon",path:o.createElement(o.Fragment,null,o.createElement("defs",null,o.createElement("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a"},o.createElement("stop",{stopColor:"currentColor",offset:"0%"}),o.createElement("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"}))),o.createElement("g",{transform:"translate(2)",fill:"none"},o.createElement("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"}),o.createElement("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"}),o.createElement("rect",{fill:"currentColor",x:"8",width:"4",height:"4",rx:"8"})))});t.SpinnerIcon=a},82190:function(e,t,n){"use strict";t.__esModule=!0,t.StarIcon=void 0;var r=(0,n(29559).createIcon)({d:"M23.555,8.729a1.505,1.505,0,0,0-1.406-.98H16.062a.5.5,0,0,1-.472-.334L13.405,1.222a1.5,1.5,0,0,0-2.81,0l-.005.016L8.41,7.415a.5.5,0,0,1-.471.334H1.85A1.5,1.5,0,0,0,.887,10.4l5.184,4.3a.5.5,0,0,1,.155.543L4.048,21.774a1.5,1.5,0,0,0,2.31,1.684l5.346-3.92a.5.5,0,0,1,.591,0l5.344,3.919a1.5,1.5,0,0,0,2.312-1.683l-2.178-6.535a.5.5,0,0,1,.155-.543l5.194-4.306A1.5,1.5,0,0,0,23.555,8.729Z",displayName:"StarIcon"});t.StarIcon=r},71033:function(e,t,n){"use strict";t.__esModule=!0,t.SunIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"SunIcon",path:o.createElement("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor"},o.createElement("circle",{cx:"12",cy:"12",r:"5"}),o.createElement("path",{d:"M12 1v2"}),o.createElement("path",{d:"M12 21v2"}),o.createElement("path",{d:"M4.22 4.22l1.42 1.42"}),o.createElement("path",{d:"M18.36 18.36l1.42 1.42"}),o.createElement("path",{d:"M1 12h2"}),o.createElement("path",{d:"M21 12h2"}),o.createElement("path",{d:"M4.22 19.78l1.42-1.42"}),o.createElement("path",{d:"M18.36 5.64l1.42-1.42"}))});t.SunIcon=a},40430:function(e,t,n){"use strict";t.__esModule=!0,t.TimeIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"TimeIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm0,22A10,10,0,1,1,22,12,10.011,10.011,0,0,1,12,22Z"}),o.createElement("path",{d:"M17.134,15.81,12.5,11.561V6.5a1,1,0,0,0-2,0V12a1,1,0,0,0,.324.738l4.959,4.545a1.01,1.01,0,0,0,1.413-.061A1,1,0,0,0,17.134,15.81Z"}))});t.TimeIcon=a},33670:function(e,t,n){"use strict";t.__esModule=!0,t.TriangleDownIcon=void 0;var r=(0,n(29559).createIcon)({d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z",displayName:"TriangleDownIcon"});t.TriangleDownIcon=r},27258:function(e,t,n){"use strict";t.__esModule=!0,t.TriangleUpIcon=void 0;var r=(0,n(29559).createIcon)({d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z",displayName:"TriangleUpIcon"});t.TriangleUpIcon=r},82125:function(e,t,n){"use strict";t.__esModule=!0,t.UnlockIcon=void 0;var r=(0,n(29559).createIcon)({d:"M19.5,9.5h-.75V6.75A6.751,6.751,0,0,0,5.533,4.811a1.25,1.25,0,1,0,2.395.717A4.251,4.251,0,0,1,16.25,6.75V9a.5.5,0,0,1-.5.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5Z",displayName:"UnlockIcon"});t.UnlockIcon=r},48690:function(e,t,n){"use strict";t.__esModule=!0,t.UpDownIcon=void 0;var r=(0,n(29559).createIcon)({displayName:"UpDownIcon",viewBox:"-1 -1 9 11",d:"M 3.5 0L 3.98809 -0.569442L 3.5 -0.987808L 3.01191 -0.569442L 3.5 0ZM 3.5 9L 3.01191 9.56944L 3.5 9.98781L 3.98809 9.56944L 3.5 9ZM 0.488094 3.56944L 3.98809 0.569442L 3.01191 -0.569442L -0.488094 2.43056L 0.488094 3.56944ZM 3.01191 0.569442L 6.51191 3.56944L 7.48809 2.43056L 3.98809 -0.569442L 3.01191 0.569442ZM -0.488094 6.56944L 3.01191 9.56944L 3.98809 8.43056L 0.488094 5.43056L -0.488094 6.56944ZM 3.98809 9.56944L 7.48809 6.56944L 6.51191 5.43056L 3.01191 8.43056L 3.98809 9.56944Z"});t.UpDownIcon=r},74624:function(e,t,n){"use strict";t.__esModule=!0,t.ViewIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"ViewIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M23.432,10.524C20.787,7.614,16.4,4.538,12,4.6,7.6,4.537,3.213,7.615.568,10.524a2.211,2.211,0,0,0,0,2.948C3.182,16.351,7.507,19.4,11.839,19.4h.308c4.347,0,8.671-3.049,11.288-5.929A2.21,2.21,0,0,0,23.432,10.524ZM7.4,12A4.6,4.6,0,1,1,12,16.6,4.6,4.6,0,0,1,7.4,12Z"}),o.createElement("circle",{cx:"12",cy:"12",r:"2"}))});t.ViewIcon=a},25766:function(e,t,n){"use strict";t.__esModule=!0,t.ViewOffIcon=void 0;var r=n(29559),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=(0,r.createIcon)({displayName:"ViewOffIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M23.2,10.549a20.954,20.954,0,0,0-4.3-3.6l4-3.995a1,1,0,1,0-1.414-1.414l-.018.018a.737.737,0,0,1-.173.291l-19.5,19.5c-.008.007-.018.009-.026.017a1,1,0,0,0,1.631,1.088l4.146-4.146a11.26,11.26,0,0,0,4.31.939h.3c4.256,0,8.489-2.984,11.051-5.8A2.171,2.171,0,0,0,23.2,10.549ZM16.313,13.27a4.581,4.581,0,0,1-3,3.028,4.3,4.3,0,0,1-3.1-.19.253.253,0,0,1-.068-.407l5.56-5.559a.252.252,0,0,1,.407.067A4.3,4.3,0,0,1,16.313,13.27Z"}),o.createElement("path",{d:"M7.615,13.4a.244.244,0,0,0,.061-.24A4.315,4.315,0,0,1,7.5,12,4.5,4.5,0,0,1,12,7.5a4.276,4.276,0,0,1,1.16.173.244.244,0,0,0,.24-.062l1.941-1.942a.254.254,0,0,0-.1-.421A10.413,10.413,0,0,0,12,4.75C7.7,4.692,3.4,7.7.813,10.549a2.15,2.15,0,0,0-.007,2.9,21.209,21.209,0,0,0,3.438,3.03.256.256,0,0,0,.326-.029Z"}))});t.ViewOffIcon=a},7265:function(e,t,n){"use strict";t.__esModule=!0,t.WarningIcon=void 0;var r=(0,n(29559).createIcon)({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",displayName:"WarningIcon"});t.WarningIcon=r},34237:function(e,t,n){"use strict";t.__esModule=!0,t.WarningTwoIcon=void 0;var r=(0,n(29559).createIcon)({displayName:"WarningTwoIcon",d:"M23.119,20,13.772,2.15h0a2,2,0,0,0-3.543,0L.881,20a2,2,0,0,0,1.772,2.928H21.347A2,2,0,0,0,23.119,20ZM11,8.423a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Zm1.05,11.51h-.028a1.528,1.528,0,0,1-1.522-1.47,1.476,1.476,0,0,1,1.448-1.53h.028A1.527,1.527,0,0,1,13.5,18.4,1.475,1.475,0,0,1,12.05,19.933Z"});t.WarningTwoIcon=r},71018:function(e,t,n){"use strict";t.__esModule=!0;var r=n(68789);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(43761);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(66264);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var a=n(38054);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||(t[e]=a[e]))}));var s=n(71033);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))}));var u=n(79095);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||(t[e]=u[e]))}));var c=n(23961);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||(t[e]=c[e]))}));var l=n(11375);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||(t[e]=l[e]))}));var d=n(91204);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||(t[e]=d[e]))}));var f=n(81971);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||(t[e]=f[e]))}));var p=n(82125);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||(t[e]=p[e]))}));var h=n(74624);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||(t[e]=h[e]))}));var v=n(25766);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===v[e]||(t[e]=v[e]))}));var m=n(5013);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===m[e]||(t[e]=m[e]))}));var g=n(60915);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===g[e]||(t[e]=g[e]))}));var y=n(46889);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===y[e]||(t[e]=y[e]))}));var b=n(46364);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===b[e]||(t[e]=b[e]))}));var w=n(27915);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===w[e]||(t[e]=w[e]))}));var x=n(65128);Object.keys(x).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===x[e]||(t[e]=x[e]))}));var _=n(7659);Object.keys(_).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===_[e]||(t[e]=_[e]))}));var k=n(62628);Object.keys(k).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===k[e]||(t[e]=k[e]))}));var E=n(48959);Object.keys(E).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===E[e]||(t[e]=E[e]))}));var O=n(41725);Object.keys(O).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===O[e]||(t[e]=O[e]))}));var C=n(75616);Object.keys(C).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===C[e]||(t[e]=C[e]))}));var T=n(38677);Object.keys(T).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===T[e]||(t[e]=T[e]))}));var M=n(94707);Object.keys(M).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===M[e]||(t[e]=M[e]))}));var S=n(16748);Object.keys(S).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===S[e]||(t[e]=S[e]))}));var P=n(59096);Object.keys(P).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===P[e]||(t[e]=P[e]))}));var j=n(25929);Object.keys(j).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===j[e]||(t[e]=j[e]))}));var I=n(12779);Object.keys(I).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===I[e]||(t[e]=I[e]))}));var A=n(51713);Object.keys(A).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===A[e]||(t[e]=A[e]))}));var R=n(92547);Object.keys(R).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===R[e]||(t[e]=R[e]))}));var D=n(40430);Object.keys(D).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===D[e]||(t[e]=D[e]))}));var L=n(57243);Object.keys(L).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===L[e]||(t[e]=L[e]))}));var N=n(30820);Object.keys(N).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===N[e]||(t[e]=N[e]))}));var B=n(64551);Object.keys(B).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===B[e]||(t[e]=B[e]))}));var z=n(78281);Object.keys(z).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===z[e]||(t[e]=z[e]))}));var F=n(48690);Object.keys(F).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===F[e]||(t[e]=F[e]))}));var H=n(82190);Object.keys(H).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===H[e]||(t[e]=H[e]))}));var V=n(9079);Object.keys(V).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===V[e]||(t[e]=V[e]))}));var W=n(98271);Object.keys(W).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===W[e]||(t[e]=W[e]))}));var U=n(54411);Object.keys(U).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===U[e]||(t[e]=U[e]))}));var G=n(28317);Object.keys(G).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===G[e]||(t[e]=G[e]))}));var q=n(34066);Object.keys(q).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===q[e]||(t[e]=q[e]))}));var K=n(2746);Object.keys(K).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===K[e]||(t[e]=K[e]))}));var Z=n(7846);Object.keys(Z).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Z[e]||(t[e]=Z[e]))}));var $=n(33670);Object.keys($).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===$[e]||(t[e]=$[e]))}));var X=n(27258);Object.keys(X).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===X[e]||(t[e]=X[e]))}));var Y=n(20883);Object.keys(Y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Y[e]||(t[e]=Y[e]))}));var Q=n(94688);Object.keys(Q).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Q[e]||(t[e]=Q[e]))}));var J=n(49537);Object.keys(J).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===J[e]||(t[e]=J[e]))}));var ee=n(93942);Object.keys(ee).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ee[e]||(t[e]=ee[e]))}));var te=n(43370);Object.keys(te).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===te[e]||(t[e]=te[e]))}));var ne=n(7265);Object.keys(ne).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ne[e]||(t[e]=ne[e]))}));var re=n(34237);Object.keys(re).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===re[e]||(t[e]=re[e]))}));var oe=n(26324);Object.keys(oe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===oe[e]||(t[e]=oe[e]))}));var ie=n(49888);Object.keys(ie).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ie[e]||(t[e]=ie[e]))}));var ae=n(14122);Object.keys(ae).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ae[e]||(t[e]=ae[e]))}));var se=n(29559);Object.keys(se).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===se[e]||(t[e]=se[e]))}))},50862:function(e,t,n){"use strict";n.d(t,{d:function(){return r}});var r=(0,n(89867).I)({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"})},93441:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(89867),o=n(67294),i=(0,r.I)({displayName:"ArrowRightIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"}),o.createElement("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"}))})},6569:function(e,t,n){"use strict";n.d(t,{v:function(){return r}});var r=(0,n(89867).I)({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})},48931:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});var r=(0,n(89867).I)({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})},2827:function(e,t,n){"use strict";n.d(t,{p:function(){return i}});var r=n(89867),o=n(67294),i=(0,r.I)({displayName:"DeleteIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"}))})},46617:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var r=n(89867),o=n(67294),i=(0,r.I)({displayName:"EditIcon",path:o.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},o.createElement("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),o.createElement("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"}))})},68928:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var r=n(89867),o=n(67294),i=(0,r.I)({displayName:"ExternalLinkIcon",path:o.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},o.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),o.createElement("path",{d:"M15 3h6v6"}),o.createElement("path",{d:"M10 14L21 3"}))})},24189:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var r=n(89867),o=n(67294),i=(0,r.I)({displayName:"InfoOutlineIcon",path:o.createElement("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2"},o.createElement("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"}),o.createElement("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"}),o.createElement("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"}))})},94030:function(e,t,n){"use strict";n.d(t,{I:function(){return i}});var r=n(89867),o=n(67294),i=(0,r.I)({displayName:"PlusSquareIcon",path:o.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2"},o.createElement("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"}),o.createElement("path",{d:"M12 8v8"}),o.createElement("path",{d:"M8 12h8"}))})},67546:function(e,t,n){"use strict";n.d(t,{n:function(){return i}});var r=n(89867),o=n(67294),i=(0,r.I)({displayName:"RepeatIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"}),o.createElement("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"}))})},83986:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(89867),o=n(67294),i=(0,r.I)({displayName:"RepeatClockIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M12.965,6a1,1,0,0,0-1,1v5.5a1,1,0,0,0,1,1h5a1,1,0,0,0,0-2h-3.75a.25.25,0,0,1-.25-.25V7A1,1,0,0,0,12.965,6Z"}),o.createElement("path",{d:"M12.567,1.258A10.822,10.822,0,0,0,2.818,8.4a.25.25,0,0,1-.271.163L.858,8.309a.514.514,0,0,0-.485.213.5.5,0,0,0-.021.53l2.679,4.7a.5.5,0,0,0,.786.107l3.77-3.746a.5.5,0,0,0-.279-.85L5.593,9.007a.25.25,0,0,1-.192-.35,8.259,8.259,0,1,1,7.866,11.59,1.25,1.25,0,0,0,.045,2.5h.047a10.751,10.751,0,1,0-.792-21.487Z"}))})},93924:function(e,t,n){"use strict";n.d(t,{e:function(){return r}});var r=(0,n(89867).I)({viewBox:"0 0 14 14",d:"M14,7.77 L14,6.17 L12.06,5.53 L11.61,4.44 L12.49,2.6 L11.36,1.47 L9.55,2.38 L8.46,1.93 L7.77,0.01 L6.17,0.01 L5.54,1.95 L4.43,2.4 L2.59,1.52 L1.46,2.65 L2.37,4.46 L1.92,5.55 L0,6.23 L0,7.82 L1.94,8.46 L2.39,9.55 L1.51,11.39 L2.64,12.52 L4.45,11.61 L5.54,12.06 L6.23,13.98 L7.82,13.98 L8.45,12.04 L9.56,11.59 L11.4,12.47 L12.53,11.34 L11.61,9.53 L12.08,8.44 L14,7.75 L14,7.77 Z M7,10 C5.34,10 4,8.66 4,7 C4,5.34 5.34,4 7,4 C8.66,4 10,5.34 10,7 C10,8.66 8.66,10 7,10 Z",displayName:"SettingsIcon"})},55830:function(e,t,n){"use strict";n.d(t,{O:function(){return i}});var r=n(89867),o=n(67294),i=(0,r.I)({displayName:"ViewIcon",path:o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M23.432,10.524C20.787,7.614,16.4,4.538,12,4.6,7.6,4.537,3.213,7.615.568,10.524a2.211,2.211,0,0,0,0,2.948C3.182,16.351,7.507,19.4,11.839,19.4h.308c4.347,0,8.671-3.049,11.288-5.929A2.21,2.21,0,0,0,23.432,10.524ZM7.4,12A4.6,4.6,0,1,1,12,16.6,4.6,4.6,0,0,1,7.4,12Z"}),o.createElement("circle",{cx:"12",cy:"12",r:"2"}))})},87409:function(e,t,n){"use strict";t.__esModule=!0;var r=n(35236);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(8471);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(89216);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var a=n(52832);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||(t[e]=a[e]))}))},8471:function(e,t,n){"use strict";t.__esModule=!0,t.InputRightAddon=t.InputLeftAddon=t.InputAddon=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,["placement"]),d=null!=(n=u[a])?n:{},f=(0,r.useStyles)();return i.createElement(c,s({ref:t},l,{__css:s({},f.addon,d)}))}));t.InputAddon=l,o.__DEV__&&(l.displayName="InputAddon");var d=(0,r.forwardRef)((function(e,t){return i.createElement(l,s({ref:t,placement:"left"},e,{className:(0,o.cx)("chakra-input__left-addon",e.className)}))}));t.InputLeftAddon=d,o.__DEV__&&(d.displayName="InputLeftAddon"),d.id="InputLeftAddon";var f=(0,r.forwardRef)((function(e,t){return i.createElement(l,s({ref:t,placement:"right"},e,{className:(0,o.cx)("chakra-input__right-addon",e.className)}))}));t.InputRightAddon=f,o.__DEV__&&(f.displayName="InputRightAddon"),f.id="InputRightAddon"},52832:function(e,t,n){"use strict";t.__esModule=!0,t.InputRightElement=t.InputLeftElement=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var c=(0,r.chakra)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),l=(0,r.forwardRef)((function(e,t){var n,o,a,l=e.placement,d=void 0===l?"left":l,f=u(e,["placement"]),p=(0,r.useStyles)().field,h=((a={})["left"===d?"insetStart":"insetEnd"]="0",a.width=null!=(n=null==p?void 0:p.height)?n:null==p?void 0:p.h,a.height=null!=(o=null==p?void 0:p.height)?o:null==p?void 0:p.h,a.fontSize=null==p?void 0:p.fontSize,a);return i.createElement(c,s({ref:t,__css:h},f))}));l.id="InputElement",o.__DEV__&&(l.displayName="InputElement");var d=(0,r.forwardRef)((function(e,t){var n=e.className,r=u(e,["className"]),a=(0,o.cx)("chakra-input__left-element",n);return i.createElement(l,s({ref:t,placement:"left",className:a},r))}));t.InputLeftElement=d,d.id="InputLeftElement",o.__DEV__&&(d.displayName="InputLeftElement");var f=(0,r.forwardRef)((function(e,t){var n=e.className,r=u(e,["className"]),a=(0,o.cx)("chakra-input__right-element",n);return i.createElement(l,s({ref:t,placement:"right",className:a},r))}));t.InputRightElement=f,f.id="InputRightElement",o.__DEV__&&(f.displayName="InputRightElement")},89216:function(e,t,n){"use strict";t.__esModule=!0,t.InputGroup=void 0;var r=n(48121),o=n(66751),i=n(19277),a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(s,["children","className"]),f=(0,o.cx)("chakra-input__group",l),p={},h=(0,i.getValidChildren)(c),v=n.field;h.forEach((function(e){if(n){var t,r;if(v&&"InputLeftElement"===e.type.id)p.paddingStart=null!=(t=v.height)?t:v.h;if(v&&"InputRightElement"===e.type.id)p.paddingEnd=null!=(r=v.height)?r:v.h;"InputRightAddon"===e.type.id&&(p.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(p.borderStartRadius=0)}}));var m=h.map((function(t){var n,r,o={size:(null==(n=t.props)?void 0:n.size)||e.size,variant:(null==(r=t.props)?void 0:r.variant)||e.variant};return"Input"!==t.type.id?a.cloneElement(t,o):a.cloneElement(t,Object.assign(o,p,t.props))}));return a.createElement(r.chakra.div,u({className:f,ref:t,__css:{width:"100%",display:"flex",position:"relative"}},d),a.createElement(r.StylesProvider,{value:n},m))}));t.InputGroup=c,o.__DEV__&&(c.displayName="InputGroup")},35236:function(e,t,n){"use strict";t.__esModule=!0,t.Input=void 0;var r=n(88323),o=n(48121),i=n(66751),a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,["ratio","children","className"]),d=i.Children.only(u),f=(0,o.cx)("chakra-aspect-ratio",c);return i.createElement(r.chakra.div,s({ref:t,position:"relative",className:f,_before:{height:0,content:'""',display:"block",paddingBottom:(0,o.mapResponsive)(a,(function(e){return 1/e*100+"%"}))},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}}},l),d)}));t.AspectRatio=u,o.__DEV__&&(u.displayName="AspectRatio")},63061:function(e,t,n){"use strict";t.__esModule=!0,t.Badge=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(a,["className"]));return i.createElement(r.chakra.span,s({ref:t,className:(0,o.cx)("chakra-badge",e.className)},u,{__css:s({display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle"},n)}))}));t.Badge=u,o.__DEV__&&(u.displayName="Badge")},26932:function(e,t,n){"use strict";t.__esModule=!0,t.Circle=t.Square=t.Box=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var c=(0,r.chakra)("div");t.Box=c,o.__DEV__&&(c.displayName="Box");var l=(0,r.forwardRef)((function(e,t){var n=e.size,r=e.centerContent,o=void 0===r||r,a=u(e,["size","centerContent"]),l=o?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return i.createElement(c,s({ref:t,boxSize:n,__css:s({},l,{flexShrink:0,flexGrow:0})},a))}));t.Square=l,o.__DEV__&&(l.displayName="Square");var d=(0,r.forwardRef)((function(e,t){var n=e.size,r=u(e,["size"]);return i.createElement(l,s({size:n,ref:t,borderRadius:"9999px"},r))}));t.Circle=d,o.__DEV__&&(d.displayName="Circle")},21184:function(e,t,n){"use strict";t.__esModule=!0,t.AbsoluteCenter=t.Center=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,["axis"]);return i.createElement(r.chakra.div,s({ref:t,__css:c[o]},a,{position:"absolute"}))}));t.AbsoluteCenter=l},9754:function(e,t,n){"use strict";t.__esModule=!0,t.Code=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(a,["className"]));return i.createElement(r.chakra.code,s({ref:t,className:(0,o.cx)("chakra-code",e.className)},u,{__css:s({display:"inline-block"},n)}))}));t.Code=u,o.__DEV__&&(u.displayName="Code")},28210:function(e,t,n){"use strict";t.__esModule=!0,t.Container=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(n,["className","centerContent"]),l=(0,r.useStyleConfig)("Container",e);return i.createElement(r.chakra.div,s({ref:t,className:(0,o.cx)("chakra-container",a)},c,{__css:s({},l,u&&{display:"flex",flexDirection:"column",alignItems:"center"})}))}));t.Container=u,o.__DEV__&&(u.displayName="Container")},43698:function(e,t,n){"use strict";t.__esModule=!0,t.Divider=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var c=(0,r.forwardRef)((function(e,t){var n=(0,r.useStyleConfig)("Divider",e),a=n.borderLeftWidth,c=n.borderBottomWidth,l=n.borderTopWidth,d=n.borderRightWidth,f=n.borderWidth,p=n.borderStyle,h=n.borderColor,v=u(n,["borderLeftWidth","borderBottomWidth","borderTopWidth","borderRightWidth","borderWidth","borderStyle","borderColor"]),m=(0,r.omitThemingProps)(e),g=m.className,y=m.orientation,b=void 0===y?"horizontal":y,w=m.__css,x=u(m,["className","orientation","__css"]),_={vertical:{borderLeftWidth:a||d||f||"1px",height:"100%"},horizontal:{borderBottomWidth:c||l||f||"1px",width:"100%"}};return i.createElement(r.chakra.hr,s({ref:t,"aria-orientation":b},x,{__css:s({},v,{border:"0",borderColor:h,borderStyle:p},_[b],w),className:(0,o.cx)("chakra-divider",g)}))}));t.Divider=c,o.__DEV__&&(c.displayName="Divider")},87481:function(e,t,n){"use strict";t.__esModule=!0,t.Flex=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,["direction","align","justify","wrap","basis","grow","shrink"]),p={display:"flex",flexDirection:n,alignItems:o,justifyContent:a,flexWrap:u,flexBasis:c,flexGrow:l,flexShrink:d};return i.createElement(r.chakra.div,s({ref:t,__css:p},f))}));t.Flex=u,o.__DEV__&&(u.displayName="Flex")},51870:function(e,t,n){"use strict";t.__esModule=!0,t.GridItem=t.Grid=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var c=(0,r.forwardRef)((function(e,t){var n=e.area,o=e.templateAreas,a=e.gap,c=e.rowGap,l=e.columnGap,d=e.column,f=e.row,p=e.autoFlow,h=e.autoRows,v=e.templateRows,m=e.autoColumns,g=e.templateColumns,y=u(e,["area","templateAreas","gap","rowGap","columnGap","column","row","autoFlow","autoRows","templateRows","autoColumns","templateColumns"]),b={display:"grid",gridArea:n,gridTemplateAreas:o,gridGap:a,gridRowGap:c,gridColumnGap:l,gridAutoColumns:m,gridColumn:d,gridRow:f,gridAutoFlow:p,gridAutoRows:h,gridTemplateRows:v,gridTemplateColumns:g};return i.createElement(r.chakra.div,s({ref:t,__css:b},y))}));function l(e){return(0,o.mapResponsive)(e,(function(e){return"auto"===e?"auto":"span "+e+"/span "+e}))}t.Grid=c,o.__DEV__&&(c.displayName="Grid");var d=(0,r.forwardRef)((function(e,t){var n=e.colSpan,a=e.colStart,c=e.colEnd,d=e.rowEnd,f=e.rowSpan,p=e.rowStart,h=u(e,["colSpan","colStart","colEnd","rowEnd","rowSpan","rowStart"]),v=(0,o.filterUndefined)({gridColumn:l(n),gridRow:l(f),gridColumnStart:a,gridColumnEnd:c,gridRowStart:p,gridRowEnd:d});return i.createElement(r.chakra.div,s({ref:t,__css:v},h))}));t.GridItem=d},6813:function(e,t,n){"use strict";t.__esModule=!0,t.Heading=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(a,["className"]));return i.createElement(r.chakra.h2,s({ref:t,className:(0,o.cx)("chakra-heading",e.className)},u,{__css:n}))}));t.Heading=u,o.__DEV__&&(u.displayName="Heading")},11487:function(e,t,n){"use strict";t.__esModule=!0;var r=n(74770);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(63061);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(26932);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var a=n(21184);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||(t[e]=a[e]))}));var s=n(9754);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))}));var u=n(28210);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||(t[e]=u[e]))}));var c=n(43698);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||(t[e]=c[e]))}));var l=n(87481);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||(t[e]=l[e]))}));var d=n(51870);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||(t[e]=d[e]))}));var f=n(6813);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||(t[e]=f[e]))}));var p=n(12947);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||(t[e]=p[e]))}));var h=n(6976);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||(t[e]=h[e]))}));var v=n(72755);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===v[e]||(t[e]=v[e]))}));var m=n(6293);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===m[e]||(t[e]=m[e]))}));var g=n(7133);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===g[e]||(t[e]=g[e]))}));var y=n(96030);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===y[e]||(t[e]=y[e]))}));var b=n(80434);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===b[e]||(t[e]=b[e]))}));var w=n(88189);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===w[e]||(t[e]=w[e]))}));var x=n(41525);Object.keys(x).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===x[e]||(t[e]=x[e]))}))},12947:function(e,t,n){"use strict";t.__esModule=!0,t.Kbd=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(a,["className"]);return i.createElement(r.chakra.kbd,s({ref:t,className:(0,o.cx)("chakra-kbd",u)},c,{__css:s({fontFamily:"mono"},n)}))}));t.Kbd=u,o.__DEV__&&(u.displayName="Kbd")},41525:function(e,t,n){"use strict";t.__esModule=!0,t.LinkBox=t.LinkOverlay=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var c=(0,r.forwardRef)((function(e,t){var n=e.isExternal,a=e.target,c=e.rel,l=e.className,d=u(e,["isExternal","target","rel","className"]);return i.createElement(r.chakra.a,s({},d,{ref:t,className:(0,o.cx)("chakra-linkbox__overlay",l),rel:n?"noopener noreferrer":c,target:n?"_blank":a,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:0,width:"100%",height:"100%"}}}))}));t.LinkOverlay=c;var l=(0,r.forwardRef)((function(e,t){var n=e.className,a=u(e,["className"]);return i.createElement(r.chakra.div,s({ref:t,position:"relative"},a,{className:(0,o.cx)("chakra-linkbox",n),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}}))}));t.LinkBox=l},6976:function(e,t,n){"use strict";t.__esModule=!0,t.Link=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(a,["className","isExternal"]);return i.createElement(r.chakra.a,s({target:c?"_blank":void 0,rel:c?"noopener noreferrer":void 0,ref:t,className:(0,o.cx)("chakra-link",u)},l,{__css:n}))}));t.Link=u,o.__DEV__&&(u.displayName="Link")},72755:function(e,t,n){"use strict";t.__esModule=!0,t.ListIcon=t.ListItem=t.UnorderedList=t.OrderedList=t.List=void 0;var r=n(29559),o=n(48121),i=n(66751),a=n(19277),s=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){return(c=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var d=(0,o.forwardRef)((function(e,t){var n,r=(0,o.useMultiStyleConfig)("List",e),i=(0,o.omitThemingProps)(e),u=i.children,d=i.styleType,f=void 0===d?"none":d,p=i.stylePosition,h=i.spacing,v=l(i,["children","styleType","stylePosition","spacing"]),m=(0,a.getValidChildren)(u),g=h?((n={})["& > *:not(style) ~ *:not(style)"]={mt:h},n):{};return s.createElement(o.StylesProvider,{value:r},s.createElement(o.chakra.ul,c({ref:t,listStyleType:f,listStylePosition:p,role:"list",__css:c({},r.container,g)},v),m))}));t.List=d,i.__DEV__&&(d.displayName="List");var f=(0,o.forwardRef)((function(e,t){e.as;var n=l(e,["as"]);return s.createElement(d,c({ref:t,as:"ol",styleType:"decimal",marginStart:"1em"},n))}));t.OrderedList=f,i.__DEV__&&(f.displayName="OrderedList");var p=(0,o.forwardRef)((function(e,t){e.as;var n=l(e,["as"]);return s.createElement(d,c({ref:t,as:"ul",styleType:"initial",marginStart:"1em"},n))}));t.UnorderedList=p,i.__DEV__&&(p.displayName="UnorderedList");var h=(0,o.forwardRef)((function(e,t){var n=(0,o.useStyles)();return s.createElement(o.chakra.li,c({ref:t},e,{__css:n.item}))}));t.ListItem=h,i.__DEV__&&(h.displayName="ListItem");var v=(0,o.forwardRef)((function(e,t){var n=(0,o.useStyles)();return s.createElement(r.Icon,c({ref:t,role:"presentation"},e,{__css:n.icon}))}));t.ListIcon=v,i.__DEV__&&(v.displayName="ListIcon")},6293:function(e,t,n){"use strict";t.__esModule=!0,t.SimpleGrid=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),a=n(51870);function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,["columns","spacingX","spacingY","spacing","minChildWidth"]),h=f?(r=f,(0,o.mapResponsive)(r,(function(e){return(0,o.isNull)(e)?null:"repeat(auto-fit, minmax("+(t=e,((0,o.isNumber)(t)?t+"px":t)+", 1fr))");var t}))):(n=s,(0,o.mapResponsive)(n,(function(e){return(0,o.isNull)(e)?null:"repeat("+e+", minmax(0, 1fr))"})));return i.createElement(a.Grid,u({ref:t,gap:d,columnGap:c,rowGap:l,templateColumns:h},p))}));t.SimpleGrid=c,o.__DEV__&&(c.displayName="SimpleGrid")},7133:function(e,t,n){"use strict";t.__esModule=!0,t.Spacer=void 0;var r=n(48121),o=n(66751),i=(0,r.chakra)("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});t.Spacer=i,o.__DEV__&&(i.displayName="Spacer")},96030:function(e,t,n){"use strict";t.__esModule=!0,t.VStack=t.HStack=t.Stack=t.StackItem=t.StackDivider=void 0;var r=n(48121),o=n(66751),i=n(19277),a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294)),s=n(17596);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){return(c=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,["isInline","direction","align","justify","spacing","wrap","children","divider","className","shouldWrapChildren"]),_=u?"row":null!=d?d:"column",k=a.useMemo((function(){return(0,s.getStackStyles)({direction:_,spacing:v})}),[_,v]),E=a.useMemo((function(){return(0,s.getDividerStyles)({spacing:v,direction:_})}),[v,_]),O=!!y,C=!w&&!O,T=(0,i.getValidChildren)(g),M=C?T:T.map((function(e,t){var n=t+1===T.length,r=w?a.createElement(l,{key:t},e):e;if(!O)return r;var o=n?null:a.cloneElement(y,{__css:E});return a.createElement(a.Fragment,{key:t},r,o)})),S=(0,o.cx)("chakra-stack",b);return a.createElement(r.chakra.div,c({ref:t,display:"flex",alignItems:f,justifyContent:p,flexDirection:k.flexDirection,flexWrap:m,className:S,__css:O?{}:(n={},n[s.selector]=k[s.selector],n)},x),M)}));t.Stack=d,o.__DEV__&&(d.displayName="Stack");var f=(0,r.forwardRef)((function(e,t){return a.createElement(d,c({align:"center"},e,{direction:"row",ref:t}))}));t.HStack=f,o.__DEV__&&(f.displayName="HStack");var p=(0,r.forwardRef)((function(e,t){return a.createElement(d,c({align:"center"},e,{direction:"column",ref:t}))}));t.VStack=p,o.__DEV__&&(p.displayName="VStack")},17596:function(e,t,n){"use strict";t.__esModule=!0,t.getStackStyles=function(e){var t,n=e.spacing,i=e.direction,a={column:{marginTop:n,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:n},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:n,marginStart:0},"row-reverse":{marginTop:0,marginEnd:n,marginBottom:0,marginStart:0}};return(t={flexDirection:i})[o]=(0,r.mapResponsive)(i,(function(e){return a[e]})),t},t.getDividerStyles=function(e){var t=e.spacing,n=e.direction,o={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":(0,r.mapResponsive)(n,(function(e){return o[e]}))}},t.selector=void 0;var r=n(66751),o="& > *:not(style) ~ *:not(style)";t.selector=o},80434:function(e,t,n){"use strict";t.__esModule=!0,t.Text=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(a,["className","align","decoration","casing"])),c=(0,o.filterUndefined)({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return i.createElement(r.chakra.p,s({ref:t,className:(0,o.cx)("chakra-text",e.className)},c,u,{__css:n}))}));t.Text=u,o.__DEV__&&(u.displayName="Text")},88189:function(e,t,n){"use strict";t.__esModule=!0,t.WrapItem=t.Wrap=void 0;var r=n(48121),o=n(66751),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var c=(0,r.forwardRef)((function(e,t){var n=e.spacing,a=void 0===n?"0.5rem":n,c=e.children,d=e.justify,f=e.direction,p=e.align,h=e.className,v=e.shouldWrapChildren,m=u(e,["spacing","children","justify","direction","align","className","shouldWrapChildren"]),g=i.useMemo((function(){return{"--chakra-wrap-spacing":function(e){return(0,o.mapResponsive)(a,(function(t){return(0,r.tokenToCSSVar)("space",t)(e)}))},"--wrap-spacing":"calc(var(--chakra-wrap-spacing) / 2)",display:"flex",flexWrap:"wrap",justifyContent:d,alignItems:p,flexDirection:f,listStyleType:"none",padding:"0",margin:"calc(var(--wrap-spacing) * -1)","& > *:not(style)":{margin:"var(--wrap-spacing)"}}}),[a,d,p,f]),y=v?i.Children.map(c,(function(e,t){return i.createElement(l,{key:t},e)})):c;return i.createElement(r.chakra.div,s({ref:t,className:(0,o.cx)("chakra-wrap",h)},m),i.createElement(r.chakra.ul,{className:"chakra-wrap__list",__css:g},y))}));t.Wrap=c,o.__DEV__&&(c.displayName="Wrap");var l=(0,r.forwardRef)((function(e,t){var n=e.className,a=u(e,["className"]);return i.createElement(r.chakra.li,s({ref:t,__css:{display:"flex",alignItems:"flex-start"},className:(0,o.cx)("chakra-wrap__listitem",n)},a))}));t.WrapItem=l,o.__DEV__&&(l.displayName="WrapItem")},48017:function(e,t,n){"use strict";n.d(t,{xu:function(){return c}});var r=n(89384),o=n(90063),i=n(73808),a=n(67294);function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var c=(0,r.m$)("div");i.Ts&&(c.displayName="Box");var l=(0,o.G)(((e,t)=>{var{size:n,centerContent:r=!0}=e,o=u(e,["size","centerContent"]),i=r?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return a.createElement(c,s({ref:t,boxSize:n,__css:s({},i,{flexShrink:0,flexGrow:0})},o))}));i.Ts&&(l.displayName="Square");var d=(0,o.G)(((e,t)=>{var{size:n}=e,r=u(e,["size"]);return a.createElement(l,s({size:n,ref:t,borderRadius:"9999px"},r))}));i.Ts&&(d.displayName="Circle")},94096:function(e,t,n){"use strict";n.d(t,{k:function(){return u}});var r=n(90063),o=n(89384),i=n(73808),a=n(67294);function s(){return(s=Object.assign||function(e){for(var t=1;t{var{direction:n,align:r,justify:i,wrap:u,basis:c,grow:l,shrink:d}=e,f=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["direction","align","justify","wrap","basis","grow","shrink"]),p={display:"flex",flexDirection:n,alignItems:r,justifyContent:i,flexWrap:u,flexBasis:c,flexGrow:l,flexShrink:d};return a.createElement(o.m$.div,s({ref:t,__css:p},f))}));i.Ts&&(u.displayName="Flex")},336:function(e,t,n){"use strict";n.d(t,{X:function(){return d}});var r=n(90063),o=n(2326),i=n(55284),a=n(89384),s=n(84461),u=n(73808),c=n(67294);function l(){return(l=Object.assign||function(e){for(var t=1;t{var n=(0,o.m)("Heading",e),r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}((0,i.Lr)(e),["className"]);return c.createElement(a.m$.h2,l({ref:t,className:(0,s.cx)("chakra-heading",e.className)},r,{__css:n}))}));u.Ts&&(d.displayName="Heading")},72026:function(e,t,n){"use strict";n.d(t,{cX:function(){return p},gC:function(){return g}});var r=n(89384),o=n(90063),i=n(84461),a=n(73808),s=n(24255),u=n(67294),c=n(4651);Object.freeze(["base","sm","md","lg","xl","2xl"]);function l(e,t){return(0,a.kJ)(e)?e.map((e=>null===e?null:t(e))):(0,a.Kn)(e)?(0,c.Yd)(e).reduce(((n,r)=>(n[r]=t(e[r]),n)),{}):null!=e?t(e):null}var d="& > *:not(style) ~ *:not(style)";function f(){return(f=Object.assign||function(e){for(var t=1;tu.createElement(r.m$.div,f({className:"chakra-stack__divider"},e,{__css:f({},e.__css,{borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"})})),h=e=>u.createElement(r.m$.div,f({className:"chakra-stack__item"},e,{__css:f({display:"inline-block",flex:"0 0 auto",minWidth:0},e.__css)})),v=(0,o.G)(((e,t)=>{var{isInline:n,direction:o,align:a,justify:c,spacing:p="0.5rem",wrap:v,children:m,divider:g,className:y,shouldWrapChildren:b}=e,w=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["isInline","direction","align","justify","spacing","wrap","children","divider","className","shouldWrapChildren"]),x=n?"row":null!=o?o:"column",_=u.useMemo((()=>function(e){var{spacing:t,direction:n}=e,r={column:{marginTop:t,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:t},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:t,marginStart:0},"row-reverse":{marginTop:0,marginEnd:t,marginBottom:0,marginStart:0}};return{flexDirection:n,[d]:l(n,(e=>r[e]))}}({direction:x,spacing:p})),[x,p]),k=u.useMemo((()=>function(e){var{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":l(n,(e=>r[e]))}}({spacing:p,direction:x})),[p,x]),E=!!g,O=!b&&!E,C=(0,s.W)(m),T=O?C:C.map(((e,t)=>{var n=t+1===C.length,r=b?u.createElement(h,{key:t},e):e;if(!E)return r;var o=n?null:u.cloneElement(g,{__css:k});return u.createElement(u.Fragment,{key:t},r,o)})),M=(0,i.cx)("chakra-stack",y);return u.createElement(r.m$.div,f({ref:t,display:"flex",alignItems:a,justifyContent:c,flexDirection:_.flexDirection,flexWrap:v,className:M,__css:E?{}:{[d]:_[d]}},w),T)}));a.Ts&&(v.displayName="Stack");var m=(0,o.G)(((e,t)=>u.createElement(v,f({align:"center"},e,{direction:"row",ref:t}))));a.Ts&&(m.displayName="HStack");var g=(0,o.G)(((e,t)=>u.createElement(v,f({align:"center"},e,{direction:"column",ref:t}))));a.Ts&&(g.displayName="VStack")},64115:function(e,t,n){"use strict";n.d(t,{x:function(){return f}});var r=n(90063),o=n(2326),i=n(55284),a=n(89384),s=n(4651),u=n(84461),c=n(73808),l=n(67294);function d(){return(d=Object.assign||function(e){for(var t=1;t{var n=(0,o.m)("Text",e),r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}((0,i.Lr)(e),["className","align","decoration","casing"]),c=(0,s.YU)({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return l.createElement(a.m$.p,d({ref:t,className:(0,u.cx)("chakra-text",e.className)},c,r,{__css:n}))}));c.Ts&&(f.displayName="Text")},48235:function(e,t,n){"use strict";n.d(t,{v2:function(){return q},j2:function(){return Z},R:function(){return ae},sN:function(){return J},ii:function(){return te},qy:function(){return Y},__:function(){return ne}});var r=n(2326),o=n(55284),i=n(29676),a=n(90063),s=n(89384),u=n(80658),c=n(73808),l=n(84461),d=n(39629),f=n(67294),p=n(72947);function h(){return(h=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,["ref","isDisabled","isFocusable","clickOnEnter","clickOnSpace","onMouseDown","onMouseUp","onClick","onKeyDown","onKeyUp","tabIndex","onMouseOver","onMouseLeave"]),[w,x]=f.useState(!0),[_,k]=f.useState(!1),E=function(){var e=f.useRef(new Map),t=e.current,n=f.useCallback(((t,n,r,o)=>{e.current.set(r,{type:n,el:t,options:o}),t.addEventListener(n,r,o)}),[]),r=f.useCallback(((t,n,r,o)=>{t.removeEventListener(n,r,o),e.current.delete(r)}),[]);return f.useEffect((()=>()=>{t.forEach(((e,t)=>{r(e.el,e.type,t,e.options)}))}),[r,t]),{add:n,remove:r}}(),O=w?m:m||0,C=n&&!r,T=f.useCallback((e=>{if(n)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==u||u(e)}),[n,u]),M=f.useCallback((e=>{_&&v(e)&&(e.preventDefault(),e.stopPropagation(),k(!1),E.remove(document,"keyup",M,!1))}),[_,E]),S=f.useCallback((e=>{if(null==c||c(e),!(n||e.defaultPrevented||e.metaKey)&&v(e.nativeEvent)&&!w){var t=o&&"Enter"===e.key;if(i&&" "===e.key&&(e.preventDefault(),k(!0)),t)e.preventDefault(),e.currentTarget.click();E.add(document,"keyup",M,!1)}}),[n,w,c,o,i,E,M]),P=f.useCallback((e=>{(null==d||d(e),n||e.defaultPrevented||e.metaKey)||v(e.nativeEvent)&&!w&&i&&" "===e.key&&(e.preventDefault(),k(!1),e.currentTarget.click())}),[i,w,n,d]),j=f.useCallback((e=>{0===e.button&&(k(!1),E.remove(document,"mouseup",j,!1))}),[E]),I=f.useCallback((e=>{if(!(0,l.dO)(e)){if(n)return e.stopPropagation(),void e.preventDefault();w||k(!0),e.currentTarget.focus({preventScroll:!0}),E.add(document,"mouseup",j,!1),null==a||a(e)}}),[n,w,a,E,j]),A=f.useCallback((e=>{(0,l.dO)(e)||(w||k(!1),null==s||s(e))}),[s,w]),R=f.useCallback((e=>{n?e.preventDefault():null==g||g(e)}),[n,g]),D=f.useCallback((e=>{_&&(e.preventDefault(),k(!1)),null==y||y(e)}),[_,y]),L=(0,p.l)(t,(e=>{e&&"BUTTON"!==e.tagName&&x(!1)}));return h({},b,w?{ref:L,type:"button","aria-disabled":C?void 0:n,disabled:C,onClick:T,onMouseDown:a,onMouseUp:s,onKeyUp:d,onKeyDown:c,onMouseOver:g,onMouseLeave:y}:{ref:L,role:"button","data-active":(0,l.PB)(_),"aria-disabled":n?"true":void 0,tabIndex:C?void 0:O,onClick:T,onMouseDown:I,onMouseUp:A,onKeyUp:P,onKeyDown:S,onMouseOver:R,onMouseLeave:D})}var g=n(21888),y=n(74860),b=n(10762);function w(e,t){var n,r=e.target;if(e.button>0)return!1;if(r&&!(0,l.lZ)(r).body.contains(r))return!1;return!(null!=(n=t.current)&&n.contains(r))}var x=n(22653),_=n(17768),k=n(47248);function E(e,t){var{shouldFocus:n,visible:r,focusRef:o}=t,i=n&&!r;(0,x.r)((()=>{if(i&&!function(e){var t=e.current;if(!t)return!1;var n=(0,l.vY)(t);return!!n&&!(0,l.r3)(t,n)&&!!(0,_.Wq)(n)}(e)){var t=(null==o?void 0:o.current)||e.current;t&&(0,k.T)(t,{nextTick:!0})}}),[i,e,o])}var O=n(94577),C=n(77581);function T(e){void 0===e&&(e={});var{timeout:t=300,preventDefault:n=(()=>!0)}=e,[r,o]=f.useState([]),i=f.useRef(),a=()=>{i.current&&(clearTimeout(i.current),i.current=null)};return f.useEffect((()=>a),[]),function(e){return s=>{if("Backspace"===s.key){var u=[...r];return u.pop(),void o(u)}if(function(e){var{key:t}=e;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(s)){var c=r.concat(s.key);n(s)&&(s.preventDefault(),s.stopPropagation()),o(c),e(c.join("")),a(),i.current=setTimeout((()=>{o([]),i.current=null}),t)}}}}var M=n(51034),S=n(8931),P=n(28500),j=n(24255),I=n(27277);function A(){return(A=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var[D,L,N,B]=(0,g.n)(),[z,F]=(0,P.k)({strict:!1,name:"MenuContext"});function H(e){void 0===e&&(e={});var{id:t,closeOnSelect:n=!0,closeOnBlur:r=!0,autoSelect:o=!0,isLazy:i,isOpen:a,defaultIsOpen:s,onClose:u,onOpen:c,placement:d="bottom-start",lazyBehavior:p="unmount",computePositionOnMount:h}=e,v=R(e,["id","closeOnSelect","closeOnBlur","autoSelect","isLazy","isOpen","defaultIsOpen","onClose","onOpen","placement","lazyBehavior","computePositionOnMount"]),{isOpen:m,onOpen:g,onClose:_,onToggle:T}=(0,y.q)({isOpen:a,defaultIsOpen:s,onClose:u,onOpen:c}),M=f.useRef(null),P=f.useRef(null);!function(e){var{ref:t,handler:n}=e,r=(0,b.W)(n),o=(0,f.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;(0,f.useEffect)((()=>{var e=e=>{w(e,t)&&(o.isPointerDown=!0)},i=e=>{o.ignoreEmulatedMouseEvents?o.ignoreEmulatedMouseEvents=!1:o.isPointerDown&&n&&w(e,t)&&(o.isPointerDown=!1,r(e))},a=e=>{o.ignoreEmulatedMouseEvents=!0,n&&o.isPointerDown&&w(e,t)&&(o.isPointerDown=!1,r(e))},s=(0,l.lZ)(t.current);return s.addEventListener("mousedown",e,!0),s.addEventListener("mouseup",i,!0),s.addEventListener("touchstart",e,!0),s.addEventListener("touchend",a,!0),()=>{s.removeEventListener("mousedown",e,!0),s.removeEventListener("mouseup",i,!0),s.removeEventListener("touchstart",e,!0),s.removeEventListener("touchend",a,!0)}}),[n,t,r,o])}({ref:M,handler:e=>{var t;!m||!r||null!=(t=P.current)&&t.contains(e.target)||_()}});var j=(0,S.D)(A({},v,{enabled:m||h,placement:d})),[I,D]=f.useState(-1),L=N();(0,x.r)((()=>{m||D(-1)}),[m]),E(M,{focusRef:P,visible:m,shouldFocus:!0});var[B,z]=(0,O.ZS)(t,"menu-button","menu-list"),F=f.useCallback((()=>{g(),(0,k.T)(M.current,{nextTick:!0,selectTextIfInput:!1})}),[g,M]),H=f.useRef(new Set([]));return(0,C.z)((()=>{H.current.forEach((e=>clearTimeout(e))),H.current.clear()})),{openAndFocusMenu:F,openAndFocusFirstItem:f.useCallback((()=>{g();var e=setTimeout((()=>{var e=L.firstEnabled();e&&D(e.index)}));H.current.add(e)}),[g,D,L]),openAndFocusLastItem:f.useCallback((()=>{g();var e=setTimeout((()=>{var e=L.lastEnabled();e&&D(e.index)}));H.current.add(e)}),[g,D,L]),onTransitionEnd:f.useCallback((()=>{var e,t,n=(0,l.lZ)(M.current),r=null==(e=M.current)?void 0:e.contains(n.activeElement);if(m&&!r){var o=null==(t=L.item(I))?void 0:t.node;o&&(0,k.T)(o,{selectTextIfInput:!1})}}),[m,I,L]),descendants:L,popper:j,buttonId:B,menuId:z,forceUpdate:j.forceUpdate,orientation:"vertical",isOpen:m,onToggle:T,onOpen:g,onClose:_,menuRef:M,buttonRef:P,focusedIndex:I,closeOnSelect:n,closeOnBlur:r,autoSelect:o,setFocusedIndex:D,isLazy:i,lazyBehavior:p}}function V(e){var t;return e instanceof HTMLElement&&!(null==(t=e.getAttribute("role"))||!t.startsWith("menuitem"))}function W(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var{onMouseEnter:n,onMouseMove:r,onMouseLeave:o,onClick:i,isDisabled:a,isFocusable:s,closeOnSelect:u}=e,c=R(e,["onMouseEnter","onMouseMove","onMouseLeave","onClick","isDisabled","isFocusable","closeOnSelect"]),l=F(),{setFocusedIndex:d,focusedIndex:h,closeOnSelect:v,onClose:g,menuRef:y,isOpen:b,menuId:w}=l,E=f.useRef(null),C=w+"-menuitem-"+(0,O.Me)(),{index:T,register:M}=B({disabled:a&&!s}),S=f.useCallback((e=>{null==n||n(e),a||d(T)}),[d,T,a,n]),P=f.useCallback((e=>{null==r||r(e),E.current&&!(0,_.H9)(E.current)&&S(e)}),[S,r]),j=f.useCallback((e=>{null==o||o(e),a||d(-1)}),[d,a,o]),I=f.useCallback((e=>{null==i||i(e),V(e.currentTarget)&&(null!=u?u:v)&&g()}),[g,i,v,u]),D=T===h,L=a&&!s;return(0,x.r)((()=>{b&&(D&&!L&&E.current?(0,k.T)(E.current,{nextTick:!0,selectTextIfInput:!1}):y.current&&!(0,_.H9)(y.current)&&(0,k.T)(y.current))}),[D,L,y,b]),A({},c,m({onClick:I,onMouseEnter:S,onMouseMove:P,onMouseLeave:j,ref:(0,p.l)(M,E,t),isDisabled:a,isFocusable:s}),{id:C,role:"menuitem",tabIndex:D?0:-1})}function U(){return(U=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var q=e=>{var{children:t}=e,n=(0,r.j)("Menu",e),a=H((0,o.Lr)(e)),{descendants:s}=a,c=G(a,["descendants"]),l=f.useMemo((()=>c),[c]),{isOpen:d,onClose:p,forceUpdate:h}=l;return f.createElement(D,{value:s},f.createElement(z,{value:l},f.createElement(i.Fo,{value:n},(0,u.Pu)(t,{isOpen:d,onClose:p,forceUpdate:h}))))};c.Ts&&(q.displayName="Menu");var K=(0,a.G)(((e,t)=>{var n=(0,i.yK)();return f.createElement(s.m$.button,U({ref:t},e,{__css:U({display:"inline-flex",appearance:"none",alignItems:"center",outline:0},n.button)}))})),Z=(0,a.G)(((e,t)=>{var{as:n}=e,r=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=F(),{isOpen:r,onClose:o,autoSelect:i,popper:a,openAndFocusFirstItem:s,openAndFocusLastItem:c,openAndFocusMenu:d}=n,h=f.useCallback((()=>{r?o():(i?s:d)()}),[i,r,o,s,d]),v=f.useCallback((e=>{var t=(0,l.uh)(e),n={Enter:s,ArrowDown:s,ArrowUp:c}[t];n&&(e.preventDefault(),e.stopPropagation(),n(e))}),[s,c]);return A({},e,{ref:(0,p.l)(n.buttonRef,t,a.referenceRef),id:n.buttonId,"data-active":(0,l.PB)(n.isOpen),"aria-expanded":n.isOpen,"aria-haspopup":"menu","aria-controls":n.menuId,onClick:(0,u.v0)(e.onClick,h),onKeyDown:(0,u.v0)(e.onKeyDown,v)})}(G(e,["children","as"]),t),o=n||K;return f.createElement(o,U({},r,{className:(0,l.cx)("chakra-menu__menu-button",e.className)}),f.createElement(s.m$.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0}},e.children))}));c.Ts&&(Z.displayName="MenuButton");var $={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},X="custom"in d.E?d.E.custom(s.m$.div):(0,d.E)(s.m$.div),Y=(0,a.G)(((e,t)=>{var n,r,{rootProps:o}=e,a=G(e,["rootProps"]),{isOpen:c,onTransitionEnd:d}=F(),h=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=F();if(!n)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within ");var{focusedIndex:r,setFocusedIndex:o,menuRef:i,isOpen:a,onClose:s,menuId:c,isLazy:d,lazyBehavior:h}=n,v=L(),m=T({preventDefault:e=>" "!==e.key&&V(e.target)}),g=f.useCallback((e=>{var t=(0,l.uh)(e),n={Tab:e=>e.preventDefault(),Escape:s,ArrowDown:()=>{var e=v.nextEnabled(r);e&&o(e.index)},ArrowUp:()=>{var e=v.prevEnabled(r);e&&o(e.index)}}[t];if(n)return e.preventDefault(),void n(e);var i=m((e=>{var t=(0,I.LP)(v.values(),e,(e=>{var t,n;return null!=(t=null==e||null==(n=e.node)?void 0:n.textContent)?t:""}),v.item(r));if(t){var n=v.indexOf(t.node);o(n)}}));V(e.target)&&i(e)}),[v,r,m,s,o]),y=f.useRef(!1);a&&(y.current=!0);var b=function(e){var{hasBeenSelected:t,isLazy:n,isSelected:r,lazyBehavior:o="unmount"}=e;return!n||!!r||!("keepMounted"!==o||!t)}({hasBeenSelected:y.current,isLazy:d,lazyBehavior:h,isSelected:a});return A({},e,{ref:(0,p.l)(i,t),children:b?e.children:null,tabIndex:-1,role:"menu",id:c,style:A({},e.style,{transformOrigin:"var(--popper-transform-origin)"}),"aria-orientation":"vertical",onKeyDown:(0,u.v0)(e.onKeyDown,g)})}(a,t),v=function(e){void 0===e&&(e={});var{popper:t,isOpen:n}=F();return t.getPopperProps(A({},e,{style:A({visibility:n?"visible":"hidden"},e.style)}))}(o),m=(0,i.yK)();return f.createElement(s.m$.div,U({},v,{__css:{zIndex:null!=(n=e.zIndex)?n:null==(r=m.list)?void 0:r.zIndex}}),f.createElement(X,U({},h,{onUpdate:d,className:(0,l.cx)("chakra-menu__menu-list",h.className),variants:$,initial:!1,animate:c?"enter":"exit",__css:U({outline:0},m.list)})))}));c.Ts&&(Y.displayName="MenuList");var Q=(0,a.G)(((e,t)=>{var{type:n}=e,r=G(e,["type"]),o=(0,i.yK)(),a=r.as?null!=n?n:void 0:"button",u=U({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0},o.item);return f.createElement(s.m$.button,U({ref:t,type:a},r,{__css:u}))})),J=(0,a.G)(((e,t)=>{var{icon:n,iconSpacing:r="0.75rem",command:o,commandSpacing:i="0.75rem",children:a}=e,s=W(G(e,["icon","iconSpacing","command","commandSpacing","children"]),t),u=n||o?f.createElement("span",{style:{pointerEvents:"none",flex:1}},a):a;return f.createElement(Q,U({},s,{className:(0,l.cx)("chakra-menu__menuitem",s.className)}),n&&f.createElement(ie,{fontSize:"0.8em",marginEnd:r},n),u,o&&f.createElement(oe,{marginStart:i},o))}));c.Ts&&(J.displayName="MenuItem");var ee=e=>f.createElement("svg",U({viewBox:"0 0 14 14",width:"1em",height:"1em"},e),f.createElement("polygon",{fill:"currentColor",points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})),te=(0,a.G)(((e,t)=>{var{icon:n,iconSpacing:r="0.75rem"}=e,o=G(e,["icon","iconSpacing"]),i=function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var{type:n="radio",isChecked:r}=e;return A({},W(R(e,["type","isChecked"]),t),{role:"menuitem"+n,"aria-checked":r})}(o,t);return f.createElement(Q,U({},i,{className:(0,l.cx)("chakra-menu__menuitem-option",o.className)}),f.createElement(ie,{fontSize:"0.8em",marginEnd:r,opacity:e.isChecked?1:0},n||f.createElement(ee,null)),f.createElement("span",{style:{flex:1}},i.children))}));te.id="MenuItemOption",c.Ts&&(te.displayName="MenuItemOption");var ne=e=>{var{className:t,title:n}=e,r=function(e){void 0===e&&(e={});var{children:t,type:n="radio",value:r,defaultValue:o,onChange:i}=e,a=R(e,["children","type","value","defaultValue","onChange"]),s="radio"===n?"":[],[u,l]=(0,M.T)({defaultValue:null!=o?o:s,value:r,onChange:i}),d=f.useCallback((e=>{if("radio"===n&&(0,c.HD)(u)&&l(e),"checkbox"===n&&(0,c.kJ)(u)){var t=u.includes(e)?(0,I.cl)(u,e):(0,I.jX)(u,e);l(t)}}),[u,l,n]);return A({},a,{children:(0,j.W)(t).map((e=>{if("MenuItemOption"!==e.type.id)return e;var t="radio"===n?e.props.value===u:u.includes(e.props.value);return f.cloneElement(e,{type:n,onClick:t=>{d(e.props.value),null==e.props.onClick||e.props.onClick(t)},isChecked:t})}))})}(G(e,["className","title"]));return f.createElement(re,U({title:n,className:(0,l.cx)("chakra-menu__option-group",t)},r))};c.Ts&&(ne.displayName="MenuOptionGroup");var re=(0,a.G)(((e,t)=>{var{title:n,children:r,className:o}=e,a=G(e,["title","children","className"]),u=(0,l.cx)("chakra-menu__group__title",o),c=(0,i.yK)();return f.createElement("div",{ref:t,className:"chakra-menu__group",role:"group"},n&&f.createElement(s.m$.p,U({className:u},a,{__css:c.groupTitle}),n),r)}));c.Ts&&(re.displayName="MenuGroup");var oe=(0,a.G)(((e,t)=>{var n=(0,i.yK)();return f.createElement(s.m$.span,U({ref:t},e,{__css:n.command,className:"chakra-menu__command"}))}));c.Ts&&(oe.displayName="MenuCommand");var ie=e=>{var{className:t,children:n}=e,r=G(e,["className","children"]),o=f.Children.only(n),i=f.isValidElement(o)?f.cloneElement(o,{focusable:"false","aria-hidden":!0,className:(0,l.cx)("chakra-menu__icon",o.props.className)}):null,a=(0,l.cx)("chakra-menu__icon-wrapper",t);return f.createElement(s.m$.span,U({className:a},r,{__css:{flexShrink:0}}),i)};c.Ts&&(ie.displayName="MenuIcon");var ae=e=>{var{className:t}=e,n=G(e,["className"]),r=(0,i.yK)();return f.createElement(s.m$.hr,U({role:"separator","aria-orientation":"horizontal",className:(0,l.cx)("chakra-menu__divider",t)},n,{__css:r.divider}))};c.Ts&&(ae.displayName="MenuDivider")},30410:function(e,t,n){"use strict";n.d(t,{u_:function(){return $t},fe:function(){return tn},ol:function(){return rn},hz:function(){return Yt},mz:function(){return nn},xB:function(){return en},ZA:function(){return Jt}});var r=n(70058),o=n(90063),i=n(2326),a=n(55284),s=n(89384),u=n(73808),c=n(67294);function l(){return(l=Object.assign||function(e){for(var t=1;tc.createElement(r.J,l({focusable:"false","aria-hidden":!0},e),c.createElement("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})),f=(0,o.G)(((e,t)=>{var n=(0,i.m)("CloseButton",e),r=(0,a.Lr)(e),{children:o,isDisabled:u,__css:f}=r,p=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(r,["children","isDisabled","__css"]);return c.createElement(s.m$.button,l({type:"button","aria-label":"Close",ref:t,disabled:u,__css:l({},{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},n,f)},p),o||c.createElement(d,{width:"1em",height:"1em"}))}));u.Ts&&(f.displayName="CloseButton");var p=n(19756),h=n(22122),v=(n(45697),"data-focus-lock"),m="data-focus-lock-disabled";function g(e,t){return function(e,t){var n=(0,c.useState)((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}(t,(function(t){return e.forEach((function(e){return function(e,t){return"function"===typeof e?e(t):e&&(e.current=t),e}(e,t)}))}))}var y={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},b=function(e){var t=e.children;return c.createElement(c.Fragment,null,c.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:y}),t,t&&c.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:y}))};b.propTypes={},b.defaultProps={children:null};var w=n(70655);function x(e){return e}function _(e,t){void 0===t&&(t=x);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}function k(e,t){return void 0===t&&(t=x),_(e,t)}function E(e){void 0===e&&(e={});var t=_(null);return t.options=w.pi({async:!0,ssr:!1},e),t}var O=k({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),C=k(),T=k(),M=E({async:!0}),S=[],P=c.forwardRef((function(e,t){var n,r=c.useState(),o=r[0],i=r[1],a=c.useRef(),s=c.useRef(!1),u=c.useRef(null),l=e.children,d=e.disabled,f=e.noFocusGuards,p=e.persistentFocus,b=e.crossFrame,w=e.autoFocus,x=(e.allowTextSelection,e.group),_=e.className,k=e.whiteList,E=e.shards,T=void 0===E?S:E,P=e.as,j=void 0===P?"div":P,I=e.lockProps,A=void 0===I?{}:I,R=e.sideCar,D=e.returnFocus,L=e.onActivation,N=e.onDeactivation,B=c.useState({})[0],z=c.useCallback((function(){u.current=u.current||document&&document.activeElement,a.current&&L&&L(a.current),s.current=!0}),[L]),F=c.useCallback((function(){s.current=!1,N&&N(a.current)}),[N]),H=c.useCallback((function(e){var t=u.current;if(Boolean(D)&&t&&t.focus){var n="object"===typeof D?D:void 0;u.current=null,e?Promise.resolve().then((function(){return t.focus(n)})):t.focus(n)}}),[D]),V=c.useCallback((function(e){s.current&&O.useMedium(e)}),[]),W=C.useMedium,U=c.useCallback((function(e){a.current!==e&&(a.current=e,i(e))}),[]);var G=(0,h.Z)(((n={})[m]=d&&"disabled",n[v]=x,n),A),q=!0!==f,K=q&&"tail"!==f,Z=g([t,U]);return c.createElement(c.Fragment,null,q&&[c.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:d?-1:0,style:y}),c.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:d?-1:1,style:y})],!d&&c.createElement(R,{id:B,sideCar:M,observed:o,disabled:d,persistentFocus:p,crossFrame:b,autoFocus:w,whiteList:k,shards:T,onActivation:z,onDeactivation:F,returnFocus:H}),c.createElement(j,(0,h.Z)({ref:Z},G,{className:_,onBlur:W,onFocus:V}),l),K&&c.createElement("div",{"data-focus-guard":!0,tabIndex:d?-1:0,style:y}))}));P.propTypes={},P.defaultProps={children:void 0,disabled:!1,returnFocus:!1,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};var j=P;function I(e,t){return(I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var A=function(e,t){return function(n){var r,o=[];function i(){r=e(o.map((function(e){return e.props}))),t(r)}var a,s,u,l=function(e){var t,a;function s(){return e.apply(this,arguments)||this}a=e,(t=s).prototype=Object.create(a.prototype),t.prototype.constructor=t,I(t,a),s.peek=function(){return r};var u=s.prototype;return u.componentDidMount=function(){o.push(this),i()},u.componentDidUpdate=function(){i()},u.componentWillUnmount=function(){var e=o.indexOf(this);o.splice(e,1),i()},u.render=function(){return c.createElement(n,this.props)},s}(c.PureComponent);return a=l,s="displayName",u="SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")",s in a?Object.defineProperty(a,s,{value:u,enumerable:!0,configurable:!0,writable:!0}):a[s]=u,l}},R=function(e){return"INPUT"===e.tagName&&"radio"===e.type},D=function(e,t){return R(e)&&e.name?function(e,t){return t.filter(R).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},L=function(e){return e[0]&&e.length>1?D(e[0],e):e[0]},N=function(e,t){return e.length>1?e.indexOf(D(e[t],e)):t},B=function(e){return!e||e===document||e&&e.nodeType===Node.DOCUMENT_NODE||!((t=window.getComputedStyle(e,null))&&t.getPropertyValue&&("none"===t.getPropertyValue("display")||"hidden"===t.getPropertyValue("visibility")))&&B(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode);var t},z=function(e){return Boolean(e&&e.dataset&&e.dataset.focusGuard)},F=function(e){return!z(e)},H=function(e){return Boolean(e)},V="NEW_FOCUS",W=function(e,t,n,r){var o=e.length,i=e[0],a=e[o-1],s=z(n);if(!(e.indexOf(n)>=0)){var u=t.indexOf(n),c=r?t.indexOf(r):u,l=r?e.indexOf(r):-1,d=u-c,f=t.indexOf(i),p=t.indexOf(a),h=function(e){var t=new Set;return e.forEach((function(n){return t.add(D(n,e))})),e.filter((function(e){return t.has(e)}))}(t),v=h.indexOf(n)-(r?h.indexOf(r):u),m=N(e,0),g=N(e,o-1);return-1===u||-1===l?V:!d&&l>=0?l:u<=f&&s&&Math.abs(d)>1?g:u>=p&&s&&Math.abs(d)>1?m:d&&Math.abs(v)>1?l:u<=f?g:u>p?m:d?Math.abs(d)>1?l:(o+l+d)%o:void 0}},U=function(e){for(var t=Array(e.length),n=0;n0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter((function(e,n){return!t.has(n)}))}(U(q(t).querySelectorAll('[data-focus-lock="'+n+'"]:not(['+m+'="disabled"])'))):[t]),e}),[])},Z=function(e,t){var n=e.tabIndex-t.tabIndex,r=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||r},$=function(e,t,n){return U(e).map((function(e,t){return{node:e,index:t,tabIndex:n&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}})).filter((function(e){return!t||e.tabIndex>=0})).sort(Z)},X=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),Y=X+", [data-focus-guard]",Q=function(e,t){return e.reduce((function(e,n){return e.concat(U(n.querySelectorAll(t?Y:X)),n.parentNode?U(n.parentNode.querySelectorAll(X)).filter((function(e){return e===n})):[])}),[])},J=function(e){return U(e).filter((function(e){return B(e)})).filter((function(e){return function(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))}(e)}))},ee=function(e,t){return $(J(Q(e,t)),!0,t)},te=function(e){return $(J(Q(e)),!1)},ne=function(e){return J(function(e){var t=e.querySelectorAll("[data-autofocus-inside]");return U(t).map((function(e){return Q([e])})).reduce((function(e,t){return e.concat(t)}),[])}(e))},re=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&re(e.parentNode,t),t},oe=function(e,t){for(var n=re(e),r=re(t),o=0;o=0)return i}return!1},ie=function(e,t,n){var r=G(e),o=G(t),i=r[0],a=!1;return o.filter(Boolean).forEach((function(e){a=oe(a||e,e)||a,n.filter(Boolean).forEach((function(e){var t=oe(i,e);t&&(a=!a||t.contains(a)?t:oe(t,a))}))})),a},ae=function(e,t){var n=document&&document.activeElement,r=K(e).filter(F),o=ie(n||e,e,r),i=te(r),a=ee(r).filter((function(e){var t=e.node;return F(t)}));if(a[0]||(a=i)[0]){var s,u=te([o]).map((function(e){return e.node})),c=function(e,t){var n=new Map;return t.forEach((function(e){return n.set(e.node,e)})),e.map((function(e){return n.get(e)})).filter(H)}(u,a),l=c.map((function(e){return e.node})),d=W(l,u,n,t);if(d===V){var f=i.map((function(e){return e.node})).filter((s=function(e){return e.reduce((function(e,t){return e.concat(ne(t))}),[])}(r),function(e){return e.autofocus||e.dataset&&!!e.dataset.autofocus||s.indexOf(e)>=0}));return{node:f&&f.length?L(f):L(l)}}return void 0===d?d:c[d]}},se=0,ue=!1,ce=function(e,t){var n,r=ae(e,t);if(!ue&&r){if(se>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),ue=!0,void setTimeout((function(){ue=!1}),1);se++,(n=r.node).focus(),"contentWindow"in n&&n.contentWindow&&n.contentWindow.focus(),se--}},le=function(e){return Boolean(U(e.querySelectorAll("iframe")).some((function(e){return e===document.activeElement})))},de=function(e){var t=document&&document.activeElement;return!(!t||t.dataset&&t.dataset.focusGuard)&&K(e).reduce((function(e,n){return e||n.contains(t)||le(n)}),!1)};function fe(e){var t=window.setImmediate;"undefined"!==typeof t?t(e):setTimeout(e,1)}var pe=function(){return document&&document.activeElement===document.body||document&&U(document.querySelectorAll("[data-no-focus-lock]")).some((function(e){return e.contains(document.activeElement)}))},he=null,ve=null,me=null,ge=!1,ye=function(){return!0};function be(e,t,n,r){var o=null,i=e;do{var a=r[i];if(a.guard)a.node.dataset.focusAutoGuard&&(o=a);else{if(!a.lockItem)break;if(i!==e)return;o=null}}while((i+=n)!==t);o&&(o.node.tabIndex=0)}var we=function(e){return e&&"current"in e?e.current:e},xe=function(){var e,t=!1;if(he){var n=he,r=n.observed,o=n.persistentFocus,i=n.autoFocus,a=n.shards,s=n.crossFrame,u=r||me&&me.portaledElement,c=document&&document.activeElement;if(u){var l=[u].concat(a.map(we).filter(Boolean));if(c&&!function(e){return(he.whiteList||ye)(e)}(c)||(o||(s?Boolean(ge):"meanwhile"===ge)||!pe()||!ve&&i)&&(!u||de(l)||(e=c,me&&me.portaledElement===e)||(document&&!ve&&c&&!i?(c.blur&&c.blur(),document.body.focus()):(t=ce(l,ve),me={})),ge=!1,ve=document&&document.activeElement),document){var d=document&&document.activeElement,f=function(e){var t=K(e).filter(F),n=ie(e,e,t),r=ee([n],!0),o=ee(t).filter((function(e){var t=e.node;return F(t)})).map((function(e){return e.node}));return r.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:o.indexOf(t)>=0,guard:z(t)}}))}(l),p=f.map((function(e){return e.node})).indexOf(d);p>-1&&(f.filter((function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),be(p,f.length,1,f),be(p,-1,-1,f))}}}return t},_e=function(e){xe()&&e&&(e.stopPropagation(),e.preventDefault())},ke=function(){return fe(xe)},Ee=function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(me={observerNode:n,portaledElement:t})},Oe=function(){ge="just",setTimeout((function(){ge="meanwhile"}),0)};O.assignSyncMedium(Ee),C.assignMedium(ke),T.assignMedium((function(e){return e({moveFocusInside:ce,focusInside:de})}));var Ce=A((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var t=e.slice(-1)[0];t&&!he&&(document.addEventListener("focusin",_e,!0),document.addEventListener("focusout",ke),window.addEventListener("blur",Oe));var n=he,r=n&&t&&t.id===n.id;he=t,n&&!r&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(ve=null,r&&n.observed===t.observed||t.onActivation(),xe(),fe(xe)):(document.removeEventListener("focusin",_e,!0),document.removeEventListener("focusout",ke),window.removeEventListener("blur",Oe),ve=null)}))((function(){return null})),Te=c.forwardRef((function(e,t){return c.createElement(j,(0,h.Z)({sideCar:Ce,ref:t},e))})),Me=j.propTypes||{};Me.sideCar,(0,p.Z)(Me,["sideCar"]);Te.propTypes={};var Se=Te,Pe=n(17768),je=["input:not([disabled])","select:not([disabled])","textarea:not([disabled])","embed","iframe","object","a[href]","area[href]","button:not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"].join();function Ie(e){var t=Array.from(e.querySelectorAll(je));return t.unshift(e),t.filter(Pe.EB).filter((e=>"none"!==window.getComputedStyle(e).display))}var Ae=n(47248),Re=e=>{var{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:o,children:i,isDisabled:a,autoFocus:s,persistentFocus:u,lockFocusAcrossFrames:l}=e,d=c.useCallback((()=>{if(null!=t&&t.current)t.current.focus();else if(null!=r&&r.current){0===Ie(r.current).length&&(0,Ae.T)(r.current,{nextTick:!0})}}),[t,r]),f=c.useCallback((()=>{var e;null==n||null==(e=n.current)||e.focus()}),[n]),p=o&&!n;return c.createElement(Se,{crossFrame:l,persistentFocus:u,autoFocus:s,disabled:a,onActivation:d,onDeactivation:f,returnFocus:p},i)};u.Ts&&(Re.displayName="FocusLock");var De=n(67273),Le=n(29676),Ne=n(84461),Be=n(53869),ze=n(39629),Fe=n(24722);function He(){return(He=Object.assign||function(e){for(var t=1;t{var{unmountOnExit:n,in:r,className:o,transition:i,transitionEnd:a,delay:s}=e,u=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["unmountOnExit","in","className","transition","transitionEnd","delay"]),l=r||n?"enter":"exit",d=!n||r&&n,f={transition:i,transitionEnd:a,delay:s};return c.createElement(Be.M,{custom:f},d&&c.createElement(ze.E.div,He({ref:t,className:(0,Ne.cx)("chakra-fade",o),custom:f},Ve,{animate:l},u)))}));u.Ts&&(We.displayName="Fade");var Ue=n(80658),Ge=n(28500),qe=n(69283),Ke="right-scroll-bar-position",Ze="width-before-scroll-bar",$e=E(),Xe=function(){},Ye=c.forwardRef((function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:Xe,onWheelCapture:Xe,onTouchMoveCapture:Xe}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,u=e.className,l=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noIsolation,v=e.inert,m=e.allowPinchZoom,y=e.as,b=void 0===y?"div":y,x=w._T(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),_=p,k=g([n,t]),E=w.pi({},x,o);return c.createElement(c.Fragment,null,d&&c.createElement(_,{sideCar:$e,removeScrollBar:l,shards:f,noIsolation:h,inert:v,setCallbacks:i,allowPinchZoom:!!m,lockRef:n}),a?c.cloneElement(c.Children.only(s),w.pi({},E,{ref:k})):c.createElement(b,w.pi({},E,{className:u,ref:k}),s))}));Ye.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ye.classNames={fullWidth:Ze,zeroRight:Ke};var Qe,Je=function(e){var t=e.sideCar,n=w._T(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,w.pi({},n))};Je.isSideCarExport=!0;function et(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Qe||n.nc;return t&&e.setAttribute("nonce",t),e}var tt=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=et())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},nt=function(){var e=function(){var e=tt();return function(t){c.useEffect((function(){return e.add(t),function(){e.remove()}}),[])}}();return function(t){var n=t.styles;return e(n),null}},rt={left:0,top:0,right:0,gap:0},ot=function(e){return parseInt(e||"",10)||0},it=function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return rt;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[ot(n),ot(r),ot(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},at=nt(),st=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .with-scroll-bars-hidden {\n overflow: hidden "+r+";\n padding-right: "+s+"px "+r+";\n }\n body {\n overflow: hidden "+r+";\n "+[t&&"position: relative "+r+";","margin"===n&&"\n padding-left: "+o+"px;\n padding-top: "+i+"px;\n padding-right: "+a+"px;\n margin-left:0;\n margin-top:0;\n margin-right: "+s+"px "+r+";\n ","padding"===n&&"padding-right: "+s+"px "+r+";"].filter(Boolean).join("")+"\n }\n \n ."+Ke+" {\n right: "+s+"px "+r+";\n }\n \n ."+Ze+" {\n margin-right: "+s+"px "+r+";\n }\n \n ."+Ke+" ."+Ke+" {\n right: 0 "+r+";\n }\n \n ."+Ze+" ."+Ze+" {\n margin-right: 0 "+r+";\n }\n \n body {\n --removed-body-scroll-bar-size: "+s+"px;\n }\n"},ut=function(e){var t=c.useState(it(e.gapMode)),n=t[0],r=t[1];c.useEffect((function(){r(it(e.gapMode))}),[e.gapMode]);var o=e.noRelative,i=e.noImportant,a=e.gapMode,s=void 0===a?"margin":a;return c.createElement(at,{styles:st(n,!o,s,i?"":"!important")})},ct=function(e,t){var n=t;do{if(lt(e,n)){var r=dt(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},lt=function(e,t){return"v"===e?function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)}(t):function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)}(t)},dt=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},ft=!1;if("undefined"!==typeof window)try{var pt=Object.defineProperty({},"passive",{get:function(){return ft=!0,!0}});window.addEventListener("test",pt,pt),window.removeEventListener("test",pt,pt)}catch(on){ft=!1}var ht=!!ft&&{passive:!1},vt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},mt=function(e){return[e.deltaX,e.deltaY]},gt=function(e){return e&&"current"in e?e.current:e},yt=function(e){return"\n .block-interactivity-"+e+" {pointer-events: none;}\n .allow-interactivity-"+e+" {pointer-events: all;}\n"},bt=0,wt=[];var xt,_t=(xt=function(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(bt++)[0],i=c.useState((function(){return nt()}))[0],a=c.useRef(e);c.useEffect((function(){a.current=e}),[e]),c.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-"+o);var t=[e.lockRef.current].concat((e.shards||[]).map(gt)).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-"+o)})),function(){document.body.classList.remove("block-interactivity-"+o),t.forEach((function(e){return e.classList.remove("allow-interactivity-"+o)}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=c.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var o,i=vt(e),s=n.current,u="deltaX"in e?e.deltaX:s[0]-i[0],c="deltaY"in e?e.deltaY:s[1]-i[1],l=e.target,d=Math.abs(u)>Math.abs(c)?"h":"v",f=ct(d,l);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=ct(d,l)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||c)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var i=r,a=n.target,s=t.contains(a),u=!1,c=i>0,l=0,d=0;do{var f=dt(e,a),p=f[0],h=f[1]-f[2]-p;(p||h)&<(e,a)&&(l+=h,d+=p),a=a.parentNode}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return(c&&(o&&0===l||!o&&i>l)||!c&&(o&&0===d||!o&&-i>d))&&(u=!0),u}(p,t,e,"h"===p?u:c,!0)}),[]),u=c.useCallback((function(e){var n=e;if(wt.length&&wt[wt.length-1]===i){var r="deltaY"in n?mt(n):vt(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)n.preventDefault();else if(!o){var u=(a.current.shards||[]).map(gt).filter(Boolean).filter((function(e){return e.contains(n.target)}));(u.length>0?s(n,u[0]):!a.current.noIsolation)&&n.preventDefault()}}}),[]),l=c.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),d=c.useCallback((function(e){n.current=vt(e),r.current=void 0}),[]),f=c.useCallback((function(t){l(t.type,mt(t),t.target,s(t,e.lockRef.current))}),[]),p=c.useCallback((function(t){l(t.type,vt(t),t.target,s(t,e.lockRef.current))}),[]);c.useEffect((function(){return wt.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,ht),document.addEventListener("touchmove",u,ht),document.addEventListener("touchstart",d,ht),function(){wt=wt.filter((function(e){return e!==i})),document.removeEventListener("wheel",u,ht),document.removeEventListener("touchmove",u,ht),document.removeEventListener("touchstart",d,ht)}}),[]);var h=e.removeScrollBar,v=e.inert;return c.createElement(c.Fragment,null,v?c.createElement(i,{styles:yt(o)}):null,h?c.createElement(ut,{gapMode:"margin"}):null)},$e.useMedium(xt),Je),kt=c.forwardRef((function(e,t){return c.createElement(Ye,w.pi({},e,{ref:t,sideCar:_t}))}));kt.classNames=Ye.classNames;var Et=kt;function Ot(){return(Ot=Object.assign||function(e){for(var t=1;t{var t,{offsetX:n,offsetY:r,transition:o,transitionEnd:i,delay:a}=e;return{opacity:0,x:n,y:r,transition:null!=(t=null==o?void 0:o.exit)?t:Fe.p$.exit(Fe.R.exit,a),transitionEnd:null==i?void 0:i.exit}},enter:e=>{var t,{transition:n,transitionEnd:r,delay:o}=e;return{opacity:1,x:0,y:0,transition:null!=(t=null==n?void 0:n.enter)?t:Fe.p$.enter(Fe.R.enter,o),transitionEnd:null==r?void 0:r.enter}},exit:e=>{var t,{offsetY:n,offsetX:r,transition:o,transitionEnd:i,reverse:a,delay:s}=e,u={x:r,y:n};return Ot({opacity:0,transition:null!=(t=null==o?void 0:o.exit)?t:Fe.p$.exit(Fe.R.exit,s)},a?Ot({},u,{transitionEnd:null==i?void 0:i.exit}):{transitionEnd:Ot({},u,null==i?void 0:i.exit)})}}},Tt=c.forwardRef(((e,t)=>{var{unmountOnExit:n,in:r,reverse:o=!0,className:i,offsetX:a=0,offsetY:s=8,transition:u,transitionEnd:l,delay:d}=e,f=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["unmountOnExit","in","reverse","className","offsetX","offsetY","transition","transitionEnd","delay"]),p=!n||r&&n,h=r||n?"enter":"exit",v={offsetX:a,offsetY:s,reverse:o,transition:u,transitionEnd:l,delay:d};return c.createElement(Be.M,{custom:v},p&&c.createElement(ze.E.div,Ot({ref:t,className:(0,Ne.cx)("chakra-offset-slide",i),custom:v},Ct,{animate:h},f)))}));function Mt(){return(Mt=Object.assign||function(e){for(var t=1;t{var t,{reverse:n,initialScale:r,transition:o,transitionEnd:i,delay:a}=e;return Mt({opacity:0},n?{scale:r,transitionEnd:null==i?void 0:i.exit}:{transitionEnd:Mt({scale:r},null==i?void 0:i.exit)},{transition:null!=(t=null==o?void 0:o.exit)?t:Fe.p$.exit(Fe.R.exit,a)})},enter:e=>{var t,{transitionEnd:n,transition:r,delay:o}=e;return{opacity:1,scale:1,transition:null!=(t=null==r?void 0:r.enter)?t:Fe.p$.enter(Fe.R.enter,o),transitionEnd:null==n?void 0:n.enter}}}},Pt=c.forwardRef(((e,t)=>{var{unmountOnExit:n,in:r,reverse:o=!0,initialScale:i=.95,className:a,transition:s,transitionEnd:u,delay:l}=e,d=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["unmountOnExit","in","reverse","initialScale","className","transition","transitionEnd","delay"]),f=!n||r&&n,p=r||n?"enter":"exit",h={initialScale:i,reverse:o,transition:s,transitionEnd:u,delay:l};return c.createElement(Be.M,{custom:h},f&&c.createElement(ze.E.div,Mt({ref:t,className:(0,Ne.cx)("chakra-offset-slide",a)},St,{animate:p,custom:h},d)))}));function jt(){return(jt=Object.assign||function(e){for(var t=1;t{var{preset:n}=e,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["preset"]),o=It[n];return c.createElement(At,jt({ref:t},o,r))})),Dt=n(94577),Lt=n(72947),Nt=new WeakMap,Bt=new WeakMap,zt={},Ft=0,Ht=function(e,t,n){void 0===t&&(t=function(e){return"undefined"===typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e)),void 0===n&&(n="data-aria-hidden");var r=Array.isArray(e)?e:[e];zt[n]||(zt[n]=new WeakMap);var o=zt[n],i=[],a=new Set,s=function(e){e&&!a.has(e)&&(a.add(e),s(e.parentNode))};r.forEach(s);var u=function(e){!e||r.indexOf(e)>=0||Array.prototype.forEach.call(e.children,(function(e){if(a.has(e))u(e);else{var t=e.getAttribute("aria-hidden"),r=null!==t&&"false"!==t,s=(Nt.get(e)||0)+1,c=(o.get(e)||0)+1;Nt.set(e,s),o.set(e,c),i.push(e),1===s&&r&&Bt.set(e,!0),1===c&&e.setAttribute(n,"true"),r||e.setAttribute("aria-hidden","true")}}))};return u(t),a.clear(),Ft++,function(){i.forEach((function(e){var t=Nt.get(e)-1,r=o.get(e)-1;Nt.set(e,t),o.set(e,r),t||(Bt.has(e)||e.removeAttribute("aria-hidden"),Bt.delete(e)),r||e.removeAttribute(n)})),--Ft||(Nt=new WeakMap,Nt=new WeakMap,Bt=new WeakMap,zt={})}};var Vt=new class{constructor(){var e,t,n;n=void 0,(t="modals")in(e=this)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,this.modals=[]}add(e){this.modals.push(e)}remove(e){this.modals=this.modals.filter((t=>t!==e))}isTopModal(e){return this.modals[this.modals.length-1]===e}};function Wt(){return(Wt=Object.assign||function(e){for(var t=1;t{if(t.current){var e=null;return n&&t.current&&(e=Ht(t.current)),()=>{n&&(null==e||e())}}}),[n,t]),function(e,t){(0,c.useEffect)((()=>(t&&Vt.add(e),()=>{Vt.remove(e)})),[t,e])}(f,r);var g=(0,c.useRef)(null),y=(0,c.useCallback)((e=>{g.current=e.target}),[]),b=(0,c.useCallback)((e=>{"Escape"===e.key&&(e.stopPropagation(),s&&(null==o||o()),null==d||d())}),[s,o,d]),[w,x]=(0,c.useState)(!1),[_,k]=(0,c.useState)(!1),E=(0,c.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Wt({role:"dialog"},e,{ref:(0,Lt.l)(t,f),id:h,tabIndex:-1,"aria-modal":!0,"aria-labelledby":w?v:void 0,"aria-describedby":_?m:void 0,onClick:(0,Ue.v0)(e.onClick,(e=>e.stopPropagation()))})}),[m,_,h,v,w]),O=(0,c.useCallback)((e=>{e.stopPropagation(),g.current===e.target&&Vt.isTopModal(f)&&(a&&(null==o||o()),null==l||l())}),[o,a,l]),C=(0,c.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),Wt({},e,{ref:(0,Lt.l)(t,p),onClick:(0,Ue.v0)(e.onClick,O),onKeyDown:(0,Ue.v0)(e.onKeyDown,b),onMouseDown:(0,Ue.v0)(e.onMouseDown,y)})}),[b,y,O]);return{isOpen:r,onClose:o,headerId:v,bodyId:m,setBodyMounted:k,setHeaderMounted:x,dialogRef:f,overlayRef:p,getDialogProps:E,getDialogContainerProps:C}}function Gt(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}function qt(){return(qt=Object.assign||function(e){for(var t=1;t`"}),$t=e=>{var{portalProps:t,children:n,autoFocus:r,trapFocus:o,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:u,blockScrollOnMount:l,allowPinchZoom:d,preserveScrollBarGap:f,motionPreset:p,lockFocusAcrossFrames:h}=e,v=(0,i.j)("Modal",e),m=qt({},Ut(e),{autoFocus:r,trapFocus:o,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:u,blockScrollOnMount:l,allowPinchZoom:d,preserveScrollBarGap:f,motionPreset:p,lockFocusAcrossFrames:h});return c.createElement(Kt,{value:m},c.createElement(Le.Fo,{value:v},c.createElement(Be.M,null,m.isOpen&&c.createElement(De.h,t,n))))};$t.defaultProps={lockFocusAcrossFrames:!0,returnFocusOnClose:!0,scrollBehavior:"outside",trapFocus:!0,autoFocus:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale"},u.Ts&&($t.displayName="Modal");var Xt=(0,s.m$)(ze.E.div),Yt=(0,o.G)(((e,t)=>{var{className:n,children:r,containerProps:o}=e,i=Gt(e,["className","children","containerProps"]),{getDialogProps:a,getDialogContainerProps:u}=Zt(),l=a(i,t),d=u(o),f=(0,Ne.cx)("chakra-modal__content",n),p=(0,Le.yK)(),h=qt({display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0},p.dialog),v=qt({display:"flex",width:"100vw",height:"100vh","@supports(height: -webkit-fill-available)":{height:"-webkit-fill-available"},position:"fixed",left:0,top:0},p.dialogContainer),{motionPreset:m}=Zt();return c.createElement(Qt,null,c.createElement(s.m$.div,qt({},d,{className:"chakra-modal__content-container",__css:v}),c.createElement(Rt,qt({preset:m,className:f},l,{__css:h}),r)))}));function Qt(e){var{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:o,blockScrollOnMount:i,allowPinchZoom:a,finalFocusRef:s,returnFocusOnClose:u,preserveScrollBarGap:l,lockFocusAcrossFrames:d}=Zt(),[f,p]=(0,qe.oO)();return c.useEffect((()=>{!f&&p&&setTimeout(p)}),[f,p]),c.createElement(Re,{autoFocus:t,isDisabled:!n,initialFocusRef:o,finalFocusRef:s,restoreFocus:u,contentRef:r,lockFocusAcrossFrames:d},c.createElement(Et,{removeScrollBar:!l,allowPinchZoom:a,enabled:i,forwardProps:!0},e.children))}u.Ts&&(Yt.displayName="ModalContent");var Jt=(0,o.G)(((e,t)=>{var{className:n}=e,r=Gt(e,["className","transition"]),o=(0,Ne.cx)("chakra-modal__overlay",n),i=qt({pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh"},(0,Le.yK)().overlay),{motionPreset:a}=Zt(),s="none"===a?{}:Ve;return c.createElement(Xt,qt({},s,{__css:i,ref:t,className:o},r))}));u.Ts&&(Jt.displayName="ModalOverlay");var en=(0,o.G)(((e,t)=>{var{className:n}=e,r=Gt(e,["className"]),{headerId:o,setHeaderMounted:i}=Zt();c.useEffect((()=>(i(!0),()=>i(!1))),[i]);var a=(0,Ne.cx)("chakra-modal__header",n),u=qt({flex:0},(0,Le.yK)().header);return c.createElement(s.m$.header,qt({ref:t,className:a,id:o},r,{__css:u}))}));u.Ts&&(en.displayName="ModalHeader");var tn=(0,o.G)(((e,t)=>{var{className:n}=e,r=Gt(e,["className"]),{bodyId:o,setBodyMounted:i}=Zt();c.useEffect((()=>(i(!0),()=>i(!1))),[i]);var a=(0,Ne.cx)("chakra-modal__body",n),u=(0,Le.yK)();return c.createElement(s.m$.div,qt({ref:t,className:a,id:o},r,{__css:u.body}))}));u.Ts&&(tn.displayName="ModalBody");var nn=(0,o.G)(((e,t)=>{var{className:n}=e,r=Gt(e,["className"]),o=(0,Ne.cx)("chakra-modal__footer",n),i=qt({display:"flex",alignItems:"center",justifyContent:"flex-end"},(0,Le.yK)().footer);return c.createElement(s.m$.footer,qt({ref:t},r,{__css:i,className:o}))}));u.Ts&&(nn.displayName="ModalFooter");var rn=(0,o.G)(((e,t)=>{var{onClick:n,className:r}=e,o=Gt(e,["onClick","className"]),{onClose:i}=Zt(),a=(0,Ne.cx)("chakra-modal__close-btn",r),s=(0,Le.yK)();return c.createElement(f,qt({ref:t,__css:s.closeButton,className:a,onClick:(0,Ue.v0)(n,(e=>{e.stopPropagation(),i()}))},o))}));u.Ts&&(rn.displayName="ModalCloseButton")},8931:function(e,t,n){"use strict";n.d(t,{D:function(){return be}});var r=n(72947);function o(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function i(e){if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t?t.defaultView:window}return e}function a(e){var t=i(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function s(e){return e instanceof i(e).Element||e instanceof Element}function u(e){return e instanceof i(e).HTMLElement||e instanceof HTMLElement}function c(e){return e?(e.nodeName||"").toLowerCase():null}function l(e){return(s(e)?e.ownerDocument:e.document).documentElement}function d(e){return o(l(e)).left+a(e).scrollLeft}function f(e){return i(e).getComputedStyle(e)}function p(e){var t=f(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function h(e,t,n){void 0===n&&(n=!1);var r=l(t),s=o(e),f=u(t),h={scrollLeft:0,scrollTop:0},v={x:0,y:0};return(f||!f&&!n)&&(("body"!==c(t)||p(r))&&(h=function(e){return e!==i(e)&&u(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:a(e);var t}(t)),u(t)?((v=o(t)).x+=t.clientLeft,v.y+=t.clientTop):r&&(v.x=d(r))),{x:s.left+h.scrollLeft-v.x,y:s.top+h.scrollTop-v.y,width:s.width,height:s.height}}function v(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function m(e){return"html"===c(e)?e:e.assignedSlot||e.parentNode||e.host||l(e)}function g(e){return["html","body","#document"].indexOf(c(e))>=0?e.ownerDocument.body:u(e)&&p(e)?e:g(m(e))}function y(e,t){void 0===t&&(t=[]);var n=g(e),r="body"===c(n),o=i(n),a=r?[o].concat(o.visualViewport||[],p(n)?n:[]):n,s=t.concat(a);return r?s:s.concat(y(m(a)))}function b(e){return["table","td","th"].indexOf(c(e))>=0}function w(e){if(!u(e)||"fixed"===f(e).position)return null;var t=e.offsetParent;if(t){var n=l(t);if("body"===c(t)&&"static"===f(t).position&&"static"!==f(n).position)return n}return t}function x(e){for(var t=i(e),n=w(e);n&&b(n)&&"static"===f(n).position;)n=w(n);return n&&"body"===c(n)&&"static"===f(n).position?t:n||function(e){for(var t=m(e);u(t)&&["html","body"].indexOf(c(t))<0;){var n=f(t);if("none"!==n.transform||"none"!==n.perspective||n.willChange&&"auto"!==n.willChange)return t;t=t.parentNode}return null}(e)||t}var _="top",k="bottom",E="right",O="left",C="auto",T=[_,k,E,O],M="start",S="end",P="viewport",j="popper",I=T.reduce((function(e,t){return e.concat([t+"-"+M,t+"-"+S])}),[]),A=[].concat(T,[C]).reduce((function(e,t){return e.concat([t,t+"-"+M,t+"-"+S])}),[]),R=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function D(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function L(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var N={placement:"bottom",modifiers:[],strategy:"absolute"};function B(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function U(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?H(o):null,a=o?V(o):null,s=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(i){case _:t={x:s,y:n.y-r.height};break;case k:t={x:s,y:n.y+n.height};break;case E:t={x:n.x+n.width,y:u};break;case O:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var c=i?W(i):null;if(null!=c){var l="y"===c?"height":"width";switch(a){case M:t[c]=Math.floor(t[c])-Math.floor(n[l]/2-r[l]/2);break;case S:t[c]=Math.floor(t[c])+Math.ceil(n[l]/2-r[l]/2)}}return t}var G={top:"auto",right:"auto",bottom:"auto",left:"auto"};function q(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.offsets,s=e.position,u=e.gpuAcceleration,c=e.adaptive,d=function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Math.round(t*r)/r||0,y:Math.round(n*r)/r||0}}(a),f=d.x,p=d.y,h=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),m=O,g=_,y=window;if(c){var b=x(n);b===i(n)&&(b=l(n)),o===_&&(g=k,p-=b.clientHeight-r.height,p*=u?1:-1),o===O&&(m=E,f-=b.clientWidth-r.width,f*=u?1:-1)}var w,C=Object.assign({position:s},c&&G);return u?Object.assign(Object.assign({},C),{},((w={})[g]=v?"0":"",w[m]=h?"0":"",w.transform=(y.devicePixelRatio||1)<2?"translate("+f+"px, "+p+"px)":"translate3d("+f+"px, "+p+"px, 0)",w)):Object.assign(Object.assign({},C),{},((t={})[g]=v?p+"px":"",t[m]=h?f+"px":"",t.transform="",t))}var K={left:"right",right:"left",bottom:"top",top:"bottom"};function Z(e){return e.replace(/left|right|bottom|top/g,(function(e){return K[e]}))}var $={start:"end",end:"start"};function X(e){return e.replace(/start|end/g,(function(e){return $[e]}))}function Y(e,t){var n=Boolean(t.getRootNode&&t.getRootNode().host);if(e.contains(t))return!0;if(n){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Q(e){return Object.assign(Object.assign({},e),{},{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function J(e,t){return t===P?Q(function(e){var t=i(e),n=l(e),r=t.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,u=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,u=r.offsetTop)),{width:o,height:a,x:s+d(e),y:u}}(e)):u(t)?function(e){var t=o(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Q(function(e){var t=l(e),n=a(e),r=e.ownerDocument.body,o=Math.max(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=Math.max(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-n.scrollLeft+d(e),u=-n.scrollTop;return"rtl"===f(r||t).direction&&(s+=Math.max(t.clientWidth,r?r.clientWidth:0)-o),{width:o,height:i,x:s,y:u}}(l(e)))}function ee(e,t,n){var r="clippingParents"===t?function(e){var t=y(m(e)),n=["absolute","fixed"].indexOf(f(e).position)>=0&&u(e)?x(e):e;return s(n)?t.filter((function(e){return s(e)&&Y(e,n)&&"body"!==c(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=J(e,n);return t.top=Math.max(r.top,t.top),t.right=Math.min(r.right,t.right),t.bottom=Math.min(r.bottom,t.bottom),t.left=Math.max(r.left,t.left),t}),J(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function te(e){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),e)}function ne(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function re(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,a=n.boundary,u=void 0===a?"clippingParents":a,c=n.rootBoundary,d=void 0===c?P:c,f=n.elementContext,p=void 0===f?j:f,h=n.altBoundary,v=void 0!==h&&h,m=n.padding,g=void 0===m?0:m,y=te("number"!==typeof g?g:ne(g,T)),b=p===j?"reference":j,w=e.elements.reference,x=e.rects.popper,O=e.elements[v?b:p],C=ee(s(O)?O:O.contextElement||l(e.elements.popper),u,d),M=o(w),S=U({reference:M,element:x,strategy:"absolute",placement:i}),I=Q(Object.assign(Object.assign({},x),S)),A=p===j?I:M,R={top:C.top-A.top+y.top,bottom:A.bottom-C.bottom+y.bottom,left:C.left-A.left+y.left,right:A.right-C.right+y.right},D=e.modifiersData.offset;if(p===j&&D){var L=D[i];Object.keys(R).forEach((function(e){var t=[E,k].indexOf(e)>=0?1:-1,n=[_,k].indexOf(e)>=0?"y":"x";R[e]+=L[n]*t}))}return R}function oe(e,t,n){return Math.max(e,Math.min(t,n))}function ie(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ae(e){return[_,E,k,O].some((function(t){return e[t]>=0}))}var se=z({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,s=r.resize,u=void 0===s||s,c=i(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach((function(e){e.addEventListener("scroll",n.update,F)})),u&&c.addEventListener("resize",n.update,F),function(){a&&l.forEach((function(e){e.removeEventListener("scroll",n.update,F)})),u&&c.removeEventListener("resize",n.update,F)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=U({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s={placement:H(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign(Object.assign({},t.styles.popper),q(Object.assign(Object.assign({},s),{},{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign(Object.assign({},t.styles.arrow),q(Object.assign(Object.assign({},s),{},{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1})))),t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];u(o)&&c(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});u(r)&&c(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=A.reduce((function(e,n){return e[n]=function(e,t,n){var r=H(e),o=[O,_].indexOf(r)>=0?-1:1,i="function"===typeof n?n(Object.assign(Object.assign({},t),{},{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[O,E].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],u=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,u=n.fallbackPlacements,c=n.padding,l=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,v=n.allowedAutoPlacements,m=t.options.placement,g=H(m),y=u||(g===m||!h?[Z(m)]:function(e){if(H(e)===C)return[];var t=Z(e);return[X(e),t,X(t)]}(m)),b=[m].concat(y).reduce((function(e,n){return e.concat(H(n)===C?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,c=void 0===u?A:u,l=V(r),d=l?s?I:I.filter((function(e){return V(e)===l})):T,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=re(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[H(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:l,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:v}):n)}),[]),w=t.rects.reference,x=t.rects.popper,S=new Map,P=!0,j=b[0],R=0;R=0,z=B?"width":"height",F=re(t,{placement:D,boundary:l,rootBoundary:d,altBoundary:f,padding:c}),W=B?N?E:O:N?k:_;w[z]>x[z]&&(W=Z(W));var U=Z(W),G=[];if(i&&G.push(F[L]<=0),s&&G.push(F[W]<=0,F[U]<=0),G.every((function(e){return e}))){j=D,P=!1;break}S.set(D,G)}if(P)for(var q=function(e){var t=b.find((function(t){var n=S.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return j=t,"break"},K=h?3:1;K>0;K--){if("break"===q(K))break}t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,u=n.boundary,c=n.rootBoundary,l=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,h=n.tetherOffset,m=void 0===h?0:h,g=re(t,{boundary:u,rootBoundary:c,padding:d,altBoundary:l}),y=H(t.placement),b=V(t.placement),w=!b,C=W(y),T="x"===C?"y":"x",S=t.modifiersData.popperOffsets,P=t.rects.reference,j=t.rects.popper,I="function"===typeof m?m(Object.assign(Object.assign({},t.rects),{},{placement:t.placement})):m,A={x:0,y:0};if(S){if(i){var R="y"===C?_:O,D="y"===C?k:E,L="y"===C?"height":"width",N=S[C],B=S[C]+g[R],z=S[C]-g[D],F=p?-j[L]/2:0,U=b===M?P[L]:j[L],G=b===M?-j[L]:-P[L],q=t.elements.arrow,K=p&&q?v(q):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},$=Z[R],X=Z[D],Y=oe(0,P[L],K[L]),Q=w?P[L]/2-F-Y-$-I:U-Y-$-I,J=w?-P[L]/2+F+Y+X+I:G+Y+X+I,ee=t.elements.arrow&&x(t.elements.arrow),te=ee?"y"===C?ee.clientTop||0:ee.clientLeft||0:0,ne=t.modifiersData.offset?t.modifiersData.offset[t.placement][C]:0,ie=S[C]+Q-ne-te,ae=S[C]+J-ne,se=oe(p?Math.min(B,ie):B,N,p?Math.max(z,ae):z);S[C]=se,A[C]=se-N}if(s){var ue="x"===C?_:O,ce="x"===C?k:E,le=S[T],de=oe(le+g[ue],le,le-g[ce]);S[T]=de,A[T]=de-le}t.modifiersData[r]=A}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=n.elements.arrow,i=n.modifiersData.popperOffsets,a=H(n.placement),s=W(a),u=[O,E].indexOf(a)>=0?"height":"width";if(o&&i){var c=n.modifiersData[r+"#persistent"].padding,l=v(o),d="y"===s?_:O,f="y"===s?k:E,p=n.rects.reference[u]+n.rects.reference[s]-i[s]-n.rects.popper[u],h=i[s]-n.rects.reference[s],m=x(o),g=m?"y"===s?m.clientHeight||0:m.clientWidth||0:0,y=p/2-h/2,b=c[d],w=g-l[u]-c[f],C=g/2-l[u]/2+y,T=oe(b,C,w),M=s;n.modifiersData[r]=((t={})[M]=T,t.centerOffset=T-C,t)}},effect:function(e){var t=e.state,n=e.options,r=e.name,o=n.element,i=void 0===o?"[data-popper-arrow]":o,a=n.padding,s=void 0===a?0:a;null!=i&&("string"!==typeof i||(i=t.elements.popper.querySelector(i)))&&Y(t.elements.popper,i)&&(t.elements.arrow=i,t.modifiersData[r+"#persistent"]={padding:te("number"!==typeof s?s:ne(s,T))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=re(t,{elementContext:"reference"}),s=re(t,{altBoundary:!0}),u=ie(a,r),c=ie(s,o,i),l=ae(u),d=ae(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:d},t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-reference-hidden":l,"data-popper-escaped":d})}}]}),ue=n(67294),ce=n(23459),le={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:e=>{var{state:t}=e;t.styles.popper.width=t.rects.reference.width+"px"},effect:e=>{var{state:t}=e;return()=>{var e=t.elements.reference;t.elements.popper.style.width=e.offsetWidth+"px"}}},de={name:"transformOrigin",enabled:!0,phase:"write",fn:e=>{var{state:t}=e;fe(t)},effect:e=>{var{state:t}=e;return()=>{fe(t)}}},fe=e=>{e.elements.popper.style.setProperty(ce.Dq.transformOrigin.var,(0,ce.mv)(e.placement))},pe={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:e=>{var{state:t}=e;he(t)}},he=e=>{var t;if(e.placement){var n=ve(e.placement);if(null!=(t=e.elements)&&t.arrow&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:ce.Dq.arrowSize.varRef,height:ce.Dq.arrowSize.varRef,zIndex:-1});var r={[ce.Dq.arrowSizeHalf.var]:"calc("+ce.Dq.arrowSize.varRef+" / 2)",[ce.Dq.arrowOffset.var]:"calc("+ce.Dq.arrowSizeHalf.varRef+" * -1)"};for(var o in r)e.elements.arrow.style.setProperty(o,r[o])}}},ve=e=>e.startsWith("top")?{property:"bottom",value:ce.Dq.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:ce.Dq.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:ce.Dq.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:ce.Dq.arrowOffset.varRef}:void 0,me={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:e=>{var{state:t}=e;ge(t)},effect:e=>{var{state:t}=e;return()=>{ge(t)}}},ge=e=>{if(e.elements.arrow){var t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");t&&Object.assign(t.style,{transform:"rotate(45deg)",background:ce.Dq.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:(0,ce.Ke)(e.placement)})}};function ye(){return(ye=Object.assign||function(e){for(var t=1;t{})),y=(0,ue.useCallback)((()=>{t&&h.current&&v.current&&(null==g.current||g.current(),m.current=se(h.current,v.current,{placement:o,modifiers:[me,pe,de,ye({},le,{enabled:!!p}),ye({name:"eventListeners"},(0,ce.$B)(s)),{name:"arrow",options:{padding:a}},{name:"offset",options:{offset:null!=u?u:[0,c]}},{name:"flip",enabled:!!l,options:{padding:8}},{name:"preventOverflow",enabled:!!f,options:{boundary:d}},...n],strategy:i}),m.current.forceUpdate(),g.current=m.current.destroy)}),[t,o,n,p,s,a,u,c,l,f,d,i]);(0,ue.useEffect)((()=>()=>{var e;h.current||v.current||(null==(e=m.current)||e.destroy(),m.current=null)}),[]);var b=(0,ue.useCallback)((e=>{h.current=e,y()}),[y]),w=(0,ue.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),ye({},e,{ref:(0,r.l)(b,t)})}),[b]),x=(0,ue.useCallback)((e=>{v.current=e,y()}),[y]),_=(0,ue.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),ye({},e,{ref:(0,r.l)(x,t),style:ye({},e.style,{position:i,minWidth:"max-content",inset:"0 auto auto 0"})})}),[i,x]),k=(0,ue.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),ye({},function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["size","shadowColor","bg","style"]),{ref:t,"data-popper-arrow":"",style:we(e)})}),[]),E=(0,ue.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),ye({},e,{ref:t,"data-popper-arrow-inner":""})}),[]);return{update(){var e;null==(e=m.current)||e.update()},forceUpdate(){var e;null==(e=m.current)||e.forceUpdate()},transformOrigin:ce.Dq.transformOrigin.varRef,referenceRef:b,popperRef:x,getPopperProps:_,getArrowProps:k,getArrowInnerProps:E,getReferenceProps:w}}function we(e){var{size:t,shadowColor:n,bg:r,style:o}=e,i=ye({},o,{position:"absolute"});return t&&(i["--popper-arrow-size"]=t),n&&(i["--popper-arrow-shadow-color"]=n),r&&(i["--popper-arrow-bg"]=r),i}},23459:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t({var:e,varRef:t?"var("+e+", "+t+")":"var("+e+")"}),i={arrowShadowColor:o("--popper-arrow-shadow-color"),arrowSize:o("--popper-arrow-size","8px"),arrowSizeHalf:o("--popper-arrow-size-half"),arrowBg:o("--popper-arrow-bg"),transformOrigin:o("--popper-transform-origin"),arrowOffset:o("--popper-arrow-offset")};function a(e){return e.includes("top")?"1px 1px 1px 0 var(--popper-arrow-shadow-color)":e.includes("bottom")?"-1px -1px 1px 0 var(--popper-arrow-shadow-color)":e.includes("right")?"-1px 1px 1px 0 var(--popper-arrow-shadow-color)":e.includes("left")?"1px -1px 1px 0 var(--popper-arrow-shadow-color)":void 0}var s={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},u=e=>s[e],c={scroll:!0,resize:!0};function l(e){return"object"===typeof e?{enabled:!0,options:r({},c,e)}:{enabled:e,options:c}}},67273:function(e,t,n){"use strict";n.d(t,{h:function(){return b}});var r=n(67294),o=n(77581);function i(){var e=r.useRef(!1),[t,n]=r.useState(0);return(0,o.z)((()=>{e.current=!0})),r.useCallback((()=>{e.current||n(t+1)}),[t])}var a=n(68327),s=n(84461),u=n(73808),c=n(28500),l=n(73935),d=n(34288);function f(){return(f=Object.assign||function(e){for(var t=1;tr.createElement("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0}},e.children),g=e=>{var{appendToParentPortal:t,children:n}=e,o=r.useRef(null),s=r.useRef(null),u=i(),c=h(),f=(0,d.L)();(0,a.G)((()=>{if(o.current){var e=o.current.ownerDocument,n=t&&null!=c?c:e.body;if(n){s.current=e.createElement("div"),s.current.className=v,n.appendChild(s.current),u();var r=s.current;return()=>{n.contains(r)&&n.removeChild(r)}}}}),[]);var g=null!=f&&f.zIndex?r.createElement(m,{zIndex:null==f?void 0:f.zIndex},n):n;return s.current?(0,l.createPortal)(r.createElement(p,{value:s.current},g),s.current):r.createElement("span",{ref:o})},y=e=>{var{children:t,containerRef:n,appendToParentPortal:o}=e,u=n.current,c=null!=u?u:s.jU?document.body:void 0,d=r.useMemo((()=>{var e=null==u?void 0:u.ownerDocument.createElement("div");return e&&(e.className=v),e}),[u]),f=i();return(0,a.G)((()=>{f()}),[]),(0,a.G)((()=>{if(d&&c)return c.appendChild(d),()=>{c.removeChild(d)}}),[d,c]),c&&d?(0,l.createPortal)(r.createElement(p,{value:o?d:null},t),d):null};function b(e){var{containerRef:t}=e,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["containerRef"]);return t?r.createElement(y,f({containerRef:t},n)):r.createElement(g,n)}b.defaultProps={appendToParentPortal:!0},b.className=v,b.selector=".chakra-portal",u.Ts&&(b.displayName="Portal")},60418:function(e,t,n){"use strict";t.__esModule=!0,t.getValidChildren=function(e){return r.Children.toArray(e).filter((function(e){return r.isValidElement(e)}))};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}},40805:function(e,t,n){"use strict";t.__esModule=!0,t.createContext=function(e){void 0===e&&(e={});var t=e,n=t.strict,o=void 0===n||n,i=t.errorMessage,a=void 0===i?"useContext: `context` is undefined. Seems you forgot to wrap component within the Provider":i,s=t.name,u=r.createContext(void 0);return u.displayName=s,[u.Provider,function e(){var t=r.useContext(u);if(!t&&o){var n=new Error(a);throw n.name="ContextError",null==Error.captureStackTrace||Error.captureStackTrace(n,e),n}return t},u]};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}},19277:function(e,t,n){"use strict";t.__esModule=!0;var r=n(73702);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(40805);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(47412);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var a=n(60418);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||(t[e]=a[e]))}))},73702:function(e,t,n){"use strict";t.__esModule=!0,t.assignRef=o,t.mergeRefs=function(){for(var e=arguments.length,t=new Array(e),n=0;nr.isValidElement(e)))}},72947:function(e,t,n){"use strict";n.d(t,{l:function(){return i}});var r=n(73808);function o(e,t){if(null!=e)if((0,r.mf)(e))e(t);else try{e.current=t}catch(n){throw new Error("Cannot assign value '"+t+"' to ref '"+e+"'")}}function i(){for(var e=arguments.length,t=new Array(e),n=0;n{t.forEach((t=>o(t,e)))}}},40980:function(e,t,n){"use strict";n.d(t,{useTheme:function(){return o.useTheme}});n(62300);var r=n(84806);n.o(r,"useTheme")&&n.d(t,{useTheme:function(){return r.useTheme}});var o=n(11180)},46049:function(e,t,n){"use strict";n.d(t,{Ph:function(){return I}});var r=n(84461),o=n(80658),i=n(94577),a=n(90639),s=n(90063),u=n(2326),c=n(55284),l=n(29676),d=n(89384),f=n(73808),p=n(28500),h=n(72947),v=n(67294);function m(){return(m=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var[y,b]=(0,p.k)({strict:!1,name:"FormControlContext"});var w=(0,s.G)(((e,t)=>{var n=(0,u.j)("Form",e),s=function(e){var{id:t,isRequired:n,isInvalid:s,isDisabled:u,isReadOnly:c}=e,l=g(e,["id","isRequired","isInvalid","isDisabled","isReadOnly"]),d=(0,i.Me)(),f=t||"field-"+d,p=f+"-label",y=f+"-feedback",b=f+"-helptext",[w,x]=v.useState(!1),[_,k]=v.useState(!1),[E,O]=(0,a.k)(),C=v.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),m({id:b},e,{ref:(0,h.l)(t,(e=>{e&&k(!0)}))})}),[b]),T=v.useCallback((function(e,t){var n,o;return void 0===e&&(e={}),void 0===t&&(t=null),m({},e,{ref:t,"data-focus":(0,r.PB)(E),"data-disabled":(0,r.PB)(u),"data-invalid":(0,r.PB)(s),"data-readonly":(0,r.PB)(c),id:null!=(n=e.id)?n:p,htmlFor:null!=(o=e.htmlFor)?o:f})}),[f,u,E,s,c,p]),M=v.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),m({id:y},e,{ref:(0,h.l)(t,(e=>{e&&x(!0)})),"aria-live":"polite"})}),[y]),S=v.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),m({},e,l,{ref:t,role:"group"})}),[l]),P=v.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),m({},e,{ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"})}),[]),j=v.useCallback((()=>{(0,o.A4)(O.on)}),[O]);return{isRequired:!!n,isInvalid:!!s,isReadOnly:!!c,isDisabled:!!u,isFocused:!!E,onFocus:j,onBlur:O.off,hasFeedbackText:w,setHasFeedbackText:x,hasHelpText:_,setHasHelpText:k,id:f,labelId:p,feedbackId:y,helpTextId:b,htmlProps:l,getHelpTextProps:C,getErrorMessageProps:M,getRootProps:S,getLabelProps:T,getRequiredIndicatorProps:P}}((0,c.Lr)(e)),{getRootProps:f}=s,p=g(s,["getRootProps","htmlProps"]),b=(0,r.cx)("chakra-form-control",e.className),w=v.useMemo((()=>p),[p]);return v.createElement(y,{value:w},v.createElement(l.Fo,{value:n},v.createElement(d.m$.div,m({},f({},t),{className:b,__css:{width:"100%",position:"relative"}}))))}));f.Ts&&(w.displayName="FormControl");var x=(0,s.G)(((e,t)=>{var n=b(),o=(0,l.yK)(),i=(0,r.cx)("chakra-form__helper-text",e.className);return v.createElement(d.m$.div,m({},null==n?void 0:n.getHelpTextProps(e,t),{__css:o.helperText,className:i}))}));function _(){return(_=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function E(e){var t=function(e){var t,n,r,i=b(),{id:a,disabled:s,readOnly:u,required:c,isRequired:l,isInvalid:d,isReadOnly:f,isDisabled:p,onFocus:h,onBlur:v}=e,m=k(e,["id","disabled","readOnly","required","isRequired","isInvalid","isReadOnly","isDisabled","onFocus","onBlur"]),g=[];null!=i&&i.hasFeedbackText&&null!=i&&i.isInvalid&&g.push(i.feedbackId);null!=i&&i.hasHelpText&&g.push(i.helpTextId);return _({},m,{"aria-describedby":g.join(" ")||void 0,id:null!=a?a:null==i?void 0:i.id,isDisabled:null!=(t=null!=s?s:p)?t:null==i?void 0:i.isDisabled,isReadOnly:null!=(n=null!=u?u:f)?n:null==i?void 0:i.isReadOnly,isRequired:null!=(r=null!=c?c:l)?r:null==i?void 0:i.isRequired,isInvalid:null!=d?d:null==i?void 0:i.isInvalid,onFocus:(0,o.v0)(null==i?void 0:i.onFocus,h),onBlur:(0,o.v0)(null==i?void 0:i.onBlur,v)})}(e),{isDisabled:n,isInvalid:i,isReadOnly:a,isRequired:s}=t;return _({},k(t,["isDisabled","isInvalid","isReadOnly","isRequired"]),{disabled:n,readOnly:a,required:s,"aria-invalid":(0,r.Qm)(i),"aria-required":(0,r.Qm)(s),"aria-readonly":(0,r.Qm)(a)})}f.Ts&&(x.displayName="FormHelperText");var O=n(9421),C=n(4651),T=n(38554),M=n.n(T);function S(){return(S=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var j=(0,s.G)(((e,t)=>{var{children:n,placeholder:o,className:i}=e,a=E(P(e,["children","placeholder","className"]));return v.createElement(d.m$.select,S({},a,{ref:t,className:(0,r.cx)("chakra-select",i)}),o&&v.createElement("option",{value:""},o),n)}));f.Ts&&(j.displayName="SelectField");var I=(0,s.G)(((e,t)=>{var n=(0,u.j)("Select",e),r=(0,c.Lr)(e),{rootProps:o,placeholder:i,icon:a,color:s,height:l,h:f,minH:p,minHeight:h,iconColor:m,iconSize:g}=r,y=P(r,["rootProps","placeholder","icon","color","height","h","minH","minHeight","iconColor","iconSize","isFullWidth"]),[b,w]=(0,C.Vl)(y,O.layoutPropNames),x={width:"100%",height:"fit-content",position:"relative",color:s},_=M()({},n.field,{paddingEnd:"2rem",_focus:{zIndex:"unset"}});return v.createElement(d.m$.div,S({className:"chakra-select__wrapper",__css:x},b,o),v.createElement(j,S({ref:t,height:null!=f?f:l,minH:null!=p?p:h,placeholder:i},w,{__css:_}),e.children),v.createElement(D,S({"data-disabled":e.isDisabled},(m||s)&&{color:m||s},{__css:n.icon},g&&{fontSize:g}),a))}));f.Ts&&(I.displayName="Select");var A=e=>v.createElement("svg",S({viewBox:"0 0 24 24"},e),v.createElement("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})),R=(0,d.m$)("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),D=e=>{var{children:t=v.createElement(A,null)}=e,n=P(e,["children"]),r=v.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return v.createElement(R,S({},n,{className:"chakra-select__icon-wrapper"}),v.isValidElement(t)?r:null)};f.Ts&&(D.displayName="SelectIcon")},95818:function(e,t,n){"use strict";n.d(t,{iR:function(){return ne},Ms:function(){return ie},gs:function(){return re},Uj:function(){return oe}});var r=n(90063),o=n(2326),i=n(55284),a=n(29676),s=n(89384),u=n(73808),c=n(84461),l=n(28500),d=n(67294),f=n(10762),p=n(51034),h=n(90639);var v=n(94577),m=n(78244),g=n(68327);var y=n(22653),b=n(9839);function w(e){return!!e.touches}var x={pageX:0,pageY:0};function _(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||x;return{x:n[t+"X"],y:n[t+"Y"]}}function k(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function E(e,t){return void 0===t&&(t="page"),{point:w(e)?_(e,t):k(e,t)}}var O=function(e,t){void 0===t&&(t=!1);var n,r=t=>e(t,E(t));return t?(n=r,e=>{var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},C={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},T={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function M(e){return c.jU&&null===window.onpointerdown?e:c.jU&&null===window.ontouchstart?T[e]:c.jU&&null===window.onmousedown?C[e]:e}function S(e,t,n,r){return(0,c.EV)(e,M(t),O(n,"pointerdown"===t),r)}var P=n(80658);function j(){return(j=Object.assign||function(e){for(var t=1;t{if(this.lastEvent&&this.lastEventInfo){var e=N(this.lastEventInfo,this.history),t=null!==this.startEvent,n=(0,P.TE)(e.offset,{x:0,y:0})>=this.threshold;if(t||n){var{timestamp:r}=(0,b.$B)();this.history.push(j({},e.point,{timestamp:r}));var{onStart:o,onMove:i}=this.handlers;t||(null==o||o(this.lastEvent,e),this.startEvent=this.lastEvent),null==i||i(this.lastEvent,e)}}})),I(this,"onPointerMove",((e,t)=>{this.lastEvent=e,this.lastEventInfo=t,function(e){return"undefined"!==typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}(e)&&0===e.buttons?this.onPointerUp(e,t):b.ZP.update(this.updatePoint,!0)})),I(this,"onPointerUp",((e,t)=>{var n=N(t,this.history),{onEnd:r,onSessionEnd:o}=this.handlers;null==o||o(e,n),this.end(),r&&this.startEvent&&(null==r||r(e,n))})),!(w(r=e)&&r.touches.length>1)){var r;this.handlers=t,n&&(this.threshold=n),e.stopPropagation(),e.preventDefault();var o=E(e),{timestamp:i}=(0,b.$B)();this.history=[j({},o.point,{timestamp:i})];var{onSessionStart:a}=t;null==a||a(e,N(o,this.history)),this.removeListeners=(0,P.zG)(S(window,"pointermove",this.onPointerMove),S(window,"pointerup",this.onPointerUp),S(window,"pointercancel",this.onPointerUp))}}updateHandlers(e){this.handlers=e}end(){var e;null==(e=this.removeListeners)||e.call(this),b.qY.update(this.updatePoint)}}function R(e,t){return{x:e.x-t.x,y:e.y-t.y}}function D(e){return e[0]}function L(e){return e[e.length-1]}function N(e,t){return{point:e.point,delta:R(e.point,L(t)),offset:R(e.point,D(t)),velocity:B(t,.1)}}function B(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=function(e){return e[e.length-1]}(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>1e3*t));)n--;if(!r)return{x:0,y:0};var i=(o.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};var a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}var z=n(34941);var F=n(77581);function H(e,t){var n,r,o,i,{onPan:a,onPanStart:s,onPanEnd:u,onPanSessionStart:c,onPanSessionEnd:l}=t,f=Boolean(a||s||u||c||l),p=(0,d.useRef)(null),h={onSessionStart:c,onSessionEnd:l,onStart:s,onMove:a,onEnd(e,t){p.current=null,null==u||u(e,t)}};(0,d.useEffect)((()=>{var e;null==(e=p.current)||e.updateHandlers(h)})),n=()=>e.current,r="pointerdown",o=f?function(e){p.current=new A(e,h)}:P.ZT,(0,z.O)(M(r),O(o,"pointerdown"===r),n,i),(0,F.z)((()=>{var e;null==(e=p.current)||e.end(),p.current=null}))}var V=n(72947);Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER;function W(e,t){var n=function(e){var t=parseFloat(e);return(0,u.iy)(t)?0:t}(e),r=10**(null!=t?t:10);return n=Math.round(n*r)/r,t?n.toFixed(t):n.toString()}function U(e,t,n){return 100*(e-t)/(n-t)}function G(e,t,n){return W(Math.round((e-t)/n)*n+t,function(e){if(!Number.isFinite(e))return 0;for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}(n))}function q(e,t,n){return null==e?e:((0,P.ZK)({condition:n=0||(o[n]=e[n]);return o}(e,["min","max","onChange","value","defaultValue","isReversed","orientation","id","isDisabled","isReadOnly","onChangeStart","onChangeEnd","step","getAriaValueText","aria-valuetext","aria-label","aria-labelledby","name","focusThumbOnChange"]),I=(0,f.W)(x),A=(0,f.W)(_),R=(0,f.W)(E),[D,L]=(0,p.T)({value:i,defaultValue:null!=a?a:Q(n,r),onChange:o}),[N,B]=(0,h.k)(),z=function(e){var t=(0,d.useRef)();return(0,d.useEffect)((()=>{t.current=e}),[e]),t.current}(N),[F,W]=(0,h.k)(),Y=(0,d.useRef)(null),J=!(b||w),ee=q(D,n,r),te=function(e){var t=d.useRef(null);return t.current=e,t}(ee),ne=(0,d.useRef)(te.current),re=U(s?r-ee+n:ee,n,r),oe="vertical"===u,ie=(0,d.useRef)(null),ae=(0,d.useRef)(null),se=(0,d.useRef)(null),[ue,ce]=(0,v.ZS)(l,"slider-thumb","slider-track"),le=(0,d.useCallback)((e=>{var t,o;if(ie.current){Y.current="pointer";var i=(0,m.getBox)(ie.current).borderBox,{clientX:a,clientY:u}=null!=(t=null==(o=e.touches)?void 0:o[0])?t:e,c=(oe?i.bottom-u:a-i.left)/(oe?i.height:i.width);s&&(c=1-c);var l=function(e,t,n){return(n-t)*e+t}(c,n,r);return k&&(l=parseFloat(G(l,n,k))),l=q(l,n,r)}}),[oe,s,r,n,k]),de=(r-n)/10,fe=k||(r-n)/100,pe=(0,d.useCallback)((e=>{J&&(e=q(e=parseFloat(G(e,n,fe)),n,r),L(e))}),[fe,r,n,L,J]),he=(0,d.useMemo)((()=>({stepUp:function(e){void 0===e&&(e=fe),pe(s?ee-e:ee+e)},stepDown:function(e){void 0===e&&(e=fe),pe(s?ee+e:ee-e)},reset:()=>pe(a||0),stepTo:e=>pe(e)})),[pe,s,ee,fe,a]),ve=(0,d.useCallback)((e=>{var t={ArrowRight:()=>he.stepUp(),ArrowUp:()=>he.stepUp(),ArrowLeft:()=>he.stepDown(),ArrowDown:()=>he.stepDown(),PageUp:()=>he.stepUp(de),PageDown:()=>he.stepDown(de),Home:()=>pe(n),End:()=>pe(r)}[(0,c.uh)(e)];t&&(e.preventDefault(),e.stopPropagation(),t(e),Y.current="keyboard")}),[he,pe,r,n,de]),me=null!=(t=null==R?void 0:R(ee))?t:O,ge=function(e,t){var[n,r]=d.useState(null),o=d.useRef();return(0,g.G)((()=>{if(e.current){var n=e.current;return i(),t&&(window.addEventListener("resize",i),window.addEventListener("scroll",i)),()=>{t&&(window.removeEventListener("resize",i),window.removeEventListener("scroll",i)),o.current&&cancelAnimationFrame(o.current)}}function i(){o.current=requestAnimationFrame((()=>{var e=(0,m.getBox)(n);r(e)}))}}),[t]),n}(ae),{thumbStyle:ye,rootStyle:be,trackStyle:we,innerTrackStyle:xe}=(0,d.useMemo)((()=>{var e,t=null!=(e=null==ge?void 0:ge.borderBox)?e:{width:0,height:0};return function(e){var{orientation:t,trackPercent:n,thumbRect:r,isReversed:o}=e,i=Z({position:"absolute",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",touchAction:"none"},$({orientation:t,vertical:{bottom:"calc("+n+"% - "+r.height/2+"px)"},horizontal:{left:"calc("+n+"% - "+r.width/2+"px)"}})),a=Z({position:"relative",touchAction:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",userSelect:"none",outline:0},$({orientation:t,vertical:{paddingLeft:r.width/2,paddingRight:r.width/2},horizontal:{paddingTop:r.height/2,paddingBottom:r.height/2}})),s=Z({position:"absolute"},$({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",height:"100%"},horizontal:{top:"50%",transform:"translateY(-50%)",width:"100%"}}));return{trackStyle:s,innerTrackStyle:Z({},s,$({orientation:t,vertical:o?{height:100-n+"%",top:0}:{height:n+"%",bottom:0},horizontal:o?{width:100-n+"%",right:0}:{width:n+"%",left:0}})),rootStyle:a,thumbStyle:i}}({isReversed:s,orientation:u,thumbRect:t,trackPercent:re})}),[s,u,null==ge?void 0:ge.borderBox,re]),_e=(0,d.useCallback)((()=>{ae.current&&S&&setTimeout((()=>(0,K.T)(ae.current)))}),[S]);(0,y.r)((()=>{_e(),"keyboard"===Y.current&&(null==_||_(te.current))}),[ee,_]);var ke=e=>{var t=le(e);null!=t&&t!==te.current&&L(t)};H(se,{onPanSessionStart(e){J&&ke(e)},onPanSessionEnd(){J&&(z||ne.current===te.current||(null==A||A(te.current),ne.current=te.current))},onPanStart(){J&&(B.on(),null==I||I(te.current))},onPan(e){J&&ke(e)},onPanEnd(){J&&(B.off(),null==A||A(te.current))}});var Ee=(0,d.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),X({},e,j,{ref:(0,V.l)(t,se),tabIndex:-1,"aria-disabled":(0,c.Qm)(b),"data-focused":(0,c.PB)(F),style:X({},e.style,be)})}),[j,b,F,be]),Oe=(0,d.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),X({},e,{ref:(0,V.l)(t,ie),id:ce,"data-disabled":(0,c.PB)(b),style:X({},e.style,we)})}),[b,ce,we]),Ce=(0,d.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),X({},e,{ref:t,style:X({},e.style,xe)})}),[xe]),Te=(0,d.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),X({},e,{ref:(0,V.l)(t,ae),role:"slider",tabIndex:J?0:void 0,id:ue,"data-active":(0,c.PB)(N),"aria-valuetext":me,"aria-valuemin":n,"aria-valuemax":r,"aria-valuenow":ee,"aria-orientation":u,"aria-disabled":(0,c.Qm)(b),"aria-readonly":(0,c.Qm)(w),"aria-label":C,"aria-labelledby":C?void 0:T,style:X({},e.style,ye),onKeyDown:(0,P.v0)(e.onKeyDown,ve),onFocus:(0,P.v0)(e.onFocus,W.on),onBlur:(0,P.v0)(e.onBlur,W.off)})}),[C,T,b,N,w,J,r,n,ve,u,W.off,W.on,ue,ye,ee,me]),Me=(0,d.useCallback)((function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var o=!(e.valuer),i=ee>=e.value,a=U(e.value,n,r),l=X({position:"absolute",pointerEvents:"none"},function(e){var{orientation:t,vertical:n,horizontal:r}=e;return"vertical"===t?n:r}({orientation:u,vertical:{bottom:s?100-a+"%":a+"%"},horizontal:{left:s?100-a+"%":a+"%"}}));return X({},e,{ref:t,role:"presentation","aria-hidden":!0,"data-disabled":(0,c.PB)(b),"data-invalid":(0,c.PB)(!o),"data-highlighted":(0,c.PB)(i),style:X({},e.style,l)})}),[b,s,r,n,u,ee]),Se=(0,d.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),X({},e,{ref:t,type:"hidden",value:ee,name:M})}),[M,ee]);return{state:{value:ee,isFocused:F,isDragging:N},actions:he,getRootProps:Ee,getTrackProps:Oe,getInnerTrackProps:Ce,getThumbProps:Te,getMarkerProps:Me,getInputProps:Se}}function Q(e,t){return t"}),ne=(0,r.G)(((e,t)=>{var n=(0,o.j)("Slider",e),r=Y((0,i.Lr)(e)),{getInputProps:u,getRootProps:c}=r,l=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(r,["getInputProps","getRootProps"]),f=c(),p=u({},t),h=J({display:"inline-block",position:"relative",cursor:"pointer"},n.container);return d.createElement(ee,{value:l},d.createElement(a.Fo,{value:n},d.createElement(s.m$.div,J({},f,{className:"chakra-slider",__css:h}),e.children,d.createElement("input",p))))}));ne.defaultProps={orientation:"horizontal"},u.Ts&&(ne.displayName="Slider");var re=(0,r.G)(((e,t)=>{var{getThumbProps:n}=te(),r=J({display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0},(0,a.yK)().thumb),o=n(e,t);return d.createElement(s.m$.div,J({},o,{className:(0,c.cx)("chakra-slider__thumb",e.className),__css:r}))}));u.Ts&&(re.displayName="SliderThumb");var oe=(0,r.G)(((e,t)=>{var{getTrackProps:n}=te(),r=J({overflow:"hidden"},(0,a.yK)().track),o=n(e,t);return d.createElement(s.m$.div,J({},o,{className:(0,c.cx)("chakra-slider__track",e.className),__css:r}))}));u.Ts&&(oe.displayName="SliderTrack");var ie=(0,r.G)(((e,t)=>{var{getInnerTrackProps:n}=te(),r=J({width:"inherit",height:"inherit"},(0,a.yK)().filledTrack),o=n(e,t);return d.createElement(s.m$.div,J({},o,{className:"chakra-slider__filled-track",__css:r}))}));u.Ts&&(ie.displayName="SliderFilledTrack");var ae=(0,r.G)(((e,t)=>{var{getMarkerProps:n}=te(),r=n(e,t);return d.createElement(s.m$.div,J({},r,{className:(0,c.cx)("chakra-slider__marker",e.className)}))}));u.Ts&&(ae.displayName="SliderMark")},90716:function(e,t,n){"use strict";t.__esModule=!0;var r=n(55478);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}))},55478:function(e,t,n){"use strict";t.__esModule=!0,t.Spinner=void 0;var r=n(48121),o=n(66751),i=n(22944),a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(s,["label","thickness","speed","emptyColor","className"]),w=(0,o.cx)("chakra-spinner",y),x=u({display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:p,borderBottomColor:g,borderLeftColor:g,animation:c+" "+v+" linear infinite"},n);return a.createElement(r.chakra.div,u({ref:t,__css:x,className:w},b),d&&a.createElement(i.VisuallyHidden,null,d))}));t.Spinner=l,o.__DEV__&&(l.displayName="Spinner")},56693:function(e,t,n){"use strict";t.__esModule=!0,t.background=void 0;var r=n(77050),o={background:r.t.colors("background"),backgroundColor:r.t.colors("backgroundColor"),backgroundImage:r.t.propT("backgroundImage",r.transforms.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:r.transforms.bgClip},bgSize:r.t.prop("backgroundSize"),bgPosition:r.t.prop("backgroundPosition"),bg:r.t.colors("background"),bgColor:r.t.colors("backgroundColor"),bgPos:r.t.prop("backgroundPosition"),bgRepeat:r.t.prop("backgroundRepeat"),bgAttachment:r.t.prop("backgroundAttachment"),bgGradient:r.t.propT("backgroundImage",r.transforms.gradient),bgClip:{transform:r.transforms.bgClip}};t.background=o,Object.assign(o,{bgImage:o.backgroundImage,bgImg:o.backgroundImage})},24689:function(e,t,n){"use strict";t.__esModule=!0,t.border=void 0;var r=n(77050),o={border:r.t.borders("border"),borderWidth:r.t.borderWidths("borderWidth"),borderStyle:r.t.borderStyles("borderStyle"),borderColor:r.t.colors("borderColor"),borderRadius:r.t.radii("borderRadius"),borderTop:r.t.borders("borderTop"),borderBlockStart:r.t.borders("borderBlockStart"),borderTopLeftRadius:r.t.radii("borderTopLeftRadius"),borderStartStartRadius:r.t.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:r.t.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:r.t.radii("borderTopRightRadius"),borderStartEndRadius:r.t.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:r.t.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:r.t.borders("borderRight"),borderInlineEnd:r.t.borders("borderInlineEnd"),borderBottom:r.t.borders("borderBottom"),borderBlockEnd:r.t.borders("borderBlockEnd"),borderBottomLeftRadius:r.t.radii("borderBottomLeftRadius"),borderBottomRightRadius:r.t.radii("borderBottomRightRadius"),borderLeft:r.t.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:r.t.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:r.t.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:r.t.borders(["borderLeft","borderRight"]),borderInline:r.t.borders("borderInline"),borderY:r.t.borders(["borderTop","borderBottom"]),borderBlock:r.t.borders("borderBlock"),borderTopWidth:r.t.borderWidths("borderTopWidth"),borderBlockStartWidth:r.t.borderWidths("borderBlockStartWidth"),borderTopColor:r.t.colors("borderTopColor"),borderBlockStartColor:r.t.colors("borderBlockStartColor"),borderTopStyle:r.t.borderStyles("borderTopStyle"),borderBlockStartStyle:r.t.borderStyles("borderBlockStartStyle"),borderBottomWidth:r.t.borderWidths("borderBottomWidth"),borderBlockEndWidth:r.t.borderWidths("borderBlockEndWidth"),borderBottomColor:r.t.colors("borderBottomColor"),borderBlockEndColor:r.t.colors("borderBlockEndColor"),borderBottomStyle:r.t.borderStyles("borderBottomStyle"),borderBlockEndStyle:r.t.borderStyles("borderBlockEndStyle"),borderLeftWidth:r.t.borderWidths("borderLeftWidth"),borderInlineStartWidth:r.t.borderWidths("borderInlineStartWidth"),borderLeftColor:r.t.colors("borderLeftColor"),borderInlineStartColor:r.t.colors("borderInlineStartColor"),borderLeftStyle:r.t.borderStyles("borderLeftStyle"),borderInlineStartStyle:r.t.borderStyles("borderInlineStartStyle"),borderRightWidth:r.t.borderWidths("borderRightWidth"),borderInlineEndWidth:r.t.borderWidths("borderInlineEndWidth"),borderRightColor:r.t.colors("borderRightColor"),borderInlineEndColor:r.t.colors("borderInlineEndColor"),borderRightStyle:r.t.borderStyles("borderRightStyle"),borderInlineEndStyle:r.t.borderStyles("borderInlineEndStyle"),borderTopRadius:r.t.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:r.t.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:r.t.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:r.t.radii(["borderTopRightRadius","borderBottomRightRadius"])};t.border=o,Object.assign(o,{rounded:o.borderRadius,roundedTop:o.borderTopRadius,roundedTopLeft:o.borderTopLeftRadius,roundedTopRight:o.borderTopRightRadius,roundedTopStart:o.borderStartStartRadius,roundedTopEnd:o.borderStartEndRadius,roundedBottom:o.borderBottomRadius,roundedBottomLeft:o.borderBottomLeftRadius,roundedBottomRight:o.borderBottomRightRadius,roundedBottomStart:o.borderEndStartRadius,roundedBottomEnd:o.borderEndEndRadius,roundedLeft:o.borderLeftRadius,roundedRight:o.borderRightRadius,roundedStart:o.borderInlineStartRadius,roundedEnd:o.borderInlineEndRadius,borderStart:o.borderInlineStart,borderEnd:o.borderInlineEnd,borderTopStartRadius:o.borderStartStartRadius,borderTopEndRadius:o.borderStartEndRadius,borderBottomStartRadius:o.borderEndStartRadius,borderBottomEndRadius:o.borderEndEndRadius,borderStartRadius:o.borderInlineStartRadius,borderEndRadius:o.borderInlineEndRadius,borderStartWidth:o.borderInlineStartWidth,borderEndWidth:o.borderInlineEndWidth,borderStartColor:o.borderInlineStartColor,borderEndColor:o.borderInlineEndColor,borderStartStyle:o.borderInlineStartStyle,borderEndStyle:o.borderInlineEndStyle})},4561:function(e,t,n){"use strict";t.__esModule=!0,t.color=void 0;var r=n(77050),o={color:r.t.colors("color"),textColor:r.t.colors("color"),fill:r.t.colors("fill"),stroke:r.t.colors("stroke")};t.color=o},93103:function(e,t,n){"use strict";t.__esModule=!0,t.effect=void 0;var r=n(77050),o={boxShadow:r.t.shadows("boxShadow"),mixBlendMode:!0,blendMode:r.t.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:r.t.prop("backgroundBlendMode"),opacity:!0};t.effect=o,Object.assign(o,{shadow:o.boxShadow})},94015:function(e,t,n){"use strict";t.__esModule=!0,t.filter=void 0;var r=n(77050),o={filter:{transform:r.transforms.filter},blur:r.t.blur("--chakra-blur"),brightness:r.t.propT("--chakra-brightness",r.transforms.brightness),contrast:r.t.propT("--chakra-contrast",r.transforms.contrast),hueRotate:r.t.degreeT("--chakra-hue-rotate"),invert:r.t.propT("--chakra-invert",r.transforms.invert),saturate:r.t.propT("--chakra-saturate",r.transforms.saturate),dropShadow:r.t.propT("--chakra-drop-shadow",r.transforms.dropShadow),backdropFilter:{transform:r.transforms.backdropFilter},backdropBlur:r.t.blur("--chakra-backdrop-blur"),backdropBrightness:r.t.propT("--chakra-backdrop-brightness",r.transforms.brightness),backdropContrast:r.t.propT("--chakra-backdrop-contrast",r.transforms.contrast),backdropHueRotate:r.t.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:r.t.propT("--chakra-backdrop-invert",r.transforms.invert),backdropSaturate:r.t.propT("--chakra-backdrop-saturate",r.transforms.saturate)};t.filter=o},17608:function(e,t,n){"use strict";t.__esModule=!0,t.flexbox=void 0;var r=n(77050),o=n(41629),i=n(23744),a={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:r.transforms.flexDirection},experimental_spaceX:{static:i.spaceXTemplate,transform:(0,o.createTransform)({scale:"space",transform:function(e){return null!==e?{"--chakra-space-x":e}:null}})},experimental_spaceY:{static:i.spaceYTemplate,transform:(0,o.createTransform)({scale:"space",transform:function(e){return null!=e?{"--chakra-space-y":e}:null}})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:r.t.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0};t.flexbox=a,Object.assign(a,{flexDir:a.flexDirection})},41474:function(e,t,n){"use strict";t.__esModule=!0,t.grid=void 0;var r=n(77050),o={gridGap:r.t.space("gridGap"),gridColumnGap:r.t.space("gridColumnGap"),gridRowGap:r.t.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0};t.grid=o},10147:function(e,t,n){"use strict";t.__esModule=!0;var r=n(56693);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(24689);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}));var i=n(4561);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))}));var a=n(93103);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||(t[e]=a[e]))}));var s=n(94015);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))}));var u=n(17608);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||(t[e]=u[e]))}));var c=n(41474);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||(t[e]=c[e]))}));var l=n(54497);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||(t[e]=l[e]))}));var d=n(24569);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||(t[e]=d[e]))}));var f=n(59472);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||(t[e]=f[e]))}));var p=n(51237);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||(t[e]=p[e]))}));var h=n(90130);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||(t[e]=h[e]))}));var v=n(39650);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===v[e]||(t[e]=v[e]))}));var m=n(19309);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===m[e]||(t[e]=m[e]))}));var g=n(86705);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===g[e]||(t[e]=g[e]))}));var y=n(75438);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===y[e]||(t[e]=y[e]))}));var b=n(63646);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===b[e]||(t[e]=b[e]))}));var w=n(58275);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===w[e]||(t[e]=w[e]))}))},54497:function(e,t,n){"use strict";t.__esModule=!0,t.interactivity=void 0;var r=n(77050),o={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:r.transforms.outline},outlineOffset:!0,outlineColor:r.t.colors("outlineColor")};t.interactivity=o},24569:function(e,t,n){"use strict";t.__esModule=!0,t.layout=void 0;var r=n(77050),o={width:r.t.sizesT("width"),inlineSize:r.t.sizesT("inlineSize"),height:r.t.sizes("height"),blockSize:r.t.sizes("blockSize"),boxSize:r.t.sizes(["width","height"]),minWidth:r.t.sizes("minWidth"),minInlineSize:r.t.sizes("minInlineSize"),minHeight:r.t.sizes("minHeight"),minBlockSize:r.t.sizes("minBlockSize"),maxWidth:r.t.sizes("maxWidth"),maxInlineSize:r.t.sizes("maxInlineSize"),maxHeight:r.t.sizes("maxHeight"),maxBlockSize:r.t.sizes("maxBlockSize"),d:r.t.prop("display"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:r.t.propT("float",r.transforms.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};t.layout=o,Object.assign(o,{w:o.width,h:o.height,minW:o.minWidth,maxW:o.maxWidth,minH:o.minHeight,maxH:o.maxHeight,overscroll:o.overscrollBehavior,overscrollX:o.overscrollBehaviorX,overscrollY:o.overscrollBehaviorY})},59472:function(e,t,n){"use strict";t.__esModule=!0,t.list=void 0;var r=n(77050),o={listStyleType:!0,listStylePosition:!0,listStylePos:r.t.prop("listStylePosition"),listStyleImage:!0,listStyleImg:r.t.prop("listStyleImage")};t.list=o},51237:function(e,t,n){"use strict";t.__esModule=!0,t.others=void 0;var r=n(66751),o={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},i={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},a=function(e,t,n){var o={},i=(0,r.memoizedGet)(e,t,{});for(var a in i){a in n&&null!=n[a]||(o[a]=i[a])}return o},s={srOnly:{transform:function(e){return!0===e?o:"focusable"===e?i:{}}},layerStyle:{processResult:!0,transform:function(e,t,n){return a(t,"layerStyles."+e,n)}},textStyle:{processResult:!0,transform:function(e,t,n){return a(t,"textStyles."+e,n)}},apply:{processResult:!0,transform:function(e,t,n){return a(t,e,n)}}};t.others=s},90130:function(e,t,n){"use strict";t.__esModule=!0,t.position=void 0;var r=n(77050),o={position:!0,pos:r.t.prop("position"),zIndex:r.t.prop("zIndex","zIndices"),inset:r.t.spaceT(["top","right","bottom","left"]),insetX:r.t.spaceT(["left","right"]),insetInline:r.t.spaceT("insetInline"),insetY:r.t.spaceT(["top","bottom"]),insetBlock:r.t.spaceT("insetBlock"),top:r.t.spaceT("top"),insetBlockStart:r.t.spaceT("insetBlockStart"),bottom:r.t.spaceT("bottom"),insetBlockEnd:r.t.spaceT("insetBlockEnd"),left:r.t.spaceT("left"),insetInlineStart:r.t.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:r.t.spaceT("right"),insetInlineEnd:r.t.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};t.position=o,Object.assign(o,{insetStart:o.insetInlineStart,insetEnd:o.insetInlineEnd})},39650:function(e,t,n){"use strict";t.__esModule=!0,t.ring=void 0;var r=n(77050),o={ring:{transform:r.transforms.ring},ringColor:r.t.colors("--chakra-ring-color"),ringOffset:r.t.prop("--chakra-ring-offset-width"),ringOffsetColor:r.t.colors("--chakra-ring-offset-color"),ringInset:r.t.prop("--chakra-ring-inset")};t.ring=o},19309:function(e,t,n){"use strict";t.__esModule=!0,t.space=void 0;var r=n(77050),o={margin:r.t.spaceT("margin"),marginTop:r.t.spaceT("marginTop"),marginBlockStart:r.t.spaceT("marginBlockStart"),marginRight:r.t.spaceT("marginRight"),marginInlineEnd:r.t.spaceT("marginInlineEnd"),marginBottom:r.t.spaceT("marginBottom"),marginBlockEnd:r.t.spaceT("marginBlockEnd"),marginLeft:r.t.spaceT("marginLeft"),marginInlineStart:r.t.spaceT("marginInlineStart"),marginX:r.t.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:r.t.spaceT("marginInline"),marginY:r.t.spaceT(["marginTop","marginBottom"]),marginBlock:r.t.spaceT("marginBlock"),padding:r.t.space("padding"),paddingTop:r.t.space("paddingTop"),paddingBlockStart:r.t.space("paddingBlockStart"),paddingRight:r.t.space("paddingRight"),paddingBottom:r.t.space("paddingBottom"),paddingBlockEnd:r.t.space("paddingBlockEnd"),paddingLeft:r.t.space("paddingLeft"),paddingInlineStart:r.t.space("paddingInlineStart"),paddingInlineEnd:r.t.space("paddingInlineEnd"),paddingX:r.t.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:r.t.space("paddingInline"),paddingY:r.t.space(["paddingTop","paddingBottom"]),paddingBlock:r.t.space("paddingBlock")};t.space=o,Object.assign(o,{m:o.margin,mt:o.marginTop,mr:o.marginRight,me:o.marginInlineEnd,marginEnd:o.marginInlineEnd,mb:o.marginBottom,ml:o.marginLeft,ms:o.marginInlineStart,marginStart:o.marginInlineStart,mx:o.marginX,my:o.marginY,p:o.padding,pt:o.paddingTop,py:o.paddingY,px:o.paddingX,pb:o.paddingBottom,pl:o.paddingLeft,ps:o.paddingInlineStart,paddingStart:o.paddingInlineStart,pr:o.paddingRight,pe:o.paddingInlineEnd,paddingEnd:o.paddingInlineEnd})},86705:function(e,t,n){"use strict";t.__esModule=!0,t.textDecoration=void 0;var r=n(77050),o={textDecorationColor:r.t.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:r.t.shadows("textShadow")};t.textDecoration=o},75438:function(e,t,n){"use strict";t.__esModule=!0,t.transform=void 0;var r=n(77050),o={clipPath:!0,transform:r.t.propT("transform",r.transforms.transform),transformOrigin:!0,translateX:r.t.spaceT("--chakra-translate-x"),translateY:r.t.spaceT("--chakra-translate-y"),skewX:r.t.degreeT("--chakra-skew-x"),skewY:r.t.degreeT("--chakra-skew-y"),scaleX:r.t.prop("--chakra-scale-x"),scaleY:r.t.prop("--chakra-scale-y"),scale:r.t.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:r.t.degreeT("--chakra-rotate")};t.transform=o},63646:function(e,t,n){"use strict";t.__esModule=!0,t.transition=void 0;var r=n(77050),o={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:r.t.prop("transitionDuration","transition.duration"),transitionProperty:r.t.prop("transitionProperty","transition.property"),transitionTimingFunction:r.t.prop("transitionTimingFunction","transition.easing")};t.transition=o},58275:function(e,t,n){"use strict";t.__esModule=!0,t.typography=void 0;var r=n(77050),o={fontFamily:r.t.prop("fontFamily","fonts"),fontSize:r.t.prop("fontSize","fontSizes",r.transforms.px),fontWeight:r.t.prop("fontWeight","fontWeights"),lineHeight:r.t.prop("lineHeight","lineHeights"),letterSpacing:r.t.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"},isTruncated:{transform:function(e){if(!0===e)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}}};t.typography=o},38986:function(e,t,n){"use strict";t.__esModule=!0,t.calc=void 0;var r=n(66751);function o(e){return(0,r.isObject)(e)&&e.reference?e.reference:String(e)}var i=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(o[n]=e[n]);return o}(e,["__cssMap","__cssVars","__breakpoints"])};var r=n(66751);var o=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"]},51898:function(e,t,n){"use strict";t.__esModule=!0,t.toCSSVar=function(e){var t,n=(0,i.omitVars)(e),s=(0,i.extractTokens)(n),u=null==(t=n.config)?void 0:t.cssVarPrefix,c=(0,o.createThemeVars)(s,{cssVarPrefix:u}),l=c.cssMap,d=c.cssVars;return Object.assign(n,{__cssVars:a({},{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},d),__cssMap:l,__breakpoints:(0,r.analyzeBreakpoints)(n.breakpoints)}),n};var r=n(66751),o=n(98179),i=n(88708);function a(){return(a=Object.assign||function(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?t-1:0),r=1;r]+)>/g,(function(e,t){return"$"+n[t]})))}if("function"===typeof t){var r=this;return a[Symbol.replace].call(this,e,(function(){var e=[];return e.push.apply(e,arguments),"object"!==typeof e[e.length-1]&&e.push(c(e,r)),t.apply(this,e)}))}return a[Symbol.replace].call(this,e,t)},n.apply(this,arguments)}function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}function o(e){var t="function"===typeof Map?new Map:void 0;return(o=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return i(e,arguments,u(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,e)})(e)}function i(e,t,n){return(i=a()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&s(o,n.prototype),o}).apply(null,arguments)}function a(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}t.__esModule=!0,t.parseGradient=p,t.gradientTransform=t.globalSet=void 0;var c={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},l=new Set(Object.values(c)),d=new Set(["none","-moz-initial","inherit","initial","revert","unset"]);t.globalSet=d;var f=function(e){return e.trim()};function p(e,t){var r,o;if(null==e||d.has(e))return e;var i=null!=(r=null==(o=n(/(^[\x2DA-Za-z]+)\(((.*))\)/g,{type:1,values:2}).exec(e))?void 0:o.groups)?r:{},a=i.type,s=i.values;if(!a||!s)return e;var u=a.includes("-gradient")?a:a+"-gradient",p=s.split(",").map(f).filter(Boolean),h=p[0],v=p.slice(1);if(0===(null==v?void 0:v.length))return e;var m=h in c?c[h]:h;return v.unshift(m),u+"("+v.map((function(e){if(l.has(e))return e;var n=e.split(" "),r=n[0],o=n[1],i="colors."+r,a=i in t.__cssMap?t.__cssMap[i].varRef:r;return o?[a,o].join(" "):a})).join(", ")+")"}t.gradientTransform=function(e,t){return p(e,null!=t?t:{})}},36282:function(e,t,n){"use strict";t.__esModule=!0,t.toConfig=function(e,t){return function(n){var o={property:n,scale:e};return o.transform=(0,r.createTransform)({scale:e,transform:t}),o}},t.logical=function(e){var t=e.property,n=e.scale,i=e.transform;return{scale:n,property:o(t),transform:n?(0,r.createTransform)({scale:n,compose:i}):i}};var r=n(41629);var o=function(e){var t=e.rtl,n=e.ltr;return function(e){return"rtl"===e.direction?t:n}}},23744:function(e,t){"use strict";var n,r;t.__esModule=!0,t.getTransformTemplate=function(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))"].concat(o).join(" ")},t.getTransformGpuTemplate=function(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)"].concat(o).join(" ")},t.getRingTemplate=function(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}},t.spaceYTemplate=t.spaceXTemplate=t.flexDirectionTemplate=t.backdropFilterTemplate=t.filterTemplate=void 0;var o=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];var i={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")};t.filterTemplate=i;var a={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};t.backdropFilterTemplate=a;t.flexDirectionTemplate={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}};var s="& > :not(style) ~ :not(style)",u=((n={})[s]={marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"},n);t.spaceXTemplate=u;var c=((r={})[s]={marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"},r);t.spaceYTemplate=c},69131:function(e,t,n){"use strict";t.__esModule=!0,t.transformFunctions=void 0;var r=n(66751),o=n(23744),i=n(21612),a=function(e){return function(t){return e+"("+t+")"}},s={filter:function(e){return"auto"!==e?e:o.filterTemplate},backdropFilter:function(e){return"auto"!==e?e:o.backdropFilterTemplate},ring:function(e){return(0,o.getRingTemplate)(s.px(e))},bgClip:function(e){return"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform:function(e){return"auto"===e?(0,o.getTransformTemplate)():"auto-gpu"===e?(0,o.getTransformGpuTemplate)():e},px:function(e){return null==e?e:function(e){var t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e).unitless||(0,r.isNumber)(e)?e+"px":e},fraction:function(e){return!(0,r.isNumber)(e)||e>1?e:100*e+"%"},float:function(e,t){return"rtl"===t.direction?{left:"right",right:"left"}[e]:e},degree:function(e){if((0,r.isCssVar)(e)||null==e)return e;var t=(0,r.isString)(e)&&!e.endsWith("deg");return(0,r.isNumber)(e)||t?e+"deg":e},gradient:i.gradientTransform,blur:a("blur"),opacity:a("opacity"),brightness:a("brightness"),contrast:a("contrast"),dropShadow:a("drop-shadow"),grayscale:a("grayscale"),hueRotate:a("hue-rotate"),invert:a("invert"),saturate:a("saturate"),sepia:a("sepia"),bgImage:function(e){return null==e||u(e)||i.globalSet.has(e)?e:"url("+e+")"},outline:function(e){var t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection:function(e){var t,n=null!=(t=o.flexDirectionTemplate[e])?t:{},r=n.space,i=n.divide,a={flexDirection:e};return r&&(a[r]=1),i&&(a[i]=1),a}};t.transformFunctions=s;var u=function(e){return(0,r.isString)(e)&&e.includes("(")&&e.includes(")")}},86925:function(){},88134:function(e,t,n){"use strict";n.d(t,{r:function(){return _}});var r=n(10762),o=n(90639),i=n(51034),a=n(68327),s=n(72947),u=n(80658),c=n(84461),l=n(47248),d=n(65415),f=n(67294);function p(){return(p=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,["defaultIsChecked","defaultChecked","isChecked","isFocusable","isDisabled","isReadOnly","isRequired","onChange","isIndeterminate","isInvalid","name","value","id","onBlur","onFocus","aria-label","aria-labelledby","aria-invalid","aria-describedby"]),A=(0,r.W)(w),R=(0,r.W)(C),D=(0,r.W)(T),[L,N]=(0,o.k)(),[B,z]=(0,o.k)(),[F,H]=(0,o.k)(),V=(0,f.useRef)(null),[W,U]=(0,f.useState)(!0),[G,q]=(0,f.useState)(!!n),[K,Z]=(0,i.p)(h,G);(0,u.ZK)({condition:!!t,message:'The "defaultIsChecked" prop has been deprecated and will be removed in a future version. Please use the "defaultChecked" prop instead, which mirrors default React checkbox behavior.'});var $=(0,f.useCallback)((e=>{y||g?e.preventDefault():(K||q(Z?e.target.checked:!!x||e.target.checked),null==A||A(e))}),[y,g,Z,K,x,A]);(0,a.G)((()=>{V.current&&(V.current.indeterminate=Boolean(x))}),[x]);var X=g&&!m,Y=(0,f.useCallback)((e=>{" "===e.key&&H.on()}),[H]),Q=(0,f.useCallback)((e=>{" "===e.key&&H.off()}),[H]);(0,a.G)((()=>{V.current&&(V.current.checked!==Z&&q(V.current.checked))}),[V.current]);var J=(0,f.useCallback)((function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);return p({},e,{ref:t,"data-active":(0,c.PB)(F),"data-hover":(0,c.PB)(B),"data-checked":(0,c.PB)(Z),"data-focus":(0,c.PB)(L),"data-indeterminate":(0,c.PB)(x),"data-disabled":(0,c.PB)(g),"data-invalid":(0,c.PB)(_),"data-readonly":(0,c.PB)(y),"aria-hidden":!0,onMouseDown:(0,u.v0)(e.onMouseDown,(e=>{e.preventDefault(),H.on()})),onMouseUp:(0,u.v0)(e.onMouseUp,H.off),onMouseEnter:(0,u.v0)(e.onMouseEnter,z.on),onMouseLeave:(0,u.v0)(e.onMouseLeave,z.off)})}),[F,Z,g,L,B,x,_,y,H,z.off,z.on]),ee=(0,f.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),p({},I,e,{ref:(0,s.l)(t,(e=>{e&&U("LABEL"===e.tagName)})),onClick:(0,u.v0)(e.onClick,(()=>{var e;W||(null==(e=V.current)||e.click(),(0,l.T)(V.current,{nextTick:!0}))})),"data-disabled":(0,c.PB)(g)})}),[I,g,W]),te=(0,f.useCallback)((function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);return p({},e,{ref:(0,s.l)(V,t),type:"checkbox",name:k,value:E,id:O,onChange:(0,u.v0)(e.onChange,$),onBlur:(0,u.v0)(e.onBlur,R,N.off),onFocus:(0,u.v0)(e.onFocus,D,(()=>{(0,u.A4)(N.on)})),onKeyDown:(0,u.v0)(e.onKeyDown,Y),onKeyUp:(0,u.v0)(e.onKeyUp,Q),required:b,checked:Z,disabled:X,readOnly:y,"aria-label":M,"aria-labelledby":S,"aria-invalid":P?Boolean(P):_,"aria-describedby":j,"aria-disabled":g,style:d.NL})}),[k,E,O,$,N.off,N.on,R,D,Y,Q,b,Z,X,y,M,S,P,_,j,g]),ne=(0,f.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),p({},e,{ref:t,onMouseDown:(0,u.v0)(e.onMouseDown,v),onTouchStart:(0,u.v0)(e.onTouchStart,v),"data-disabled":(0,c.PB)(g),"data-checked":(0,c.PB)(Z),"data-invalid":(0,c.PB)(_)})}),[Z,g,_]);return{state:{isInvalid:_,isFocused:L,isChecked:Z,isActive:F,isHovered:B,isIndeterminate:x,isDisabled:g,isReadOnly:y,isRequired:b},getRootProps:ee,getCheckboxProps:J,getInputProps:te,getLabelProps:ne,htmlProps:I}}function v(e){e.preventDefault(),e.stopPropagation()}var m=n(90063),g=n(2326),y=n(55284),b=n(89384),w=n(73808);function x(){return(x=Object.assign||function(e){for(var t=1;t{var n=(0,g.j)("Switch",e),r=(0,y.Lr)(e),{spacing:o="0.5rem",children:i}=r,a=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(r,["spacing","children"]),{state:s,getInputProps:u,getCheckboxProps:l,getRootProps:d,getLabelProps:p}=h(a),v=f.useMemo((()=>x({display:"inline-block",verticalAlign:"middle",lineHeight:"normal"},n.container)),[n.container]),m=f.useMemo((()=>x({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer"},n.track)),[n.track]),w=f.useMemo((()=>x({userSelect:"none",marginStart:o},n.label)),[o,n.label]);return f.createElement(b.m$.label,x({},d(),{className:(0,c.cx)("chakra-switch",e.className),__css:v}),f.createElement("input",x({className:"chakra-switch__input"},u({},t))),f.createElement(b.m$.span,x({},l(),{className:"chakra-switch__track",__css:m}),f.createElement(b.m$.span,{__css:n.thumb,className:"chakra-switch__thumb","data-checked":(0,c.PB)(s.isChecked),"data-hover":(0,c.PB)(s.isHovered)})),i&&f.createElement(b.m$.span,x({className:"chakra-switch__label"},p(),{__css:w}),i))}));w.Ts&&(_.displayName="Switch")},15867:function(e,t,n){"use strict";t.__esModule=!0,t.forwardRef=function(e){return r.forwardRef(e)};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(67294));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}},46063:function(e,t,n){"use strict";t.__esModule=!0,t.useChakra=d,t.useToken=function(e,t,n){var r=(0,u.useTheme)();if(Array.isArray(t)){var o=[];return n&&(o=Array.isArray(n)?n:[n]),t.map((function(t,n){var a,s=e+"."+t;return(0,i.memoizedGet)(r,s,null!=(a=o[n])?a:t)}))}var a=e+"."+t;return(0,i.memoizedGet)(r,a,null!=n?n:t)},t.useProps=function(e,t){var n,r,o=d(),u=o.theme,f=o.colorMode,p=t.styleConfig||(null==(n=u.components)?void 0:n[e]),h=l({},null!=(r=null==p?void 0:p.defaultProps)?r:{},(0,i.filterUndefined)(t)),v=(0,a.useRef)({}),m=(0,i.mergeWith)({},h,{theme:u,colorMode:f});return{styles:(0,a.useMemo)((function(){if(p){var e,t,n,r,o,a=(0,i.runIfFn)(null!=(e=p.baseStyle)?e:{},m),u=(0,i.runIfFn)(null!=(t=null==(n=p.variants)?void 0:n[m.variant])?t:{},m),c=(0,i.runIfFn)(null!=(r=null==(o=p.sizes)?void 0:o[m.size])?r:{},m),l=(0,i.mergeWith)(a,c,u);p.parts&&p.parts.forEach((function(e){var t;l[e]=null!=(t=l[e])?t:{}})),(0,s.default)(v.current,l)||(v.current=l)}return v.current}),[p,m]),props:(0,c.omitThemingProps)(h)}};var r,o=n(12094),i=n(66751),a=n(67294),s=(r=n(69590))&&r.__esModule?r:{default:r},u=n(4867),c=n(93138);function l(){return(l=Object.assign||function(e){for(var t=1;t` or ``");return e},t.GlobalStyle=t.useStyles=t.StylesProvider=t.ThemeProvider=void 0;var r=n(12094),o=n(39907),i=n(66751),a=n(19277),s=n(70917),u=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function c(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}t.ThemeProvider=function(e){var t=e.cssVarsRoot,n=void 0===t?":host, :root":t,r=e.theme,i=e.children,a=u.useMemo((function(){return(0,o.toCSSVar)(r)}),[r]);return u.createElement(s.ThemeProvider,{theme:a},u.createElement(s.Global,{styles:function(e){var t;return(t={})[n]=e.__cssVars,t}}),i)};var l=(0,a.createContext)({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "}),d=l[0],f=l[1];t.useStyles=f,t.StylesProvider=d;t.GlobalStyle=function(){var e=(0,r.useColorMode)().colorMode;return u.createElement(s.Global,{styles:function(t){var n=(0,i.memoizedGet)(t,"styles.global"),r=(0,i.runIfFn)(n,{theme:t,colorMode:e});if(r){var a=(0,o.css)(r)(t);return a}}})}},99214:function(e,t,n){"use strict";t.__esModule=!0,t.shouldForwardProp=void 0;var r=n(39907),o=new Set([].concat(r.propNames,["textStyle","layerStyle","apply","isTruncated","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"])),i=new Set(["htmlWidth","htmlHeight","htmlSize"]);t.shouldForwardProp=function(e){return i.has(e)||!o.has(e)}},40065:function(e,t,n){"use strict";t.__esModule=!0,t.styled=d,t.chakra=t.toCSSObject=void 0;var r,o=n(39907),i=n(66751),a=(r=n(48981))&&r.__esModule?r:{default:r},s=n(99214),u=n(93138);function c(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var l=function(e){var t=e.baseStyle;return function(e){e.theme;var n=e.css,r=e.__css,a=e.sx,s=c(e,["theme","css","__css","sx"]),u=(0,i.objectFilter)(s,(function(e,t){return(0,o.isStyleProp)(t)})),l=(0,i.runIfFn)(t,e),d=Object.assign({},r,l,(0,i.filterUndefined)(u),a),f=(0,o.css)(d)(e.theme);return n?[f,n]:f}};function d(e,t){var n=null!=t?t:{},r=n.baseStyle,o=c(n,["baseStyle"]);o.shouldForwardProp||(o.shouldForwardProp=s.shouldForwardProp);var i=l({baseStyle:r});return(0,a.default)(e,o)(i)}t.toCSSObject=l;var f=d;t.chakra=f,u.domElements.forEach((function(e){f[e]=f(e)}))},39824:function(){},93138:function(e,t,n){"use strict";t.__esModule=!0,t.omitThemingProps=function(e){return(0,r.omit)(e,["styleConfig","size","variant","colorScheme"])},t.default=o,t.getDisplayName=function(e){return o(e)?"chakra."+e:function(e){return!!r.__DEV__&&((0,r.isString)(e)&&e)||!(0,r.isString)(e)&&e.displayName||!(0,r.isString)(e)&&e.name||"ChakraComponent"}(e)},t.domElements=void 0;var r=n(66751);function o(e){return(0,r.isString)(e)&&(!r.__DEV__||e.charAt(0)===e.charAt(0).toLowerCase())}t.domElements=["a","b","article","aside","blockquote","button","caption","cite","circle","code","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","img","input","kbd","label","li","main","mark","nav","ol","p","path","pre","q","rect","s","svg","section","select","strong","small","span","sub","sup","table","tbody","td","textarea","tfoot","th","thead","tr","ul"]},80011:function(e,t,n){"use strict";t.__esModule=!0,t.useStyleConfig=u,t.useMultiStyleConfig=function(e,t){return u(e,t,{isMultiPart:!0})};var r,o=n(66751),i=n(67294),a=(r=n(69590))&&r.__esModule?r:{default:r},s=n(46063);function u(e,t,n){var r,u;void 0===t&&(t={}),void 0===n&&(n={});var c=t,l=c.styleConfig,d=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(c,["styleConfig"]),f=(0,s.useChakra)(),p=f.theme,h=f.colorMode,v=(0,o.memoizedGet)(p,"components."+e),m=l||v,g=(0,o.mergeWith)({theme:p,colorMode:h},null!=(r=null==m?void 0:m.defaultProps)?r:{},(0,o.filterUndefined)((0,o.omit)(d,["children"]))),y=(0,i.useRef)({});return(0,i.useMemo)((function(){if(m){var e,t,r,i,s,u,c=(0,o.runIfFn)(null!=(e=m.baseStyle)?e:{},g),l=(0,o.runIfFn)(null!=(t=null==(r=m.variants)?void 0:r[g.variant])?t:{},g),d=(0,o.runIfFn)(null!=(i=null==(s=m.sizes)?void 0:s[g.size])?i:{},g),f=(0,o.mergeWith)({},c,d,l);null!=(u=n)&&u.isMultiPart&&m.parts&&m.parts.forEach((function(e){var t;f[e]=null!=(t=f[e])?t:{}})),(0,a.default)(y.current,f)||(y.current=f)}return y.current}),[m,g,null==(u=n)?void 0:u.isMultiPart])}},90063:function(e,t,n){"use strict";n.d(t,{G:function(){return o}});var r=n(67294);function o(e){return r.forwardRef(e)}},11180:function(e,t,n){"use strict";n.d(t,{useTheme:function(){return i.Fg}});var r=n(9421);n.o(r,"useTheme")&&n.d(t,{useTheme:function(){return r.useTheme}});var o=n(5070);n.o(o,"useTheme")&&n.d(t,{useTheme:function(){return o.useTheme}});var i=n(29676)},89384:function(e,t,n){"use strict";n.d(t,{m$:function(){return f}});var r=n(9421),o=n(4651),i=n(80658),a=n(48981),s=new Set([...r.propNames,"textStyle","layerStyle","apply","isTruncated","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),u=new Set(["htmlWidth","htmlHeight","htmlSize"]),c=e=>u.has(e)||!s.has(e),l=n(55284);function d(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var f=function(e,t){var n=null!=t?t:{},{baseStyle:s}=n,u=d(n,["baseStyle"]);u.shouldForwardProp||(u.shouldForwardProp=c);var l=(e=>{var{baseStyle:t}=e;return e=>{var{css:n,__css:a,sx:s}=e,u=d(e,["theme","css","__css","sx"]),c=(0,o.lw)(u,((e,t)=>(0,r.isStyleProp)(t))),l=(0,i.Pu)(t,e),f=Object.assign({},a,l,(0,o.YU)(c),s),p=(0,r.iv)(f)(e.theme);return n?[p,n]:p}})({baseStyle:s});return(0,a.default)(e,u)(l)};l.t6.forEach((e=>{f[e]=f(e)}))},5070:function(){},55284:function(e,t,n){"use strict";n.d(t,{t6:function(){return o},Lr:function(){return i}});var r=n(4651),o=["a","b","article","aside","blockquote","button","caption","cite","circle","code","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","img","input","kbd","label","li","main","mark","nav","ol","p","path","pre","q","rect","s","svg","section","select","strong","small","span","sub","sup","table","tbody","td","textarea","tfoot","th","thead","tr","ul"];function i(e){return(0,r.CE)(e,["styleConfig","size","variant","colorScheme"])}},2326:function(e,t,n){"use strict";n.d(t,{j:function(){return v},m:function(){return h}});var r=n(4651),o=n(38554),i=n.n(o),a=n(80658),s=n(67294),u=n(69590),c=n.n(u),l=n(24738),d=n(29676);function f(){return(f=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(t,["styleConfig"]),{theme:f,colorMode:h}=p(),v=(0,r.Wf)(f,"components."+e),m=l||v,g=i()({theme:f,colorMode:h},null!=(o=null==m?void 0:m.defaultProps)?o:{},(0,r.YU)((0,r.CE)(d,["children"]))),y=(0,s.useRef)({});return(0,s.useMemo)((()=>{if(m){var e,t,r,o,s,u,l=(0,a.Pu)(null!=(e=m.baseStyle)?e:{},g),d=(0,a.Pu)(null!=(t=null==(r=m.variants)?void 0:r[g.variant])?t:{},g),f=(0,a.Pu)(null!=(o=null==(s=m.sizes)?void 0:s[g.size])?o:{},g),p=i()({},l,f,d);null!=(u=n)&&u.isMultiPart&&m.parts&&m.parts.forEach((e=>{var t;p[e]=null!=(t=p[e])?t:{}})),c()(y.current,p)||(y.current=p)}return y.current}),[m,g,null==(u=n)?void 0:u.isMultiPart])}function v(e,t){return h(e,t,{isMultiPart:!0})}},81820:function(e,t,n){"use strict";t.__esModule=!0;var r=n(45093);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}))},45093:function(e,t,n){"use strict";t.__esModule=!0,t.TagCloseButton=t.TagRightIcon=t.TagLeftIcon=t.TagLabel=t.Tag=void 0;var r=n(29559),o=n(48121),i=n(66751),a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(67294));function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,["isDisabled","children"]),i=u({display:"flex",alignItems:"center",justifyContent:"center",outline:"0"},(0,o.useStyles)().closeButton);return a.createElement(o.chakra.button,u({},r,{type:"button","aria-label":"close",disabled:t,__css:i}),n||a.createElement(p,null))};t.TagCloseButton=h,i.__DEV__&&(h.displayName="TagCloseButton")},96699:function(e,t,n){"use strict";n.d(t,{u:function(){return M}});var r=n(23459),o=n(67273),i=n(89384),a=n(90063),s=n(2326),u=n(55284),c=n(29676),l=n(4651),d=n(73808),f=n(65415),p=n(39629),h=n(53869),v=n(67294),m={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},g=n(74860),y=n(94577),b=n(34941),w=n(8931),x=n(80658),_=n(88456),k=n(72947);function E(){return(E=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,["openDelay","closeDelay","closeOnClick","closeOnMouseDown","onOpen","onClose","placement","id","isOpen","defaultIsOpen","arrowSize","arrowShadowColor","arrowPadding","modifiers","isDisabled","gutter","offset"]),{isOpen:S,onOpen:P,onClose:j}=(0,g.q)({isOpen:l,defaultIsOpen:d,onOpen:a,onClose:s}),{referenceRef:I,getPopperProps:A,getArrowInnerProps:R,getArrowProps:D}=(0,w.D)({enabled:S,placement:u,arrowPadding:h,modifiers:m,gutter:C,offset:T}),L=(0,y.Me)(c,"tooltip"),N=v.useRef(null),B=v.useRef(),z=v.useRef(),F=v.useCallback((()=>{O||(B.current=window.setTimeout(P,t))}),[O,P,t]),H=v.useCallback((()=>{B.current&&clearTimeout(B.current),z.current=window.setTimeout(j,n)}),[n,j]),V=v.useCallback((()=>{o&&H()}),[o,H]),W=v.useCallback((()=>{i&&H()}),[i,H]);(0,b.O)("keydown",(e=>{S&&"Escape"===e.key&&H()})),v.useEffect((()=>()=>{clearTimeout(B.current),clearTimeout(z.current)}),[]),(0,b.O)("mouseleave",H,N.current);var U=v.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),E({},e,{ref:(0,k.l)(N,t,I),onMouseEnter:(0,x.v0)(e.onMouseEnter,F),onClick:(0,x.v0)(e.onClick,V),onMouseDown:(0,x.v0)(e.onMouseDown,W),onFocus:(0,x.v0)(e.onFocus,F),onBlur:(0,x.v0)(e.onBlur,H),"aria-describedby":S?L:void 0})}),[F,H,W,S,L,V,I]),G=v.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),A(E({},e,{style:E({},e.style,{[r.Dq.arrowSize.var]:f?(0,_.px)(f):void 0,[r.Dq.arrowShadowColor.var]:p})}),t)}),[A,f,p]),q=v.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),E({ref:t},M,e,{id:L,role:"tooltip",style:E({},e.style,{position:"relative",transformOrigin:r.Dq.transformOrigin.varRef})})}),[M,L]);return{isOpen:S,show:F,hide:H,getTriggerProps:U,getTooltipProps:q,getTooltipPositionerProps:G,getArrowProps:D,getArrowInnerProps:R}}function C(){return(C=Object.assign||function(e){for(var t=1;t{var n=(0,s.m)("Tooltip",e),a=(0,u.Lr)(e),p=(0,c.Fg)(),{children:g,label:y,shouldWrapChildren:b,"aria-label":w,hasArrow:x,bg:_,portalProps:k}=a,E=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(a,["children","label","shouldWrapChildren","aria-label","hasArrow","bg","portalProps"]);_&&(n.bg=_,n[r.Dq.arrowBg.var]=(0,l.K1)(p,"colors",_));var M,S=O(E);if((0,d.HD)(g)||b)M=v.createElement(i.m$.span,C({tabIndex:0},S.getTriggerProps()),g);else{var P=v.Children.only(g);M=v.cloneElement(P,S.getTriggerProps(P.props,P.ref))}var j=!!w,I=S.getTooltipProps({},t),A=j?(0,l.CE)(I,["role","id"]):I,R=(0,l.ei)(I,["role","id"]);return y?v.createElement(v.Fragment,null,M,v.createElement(h.M,null,S.isOpen&&v.createElement(o.h,k,v.createElement(i.m$.div,C({},S.getTooltipPositionerProps(),{__css:{zIndex:n.zIndex,pointerEvents:"none"}}),v.createElement(T,C({variants:m},A,{initial:"exit",animate:"enter",exit:"exit",__css:n}),y,j&&v.createElement(f.TX,R,w),x&&v.createElement(i.m$.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper"},v.createElement(i.m$.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:n.bg}}))))))):v.createElement(v.Fragment,null,g)}));d.Ts&&(M.displayName="Tooltip")},15267:function(e,t,n){"use strict";n.d(t,{U:function(){return v}});var r=n(80658),o=n(38554),i=n.n(o),a=n(84461),s=n(73808),u=n(53869),c=n(39629),l=n(67294),d=n(24722);function f(){return(f=Object.assign||function(e){for(var t=1;t{var t,n,{animateOpacity:r,startingHeight:o,transition:i,transitionEnd:a,delay:s}=e;return f({},r&&{opacity:(n=o,null!=n&&parseInt(n.toString(),10)>0?1:0)},{overflow:"hidden",height:o,transitionEnd:null==a?void 0:a.exit,transition:null!=(t=null==i?void 0:i.exit)?t:d.p$.exit(p.exit,s)})},enter:e=>{var t,{animateOpacity:n,endingHeight:r,transition:o,transitionEnd:i,delay:a}=e;return f({},n&&{opacity:1},{height:r,transitionEnd:null==i?void 0:i.enter,transition:null!=(t=null==o?void 0:o.enter)?t:d.p$.enter(p.enter,a)})}},v=l.forwardRef(((e,t)=>{var{in:n,unmountOnExit:o,animateOpacity:s=!0,startingHeight:d=0,endingHeight:p="auto",style:v,className:m,transition:g,transitionEnd:y}=e,b=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["in","unmountOnExit","animateOpacity","startingHeight","endingHeight","style","className","transition","transitionEnd"]),[w,x]=l.useState(!1);l.useEffect((()=>{var e=setTimeout((()=>{x(!0)}));return()=>clearTimeout(e)}),[]),(0,r.ZK)({condition:Boolean(d>0&&o),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});var _=parseFloat(d.toString())>0,k={startingHeight:d,endingHeight:p,animateOpacity:s,transition:w?g:{enter:{duration:0}},transitionEnd:i()(y,{enter:{overflow:"initial"},exit:o?void 0:{display:_?"block":"none"}})},E=!o||n,O=n||o?"enter":"exit";return l.createElement(u.M,{initial:!1,custom:k},E&&l.createElement(c.E.div,f({ref:t},b,{className:(0,a.cx)("chakra-collapse",m),style:f({overflow:"hidden",display:"block"},v),custom:k,variants:h,initial:!!o&&"exit",animate:O,exit:"exit"})))}));s.Ts&&(v.displayName="Collapse")},24722:function(e,t,n){"use strict";n.d(t,{YI:function(){return i},R:function(){return a},p$:function(){return s}});var r=n(73808);function o(){return(o=Object.assign||function(e){for(var t=1;to({},e,{delay:(0,r.hj)(t)?t:null==t?void 0:t.enter}),exit:(e,t)=>o({},e,{delay:(0,r.hj)(t)?t:null==t?void 0:t.exit})}},4706:function(e,t){"use strict";function n(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=!0);var o=t-1;if(-1===e)return n>0?0:o;var i=e+n;return i<0?r?o:0:i>=t?r?0:e>t?t:e:i}function r(e,t,r){return void 0===r&&(r=!0),n(e,t,-1,r)}t.__esModule=!0,t.getFirstItem=function(e){return null!=e&&e.length?e[0]:void 0},t.getLastItem=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},t.getPrevItem=function(e,t,n){void 0===n&&(n=!0);var o=r(e,t.length,n);return t[o]},t.getNextItem=function(e,t,r){void 0===r&&(r=!0);var o=n(e,t.length,1,r);return t[o]},t.removeIndex=function(e,t){return e.filter((function(e,n){return n!==t}))},t.addItem=function(e,t){return[].concat(e,[t])},t.removeItem=function(e,t){return e.filter((function(e){return e!==t}))},t.getNextIndex=n,t.getPrevIndex=r,t.chunk=function(e,t){return e.reduce((function(e,n,r){return r%t===0?e.push([n]):e[e.length-1].push(n),e}),[])},t.getNextItemFromSearch=function(e,t,n,r){if(null==t)return r;if(!r){return e.find((function(e){return n(e).toLowerCase().startsWith(t.toLowerCase())}))}var o=e.filter((function(e){return n(e).toLowerCase().startsWith(t.toLowerCase())}));if(o.length>0){var i;if(o.includes(r)){var a=o.indexOf(r);return(i=a+1)===o.length&&(i=0),o[i]}return i=e.indexOf(o[0]),e[i]}return r}},22229:function(e,t){"use strict";function n(e){return Array.isArray(e)}function r(e){return n(e)&&0===e.length}function o(e){var t=typeof e;return null!=e&&("object"===t||"function"===t)&&!n(e)}function i(e){return o(e)&&0===Object.keys(e).length}t.__esModule=!0,t.isNumber=function(e){return"number"===typeof e},t.isNotNumber=function(e){return"number"!==typeof e||Number.isNaN(e)||!Number.isFinite(e)},t.isNumeric=function(e){return null!=e&&e-parseFloat(e)+1>=0},t.isArray=n,t.isEmptyArray=r,t.isFunction=function(e){return"function"===typeof e},t.isDefined=function(e){return"undefined"!==typeof e&&void 0!==e},t.isUndefined=function(e){return"undefined"===typeof e||void 0===e},t.isObject=o,t.isEmptyObject=i,t.isNotEmptyObject=function(e){return e&&!i(e)},t.isNull=function(e){return null==e},t.isString=function(e){return"[object String]"===Object.prototype.toString.call(e)},t.isCssVar=function(e){return/^var\(--.+\)$/.test(e)},t.isEmpty=function(e){return n(e)?r(e):o(e)?i(e):null==e||""===e},t.isRefObject=function(e){return"current"in e},t.isInputEvent=function(e){return e&&o(e)&&o(e.target)},t.__TEST__=t.__DEV__=void 0;t.__DEV__=!1;t.__TEST__=!1},42402:function(e,t,n){"use strict";t.__esModule=!0,t.px=a,t.analyzeBreakpoints=function(e){var t;if(!e)return null;e.base=null!=(t=e.base)?t:"0px";var n=c(e),i=Object.entries(e).sort(s).map((function(e,t,n){var r,i=e[0],s=e[1],u=(null!=(r=n[t+1])?r:[])[1];return{breakpoint:i,minW:s,maxW:u=parseFloat(u)>0?function(e){var t;if(!e)return e;var n=(e=null!=(t=a(e))?t:e).endsWith("px")?-1:-.0635;return(0,o.isNumber)(e)?""+(e+n):e.replace(/([0-9]+\.?[0-9]*)/,(function(e){return""+(parseFloat(e)+n)}))}(u):void 0,maxWQuery:l(null,u),minWQuery:l(s),minMaxQuery:l(s,u)}})),d=function(e){var t=Object.keys(u(e));return new Set(t)}(e),f=Array.from(d.values());return{keys:d,normalized:n,isResponsive:function(e){var t=Object.keys(e);return t.length>0&&t.every((function(e){return d.has(e)}))},asObject:u(e),asArray:c(e),details:i,media:[null].concat(n.map((function(e){return l(e)})).slice(1)),toArrayValue:function(e){if(!(0,o.isObject)(e))throw new Error("toArrayValue: value must be an object");for(var t=f.map((function(t){var n;return null!=(n=e[t])?n:null}));null===(0,r.getLastItem)(t);)t.pop();return t},toObjectValue:function(e){if(!Array.isArray(e))throw new Error("toObjectValue: value must be an array");return e.reduce((function(e,t,n){var r=f[n];return null!=r&&null!=t&&(e[r]=t),e}),{})}}};var r=n(4706),o=n(22229),i=n(95963);function a(e){return null==e?e:function(e){var t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e).unitless||(0,o.isNumber)(e)?e+"px":e}var s=function(e,t){return parseInt(e[1],10)>parseInt(t[1],10)?1:-1},u=function(e){return(0,i.fromEntries)(Object.entries(e).sort(s))};function c(e){var t=u(e);return Object.assign(Object.values(t),t)}function l(e,t){var n=[];return e&&n.push("@media screen and (min-width: "+a(e)+")"),n.length>0&&t&&n.push("and"),t&&n.push("@media screen and (max-width: "+a(t)+")"),n.join(" ")}},33211:function(e,t,n){"use strict";t.__esModule=!0,t.getAllFocusable=i,t.getFirstFocusable=function(e){var t=i(e);return t.length?t[0]:null},t.getAllTabbable=a,t.getFirstTabbableIn=function(e,t){return a(e,t)[0]||null},t.getLastTabbableIn=function(e,t){var n=a(e,t);return n[n.length-1]||null},t.getNextTabbable=s,t.getPreviousTabbable=u,t.focusNextTabbable=function(e,t){var n=s(e,t);n&&(0,r.isHTMLElement)(n)&&n.focus()},t.focusPreviousTabbable=function(e,t){var n=u(e,t);n&&(0,r.isHTMLElement)(n)&&n.focus()},t.closest=function(e,t){if("closest"in e)return e.closest(t);do{if(c(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null};var r=n(99162),o=["input:not([disabled])","select:not([disabled])","textarea:not([disabled])","embed","iframe","object","a[href]","area[href]","button:not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"].join();function i(e){var t=Array.from(e.querySelectorAll(o));return t.unshift(e),t.filter(r.isFocusable).filter((function(e){return"none"!==window.getComputedStyle(e).display}))}function a(e,t){var n=Array.from(e.querySelectorAll(o)),i=n.filter(r.isTabbable);return(0,r.isTabbable)(e)&&i.unshift(e),!i.length&&t?n:i}function s(e,t){var n=i(e),o=n.indexOf(document.activeElement),a=n.slice(o+1);return a.find(r.isTabbable)||n.find(r.isTabbable)||(t?a[0]:null)}function u(e,t){var n=i(e).reverse(),o=n.indexOf(document.activeElement),a=n.slice(o+1);return a.find(r.isTabbable)||n.find(r.isTabbable)||(t?a[0]:null)}function c(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}},14576:function(e,t){"use strict";function n(e){var t;return e instanceof Element&&null!=(t=e.ownerDocument)?t:document}function r(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}t.__esModule=!0,t.getOwnerWindow=function(e){var t,r;return e instanceof Element&&null!=(t=null==(r=n(e))?void 0:r.defaultView)?t:window},t.getOwnerDocument=n,t.canUseDOM=r,t.getActiveElement=i,t.contains=function(e,t){return!!e&&(e===t||e.contains(t))},t.addDomEvent=function(e,t,n,r){return e.addEventListener(t,n,r),function(){e.removeEventListener(t,n,r)}},t.normalizeEventKey=function(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t},t.getRelatedTarget=function(e){var t,n,r,o=i(null!=(t=e.target)?t:e.currentTarget),a=e.nativeEvent.explicitOriginalTarget;return null!=(n=null!=(r=e.relatedTarget)?r:a)?n:o},t.isRightClick=function(e){return 0!==e.button},t.cx=t.ariaAttr=t.dataAttr=t.isBrowser=void 0;var o=r();t.isBrowser=o;t.dataAttr=function(e){return e?"":void 0};t.ariaAttr=function(e){return!!e||void 0};function i(e){var t=n(e);return null==t?void 0:t.activeElement}t.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}(e);!(t=n()).done;){var r=t.value,o=r.element,i=r.scrollTop,s=r.scrollLeft;o.scrollTop=i,o.scrollLeft=s}}(function(e){var t=(0,r.getOwnerDocument)(e),n=e.parentNode,o=[],i=t.scrollingElement||t.documentElement;for(;n instanceof HTMLElement&&n!==i;)(n.offsetHeighte.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?t-1:0),o=1;o1?t-1:0),r=1;r=a.threshold;if(t||n){var o=(0,r.getFrameData)().timestamp;a.history.push(s({},e.point,{timestamp:o}));var u=a.handlers,c=u.onStart,l=u.onMove;t||(null==c||c(a.lastEvent,e),a.startEvent=a.lastEvent),null==l||l(a.lastEvent,e)}}})),u(this,"onPointerMove",(function(e,t){a.lastEvent=e,a.lastEventInfo=t,(0,o.isMouseEvent)(e)&&0===e.buttons?a.onPointerUp(e,t):r.default.update(a.updatePoint,!0)})),u(this,"onPointerUp",(function(e,t){var n=p(t,a.history),r=a.handlers,o=r.onEnd,i=r.onSessionEnd;null==i||i(e,n),a.end(),o&&a.startEvent&&(null==o||o(e,n))})),!(0,o.isMultiTouchEvent)(e)){this.handlers=t,n&&(this.threshold=n),e.stopPropagation(),e.preventDefault();var c=(0,o.extractEventInfo)(e),l=(0,r.getFrameData)().timestamp;this.history=[s({},c.point,{timestamp:l})];var d=t.onSessionStart;null==d||d(e,p(c,this.history)),this.removeListeners=(0,i.pipe)((0,o.addPointerEvent)(window,"pointermove",this.onPointerMove),(0,o.addPointerEvent)(window,"pointerup",this.onPointerUp),(0,o.addPointerEvent)(window,"pointercancel",this.onPointerUp))}}var t=e.prototype;return t.updateHandlers=function(e){this.handlers=e},t.end=function(){var e;null==(e=this.removeListeners)||e.call(this),r.cancelSync.update(this.updatePoint)},e}();function l(e,t){return{x:e.x-t.x,y:e.y-t.y}}function d(e){return e[0]}function f(e){return e[e.length-1]}function p(e,t){return{point:e.point,delta:l(e.point,f(t)),offset:l(e.point,d(t)),velocity:h(t,.1)}}t.PanSession=c;function h(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=function(e){return e[e.length-1]}(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>1e3*t));)n--;if(!r)return{x:0,y:0};var i=(o.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};var a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}},91373:function(e,t,n){"use strict";t.__esModule=!0,t.isMouseEvent=function(e){if("undefined"!==typeof PointerEvent&&e instanceof PointerEvent)return!("mouse"!==e.pointerType);return e instanceof MouseEvent},t.isTouchEvent=o,t.extractEventInfo=u,t.getViewportPointFromEvent=function(e){return u(e,"client")},t.getPointerEventName=f,t.addPointerEvent=function(e,t,n,o){return(0,r.addDomEvent)(e,f(t),c(n,"pointerdown"===t),o)},t.isMultiTouchEvent=function(e){return o(e)&&e.touches.length>1},t.wrapPointerEventHandler=void 0;var r=n(14576);function o(e){return!!e.touches}var i={pageX:0,pageY:0};function a(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||i;return{x:n[t+"X"],y:n[t+"Y"]}}function s(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function u(e,t){return void 0===t&&(t="page"),{point:o(e)?a(e,t):s(e,t)}}var c=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,u(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r};t.wrapPointerEventHandler=c;var l={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},d={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function f(e){return r.isBrowser&&null===window.onpointerdown?e:r.isBrowser&&null===window.ontouchstart?d[e]:r.isBrowser&&null===window.onmousedown?l[e]:e}},4535:function(e,t,n){"use strict";t.__esModule=!0,t.mapResponsive=function(e,t){if((0,o.isArray)(e))return e.map((function(e){return null===e?null:t(e)}));if((0,o.isObject)(e))return(0,i.objectKeys)(e).reduce((function(n,r){return n[r]=t(e[r]),n}),{});if(null!=e)return t(e);return null},t.objectToArrayNotation=function(e,t){void 0===t&&(t=a);var n=t.map((function(t){var n;return null!=(n=e[t])?n:null}));for(;null===(0,r.getLastItem)(n);)n.pop();return n},t.arrayToObjectNotation=function(e,t){void 0===t&&(t=a);var n={};return e.forEach((function(e,r){var o=t[r];null!=e&&(n[o]=e)})),n},t.isResponsiveObjectLike=function(e,t){void 0===t&&(t=a);var n=Object.keys(e);return n.length>0&&n.every((function(e){return t.includes(e)}))},t.isCustomBreakpoint=t.breakpoints=void 0;var r=n(4706),o=n(22229),i=n(95963),a=Object.freeze(["base","sm","md","lg","xl","2xl"]);t.breakpoints=a;t.isCustomBreakpoint=function(e){return Number.isNaN(Number(e))}},99162:function(e,t,n){"use strict";t.__esModule=!0,t.isDisabled=a,t.isInputElement=function(e){return s(e)&&"input"===e.tagName.toLowerCase()&&"select"in e},t.isActiveElement=function(e){return(e instanceof HTMLElement?(0,r.getOwnerDocument)(e):document).activeElement===e},t.hasFocusWithin=function(e){return!!document.activeElement&&e.contains(document.activeElement)},t.isHTMLElement=s,t.isHidden=u,t.isContentEditable=c,t.isFocusable=l,t.isTabbable=function(e){return!!e&&(s(e)&&l(e)&&!i(e))},t.hasNegativeTabIndex=t.hasTabIndex=t.hasDisplayNone=void 0;var r=n(14576);t.hasDisplayNone=function(e){return"none"===window.getComputedStyle(e).display};var o=function(e){return e.hasAttribute("tabindex")};t.hasTabIndex=o;var i=function(e){return o(e)&&-1===e.tabIndex};function a(e){return!0===Boolean(e.getAttribute("disabled"))||!0===Boolean(e.getAttribute("aria-disabled"))}function s(e){return e instanceof HTMLElement}function u(e){return!(!e.parentElement||!u(e.parentElement))||e.hidden}function c(e){var t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}function l(e){if(!s(e)||u(e)||a(e))return!1;var t=e.localName;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;var n={a:function(){return e.hasAttribute("href")},audio:function(){return e.hasAttribute("controls")},video:function(){return e.hasAttribute("controls")}};return t in n?n[t]():!!c(e)||o(e)}t.hasNegativeTabIndex=i},27489:function(){},58594:function(e,t,n){"use strict";t.__esModule=!0,t.detectDeviceType=function(e){var t=e.userAgent;return/(tablet)|(iPad)|(Nexus 9)/i.test(t)?"tablet":/(mobi)/i.test(t)?"phone":"desktop"},t.detectOS=function(e){return!!r.isBrowser&&function(e){var t=e.userAgent,n=e.platform;switch(!0){case/Android/.test(t):return"Android";case/iPhone|iPad|iPod/.test(n):return"iOS";case/Win/.test(n):return"Windows";case/Mac/.test(n):return"Mac";case/CrOS/.test(t):return"Chrome OS";case/Firefox/.test(t):return"Firefox OS";default:return null}}(window.navigator)===e},t.detectBrowser=function(e){return!!r.isBrowser&&function(e){var t=e.userAgent,n=e.vendor,r=/(android)/i.test(t);switch(!0){case/CriOS/.test(t):return"Chrome for iOS";case/Edg\//.test(t):return"Edge";case r&&/Silk\//.test(t):return"Silk";case/Chrome/.test(t)&&/Google Inc/.test(n):return"Chrome";case/Firefox\/\d+\.\d+$/.test(t):return"Firefox";case r:return"AOSP";case/MSIE|Trident/.test(t):return"IE";case/Safari/.test(e.userAgent)&&/Apple Computer/.test(t):return"Safari";case/AppleWebKit/.test(t):return"WebKit";default:return null}}(window.navigator)===e},t.detectTouch=function(){return!!r.isBrowser&&(null===window.ontouchstart&&null===window.ontouchmove&&null===window.ontouchend)};var r=n(14576)},38140:function(e,t,n){"use strict";t.__esModule=!0,t.walkObject=function(e,t){return function e(n,o){return void 0===o&&(o=[]),(0,r.isArray)(n)?n.map((function(t,n){return e(t,[].concat(o,[String(n)]))})):(0,r.isObject)(n)?Object.fromEntries(Object.entries(n).map((function(t){var n=t[0];return[n,e(t[1],[].concat(o,[n]))]}))):t(n,o)}(e)};var r=n(22229)},47248:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});var r=n(84461),o=n(80658),i=n(17768);function a(e,t){void 0===t&&(t={});var{isActive:n=i.H9,nextTick:a,preventScroll:u=!0,selectTextIfInput:c=!0}=t;if(!e||n(e))return-1;function l(){if(e){if(function(){if(null==s){s=!1;try{document.createElement("div").focus({get preventScroll(){return s=!0,!0}})}catch(e){}}return s}())e.focus({preventScroll:u});else if(e.focus(),u)!function(e){for(var{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(function(e){var t=(0,r.lZ)(e),n=e.parentNode,o=[],i=t.scrollingElement||t.documentElement;for(;n instanceof HTMLElement&&n!==i;)(n.offsetHeighte.hasAttribute("tabindex");function i(e){return s(e)&&"input"===e.tagName.toLowerCase()&&"select"in e}function a(e){return(e instanceof HTMLElement?(0,r.lZ)(e):document).activeElement===e}function s(e){return e instanceof HTMLElement}function u(e){return!(!e.parentElement||!u(e.parentElement))||e.hidden}function c(e){if(!s(e)||u(e)||function(e){return!0===Boolean(e.getAttribute("disabled"))||!0===Boolean(e.getAttribute("aria-disabled"))}(e))return!1;var{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;var n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():!!function(e){var t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||o(e)}function l(e){return!!e&&(s(e)&&c(e)&&!(e=>o(e)&&-1===e.tabIndex)(e))}},22944:function(e,t,n){"use strict";t.__esModule=!0;var r={};t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(13267));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}t.default=o.default,Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===o[e]||(t[e]=o[e]))}))},13267:function(e,t,n){"use strict";t.__esModule=!0,t.default=t.VisuallyHiddenInput=t.VisuallyHidden=t.visuallyHiddenStyle=void 0;var r=n(48121),o=n(66751),i={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};t.visuallyHiddenStyle=i;var a=(0,r.chakra)("span",{baseStyle:i});t.VisuallyHidden=a,o.__DEV__&&(a.displayName="VisuallyHidden");var s=(0,r.chakra)("input",{baseStyle:i});t.VisuallyHiddenInput=s,o.__DEV__&&(s.displayName="VisuallyHiddenInput");var u=a;t.default=u},65415:function(e,t,n){"use strict";n.d(t,{NL:function(){return i},TX:function(){return a}});var r=n(89384),o=n(73808),i={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},a=(0,r.m$)("span",{baseStyle:i});o.Ts&&(a.displayName="VisuallyHidden");var s=(0,r.m$)("input",{baseStyle:i});o.Ts&&(s.displayName="VisuallyHiddenInput")},48981:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var r=n(67294);function o(){return(o=Object.assign||function(e){for(var t=1;t96?d:f},h=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},v=function e(t,n){var i,a,s=t.__emotion_real===t,d=s&&t.__emotion_base||t;void 0!==n&&(i=n.label,a=n.target);var f=h(t,n,s),v=f||p(d),m=!v("as");return function(){var g=arguments,y=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&y.push("label:"+i+";"),null==g[0]||void 0===g[0].raw)y.push.apply(y,g);else{0,y.push(g[0][0]);for(var b=g.length,w=1;w0&&void 0!==arguments[0]&&arguments[0];return function(t,n){var o,i=!1,s=!0;"number"===typeof n?o=n:"object"===f(n)&&n&&("wait"in n&&(o=+n.wait),"leading"in n&&(i=!!n.leading),"trailing"in n&&(s=!!n.trailing));var u=(0,r.useRef)(),c=(0,r.useRef)(),l=(0,r.useRef)(),p=(0,r.useRef)(),h=(0,r.useRef)(),v=(0,r.useRef)(),m=d((function(){var n=Date.now(),r=n-h.current,i=n-v.current;if(p.current&&clearTimeout(p.current),r>=o||e&&i>=o)p.current=void 0,h.current=void 0,s&&c.current&&(v.current=n,l.current=t.apply(u.current,c.current));else{var a=o-r,d=o-i,f=e?Math.min(a,d):a;p.current=setTimeout(m,f)}})),g=d((function(){var e=Date.now(),n=h.current;u.current=this;for(var r=arguments.length,a=new Array(r),s=0;s=o)&&void 0===p.current&&(v.current=e,p.current=setTimeout(m,o),i&&(l.current=t.apply(u.current,c.current))),l.current})),y=(0,r.useCallback)((function(){void 0!==p.current&&(clearTimeout(p.current),p.current=void 0),u.current=void 0,c.current=void 0,h.current=void 0,v.current=void 0}),[]),b=d((function(){return void 0!==p.current&&c.current&&(l.current=t.apply(u.current,c.current),y()),l.current}));return a(y),[g,{flush:b,cancel:y}]}};var h=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=p(e);return function(e,n){var o=l(e),a=(0,r.useState)(e),c=(0,s.Z)(a,2),f=c[0],p=c[1],h=(0,r.useRef)(f);function v(e){u(h.current,e)||(h.current=e,p(e))}var m=t(v,n),g=(0,s.Z)(m,2),y=g[0],b=g[1].cancel,w=d((function(e){b(),v(arguments.length>0?e:o.current)}));return i((function(){y(e)}),[e]),[f,{flush:w,cancel:b}]}};h(!1),h(!0),p(!1),p(!0);"undefined"!==typeof window&&window.requestIdleCallback&&window.cancelIdleCallback&&(window.requestIdleCallback,window.cancelIdleCallback);var v=function(e,t){var n,o;"number"===typeof t?n=t:"object"===f(t)&&null!==t&&("duration"in t&&(n=+t.duration),"function"===typeof t.algorithm&&(o=t.algorithm));var i=(0,r.useRef)(),s=(0,r.useRef)(),u=d(e),c=d((function(e){void 0===s.current&&(s.current=e);var t=e-s.current,r=n>0?t/n:1;r<0&&(r=0),r>1&&(r=1),r<1&&(i.current=requestAnimationFrame(c)),u(o?o(r):r)})),l=(0,r.useCallback)((function(){void 0!==i.current&&(cancelAnimationFrame(i.current),i.current=void 0),s.current=void 0}),[]),p=d((function(){l(),i.current=requestAnimationFrame(c)}));return a(l),[p,l]};var m=function(){var e=(0,r.useRef)(!1);return o((function(){e.current=!0})),e};var g=function(e){var t=(0,r.useRef)(e),n=(0,r.useRef)(e);return n.current=t.current,t.current=e,n};var y=function(e,t,n,o){var i,a,s;"boolean"===typeof o?i=o:"object"===f(o)&&null!==o&&("capture"in o&&(i=!!o.capture),"once"in o&&(a=!!o.once),"passive"in o&&(s=!!o.passive));var u=d(n);(0,r.useEffect)((function(){if(e&&e.addEventListener&&e.removeEventListener)return e.addEventListener(t,u,{capture:i,once:a,passive:s}),function(){e.removeEventListener(t,u,{capture:i})}}),[e,t,u,i,a,s])};"undefined"!==typeof window&&"undefined"!==typeof window.navigator&&window.navigator.onLine;var b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=m(),o=g(t),i=(0,r.useRef)();return n.current&&c(o.current,t)||(i.current=e()),i.current},w={ico:"image/x-icon",png:"image/png",gif:"image/gif"};"undefined"!==typeof window&&window.matchMedia;n(36808);function x(e,t){var n=(0,r.useRef)(),o=(0,r.useState)(t),a=(0,s.Z)(o,2),u=a[0],c=a[1],l=d((function(e){n.current=e,c(e)})),f=d((function(){c(t)}));return i((function(){n.current=void 0,c(t)}),[e]),i((function(){void 0===n.current&&c(t)}),[t]),[u,{set:l,remove:f}]}var _=function(e){return e?function(t,n,o){var a=o&&o.serialize?o.serialize:JSON.stringify,u=o&&o.deserialize?o.deserialize:JSON.parse,c=d((function(){try{var r=e.getItem(t);return null!==r?u(r):n}catch(o){return n}})),l=d((function(n){try{e.setItem(t,a(n))}catch(r){}})),p=d((function(){e.removeItem(t)})),h=(0,r.useState)(c()),v=(0,s.Z)(h,2),m=v[0],g=v[1],y=d((function(e){l(e),g(e)})),b=d((function(){p(),g(c())}));return i((function(){g(c())}),[t]),i((function(){null===e.getItem(t)&&g(n)}),[n]),(0,r.useEffect)((function(){function n(n){n.storageArea===e&&n.key===t&&g(c())}if(void 0!==("undefined"===typeof window?"undefined":f(window)))return window.addEventListener("storage",n),function(){return window.removeEventListener("storage",n)}}),[t]),[m,{set:y,remove:b}]}:x};_("undefined"!==typeof localStorage?localStorage:null),_("undefined"!==typeof sessionStorage?sessionStorage:null)},54309:function(e,t,n){"use strict";n.d(t,{iP:function(){return d}});var r=n(67294);var o=e=>{const t=r.useRef(e);return r.useEffect((()=>{t.current=e})),t};const i=(e,t=100,n=!1)=>{const i=o(e),a=r.useRef(),s=[t,n,i];function u(){a.current&&clearTimeout(a.current),a.current=void 0}function c(){a.current=void 0}return r.useEffect((()=>u),s),r.useCallback((function(){const e=arguments,{current:r}=a;if(void 0===r&&n)return a.current=setTimeout(c,t),i.current.apply(null,e);r&&clearTimeout(r),a.current=setTimeout((()=>{a.current=void 0,i.current.apply(null,e)}),t)}),s)};var a=r["undefined"!==typeof document&&void 0!==document.createElement?"useLayoutEffect":"useEffect"];var s=function(e,t,n,o){const i=r.useRef(n),s=r.useRef(o);a((()=>{i.current=n,s.current=o})),a((()=>{const n=e&&"current"in e?e.current:e;if(!n)return;let r=0;function o(...e){r||i.current.apply(this,e)}n.addEventListener(t,o);const a=s.current;return()=>{r=1,n.removeEventListener(t,o),a&&a()}}),[e,t])};const u={},c="undefined"===typeof window?null:window,l=()=>[document.documentElement.clientWidth,document.documentElement.clientHeight],d=(e=u)=>{const{wait:t,leading:n,initialWidth:o=0,initialHeight:a=0}=e,[d,f]=((e,t,n)=>{const o=r.useState(e);return[o[0],i(o[1],t,n)]})("undefined"===typeof document?[o,a]:l,t,n),p=()=>f(l);return s(c,"resize",p),s(c,"orientationchange",p),d}},36194:function(e,t,n){"use strict";n.d(t,{oY:function(){return o}});var r=n(34155),o={Linear:{None:function(e){return e}},Quadratic:{In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}},Cubic:{In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}},Quartic:{In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}},Quintic:{In:function(e){return e*e*e*e*e},Out:function(e){return--e*e*e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}},Sinusoidal:{In:function(e){return 1-Math.cos(e*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return.5*(1-Math.cos(Math.PI*e))}},Exponential:{In:function(e){return 0===e?0:Math.pow(1024,e-1)},Out:function(e){return 1===e?1:1-Math.pow(2,-10*e)},InOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))}},Circular:{In:function(e){return 1-Math.sqrt(1-e*e)},Out:function(e){return Math.sqrt(1- --e*e)},InOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}},Elastic:{In:function(e){return 0===e?0:1===e?1:-Math.pow(2,10*(e-1))*Math.sin(5*(e-1.1)*Math.PI)},Out:function(e){return 0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin(5*(e-.1)*Math.PI)+1},InOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?-.5*Math.pow(2,10*(e-1))*Math.sin(5*(e-1.1)*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin(5*(e-1.1)*Math.PI)+1}},Back:{In:function(e){var t=1.70158;return e*e*((t+1)*e-t)},Out:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},InOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)}},Bounce:{In:function(e){return 1-o.Bounce.Out(1-e)},Out:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},InOut:function(e){return e<.5?.5*o.Bounce.In(2*e):.5*o.Bounce.Out(2*e-1)+.5}}},i="undefined"===typeof self&&"undefined"!==typeof r&&r.hrtime?function(){var e=r.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!==typeof self&&void 0!==self.performance&&void 0!==self.performance.now?self.performance.now.bind(self.performance):void 0!==Date.now?Date.now:function(){return(new Date).getTime()},a=function(){function e(){this._tweens={},this._tweensAddedDuringUpdate={}}return e.prototype.getAll=function(){var e=this;return Object.keys(this._tweens).map((function(t){return e._tweens[t]}))},e.prototype.removeAll=function(){this._tweens={}},e.prototype.add=function(e){this._tweens[e.getId()]=e,this._tweensAddedDuringUpdate[e.getId()]=e},e.prototype.remove=function(e){delete this._tweens[e.getId()],delete this._tweensAddedDuringUpdate[e.getId()]},e.prototype.update=function(e,t){void 0===e&&(e=i()),void 0===t&&(t=!1);var n=Object.keys(this._tweens);if(0===n.length)return!1;for(;n.length>0;){this._tweensAddedDuringUpdate={};for(var r=0;r1?i(e[n],e[n-1],n-r):i(e[o],e[o+1>n?n:o+1],r-o)},Bezier:function(e,t){for(var n=0,r=e.length-1,o=Math.pow,i=s.Utils.Bernstein,a=0;a<=r;a++)n+=o(1-t,r-a)*o(t,a)*e[a]*i(r,a);return n},CatmullRom:function(e,t){var n=e.length-1,r=n*t,o=Math.floor(r),i=s.Utils.CatmullRom;return e[0]===e[n]?(t<0&&(o=Math.floor(r=n*(1+t))),i(e[(o-1+n)%n],e[o],e[(o+1)%n],e[(o+2)%n],r-o)):t<0?e[0]-(i(e[0],e[0],e[1],e[1],-r)-e[0]):t>1?e[n]-(i(e[n],e[n],e[n-1],e[n-1],r-n)-e[n]):i(e[o?o-1:0],e[o],e[n1;r--)n*=r;return e[t]=n,n}}(),CatmullRom:function(e,t,n,r,o){var i=.5*(n-e),a=.5*(r-t),s=o*o;return(2*t-2*n+i+a)*(o*s)+(-3*t+3*n-2*i-a)*s+i*o+t}}},u=function(){function e(){}return e.nextId=function(){return e._nextId++},e._nextId=0,e}(),c=new a,l=function(){function e(e,t){void 0===t&&(t=c),this._object=e,this._group=t,this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=o.Linear.None,this._interpolationFunction=s.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._id=u.nextId(),this._isChainStopped=!1,this._goToEnd=!1}return e.prototype.getId=function(){return this._id},e.prototype.isPlaying=function(){return this._isPlaying},e.prototype.isPaused=function(){return this._isPaused},e.prototype.to=function(e,t){return this._valuesEnd=Object.create(e),void 0!==t&&(this._duration=t),this},e.prototype.duration=function(e){return this._duration=e,this},e.prototype.start=function(e){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed)for(var t in this._reversed=!1,this._valuesStartRepeat)this._swapEndStartRepeatValues(t),this._valuesStart[t]=this._valuesStartRepeat[t];return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=void 0!==e?"string"===typeof e?i()+parseFloat(e):e:i(),this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this},e.prototype._setupProperties=function(e,t,n,r){for(var o in n){var i=e[o],a=Array.isArray(i),s=a?"array":typeof i,u=!a&&Array.isArray(n[o]);if("undefined"!==s&&"function"!==s){if(u){var c=n[o];if(0===c.length)continue;c=c.map(this._handleRelativeValue.bind(this,i)),n[o]=[i].concat(c)}if("object"!==s&&!a||!i||u)"undefined"===typeof t[o]&&(t[o]=i),a||(t[o]*=1),r[o]=u?n[o].slice().reverse():t[o]||0;else{for(var l in t[o]=a?[]:{},i)t[o][l]=i[l];r[o]=a?[]:{},this._setupProperties(i,t[o],n[o],r[o])}}}},e.prototype.stop=function(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this},e.prototype.end=function(){return this._goToEnd=!0,this.update(1/0),this},e.prototype.pause=function(e){return void 0===e&&(e=i()),this._isPaused||!this._isPlaying||(this._isPaused=!0,this._pauseStart=e,this._group&&this._group.remove(this)),this},e.prototype.resume=function(e){return void 0===e&&(e=i()),this._isPaused&&this._isPlaying?(this._isPaused=!1,this._startTime+=e-this._pauseStart,this._pauseStart=0,this._group&&this._group.add(this),this):this},e.prototype.stopChainedTweens=function(){for(var e=0,t=this._chainedTweens.length;eo)return!1;t&&this.start(e)}if(this._goToEnd=!1,e1?1:r;var a=this._easingFunction(r);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,a),this._onUpdateCallback&&this._onUpdateCallback(this._object,r),1===r){if(this._repeat>0){for(n in isFinite(this._repeat)&&this._repeat--,this._valuesStartRepeat)this._yoyo||"string"!==typeof this._valuesEnd[n]||(this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(this._valuesEnd[n])),this._yoyo&&this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n];return this._yoyo&&(this._reversed=!this._reversed),void 0!==this._repeatDelayTime?this._startTime=e+this._repeatDelayTime:this._startTime=e+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),!0}this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var s=0,u=this._chainedTweens.length;s0&&t.push(new THREE.VectorKeyframeTrack(r+".position",o,i)),a.length>0&&t.push(new THREE.QuaternionKeyframeTrack(r+".quaternion",o,a)),s.length>0&&t.push(new THREE.VectorKeyframeTrack(r+".scale",o,s)),t}function _(e,t,n){var r,o,i,a=!0;for(o=0,i=e.length;o=0;){var r=e[t];if(null!==r.value[n])return r;t--}return null}function E(e,t,n){for(;t>>0));switch(n=n.toLowerCase()){case"tga":t=Fe;break;default:t=Ve}return t}(n);if(void 0!==o){var i=o.load(n),a=e.extra;if(void 0!==a&&void 0!==a.technique&&!1===s(a.technique)){var u=a.technique;i.wrapS=u.wrapU?THREE.RepeatWrapping:THREE.ClampToEdgeWrapping,i.wrapT=u.wrapV?THREE.RepeatWrapping:THREE.ClampToEdgeWrapping,i.offset.set(u.offsetU||0,u.offsetV||0),i.repeat.set(u.repeatU||1,u.repeatV||1)}else i.wrapS=THREE.RepeatWrapping,i.wrapT=THREE.RepeatWrapping;return i}return console.warn("THREE.ColladaLoader: Loader for texture %s not found.",n),null}return console.warn("THREE.ColladaLoader: Couldn't create texture with ID:",e.id),null}n.name=e.name;var u=o.parameters;for(var c in u){var l=u[c];switch(c){case"diffuse":l.color&&n.color.fromArray(l.color),l.texture&&(n.map=a(l.texture));break;case"specular":l.color&&n.specular&&n.specular.fromArray(l.color),l.texture&&(n.specularMap=a(l.texture));break;case"bump":l.texture&&(n.normalMap=a(l.texture));break;case"ambient":l.texture&&(n.lightMap=a(l.texture));break;case"shininess":l.float&&n.shininess&&(n.shininess=l.float);break;case"emission":l.color&&n.emissive&&n.emissive.fromArray(l.color),l.texture&&(n.emissiveMap=a(l.texture))}}var d=u.transparent,p=u.transparency;if(void 0===p&&d&&(p={float:1}),void 0===d&&p&&(d={opaque:"A_ONE",data:{color:[1,1,1,1]}}),d&&p)if(d.data.texture)n.transparent=!0;else{var h=d.data.color;switch(d.opaque){case"A_ONE":n.opacity=h[3]*p.float;break;case"RGB_ZERO":n.opacity=1-h[0]*p.float;break;case"A_ZERO":n.opacity=1-h[3]*p.float;break;case"RGB_ONE":n.opacity=h[0]*p.float;break;default:console.warn('THREE.ColladaLoader: Invalid opaque type "%s" of transparent tag.',d.opaque)}n.opacity<1&&(n.transparent=!0)}return void 0!==i&&void 0!==i.technique&&1===i.technique.double_sided&&(n.side=THREE.DoubleSide),n}function Z(e){return f(qe.materials[e],K)}function $(e){for(var t=0;t0?u+l:u;t.inputs[d]={id:s,offset:c},t.stride=Math.max(t.stride,c+1),"TEXCOORD"===u&&(t.hasUV=!0);break;case"vcount":t.vcount=i(o.textContent);break;case"p":t.p=i(o.textContent)}}return t}function se(e){for(var t=0,n=0,r=e.length;n0&&t0&&p.addAttribute("position",new THREE.Float32BufferAttribute(o.array,o.stride)),i.array.length>0&&p.addAttribute("normal",new THREE.Float32BufferAttribute(i.array,i.stride)),u.array.length>0&&p.addAttribute("color",new THREE.Float32BufferAttribute(u.array,u.stride)),a.array.length>0&&p.addAttribute("uv",new THREE.Float32BufferAttribute(a.array,a.stride)),s.array.length>0&&p.addAttribute("uv2",new THREE.Float32BufferAttribute(s.array,s.stride)),c.length>0&&p.addAttribute("skinIndex",new THREE.Float32BufferAttribute(c,l)),d.length>0&&p.addAttribute("skinWeight",new THREE.Float32BufferAttribute(d,f)),r.data=p,r.type=e[0].type,r.materialKeys=h,r}function le(e,t,n,r){var o=e.p,i=e.stride,a=e.vcount;function s(e){for(var t=o[e+n]*c,i=t+c;t4)for(var g=1,y=p-2;g<=y;g++){h=l+i*g,v=l+i*(g+1);s(l+0*i),s(h),s(v)}l+=i*p}else for(d=0,f=o.length;d=t.limits.max&&(t.static=!0),t.middlePosition=(t.limits.min+t.limits.max)/2,t}function me(e){for(var t={sid:e.getAttribute("sid"),name:e.getAttribute("name")||"",attachments:[],transforms:[]},n=0;nr.limits.max||t=t.length&&t===k(e,0,t.length)}(t))e=(new u).parse(t);else{var r=k(t);if(!function(e){var t=["K","a","y","d","a","r","a","\\","F","B","X","\\","B","i","n","a","r","y","\\","\\"],n=0;function r(t){var r=e[t-1];return e=e.slice(n+t),n++,r}for(var o=0;o0,s="string"===typeof i.Content&&""!==i.Content;if(a||s){var u=this.parseImage(r[o]);n[i.RelativeFilename||i.Filename]=u}}}}for(var c in t){var l=t[c];void 0!==n[l]?t[c]=n[l]:t[c]=t[c].split("\\").pop()}return t},parseImage:function(e){var t,n=e.Content,r=e.RelativeFilename||e.Filename,o=r.slice(r.lastIndexOf(".")+1).toLowerCase();switch(o){case"bmp":t="image/bmp";break;case"jpg":case"jpeg":t="image/jpeg";break;case"png":t="image/png";break;case"tif":t="image/tiff";break;case"tga":if("function"!==typeof THREE.TGALoader)return void console.warn("FBXLoader: THREE.TGALoader is required to load TGA textures");null===THREE.Loader.Handlers.get(".tga")&&THREE.Loader.Handlers.add(/\.tga$/i,new THREE.TGALoader),t="image/tga";break;default:return void console.warn('FBXLoader: Image type "'+o+'" is not supported.')}if("string"===typeof n)return"data:"+t+";base64,"+n;var i=new Uint8Array(n);return window.URL.createObjectURL(new Blob([i],{type:t}))},parseTextures:function(t){var n=new Map;if("Texture"in e.Objects){var r=e.Objects.Texture;for(var o in r){var i=this.parseTexture(r[o],t);n.set(parseInt(o),i)}}return n},parseTexture:function(e,t){var n=this.loadTexture(e,t);n.ID=e.id,n.name=e.attrName;var r=e.WrapModeU,o=e.WrapModeV,i=void 0!==r?r.value:0,a=void 0!==o?o.value:0;if(n.wrapS=0===i?THREE.RepeatWrapping:THREE.ClampToEdgeWrapping,n.wrapT=0===a?THREE.RepeatWrapping:THREE.ClampToEdgeWrapping,"Scaling"in e){var s=e.Scaling.value;n.repeat.x=s[0],n.repeat.y=s[1]}return n},loadTexture:function(e,n){var r,o,i=this.textureLoader.path,a=t.get(e.id).children;void 0!==a&&a.length>0&&void 0!==n[a[0].ID]&&(0!==(r=n[a[0].ID]).indexOf("blob:")&&0!==r.indexOf("data:")||this.textureLoader.setPath(void 0));var s=e.FileName.slice(-3).toLowerCase();if("tga"===s){var u=THREE.Loader.Handlers.get(".tga");null===u?(console.warn("FBXLoader: TGALoader not found, creating empty placeholder texture for",r),o=new THREE.Texture):o=u.load(r)}else"psd"===s?(console.warn("FBXLoader: PSD textures are not supported, creating empty placeholder texture for",r),o=new THREE.Texture):o=this.textureLoader.load(r);return this.textureLoader.setPath(i),o},parseMaterials:function(t){var n=new Map;if("Material"in e.Objects){var r=e.Objects.Material;for(var o in r){var i=this.parseMaterial(r[o],t);null!==i&&n.set(parseInt(o),i)}}return n},parseMaterial:function(e,n){var r=e.id,o=e.attrName,i=e.ShadingModel;if("object"===typeof i&&(i=i.value),!t.has(r))return null;var a,s=this.parseParameters(e,n,r);switch(i.toLowerCase()){case"phong":a=new THREE.MeshPhongMaterial;break;case"lambert":a=new THREE.MeshLambertMaterial;break;default:console.warn('THREE.FBXLoader: unknown material type "%s". Defaulting to MeshPhongMaterial.',i),a=new THREE.MeshPhongMaterial({color:3342591})}return a.setValues(s),a.name=o,a},parseParameters:function(e,n,r){var o={};e.BumpFactor&&(o.bumpScale=e.BumpFactor.value),e.Diffuse?o.color=(new THREE.Color).fromArray(e.Diffuse.value):e.DiffuseColor&&"Color"===e.DiffuseColor.type&&(o.color=(new THREE.Color).fromArray(e.DiffuseColor.value)),e.DisplacementFactor&&(o.displacementScale=e.DisplacementFactor.value),e.Emissive?o.emissive=(new THREE.Color).fromArray(e.Emissive.value):e.EmissiveColor&&"Color"===e.EmissiveColor.type&&(o.emissive=(new THREE.Color).fromArray(e.EmissiveColor.value)),e.EmissiveFactor&&(o.emissiveIntensity=parseFloat(e.EmissiveFactor.value)),e.Opacity&&(o.opacity=parseFloat(e.Opacity.value)),o.opacity<1&&(o.transparent=!0),e.ReflectionFactor&&(o.reflectivity=e.ReflectionFactor.value),e.Shininess&&(o.shininess=e.Shininess.value),e.Specular?o.specular=(new THREE.Color).fromArray(e.Specular.value):e.SpecularColor&&"Color"===e.SpecularColor.type&&(o.specular=(new THREE.Color).fromArray(e.SpecularColor.value));var i=this;return t.get(r).children.forEach((function(e){var t=e.relationship;switch(t){case"Bump":o.bumpMap=i.getTexture(n,e.ID);break;case"DiffuseColor":o.map=i.getTexture(n,e.ID);break;case"DisplacementColor":o.displacementMap=i.getTexture(n,e.ID);break;case"EmissiveColor":o.emissiveMap=i.getTexture(n,e.ID);break;case"NormalMap":o.normalMap=i.getTexture(n,e.ID);break;case"ReflectionColor":o.envMap=i.getTexture(n,e.ID),o.envMap.mapping=THREE.EquirectangularReflectionMapping;break;case"SpecularColor":o.specularMap=i.getTexture(n,e.ID);break;case"TransparentColor":o.alphaMap=i.getTexture(n,e.ID),o.transparent=!0;break;case"AmbientColor":case"ShininessExponent":case"SpecularFactor":case"VectorDisplacementColor":default:console.warn("THREE.FBXLoader: %s map is not supported in three.js, skipping texture.",t)}})),o},getTexture:function(n,r){return"LayeredTexture"in e.Objects&&r in e.Objects.LayeredTexture&&(console.warn("THREE.FBXLoader: layered textures are not supported in three.js. Discarding all but first layer."),r=t.get(r).children[0].ID),n.get(r)},parseDeformers:function(){var n={},r={};if("Deformer"in e.Objects){var o=e.Objects.Deformer;for(var i in o){var a=o[i],s=t.get(parseInt(i));if("Skin"===a.attrType){var u=this.parseSkeleton(s,o);u.ID=i,s.parents.length>1&&console.warn("THREE.FBXLoader: skeleton attached to more than one geometry is not supported."),u.geometryID=s.parents[0].ID,n[i]=u}else if("BlendShape"===a.attrType){var c={id:i};c.rawTargets=this.parseMorphTargets(s,o),c.id=i,s.parents.length>1&&console.warn("THREE.FBXLoader: morph target attached to more than one geometry is not supported."),r[i]=c}}}return{skeletons:n,morphTargets:r}},parseSkeleton:function(e,t){var n=[];return e.children.forEach((function(e){var r=t[e.ID];if("Cluster"===r.attrType){var o={ID:e.ID,indices:[],weights:[],transform:(new THREE.Matrix4).fromArray(r.Transform.a),transformLink:(new THREE.Matrix4).fromArray(r.TransformLink.a),linkMode:r.Mode};"Indexes"in r&&(o.indices=r.Indexes.a,o.weights=r.Weights.a),n.push(o)}})),{rawBones:n,bones:[]}},parseMorphTargets:function(e,n){for(var r=[],o=0;o1?i=a:a.length>0?i=a[0]:(i=new THREE.MeshPhongMaterial({color:13421772}),a.push(i)),"color"in o.attributes&&a.forEach((function(e){e.vertexColors=THREE.VertexColors})),o.FBX_Deformer?(a.forEach((function(e){e.skinning=!0})),r=new THREE.SkinnedMesh(o,i)):r=new THREE.Mesh(o,i),r},createCurve:function(e,t){var n=e.children.reduce((function(e,n){return t.has(n.ID)&&(e=t.get(n.ID)),e}),null),r=new THREE.LineBasicMaterial({color:3342591,linewidth:1});return new THREE.Line(n,r)},setModelTransforms:function(e,t){var n={};"RotationOrder"in t&&(n.eulerOrder=parseInt(t.RotationOrder.value)),"Lcl_Translation"in t&&(n.translation=t.Lcl_Translation.value),"RotationOffset"in t&&(n.rotationOffset=t.RotationOffset.value),"Lcl_Rotation"in t&&(n.rotation=t.Lcl_Rotation.value),"PreRotation"in t&&(n.preRotation=t.PreRotation.value),"PostRotation"in t&&(n.postRotation=t.PostRotation.value),"Lcl_Scaling"in t&&(n.scale=t.Lcl_Scaling.value);var r=w(n);e.applyMatrix(r)},setLookAtProperties:function(r,o){"LookAtProperty"in o&&t.get(r.ID).children.forEach((function(t){if("LookAtProperty"===t.relationship){var o=e.Objects.Model[t.ID];if("Lcl_Translation"in o){var i=o.Lcl_Translation.value;void 0!==r.target?(r.target.position.fromArray(i),n.add(r.target)):r.lookAt((new THREE.Vector3).fromArray(i))}}}))},bindSkeleton:function(e,n,r){var o=this.parsePoseNodes();for(var i in e){var a=e[i];t.get(parseInt(a.ID)).parents.forEach((function(e){if(n.has(e.ID)){var i=e.ID;t.get(i).parents.forEach((function(e){r.has(e.ID)&&r.get(e.ID).bind(new THREE.Skeleton(a.bones),o[e.ID])}))}}))}},parsePoseNodes:function(){var t={};if("Pose"in e.Objects){var n=e.Objects.Pose;for(var r in n)if("BindPose"===n[r].attrType){var o=n[r].PoseNode;Array.isArray(o)?o.forEach((function(e){t[e.Node]=(new THREE.Matrix4).fromArray(e.Matrix.a)})):t[o.Node]=(new THREE.Matrix4).fromArray(o.Matrix.a)}}return t},createAmbientLight:function(){if("GlobalSettings"in e&&"AmbientColor"in e.GlobalSettings){var t=e.GlobalSettings.AmbientColor.value,r=t[0],o=t[1],i=t[2];if(0!==r||0!==o||0!==i){var a=new THREE.Color(r,o,i);n.add(new THREE.AmbientLight(a,1))}}},setupMorphMaterials:function(){n.traverse((function(e){if(e.isMesh&&(e.geometry.morphAttributes.position||e.geometry.morphAttributes.normal)){var t=e.uuid,r=e.material.uuid,o=!1;n.traverse((function(e){e.isMesh&&e.material.uuid===r&&e.uuid!==t&&(o=!0)})),!0===o&&(e.material=e.material.clone()),e.material.morphTargets=!0}}))}},i.prototype={constructor:i,parse:function(n){var r=new Map;if("Geometry"in e.Objects){var o=e.Objects.Geometry;for(var i in o){var a=t.get(parseInt(i)),s=this.parseGeometry(a,o[i],n);r.set(parseInt(i),s)}}return r},parseGeometry:function(e,t,n){switch(t.attrType){case"Mesh":return this.parseMeshGeometry(e,t,n);case"NurbsCurve":return this.parseNurbsGeometry(t)}},parseMeshGeometry:function(t,n,r){var o=r.skeletons,i=r.morphTargets,a=t.parents.map((function(t){return e.Objects.Model[t.ID]}));if(0!==a.length){var s=t.children.reduce((function(e,t){return void 0!==o[t.ID]&&(e=o[t.ID]),e}),null),u=t.children.reduce((function(e,t){return void 0!==i[t.ID]&&(e=i[t.ID]),e}),null),c=a[0],l={};"RotationOrder"in c&&(l.eulerOrder=c.RotationOrder.value),"GeometricTranslation"in c&&(l.translation=c.GeometricTranslation.value),"GeometricRotation"in c&&(l.rotation=c.GeometricRotation.value),"GeometricScaling"in c&&(l.scale=c.GeometricScaling.value);var d=w(l);return this.genGeometry(n,s,u,d)}},genGeometry:function(e,t,n,r){var o=new THREE.BufferGeometry;e.attrName&&(o.name=e.attrName);var i=this.parseGeoNode(e,t),a=this.genBuffers(i),s=new THREE.Float32BufferAttribute(a.vertex,3);if(r.applyToBufferAttribute(s),o.addAttribute("position",s),a.colors.length>0&&o.addAttribute("color",new THREE.Float32BufferAttribute(a.colors,3)),t&&(o.addAttribute("skinIndex",new THREE.Uint16BufferAttribute(a.weightsIndices,4)),o.addAttribute("skinWeight",new THREE.Float32BufferAttribute(a.vertexWeights,4)),o.FBX_Deformer=t),a.normal.length>0){var u=new THREE.Float32BufferAttribute(a.normal,3);(new THREE.Matrix3).getNormalMatrix(r).applyToBufferAttribute(u),o.addAttribute("normal",u)}if(a.uvs.forEach((function(e,t){var n="uv"+(t+1).toString();0===t&&(n="uv"),o.addAttribute(n,new THREE.Float32BufferAttribute(a.uvs[t],2))})),i.material&&"AllSame"!==i.material.mappingType){var c=a.materialIndex[0],l=0;if(a.materialIndex.forEach((function(e,t){e!==c&&(o.addGroup(l,t-l,c),c=e,l=t)})),o.groups.length>0){var d=o.groups[o.groups.length-1],f=d.start+d.count;f!==a.materialIndex.length&&o.addGroup(f,a.materialIndex.length-f,c)}0===o.groups.length&&o.addGroup(0,a.materialIndex.length,a.materialIndex[0])}return this.addMorphTargets(o,e,n,r),o},parseGeoNode:function(e,t){var n={};if(n.vertexPositions=void 0!==e.Vertices?e.Vertices.a:[],n.vertexIndices=void 0!==e.PolygonVertexIndex?e.PolygonVertexIndex.a:[],e.LayerElementColor&&(n.color=this.parseVertexColors(e.LayerElementColor[0])),e.LayerElementMaterial&&(n.material=this.parseMaterialIndices(e.LayerElementMaterial[0])),e.LayerElementNormal&&(n.normal=this.parseNormals(e.LayerElementNormal[0])),e.LayerElementUV){n.uv=[];for(var r=0;e.LayerElementUV[r];)n.uv.push(this.parseUVs(e.LayerElementUV[r])),r++}return n.weightTable={},null!==t&&(n.skeleton=t,t.rawBones.forEach((function(e,t){e.indices.forEach((function(r,o){void 0===n.weightTable[r]&&(n.weightTable[r]=[]),n.weightTable[r].push({id:t,weight:e.weights[o]})}))}))),n},genBuffers:function(e){var t={vertex:[],normal:[],colors:[],uvs:[],materialIndex:[],vertexWeights:[],weightsIndices:[]},n=0,r=0,o=!1,i=[],a=[],s=[],u=[],c=[],l=[],d=this;return e.vertexIndices.forEach((function(f,p){var v=!1;f<0&&(f^=-1,v=!0);var m=[],g=[];if(i.push(3*f,3*f+1,3*f+2),e.color){var y=h(p,n,f,e.color);s.push(y[0],y[1],y[2])}if(e.skeleton){if(void 0!==e.weightTable[f]&&e.weightTable[f].forEach((function(e){g.push(e.weight),m.push(e.id)})),g.length>4){o||(console.warn("THREE.FBXLoader: Vertex has more than 4 skinning weights assigned to vertex. Deleting additional weights."),o=!0);var b=[0,0,0,0],w=[0,0,0,0];g.forEach((function(e,t){var n=e,r=m[t];w.forEach((function(e,t,o){if(n>e){o[t]=n,n=e;var i=b[t];b[t]=r,r=i}}))})),m=b,g=w}for(;g.length<4;)g.push(0),m.push(0);for(var x=0;x<4;++x)c.push(g[x]),l.push(m[x])}if(e.normal){y=h(p,n,f,e.normal);a.push(y[0],y[1],y[2])}if(e.material&&"AllSame"!==e.material.mappingType)var _=h(p,n,f,e.material)[0];e.uv&&e.uv.forEach((function(e,t){var r=h(p,n,f,e);void 0===u[t]&&(u[t]=[]),u[t].push(r[0]),u[t].push(r[1])})),r++,v&&(d.genFace(t,e,i,_,a,s,u,c,l,r),n++,r=0,i=[],a=[],s=[],u=[],c=[],l=[])})),t},genFace:function(e,t,n,r,o,i,a,s,u,c){for(var l=2;l1&&console.warn("THREE.FBXLoader: Encountered an animation stack with multiple layers, this is currently not supported. Ignoring subsequent layers.");var s=n.get(a[0].ID);o[i]={name:r[i].attrName,layer:s}}return o},addClip:function(e){var t=[],n=this;return e.layer.forEach((function(e){t=t.concat(n.generateTracks(e))})),new THREE.AnimationClip(e.name,-1,t)},generateTracks:function(e){var t=[],n=new THREE.Vector3,r=new THREE.Quaternion,o=new THREE.Vector3;if(e.transform&&e.transform.decompose(n,r,o),n=n.toArray(),r=(new THREE.Euler).setFromQuaternion(r).toArray(),o=o.toArray(),void 0!==e.T&&Object.keys(e.T.curves).length>0){var i=this.generateVectorTrack(e.modelName,e.T.curves,n,"position");void 0!==i&&t.push(i)}if(void 0!==e.R&&Object.keys(e.R.curves).length>0){var a=this.generateRotationTrack(e.modelName,e.R.curves,r,e.preRotations,e.postRotations);void 0!==a&&t.push(a)}if(void 0!==e.S&&Object.keys(e.S.curves).length>0){var s=this.generateVectorTrack(e.modelName,e.S.curves,o,"scale");void 0!==s&&t.push(s)}if(void 0!==e.DeformPercent){var u=this.generateMorphTrack(e);void 0!==u&&t.push(u)}return t},generateVectorTrack:function(e,t,n,r){var o=this.getTimesForAllAxes(t),i=this.getKeyframeTrackValues(o,t,n);return new THREE.VectorKeyframeTrack(e+"."+r,o,i)},generateRotationTrack:function(e,t,n,r,o){void 0!==t.x&&(this.interpolateRotations(t.x),t.x.values=t.x.values.map(THREE.Math.degToRad)),void 0!==t.y&&(this.interpolateRotations(t.y),t.y.values=t.y.values.map(THREE.Math.degToRad)),void 0!==t.z&&(this.interpolateRotations(t.z),t.z.values=t.z.values.map(THREE.Math.degToRad));var i=this.getTimesForAllAxes(t),a=this.getKeyframeTrackValues(i,t,n);void 0!==r&&((r=r.map(THREE.Math.degToRad)).push("ZYX"),r=(new THREE.Euler).fromArray(r),r=(new THREE.Quaternion).setFromEuler(r)),void 0!==o&&((o=o.map(THREE.Math.degToRad)).push("ZYX"),o=(new THREE.Euler).fromArray(o),o=(new THREE.Quaternion).setFromEuler(o).inverse());for(var s=new THREE.Quaternion,u=new THREE.Euler,c=[],l=0;l=180){for(var i=o/180,a=r/i,s=n+a,u=e.times[t-1],c=(e.times[t]-u)/i,l=u+c,d=[],f=[];l1&&(n=e[1].replace(/^(\w+)::/,""),r=e[2]),{id:t,name:n,type:r}},parseNodeProperty:function(e,t,n){var r=t[1].replace(/^"/,"").replace(/"$/,"").trim(),o=t[2].replace(/^"/,"").replace(/"$/,"").trim();"Content"===r&&","===o&&(o=n.replace(/"/g,"").replace(/,$/,"").trim());var i=this.getCurrentNode();if("Properties70"!==i.name){if("C"===r){var a=o.split(",").slice(1),s=parseInt(a[0]),u=parseInt(a[1]),c=o.split(",").slice(3);r="connections",function(e,t){for(var n=0,r=e.length,o=t.length;n=e.size():e.getOffset()+160+16>=e.size()},parseNode:function(e,t){var n={},r=t>=7500?e.getUint64():e.getUint32(),o=t>=7500?e.getUint64():e.getUint32(),i=(t>=7500?e.getUint64():e.getUint32(),e.getUint8()),a=e.getString(i);if(0===r)return null;for(var s=[],u=0;u0?s[0]:"",l=s.length>1?s[1]:"",d=s.length>2?s[2]:"";for(n.singleProperty=1===o&&e.getOffset()===r;r>e.getOffset();){var f=this.parseNode(e,t);null!==f&&this.parseSubNode(a,n,f)}return n.propertyList=s,"number"===typeof c&&(n.id=c),""!==l&&(n.attrName=l),""!==d&&(n.attrType=d),""!==a&&(n.name=a),n},parseSubNode:function(e,t,n){if(!0===n.singleProperty){var r=n.propertyList[0];Array.isArray(r)?(t[n.name]=n,n.a=r):t[n.name]=r}else if("Connections"===e&&"C"===n.name){var o=[];n.propertyList.forEach((function(e,t){0!==t&&o.push(e)})),void 0===t.connections&&(t.connections=[]),t.connections.push(o)}else if("Properties70"===n.name){Object.keys(n).forEach((function(e){t[e]=n[e]}))}else if("Properties70"===e&&"P"===n.name){var i,a=n.propertyList[0],s=n.propertyList[1],u=n.propertyList[2],c=n.propertyList[3];0===a.indexOf("Lcl ")&&(a=a.replace("Lcl ","Lcl_")),0===s.indexOf("Lcl ")&&(s=s.replace("Lcl ","Lcl_")),i="Color"===s||"ColorRGB"===s||"Vector"===s||"Vector3D"===s||0===s.indexOf("Lcl_")?[n.propertyList[4],n.propertyList[5],n.propertyList[6]]:n.propertyList[4],t[a]={type:s,type2:u,flag:c,value:i}}else void 0===t[n.name]?"number"===typeof n.id?(t[n.name]={},t[n.name][n.id]=n):t[n.name]=n:"PoseNode"===n.name?(Array.isArray(t[n.name])||(t[n.name]=[t[n.name]]),t[n.name].push(n)):void 0===t[n.name][n.id]&&(t[n.name][n.id]=n)},parseProperty:function(e){var t=e.getString(1);switch(t){case"C":return e.getBoolean();case"D":return e.getFloat64();case"F":return e.getFloat32();case"I":return e.getInt32();case"L":return e.getInt64();case"R":var n=e.getUint32();return e.getArrayBuffer(n);case"S":n=e.getUint32();return e.getString(n);case"Y":return e.getInt16();case"b":case"c":case"d":case"f":case"i":case"l":var r=e.getUint32(),o=e.getUint32(),i=e.getUint32();if(0===o)switch(t){case"b":case"c":return e.getBooleanArray(r);case"d":return e.getFloat64Array(r);case"f":return e.getFloat32Array(r);case"i":return e.getInt32Array(r);case"l":return e.getInt64Array(r)}"undefined"===typeof Zlib&&console.error("THREE.FBXLoader: External library Inflate.min.js required, obtain or import from https://github.com/imaya/zlib.js");var a=new c(new Zlib.Inflate(new Uint8Array(e.getArrayBuffer(i))).decompress().buffer);switch(t){case"b":case"c":return a.getBooleanArray(r);case"d":return a.getFloat64Array(r);case"f":return a.getFloat32Array(r);case"i":return a.getInt32Array(r);case"l":return a.getInt64Array(r)}default:throw new Error("THREE.FBXLoader: Unknown property type "+t)}}},c.prototype={constructor:c,getOffset:function(){return this.offset},size:function(){return this.dv.buffer.byteLength},skip:function(e){this.offset+=e},getBoolean:function(){return 1===(1&this.getUint8())},getBooleanArray:function(e){for(var t=[],n=0;n=0&&(t=t.slice(0,r)),THREE.LoaderUtils.decodeText(new Uint8Array(t))}},l.prototype={constructor:l,add:function(e,t){this[e]=t}};var p=[];function h(e,t,n,r){var o;switch(r.mappingType){case"ByPolygonVertex":o=e;break;case"ByPolygon":o=t;break;case"ByVertice":o=n;break;case"AllSame":o=r.indices[0];break;default:console.warn("THREE.FBXLoader: unknown attribute mapping type "+r.mappingType)}"IndexToDirect"===r.referenceType&&(o=r.indices[o]);var i=o*r.dataSize,a=i+r.dataSize;return function(e,t,n,r){for(var o=n,i=0;ot;t++)r.push(this._createVertex(t));for(this.cellShape=new THREE.Shape,this.cellShape.moveTo(r[0].x,r[0].y),t=1;6>t;t++)this.cellShape.lineTo(r[t].x,r[t].y);this.cellShape.lineTo(r[0].x,r[0].y),this.cellShape.autoClose=!0,this.cellGeo=new THREE.Geometry,this.cellGeo.vertices=r,this.cellGeo.verticesNeedUpdate=!0,this.cellShapeGeo=new THREE.ShapeGeometry(this.cellShape),this._cellWidth=2*this.cellSize,this._cellLength=.5*n.SQRT3*this._cellWidth,this._hashDelimeter=".",this._directions=[new n.Cell(1,-1,0),new n.Cell(1,0,-1),new n.Cell(0,1,-1),new n.Cell(-1,1,0),new n.Cell(-1,0,1),new n.Cell(0,-1,1)],this._diagonals=[new n.Cell(2,-1,-1),new n.Cell(1,1,-2),new n.Cell(-1,2,-1),new n.Cell(-2,1,1),new n.Cell(-1,-1,2),new n.Cell(1,-2,1)],this._list=[],this._vec3=new THREE.Vector3,this._cel=new n.Cell,this._conversionVec=new THREE.Vector3,this._geoCache=[],this._matCache=[]},n.HexGrid.TWO_THIRDS=2/3,n.HexGrid.prototype={cellToPixel:function(e){return this._vec3.x=e.q*this._cellWidth*.75,this._vec3.y=e.h,this._vec3.z=-(e.s-e.r)*this._cellLength*.5,this._vec3},pixelToCell:function(e){var t=e.x*(n.HexGrid.TWO_THIRDS/this.cellSize),r=(-e.x/3+n.SQRT3/3*e.z)/this.cellSize;return this._cel.set(t,r,-t-r),this._cubeRound(this._cel)},getCellAt:function(e){var t=e.x*(n.HexGrid.TWO_THIRDS/this.cellSize),r=(-e.x/3+n.SQRT3/3*e.z)/this.cellSize;return this._cel.set(t,r,-t-r),this._cubeRound(this._cel),this.cells[this.cellToHash(this._cel)]},getNeighbors:function(e,t,n){var r,o,i=this._directions.length;for(this._list.length=0,r=0;i>r;r++)this._cel.copy(e),this._cel.add(this._directions[r]),!(o=this.cells[this.cellToHash(this._cel)])||n&&!n(e,o)||this._list.push(o);if(t)for(r=0;i>r;r++)this._cel.copy(e),this._cel.add(this._diagonals[r]),!(o=this.cells[this.cellToHash(this._cel)])||n&&!n(e,o)||this._list.push(o);return this._list},getRandomCell:function(){var e,t=0,r=n.Tools.randomInt(0,this.numCells);for(e in this.cells){if(t===r)return this.cells[e];t++}return this.cells[e]},cellToHash:function(e){return e.q+this._hashDelimeter+e.r+this._hashDelimeter+e.s},distance:function(e,t){return Math.max(Math.abs(e.q-t.q),Math.abs(e.r-t.r),Math.abs(e.s-t.s))+(t.h-e.h)},clearPath:function(){var e,t;for(e in this.cells)(t=this.cells[e])._calcCost=0,t._priority=0,t._parent=null,t._visited=!1},traverse:function(e){var t;for(t in this.cells)e(this.cells[t])},generateTile:function(e,t,r){var o=Math.abs(e.h);1>o&&(o=1);var i=this._geoCache[o];i||(this.extrudeSettings.amount=o,i=new THREE.ExtrudeGeometry(this.cellShape,this.extrudeSettings),this._geoCache[o]=i);var a=new n.Tile({size:this.cellSize,scale:t,cell:e,geometry:i,material:r});return e.tile=a,a},generateTiles:function(e){e=e||{};var t,r,o,i=[],a={tileScale:.95,cellSize:this.cellSize,material:null,extrudeSettings:{amount:1,bevelEnabled:!0,bevelSegments:1,steps:1,bevelSize:.5,bevelThickness:.5}};for(t in a=n.Tools.merge(a,e),this.cellSize=a.cellSize,this._cellWidth=2*this.cellSize,this._cellLength=.5*n.SQRT3*this._cellWidth,this.autogenerated=!0,this.extrudeSettings=a.extrudeSettings,this.cells)o=this.cells[t],(r=this.generateTile(o,a.tileScale,a.material)).position.copy(this.cellToPixel(o)),r.position.y=0,i.push(r);return i},generateTilePoly:function(e){e||(e=new THREE.MeshBasicMaterial({color:2405631}));var t=new THREE.Mesh(this.cellShapeGeo,e);return this._vec3.set(1,0,0),t.rotateOnAxis(this._vec3,n.PI/2),t},generate:function(e){var t,r,o,i;for(e=e||{},this.size="undefined"==typeof e.size?this.size:e.size,t=-this.size;to;o++)for(i=-e;e+1>i;i++)if(a=-o-i,Math.abs(o)<=e&&Math.abs(i)<=e&&Math.abs(a)<=e){this._cel.set(o,i,a);var u=new THREE.Line(s,r);u.position.copy(this.cellToPixel(this._cel)),u.rotation.x=90*n.DEG_TO_RAD,t.add(u)}},add:function(e){var t=this.cellToHash(e);if(!this.cells[t])return this.cells[t]=e,this.numCells++,e},remove:function(e){var t=this.cellToHash(e);this.cells[t]&&(delete this.cells[t],this.numCells--)},dispose:function(){this.cells=null,this.numCells=0,this.cellShape=null,this.cellGeo.dispose(),this.cellGeo=null,this.cellShapeGeo.dispose(),this.cellShapeGeo=null,this._list=null,this._vec3=null,this._conversionVec=null,this._geoCache=null,this._matCache=null},load:function(e,t,r){var o=this;n.Tools.getJSON({url:e,callback:function(e){o.fromJSON(e),t.call(r||null,e)},cache:!1,scope:o})},fromJSON:function(e){var t,r,o=e.cells;for(this.cells={},this.numCells=0,this.size=e.size,this.cellSize=e.cellSize,this._cellWidth=2*this.cellSize,this._cellLength=.5*n.SQRT3*this._cellWidth,this.extrudeSettings=e.extrudeSettings,this.autogenerated=e.autogenerated,t=0;ti&&o>a?t=-n-r:i>a?n=-t-r:r=-t-n,this._cel.set(t,n,r)}},n.HexGrid.prototype.constructor=n.HexGrid,n.SqrGrid=function(e){e=e||{},this.type=n.SQR,this.size=5,this.cellSize="undefined"==typeof e.cellSize?10:e.cellSize,this.cells={},this.numCells=0,this.extrudeSettings=null,this.autogenerated=!1;var t=[];t.push(new THREE.Vector3),t.push(new THREE.Vector3(-this.cellSize,this.cellSize)),t.push(new THREE.Vector3(this.cellSize,this.cellSize)),t.push(new THREE.Vector3(this.cellSize,-this.cellSize)),this.cellShape=new THREE.Shape,this.cellShape.moveTo(-this.cellSize,-this.cellSize),this.cellShape.lineTo(-this.cellSize,this.cellSize),this.cellShape.lineTo(this.cellSize,this.cellSize),this.cellShape.lineTo(this.cellSize,-this.cellSize),this.cellShape.lineTo(-this.cellSize,-this.cellSize),this.cellGeo=new THREE.Geometry,this.cellGeo.vertices=t,this.cellGeo.verticesNeedUpdate=!0,this.cellShapeGeo=new THREE.ShapeGeometry(this.cellShape),this._fullCellSize=2*this.cellSize,this._hashDelimeter=".",this._directions=[new n.Cell(1,0,0),new n.Cell(0,-1,0),new n.Cell(-1,0,0),new n.Cell(0,1,0)],this._diagonals=[new n.Cell(-1,-1,0),new n.Cell(-1,1,0),new n.Cell(1,1,0),new n.Cell(1,-1,0)],this._list=[],this._vec3=new THREE.Vector3,this._cel=new n.Cell,this._conversionVec=new THREE.Vector3,this._geoCache=[],this._matCache=[]},n.SqrGrid.prototype={cellToPixel:function(e){return this._vec3.x=e.q*this._fullCellSize,this._vec3.y=e.h,this._vec3.z=e.r*this._fullCellSize,this._vec3},pixelToCell:function(e){var t=Math.round(e.x/this._fullCellSize),n=Math.round(e.z/this._fullCellSize);return this._cel.set(t,n,0)},getCellAt:function(e){var t=Math.round(e.x/this._fullCellSize),n=Math.round(e.z/this._fullCellSize);return this._cel.set(t,n),this.cells[this.cellToHash(this._cel)]},getNeighbors:function(e,t,n){var r,o,i=this._directions.length;for(this._list.length=0,r=0;i>r;r++)this._cel.copy(e),this._cel.add(this._directions[r]),!(o=this.cells[this.cellToHash(this._cel)])||n&&!n(e,o)||this._list.push(o);if(t)for(r=0;i>r;r++)this._cel.copy(e),this._cel.add(this._diagonals[r]),!(o=this.cells[this.cellToHash(this._cel)])||n&&!n(e,o)||this._list.push(o);return this._list},getRandomCell:function(){var e,t=0,r=n.Tools.randomInt(0,this.numCells);for(e in this.cells){if(t===r)return this.cells[e];t++}return this.cells[e]},cellToHash:function(e){return e.q+this._hashDelimeter+e.r},distance:function(e,t){return Math.max(Math.abs(e.q-t.q),Math.abs(e.r-t.r))+(t.h-e.h)},clearPath:function(){var e,t;for(e in this.cells)(t=this.cells[e])._calcCost=0,t._priority=0,t._parent=null,t._visited=!1},traverse:function(e){var t;for(t in this.cells)e(this.cells[t])},generateTile:function(e,t,r){var o=Math.abs(e.h);1>o&&(o=1);var i=this._geoCache[o];i||(this.extrudeSettings.amount=o,i=new THREE.ExtrudeGeometry(this.cellShape,this.extrudeSettings),this._geoCache[o]=i);var a=new n.Tile({size:this.cellSize,scale:t,cell:e,geometry:i,material:r});return e.tile=a,a},generateTiles:function(e){e=e||{};var t,r,o,i=[],a={tileScale:.95,cellSize:this.cellSize,material:null,extrudeSettings:{amount:1,bevelEnabled:!0,bevelSegments:1,steps:1,bevelSize:.5,bevelThickness:.5}};for(t in a=n.Tools.merge(a,e),this.cellSize=a.cellSize,this._fullCellSize=2*this.cellSize,this.autogenerated=!0,this.extrudeSettings=a.extrudeSettings,this.cells)o=this.cells[t],(r=this.generateTile(o,a.tileScale,a.material)).position.copy(this.cellToPixel(o)),r.position.y=0,i.push(r);return i},generateTilePoly:function(e){e||(e=new THREE.MeshBasicMaterial({color:2405631}));var t=new THREE.Mesh(this.cellShapeGeo,e);return this._vec3.set(1,0,0),t.rotateOnAxis(this._vec3,n.PI/2),t},generate:function(e){e=e||{},this.size="undefined"==typeof e.size?this.size:e.size;var t,r,o,i=Math.ceil(this.size/2);for(t=-i;i>t;t++)for(r=-i;i>r;r++)o=new n.Cell(t,r+1),this.add(o)},generateOverlay:function(e,t,r){var o,i,a=Math.ceil(e/2);for(o=-a;a>o;o++)for(i=-a;a>i;i++){this._cel.set(o,i);var s=new THREE.Line(this.cellGeo,r);s.position.copy(this.cellToPixel(this._cel)),s.rotation.x=90*n.DEG_TO_RAD,t.add(s)}},add:function(e){var t=this.cellToHash(e);if(!this.cells[t])return this.cells[t]=e,this.numCells++,e},remove:function(e){var t=this.cellToHash(e);this.cells[t]&&(delete this.cells[t],this.numCells--)},dispose:function(){this.cells=null,this.numCells=0,this.cellShape=null,this.cellGeo.dispose(),this.cellGeo=null,this.cellShapeGeo.dispose(),this.cellShapeGeo=null,this._list=null,this._vec3=null,this._conversionVec=null,this._geoCache=null,this._matCache=null},load:function(e,t,r){n.Tools.getJSON({url:e,callback:function(e){this.fromJSON(e),t.call(r||null,e)},cache:!1,scope:this})},fromJSON:function(e){var t,r,o=e.cells;for(this.cells={},this.numCells=0,this.size=e.size,this.cellSize=e.cellSize,this._fullCellSize=2*this.cellSize,this.extrudeSettings=e.extrudeSettings,this.autogenerated=e.autogenerated,t=0;tt;t++)this.add(r[t])},remove:function(e){var t=this.getNode(e);return!(!t||t.free)&&(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.prev||(this.first=t.next),t.next||(this.last=t.prev),t.free=!0,t.prev=null,t.next=null,this.length--,!0)},shift:function(){var e=this.first;return 0===this.length?null:(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),this.first=e.next,e.next||(this.last=null),e.free=!0,e.prev=null,e.next=null,this.length--,e.obj)},pop:function(){var e=this.last;return 0===this.length?null:(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),this.last=e.prev,e.prev||(this.first=null),e.free=!0,e.prev=null,e.next=null,this.length--,e.obj)},concat:function(e){for(var t=e.first;t;)this.add(t.obj),t=t.next},clear:function(){for(var e=this.first;e;)e.free=!0,e=e.next;this.first=null,this.length=0},dispose:function(){for(var e=this.first;e;)e.obj=null,e=e.next;this.first=null,this.objToNodeMap=null},dump:function(e){console.log("===================="+e+"=====================");for(var t=this.first;t;)console.log("{"+t.obj.toString()+"} previous="+(t.prev?t.prev.obj:"NULL")),t=t.next();console.log("==================================="),console.log("Last: {"+(this.last?this.last.obj:"NULL")+"} First: {"+(this.first?this.first.obj:"NULL")+"}")}}).constructor=t,n.LinkedList=t}(),function(){var e=function(e,t,n,r,o){this._listener=t,this.isOnce=n,this.context=r,this.signal=e,this._priority=o||0};(e.prototype={active:!0,params:null,execute:function(e){var t,n;return this.active&&this._listener&&(n=this.params?this.params.concat(e):e,t=this._listener.apply(this.context,n),this.isOnce&&this.detach()),t},detach:function(){return this.isBound()?this.signal.remove(this._listener,this.context):null},isBound:function(){return!!this.signal&&!!this._listener},_destroy:function(){delete this.signal,delete this._listener,delete this.context},toString:function(){return"[SignalBinding isOnce:"+this.isOnce+", isBound:"+this.isBound()+", active:"+this.active+"]"}}).constructor=e;var t=function(){this._bindings=[],this._prevParams=null;var e=this;this.dispatch=function(){t.prototype.dispatch.apply(e,arguments)}};t.prototype={memorize:!1,_shouldPropagate:!0,active:!0,validateListener:function(e,t){if("function"!=typeof e)throw new Error("Signal: listener is a required param of {fn}() and should be a Function.".replace("{fn}",t))},_registerListener:function(t,n,r,o){var i,a=this._indexOfListener(t,r);if(-1!==a){if((i=this._bindings[a]).isOnce!==n)throw new Error("You cannot add"+(n?"":"Once")+"() then add"+(n?"Once":"")+"() the same listener without removing the relationship first.")}else i=new e(this,t,n,r,o),this._addBinding(i);return this.memorize&&this._prevParams&&i.execute(this._prevParams),i},_addBinding:function(e){var t=this._bindings.length;do{t--}while(this._bindings[t]&&e._priority<=this._bindings[t]._priority);this._bindings.splice(t+1,0,e)},_indexOfListener:function(e,t){for(var n,r=this._bindings.length;r--;)if((n=this._bindings[r])._listener===e&&n.context===t)return r;return-1},has:function(e,t){return-1!==this._indexOfListener(e,t)},add:function(e,t,n){return this.validateListener(e,"add"),this._registerListener(e,!1,t,n)},addOnce:function(e,t,n){return this.validateListener(e,"addOnce"),this._registerListener(e,!0,t,n)},remove:function(e,t){this.validateListener(e,"remove");var n=this._indexOfListener(e,t);return-1!==n&&(this._bindings[n]._destroy(),this._bindings.splice(n,1)),e},removeAll:function(e){"undefined"==typeof e&&(e=null);for(var t=this._bindings.length;t--;)e?this._bindings[t].context===e&&(this._bindings[t]._destroy(),this._bindings.splice(t,1)):this._bindings[t]._destroy();e||(this._bindings.length=0)},getNumListeners:function(){return this._bindings.length},halt:function(){this._shouldPropagate=!1},dispatch:function(){if(this.active){var e,t=Array.prototype.slice.call(arguments),n=this._bindings.length;if(this.memorize&&(this._prevParams=t),n){e=this._bindings.slice(),this._shouldPropagate=!0;do{n--}while(e[n]&&this._shouldPropagate&&!1!==e[n].execute(t))}}},forget:function(){this._prevParams=null},dispose:function(){this.removeAll(),delete this._bindings,delete this._prevParams},toString:function(){return"[Signal active:"+this.active+" numListeners:"+this.getNumListeners()+"]"}},t.prototype.constructor=t,n.Signal=t}(),n.AStarFinder=function(e){e=e||{};var t={allowDiagonal:!1,heuristicFilter:null};t=n.Tools.merge(t,e),this.allowDiagonal=t.allowDiagonal,this.heuristicFilter=t.heuristicFilter,this.list=new n.LinkedList},n.AStarFinder.prototype={findPath:function(e,t,r,o){var i,a,s,u,c,l;for(r=r||this.heuristicFilter,o.clearPath(),this.list.clear(),this.list.add(e);this.list.length>0;){if(this.list.sort(this.compare),(i=this.list.shift())._visited=!0,i===t)return n.PathUtil.backtrace(t);for(c=0,l=(s=o.getNeighbors(i,this.allowDiagonal,r)).length;l>c;c++)if((u=s[c]).walkable&&(a=i._calcCost+o.distance(i,u),!u._visited||ae?1:-1,i=r>t?1:-1,u=(a=l(n-e))-(s=l(r-t));e!==n||t!==r;)d.push([e,t]),(c=2*u)>-s&&(u-=s,e+=o),a>c&&(u+=a,t+=i);return d},expandPath:function(e){var t,n,r,o,i,a,s=[],u=e.length;if(2>u)return s;for(i=0;u-1>i;++i)for(t=e[i],n=e[i+1],o=(r=this.interpolate(t[0],t[1],n[0],n[1])).length,a=0;o-1>a;++a)s.push(r[a]);return s.push(e[u-1]),s},smoothenPath:function(e,t){var n,r,o,i,a,s,u,c,l,d,f,p,h=t.length,v=t[0][0],m=t[0][1],g=t[h-1][0],y=t[h-1][1];for(a=[[n=v,r=m]],u=2;h>u;++u){for(o=(l=t[u])[0],i=l[1],d=this.interpolate(n,r,o,i),p=!1,c=1;c0?(t=(e=r[0]).object.userData.structure,this.pickedObject!=t&&(this.pickedObject&&this.signal.dispatch(n.MouseCaster.OUT,this.pickedObject),this.pickedObject=t,this.selectedObject=null,this.signal.dispatch(n.MouseCaster.OVER,this.pickedObject)),this.position.copy(e.point),this.screenPosition.z=e.distance):(this.pickedObject&&this.signal.dispatch(n.MouseCaster.OUT,this.pickedObject),this.pickedObject=null,this.selectedObject=null),this.allHits=r}},preventDefault:function(){this._preventDefault=!0},_onDocumentMouseDown:function(e){return(e=e||window.event).preventDefault(),this._preventDefault?(this._preventDefault=!1,!1):(this.pickedObject&&(this.selectedObject=this.pickedObject),this.shift=e.shiftKey,this.ctrl=e.ctrlKey,this.down=1===e.which,this.rightDown=3===e.which,void this.signal.dispatch(n.MouseCaster.DOWN,this.pickedObject))},_onDocumentMouseUp:function(e){return e.preventDefault(),this._preventDefault?(this._preventDefault=!1,!1):(this.shift=e.shiftKey,this.ctrl=e.ctrlKey,this.signal.dispatch(n.MouseCaster.UP,this.pickedObject),this.selectedObject&&this.pickedObject&&this.selectedObject.uniqueID===this.pickedObject.uniqueID&&this.signal.dispatch(n.MouseCaster.CLICK,this.pickedObject),this.down=1!==e.which&&this.down,void(this.rightDown=3!==e.which&&this.rightDown))},_onDocumentMouseMove:function(e){e.preventDefault(),this.screenPosition.x=e.clientX/window.innerWidth*2-1,this.screenPosition.y=-e.clientY/window.innerHeight*2+1},_onMouseWheel:function(e){if(this.active){e.preventDefault(),e.stopPropagation();var t=0;void 0!==e.wheelDelta?t=e.wheelDelta:void 0!==e.detail&&(t=-e.detail),t>0?this.wheel++:this.wheel--,this.signal.dispatch(n.MouseCaster.WHEEL,this.wheel)}}},n.MouseCaster.prototype.constructor=n.MouseCaster,n.Scene=function(e,t){var r={element:document.body,alpha:!0,antialias:!0,clearColor:"#fff",sortObjects:!1,fog:null,light:new THREE.DirectionalLight(16777215),lightPosition:null,cameraType:"PerspectiveCamera",cameraPosition:null,orthoZoom:4},o={minDistance:100,maxDistance:1e3,zoomSpeed:2,noZoom:!1};if(r=n.Tools.merge(r,e),"boolean"!=typeof t&&(o=n.Tools.merge(o,t)),this.renderer=new THREE.WebGLRenderer({alpha:r.alpha,antialias:r.antialias}),this.renderer.setClearColor(r.clearColor,0),this.renderer.sortObjects=r.sortObjects,this.width=window.innerWidth,this.height=window.innerHeight,this.orthoZoom=r.orthoZoom,this.container=new THREE.Scene,this.container.fog=r.fog,this.container.add(new THREE.AmbientLight(14540253)),r.lightPosition||r.light.position.set(-1,1,-1).normalize(),this.container.add(r.light),"OrthographicCamera"===r.cameraType){var i=window.innerWidth/this.orthoZoom,a=window.innerHeight/this.orthoZoom;this.camera=new THREE.OrthographicCamera(i/-2,i/2,a/2,a/-2,1,5e3)}else this.camera=new THREE.PerspectiveCamera(50,this.width/this.height,1,5e3);this.contolled=!!t,this.contolled&&(this.controls=new THREE.OrbitControls(this.camera,this.renderer.domElement),this.controls.minDistance=o.minDistance,this.controls.maxDistance=o.maxDistance,this.controls.zoomSpeed=o.zoomSpeed,this.controls.noZoom=o.noZoom),r.cameraPosition&&this.camera.position.copy(r.cameraPosition),window.addEventListener("resize",function(){if(this.width=window.innerWidth,this.height=window.innerHeight,"OrthographicCamera"===this.camera.type){var e=this.width/this.orthoZoom,t=this.height/this.orthoZoom;this.camera.left=e/-2,this.camera.right=e/2,this.camera.top=t/2,this.camera.bottom=t/-2}else this.camera.aspect=this.width/this.height;this.camera.updateProjectionMatrix(),this.renderer.setSize(this.width,this.height)}.bind(this),!1),this.attachTo(r.element)},n.Scene.prototype={attachTo:function(e){e.style.width=this.width+"px",e.style.height=this.height+"px",this.renderer.setPixelRatio(window.devicePixelRatio),this.renderer.setSize(this.width,this.height),e.appendChild(this.renderer.domElement)},add:function(e){this.container.add(e)},remove:function(e){this.container.remove(e)},render:function(){this.contolled&&this.controls.update(),this.renderer.render(this.container,this.camera)},updateOrthoZoom:function(){if(this.orthoZoom<=0)this.orthoZoom=0;else{var e=this.width/this.orthoZoom,t=this.height/this.orthoZoom;this.camera.left=e/-2,this.camera.right=e/2,this.camera.top=t/2,this.camera.bottom=t/-2,this.camera.updateProjectionMatrix()}},focusOn:function(e){this.camera.lookAt(e.position)}},n.Scene.prototype.constructor=n.Scene,n.SelectionManager=function(e){this.mouse=e,this.onSelect=new n.Signal,this.onDeselect=new n.Signal,this.selected=null,this.toggleSelection=!1,this.mouse.signal.add(this.onMouse,this)},n.SelectionManager.prototype={select:function(e,t){e&&(t=t||!0,this.selected!==e&&this.clearSelection(t),e.selected?this.toggleSelection&&(t&&this.onDeselect.dispatch(e),e.deselect()):e.select(),this.selected=e,t&&this.onSelect.dispatch(e))},clearSelection:function(e){e=e||!0,this.selected&&(e&&this.onDeselect.dispatch(this.selected),this.selected.deselect()),this.selected=null},onMouse:function(e,t){switch(e){case n.MouseCaster.DOWN:t||this.clearSelection();break;case n.MouseCaster.CLICK:this.select(t)}}},n.SelectionManager.prototype.constructor=n.SelectionManager,n.Tools={clamp:function(e,t,n){return Math.max(t,Math.min(n,e))},sign:function(e){return e&&e/Math.abs(e)},random:function(e,t){return 1===arguments.length?Math.random()*e-.5*e:Math.random()*(t-e)+e},randomInt:function(e,t){return 1===arguments.length?Math.random()*e-.5*e|0:Math.random()*(t-e+1)+e|0},normalize:function(e,t,n){return(e-t)/(n-t)},getShortRotation:function(e){return(e%=this.TAU)>this.PI?e-=this.TAU:e<-this.PI&&(e+=this.TAU),e},generateID:function(){return Math.random().toString(36).slice(2)+Date.now()},isPlainObject:function(e){if("object"!=typeof e||e.nodeType||e===e.window)return!1;try{if(e.constructor&&!Object.prototype.hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}return!0},merge:function(e,t){var n=this,r=Array.isArray(t),o=r&&[]||{};return r?(e=e||[],o=o.concat(e),t.forEach((function(t,r){"undefined"==typeof o[r]?o[r]=t:n.isPlainObject(t)?o[r]=n.merge(e[r],t):-1===e.indexOf(t)&&o.push(t)})),o):(e&&n.isPlainObject(e)&&Object.keys(e).forEach((function(t){o[t]=e[t]})),Object.keys(t).forEach((function(r){t[r]&&n.isPlainObject(t[r])&&e[r]?o[r]=n.merge(e[r],t[r]):o[r]=t[r]})),o)},now:function(){return window.nwf?window.nwf.system.Performance.elapsedTime:window.performance.now()},empty:function(e){for(;e.lastChild;)e.removeChild(e.lastChild)},radixSort:function(e,t,n,r){if(r=r||31,!((t=t||0)>=(n=n||e.length)-1||0>r)){for(var o=t,i=n,a=1<o;)if(e[o]&a){--i;var s=e[o];e[o]=e[i],e[i]=s}else++o;this.radixSort(e,t,i,r-1),this.radixSort(e,i,n,r-1)}},randomizeRGB:function(e,t){var n,r,o=e.split(","),i="rgb(";for(t=this.randomInt(t),n=0;3>n;n++)0>(r=parseInt(o[n])+t)?r=0:r>255&&(r=255),i+=r+",";return(i=i.substring(0,i.length-1))+")"},getJSON:function(e){var t=new XMLHttpRequest,n="undefined"!=typeof e.cache&&e.cache?e.url:e.url+"?t="+Math.floor(1e4*Math.random())+Date.now();t.onreadystatechange=function(){if(200!==this.status)0!==this.status&&console.warn("[Tools.getJSON] Error: "+this.status+" ("+this.statusText+") :: "+e.url);else{var t=null;try{t=JSON.parse(this.responseText)}catch(n){return}e.callback.call(e.scope||null,t)}},t.open("GET",n,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Content-Type","application/json"),t.send("")}}},77454:function(){!function(e){var t="KeyboardEvent"in e;t||(e.KeyboardEvent=function(){throw TypeError("Illegal constructor")}),"DOM_KEY_LOCATION_STANDARD"in e.KeyboardEvent||(e.KeyboardEvent.DOM_KEY_LOCATION_STANDARD=0),"DOM_KEY_LOCATION_LEFT"in e.KeyboardEvent||(e.KeyboardEvent.DOM_KEY_LOCATION_LEFT=1),"DOM_KEY_LOCATION_RIGHT"in e.KeyboardEvent||(e.KeyboardEvent.DOM_KEY_LOCATION_RIGHT=2),"DOM_KEY_LOCATION_NUMPAD"in e.KeyboardEvent||(e.KeyboardEvent.DOM_KEY_LOCATION_NUMPAD=3);var n=window.KeyboardEvent.DOM_KEY_LOCATION_STANDARD,r=window.KeyboardEvent.DOM_KEY_LOCATION_LEFT,o=window.KeyboardEvent.DOM_KEY_LOCATION_RIGHT,i=window.KeyboardEvent.DOM_KEY_LOCATION_NUMPAD;function a(e,t){return-1!==String(e).indexOf(t)}var s=a(navigator.platform,"Win")?"win":a(navigator.platform,"Mac")?"mac":a(navigator.platform,"CrOS")?"cros":a(navigator.platform,"Linux")?"linux":a(navigator.userAgent,"iPad")||a(navigator.platform,"iPod")||a(navigator.platform,"iPhone")?"ios":"",u=a(navigator.userAgent,"Chrome/")?"chrome":a(navigator.vendor,"Apple")?"safari":a(navigator.userAgent,"MSIE")?"ie":a(navigator.userAgent,"Gecko/")?"moz":a(navigator.userAgent,"Opera/")?"opera":"",c=u+"-"+s;function l(e,t,n){c!==t&&u!==t&&s!==t||Object.keys(n).forEach((function(t){e[t]=n[t]}))}var d={3:{code:"Cancel"},6:{code:"Help"},8:{code:"Backspace"},9:{code:"Tab"},12:{code:"Clear"},13:{code:"Enter"},16:{code:"Shift"},17:{code:"Control"},18:{code:"Alt"},19:{code:"Pause"},20:{code:"CapsLock"},21:{code:"KanaMode"},22:{code:"HangulMode"},23:{code:"JunjaMode"},24:{code:"FinalMode"},25:{code:"KanjiMode"},27:{code:"Escape"},28:{code:"Convert"},29:{code:"NonConvert"},30:{code:"Accept"},31:{code:"ModeChange"},32:{code:"Space"},33:{code:"PageUp"},34:{code:"PageDown"},35:{code:"End"},36:{code:"Home"},37:{code:"ArrowLeft"},38:{code:"ArrowUp"},39:{code:"ArrowRight"},40:{code:"ArrowDown"},41:{code:"Select"},42:{code:"Print"},43:{code:"Execute"},44:{code:"PrintScreen"},45:{code:"Insert"},46:{code:"Delete"},47:{code:"Help"},48:{code:"Digit0",keyCap:"0"},49:{code:"Digit1",keyCap:"1"},50:{code:"Digit2",keyCap:"2"},51:{code:"Digit3",keyCap:"3"},52:{code:"Digit4",keyCap:"4"},53:{code:"Digit5",keyCap:"5"},54:{code:"Digit6",keyCap:"6"},55:{code:"Digit7",keyCap:"7"},56:{code:"Digit8",keyCap:"8"},57:{code:"Digit9",keyCap:"9"},65:{code:"KeyA",keyCap:"a"},66:{code:"KeyB",keyCap:"b"},67:{code:"KeyC",keyCap:"c"},68:{code:"KeyD",keyCap:"d"},69:{code:"KeyE",keyCap:"e"},70:{code:"KeyF",keyCap:"f"},71:{code:"KeyG",keyCap:"g"},72:{code:"KeyH",keyCap:"h"},73:{code:"KeyI",keyCap:"i"},74:{code:"KeyJ",keyCap:"j"},75:{code:"KeyK",keyCap:"k"},76:{code:"KeyL",keyCap:"l"},77:{code:"KeyM",keyCap:"m"},78:{code:"KeyN",keyCap:"n"},79:{code:"KeyO",keyCap:"o"},80:{code:"KeyP",keyCap:"p"},81:{code:"KeyQ",keyCap:"q"},82:{code:"KeyR",keyCap:"r"},83:{code:"KeyS",keyCap:"s"},84:{code:"KeyT",keyCap:"t"},85:{code:"KeyU",keyCap:"u"},86:{code:"KeyV",keyCap:"v"},87:{code:"KeyW",keyCap:"w"},88:{code:"KeyX",keyCap:"x"},89:{code:"KeyY",keyCap:"y"},90:{code:"KeyZ",keyCap:"z"},91:{code:"OSLeft",location:r},92:{code:"OSRight",location:o},93:{code:"ContextMenu"},95:{code:"Standby"},96:{code:"Numpad0",keyCap:"0",location:i},97:{code:"Numpad1",keyCap:"1",location:i},98:{code:"Numpad2",keyCap:"2",location:i},99:{code:"Numpad3",keyCap:"3",location:i},100:{code:"Numpad4",keyCap:"4",location:i},101:{code:"Numpad5",keyCap:"5",location:i},102:{code:"Numpad6",keyCap:"6",location:i},103:{code:"Numpad7",keyCap:"7",location:i},104:{code:"Numpad8",keyCap:"8",location:i},105:{code:"Numpad9",keyCap:"9",location:i},106:{code:"NumpadMultiply",keyCap:"*",location:i},107:{code:"NumpadAdd",keyCap:"+",location:i},108:{code:"NumpadComma",keyCap:",",location:i},109:{code:"NumpadSubtract",keyCap:"-",location:i},110:{code:"NumpadDecimal",keyCap:".",location:i},111:{code:"NumpadDivide",keyCap:"/",location:i},112:{code:"F1"},113:{code:"F2"},114:{code:"F3"},115:{code:"F4"},116:{code:"F5"},117:{code:"F6"},118:{code:"F7"},119:{code:"F8"},120:{code:"F9"},121:{code:"F10"},122:{code:"F11"},123:{code:"F12"},124:{code:"F13"},125:{code:"F14"},126:{code:"F15"},127:{code:"F16"},128:{code:"F17"},129:{code:"F18"},130:{code:"F19"},131:{code:"F20"},132:{code:"F21"},133:{code:"F22"},134:{code:"F23"},135:{code:"F24"},144:{code:"NumLock",location:i},145:{code:"ScrollLock"},160:{code:"ShiftLeft",location:r},161:{code:"ShiftRight",location:o},162:{code:"ControlLeft",location:r},163:{code:"ControlRight",location:o},164:{code:"AltLeft",location:r},165:{code:"AltRight",location:o},166:{code:"BrowserBack"},167:{code:"BrowserForward"},168:{code:"BrowserRefresh"},169:{code:"BrowserStop"},170:{code:"BrowserSearch"},171:{code:"BrowserFavorites"},172:{code:"BrowserHome"},173:{code:"VolumeMute"},174:{code:"VolumeDown"},175:{code:"VolumeUp"},176:{code:"MediaTrackNext"},177:{code:"MediaTrackPrevious"},178:{code:"MediaStop"},179:{code:"MediaPlayPause"},180:{code:"LaunchMail"},181:{code:"MediaSelect"},182:{code:"LaunchApp1"},183:{code:"LaunchApp2"},186:{code:"Semicolon",keyCap:";"},187:{code:"Equal",keyCap:"="},188:{code:"Comma",keyCap:","},189:{code:"Minus",keyCap:"-"},190:{code:"Period",keyCap:"."},191:{code:"Slash",keyCap:"/"},192:{code:"Backquote",keyCap:"`"},219:{code:"BracketLeft",keyCap:"["},220:{code:"Backslash",keyCap:"\\"},221:{code:"BracketRight",keyCap:"]"},222:{code:"Quote",keyCap:"'"},226:{code:"IntlBackslash",keyCap:"\\"},229:{code:"Process"},246:{code:"Attn"},247:{code:"CrSel"},248:{code:"ExSel"},249:{code:"EraseEof"},250:{code:"Play"},251:{code:"ZoomToggle"},254:{code:"Clear"}};l(d,"moz",{59:{code:"Semicolon",keyCap:";"},61:{code:"Equal",keyCap:"="},107:{code:"Equal",keyCap:"="},109:{code:"Minus",keyCap:"-"},187:{code:"NumpadAdd",keyCap:"+",location:i},189:{code:"NumpadSubtract",keyCap:"-",location:i}}),l(d,"moz-mac",{12:{code:"NumLock",location:i},173:{code:"Minus",keyCap:"-"}}),l(d,"moz-win",{173:{code:"Minus",keyCap:"-"}}),l(d,"chrome-mac",{93:{code:"OSRight",location:o}}),l(d,"safari",{3:{code:"Enter"},25:{code:"Tab"}}),l(d,"ios",{10:{code:"Enter",location:n}}),l(d,"safari-mac",{91:{code:"OSLeft",location:r},93:{code:"OSRight",location:o},229:{code:"KeyQ",keyCap:"Q"}});var f={};"cros"===s&&(f["U+00A0"]={code:"ShiftLeft",location:r},f["U+00A1"]={code:"ShiftRight",location:o},f["U+00A2"]={code:"ControlLeft",location:r},f["U+00A3"]={code:"ControlRight",location:o},f["U+00A4"]={code:"AltLeft",location:r},f["U+00A5"]={code:"AltRight",location:o}),"chrome-mac"===c&&(f["U+0010"]={code:"ContextMenu"}),"safari-mac"===c&&(f["U+0010"]={code:"ContextMenu"}),"ios"===s&&(f["U+0010"]={code:"Function"},f["U+001C"]={code:"ArrowLeft"},f["U+001D"]={code:"ArrowRight"},f["U+001E"]={code:"ArrowUp"},f["U+001F"]={code:"ArrowDown"},f["U+0001"]={code:"Home"},f["U+0004"]={code:"End"},f["U+000B"]={code:"PageUp"},f["U+000C"]={code:"PageDown"});var p=[];p[r]={16:{code:"ShiftLeft",location:r},17:{code:"ControlLeft",location:r},18:{code:"AltLeft",location:r}},p[o]={16:{code:"ShiftRight",location:o},17:{code:"ControlRight",location:o},18:{code:"AltRight",location:o}},p[i]={13:{code:"NumpadEnter",location:i}},l(p[i],"moz",{109:{code:"NumpadSubtract",location:i},107:{code:"NumpadAdd",location:i}}),l(p[r],"moz-mac",{224:{code:"OSLeft",location:r}}),l(p[o],"moz-mac",{224:{code:"OSRight",location:o}}),l(p[o],"moz-win",{91:{code:"OSRight",location:o}}),l(p[o],"mac",{93:{code:"OSRight",location:o}}),l(p[i],"chrome-mac",{12:{code:"NumLock",location:i}}),l(p[i],"safari-mac",{12:{code:"NumLock",location:i},187:{code:"NumpadAdd",location:i},189:{code:"NumpadSubtract",location:i},190:{code:"NumpadDecimal",location:i},191:{code:"NumpadDivide",location:i}});var h={ShiftLeft:{key:"Shift"},ShiftRight:{key:"Shift"},ControlLeft:{key:"Control"},ControlRight:{key:"Control"},AltLeft:{key:"Alt"},AltRight:{key:"Alt"},OSLeft:{key:"OS"},OSRight:{key:"OS"},NumpadEnter:{key:"Enter"},Space:{key:" "},Digit0:{key:"0",shiftKey:")"},Digit1:{key:"1",shiftKey:"!"},Digit2:{key:"2",shiftKey:"@"},Digit3:{key:"3",shiftKey:"#"},Digit4:{key:"4",shiftKey:"$"},Digit5:{key:"5",shiftKey:"%"},Digit6:{key:"6",shiftKey:"^"},Digit7:{key:"7",shiftKey:"&"},Digit8:{key:"8",shiftKey:"*"},Digit9:{key:"9",shiftKey:"("},KeyA:{key:"a",shiftKey:"A"},KeyB:{key:"b",shiftKey:"B"},KeyC:{key:"c",shiftKey:"C"},KeyD:{key:"d",shiftKey:"D"},KeyE:{key:"e",shiftKey:"E"},KeyF:{key:"f",shiftKey:"F"},KeyG:{key:"g",shiftKey:"G"},KeyH:{key:"h",shiftKey:"H"},KeyI:{key:"i",shiftKey:"I"},KeyJ:{key:"j",shiftKey:"J"},KeyK:{key:"k",shiftKey:"K"},KeyL:{key:"l",shiftKey:"L"},KeyM:{key:"m",shiftKey:"M"},KeyN:{key:"n",shiftKey:"N"},KeyO:{key:"o",shiftKey:"O"},KeyP:{key:"p",shiftKey:"P"},KeyQ:{key:"q",shiftKey:"Q"},KeyR:{key:"r",shiftKey:"R"},KeyS:{key:"s",shiftKey:"S"},KeyT:{key:"t",shiftKey:"T"},KeyU:{key:"u",shiftKey:"U"},KeyV:{key:"v",shiftKey:"V"},KeyW:{key:"w",shiftKey:"W"},KeyX:{key:"x",shiftKey:"X"},KeyY:{key:"y",shiftKey:"Y"},KeyZ:{key:"z",shiftKey:"Z"},Numpad0:{key:"0"},Numpad1:{key:"1"},Numpad2:{key:"2"},Numpad3:{key:"3"},Numpad4:{key:"4"},Numpad5:{key:"5"},Numpad6:{key:"6"},Numpad7:{key:"7"},Numpad8:{key:"8"},Numpad9:{key:"9"},NumpadMultiply:{key:"*"},NumpadAdd:{key:"+"},NumpadComma:{key:","},NumpadSubtract:{key:"-"},NumpadDecimal:{key:"."},NumpadDivide:{key:"/"},Semicolon:{key:";",shiftKey:":"},Equal:{key:"=",shiftKey:"+"},Comma:{key:",",shiftKey:"<"},Minus:{key:"-",shiftKey:"_"},Period:{key:".",shiftKey:">"},Slash:{key:"/",shiftKey:"?"},Backquote:{key:"`",shiftKey:"~"},BracketLeft:{key:"[",shiftKey:"{"},Backslash:{key:"\\",shiftKey:"|"},BracketRight:{key:"]",shiftKey:"}"},Quote:{key:"'",shiftKey:'"'},IntlBackslash:{key:"\\",shiftKey:"|"}};l(h,"mac",{OSLeft:{key:"Meta"},OSRight:{key:"Meta"}});var v={Esc:"Escape",Nonconvert:"NonConvert",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Menu:"ContextMenu",MediaNextTrack:"MediaTrackNext",MediaPreviousTrack:"MediaTrackPrevious",SelectMedia:"MediaSelect",HalfWidth:"Hankaku",FullWidth:"Zenkaku",RomanCharacters:"Romaji",Crsel:"CrSel",Exsel:"ExSel",Zoom:"ZoomToggle"},m=function(e,t){var n={};return Object.keys(e).forEach((function(r){var o=e[r];t in o&&(n[o[t]]=o)})),n}(d,"code");try{var g=t&&"location"in new KeyboardEvent("")}catch(b){}function y(e){var t="keyCode"in e?e.keyCode:"which"in e?e.which:0,n=function(){if(g||"keyLocation"in e){var n=g?e.location:e.keyLocation;if(n&&t in p[n])return p[n][t]}return"keyIdentifier"in e&&e.keyIdentifier in f?f[e.keyIdentifier]:t in d?d[t]:null}();if(!n)return null;var r=function(){var t=h[n.code];return t?e.shiftKey&&"shiftKey"in t?t.shiftKey:t.key:n.code}();return{code:n.code,key:r,location:n.location,keyCap:n.keyCap}}"KeyboardEvent"in e&&"defineProperty"in Object&&function(){function e(e,t,n){t in e||Object.defineProperty(e,t,n)}if(e(KeyboardEvent.prototype,"code",{get:function(){var e=y(this);return e?e.code:""}}),"key"in KeyboardEvent.prototype){var t=Object.getOwnPropertyDescriptor(KeyboardEvent.prototype,"key");Object.defineProperty(KeyboardEvent.prototype,"key",{get:function(){var e=t.get.call(this);return v.hasOwnProperty(e)?v[e]:e}})}e(KeyboardEvent.prototype,"key",{get:function(){var e=y(this);return e&&"key"in e?e.key:"Unidentified"}}),e(KeyboardEvent.prototype,"location",{get:function(){var e=y(this);return e&&"location"in e?e.location:n}}),e(KeyboardEvent.prototype,"locale",{get:function(){return""}})}(),"queryKeyCap"in e.KeyboardEvent||(e.KeyboardEvent.queryKeyCap=function(e,t){if(e=String(e),!m.hasOwnProperty(e))return"Undefined";if(t&&"en-us"!==String(t).toLowerCase())throw Error("Unsupported locale");var n=m[e];return n.keyCap||n.code||"Undefined"}),e.identifyKey=function(e){if(!("code"in e)){var t=y(e);e.code=t?t.code:"",e.key=t&&"key"in t?t.key:"Unidentified",e.location="location"in e?e.location:"keyLocation"in e?e.keyLocation:t&&"location"in t?t.location:n,e.locale=""}}}(window)},33386:function(e){e.exports=AFRAME.registerComponent("checkpoint-controls",{schema:{enabled:{default:!0},mode:{default:"teleport",oneOf:["teleport","animate"]},animateSpeed:{default:3}},init:function(){this.active=!0,this.checkpoint=null,this.isNavMeshConstrained=!1,this.offset=new THREE.Vector3,this.position=new THREE.Vector3,this.targetPosition=new THREE.Vector3},play:function(){this.active=!0},pause:function(){this.active=!1},setCheckpoint:function(e){const t=this.el;this.active&&this.checkpoint!==e&&(this.checkpoint&&t.emit("navigation-end",{checkpoint:this.checkpoint}),this.checkpoint=e,this.sync(),this.position.distanceTo(this.targetPosition)<.1?this.checkpoint=null:(t.emit("navigation-start",{checkpoint:e}),"teleport"===this.data.mode&&(this.el.setAttribute("position",this.targetPosition),this.checkpoint=null,t.emit("navigation-end",{checkpoint:e}),t.components["movement-controls"].updateNavLocation())))},isVelocityActive:function(){return!(!this.active||!this.checkpoint)},getVelocity:function(){if(!this.active)return;const e=this.data,t=this.offset,n=this.position,r=this.targetPosition,o=this.checkpoint;return this.sync(),n.distanceTo(r)<.1?(this.checkpoint=null,this.el.emit("navigation-end",{checkpoint:o}),t.set(0,0,0)):(t.setLength(e.animateSpeed),t)},sync:function(){const e=this.offset,t=this.position,n=this.targetPosition;t.copy(this.el.getAttribute("position")),this.checkpoint.object3D.getWorldPosition(n),n.add(this.checkpoint.components.checkpoint.getOffset()),e.copy(n).sub(t)}})},45062:function(e,t,n){const r=n(16453),o=n(44379),i=.2,a="left",s="right",u=1,c=2;e.exports=AFRAME.registerComponent("gamepad-controls",{GamepadButton:r,schema:{enabled:{default:!0},camera:{default:"[camera]",type:"selector"},rotationSensitivity:{default:2}},init:function(){const e=this.el.sceneEl;this.system=e.systems["tracked-controls-webxr"]||{controllers:[]},this.prevTime=window.performance.now(),this.buttons={};const t=this.el.object3D.rotation;this.pitch=new THREE.Object3D,this.pitch.rotation.x=THREE.Math.degToRad(t.x),this.yaw=new THREE.Object3D,this.yaw.position.y=10,this.yaw.rotation.y=THREE.Math.degToRad(t.y),this.yaw.add(this.pitch),this._lookVector=new THREE.Vector2,this._moveVector=new THREE.Vector2,this._dpadVector=new THREE.Vector2,e.addBehavior(this)},update:function(){this.tick()},tick:function(e,t){this.updateButtonState(),this.updateRotation(t)},remove:function(){},isVelocityActive:function(){if(!this.data.enabled||!this.isConnected())return!1;const e=this._dpadVector,t=this._moveVector;this.getDpad(e),this.getJoystick(u,t);const n=e.x||t.x,r=e.y||t.y;return Math.abs(n)>i||Math.abs(r)>i},getVelocityDelta:function(){const e=this._dpadVector,t=this._moveVector;this.getDpad(e),this.getJoystick(u,t);const n=e.x||t.x,r=e.y||t.y,o=new THREE.Vector3;return Math.abs(n)>i&&(o.x+=n),Math.abs(r)>i&&(o.z+=r),o},isRotationActive:function(){if(!this.data.enabled||!this.isConnected())return!1;const e=this._lookVector;return this.getJoystick(c,e),Math.abs(e.x)>i||Math.abs(e.y)>i},updateRotation:function(e){if(!this.isRotationActive())return;const t=this.data,n=this.yaw,r=this.pitch,o=t.camera.components["look-controls"],a=o&&o.pitchObject&&o.yawObject;a&&(r.rotation.copy(o.pitchObject.rotation),n.rotation.copy(o.yawObject.rotation));const s=this._lookVector;this.getJoystick(c,s),Math.abs(s.x)<=i&&(s.x=0),Math.abs(s.y)<=i&&(s.y=0),s.multiplyScalar(t.rotationSensitivity*e/1e3),n.rotation.y-=s.x,r.rotation.x-=s.y,r.rotation.x=Math.max(-Math.PI/2,Math.min(Math.PI/2,r.rotation.x)),t.camera.object3D.rotation.set(r.rotation.x,n.rotation.y,0),a&&(o.pitchObject.rotation.copy(r.rotation),o.yawObject.rotation.copy(n.rotation))},updateButtonState:function(){const e=this.getGamepad(s);if(this.data.enabled&&e)for(var t=0;t1?s:a).axes[e]},getJoystick:function(e,t){const n=this.getGamepad(e===u?a:s);if("xr-standard"===n.mapping)switch(e){case u:return t.set(n.axes[2],n.axes[3]);case c:return t.set(n.axes[0],n.axes[1])}else switch(e){case u:return t.set(n.axes[0],n.axes[1]);case c:return t.set(n.axes[2],n.axes[3])}throw new Error('Unexpected joystick index "%d".',e)},getDpad:function(e){const t=this.getGamepad(a);return t.buttons[r.DPAD_RIGHT]?e.set((t.buttons[r.DPAD_RIGHT].pressed?1:0)+(t.buttons[r.DPAD_LEFT].pressed?-1:0),(t.buttons[r.DPAD_UP].pressed?-1:0)+(t.buttons[r.DPAD_DOWN].pressed?1:0)):e.set(0,0)},isConnected:function(){const e=this.getGamepad(a);return!(!e||!e.connected)},getID:function(){return this.getGamepad(a).id}})},52406:function(e,t,n){n(33386),n(45062),n(32250),n(79048),n(43819),n(99893)},32250:function(e,t,n){n(77454);const r=window.KeyboardEvent;e.exports=AFRAME.registerComponent("keyboard-controls",{schema:{enabled:{default:!0},debug:{default:!1}},init:function(){this.dVelocity=new THREE.Vector3,this.localKeys={},this.listeners={keydown:this.onKeyDown.bind(this),keyup:this.onKeyUp.bind(this),blur:this.onBlur.bind(this)},this.attachEventListeners()},isVelocityActive:function(){return this.data.enabled&&!!Object.keys(this.getKeys()).length},getVelocityDelta:function(){const e=this.data,t=this.getKeys();return this.dVelocity.set(0,0,0),e.enabled&&((t.KeyW||t.ArrowUp)&&(this.dVelocity.z-=1),(t.KeyA||t.ArrowLeft)&&(this.dVelocity.x-=1),(t.KeyS||t.ArrowDown)&&(this.dVelocity.z+=1),(t.KeyD||t.ArrowRight)&&(this.dVelocity.x+=1)),this.dVelocity.clone()},play:function(){this.attachEventListeners()},pause:function(){this.removeEventListeners()},remove:function(){this.pause()},attachEventListeners:function(){window.addEventListener("keydown",this.listeners.keydown,!1),window.addEventListener("keyup",this.listeners.keyup,!1),window.addEventListener("blur",this.listeners.blur,!1)},removeEventListeners:function(){window.removeEventListener("keydown",this.listeners.keydown),window.removeEventListener("keyup",this.listeners.keyup),window.removeEventListener("blur",this.listeners.blur)},onKeyDown:function(e){AFRAME.utils.shouldCaptureKeyEvent(e)&&(this.localKeys[e.code]=!0,this.emit(e))},onKeyUp:function(e){AFRAME.utils.shouldCaptureKeyEvent(e)&&(delete this.localKeys[e.code],this.emit(e))},onBlur:function(){for(let e in this.localKeys)this.localKeys.hasOwnProperty(e)&&delete this.localKeys[e]},emit:function(e){"__keyboard-controls-proxy"in e&&this.el.emit(e.type,e),this.el.emit(e.type+":"+e.code,new r(e.type,e)),this.data.debug&&console.log(e.type+":"+e.code)},isPressed:function(e){return e in this.getKeys()},getKeys:function(){return this.isProxied()?this.el.sceneEl.components["proxy-controls"].getKeyboard():this.localKeys},isProxied:function(){const e=this.el.sceneEl.components["proxy-controls"];return e&&e.isConnected()}})},43819:function(e){const t="-controls";e.exports=AFRAME.registerComponent("movement-controls",{dependencies:["rotation"],schema:{enabled:{default:!0},controls:{default:["gamepad","trackpad","keyboard","touch"]},speed:{default:.3,min:0},fly:{default:!1},constrainToNavMesh:{default:!1},camera:{default:"[movement-controls] [camera]",type:"selector"}},init:function(){const e=this.el;this.velocityCtrl=null,this.velocity=new THREE.Vector3,this.heading=new THREE.Quaternion,this.navGroup=null,this.navNode=null,e.sceneEl.hasLoaded?this.injectControls():e.sceneEl.addEventListener("loaded",this.injectControls.bind(this))},update:function(e){const t=this.el,n=this.data,r=t.sceneEl.systems.nav;t.sceneEl.hasLoaded&&this.injectControls(),r&&n.constrainToNavMesh!==e.constrainToNavMesh&&(n.constrainToNavMesh?r.addAgent(this):r.removeAgent(this))},injectControls:function(){const e=this.data;var n;for(let r=0;r.2?u.set(0,0,0):this.updateVelocity(o),a.constrainToNavMesh&&!1!==s.isNavMeshConstrained){if(u.lengthSq()<1e-5)return;e.copy(i.object3D.position),t.copy(u).multiplyScalar(o/1e3).add(e);const r=i.sceneEl.systems.nav;this.navGroup=null===this.navGroup?r.getGroup(e):this.navGroup,this.navNode=this.navNode||r.getNode(e,this.navGroup),this.navNode=r.clampStep(e,t,this.navGroup,this.navNode,n),i.object3D.position.copy(n)}else i.hasAttribute("velocity")?i.setAttribute("velocity",u):(i.object3D.position.x+=u.x*o/1e3,i.object3D.position.y+=u.y*o/1e3,i.object3D.position.z+=u.z*o/1e3)}}(),updateVelocityCtrl:function(){const e=this.data;if(e.enabled){for(let n=0,r=e.controls.length;n0){let e=0,r=0;t.enableNegX&&n[0]this.startingAxisData[0]&&(e=1),t.enablePosZ&&n[1]>this.startingAxisData[1]&&(r=-1),t.enableNegZ&&n[1]o?(this.zVel=0,this.xVel=e,this.isMoving=!0):(this.xVel=0,this.zVel=r,this.isMoving=!0)}},handleTouchAxis:function(e){const t=this.data,n=e.detail.axis;let r=0,o=0;t.enableNegX&&n[0]<0&&(r=-1),t.enablePosX&&n[0]>0&&(r=1),t.enablePosZ&&n[1]>0&&(o=-1),t.enableNegZ&&n[1]<0&&(o=1),Math.abs(n[0])>Math.abs(n[1])?(this.zVel=0,this.xVel=r):(this.xVel=0,this.zVel=o)}})},76591:function(e){const t={once:THREE.LoopOnce,repeat:THREE.LoopRepeat,pingpong:THREE.LoopPingPong};function n(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")}e.exports=AFRAME.registerComponent("animation-mixer",{schema:{clip:{default:"*"},duration:{default:0},clampWhenFinished:{default:!1,type:"boolean"},crossFadeDuration:{default:0},loop:{default:"repeat",oneOf:Object.keys(t)},repetitions:{default:1/0,min:0},timeScale:{default:1}},init:function(){this.model=null,this.mixer=null,this.activeActions=[];const e=this.el.getObject3D("mesh");e?this.load(e):this.el.addEventListener("model-loaded",(e=>{this.load(e.detail.model)}))},load:function(e){const t=this.el;this.model=e,this.mixer=new THREE.AnimationMixer(e),this.mixer.addEventListener("loop",(e=>{t.emit("animation-loop",{action:e.action,loopDelta:e.loopDelta})})),this.mixer.addEventListener("finished",(e=>{t.emit("animation-finished",{action:e.action,direction:e.direction})})),this.data.clip&&this.update({})},remove:function(){this.mixer&&this.mixer.stopAllAction()},update:function(e){if(!e)return;const n=this.data,r=AFRAME.utils.diff(n,e);if("clip"in r)return this.stopAction(),void(n.clip&&this.playAction());this.activeActions.forEach((e=>{"duration"in r&&n.duration&&e.setDuration(n.duration),"clampWhenFinished"in r&&(e.clampWhenFinished=n.clampWhenFinished),("loop"in r||"repetitions"in r)&&e.setLoop(t[n.loop],n.repetitions),"timeScale"in r&&e.setEffectiveTimeScale(n.timeScale)}))},stopAction:function(){const e=this.data;for(let t=0;t{this.loader=new THREE.GLTFLoader,this.loader.setCrossOrigin("Anonymous")}))},update:function(){const e=this,t=this.el,n=this.data;n&&(this.remove(),this.loaderPromise.then((()=>{this.loader.load(n,(function(n){e.model=n.scene,e.model.animations=n.animations,t.setObject3D("mesh",e.model),t.emit("model-loaded",{format:"gltf",model:e.model})}))})))},remove:function(){this.model&&this.el.removeObject3D("mesh")}})},29874:function(e,t,n){n(76591),n(62290),n(5310),n(88837),n(30171)},30171:function(e){e.exports=AFRAME.registerComponent("object-model",{schema:{src:{type:"asset"},crossorigin:{default:""}},init:function(){this.model=null},update:function(){let e;const t=this.data;t.src&&(this.remove(),e=new THREE.ObjectLoader,t.crossorigin&&e.setCrossOrigin(t.crossorigin),e.load(t.src,(e=>{e.traverse((e=>{e instanceof THREE.SkinnedMesh&&e.material&&(e.material.skinning=!!(e.geometry&&e.geometry.bones||[]).length)})),this.load(e)})))},load:function(e){this.model=e,this.el.setObject3D("mesh",e),this.el.emit("model-loaded",{format:"json",model:e})},remove:function(){this.model&&this.el.removeObject3D("mesh")}})},37642:function(e){e.exports=AFRAME.registerComponent("checkpoint",{schema:{offset:{default:{x:0,y:0,z:0},type:"vec3"}},init:function(){this.active=!1,this.targetEl=null,this.fire=this.fire.bind(this),this.offset=new THREE.Vector3},update:function(){this.offset.copy(this.data.offset)},play:function(){this.el.addEventListener("click",this.fire)},pause:function(){this.el.removeEventListener("click",this.fire)},remove:function(){this.pause()},fire:function(){const e=this.el.sceneEl.querySelector("[checkpoint-controls]");if(!e)throw new Error("No `checkpoint-controls` component found.");e.components["checkpoint-controls"].setCheckpoint(this.el)},getOffset:function(){return this.offset.copy(this.data.offset)}})},74795:function(e){function t(e,t,n,r){e&&(t=t||[],e.traverse((e=>{if(!e.isMesh)return;var o;((o=e.material)?Array.isArray(o)?o:o.materials?o.materials:[o]:[]).forEach((e=>{e&&!("envMap"in e)||t.length&&-1===t.indexOf(e.name)||(e.envMap=n,e.reflectivity=r,e.needsUpdate=!0)}))})))}e.exports=AFRAME.registerComponent("cube-env-map",{multiple:!0,schema:{path:{default:""},extension:{default:"jpg",oneOf:["jpg","png"]},format:{default:"RGBFormat",oneOf:["RGBFormat","RGBAFormat"]},enableBackground:{default:!1},reflectivity:{default:1,min:0,max:1},materials:{default:[]}},init:function(){const e=this.data;this.texture=(new THREE.CubeTextureLoader).load([e.path+"posx."+e.extension,e.path+"negx."+e.extension,e.path+"posy."+e.extension,e.path+"negy."+e.extension,e.path+"posz."+e.extension,e.path+"negz."+e.extension]),this.texture.format=THREE[e.format],this.object3dsetHandler=()=>{const e=this.el.getObject3D("mesh"),n=this.data;t(e,n.materials,this.texture,n.reflectivity)},this.el.addEventListener("object3dset",this.object3dsetHandler)},update:function(e){const n=this.data,r=this.el.getObject3D("mesh");let o=[],i=[];if(n.materials.length&&(e.materials?(o=n.materials.filter((t=>!e.materials.includes(t))),i=e.materials.filter((e=>!n.materials.includes(e)))):o=n.materials),o.length&&t(r,o,this.texture,n.reflectivity),i.length&&t(r,i,null,1),e.materials&&n.reflectivity!==e.reflectivity){const o=n.materials.filter((t=>e.materials.includes(t)));o.length&&t(r,o,this.texture,n.reflectivity)}this.data.enableBackground&&!e.enableBackground?this.setBackground(this.texture):!this.data.enableBackground&&e.enableBackground&&this.setBackground(null)},remove:function(){this.el.removeEventListener("object3dset",this.object3dsetHandler);const e=this.el.getObject3D("mesh"),n=this.data;t(e,n.materials,null,1),n.enableBackground&&this.setBackground(null)},setBackground:function(e){this.el.sceneEl.object3D.background=e}})},79511:function(e){e.exports=AFRAME.registerComponent("grab",{init:function(){this.system=this.el.sceneEl.systems.physics,this.GRABBED_STATE="grabbed",this.grabbing=!1,this.hitEl=null,this.physics=this.el.sceneEl.systems.physics,this.constraint=null,this.onHit=this.onHit.bind(this),this.onGripOpen=this.onGripOpen.bind(this),this.onGripClose=this.onGripClose.bind(this)},play:function(){const e=this.el;e.addEventListener("hit",this.onHit),e.addEventListener("gripdown",this.onGripClose),e.addEventListener("gripup",this.onGripOpen),e.addEventListener("trackpaddown",this.onGripClose),e.addEventListener("trackpadup",this.onGripOpen),e.addEventListener("triggerdown",this.onGripClose),e.addEventListener("triggerup",this.onGripOpen)},pause:function(){const e=this.el;e.removeEventListener("hit",this.onHit),e.removeEventListener("gripdown",this.onGripClose),e.removeEventListener("gripup",this.onGripOpen),e.removeEventListener("trackpaddown",this.onGripClose),e.removeEventListener("trackpadup",this.onGripOpen),e.removeEventListener("triggerdown",this.onGripClose),e.removeEventListener("triggerup",this.onGripOpen)},onGripClose:function(){this.grabbing=!0},onGripOpen:function(){const e=this.hitEl;this.grabbing=!1,e&&(e.removeState(this.GRABBED_STATE),this.hitEl=void 0,this.system.removeConstraint(this.constraint),this.constraint=null)},onHit:function(e){const t=e.detail.el;t&&!t.is(this.GRABBED_STATE)&&this.grabbing&&!this.hitEl&&(t.addState(this.GRABBED_STATE),this.hitEl=t,this.constraint=new CANNON.LockConstraint(this.el.body,t.body),this.system.addConstraint(this.constraint))}})},59236:function(e,t,n){n(37642),n(74795),n(79511),n(70765),n(80837),n(58310),n(78240),n(91790)},70765:function(e){e.exports=AFRAME.registerComponent("jump-ability",{dependencies:["velocity"],schema:{on:{default:"keydown:Space gamepadbuttondown:0"},playerHeight:{default:1.764},maxJumps:{default:1},distance:{default:5},debug:{default:!1}},init:function(){this.velocity=0,this.numJumps=0;const e=this.beginJump.bind(this),t=this.data.on.split(" ");this.bindings={};for(let n=0;n0&&this.el.emit("jumpend"),this.numJumps=0}})},80837:function(e){const t=1e-6;e.exports=AFRAME.registerComponent("kinematic-body",{dependencies:["velocity"],schema:{mass:{default:5},radius:{default:1.3},linearDamping:{default:.05},enableSlopes:{default:!0},enableJumps:{default:!1}},init:function(){this.system=this.el.sceneEl.systems.physics,this.system.addComponent(this);const e=this.el,t=this.data,n=(new CANNON.Vec3).copy(e.object3D.getWorldPosition(new THREE.Vector3));this.body=new CANNON.Body({material:this.system.getMaterial("staticMaterial"),position:n,mass:t.mass,linearDamping:t.linearDamping,fixedRotation:!0}),this.body.addShape(new CANNON.Sphere(t.radius),new CANNON.Vec3(0,t.radius,0)),this.body.el=this.el,this.el.body=this.body,this.system.addBody(this.body),e.hasAttribute("wasd-controls")&&console.warn("[kinematic-body] Not compatible with wasd-controls, use movement-controls.")},remove:function(){this.system.removeBody(this.body),this.system.removeComponent(this),delete this.el.body},beforeStep:function(e,t){if(!t)return;const n=this.el,r=this.data,o=this.body;r.enableJumps||o.velocity.set(0,0,0),o.position.copy(n.getAttribute("position"))},step:function(){const e=new THREE.Vector3,n=new THREE.Vector3,r=new THREE.Vector3,o=new THREE.Vector3;return function(i,a){if(!a)return;let s,u,c=this.body,l=this.data,d=!1,f=-1/0,p=this.system.getContacts();a=Math.min(a,1e3*this.system.data.maxInterval),o.set(0,0,0),e.copy(this.el.getAttribute("velocity")),c.velocity.copy(e);for(var h,v=0;h=p[v];v++)if(h.enabled){if(c.id===h.bi.id)h.ni.negate(r);else{if(c.id!==h.bj.id)continue;r.copy(h.ni)}d=c.velocity.dot(r)<-t,d&&r.y<=.5?e.projectOnPlane(r):r.y>.5&&(s=c.id===h.bi.id?Math.abs(h.rj.y+h.bj.position.y):Math.abs(h.ri.y+h.bi.position.y),s>f&&(f=s,o.copy(r),u=c.id===h.bi.id?h.bj:h.bi))}n.copy(e).normalize(),u&&(!l.enableJumps||n.y<.5)?(l.enableSlopes?o.y<1-t&&o.copy(this.raycastToGround(u,o)):o.set(0,1,0),e.projectOnPlane(o)):this.system.driver.world&&e.add(this.system.driver.world.gravity.scale(4*a/1e3)),c.velocity.copy(e),this.el.setAttribute("velocity",c.velocity),this.el.setAttribute("position",c.position)}}(),raycastToGround:function(e,t){let n,r,o=this.body.position,i=this.body.position.clone();return n=new CANNON.Ray(o,i),n._updateDirection(),n.intersectBody(e),n.hasHit?(r=n.result.hitNormalWorld,Math.abs(r.y)>Math.abs(t.y)?r:t):t}})},58310:function(e){e.exports=AFRAME.registerComponent("mesh-smooth",{init:function(){this.el.addEventListener("model-loaded",(e=>{e.detail.model.traverse((e=>{e.isMesh&&e.geometry.computeVertexNormals()}))}))}})},78240:function(e){e.exports=AFRAME.registerComponent("normal-material",{init:function(){this.material=new THREE.MeshNormalMaterial({flatShading:!0}),this.applyMaterial=this.applyMaterial.bind(this),this.el.addEventListener("object3dset",this.applyMaterial)},remove:function(){this.el.removeEventListener("object3dset",this.applyMaterial)},applyMaterial:function(){this.el.object3D.traverse((e=>{e.isMesh&&(e.material=this.material)}))}})},91790:function(e){e.exports=AFRAME.registerComponent("sphere-collider",{schema:{objects:{default:""},state:{default:"collided"},radius:{default:.05},watch:{default:!0}},init:function(){this.observer=null,this.els=[],this.collisions=[],this.handleHit=this.handleHit.bind(this),this.handleHitEnd=this.handleHitEnd.bind(this)},remove:function(){this.pause()},play:function(){const e=this.el.sceneEl;this.data.watch&&(this.observer=new MutationObserver(this.update.bind(this,null)),this.observer.observe(e,{childList:!0,subtree:!0}))},pause:function(){this.observer&&(this.observer.disconnect(),this.observer=null)},update:function(){const e=this.data;let t;t=e.objects?this.el.sceneEl.querySelectorAll(e.objects):this.el.sceneEl.children,this.els=Array.prototype.slice.call(t)},tick:function(){const e=new THREE.Vector3,t=new THREE.Vector3,n=new THREE.Vector3,r=new THREE.Vector3,o=new THREE.Box3,i=new Map;return function(){const a=this.el,s=this.data,u=a.getObject3D("mesh"),c=[];let l;var d;u&&(i.clear(),a.object3D.getWorldPosition(e),a.object3D.getWorldScale(n),l=s.radius*(d=n,Math.max.apply(null,d.toArray())),this.els.forEach((function(n){let a,s,u,d;if(!n.isEntity)return;if(s=n.getObject3D("mesh"),!s)return;if(o.setFromObject(s).getSize(r),d=Math.max(r.x,r.y,r.z)/2,a=Math.sqrt(2*d*d),o.getCenter(t),!a)return;u=e.distanceTo(t),ui.get(e)>i.get(t)?1:-1)).forEach(this.handleHit),0===c.length&&a.emit("hit",{el:null}),this.collisions.filter((e=>!i.has(e))).forEach(this.handleHitEnd),this.collisions=c)}}(),handleHit:function(e){e.emit("hit"),e.addState(this.data.state),this.el.emit("hit",{el:e})},handleHitEnd:function(e){e.emit("hitend"),e.removeState(this.data.state),this.el.emit("hitend",{el:e})}})},82578:function(e,t,n){n(38453),n(11250),n(31465)},11250:function(e){e.exports=AFRAME.registerComponent("nav-agent",{schema:{destination:{type:"vec3"},active:{default:!1},speed:{default:2}},init:function(){this.system=this.el.sceneEl.systems.nav,this.system.addAgent(this),this.group=null,this.path=[],this.raycaster=new THREE.Raycaster},remove:function(){this.system.removeAgent(this)},update:function(){this.path.length=0},updateNavLocation:function(){this.group=null,this.path=[]},tick:function(){const e=new THREE.Vector3,t=new THREE.Vector3,n=new THREE.Vector3;return function(r,o){const i=this.el,a=this.data,s=this.raycaster,u=a.speed*o/1e3;if(!a.active)return;if(!this.path.length){const t=this.el.object3D.position;this.group=this.group||this.system.getGroup(t),this.path=this.system.getPath(t,e.copy(a.destination),this.group)||[],i.emit("navigation-start")}if(!this.path.length)return console.warn("[nav] Unable to find path to %o.",a.destination),this.el.setAttribute("nav-agent",{active:!1}),void i.emit("navigation-end");const c=i.object3D.position,l=this.path[0];t.subVectors(l,c);let d;if(t.length(){e.isMesh&&(n=e)})),!n)return;const r=n.geometry.isBufferGeometry?(new THREE.Geometry).fromBufferGeometry(n.geometry):n.geometry.clone();t.updateMatrixWorld(),r.applyMatrix(n.matrixWorld),this.system.setNavMeshGeometry(r),this.hasLoadedNavMesh=!0}})},31465:function(e,t,n){const{Pathfinding:r}=n(56594),o=new r,i="level";e.exports=AFRAME.registerSystem("nav",{init:function(){this.navMesh=null,this.agents=new Set},setNavMeshGeometry:function(e){this.navMesh=new THREE.Mesh(e),o.setZoneData(i,r.createZone(e)),Array.from(this.agents).forEach((e=>e.updateNavLocation()))},getNavMesh:function(){return this.navMesh},addAgent:function(e){this.agents.add(e)},removeAgent:function(e){this.agents.delete(e)},getPath:function(e,t,n){return this.navMesh?o.findPath(e,t,i,n):null},getGroup:function(e){return this.navMesh?o.getGroup(i,e):null},getNode:function(e,t){return this.navMesh?o.getClosestNode(e,i,t,!0):null},clampStep:function(e,t,n,r,a){return this.navMesh?r?o.clampStep(e,t,r,i,n,a):(a.copy(t),this.getNode(t,n)):(a.copy(t),null)}})},50386:function(e){e.exports=AFRAME.registerPrimitive("a-grid",{defaultComponents:{geometry:{primitive:"plane",width:75,height:75},rotation:{x:-90,y:0,z:0},material:{src:"url(https://cdn.jsdelivr.net/gh/donmccurdy/aframe-extras@v1.16.3/assets/grid.png)",repeat:"75 75"}},mappings:{width:"geometry.width",height:"geometry.height",src:"material.src"}})},23535:function(e,t,n){const r=n(63471),o=n(82667);e.exports.Primitive=AFRAME.registerPrimitive("a-hexgrid",{defaultComponents:{hexgrid:{}},mappings:{src:"hexgrid.src"}}),e.exports.Component=AFRAME.registerComponent("hexgrid",{dependencies:["material"],schema:{src:{type:"asset"}},init:function(){const e=this.data;e.src?fetch(e.src).then((e=>e.json())).then((e=>this.addMesh(e))):this.addMesh(o)},addMesh:function(e){const t=new r.HexGrid;t.fromJSON(e);const n=new r.Board(t);n.generateTilemap(),this.el.setObject3D("mesh",n.group),this.addMaterial()},addMaterial:function(){const e=(this.el.components.material||{}).material;e&&this.el.object3D.traverse((t=>{t.isMesh&&(t.material=e)}))},remove:function(){this.el.removeObject3D("mesh")}})},59307:function(e){e.exports.Primitive=AFRAME.registerPrimitive("a-ocean",{defaultComponents:{ocean:{},rotation:{x:-90,y:0,z:0}},mappings:{width:"ocean.width",depth:"ocean.depth",density:"ocean.density",amplitude:"ocean.amplitude",amplitudeVariance:"ocean.amplitudeVariance",speed:"ocean.speed",speedVariance:"ocean.speedVariance",color:"ocean.color",opacity:"ocean.opacity"}}),e.exports.Component=AFRAME.registerComponent("ocean",{schema:{width:{default:10,min:0},depth:{default:10,min:0},density:{default:10},amplitude:{default:.1},amplitudeVariance:{default:.3},speed:{default:1},speedVariance:{default:2},color:{default:"#7AD2F7",type:"color"},opacity:{default:.8}},play:function(){const e=this.el,t=this.data;let n=e.components.material;const r=new THREE.PlaneGeometry(t.width,t.depth,t.density,t.density);r.mergeVertices(),this.waves=[];for(let o,i=0,a=r.vertices.length;i!0},onDagError:{parse:a,default:void 0},nodeRelSize:{type:"number",default:4},nodeId:{type:"string",default:"id"},nodeVal:{parse:s,default:"val"},nodeResolution:{type:"number",default:8},nodeVisibility:{parse:s,default:!0},nodeColor:{parse:s,default:"color"},nodeAutoColorBy:{parse:s,default:""},nodeOpacity:{type:"number",default:.75},nodeThreeObject:{parse:s,default:null},nodeThreeObjectExtend:{parse:s,default:!1},linkSource:{type:"string",default:"source"},linkTarget:{type:"string",default:"target"},linkVisibility:{parse:s,default:!0},linkColor:{parse:s,default:"color"},linkAutoColorBy:{parse:s,default:""},linkOpacity:{type:"number",default:.2},linkWidth:{parse:s,default:0},linkResolution:{type:"number",default:6},linkCurvature:{parse:s,default:0},linkCurveRotation:{parse:s,default:0},linkMaterial:{parse:s,default:null},linkThreeObject:{parse:s,default:null},linkThreeObjectExtend:{parse:s,default:!1},linkPositionUpdate:{parse:a,default:null},linkDirectionalArrowLength:{parse:s,default:0},linkDirectionalArrowColor:{parse:s,default:null},linkDirectionalArrowRelPos:{parse:s,default:.5},linkDirectionalArrowResolution:{type:"number",default:8},linkDirectionalParticles:{parse:s,default:0},linkDirectionalParticleSpeed:{parse:s,default:.01},linkDirectionalParticleWidth:{parse:s,default:.5},linkDirectionalParticleColor:{parse:s,default:null},linkDirectionalParticleResolution:{type:"number",default:4},onNodeHover:{parse:a,default:()=>{}},onLinkHover:{parse:a,default:()=>{}},onNodeClick:{parse:a,default:()=>{}},onLinkClick:{parse:a,default:()=>{}},forceEngine:{type:"string",default:"d3"},d3AlphaMin:{type:"number",default:0},d3AlphaDecay:{type:"number",default:.0228},d3VelocityDecay:{type:"number",default:.4},ngraphPhysics:{parse:i,default:null},warmupTicks:{type:"int",default:0},cooldownTicks:{type:"int",default:1e18},cooldownTime:{type:"int",default:15e3},onEngineTick:{parse:a,default:function(){}},onEngineStop:{parse:a,default:function(){}}},getGraphBbox:function(){return this.forceGraph||(this.forceGraph=new o),this.forceGraph.getGraphBbox()},emitParticle:function(){this.forceGraph||(this.forceGraph=new o);const e=this.forceGraph,t=e.emitParticle.apply(e,arguments);return t===e?this:t},d3Force:function(){this.forceGraph||(this.forceGraph=new o);const e=this.forceGraph,t=e.d3Force.apply(e,arguments);return t===e?this:t},d3ReheatSimulation:function(){return this.forceGraph&&this.forceGraph.d3ReheatSimulation(),this},refresh:function(){return this.forceGraph&&this.forceGraph.refresh(),this},init:function(){const e=this.state={};e.infoEl=document.createElement("a-text"),e.infoEl.setAttribute("position","0 -0.1 -1"),e.infoEl.setAttribute("width",1),e.infoEl.setAttribute("align","center"),e.infoEl.setAttribute("color","lavender");const t=document.querySelector("a-entity[camera], a-camera");t.appendChild(e.infoEl),e.cameraObj=t.object3D.children.filter((function(e){return"PerspectiveCamera"===e.type}))[0],this.el.sceneEl.addEventListener("camera-set-active",(function(t){e.cameraObj=t.detail.cameraEl.components.camera.camera})),this.forceGraph||(this.forceGraph=new o),this.forceGraph.onFinishUpdate((()=>this.el.setObject3D("forcegraphGroup",this.forceGraph))).onLoading((()=>e.infoEl.setAttribute("value","Loading..."))).onFinishLoading((()=>e.infoEl.setAttribute("value",""))),this.el.addEventListener("raycaster-intersected",(t=>e.hoverDetail=t.detail)),this.el.addEventListener("raycaster-intersected-cleared",(t=>e.hoverDetail=t.detail)),this.el.addEventListener("click",(()=>e.hoverObj&&this.data["on"+("node"===e.hoverObj.__graphObjType?"Node":"Link")+"Click"](e.hoverObj.__data)))},remove:function(){this.state.infoEl.remove(),this.el.removeObject3D("forcegraphGroup")},update:function(e){const t=this,n=this.data,r=AFRAME.utils.diff(n,e);["jsonUrl","numDimensions","dagMode","dagLevelDistance","dagNodeFilter","onDagError","nodeRelSize","nodeId","nodeVal","nodeResolution","nodeVisibility","nodeColor","nodeAutoColorBy","nodeOpacity","nodeThreeObject","nodeThreeObjectExtend","linkSource","linkTarget","linkVisibility","linkColor","linkAutoColorBy","linkOpacity","linkWidth","linkResolution","linkCurvature","linkCurveRotation","linkMaterial","linkThreeObject","linkThreeObjectExtend","linkPositionUpdate","linkDirectionalArrowLength","linkDirectionalArrowColor","linkDirectionalArrowRelPos","linkDirectionalArrowResolution","linkDirectionalParticles","linkDirectionalParticleSpeed","linkDirectionalParticleWidth","linkDirectionalParticleColor","linkDirectionalParticleResolution","forceEngine","d3AlphaMin","d3AphaDecay","d3VelocityDecay","ngraphPhysics","warmupTicks","cooldownTicks","cooldownTime","onEngineTick","onEngineStop"].filter((function(e){return e in r})).forEach((function(e){t.forceGraph[e](""!==n[e]?n[e]:null)})),("nodes"in r||"links"in r)&&t.forceGraph.graphData({nodes:n.nodes,links:n.links})},tick:function(e,t){const n=this.state,r=this.data,o=n.hoverDetail?n.hoverDetail.getIntersection?n.hoverDetail.getIntersection(this.el):n.hoverDetail.intersection||void 0:void 0;let i=o?o.object:void 0;for(;i&&!i.hasOwnProperty("__graphObjType");)i=i.parent;if(i!==n.hoverObj){const e=n.hoverObj?n.hoverObj.__graphObjType:null,t=n.hoverObj?n.hoverObj.__data:null,o=i?i.__graphObjType:null,a=i?i.__data:null;e&&e!==o&&r["on"+("node"===e?"Node":"Link")+"Hover"](null,t),o&&r["on"+("node"===o?"Node":"Link")+"Hover"](a,e===o?t:null),n.hoverObj=i}this.forceGraph.tickFrame()}})},45403:function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var o=n(67294),i=n(96910),a=r(n(90233)),s=r(n(37763)),u=r(n(96705)),c=n(88323),l=n(11487),d=n(46017),f=n(87409),p=n(71018),h=n(81820);function v(){return(v=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,["items","optionFilterFunc","itemRenderer","highlightItemBg","placeholder","label","listStyleProps","labelStyleProps","inputStyleProps","toggleButtonStyleProps","tagStyleProps","selectedIconProps","listItemStyleProps","onCreateItem","icon","hideToggleButton","disableCreateItem","createItemRenderer","renderCustomInput"]),z=o.useState(!1),F=z[0],H=z[1],V=o.useState(""),W=V[0],U=V[1],G=o.useState(t),q=G[0],K=G[1],Z=o.useRef(null),$=i.useMultipleSelection(B),X=$.getSelectedItemProps,Y=$.getDropdownProps,Q=$.addSelectedItem,J=$.removeSelectedItem,ee=$.selectedItems,te=ee.map((function(e){return e.value})),ne=i.useCombobox({inputValue:W,selectedItem:void 0,items:q,onInputValueChange:function(e){var n=e.selectedItem,o=r(t,e.inputValue||"");F&&o.length>0&&H(!1),n||K(o)},stateReducer:function(e,t){var n=t.changes;switch(t.type){case i.useCombobox.stateChangeTypes.InputBlur:return v({},n,{isOpen:!1});case i.useCombobox.stateChangeTypes.InputKeyDownEnter:case i.useCombobox.stateChangeTypes.ItemClick:return v({},n,{highlightedIndex:e.highlightedIndex,inputValue:W,isOpen:!0});case i.useCombobox.stateChangeTypes.FunctionSelectItem:return v({},n,{inputValue:W});default:return n}},onStateChange:function(e){var n=e.inputValue,r=e.selectedItem;switch(e.type){case i.useCombobox.stateChangeTypes.InputChange:U(n||"");break;case i.useCombobox.stateChangeTypes.InputKeyDownEnter:case i.useCombobox.stateChangeTypes.ItemClick:r&&(te.includes(r.value)?J(r):S&&F?(S(r),H(!1),K(t),U("")):Q(r),fe(null))}}}),re=ne.isOpen,oe=ne.getToggleButtonProps,ie=ne.getLabelProps,ae=ne.getMenuProps,se=ne.getInputProps,ue=ne.getComboboxProps,ce=ne.highlightedIndex,le=ne.getItemProps,de=ne.openMenu,fe=ne.selectItem,pe=ne.setHighlightedIndex;return o.useEffect((function(){0!==q.length||R||(H(!0),K([{label:""+W,value:W}]),pe(0))}),[q,H,pe,W,R]),u((function(){K(t)}),[t]),o.createElement(l.Stack,null,o.createElement(c.FormLabel,Object.assign({},v({},ie({}),k)),x),ee&&o.createElement(l.Stack,{spacing:2,isInline:!0,flexWrap:"wrap"},ee.map((function(e,t){return o.createElement(h.Tag,Object.assign({mb:1},C,{key:"selected-item-"+t},X({selectedItem:e,index:t})),o.createElement(h.TagLabel,null,e.label),o.createElement(h.TagCloseButton,{onClick:function(t){t.stopPropagation(),J(e)},"aria-label":"Remove menu selection badge"}))}))),o.createElement(l.Stack,Object.assign({isInline:!0},ue()),N?N(v({},E,se(Y({placeholder:w,onClick:re?function(){}:de,onFocus:re?function(){}:de,ref:Z}))),v({},O,oe(),{ariaLabel:"toggle menu",hideToggleButton:I})):o.createElement(o.Fragment,null,o.createElement(f.Input,Object.assign({},E,se(Y({placeholder:w,onClick:re?function(){}:de,onFocus:re?function(){}:de,ref:Z})))),!I&&o.createElement(d.Button,Object.assign({},O,oe(),{"aria-label":"toggle menu"}),o.createElement(p.ArrowDownIcon,null)))),o.createElement(l.Box,{pb:4,mb:4},o.createElement(l.List,Object.assign({bg:"white",borderRadius:"4px",border:re&&"1px solid rgba(0,0,0,0.1)",boxShadow:"6px 5px 8px rgba(0,50,30,0.02)"},_,ae()),re&&q.map((function(e,t){return o.createElement(l.ListItem,Object.assign({px:2,py:1,borderBottom:"1px solid rgba(0,0,0,0.01)"},M,{bg:ce===t?b:"inherit",key:""+e.value+t},le({item:e,index:t})),F?L(e.label):o.createElement(l.Box,{display:"inline-flex",alignItems:"center"},te.includes(e.value)&&o.createElement(l.ListIcon,Object.assign({as:P||p.CheckCircleIcon,color:"green.500",role:"img",display:"inline","aria-label":"Selected"},T)),a?a(e):o.createElement(s,{autoEscape:!0,searchWords:[W||""],textToHighlight:(n=e,n.label)})));var n})))))}},47647:function(e,t,n){"use strict";e.exports=n(45403)},20640:function(e,t,n){"use strict";var r=n(11742),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,s,u,c,l=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),u=document.getSelection(),(c=document.createElement("span")).textContent=e,c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),u.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(s):u.removeAllRanges()),c&&document.body.removeChild(c),a()}return l}},78244:function(e,t,n){"use strict";n.r(t),n.d(t,{calculateBox:function(){return p},createBox:function(){return c},expand:function(){return a},getBox:function(){return h},getRect:function(){return i},offset:function(){return d},shrink:function(){return s},withScroll:function(){return f}});var r="Invariant failed";var o=function(e,t){if(!e)throw new Error(r)},i=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},a=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},s=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},u={top:0,right:0,bottom:0,left:0},c=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?u:n,o=e.border,c=void 0===o?u:o,l=e.padding,d=void 0===l?u:l,f=i(a(t,r)),p=i(s(t,c)),h=i(s(p,d));return{marginBox:f,borderBox:i(t),paddingBox:p,contentBox:h,margin:r,border:c,padding:d}},l=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&o(!1),n},d=function(e,t){var n,r,o=e.borderBox,i=e.border,a=e.margin,s=e.padding,u=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return c({borderBox:u,border:i,margin:a,padding:s})},f=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),d(e,t)},p=function(e,t){var n={top:l(t.marginTop),right:l(t.marginRight),bottom:l(t.marginBottom),left:l(t.marginLeft)},r={top:l(t.paddingTop),right:l(t.paddingRight),bottom:l(t.paddingBottom),left:l(t.paddingLeft)},o={top:l(t.borderTopWidth),right:l(t.borderRightWidth),bottom:l(t.borderBottomWidth),left:l(t.borderLeftWidth)};return c({borderBox:e,margin:n,padding:r,border:o})},h=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return p(t,n)}},20296:function(e){function t(e,t,n){var r,o,i,a,s;function u(){var c=Date.now()-a;c=0?r=setTimeout(u,t-c):(r=null,n||(s=e.apply(i,o),i=o=null))}null==t&&(t=100);var c=function(){i=this,o=arguments,a=Date.now();var c=n&&!r;return r||(r=setTimeout(u,t)),c&&(s=e.apply(i,o),i=o=null),s};return c.clear=function(){r&&(clearTimeout(r),r=null)},c.flush=function(){r&&(s=e.apply(i,o),i=o=null,clearTimeout(r),r=null)},c}t.debounce=t,e.exports=t},53879:function(e,t,n){var r=n(87236),o=n(6189),i={float:"cssFloat"},a=n(93379);function s(e,t,n){var s=i[t];if("undefined"===typeof s&&(s=function(e){var t=o(e),n=r(t);return i[t]=i[e]=i[n]=n,n}(t)),s){if(void 0===n)return e.style[s];e.style[s]=a(s,n)}}function u(e,t){for(var n in t)t.hasOwnProperty(n)&&s(e,n,t[n])}function c(){2===arguments.length?"string"===typeof arguments[1]?arguments[0].style.cssText=arguments[1]:u(arguments[0],arguments[1]):s(arguments[0],arguments[1],arguments[2])}e.exports=c,e.exports.set=c,e.exports.get=function(e,t){return Array.isArray(t)?t.reduce((function(t,n){return t[n]=s(e,n||""),t}),{}):s(e,t||"")}},96910:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}function o(){return(o=Object.assign||function(e){for(var t=1;tt||i>e&&a=t&&s>=n?i-e-r:a>t&&sn?a-t+o:0}var h=n(70655),v=0;function m(e){return"function"===typeof e?e:g}function g(){}function y(e,t){e&&function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,u="function"==typeof a?a:function(e){return e!==a};if(!l(e))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,d=[],h=e;l(h)&&u(h);){if((h=h.parentElement)===c){d.push(h);break}null!=h&&h===document.body&&f(h)&&!f(document.documentElement)||null!=h&&f(h,s)&&d.push(h)}for(var v=n.visualViewport?n.visualViewport.width:innerWidth,m=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),w=b.height,x=b.width,_=b.top,k=b.right,E=b.bottom,O=b.left,C="start"===o||"nearest"===o?_:"end"===o?E:_+w/2,T="center"===i?O+x/2:"end"===i?k:O,M=[],S=0;S=0&&O>=0&&E<=m&&k<=v&&_>=R&&E<=L&&O>=N&&k<=D)return M;var B=getComputedStyle(P),z=parseInt(B.borderLeftWidth,10),F=parseInt(B.borderTopWidth,10),H=parseInt(B.borderRightWidth,10),V=parseInt(B.borderBottomWidth,10),W=0,U=0,G="offsetWidth"in P?P.offsetWidth-P.clientWidth-z-H:0,q="offsetHeight"in P?P.offsetHeight-P.clientHeight-F-V:0;if(c===P)W="start"===o?C:"end"===o?C-m:"nearest"===o?p(y,y+m,m,F,V,y+C,y+C+w,w):C-m/2,U="start"===i?T:"center"===i?T-v/2:"end"===i?T-v:p(g,g+v,v,z,H,g+T,g+T+x,x),W=Math.max(0,W+y),U=Math.max(0,U+g);else{W="start"===o?C-R-F:"end"===o?C-L+V+q:"nearest"===o?p(R,L,I,F,V+q,C,C+w,w):C-(R+I/2)+q/2,U="start"===i?T-N-z:"center"===i?T-(N+A/2)+G/2:"end"===i?T-D+H+G:p(N,D,A,z,H+G,T,T+x,x);var K=P.scrollLeft,Z=P.scrollTop;C+=Z-(W=Math.max(0,Math.min(Z+W,P.scrollHeight-I+q))),T+=K-(U=Math.max(0,Math.min(K+U,P.scrollWidth-A+G)))}M.push({el:P,top:W,left:U})}return M}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))}function b(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function w(e,t){var n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,i=new Array(o),a=0;a1?n-1:0),o=1;o=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function R(e,t,n,r,o){if(void 0===o&&(o=!0),0===n)return-1;var i=n-1;("number"!==typeof t||t<0||t>=n)&&(t=e>0?-1:i+1);var a=t+e;a<0?a=o?i:0:a>i&&(a=o?0:i);var s=D(e,a,n,r,o);return-1===s?t>=n?-1:t:s}function D(e,t,n,r,o){var i=r(t);if(!i||!i.hasAttribute("disabled"))return t;if(e>0){for(var a=t+1;a=0;s--)if(!r(s).hasAttribute("disabled"))return s;return o?e>0?D(1,0,n,r,!1):D(-1,n-1,n,r,!1):-1}function L(e,t,n,r){return void 0===r&&(r=!0),t.some((function(t){return t&&(b(t,e,n)||r&&b(t,n.document.activeElement,n))}))}var N=w((function(e){z(e).textContent=""}),500);function B(e,t){var n=z(t);e&&(n.textContent=e,N(t))}function z(e){void 0===e&&(e=document);var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var F=Object.freeze({__proto__:null,unknown:0,mouseUp:1,itemMouseEnter:2,keyDownArrowUp:3,keyDownArrowDown:4,keyDownEscape:5,keyDownEnter:6,keyDownHome:7,keyDownEnd:8,clickItem:9,blurInput:10,changeInput:11,keyDownSpaceButton:12,clickButton:13,blurButton:14,controlledPropUpdatedSelectedItem:15,touchEnd:16}),H=["refKey","ref"],V=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],W=["onKeyDown","onBlur","onChange","onInput","onChangeText"],U=["refKey","ref"],G=["onMouseMove","onMouseDown","onClick","onPress","index","item"],q=function(){var e=function(e){var t,n;function s(t){var n;(n=e.call(this,t)||this).id=n.props.id||"downshift-"+k(),n.menuId=n.props.menuId||n.id+"-menu",n.labelId=n.props.labelId||n.id+"-label",n.inputId=n.props.inputId||n.id+"-input",n.getItemId=n.props.getItemId||function(e){return n.id+"-item-"+e},n.input=null,n.items=[],n.itemCount=null,n.previousResultCount=0,n.timeoutIds=[],n.internalSetTimeout=function(e,t){var r=setTimeout((function(){n.timeoutIds=n.timeoutIds.filter((function(e){return e!==r})),e()}),t);n.timeoutIds.push(r)},n.setItemCount=function(e){n.itemCount=e},n.unsetItemCount=function(){n.itemCount=null},n.setHighlightedIndex=function(e,t){void 0===e&&(e=n.props.defaultHighlightedIndex),void 0===t&&(t={}),t=P(t),n.internalSetState(o({highlightedIndex:e},t))},n.clearSelection=function(e){n.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:n.props.defaultHighlightedIndex,isOpen:n.props.defaultIsOpen},e)},n.selectItem=function(e,t,r){t=P(t),n.internalSetState(o({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,selectedItem:e,inputValue:n.props.itemToString(e)},t),r)},n.selectItemAtIndex=function(e,t,r){var o=n.items[e];null!=o&&n.selectItem(o,t,r)},n.selectHighlightedItem=function(e,t){return n.selectItemAtIndex(n.getState().highlightedIndex,e,t)},n.internalSetState=function(e,t){var r,i,a={},s="function"===typeof e;return!s&&e.hasOwnProperty("inputValue")&&n.props.onInputValueChange(e.inputValue,o({},n.getStateAndHelpers(),e)),n.setState((function(t){t=n.getState(t);var u=s?e(t):e;u=n.props.stateReducer(t,u),r=u.hasOwnProperty("selectedItem");var c={},l={};return r&&u.selectedItem!==t.selectedItem&&(i=u.selectedItem),u.type=u.type||0,Object.keys(u).forEach((function(e){t[e]!==u[e]&&(a[e]=u[e]),"type"!==e&&(l[e]=u[e],I(n.props,e)||(c[e]=u[e]))})),s&&u.hasOwnProperty("inputValue")&&n.props.onInputValueChange(u.inputValue,o({},n.getStateAndHelpers(),u)),c}),(function(){m(t)(),Object.keys(a).length>1&&n.props.onStateChange(a,n.getStateAndHelpers()),r&&n.props.onSelect(e.selectedItem,n.getStateAndHelpers()),void 0!==i&&n.props.onChange(i,n.getStateAndHelpers()),n.props.onUserAction(a,n.getStateAndHelpers())}))},n.rootRef=function(e){return n._rootNode=e},n.getRootProps=function(e,t){var i,a=void 0===e?{}:e,s=a.refKey,u=void 0===s?"ref":s,c=a.ref,l=r(a,H),d=(void 0===t?{}:t).suppressRefError,f=void 0!==d&&d;n.getRootProps.called=!0,n.getRootProps.refKey=u,n.getRootProps.suppressRefError=f;var p=n.getState().isOpen;return o(((i={})[u]=_(c,n.rootRef),i.role="combobox",i["aria-expanded"]=p,i["aria-haspopup"]="listbox",i["aria-owns"]=p?n.menuId:null,i["aria-labelledby"]=n.labelId,i),l)},n.keyDownHandlers={ArrowDown:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?5:1;this.moveHighlightedIndex(n,{type:4})}else this.internalSetState({isOpen:!0,type:4},(function(){var e=t.getItemCount();if(e>0){var n=R(1,t.getState().highlightedIndex,e,(function(e){return t.getItemNodeFromIndex(e)}));t.setHighlightedIndex(n,{type:4})}}))},ArrowUp:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?-5:-1;this.moveHighlightedIndex(n,{type:3})}else this.internalSetState({isOpen:!0,type:3},(function(){var e=t.getItemCount();if(e>0){var n=R(-1,t.getState().highlightedIndex,e,(function(e){return t.getItemNodeFromIndex(e)}));t.setHighlightedIndex(n,{type:3})}}))},Enter:function(e){if(229!==e.which){var t=this.getState(),n=t.isOpen,r=t.highlightedIndex;if(n&&null!=r){e.preventDefault();var o=this.items[r],i=this.getItemNodeFromIndex(r);if(null==o||i&&i.hasAttribute("disabled"))return;this.selectHighlightedItem({type:6})}}},Escape:function(e){e.preventDefault(),this.reset(o({type:5},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},n.buttonKeyDownHandlers=o({},n.keyDownHandlers,{" ":function(e){e.preventDefault(),this.toggleMenu({type:12})}}),n.inputKeyDownHandlers=o({},n.keyDownHandlers,{Home:function(e){var t=this,n=this.getState().isOpen;if(n){e.preventDefault();var r=this.getItemCount();if(!(r<=0)&&n){var o=D(1,0,r,(function(e){return t.getItemNodeFromIndex(e)}),!1);this.setHighlightedIndex(o,{type:7})}}},End:function(e){var t=this,n=this.getState().isOpen;if(n){e.preventDefault();var r=this.getItemCount();if(!(r<=0)&&n){var o=D(-1,r-1,r,(function(e){return t.getItemNodeFromIndex(e)}),!1);this.setHighlightedIndex(o,{type:8})}}}}),n.getToggleButtonProps=function(e){var t=void 0===e?{}:e,i=t.onClick;t.onPress;var a=t.onKeyDown,s=t.onKeyUp,u=t.onBlur,c=r(t,V),l=n.getState().isOpen,d={onClick:x(i,n.buttonHandleClick),onKeyDown:x(a,n.buttonHandleKeyDown),onKeyUp:x(s,n.buttonHandleKeyUp),onBlur:x(u,n.buttonHandleBlur)};return o({type:"button",role:"button","aria-label":l?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},c.disabled?{}:d,c)},n.buttonHandleKeyUp=function(e){e.preventDefault()},n.buttonHandleKeyDown=function(e){var t=A(e);n.buttonKeyDownHandlers[t]&&n.buttonKeyDownHandlers[t].call(i(n),e)},n.buttonHandleClick=function(e){e.preventDefault(),n.props.environment.document.activeElement===n.props.environment.document.body&&e.target.focus(),n.internalSetTimeout((function(){return n.toggleMenu({type:13})}))},n.buttonHandleBlur=function(e){var t=e.target;n.internalSetTimeout((function(){n.isMouseDown||null!=n.props.environment.document.activeElement&&n.props.environment.document.activeElement.id===n.inputId||n.props.environment.document.activeElement===t||n.reset({type:14})}))},n.getLabelProps=function(e){return o({htmlFor:n.inputId,id:n.labelId},e)},n.getInputProps=function(e){var t=void 0===e?{}:e,i=t.onKeyDown,a=t.onBlur,s=t.onChange,u=t.onInput;t.onChangeText;var c=r(t,W),l={};var d,f=n.getState(),p=f.inputValue,h=f.isOpen,v=f.highlightedIndex;c.disabled||((d={}).onChange=x(s,u,n.inputHandleChange),d.onKeyDown=x(i,n.inputHandleKeyDown),d.onBlur=x(a,n.inputHandleBlur),l=d);return o({"aria-autocomplete":"list","aria-activedescendant":h&&"number"===typeof v&&v>=0?n.getItemId(v):null,"aria-controls":h?n.menuId:null,"aria-labelledby":n.labelId,autoComplete:"off",value:p,id:n.inputId},l,c)},n.inputHandleKeyDown=function(e){var t=A(e);t&&n.inputKeyDownHandlers[t]&&n.inputKeyDownHandlers[t].call(i(n),e)},n.inputHandleChange=function(e){n.internalSetState({type:11,isOpen:!0,inputValue:e.target.value,highlightedIndex:n.props.defaultHighlightedIndex})},n.inputHandleBlur=function(){n.internalSetTimeout((function(){var e=n.props.environment.document&&!!n.props.environment.document.activeElement&&!!n.props.environment.document.activeElement.dataset&&n.props.environment.document.activeElement.dataset.toggle&&n._rootNode&&n._rootNode.contains(n.props.environment.document.activeElement);n.isMouseDown||e||n.reset({type:10})}))},n.menuRef=function(e){n._menuNode=e},n.getMenuProps=function(e,t){var i,a=void 0===e?{}:e,s=a.refKey,u=void 0===s?"ref":s,c=a.ref,l=r(a,U),d=(void 0===t?{}:t).suppressRefError,f=void 0!==d&&d;return n.getMenuProps.called=!0,n.getMenuProps.refKey=u,n.getMenuProps.suppressRefError=f,o(((i={})[u]=_(c,n.menuRef),i.role="listbox",i["aria-labelledby"]=l&&l["aria-label"]?null:n.labelId,i.id=n.menuId,i),l)},n.getItemProps=function(e){var t,i=void 0===e?{}:e,a=i.onMouseMove,s=i.onMouseDown,u=i.onClick;i.onPress;var c=i.index,l=i.item,d=void 0===l?void 0:l,f=r(i,G);void 0===c?(n.items.push(d),c=n.items.indexOf(d)):n.items[c]=d;var p=u,h=((t={onMouseMove:x(a,(function(){c!==n.getState().highlightedIndex&&(n.setHighlightedIndex(c,{type:2}),n.avoidScrolling=!0,n.internalSetTimeout((function(){return n.avoidScrolling=!1}),250))})),onMouseDown:x(s,(function(e){e.preventDefault()}))}).onClick=x(p,(function(){n.selectItemAtIndex(c,{type:9})})),t),v=f.disabled?{onMouseDown:h.onMouseDown}:h;return o({id:n.getItemId(c),role:"option","aria-selected":n.getState().highlightedIndex===c},v,f)},n.clearItems=function(){n.items=[]},n.reset=function(e,t){void 0===e&&(e={}),e=P(e),n.internalSetState((function(t){var r=t.selectedItem;return o({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,inputValue:n.props.itemToString(r)},e)}),t)},n.toggleMenu=function(e,t){void 0===e&&(e={}),e=P(e),n.internalSetState((function(t){var r=t.isOpen;return o({isOpen:!r},r&&{highlightedIndex:n.props.defaultHighlightedIndex},e)}),(function(){var r=n.getState(),o=r.isOpen,i=r.highlightedIndex;o&&n.getItemCount()>0&&"number"===typeof i&&n.setHighlightedIndex(i,e),m(t)()}))},n.openMenu=function(e){n.internalSetState({isOpen:!0},e)},n.closeMenu=function(e){n.internalSetState({isOpen:!1},e)},n.updateStatus=w((function(){var e=n.getState(),t=n.items[e.highlightedIndex],r=n.getItemCount(),i=n.props.getA11yStatusMessage(o({itemToString:n.props.itemToString,previousResultCount:n.previousResultCount,resultCount:r,highlightedItem:t},e));n.previousResultCount=r,B(i,n.props.environment.document)}),200);var a=n.props,s=a.defaultHighlightedIndex,u=a.initialHighlightedIndex,c=void 0===u?s:u,l=a.defaultIsOpen,d=a.initialIsOpen,f=void 0===d?l:d,p=a.initialInputValue,h=void 0===p?"":p,v=a.initialSelectedItem,g=void 0===v?null:v,y=n.getState({highlightedIndex:c,isOpen:f,inputValue:h,selectedItem:g});return null!=y.selectedItem&&void 0===n.props.initialInputValue&&(y.inputValue=n.props.itemToString(y.selectedItem)),n.state=y,n}n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n);var u=s.prototype;return u.internalClearTimeouts=function(){this.timeoutIds.forEach((function(e){clearTimeout(e)})),this.timeoutIds=[]},u.getState=function(e){return void 0===e&&(e=this.state),j(e,this.props)},u.getItemCount=function(){var e=this.items.length;return null!=this.itemCount?e=this.itemCount:void 0!==this.props.itemCount&&(e=this.props.itemCount),e},u.getItemNodeFromIndex=function(e){return this.props.environment.document.getElementById(this.getItemId(e))},u.scrollHighlightedItemIntoView=function(){var e=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(e,this._menuNode)},u.moveHighlightedIndex=function(e,t){var n=this,r=this.getItemCount(),o=this.getState().highlightedIndex;if(r>0){var i=R(e,o,r,(function(e){return n.getItemNodeFromIndex(e)}));this.setHighlightedIndex(i,t)}},u.getStateAndHelpers=function(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,r=e.selectedItem,o=e.isOpen,i=this.props.itemToString,a=this.id,s=this.getRootProps,u=this.getToggleButtonProps,c=this.getLabelProps,l=this.getMenuProps,d=this.getInputProps,f=this.getItemProps,p=this.openMenu,h=this.closeMenu,v=this.toggleMenu,m=this.selectItem,g=this.selectItemAtIndex,y=this.selectHighlightedItem,b=this.setHighlightedIndex,w=this.clearSelection,x=this.clearItems;return{getRootProps:s,getToggleButtonProps:u,getLabelProps:c,getMenuProps:l,getInputProps:d,getItemProps:f,reset:this.reset,openMenu:p,closeMenu:h,toggleMenu:v,selectItem:m,selectItemAtIndex:g,selectHighlightedItem:y,setHighlightedIndex:b,clearSelection:w,clearItems:x,setItemCount:this.setItemCount,unsetItemCount:this.unsetItemCount,setState:this.internalSetState,itemToString:i,id:a,highlightedIndex:t,inputValue:n,isOpen:o,selectedItem:r}},u.componentDidMount=function(){var e=this;var t=function(){e.isMouseDown=!0},n=function(t){e.isMouseDown=!1,!L(t.target,[e._rootNode,e._menuNode],e.props.environment)&&e.getState().isOpen&&e.reset({type:1},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},r=function(){e.isTouchMove=!1},o=function(){e.isTouchMove=!0},i=function(t){var n=L(t.target,[e._rootNode,e._menuNode],e.props.environment,!1);e.isTouchMove||n||!e.getState().isOpen||e.reset({type:16},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},a=this.props.environment;a.addEventListener("mousedown",t),a.addEventListener("mouseup",n),a.addEventListener("touchstart",r),a.addEventListener("touchmove",o),a.addEventListener("touchend",i),this.cleanup=function(){e.internalClearTimeouts(),e.updateStatus.cancel(),a.removeEventListener("mousedown",t),a.removeEventListener("mouseup",n),a.removeEventListener("touchstart",r),a.removeEventListener("touchmove",o),a.removeEventListener("touchend",i)}},u.shouldScroll=function(e,t){var n=(void 0===this.props.highlightedIndex?this.getState():this.props).highlightedIndex,r=(void 0===t.highlightedIndex?e:t).highlightedIndex;return n&&this.getState().isOpen&&!e.isOpen||n!==r},u.componentDidUpdate=function(e,t){I(this.props,"selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:15,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(t,e)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},u.componentWillUnmount=function(){this.cleanup()},u.render=function(){var e=C(this.props.children,g);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var t=C(e(this.getStateAndHelpers()));return t?this.getRootProps.called||this.props.suppressRefError?t:T(t)?(0,c.cloneElement)(t,this.getRootProps(M(t))):void 0:null},s}(c.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:O,itemToString:function(e){return null==e?"":String(e)},onStateChange:g,onInputValueChange:g,onUserAction:g,onChange:g,onSelect:g,onOuterClick:g,selectedItemChanged:function(e,t){return e!==t},environment:"undefined"===typeof window?{}:window,stateReducer:function(e,t){return t},suppressRefError:!1,scrollIntoView:y},e.stateChangeTypes=F,e}();var K=["isInitialMount","highlightedIndex","items","environment"],Z={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function $(e,t,n){var r=e.props,i=e.type,a={};Object.keys(t).forEach((function(r){!function(e,t,n,r){var i=t.props,a=t.type,s="on"+te(e)+"Change";i[s]&&void 0!==r[e]&&r[e]!==n[e]&&i[s](o({type:a},r))}(r,e,t,n),n[r]!==t[r]&&(a[r]=n[r])})),r.onStateChange&&Object.keys(a).length&&r.onStateChange(o({type:i},a))}var X=w((function(e,t){B(e(),t)}),200),Y="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?c.useLayoutEffect:c.useEffect;function Q(e){var t=e.id,n=void 0===t?"downshift-"+k():t,r=e.labelId,o=e.menuId,i=e.getItemId,a=e.toggleButtonId,s=e.inputId;return(0,c.useRef)({labelId:r||n+"-label",menuId:o||n+"-menu",getItemId:i||function(e){return n+"-item-"+e},toggleButtonId:a||n+"-toggle-button",inputId:s||n+"-input"}).current}function J(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function ee(e){return/^\S{1}$/.test(e)}function te(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function ne(e){var t=(0,c.useRef)(e);return t.current=e,t}function re(e,t,n){var r=(0,c.useRef)(),i=(0,c.useRef)(),a=(0,c.useCallback)((function(t,n){i.current=n,t=j(t,n.props);var r=e(t,n);return n.props.stateReducer(t,o({},n,{changes:r}))}),[e]),s=(0,c.useReducer)(a,t),u=s[0],l=s[1],d=ne(n),f=(0,c.useCallback)((function(e){return l(o({props:d.current},e))}),[d]),p=i.current;return(0,c.useEffect)((function(){p&&r.current&&r.current!==u&&$(p,j(r.current,p.props),u),r.current=u}),[u,n,p]),[u,f]}function oe(e,t,n){var r=re(e,t,n),o=r[0],i=r[1];return[j(o,n),i]}var ie={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""},scrollIntoView:y,circularNavigation:!1,environment:"undefined"===typeof window?{}:window};function ae(e,t,n){void 0===n&&(n=Z);var r="default"+te(t);return r in e?e[r]:n[t]}function se(e,t,n){if(void 0===n&&(n=Z),t in e)return e[t];var r="initial"+te(t);return r in e?e[r]:ae(e,t,n)}function ue(e){var t=se(e,"selectedItem"),n=se(e,"isOpen"),r=se(e,"highlightedIndex"),o=se(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function ce(e,t,n,r){var o=e.items,i=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,s=t.selectedItem,u=t.highlightedIndex;return 0===o.length?-1:void 0!==i&&u===i?i:void 0!==a?a:s?0===n?o.indexOf(s):R(n,o.indexOf(s),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function le(e,t,n,r){var o=(0,c.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,c.useEffect)((function(){var i=function(){o.current.isMouseDown=!0},a=function(i){o.current.isMouseDown=!1,e&&!L(i.target,t.map((function(e){return e.current})),n)&&r()},s=function(){o.current.isTouchMove=!1},u=function(){o.current.isTouchMove=!0},c=function(i){!e||o.current.isTouchMove||L(i.target,t.map((function(e){return e.current})),n,!1)||r()};return n.addEventListener("mousedown",i),n.addEventListener("mouseup",a),n.addEventListener("touchstart",s),n.addEventListener("touchmove",u),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",i),n.removeEventListener("mouseup",a),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",u),n.removeEventListener("touchend",c)}}),[e,n]),o}var de=function(){return g};function fe(e,t,n){var i=n.isInitialMount,a=n.highlightedIndex,s=n.items,u=n.environment,l=r(n,K);(0,c.useEffect)((function(){i||X((function(){return e(o({highlightedIndex:a,highlightedItem:s[a],resultCount:s.length},l))}),u.document)}),t)}function pe(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,o=e.getItemNodeFromIndex,i=e.menuElement,a=e.scrollIntoView,s=(0,c.useRef)(!0);return Y((function(){t<0||!n||!Object.keys(r.current).length||(!1===s.current?s.current=!0:a(o(t),i))}),[t]),s}var he=g;function ve(e,t,n){var r,i=t.type,a=t.props;switch(i){case n.ItemMouseMove:r={highlightedIndex:t.index};break;case n.MenuMouseLeave:r={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:ce(a,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:ce(a,e,0)};break;case n.FunctionCloseMenu:r={isOpen:!1};break;case n.FunctionSetHighlightedIndex:r={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:r={inputValue:t.inputValue};break;case n.FunctionReset:r={highlightedIndex:ae(a,"highlightedIndex"),isOpen:ae(a,"isOpen"),selectedItem:ae(a,"selectedItem"),inputValue:ae(a,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return o({},e,r)}function me(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,o=e.itemToString,i=e.getItemNodeFromIndex,a=t.toLowerCase(),s=0;s=0&&{selectedItem:i.items[c]});break;case 13:n={highlightedIndex:ce(i,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case 14:n={highlightedIndex:ce(i,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case 5:case 6:n=o({isOpen:ae(i,"isOpen"),highlightedIndex:ae(i,"highlightedIndex")},e.highlightedIndex>=0&&{selectedItem:i.items[e.highlightedIndex]});break;case 3:n={highlightedIndex:D(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={highlightedIndex:D(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case 2:case 8:n={isOpen:!1,highlightedIndex:-1};break;case 7:var l=t.key,d=""+e.inputValue+l,f=me({keysSoFar:d,highlightedIndex:e.highlightedIndex,items:i.items,itemToString:i.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});n=o({inputValue:d},f>=0&&{highlightedIndex:f});break;case 0:n={highlightedIndex:R(a?5:1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case 1:n={highlightedIndex:R(a?-5:-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case 20:n={selectedItem:t.selectedItem};break;default:return ve(e,t,be)}return o({},e,n)}var xe=["onMouseLeave","refKey","onKeyDown","onBlur","ref"],_e=["onClick","onKeyDown","refKey","ref"],ke=["item","index","onMouseMove","onClick","refKey","ref"];function Ee(e){void 0===e&&(e={}),ye(e,Ee);var t=o({},ge,e),n=t.items,i=t.scrollIntoView,a=t.environment,s=t.initialIsOpen,u=t.defaultIsOpen,l=t.itemToString,d=t.getA11ySelectionMessage,f=t.getA11yStatusMessage,p=oe(we,ue(t),t),h=p[0],v=p[1],m=h.isOpen,g=h.highlightedIndex,y=h.selectedItem,b=h.inputValue,k=(0,c.useRef)(null),E=(0,c.useRef)(null),O=(0,c.useRef)({}),C=(0,c.useRef)(!0),T=(0,c.useRef)(null),M=Q(t),S=(0,c.useRef)(),P=(0,c.useRef)(!0),j=ne({state:h,props:t}),I=(0,c.useCallback)((function(e){return O.current[M.getItemId(e)]}),[M]);fe(f,[m,g,b,n],o({isInitialMount:P.current,previousResultCount:S.current,items:n,environment:a,itemToString:l},h)),fe(d,[y],o({isInitialMount:P.current,previousResultCount:S.current,items:n,environment:a,itemToString:l},h));var R=pe({menuElement:E.current,highlightedIndex:g,isOpen:m,itemRefs:O,scrollIntoView:i,getItemNodeFromIndex:I});(0,c.useEffect)((function(){return T.current=w((function(e){e({type:21,inputValue:""})}),500),function(){T.current.cancel()}}),[]),(0,c.useEffect)((function(){b&&T.current(v)}),[v,b]),he({isInitialMount:P.current,props:t,state:h}),(0,c.useEffect)((function(){P.current?(s||u||m)&&E.current&&E.current.focus():m?E.current&&E.current.focus():a.document.activeElement===E.current&&k.current&&(C.current=!1,k.current.focus())}),[m]),(0,c.useEffect)((function(){P.current||(S.current=n.length)}));var D=le(m,[E,k],a,(function(){v({type:8})})),L=de();(0,c.useEffect)((function(){P.current=!1}),[]),(0,c.useEffect)((function(){m||(O.current={})}),[m]);var N=(0,c.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),v({type:13,getItemNodeFromIndex:I,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),v({type:14,getItemNodeFromIndex:I,shiftKey:e.shiftKey})}}}),[v,I]),B=(0,c.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),v({type:0,getItemNodeFromIndex:I,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),v({type:1,getItemNodeFromIndex:I,shiftKey:e.shiftKey})},Home:function(e){e.preventDefault(),v({type:3,getItemNodeFromIndex:I})},End:function(e){e.preventDefault(),v({type:4,getItemNodeFromIndex:I})},Escape:function(){v({type:2})},Enter:function(e){e.preventDefault(),v({type:5})}," ":function(e){e.preventDefault(),v({type:6})}}}),[v,I]),z=(0,c.useCallback)((function(){v({type:16})}),[v]),F=(0,c.useCallback)((function(){v({type:18})}),[v]),H=(0,c.useCallback)((function(){v({type:17})}),[v]),V=(0,c.useCallback)((function(e){v({type:19,highlightedIndex:e})}),[v]),W=(0,c.useCallback)((function(e){v({type:20,selectedItem:e})}),[v]),U=(0,c.useCallback)((function(){v({type:22})}),[v]),G=(0,c.useCallback)((function(e){v({type:21,inputValue:e})}),[v]),q=(0,c.useCallback)((function(e){return o({id:M.labelId,htmlFor:M.toggleButtonId},e)}),[M]),K=(0,c.useCallback)((function(e,t){var n,i=void 0===e?{}:e,a=i.onMouseLeave,s=i.refKey,u=void 0===s?"ref":s,c=i.onKeyDown,l=i.onBlur,d=i.ref,f=r(i,xe),p=(void 0===t?{}:t).suppressRefError,h=void 0!==p&&p,m=j.current.state;return L("getMenuProps",h,u,E),o(((n={})[u]=_(d,(function(e){E.current=e})),n.id=M.menuId,n.role="listbox",n["aria-labelledby"]=M.labelId,n.tabIndex=-1,n),m.isOpen&&m.highlightedIndex>-1&&{"aria-activedescendant":M.getItemId(m.highlightedIndex)},{onMouseLeave:x(a,(function(){v({type:9})})),onKeyDown:x(c,(function(e){var t=A(e);t&&B[t]?B[t](e):ee(t)&&v({type:7,key:t,getItemNodeFromIndex:I})})),onBlur:x(l,(function(){!1!==C.current?!D.current.isMouseDown&&v({type:8}):C.current=!0}))},f)}),[v,j,B,D,L,M,I]);return{getToggleButtonProps:(0,c.useCallback)((function(e,t){var n,i=void 0===e?{}:e,a=i.onClick,s=i.onKeyDown,u=i.refKey,c=void 0===u?"ref":u,l=i.ref,d=r(i,_e),f=(void 0===t?{}:t).suppressRefError,p=void 0!==f&&f,h=o(((n={})[c]=_(l,(function(e){k.current=e})),n.id=M.toggleButtonId,n["aria-haspopup"]="listbox",n["aria-expanded"]=j.current.state.isOpen,n["aria-labelledby"]=M.labelId+" "+M.toggleButtonId,n),d);return d.disabled||(h.onClick=x(a,(function(){v({type:12})})),h.onKeyDown=x(s,(function(e){var t=A(e);t&&N[t]?N[t](e):ee(t)&&v({type:15,key:t,getItemNodeFromIndex:I})}))),L("getToggleButtonProps",p,c,k),h}),[v,j,N,L,M,I]),getLabelProps:q,getMenuProps:K,getItemProps:(0,c.useCallback)((function(e){var t,n=void 0===e?{}:e,i=n.item,a=n.index,s=n.onMouseMove,u=n.onClick,c=n.refKey,l=void 0===c?"ref":c,d=n.ref,f=r(n,ke),p=j.current,h=p.state,m=p.props,g=J(a,i,m.items);if(g<0)throw new Error("Pass either item or item index in getItemProps!");var y=o(((t={role:"option","aria-selected":""+(g===h.highlightedIndex),id:M.getItemId(g)})[l]=_(d,(function(e){e&&(O.current[M.getItemId(g)]=e)})),t),f);return f.disabled||(y.onMouseMove=x(s,(function(){a!==h.highlightedIndex&&(R.current=!1,v({type:10,index:a}))})),y.onClick=x(u,(function(){v({type:11,index:a})}))),y}),[v,j,R,M]),toggleMenu:z,openMenu:H,closeMenu:F,setHighlightedIndex:V,selectItem:W,reset:U,setInputValue:G,highlightedIndex:g,isOpen:m,selectedItem:y,inputValue:b}}Ee.stateChangeTypes=be;var Oe=Object.freeze({__proto__:null,InputKeyDownArrowDown:0,InputKeyDownArrowUp:1,InputKeyDownEscape:2,InputKeyDownHome:3,InputKeyDownEnd:4,InputKeyDownEnter:5,InputChange:6,InputBlur:7,MenuMouseLeave:8,ItemMouseMove:9,ItemClick:10,ToggleButtonClick:11,FunctionToggleMenu:12,FunctionOpenMenu:13,FunctionCloseMenu:14,FunctionSetHighlightedIndex:15,FunctionSelectItem:16,FunctionSetInputValue:17,FunctionReset:18,ControlledPropUpdatedSelectedItem:19});u().array.isRequired,u().func,u().func,u().func,u().bool,u().number,u().number,u().number,u().bool,u().bool,u().bool,u().any,u().any,u().any,u().string,u().string,u().string,u().string,u().string,u().string,u().func,u().string,u().string,u().func,u().func,u().func,u().func,u().func,u().func,u().shape({addEventListener:u().func,removeEventListener:u().func,document:u().shape({getElementById:u().func,activeElement:u().any,body:u().any})});var Ce=g;var Te=o({},ie,{getA11yStatusMessage:O,circularNavigation:!0});function Me(e,t){var n,r=t.type,i=t.props,a=t.shiftKey;switch(r){case 10:n={isOpen:ae(i,"isOpen"),highlightedIndex:ae(i,"highlightedIndex"),selectedItem:i.items[t.index],inputValue:i.itemToString(i.items[t.index])};break;case 0:n=e.isOpen?{highlightedIndex:R(a?5:1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)}:{highlightedIndex:ce(i,e,1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case 1:n=e.isOpen?{highlightedIndex:R(a?-5:-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)}:{highlightedIndex:ce(i,e,-1,t.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case 5:n=o({},e.isOpen&&e.highlightedIndex>=0&&{selectedItem:i.items[e.highlightedIndex],isOpen:ae(i,"isOpen"),highlightedIndex:ae(i,"highlightedIndex"),inputValue:i.itemToString(i.items[e.highlightedIndex])});break;case 2:n=o({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case 3:n={highlightedIndex:D(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={highlightedIndex:D(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case 7:n=o({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&t.selectItem&&{selectedItem:i.items[e.highlightedIndex],inputValue:i.itemToString(i.items[e.highlightedIndex])});break;case 6:n={isOpen:!0,highlightedIndex:ae(i,"highlightedIndex"),inputValue:t.inputValue};break;case 16:n={selectedItem:t.selectedItem,inputValue:i.itemToString(t.selectedItem)};break;case 19:n={inputValue:t.inputValue};break;default:return ve(e,t,Oe)}return o({},e,n)}var Se=["onMouseLeave","refKey","ref"],Pe=["item","index","refKey","ref","onMouseMove","onClick","onPress"],je=["onClick","onPress","refKey","ref"],Ie=["onKeyDown","onChange","onInput","onBlur","onChangeText","refKey","ref"],Ae=["refKey","ref"];function Re(e){void 0===e&&(e={}),Ce(e,Re);var t=o({},Te,e),n=t.initialIsOpen,i=t.defaultIsOpen,a=t.items,s=t.scrollIntoView,u=t.environment,l=t.getA11yStatusMessage,d=t.getA11ySelectionMessage,f=t.itemToString,p=function(e,t,n){var r=(0,c.useRef)(),o=re(e,t,n),i=o[0],a=o[1];return(0,c.useEffect)((function(){I(n,"selectedItem")&&(r.current!==n.selectedItem&&a({type:19,inputValue:n.itemToString(n.selectedItem)}),r.current=i.selectedItem===r.current?n.selectedItem:i.selectedItem)})),[j(i,n),a]}(Me,function(e){var t=ue(e),n=t.selectedItem,r=t.inputValue;return""===r&&n&&void 0===e.defaultInputValue&&void 0===e.initialInputValue&&void 0===e.inputValue&&(r=e.itemToString(n)),o({},t,{inputValue:r})}(t),t),h=p[0],v=p[1],m=h.isOpen,g=h.highlightedIndex,y=h.selectedItem,b=h.inputValue,w=(0,c.useRef)(null),k=(0,c.useRef)({}),E=(0,c.useRef)(null),O=(0,c.useRef)(null),C=(0,c.useRef)(null),T=(0,c.useRef)(!0),M=Q(t),S=(0,c.useRef)(),P=ne({state:h,props:t}),R=(0,c.useCallback)((function(e){return k.current[M.getItemId(e)]}),[M]);fe(l,[m,g,b,a],o({isInitialMount:T.current,previousResultCount:S.current,items:a,environment:u,itemToString:f},h)),fe(d,[y],o({isInitialMount:T.current,previousResultCount:S.current,items:a,environment:u,itemToString:f},h));var D=pe({menuElement:w.current,highlightedIndex:g,isOpen:m,itemRefs:k,scrollIntoView:s,getItemNodeFromIndex:R});he({isInitialMount:T.current,props:t,state:h}),(0,c.useEffect)((function(){(n||i||m)&&E.current&&E.current.focus()}),[]),(0,c.useEffect)((function(){T.current||(S.current=a.length)}));var L=le(m,[C,w,O],u,(function(){v({type:7,selectItem:!1})})),N=de();(0,c.useEffect)((function(){T.current=!1}),[]),(0,c.useEffect)((function(){m||(k.current={})}),[m]);var B=(0,c.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),v({type:0,shiftKey:e.shiftKey,getItemNodeFromIndex:R})},ArrowUp:function(e){e.preventDefault(),v({type:1,shiftKey:e.shiftKey,getItemNodeFromIndex:R})},Home:function(e){P.current.state.isOpen&&(e.preventDefault(),v({type:3,getItemNodeFromIndex:R}))},End:function(e){P.current.state.isOpen&&(e.preventDefault(),v({type:4,getItemNodeFromIndex:R}))},Escape:function(){var e=P.current.state;(e.isOpen||e.inputValue||e.selectedItem||e.highlightedIndex>-1)&&v({type:2})},Enter:function(e){var t=P.current.state;!t.isOpen||t.highlightedIndex<0||229===e.which||(e.preventDefault(),v({type:5,getItemNodeFromIndex:R}))}}}),[v,P,R]),z=(0,c.useCallback)((function(e){return o({id:M.labelId,htmlFor:M.inputId},e)}),[M]),F=(0,c.useCallback)((function(e,t){var n,i=void 0===e?{}:e,a=i.onMouseLeave,s=i.refKey,u=void 0===s?"ref":s,c=i.ref,l=r(i,Se),d=(void 0===t?{}:t).suppressRefError;return N("getMenuProps",void 0!==d&&d,u,w),o(((n={})[u]=_(c,(function(e){w.current=e})),n.id=M.menuId,n.role="listbox",n["aria-labelledby"]=M.labelId,n.onMouseLeave=x(a,(function(){v({type:8})})),n),l)}),[v,N,M]),H=(0,c.useCallback)((function(e){var t,n,i=void 0===e?{}:e,a=i.item,s=i.index,u=i.refKey,c=void 0===u?"ref":u,l=i.ref,d=i.onMouseMove,f=i.onClick;i.onPress;var p=r(i,Pe),h=P.current,m=h.props,g=h.state,y=J(s,a,m.items);if(y<0)throw new Error("Pass either item or item index in getItemProps!");var b=f;return o(((t={})[c]=_(l,(function(e){e&&(k.current[M.getItemId(y)]=e)})),t.role="option",t["aria-selected"]=""+(y===g.highlightedIndex),t.id=M.getItemId(y),t),!p.disabled&&((n={onMouseMove:x(d,(function(){s!==g.highlightedIndex&&(D.current=!1,v({type:9,index:s}))}))}).onClick=x(b,(function(){v({type:10,index:s}),E.current&&E.current.focus()})),n),p)}),[v,P,D,M]),V=(0,c.useCallback)((function(e){var t,n=void 0===e?{}:e,i=n.onClick;n.onPress;var a=n.refKey,s=void 0===a?"ref":a,u=n.ref,c=r(n,je);return o(((t={})[s]=_(u,(function(e){O.current=e})),t.id=M.toggleButtonId,t.tabIndex=-1,t),!c.disabled&&o({},{onClick:x(i,(function(){v({type:11}),!P.current.state.isOpen&&E.current&&E.current.focus()}))}),c)}),[v,P,M]),W=(0,c.useCallback)((function(e,t){var n,i=void 0===e?{}:e,a=i.onKeyDown,s=i.onChange,u=i.onInput,c=i.onBlur;i.onChangeText;var l=i.refKey,d=void 0===l?"ref":l,f=i.ref,p=r(i,Ie),h=(void 0===t?{}:t).suppressRefError;N("getInputProps",void 0!==h&&h,d,E);var m,g=P.current.state,y={};p.disabled||((m={}).onChange=x(s,u,(function(e){v({type:6,inputValue:e.target.value})})),m.onKeyDown=x(a,(function(e){var t=A(e);t&&B[t]&&B[t](e)})),m.onBlur=x(c,(function(){g.isOpen&&!L.current.isMouseDown&&v({type:7,selectItem:!0})})),y=m);return o(((n={})[d]=_(f,(function(e){E.current=e})),n.id=M.inputId,n["aria-autocomplete"]="list",n["aria-controls"]=M.menuId,n),g.isOpen&&g.highlightedIndex>-1&&{"aria-activedescendant":M.getItemId(g.highlightedIndex)},{"aria-labelledby":M.labelId,autoComplete:"off",value:g.inputValue},y,p)}),[v,B,P,L,N,M]),U=(0,c.useCallback)((function(e,t){var n,i=void 0===e?{}:e,a=i.refKey,s=void 0===a?"ref":a,u=i.ref,c=r(i,Ae),l=(void 0===t?{}:t).suppressRefError;return N("getComboboxProps",void 0!==l&&l,s,C),o(((n={})[s]=_(u,(function(e){C.current=e})),n.role="combobox",n["aria-haspopup"]="listbox",n["aria-owns"]=M.menuId,n["aria-expanded"]=P.current.state.isOpen,n),c)}),[P,N,M]),G=(0,c.useCallback)((function(){v({type:12})}),[v]),q=(0,c.useCallback)((function(){v({type:14})}),[v]),K=(0,c.useCallback)((function(){v({type:13})}),[v]),Z=(0,c.useCallback)((function(e){v({type:15,highlightedIndex:e})}),[v]),$=(0,c.useCallback)((function(e){v({type:16,selectedItem:e})}),[v]);return{getItemProps:H,getLabelProps:z,getMenuProps:F,getInputProps:W,getComboboxProps:U,getToggleButtonProps:V,toggleMenu:G,openMenu:K,closeMenu:q,setHighlightedIndex:Z,setInputValue:(0,c.useCallback)((function(e){v({type:17,inputValue:e})}),[v]),selectItem:$,reset:(0,c.useCallback)((function(){v({type:18})}),[v]),highlightedIndex:g,isOpen:m,selectedItem:y,inputValue:b}}Re.stateChangeTypes=Oe;var De={activeIndex:-1,selectedItems:[]};function Le(e,t){return se(e,t,De)}function Ne(e,t){return ae(e,t,De)}function Be(e){if(e.shiftKey||e.metaKey||e.ctrlKey||e.altKey)return!1;var t=e.target;return!(t instanceof HTMLInputElement&&""!==t.value)||0===t.selectionStart&&0===t.selectionEnd}u().array,u().array,u().array,u().func,u().func,u().func,u().number,u().number,u().number,u().func,u().func,u().string,u().string,u().shape({addEventListener:u().func,removeEventListener:u().func,document:u().shape({getElementById:u().func,activeElement:u().any,body:u().any})});var ze={itemToString:ie.itemToString,stateReducer:ie.stateReducer,environment:ie.environment,getA11yRemovalMessage:function(e){var t=e.removedSelectedItem;return(0,e.itemToString)(t)+" has been removed."},keyNavigationNext:"ArrowRight",keyNavigationPrevious:"ArrowLeft"},Fe=g;var He=Object.freeze({__proto__:null,SelectedItemClick:0,SelectedItemKeyDownDelete:1,SelectedItemKeyDownBackspace:2,SelectedItemKeyDownNavigationNext:3,SelectedItemKeyDownNavigationPrevious:4,DropdownKeyDownNavigationPrevious:5,DropdownKeyDownBackspace:6,DropdownClick:7,FunctionAddSelectedItem:8,FunctionRemoveSelectedItem:9,FunctionSetSelectedItems:10,FunctionSetActiveIndex:11,FunctionReset:12});function Ve(e,t){var n,r=t.type,i=t.index,a=t.props,s=t.selectedItem,u=e.activeIndex,c=e.selectedItems;switch(r){case 0:n={activeIndex:i};break;case 4:n={activeIndex:u-1<0?0:u-1};break;case 3:n={activeIndex:u+1>=c.length?-1:u+1};break;case 2:case 1:var l=u;1===c.length?l=-1:u===c.length-1&&(l=c.length-2),n=o({selectedItems:[].concat(c.slice(0,u),c.slice(u+1))},{activeIndex:l});break;case 5:n={activeIndex:c.length-1};break;case 6:n={selectedItems:c.slice(0,c.length-1)};break;case 8:n={selectedItems:[].concat(c,[s])};break;case 7:n={activeIndex:-1};break;case 9:var d=u,f=c.indexOf(s);1===c.length?d=-1:f===c.length-1&&(d=c.length-2),n=o({selectedItems:[].concat(c.slice(0,f),c.slice(f+1))},{activeIndex:d});break;case 10:n={selectedItems:t.selectedItems};break;case 11:n={activeIndex:t.activeIndex};break;case 12:n={activeIndex:Ne(a,"activeIndex"),selectedItems:Ne(a,"selectedItems")};break;default:throw new Error("Reducer called without proper action type.")}return o({},e,n)}var We=["refKey","ref","onClick","onKeyDown","selectedItem","index"],Ue=["refKey","ref","onKeyDown","onClick","preventKeyAction"];function Ge(e){void 0===e&&(e={}),Fe(e,Ge);var t=o({},ze,e),n=t.getA11yRemovalMessage,i=t.itemToString,a=t.environment,s=t.keyNavigationNext,u=t.keyNavigationPrevious,l=oe(Ve,function(e){return{activeIndex:Le(e,"activeIndex"),selectedItems:Le(e,"selectedItems")}}(t),t),d=l[0],f=l[1],p=d.activeIndex,h=d.selectedItems,v=(0,c.useRef)(!0),m=(0,c.useRef)(null),g=(0,c.useRef)(h),y=(0,c.useRef)();y.current=[];var b=ne({state:d,props:t});(0,c.useEffect)((function(){if(!v.current){if(h.length-1||/[A-Z]/.test(e))}var j={};var I=["","X","Y","Z"],A=["transformPerspective","x","y","z"];function R(e,t){return A.indexOf(e)-A.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return I.forEach((function(t){return A.push(e+t)}))}));var D=new Set(A);function L(e){return D.has(e)}var N=new Set(["originX","originY","originZ"]);function B(e){return N.has(e)}function z(e,t){var n=t.layout,r=t.layoutId;return L(e)||B(e)||(n||void 0!==r)&&(!!j[e]||"opacity"===e)}var F=function(e){return null!==e&&"object"===typeof e&&e.getVelocity},H={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function V(e){return e.startsWith("--")}var W=function(e,t){return t&&"number"===typeof e?t.transform(e):e};var U=function(){return(U=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?-1:1)*((r-i)*a)/s}):(t=function(e){return Math.exp(-e*o)*((e-u)*o+1)-.001},n=function(e){return Math.exp(-e*o)*(o*o*(u-e))});var f=function(e,t,n){for(var r=n,o=1;o<12;o++)r-=e(r)/t(r);return r}(t,n,5/o);if(o*=1e3,isNaN(f))return{stiffness:100,damping:10,duration:o};var p=Math.pow(f,2)*l;return{stiffness:p,damping:2*d*Math.sqrt(l*p),duration:o}}function xt(e,t){return e*Math.sqrt(1-t*t)}var _t=["duration","bounce"],kt=["stiffness","damping","mass"];function Et(e,t){return t.some((function(t){return void 0!==e[t]}))}function Ot(e){var t=e.from,n=void 0===t?0:t,r=e.to,o=void 0===r?1:r,i=e.restSpeed,a=void 0===i?2:i,s=e.restDelta,u=gt(e,["from","to","restSpeed","restDelta"]),c={done:!1,value:n},l=function(e){var t=mt({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Et(e,kt)&&Et(e,_t)){var n=wt(e);(t=mt(mt(mt({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(u),d=l.stiffness,f=l.damping,p=l.mass,h=l.velocity,v=l.duration,m=l.isResolvedFromDuration,g=Ct,y=Ct;function b(){var e=h?-h/1e3:0,t=o-n,r=f/(2*Math.sqrt(d*p)),i=Math.sqrt(d/p)/1e3;if(null!==s&&void 0!==s||(s=Math.abs(o-n)<=1?.01:.4),r<1){var a=xt(i,r);g=function(n){var s=Math.exp(-r*i*n);return o-s*((e+r*i*t)/a*Math.sin(a*n)+t*Math.cos(a*n))},y=function(n){var o=Math.exp(-r*i*n);return r*i*o*(Math.sin(a*n)*(e+r*i*t)/a+t*Math.cos(a*n))-o*(Math.cos(a*n)*(e+r*i*t)-a*t*Math.sin(a*n))}}else if(1===r)g=function(n){return o-Math.exp(-i*n)*(t+(e+i*t)*n)};else{var u=i*Math.sqrt(r*r-1);g=function(n){var a=Math.exp(-r*i*n),s=Math.min(u*n,300);return o-a*((e+r*i*t)*Math.sinh(s)+u*t*Math.cosh(s))/u}}}return b(),{next:function(e){var t=g(e);if(m)c.done=e>=v;else{var n=1e3*y(e),r=Math.abs(n)<=a,i=Math.abs(o-t)<=s;c.done=r&&i}return c.value=c.done?o:t,c},flipTarget:function(){var e;h=-h,n=(e=[o,n])[0],o=e[1],b()}}}Ot.needsInterpolation=function(e,t){return"string"===typeof e||"string"===typeof t};var Ct=function(e){return 0},Tt=function(e,t,n){var r=t-e;return 0===r?1:(n-e)/r},Mt=function(e,t,n){return-n*e+n*t+e},St=function(e,t){return function(n){return Boolean(X(n)&&$.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t))}},Pt=function(e,t,n){return function(r){var o;if(!X(r))return r;var i=r.match(K),a=i[0],s=i[1],u=i[2],c=i[3];return(o={})[e]=parseFloat(a),o[t]=parseFloat(s),o[n]=parseFloat(u),o.alpha=void 0!==c?parseFloat(c):1,o}},jt=G(0,255),It=U(U({},oe),{transform:function(e){return Math.round(jt(e))}}),At={test:St("rgb","red"),parse:Pt("red","green","blue"),transform:function(e){var t=e.red,n=e.green,r=e.blue,o=e.alpha,i=void 0===o?1:o;return"rgba("+It.transform(t)+", "+It.transform(n)+", "+It.transform(r)+", "+q(ie.transform(i))+")"}};var Rt={test:St("#"),parse:function(e){var t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:At.transform},Dt={test:St("hsl","hue"),parse:Pt("hue","saturation","lightness"),transform:function(e){var t=e.hue,n=e.saturation,r=e.lightness,o=e.alpha,i=void 0===o?1:o;return"hsla("+Math.round(t)+", "+J.transform(q(n))+", "+J.transform(q(r))+", "+q(ie.transform(i))+")"}},Lt=function(e,t,n){var r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},Nt=[Rt,At,Dt],Bt=function(e){return Nt.find((function(t){return t.test(e)}))},zt=function(e){return"'"+e+"' is not an animatable color. Use the equivalent color code instead."},Ft=function(e,t){var n=Bt(e),r=Bt(t);zt(e),zt(t),n.transform,r.transform;var o=n.parse(e),i=r.parse(t),a=mt({},o),s=n===Dt?Mt:Lt;return function(e){for(var t in a)"alpha"!==t&&(a[t]=s(o[t],i[t],e));return a.alpha=Mt(o.alpha,i.alpha,e),n.transform(a)}},Ht={test:function(e){return At.test(e)||Rt.test(e)||Dt.test(e)},parse:function(e){return At.test(e)?At.parse(e):Dt.test(e)?Dt.parse(e):Rt.parse(e)},transform:function(e){return X(e)?e:e.hasOwnProperty("red")?At.transform(e):Dt.transform(e)}},Vt="${c}",Wt="${n}";function Ut(e){var t=[],n=0,r=e.match(Z);r&&(n=r.length,e=e.replace(Z,Vt),t.push.apply(t,r.map(Ht.parse)));var o=e.match(K);return o&&(e=e.replace(K,Wt),t.push.apply(t,o.map(oe.parse))),{values:t,numColors:n,tokenised:e}}function Gt(e){return Ut(e).values}function qt(e){var t=Ut(e),n=t.values,r=t.numColors,o=t.tokenised,i=n.length;return function(e){for(var t=o,n=0;n0},parse:Gt,createTransformer:qt,getAnimatableNone:function(e){var t=Gt(e);return qt(e)(t.map(Kt))}},$t=function(e){return"number"===typeof e};function Xt(e,t){return $t(e)?function(n){return Mt(e,t,n)}:Ht.test(e)?Ft(e,t):en(e,t)}var Yt=function(e,t){var n=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;oe[u-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());var c=nn(t,a,s),l=2===u?function(e,t){var n=e[0],r=e[1],o=t[0];return function(e){return o(Tt(n,r,e))}}(e,c):function(e,t){var n=e.length,r=n-1;return function(o){var i=0,a=!1;if(o<=e[0]?a=!0:o>=e[r]&&(i=r-1,a=!0),!a){for(var s=1;so||s===r);s++);i=s-1}var u=Tt(e[i],e[i+1],o);return t[i](u)}}(e,c);return i?function(t){return l(yt(e[0],e[u-1],t))}:l}var on,an=function(e){return function(t){return 1-e(1-t)}},sn=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},un=function(e){return function(t){return t*t*((e+1)*t-e)}},cn=function(e){return e},ln=(on=2,function(e){return Math.pow(e,on)}),dn=an(ln),fn=sn(ln),pn=function(e){return 1-Math.sin(Math.acos(e))},hn=an(pn),vn=sn(hn),mn=un(1.525),gn=an(mn),yn=sn(mn),bn=function(e){var t=un(e);return function(e){return(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))}}(1.525),wn=function(e){if(1===e||0===e)return e;var t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},xn=an(wn);function _n(e,t){return e.map((function(){return t||fn})).splice(0,e.length-1)}function kn(e){var t=e.from,n=void 0===t?0:t,r=e.to,o=void 0===r?1:r,i=e.ease,a=e.offset,s=e.duration,u=void 0===s?300:s,c={done:!1,value:n},l=Array.isArray(o)?o:[n,o],d=function(e,t){return e.map((function(e){return e*t}))}(a&&a.length===l.length?a:function(e){var t=e.length;return e.map((function(e,n){return 0!==n?n/(t-1):0}))}(l),u);function f(){return rn(d,l,{ease:Array.isArray(i)?i:_n(l,i)})}var p=f();return{next:function(e){return c.value=p(e),c.done=e>=u,c},flipTarget:function(){l.reverse(),p=f()}}}var En={keyframes:kn,spring:Ot,decay:function(e){var t=e.velocity,n=void 0===t?0:t,r=e.from,o=void 0===r?0:r,i=e.power,a=void 0===i?.8:i,s=e.timeConstant,u=void 0===s?350:s,c=e.restDelta,l=void 0===c?.5:c,d=e.modifyTarget,f={done:!1,value:o},p=a*n,h=o+p,v=void 0===d?h:d(h);return v!==h&&(p=v-o),{next:function(e){var t=-p*Math.exp(-e/u);return f.done=!(t>l||t<-l),f.value=f.done?v:v+t,f},flipTarget:function(){}}}};var On=n(9839);function Cn(e,t,n){return void 0===n&&(n=0),e-t-n}var Tn=function(e){var t=function(t){var n=t.delta;return e(n)};return{start:function(){return On.ZP.update(t,!0)},stop:function(){return On.qY.update(t)}}};function Mn(e){var t,n,r,o,i,a=e.from,s=e.autoplay,u=void 0===s||s,c=e.driver,l=void 0===c?Tn:c,d=e.elapsed,f=void 0===d?0:d,p=e.repeat,h=void 0===p?0:p,v=e.repeatType,m=void 0===v?"loop":v,g=e.repeatDelay,y=void 0===g?0:g,b=e.onPlay,w=e.onStop,x=e.onComplete,_=e.onRepeat,k=e.onUpdate,E=gt(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),O=E.to,C=0,T=E.duration,M=!1,S=!0,P=function(e){if(Array.isArray(e.to))return kn;if(En[e.type])return En[e.type];var t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?kn:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Ot:kn}(E);(null===(n=(t=P).needsInterpolation)||void 0===n?void 0:n.call(t,a,O))&&(i=rn([0,100],[a,O],{clamp:!1}),a=0,O=100);var j=P(mt(mt({},E),{from:a,to:O}));function I(){C++,"reverse"===m?f=function(e,t,n,r){return void 0===n&&(n=0),void 0===r&&(r=!0),r?Cn(t+-e,t,n):t-(e-t)+n}(f,T,y,S=C%2===0):(f=Cn(f,T,y),"mirror"===m&&j.flipTarget()),M=!1,_&&_()}function A(e){if(S||(e=-e),f+=e,!M){var t=j.next(Math.max(0,f));o=t.value,i&&(o=i(o)),M=S?t.done:f<=0}null===k||void 0===k||k(o),M&&(0===C&&(null!==T&&void 0!==T||(T=f)),C=t+n:e<=-n}(f,T,y,S)&&I():(r.stop(),x&&x()))}return u&&(null===b||void 0===b||b(),(r=l(A)).start()),{stop:function(){null===w||void 0===w||w(),r.stop()}}}function Sn(e,t){return t?e*(1e3/t):0}var Pn=function(e){return 1e3*e},jn=function(e,t){return 1-3*t+3*e},In=function(e,t){return 3*t-6*e},An=function(e){return 3*e},Rn=function(e,t,n){return((jn(t,n)*e+In(t,n))*e+An(t))*e},Dn=function(e,t,n){return 3*jn(t,n)*e*e+2*In(t,n)*e+An(t)};var Ln=.1;function Nn(e,t,n,r){if(e===t&&n===r)return cn;for(var o=new Float32Array(11),i=0;i<11;++i)o[i]=Rn(i*Ln,e,n);function a(t){for(var r=0,i=1;10!==i&&o[i]<=t;++i)r+=Ln;--i;var a=r+(t-o[i])/(o[i+1]-o[i])*Ln,s=Dn(a,e,n);return s>=.001?function(e,t,n,r){for(var o=0;o<8;++o){var i=Dn(t,n,r);if(0===i)return t;t-=(Rn(t,n,r)-e)/i}return t}(t,a,e,n):0===s?a:function(e,t,n,r,o){var i,a,s=0;do{(i=Rn(a=t+(n-t)/2,r,o)-e)>0?n=a:t=a}while(Math.abs(i)>1e-7&&++s<10);return a}(t,r,r+Ln,e,n)}return function(e){return 0===e||1===e?e:Rn(a(e),t,r)}}var Bn={linear:cn,easeIn:ln,easeInOut:fn,easeOut:dn,circIn:pn,circInOut:vn,circOut:hn,backIn:mn,backInOut:yn,backOut:gn,anticipate:bn,bounceIn:xn,bounceInOut:function(e){return e<.5?.5*(1-wn(1-2*e)):.5*wn(2*e-1)+.5},bounceOut:wn},zn=function(e){if(Array.isArray(e)){e.length;var t=(0,r.CR)(e,4);return Nn(t[0],t[1],t[2],t[3])}return"string"===typeof e?Bn[e]:e},Fn=function(e,t){return"zIndex"!==e&&(!("number"!==typeof t&&!Array.isArray(t))||!("string"!==typeof t||!Zt.test(t)||t.startsWith("url(")))},Hn=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},Vn=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}},Wn=function(){return{type:"keyframes",ease:"linear",duration:.3}},Un=function(e){return{type:"keyframes",duration:.8,values:e}},Gn={x:Hn,y:Hn,z:Hn,rotate:Hn,rotateX:Hn,rotateY:Hn,rotateZ:Hn,scaleX:Vn,scaleY:Vn,scale:Vn,opacity:Wn,backgroundColor:Wn,color:Wn,default:Vn},qn=new Set(["brightness","contrast","saturate","opacity"]);function Kn(e){var t=e.slice(0,-1).split("("),n=t[0],r=t[1];if("drop-shadow"===n)return e;var o=(r.match(K)||[])[0];if(!o)return e;var i=r.replace(o,""),a=qn.has(n)?1:0;return o!==r&&(a*=100),n+"("+a+i+")"}var Zn=/([a-z-]*)\(.*?\)/g,$n=U(U({},Zt),{getAnimatableNone:function(e){var t=e.match(Zn);return t?t.map(Kn).join(" "):e}}),Xn=(0,r.pi)((0,r.pi)({},ue),{color:Ht,backgroundColor:Ht,outlineColor:Ht,fill:Ht,stroke:Ht,borderColor:Ht,borderTopColor:Ht,borderRightColor:Ht,borderBottomColor:Ht,borderLeftColor:Ht,filter:$n,WebkitFilter:$n}),Yn=function(e){return Xn[e]};function Qn(e,t){var n,r=Yn(e);return r!==$n&&(r=Zt),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}function Jn(e){var t=e.ease,n=e.times,o=e.yoyo,i=e.flip,a=e.loop,s=(0,r._T)(e,["ease","times","yoyo","flip","loop"]),u=(0,r.pi)({},s);return n&&(u.offset=n),s.duration&&(u.duration=Pn(s.duration)),s.repeatDelay&&(u.repeatDelay=Pn(s.repeatDelay)),t&&(u.ease=function(e){return Array.isArray(e)&&"number"!==typeof e[0]}(t)?t.map(zn):zn(t)),"tween"===s.type&&(u.type="keyframes"),(o||a||i)&&(!0,o?u.repeatType="reverse":a?u.repeatType="loop":i&&(u.repeatType="mirror"),u.repeat=a||o||i||s.repeat),"spring"!==s.type&&(u.type="keyframes"),u}function er(e,t,n){var o;return Array.isArray(t.to)&&(null!==(o=e.duration)&&void 0!==o||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=(0,r.ev)([],(0,r.CR)(e.to)),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=(0,r._T)(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=(0,r.pi)((0,r.pi)({},e),function(e,t){var n;return n=De(t)?Un:Gn[e]||Gn.default,(0,r.pi)({to:t},n(t))}(n,t.to))),(0,r.pi)((0,r.pi)({},t),Jn(e))}function tr(e,t,n,o,i){var a,s=or(o,e),u=null!==(a=s.from)&&void 0!==a?a:t.get(),c=Fn(e,n);"none"===u&&c&&"string"===typeof n?u=Qn(e,n):nr(u)&&"string"===typeof n?u=rr(n):!Array.isArray(n)&&nr(n)&&"string"===typeof u&&(n=rr(u));var l=Fn(e,u);return l&&c&&!1!==s.type?function(){var o={from:u,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(e){return t.set(e)}};return"inertia"===s.type||"decay"===s.type?function(e){var t,n=e.from,r=void 0===n?0:n,o=e.velocity,i=void 0===o?0:o,a=e.min,s=e.max,u=e.power,c=void 0===u?.8:u,l=e.timeConstant,d=void 0===l?750:l,f=e.bounceStiffness,p=void 0===f?500:f,h=e.bounceDamping,v=void 0===h?10:h,m=e.restDelta,g=void 0===m?1:m,y=e.modifyTarget,b=e.driver,w=e.onUpdate,x=e.onComplete;function _(e){return void 0!==a&&es}function k(e){return void 0===a?s:void 0===s||Math.abs(a-e)S||-1===P&&e-1&&e.splice(n,1)}var ur=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return ar(this.subscriptions,e),function(){return sr(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var o=0;ov&&y,E=Array.isArray(g)?g:[g],O=E.reduce(a,{});!1===x&&(O={});var C=m.prevResolvedValues,T=void 0===C?{}:C,M=(0,r.pi)((0,r.pi)({},T),O),S=function(e){k=!0,p.delete(e),m.needsAnimating[e]=!0};for(var P in M){var j=O[P],I=T[P];h.hasOwnProperty(P)||(j!==I?De(j)&&De(I)?vt(j,I)?m.protectedKeys[P]=!0:S(P):void 0!==j?S(P):p.add(P):void 0!==j&&p.has(P)?S(P):m.protectedKeys[P]=!0)}m.prevProp=g,m.prevResolvedValues=O,m.isActive&&(h=(0,r.pi)((0,r.pi)({},h),O)),i&&e.blockInitialAnimation&&(k=!1),k&&!_&&f.push.apply(f,(0,r.ev)([],(0,r.CR)(E.map((function(e){return{animation:e,options:(0,r.pi)({type:o},s)}})))))},g=0;g=3;if(t||n){var i=e.point,a=(0,On.$B)().timestamp;o.history.push((0,r.pi)((0,r.pi)({},i),{timestamp:a}));var s=o.handlers,u=s.onStart,c=s.onMove;t||(u&&u(o.lastMoveEvent,e),o.startEvent=o.lastMoveEvent),c&&c(o.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){o.lastMoveEvent=e,o.lastMoveEventInfo=Dr(t,o.transformPagePoint),Ge(e)&&0===e.buttons?o.handlePointerUp(e,t):On.ZP.update(o.updatePoint,!0)},this.handlePointerUp=function(e,t){o.end();var n=o.handlers,r=n.onEnd,i=n.onSessionEnd,a=Nr(Dr(t,o.transformPagePoint),o.history);o.startEvent&&r&&r(e,a),i&&i(e,a)},!(qe(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=i;var a=Dr(Xe(e),this.transformPagePoint),s=a.point,u=(0,On.$B)().timestamp;this.history=[(0,r.pi)((0,r.pi)({},s),{timestamp:u})];var c=t.onSessionStart;c&&c(e,Nr(a,this.history)),this.removeListeners=ft(tt(window,"pointermove",this.handlePointerMove),tt(window,"pointerup",this.handlePointerUp),tt(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),On.qY.update(this.updatePoint)},e}();function Dr(e,t){return t?{point:t(e.point)}:e}function Lr(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Nr(e,t){var n=e.point;return{point:n,delta:Lr(n,zr(t)),offset:Lr(n,Br(t)),velocity:Fr(t,.1)}}function Br(e){return e[0]}function zr(e){return e[e.length-1]}function Fr(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=zr(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Pn(t)));)n--;if(!r)return{x:0,y:0};var i=(o.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};var a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}var Hr=n(93327);function Vr(e){return[e("x"),e("y")]}function Wr(e,t,n){var r=t.min,o=t.max;return void 0!==r&&eo&&(e=n?Mt(o,e,n.max):Math.min(e,o)),e}function Ur(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Gr(e,t){var n,o=t.min-e.min,i=t.max-e.max;return t.max-t.minr?n=Tt(t.min,t.max-r,e.min):r>o&&(n=Tt(e.min,e.max-o,t.min)),yt(0,1,n)}function Qr(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=Mt(t.min,t.max,e.origin),e.scale=Xr(n)/Xr(t),$r(e.scale,1,1e-4)&&(e.scale=1),e.translate=Mt(n.min,n.max,e.origin)-e.originPoint,$r(e.translate)&&(e.translate=0)}function Jr(e,t,n,r){Qr(e.x,t.x,n.x,eo(r.originX)),Qr(e.y,t.y,n.y,eo(r.originY))}function eo(e){return"number"===typeof e?e:.5}function to(e,t,n){e.min=n.min+t.min,e.max=e.min+Xr(t)}var no=n(58839);function ro(e,t){return{min:t.min-e.min,max:t.max-e.min}}function oo(e,t){return{x:ro(e.x,t.x),y:ro(e.y,t.y)}}function io(e,t){var n=e.getLayoutId(),r=t.getLayoutId();return n!==r||void 0===r&&e!==t}function ao(e){var t=e.getProps(),n=t.drag,r=t._dragX;return n&&!r}function so(e,t){e.min=t.min,e.max=t.max}function uo(e,t,n){return n+t*(e-n)}function co(e,t,n,r,o){return void 0!==o&&(e=uo(e,o,r)),uo(e,n,r)+t}function lo(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=co(e.min,t,n,r,o),e.max=co(e.max,t,n,r,o)}function fo(e,t){var n=t.x,r=t.y;lo(e.x,n.translate,n.scale,n.originPoint),lo(e.y,r.translate,r.scale,r.originPoint)}function po(e,t,n,o){var i=(0,r.CR)(o,3),a=i[0],s=i[1],u=i[2];e.min=t.min,e.max=t.max;var c=void 0!==n[u]?n[u]:.5,l=Mt(t.min,t.max,c);lo(e,n[a],n[s],l,n.scale)}var ho=["x","scaleX","originX"],vo=["y","scaleY","originY"];function mo(e,t,n){po(e.x,t.x,n,ho),po(e.y,t.y,n,vo)}function go(e,t,n,r,o){return e=uo(e-=t,1/n,r),void 0!==o&&(e=uo(e,1/o,r)),e}function yo(e,t,n){var o=(0,r.CR)(n,3),i=o[0],a=o[1],s=o[2];!function(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5);var i=Mt(e.min,e.max,r)-t;e.min=go(e.min,t,n,i,o),e.max=go(e.max,t,n,i,o)}(e,t[i],t[a],t[s],t.scale)}function bo(e,t){yo(e.x,t,ho),yo(e.y,t,vo)}var wo,xo=n(27565),_o=new WeakMap,ko=function(){function e(e){var t=e.visualElement;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.elastic=(0,Hr.VZ)(),this.props={},this.hasMutatedConstraints=!1,this.cursorProgress={x:.5,y:.5},this.originPoint={},this.openGlobalLock=null,this.panSession=null,this.visualElement=t,this.visualElement.enableLayoutProjection(),_o.set(t,this)}return e.prototype.start=function(e,t){var n=this,o=void 0===t?{}:t,i=o.snapToCursor,a=void 0!==i&&i,s=o.cursorProgress,u=this.props.transformPagePoint;this.panSession=new Rr(e,{onSessionStart:function(e){var t;n.stopMotion();var o=function(e){return Xe(e,"client")}(e).point;null===(t=n.cancelLayout)||void 0===t||t.call(n),n.cancelLayout=(0,xo.U)((function(e,t){var i=(0,no.kv)(n.visualElement),u=(0,no.e3)(n.visualElement),c=(0,r.ev)((0,r.ev)([],(0,r.CR)(i)),(0,r.CR)(u)),l=!1;n.isLayoutDrag()&&n.visualElement.lockProjectionTarget(),t((function(){c.forEach((function(e){return e.resetTransform()}))})),e((function(){(0,no.de)(n.visualElement),u.forEach(no.de)})),t((function(){c.forEach((function(e){return e.restoreTransform()})),a&&(l=n.snapToCursor(o))})),e((function(){Boolean(n.getAxisMotionValue("x")&&!n.isExternalDrag())||n.visualElement.rebaseProjectionTarget(!0,n.visualElement.measureViewportBox(!1)),n.visualElement.scheduleUpdateLayoutProjection();var e=n.visualElement.projection;Vr((function(t){if(!l){var r=e.target[t],i=r.min,a=r.max;n.cursorProgress[t]=s?s[t]:Tt(i,a,o[t])}var u=n.getAxisMotionValue(t);u&&(n.originPoint[t]=u.get())}))})),t((function(){On.iW.update(),On.iW.preRender(),On.iW.render(),On.iW.postRender()})),e((function(){return n.resolveDragConstraints()}))}))},onStart:function(e,t){var r,o,i,a=n.props,s=a.drag,u=a.dragPropagation;(!s||u||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=at(s),n.openGlobalLock))&&((0,xo.R)(),n.isDragging=!0,n.currentDirection=null,null===(o=(r=n.props).onDragStart)||void 0===o||o.call(r,e,t),null===(i=n.visualElement.animationState)||void 0===i||i.setActive(He.Drag,!0))},onMove:function(e,t){var r,o,i,a,s=n.props,u=s.dragPropagation,c=s.dragDirectionLock;if(u||n.openGlobalLock){var l=t.offset;if(c&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(l),void(null!==n.currentDirection&&(null===(o=(r=n.props).onDirectionLock)||void 0===o||o.call(r,n.currentDirection)));n.updateAxis("x",t.point,l),n.updateAxis("y",t.point,l),null===(a=(i=n.props).onDrag)||void 0===a||a.call(i,e,t),wo=e}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:u})},e.prototype.resolveDragConstraints=function(){var e=this,t=this.props,n=t.dragConstraints,r=t.dragElastic,o=this.visualElement.getLayoutState().layoutCorrected;this.constraints=!!n&&(y(n)?this.resolveRefConstraints(o,n):function(e,t){var n=t.top,r=t.left,o=t.bottom,i=t.right;return{x:Ur(e.x,r,i),y:Ur(e.y,n,o)}}(o,n)),this.elastic=function(e){return!1===e?e=0:!0===e&&(e=.35),{x:qr(e,"left","right"),y:qr(e,"top","bottom")}}(r),this.constraints&&!this.hasMutatedConstraints&&Vr((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(o[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(e,t){var n=this.props,r=n.onMeasureDragConstraints,o=n.transformPagePoint,i=t.current;this.constraintsBox=Zr(i,o);var a=function(e,t){return{x:Gr(e.x,t.x),y:Gr(e.y,t.y)}}(e,this.constraintsBox);if(r){var s=r((0,Hr._6)(a));this.hasMutatedConstraints=!!s,s&&(a=(0,Hr.RX)(s))}return a},e.prototype.cancelDrag=function(){var e,t;this.visualElement.unlockProjectionTarget(),null===(e=this.cancelLayout)||void 0===e||e.call(this),this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(He.Drag,!1)},e.prototype.stop=function(e,t){var n,r,o;null===(n=this.panSession)||void 0===n||n.end(),this.panSession=null;var i=this.isDragging;if(this.cancelDrag(),i){var a=t.velocity;this.animateDragEnd(a),null===(o=(r=this.props).onDragEnd)||void 0===o||o.call(r,e,t)}},e.prototype.snapToCursor=function(e){var t=this;return Vr((function(n){if(Eo(n,t.props.drag,t.currentDirection)){var r=t.getAxisMotionValue(n);if(!r)return t.cursorProgress[n]=.5,!0;var o=t.visualElement.getLayoutState().layout,i=o[n].max-o[n].min,a=o[n].min+i/2,s=e[n]-a;t.originPoint[n]=e[n],r.set(s)}})).includes(!0)},e.prototype.updateAxis=function(e,t,n){if(Eo(e,this.props.drag,this.currentDirection))return this.getAxisMotionValue(e)?this.updateAxisMotionValue(e,n):this.updateVisualElementAxis(e,t)},e.prototype.updateAxisMotionValue=function(e,t){var n=this.getAxisMotionValue(e);if(t&&n){var r=this.originPoint[e]+t[e],o=this.constraints?Wr(r,this.constraints[e],this.elastic[e]):r;n.set(o)}},e.prototype.updateVisualElementAxis=function(e,t){var n,r=this.visualElement.getLayoutState().layout[e],o=r.max-r.min,i=this.cursorProgress[e],a=function(e,t,n,r,o){var i=e-t*n;return r?Wr(i,r,o):i}(t[e],o,i,null===(n=this.constraints)||void 0===n?void 0:n[e],this.elastic[e]);this.visualElement.setProjectionTargetAxis(e,a,a+o)},e.prototype.setProps=function(e){var t=e.drag,n=void 0!==t&&t,o=e.dragDirectionLock,i=void 0!==o&&o,a=e.dragPropagation,s=void 0!==a&&a,u=e.dragConstraints,c=void 0!==u&&u,l=e.dragElastic,d=void 0===l?.35:l,f=e.dragMomentum,p=void 0===f||f,h=(0,r._T)(e,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=(0,r.pi)({drag:n,dragDirectionLock:i,dragPropagation:s,dragConstraints:c,dragElastic:d,dragMomentum:p},h)},e.prototype.getAxisMotionValue=function(e){var t=this.props,n=t.layout,r=t.layoutId,o="_drag"+e.toUpperCase();return this.props[o]?this.props[o]:n||void 0!==r?void 0:this.visualElement.getValue(e,0)},e.prototype.isLayoutDrag=function(){return!this.getAxisMotionValue("x")},e.prototype.isExternalDrag=function(){var e=this.props,t=e._dragX,n=e._dragY;return t||n},e.prototype.animateDragEnd=function(e){var t=this,n=this.props,o=n.drag,i=n.dragMomentum,a=n.dragElastic,s=n.dragTransition,u=function(e,t){void 0===t&&(t=!0);var n,r=e.getProjectionParent();return!!r&&(t?bo(n=oo(r.projection.target,e.projection.target),r.getLatestValues()):n=oo(r.getLayoutState().layout,e.getLayoutState().layout),Vr((function(t){return e.setProjectionTargetAxis(t,n[t].min,n[t].max,!0)})),!0)}(this.visualElement,this.isLayoutDrag()&&!this.isExternalDrag()),c=this.constraints||{};if(u&&Object.keys(c).length&&this.isLayoutDrag()){var l=this.visualElement.getProjectionParent();if(l){var d=oo(l.projection.targetFinal,c);Vr((function(e){var t=d[e],n=t.min,r=t.max;c[e]={min:isNaN(n)?void 0:n,max:isNaN(r)?void 0:r}}))}}var f=Vr((function(n){var l;if(Eo(n,o,t.currentDirection)){var d=null!==(l=null===c||void 0===c?void 0:c[n])&&void 0!==l?l:{},f=a?200:1e6,p=a?40:1e7,h=(0,r.pi)((0,r.pi)({type:"inertia",velocity:i?e[n]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10},s),d);return t.getAxisMotionValue(n)?t.startAxisValueAnimation(n,h):t.visualElement.startLayoutAnimation(n,h,u)}}));return Promise.all(f).then((function(){var e,n;null===(n=(e=t.props).onDragTransitionEnd)||void 0===n||n.call(e)}))},e.prototype.stopMotion=function(){var e=this;Vr((function(t){var n=e.getAxisMotionValue(t);n?n.stop():e.visualElement.stopLayoutAnimation()}))},e.prototype.startAxisValueAnimation=function(e,t){var n=this.getAxisMotionValue(e);if(n){var r=n.get();return n.set(r),n.set(r),ir(e,n,0,t)}},e.prototype.scalePoint=function(){var e=this,t=this.props,n=t.drag;if(y(t.dragConstraints)&&this.constraintsBox){this.stopMotion();var r={x:0,y:0};Vr((function(t){r[t]=Yr(e.visualElement.projection.target[t],e.constraintsBox[t])})),this.updateConstraints((function(){Vr((function(t){if(Eo(t,n,null)){var o=function(e,t,n){var r=e.max-e.min,o=Mt(t.min,t.max-r,n);return{min:o,max:o+r}}(e.visualElement.projection.target[t],e.constraintsBox[t],r[t]),i=o.min,a=o.max;e.visualElement.setProjectionTargetAxis(t,i,a)}}))})),setTimeout(xo.R,1)}},e.prototype.updateConstraints=function(e){var t=this;this.cancelLayout=(0,xo.U)((function(n,r){var o=(0,no.kv)(t.visualElement);r((function(){return o.forEach((function(e){return e.resetTransform()}))})),n((function(){return(0,no.de)(t.visualElement)})),r((function(){return o.forEach((function(e){return e.restoreTransform()}))})),n((function(){t.resolveDragConstraints()})),e&&r(e)}))},e.prototype.mount=function(e){var t=this,n=tt(e.getInstance(),"pointerdown",(function(e){var n=t.props,r=n.drag,o=n.dragListener;r&&(void 0===o||o)&&t.start(e)})),r=We(window,"resize",(function(){t.scalePoint()})),o=e.onLayoutUpdate((function(){t.isDragging&&t.resolveDragConstraints()})),i=e.prevDragCursor;return i&&this.start(wo,{cursorProgress:i}),function(){null===n||void 0===n||n(),null===r||void 0===r||r(),null===o||void 0===o||o(),t.cancelDrag()}},e}();function Eo(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}var Oo={pan:pt((function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,i=e.onPanSessionStart,a=e.visualElement,s=t||n||r||i,u=(0,o.useRef)(null),c=(0,o.useContext)(l).transformPagePoint,d={onSessionStart:i,onStart:n,onMove:t,onEnd:function(e,t){u.current=null,r&&r(e,t)}};(0,o.useEffect)((function(){null!==u.current&&u.current.updateHandlers(d)})),nt(a,"pointerdown",s&&function(e){u.current=new Rr(e,d,{transformPagePoint:c})}),(0,lt.z)((function(){return u.current&&u.current.end()}))})),drag:pt((function(e){var t=e.dragControls,n=e.visualElement,i=(0,o.useContext)(l).transformPagePoint,a=(0,Re.h)((function(){return new ko({visualElement:n})}));a.setProps((0,r.pi)((0,r.pi)({},e),{transformPagePoint:i})),(0,o.useEffect)((function(){return t&&t.subscribe(a)}),[a]),(0,o.useEffect)((function(){return a.mount(n)}),[])}))},Co=n(7646);function To(e){return"string"===typeof e&&e.startsWith("var(--")}var Mo=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function So(e,t,n){void 0===n&&(n=1);var o=(0,r.CR)(function(e){var t=Mo.exec(e);if(!t)return[,];var n=(0,r.CR)(t,3);return[n[1],n[2]]}(e),2),i=o[0],a=o[1];if(i){var s=window.getComputedStyle(t).getPropertyValue(i);return s?s.trim():To(a)?So(a,t,n+1):a}}function Po(e,t){return e/(t.max-t.min)*100}var jo="_$css";var Io={process:function(e,t,n){var r=n.target;if("string"===typeof e){if(!ee.test(e))return e;e=parseFloat(e)}return Po(e,r.x)+"% "+Po(e,r.y)+"%"}},Ao={borderRadius:(0,r.pi)((0,r.pi)({},Io),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Io,borderTopRightRadius:Io,borderBottomLeftRadius:Io,borderBottomRightRadius:Io,boxShadow:{process:function(e,t){var n=t.delta,r=t.treeScale,o=e,i=e.includes("var("),a=[];i&&(e=e.replace(Mo,(function(e){return a.push(e),jo})));var s=Zt.parse(e);if(s.length>5)return o;var u=Zt.createTransformer(e),c="number"!==typeof s[0]?1:0,l=n.x.scale*r.x,d=n.y.scale*r.y;s[0+c]/=l,s[1+c]/=d;var f=Mt(l,d,.5);"number"===typeof s[2+c]&&(s[2+c]/=f),"number"===typeof s[3+c]&&(s[3+c]/=f);var p=u(s);if(i){var h=0;p=p.replace(jo,(function(){var e=a[h];return h++,e}))}return p}}},Ro=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.frameTarget=(0,Hr.VZ)(),t.currentAnimationTarget=(0,Hr.VZ)(),t.isAnimating={x:!1,y:!1},t.stopAxisAnimation={x:void 0,y:void 0},t.isAnimatingTree=!1,t.animate=function(e,n,o){void 0===o&&(o={});var i=o.originBox,a=o.targetBox,s=o.visibilityAction,u=o.shouldStackAnimate,c=o.onComplete,l=o.prevParent,d=(0,r._T)(o,["originBox","targetBox","visibilityAction","shouldStackAnimate","onComplete","prevParent"]),f=t.props,p=f.visualElement,h=f.layout;if(!1===u)return t.isAnimatingTree=!1,t.safeToRemove();if(!t.isAnimatingTree||!0===u){u&&(t.isAnimatingTree=!0),n=i||n,e=a||e;var v=!1,m=p.getProjectionParent();if(m){var g=m.prevViewportBox,y=m.getLayoutState().layout;l&&(a&&(y=l.getLayoutState().layout),i&&!io(l,m)&&l.prevViewportBox&&(g=l.prevViewportBox)),g&&Fo(l,i,a)&&(v=!0,n=oo(g,n),e=oo(y,e))}var b=Do(n,e),w=Vr((function(o){var i,a;if("position"===h){var u=e[o].max-e[o].min;n[o].max=n[o].min+u}if(!p.projection.isTargetLocked)return void 0===s?b?t.animateAxis(o,e[o],n[o],(0,r.pi)((0,r.pi)({},d),{isRelative:v})):(null===(a=(i=t.stopAxisAnimation)[o])||void 0===a||a.call(i),p.setProjectionTargetAxis(o,e[o].min,e[o].max,v)):void p.setVisibility(s===Co.c.Show)}));return p.syncRender(),Promise.all(w).then((function(){t.isAnimatingTree=!1,c&&c(),p.notifyLayoutAnimationComplete()}))}},t}return(0,r.ZT)(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.visualElement;t.animateMotionValue=ir,t.enableLayoutProjection(),this.unsubLayoutReady=t.onLayoutUpdate(this.animate),t.layoutSafeToRemove=function(){return e.safeToRemove()},function(e){for(var t in e)j[t]=e[t]}(Ao)},t.prototype.componentWillUnmount=function(){var e=this;this.unsubLayoutReady(),Vr((function(t){var n,r;return null===(r=(n=e.stopAxisAnimation)[t])||void 0===r?void 0:r.call(n)}))},t.prototype.animateAxis=function(e,t,n,r){var o,i,a=this,s=void 0===r?{}:r,u=s.transition,c=s.isRelative;if(!this.isAnimating[e]||!Bo(t,this.currentAnimationTarget[e])){null===(i=(o=this.stopAxisAnimation)[e])||void 0===i||i.call(o),this.isAnimating[e]=!0;var l=this.props.visualElement,d=this.frameTarget[e],f=l.getProjectionAnimationProgress()[e];f.clearListeners(),f.set(0),f.set(0);var p=function(){var r=f.get()/1e3;!function(e,t,n,r){e.min=Mt(t.min,n.min,r),e.max=Mt(t.max,n.max,r)}(d,n,t,r),l.setProjectionTargetAxis(e,d.min,d.max,c)};p();var h=f.onChange(p);this.stopAxisAnimation[e]=function(){a.isAnimating[e]=!1,f.stop(),h()},this.currentAnimationTarget[e]=t;var v=u||l.getDefaultTransition()||zo;return ir("x"===e?"layoutX":"layoutY",f,1e3,v&&or(v,"layout")).then(this.stopAxisAnimation[e])}},t.prototype.safeToRemove=function(){var e,t;null===(t=(e=this.props).safeToRemove)||void 0===t||t.call(e)},t.prototype.render=function(){return null},t}(o.Component);function Do(e,t){return!No(e)&&!No(t)&&(!Bo(e.x,t.x)||!Bo(e.y,t.y))}var Lo={min:0,max:0};function No(e){return Bo(e.x,Lo)&&Bo(e.y,Lo)}function Bo(e,t){return e.min===t.min&&e.max===t.max}var zo={duration:.45,ease:[.4,0,.1,1]};function Fo(e,t,n){return e||!e&&!(t||n)}var Ho=n(49870),Vo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.syncLayout,n=e.framerSyncLayout,r=e.visualElement;(0,Ho.Md)(t)&&t.register(r),(0,Ho.Md)(n)&&n.register(r),r.onUnmount((function(){(0,Ho.Md)(t)&&t.remove(r),(0,Ho.Md)(n)&&n.remove(r)}))},t.prototype.getSnapshotBeforeUpdate=function(){var e=this.props,t=e.syncLayout,n=e.visualElement;return(0,Ho.Md)(t)?t.syncUpdate():((0,no.x7)(n),t.add(n)),null},t.prototype.componentDidUpdate=function(){var e=this.props.syncLayout;(0,Ho.Md)(e)||e.flush()},t.prototype.render=function(){return null},t}(o.Component);var Wo={measureLayout:function(e){var t=(0,o.useContext)(Ho.WH),n=(0,o.useContext)(Ho.bg);return o.createElement(Vo,(0,r.pi)({},e,{syncLayout:t,framerSyncLayout:n}))},layoutAnimation:function(e){var t=(0,r.CR)((0,p.oO)(),2)[1];return o.createElement(Ro,(0,r.pi)({},e,{safeToRemove:t}))}};function Uo(){return{isHydrated:!1,layout:(0,Hr.VZ)(),layoutCorrected:(0,Hr.VZ)(),treeScale:{x:1,y:1},delta:(0,Hr.pY)(),deltaFinal:(0,Hr.pY)(),deltaTransform:""}}var Go=Uo();function qo(e,t,n){var r=e.x,o=e.y,i="translate3d("+r.translate/t.x+"px, "+o.translate/t.y+"px, 0) ";if(n){var a=n.rotate,s=n.rotateX,u=n.rotateY;a&&(i+="rotate("+a+") "),s&&(i+="rotateX("+s+") "),u&&(i+="rotateY("+u+") ")}return i+="scale("+r.scale+", "+o.scale+")",n||i!==Zo?i:""}function Ko(e){var t=e.deltaFinal;return 100*t.x.origin+"% "+100*t.y.origin+"% 0"}var Zo=qo(Go.delta,Go.treeScale,{x:1,y:1}),$o=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"];function Xo(e,t,n,r){var o,i,a=e.delta,s=e.layout,u=e.layoutCorrected,c=e.treeScale,l=t.target;i=s,so((o=u).x,i.x),so(o.y,i.y),function(e,t,n){var r=n.length;if(r){var o,i;t.x=t.y=1;for(var a=0;a=0;t--){var n=Y.path[t];if(n.projection.isEnabled){e=n;break}}_=e}return _},resolveRelativeTargetBox:function(){var e=Y.getProjectionParent();if(I.relativeTarget&&e&&(function(e,t){to(e.target.x,e.relativeTarget.x,t.target.x),to(e.target.y,e.relativeTarget.y,t.target.y)}(I,e.projection),ao(e))){var t=I.target;mo(t,t,e.getLatestValues())}},shouldResetTransform:function(){return Boolean(m._layoutResetTransform)},pointTo:function(e){A=e.projection,R=e.getLatestValues(),null===O||void 0===O||O(),O=ft(e.onSetAxisTarget(Y.scheduleUpdateLayoutProjection),e.onLayoutAnimationComplete((function(){var e;Y.isPresent?Y.presence=Co.z.Present:null===(e=Y.layoutSafeToRemove)||void 0===e||e.call(Y)})))},isPresent:!0,presence:Co.z.Entering});return Y}};function ei(e){e.resolveRelativeTargetBox()}function ti(e){e.updateLayoutProjection()}var ni,ri=(0,r.ev)(["initial"],(0,r.CR)(kr)),oi=ri.length,ii=new Set(["width","height","top","left","right","bottom","x","y"]),ai=function(e){return ii.has(e)},si=function(e,t){e.set(t,!1),e.set(t)},ui=function(e){return e===oe||e===ee};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(ni||(ni={}));var ci=function(e,t){return parseFloat(e.split(", ")[t])},li=function(e,t){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var i=o.match(/^matrix3d\((.+)\)$/);if(i)return ci(i[1],t);var a=o.match(/^matrix\((.+)\)$/);return a?ci(a[1],e):0}},di=new Set(["x","y","z"]),fi=A.filter((function(e){return!di.has(e)}));var pi={width:function(e){var t=e.x;return t.max-t.min},height:function(e){var t=e.y;return t.max-t.min},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:li(4,13),y:li(5,14)},hi=function(e,t,n,o){void 0===n&&(n={}),void 0===o&&(o={}),t=(0,r.pi)({},t),o=(0,r.pi)({},o);var i=Object.keys(t).filter(ai),a=[],s=!1,u=[];if(i.forEach((function(r){var i=e.getValue(r);if(e.hasValue(r)){var c,l=n[r],d=t[r],f=pr(l);if(De(d))for(var p=d.length,h=null===d[0]?1:0;h0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function u(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o(e[t]=n,e)),{})}},1527:function(e,t){"use strict";function n(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){s=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"===typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=(t instanceof Array?t.length?t:[void 0]:[t]).map((function(e){return{keyAccessor:e,isProp:!(e instanceof Function)}})),c=e.reduce((function(e,t){var r=e,o=t;return u.forEach((function(e,t){var a,c=e.keyAccessor;if(e.isProp){var l=o,d=l[c],f=n(l,[c].map(s));a=d,o=f}else a=c(o,t);t+11&&void 0!==arguments[1]?arguments[1]:1;n===u.length?Object.keys(t).forEach((function(e){return t[e]=i(t[e])})):Object.values(t).forEach((function(t){return e(t,n+1)}))}(c);var l=c;return a&&(l=[],function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];n.length===u.length?l.push({keys:n,vals:t}):Object.entries(t).forEach((function(t){var i=r(t,2),a=i[0],s=i[1];return e(s,[].concat(o(n),[a]))}))}(c),t instanceof Array&&0===t.length&&1===l.length&&(l[0].keys=[])),l}},36808:function(e,t,n){var r,o;!function(i){if(void 0===(o="function"===typeof(r=i)?r.call(t,n,t,e):r)||(e.exports=o),!0,e.exports=i(),!!0){var a=window.Cookies,s=window.Cookies=i();s.noConflict=function(){return window.Cookies=a,s}}}((function(){function e(){for(var e=0,t={};ee.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},n instanceof Function?n(e):n,{initialised:!1}),r={};function a(t){return s(t,e),u(),a}var s=function(e,n){p.call(a,e,t,n),t.initialised=!0},u=o()((function(){t.initialised&&(v.call(a,t,r),r={})}),1);return m.forEach((function(e){a[e.name]=function(e){var n=e.name,o=e.triggerUpdate,i=void 0!==o&&o,s=e.onChange,c=void 0===s?function(e,t){}:s,l=e.defaultVal,d=void 0===l?null:l;return function(e){var o=t[n];if(!arguments.length)return o;var s=void 0===e?d:e;return t[n]=s,c.call(a,s,t,o),!r.hasOwnProperty(n)&&(r[n]=o),i&&u(),a}}(e)})),Object.keys(c).forEach((function(e){a[e]=function(){for(var n,r=arguments.length,o=new Array(r),i=0;i=t||n<0||f&&e-l>=a}function _(){var e=v();if(x(e))return k(e);u=setTimeout(_,function(e){var n=t-(e-c);return f?h(n,a-(e-l)):n}(e))}function k(e){return u=void 0,m&&o?b(e):(o=i=void 0,s)}function E(){var e=v(),n=x(e);if(o=arguments,i=this,c=e,n){if(void 0===u)return w(c);if(f)return u=setTimeout(_,t),b(c)}return void 0===u&&(u=setTimeout(_,t)),s}return t=y(t)||0,g(n)&&(d=!!n.leading,a=(f="maxWait"in n)?p(y(n.maxWait)||0,t):a,m="trailing"in n?!!n.trailing:m),E.cancel=function(){void 0!==u&&clearTimeout(u),l=0,o=c=i=u=void 0},E.flush=function(){return void 0===u?s:k(v())},E}function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==f.call(e)}(e))return NaN;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=a.test(e);return n||s.test(e)?u(e.slice(2),n?2:8):i.test(e)?NaN:+e}e.exports=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new TypeError(r);return g(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),m(e,t,{leading:o,maxWait:t,trailing:i})}},90233:function(e,t,n){"use strict";n.r(t),n.d(t,{rankings:function(){return a}});var r=n(22122),o=n(76826),i=n.n(o),a={CASE_SENSITIVE_EQUAL:9,EQUAL:8,STARTS_WITH:7,WORD_STARTS_WITH:6,STRING_CASE:5,STRING_CASE_ACRONYM:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0},s={CAMEL:.8,PASCAL:.6,KEBAB:.4,SNAKE:.2,NO_CASE:0};c.rankings=a,c.caseRankings=s;var u=function(e,t){return String(e.rankedItem).localeCompare(t.rankedItem)};function c(e,t,n){void 0===n&&(n={});var r=n,o=r.keys,i=r.threshold,s=void 0===i?a.MATCHES:i,c=r.baseSort,d=void 0===c?u:c;return e.reduce((function(e,r,i){var u=function(e,t,n,r){if(!t)return{rankedItem:e,rank:l(e,n,r),keyIndex:-1,keyThreshold:r.threshold};return function(e,t){return t.reduce((function(t,n){var r=function(e,t){"object"===typeof t&&(t=t.key);var n;n="function"===typeof t?t(e):-1!==t.indexOf(".")?t.split(".").reduce((function(e,t){return e?e[t]:null}),e):e[t];return null!=n?[].concat(n):null}(e,n);return r&&r.forEach((function(e){t.push({itemValue:e,attributes:f(n)})})),t}),[])}(e,t).reduce((function(e,t,o){var i=e.rank,s=e.rankedItem,u=e.keyIndex,c=e.keyThreshold,d=t.itemValue,f=t.attributes,p=l(d,n,r),h=s,v=f.minRanking,m=f.maxRanking,g=f.threshold;return p=a.MATCHES?p=v:p>m&&(p=m),p>i&&(i=p,u=o,c=g,h=d),{rankedItem:h,rank:i,keyIndex:u,keyThreshold:c}}),{rank:a.NO_MATCH,keyIndex:-1,keyThreshold:r.threshold})}(r,o,t,n),c=u.rankedItem,d=u.rank,p=u.keyIndex,h=u.keyThreshold;d>=(void 0===h?s:h)&&e.push({rankedItem:c,item:r,rank:d,index:i,keyIndex:p});return e}),[]).sort((function(e,t){return function(e,t,n){var r=-1,o=1,i=e.rank,a=e.keyIndex,s=t.rank,u=t.keyIndex;return i===s?a===u?n(e,t):as?r:o}(e,t,d)})).map((function(e){return e.item}))}function l(e,t,n){if(e=d(e,n),(t=d(t,n)).length>e.length)return a.NO_MATCH;if(e===t)return a.CASE_SENSITIVE_EQUAL;var r=function(e){var t=e.toLowerCase()!==e,n=e.indexOf("-")>=0,r=e.indexOf("_")>=0;if(!t&&!r&&n)return s.KEBAB;if(!t&&r&&!n)return s.SNAKE;if(t&&!n&&!r){return e[0].toUpperCase()===e[0]?s.PASCAL:s.CAMEL}return s.NO_CASE}(e),o=function(e,t,n){var r=e.toLowerCase().indexOf(t.toLowerCase());switch(n){case s.SNAKE:return"_"===e[r-1];case s.KEBAB:return"-"===e[r-1];case s.PASCAL:case s.CAMEL:return-1!==r&&e[r]===e[r].toUpperCase();default:return!1}}(e,t,r),i=function(e,t,n){var r=null;switch(n){case s.SNAKE:r="_";break;case s.KEBAB:r="-";break;case s.PASCAL:case s.CAMEL:r=/(?=[A-Z])/;break;default:r=null}var o=e.split(r);return t.toLowerCase().split("").reduce((function(e,t,n){var r=o[n];return e&&r&&r[0].toLowerCase()===t}),!0)}(e,t,r);return(e=e.toLowerCase())===(t=t.toLowerCase())?a.EQUAL+r:0===e.indexOf(t)?a.STARTS_WITH+r:-1!==e.indexOf(" "+t)?a.WORD_STARTS_WITH+r:o?a.STRING_CASE+r:r>0&&i?a.STRING_CASE_ACRONYM+r:-1!==e.indexOf(t)?a.CONTAINS+r:1===t.length?a.NO_MATCH:-1!==function(e){var t="";return e.split(" ").forEach((function(e){e.split("-").forEach((function(e){t+=e.substr(0,1)}))})),t}(e).indexOf(t)?a.ACRONYM+r:function(e,t){var n=0,r=0;function o(e,t,r){for(var o=r;o-1))return a.NO_MATCH}return i(r-s)}(e,t)}function d(e,t){return e=""+e,t.keepDiacritics||(e=i()(e)),e}function f(e){return"string"===typeof e&&(e={key:e}),(0,r.Z)({maxRanking:1/0,minRanking:-1/0},e)}t.default=c},3752:function(e,t,n){"use strict";function r(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=a)&&(n=a)}}catch(d){i.e(d)}finally{i.f()}}else{var s,u=-1,c=r(e);try{for(c.s();!(s=c.n()).done;){var l=s.value;null!=(l=t(l,++u,e))&&(n=l)&&(n=l)}}catch(d){c.e(d)}finally{c.f()}}return n}n.d(t,{Z:function(){return i}})},86701:function(e,t,n){"use strict";function r(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);na||void 0===n&&a>=a)&&(n=a)}}catch(d){i.e(d)}finally{i.f()}}else{var s,u=-1,c=r(e);try{for(c.s();!(s=c.n()).done;){var l=s.value;null!=(l=t(l,++u,e))&&(n>l||void 0===n&&l>=l)&&(n=l)}}catch(d){c.e(d)}finally{c.f()}}return n}n.d(t,{Z:function(){return i}})},14275:function(e,t,n){"use strict";function r(e,t,n){if(isNaN(t))return e;var r,o,i,a,s,u,c=e._root,l={data:n},d=e._x0,f=e._x1;if(!c)return e._root=l,e;for(;c.length;)if((a=t>=(o=(d+f)/2))?d=o:f=o,r=c,!(c=c[s=+a]))return r[s]=l,e;if(t===(i=+e._x.call(null,c.data)))return l.next=c,r?r[s]=l:e._root=l,e;do{r=r?r[s]=new Array(2):e._root=new Array(2),(a=t>=(o=(d+f)/2))?d=o:f=o}while((s=+a)===(u=+(i>=o)));return r[u]=c,r[s]=l,e}function o(e,t,n){this.node=e,this.x0=t,this.x1=n}function i(e){return e[0]}function a(e,t){var n=new s(null==t?i:t,NaN,NaN);return null==e?n:n.addAll(e)}function s(e,t,n){this._x=e,this._x0=t,this._x1=n,this._root=void 0}function u(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}n.d(t,{Z:function(){return a}});var c=a.prototype=s.prototype;c.copy=function(){var e,t,n=new s(this._x,this._x0,this._x1),r=this._root;if(!r)return n;if(!r.length)return n._root=u(r),n;for(e=[{source:r,target:n._root=new Array(2)}];r=e.pop();)for(var o=0;o<2;++o)(t=r.source[o])&&(t.length?e.push({source:t,target:r.target[o]=new Array(2)}):r.target[o]=u(t));return n},c.add=function(e){var t=+this._x.call(null,e);return r(this.cover(t),t,e)},c.addAll=function(e){var t,n,o=e.length,i=new Array(o),a=1/0,s=-1/0;for(t=0;ts&&(s=n));if(a>s)return this;for(this.cover(a).cover(s),t=0;te||e>=n;)switch(o=+(ec||(i=a.x1)=f))&&(a=l[l.length-1],l[l.length-1]=l[l.length-1-s],l[l.length-1-s]=a)}else{var p=Math.abs(e-+this._x.call(null,d.data));p=(a=(d+f)/2))?d=a:f=a,t=l,!(l=l[u=+s]))return this;if(!l.length)break;t[u+1&1]&&(n=t,c=u)}for(;l.data!==e;)if(r=l,!(l=l.next))return this;return(o=l.next)&&delete l.next,r?(o?r.next=o:delete r.next,this):t?(o?t[u]=o:delete t[u],(l=t[0]||t[1])&&l===(t[1]||t[0])&&!l.length&&(n?n[c]=l:this._root=l),this):(this._root=o,this)},c.removeAll=function(e){for(var t=0,n=e.length;t=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function a(e,t){for(var n,r=0,o=e.length;r0)for(var n,r,o=new Array(n),i=0;i1&&(y=f.y+f.vy-c.y-c.vy||(0,o.Z)(d)),u>2&&(b=f.z+f.vz-c.z-c.vz||(0,o.Z)(d)),g*=p=((p=Math.sqrt(g*g+y*y+b*b))-n[m])/p*r*t[m],y*=p,b*=p,f.vx-=g*(h=l[m]),u>1&&(f.vy-=y*h),u>2&&(f.vz-=b*h),c.vx+=g*(h=1-h),u>1&&(c.vy+=y*h),u>2&&(c.vz+=b*h)}function g(){if(s){var r,o,i=s.length,u=e.length,d=new Map(s.map((function(e,t){return[f(e,t,s),e]})));for(r=0,c=new Array(i);r1?t-1:0),r=1;r1&&(e.y=i/c),t>2&&(e.z=a/c)}else{(n=e).x=n.data.x,t>1&&(n.y=n.data.y),t>2&&(n.z=n.data.z);do{u+=d[n.data.index]}while(n=n.next)}e.value=u}function b(e,r,o,i,a){if(!e.value)return!0;var u=[o,i,a][t-1],f=e.x-n.x,m=t>1?e.y-n.y:0,g=t>2?e.z-n.z:0,y=u-r,b=f*f+m*m+g*g;if(y*y/v1&&0===m&&(b+=(m=(0,s.Z)(c))*m),t>2&&0===g&&(b+=(g=(0,s.Z)(c))*g),b1&&(n.vy+=m*e.value*l/b),t>2&&(n.vz+=g*e.value*l/b)),!0;if(!(e.length||b>=h)){(e.data!==n||e.next)&&(0===f&&(b+=(f=(0,s.Z)(c))*f),t>1&&0===m&&(b+=(m=(0,s.Z)(c))*m),t>2&&0===g&&(b+=(g=(0,s.Z)(c))*g),b1&&(n.vy+=m*y),t>2&&(n.vz+=g*y))}while(e=e.next)}}return m.initialize=function(n){e=n;for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i1&&(l.vy+=f*v),a>2&&(l.vz+=p*v)}}function d(){if(i){var t,n=i.length;for(s=new Array(n),u=new Array(n),t=0;t1?t-1:0),r=1;r1&&(null==o.fy?o.y+=o.vy*=p:(o.y=o.fy,o.vy=0)),a>2&&(null==o.fz?o.z+=o.vz*=p:(o.z=o.fz,o.vz=0));return n}function w(){for(var t,n=0,r=e.length;n1&&isNaN(t.y)||a>2&&isNaN(t.z)){var o=10*(a>2?Math.cbrt(.5+n):a>1?Math.sqrt(.5+n):n),i=n*c,s=n*l;1===a?t.x=o:2===a?(t.x=o*Math.cos(i),t.y=o*Math.sin(i)):(t.x=o*Math.sin(i)*Math.cos(s),t.y=o*Math.cos(i),t.z=o*Math.sin(i)*Math.sin(s))}(isNaN(t.vx)||a>1&&isNaN(t.vy)||a>2&&isNaN(t.vz))&&(t.vx=0,a>1&&(t.vy=0),a>2&&(t.vz=0))}}function x(t){return t.initialize&&t.initialize(e,g,a),t}return null==e&&(e=[]),w(),n={tick:b,restart:function(){return v.restart(y),n},stop:function(){return v.stop(),n},numDimensions:function(e){return arguments.length?(a=Math.min(3,Math.max(1,Math.round(e))),h.forEach(x),n):a},nodes:function(t){return arguments.length?(e=t,w(),h.forEach(x),n):e},alpha:function(e){return arguments.length?(s=+e,n):s},alphaMin:function(e){return arguments.length?(u=+e,n):u},alphaDecay:function(e){return arguments.length?(d=+e,n):+d},alphaTarget:function(e){return arguments.length?(f=+e,n):f},velocityDecay:function(e){return arguments.length?(p=1-e,n):1-p},randomSource:function(e){return arguments.length?(g=e,h.forEach(x),n):g},force:function(e,t){return arguments.length>1?(null==t?h.delete(e):h.set(e,x(t)),n):h.get(e)},find:function(){var t,n,r,o,i,s,u=Array.prototype.slice.call(arguments),c=u.shift()||0,l=(a>1?u.shift():null)||0,d=(a>2?u.shift():null)||0,f=u.shift()||1/0,p=0,h=e.length;for(f*=f,p=0;p1?(m.on(e,t),n):m.on(e)}}}},78357:function(e,t,n){"use strict";function r(e,t,n,r,o){if(isNaN(t)||isNaN(n)||isNaN(r))return e;var i,a,s,u,c,l,d,f,p,h,v,m,g=e._root,y={data:o},b=e._x0,w=e._y0,x=e._z0,_=e._x1,k=e._y1,E=e._z1;if(!g)return e._root=y,e;for(;g.length;)if((f=t>=(a=(b+_)/2))?b=a:_=a,(p=n>=(s=(w+k)/2))?w=s:k=s,(h=r>=(u=(x+E)/2))?x=u:E=u,i=g,!(g=g[v=h<<2|p<<1|f]))return i[v]=y,e;if(c=+e._x.call(null,g.data),l=+e._y.call(null,g.data),d=+e._z.call(null,g.data),t===c&&n===l&&r===d)return y.next=g,i?i[v]=y:e._root=y,e;do{i=i?i[v]=new Array(8):e._root=new Array(8),(f=t>=(a=(b+_)/2))?b=a:_=a,(p=n>=(s=(w+k)/2))?w=s:k=s,(h=r>=(u=(x+E)/2))?x=u:E=u}while((v=h<<2|p<<1|f)===(m=(d>=u)<<2|(l>=s)<<1|c>=a));return i[m]=g,i[v]=y,e}function o(e,t,n,r,o,i,a){this.node=e,this.x0=t,this.y0=n,this.z0=r,this.x1=o,this.y1=i,this.z1=a}function i(e){return e[0]}function a(e){return e[1]}function s(e){return e[2]}function u(e,t,n,r){var o=new c(null==t?i:t,null==n?a:n,null==r?s:r,NaN,NaN,NaN,NaN,NaN,NaN);return null==e?o:o.addAll(e)}function c(e,t,n,r,o,i,a,s,u){this._x=e,this._y=t,this._z=n,this._x0=r,this._y0=o,this._z0=i,this._x1=a,this._y1=s,this._z1=u,this._root=void 0}function l(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}n.d(t,{Z:function(){return u}});var d=u.prototype=c.prototype;d.copy=function(){var e,t,n=new c(this._x,this._y,this._z,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1),r=this._root;if(!r)return n;if(!r.length)return n._root=l(r),n;for(e=[{source:r,target:n._root=new Array(8)}];r=e.pop();)for(var o=0;o<8;++o)(t=r.source[o])&&(t.length?e.push({source:t,target:r.target[o]=new Array(8)}):r.target[o]=l(t));return n},d.add=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e),o=+this._z.call(null,e);return r(this.cover(t,n,o),t,n,o,e)},d.addAll=function(e){var t,n,o,i,a,s=e.length,u=new Array(s),c=new Array(s),l=new Array(s),d=1/0,f=1/0,p=1/0,h=-1/0,v=-1/0,m=-1/0;for(n=0;nh&&(h=o),iv&&(v=i),am&&(m=a));if(d>h||f>v||p>m)return this;for(this.cover(d,f,p).cover(h,v,m),n=0;ne||e>=a||o>t||t>=s||i>n||n>=u;)switch(l=(ng||(s=f.y0)>y||(u=f.z0)>b||(c=f.x1)=E)<<2|(t>=k)<<1|e>=_)&&(f=w[w.length-1],w[w.length-1]=w[w.length-1-p],w[w.length-1-p]=f)}else{var O=e-+this._x.call(null,x.data),C=t-+this._y.call(null,x.data),T=n-+this._z.call(null,x.data),M=O*O+C*C+T*T;if(M=(u=(g+w)/2))?g=u:w=u,(f=a>=(c=(y+x)/2))?y=c:x=c,(p=s>=(l=(b+_)/2))?b=l:_=l,t=m,!(m=m[h=p<<2|f<<1|d]))return this;if(!m.length)break;(t[h+1&7]||t[h+2&7]||t[h+3&7]||t[h+4&7]||t[h+5&7]||t[h+6&7]||t[h+7&7])&&(n=t,v=h)}for(;m.data!==e;)if(r=m,!(m=m.next))return this;return(o=m.next)&&delete m.next,r?(o?r.next=o:delete r.next,this):t?(o?t[h]=o:delete t[h],(m=t[0]||t[1]||t[2]||t[3]||t[4]||t[5]||t[6]||t[7])&&m===(t[7]||t[6]||t[5]||t[4]||t[3]||t[2]||t[1]||t[0])&&!m.length&&(n?n[v]=m:this._root=m),this):(this._root=o,this)},d.removeAll=function(e){for(var t=0,n=e.length;t=(i=(v+g)/2))?v=i:g=i,(l=n>=(a=(m+y)/2))?m=a:y=a,o=p,!(p=p[d=l<<1|c]))return o[d]=h,e;if(s=+e._x.call(null,p.data),u=+e._y.call(null,p.data),t===s&&n===u)return h.next=p,o?o[d]=h:e._root=h,e;do{o=o?o[d]=new Array(4):e._root=new Array(4),(c=t>=(i=(v+g)/2))?v=i:g=i,(l=n>=(a=(m+y)/2))?m=a:y=a}while((d=l<<1|c)===(f=(u>=a)<<1|s>=i));return o[f]=p,o[d]=h,e}function o(e,t,n,r,o){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=o}function i(e){return e[0]}function a(e){return e[1]}function s(e,t,n){var r=new u(null==t?i:t,null==n?a:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function u(e,t,n,r,o,i){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=o,this._y1=i,this._root=void 0}function c(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}n.d(t,{Z:function(){return s}});var l=s.prototype=u.prototype;l.copy=function(){var e,t,n=new u(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=c(r),n;for(e=[{source:r,target:n._root=new Array(4)}];r=e.pop();)for(var o=0;o<4;++o)(t=r.source[o])&&(t.length?e.push({source:t,target:r.target[o]=new Array(4)}):r.target[o]=c(t));return n},l.add=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return r(this.cover(t,n),t,n,e)},l.addAll=function(e){var t,n,o,i,a=e.length,s=new Array(a),u=new Array(a),c=1/0,l=1/0,d=-1/0,f=-1/0;for(n=0;nd&&(d=o),if&&(f=i));if(c>d||l>f)return this;for(this.cover(c,l).cover(d,f),n=0;ne||e>=o||r>t||t>=i;)switch(s=(tp||(a=c.y0)>h||(s=c.x1)=y)<<1|e>=g)&&(c=v[v.length-1],v[v.length-1]=v[v.length-1-l],v[v.length-1-l]=c)}else{var b=e-+this._x.call(null,m.data),w=t-+this._y.call(null,m.data),x=b*b+w*w;if(x=(s=(h+m)/2))?h=s:m=s,(l=a>=(u=(v+g)/2))?v=u:g=u,t=p,!(p=p[d=l<<1|c]))return this;if(!p.length)break;(t[d+1&3]||t[d+2&3]||t[d+3&3])&&(n=t,f=d)}for(;p.data!==e;)if(r=p,!(p=p.next))return this;return(o=p.next)&&delete p.next,r?(o?r.next=o:delete r.next,this):t?(o?t[d]=o:delete t[d],(p=t[0]||t[1]||t[2]||t[3])&&p===(t[3]||t[2]||t[1]||t[0])&&!p.length&&(n?n[f]=p:this._root=p),this):(this._root=o,this)},l.removeAll=function(e){for(var t=0,n=e.length;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0&&t._call.call(void 0,e),t=t._next;--i}()}finally{i=0,function(){var e,t,n=r,i=1/0;for(;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:r=t);o=e,b(i)}(),c=0}}function y(){var e=d.now(),t=e-u;t>1e3&&(l-=t,u=e)}function b(e){i||(a&&(a=clearTimeout(a)),e-c>24?(e<1/0&&(a=setTimeout(g,e-d.now()-l)),s&&(s=clearInterval(s))):(s||(u=d.now(),s=setInterval(y,1e3)),i=1,f(g)))}v.prototype=m.prototype={constructor:v,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?p():+n)+(null==t?0:+t),this._next||o===this||(o?o._next=this:r=this,o=this),this._call=e,this._time=n,b()},stop:function(){this._call&&(this._call=null,this._time=1/0,b())}}},84245:function(e){e.exports=function(e){!function(e){if(!e)throw new Error("Eventify cannot use falsy object as events subject");for(var t=["on","fire","off"],n=0;n1&&(r=Array.prototype.splice.call(arguments,1));for(var i=0;i max_{var}) max_{var} = bodyPos.{var};",{indent:6})}\n }\n\n ${t("boundingBox.min_{var} = min_{var};",{indent:4})}\n ${t("boundingBox.max_{var} = max_{var};",{indent:4})}\n }\n\n function resetBoundingBox() {\n ${t("boundingBox.min_{var} = boundingBox.max_{var} = 0;",{indent:4})}\n }\n`}},6410:function(e,t,n){const r=n(15189);function o(e,t){return`\n${a(e,t)}\n${i(e)}\nreturn {Body: Body, Vector: Vector};\n`}function i(e){let t=r(e),n=t("{var}",{join:", "});return`\nfunction Body(${n}) {\n this.isPinned = false;\n this.pos = new Vector(${n});\n this.force = new Vector();\n this.velocity = new Vector();\n this.mass = 1;\n\n this.springCount = 0;\n this.springLength = 0;\n}\n\nBody.prototype.reset = function() {\n this.force.reset();\n this.springCount = 0;\n this.springLength = 0;\n}\n\nBody.prototype.setPosition = function (${n}) {\n ${t("this.pos.{var} = {var} || 0;",{indent:2})}\n};`}function a(e,t){let n=r(e),o="";return t&&(o=`${n("\n var v{var};\nObject.defineProperty(this, '{var}', {\n set: function(v) { \n if (!Number.isFinite(v)) throw new Error('Cannot set non-numbers to {var}');\n v{var} = v; \n },\n get: function() { return v{var}; }\n});")}`),`function Vector(${n("{var}",{join:", "})}) {\n ${o}\n if (typeof arguments[0] === 'object') {\n // could be another vector\n let v = arguments[0];\n ${n('if (!Number.isFinite(v.{var})) throw new Error("Expected value is not a finite number at Vector constructor ({var})");',{indent:4})}\n ${n("this.{var} = v.{var};",{indent:4})}\n } else {\n ${n('this.{var} = typeof {var} === "number" ? {var} : 0;',{indent:4})}\n }\n }\n \n Vector.prototype.reset = function () {\n ${n("this.{var} = ",{join:""})}0;\n };`}e.exports=function(e,t){let n=o(e,t),{Body:r}=new Function(n)();return r},e.exports.generateCreateBodyFunctionBody=o,e.exports.getVectorCode=a,e.exports.getBodyCode=i},36647:function(e,t,n){const r=n(15189);function o(e){return`\n if (!Number.isFinite(options.dragCoefficient)) throw new Error('dragCoefficient is not a finite number');\n\n return {\n update: function(body) {\n ${r(e)("body.force.{var} -= options.dragCoefficient * body.velocity.{var};",{indent:6})}\n }\n };\n`}e.exports=function(e){let t=o(e);return new Function("options",t)},e.exports.generateCreateDragForceFunctionBody=o},34079:function(e,t,n){const r=n(15189);function o(e){let t=r(e);return`\n if (!Number.isFinite(options.springCoefficient)) throw new Error('Spring coefficient is not a number');\n if (!Number.isFinite(options.springLength)) throw new Error('Spring length is not a number');\n\n return {\n /**\n * Updates forces acting on a spring\n */\n update: function (spring) {\n var body1 = spring.from;\n var body2 = spring.to;\n var length = spring.length < 0 ? options.springLength : spring.length;\n ${t("var d{var} = body2.pos.{var} - body1.pos.{var};",{indent:6})}\n var r = Math.sqrt(${t("d{var} * d{var}",{join:" + "})});\n\n if (r === 0) {\n ${t("d{var} = (random.nextDouble() - 0.5) / 50;",{indent:8})}\n r = Math.sqrt(${t("d{var} * d{var}",{join:" + "})});\n }\n\n var d = r - length;\n var coefficient = ((spring.coefficient > 0) ? spring.coefficient : options.springCoefficient) * d / r;\n\n ${t("body1.force.{var} += coefficient * d{var}",{indent:6})};\n body1.springCount += 1;\n body1.springLength += r;\n\n ${t("body2.force.{var} -= coefficient * d{var}",{indent:6})};\n body2.springCount += 1;\n body2.springLength += r;\n }\n };\n`}e.exports=function(e){let t=o(e);return new Function("options","random",t)},e.exports.generateCreateSpringForceFunctionBody=o},51763:function(e,t,n){const r=n(15189);function o(e){let t=r(e);return`\n var length = bodies.length;\n if (length === 0) return 0;\n\n ${t("var d{var} = 0, t{var} = 0;",{indent:2})}\n\n for (var i = 0; i < length; ++i) {\n var body = bodies[i];\n if (body.isPinned) continue;\n\n if (adaptiveTimeStepWeight && body.springCount) {\n timeStep = (adaptiveTimeStepWeight * body.springLength/body.springCount);\n }\n\n var coeff = timeStep / body.mass;\n\n ${t("body.velocity.{var} += coeff * body.force.{var};",{indent:4})}\n ${t("var v{var} = body.velocity.{var};",{indent:4})}\n var v = Math.sqrt(${t("v{var} * v{var}",{join:" + "})});\n\n if (v > 1) {\n // We normalize it so that we move within timeStep range. \n // for the case when v <= 1 - we let velocity to fade out.\n ${t("body.velocity.{var} = v{var} / v;",{indent:6})}\n }\n\n ${t("d{var} = timeStep * body.velocity.{var};",{indent:4})}\n\n ${t("body.pos.{var} += d{var};",{indent:4})}\n\n ${t("t{var} += Math.abs(d{var});",{indent:4})}\n }\n\n return (${t("t{var} * t{var}",{join:" + "})})/length;\n`}e.exports=function(e){let t=o(e);return new Function("bodies","timeStep","adaptiveTimeStepWeight",t)},e.exports.generateIntegratorFunctionBody=o},1584:function(e,t,n){const r=n(15189),o=n(16422);function i(e){let t=r(e),n=Math.pow(2,e);return`\n${l()}\n${c(e)}\n${a(e)}\n${u(e)}\n${s(e)}\n\nfunction createQuadTree(options, random) {\n options = options || {};\n options.gravity = typeof options.gravity === 'number' ? options.gravity : -1;\n options.theta = typeof options.theta === 'number' ? options.theta : 0.8;\n\n var gravity = options.gravity;\n var updateQueue = [];\n var insertStack = new InsertStack();\n var theta = options.theta;\n\n var nodesCache = [];\n var currentInCache = 0;\n var root = newNode();\n\n return {\n insertBodies: insertBodies,\n\n /**\n * Gets root node if it is present\n */\n getRoot: function() {\n return root;\n },\n\n updateBodyForce: update,\n\n options: function(newOptions) {\n if (newOptions) {\n if (typeof newOptions.gravity === 'number') {\n gravity = newOptions.gravity;\n }\n if (typeof newOptions.theta === 'number') {\n theta = newOptions.theta;\n }\n\n return this;\n }\n\n return {\n gravity: gravity,\n theta: theta\n };\n }\n };\n\n function newNode() {\n // To avoid pressure on GC we reuse nodes.\n var node = nodesCache[currentInCache];\n if (node) {\n${function(e){let t=[];for(let r=0;r {var}max) {var}max = pos.{var};",{indent:6})}\n }\n\n // Makes the bounds square.\n var maxSideLength = -Infinity;\n ${t("if ({var}max - {var}min > maxSideLength) maxSideLength = {var}max - {var}min ;",{indent:4})}\n\n currentInCache = 0;\n root = newNode();\n ${t("root.min_{var} = {var}min;",{indent:4})}\n ${t("root.max_{var} = {var}min + maxSideLength;",{indent:4})}\n\n i = bodies.length - 1;\n if (i >= 0) {\n root.body = bodies[i];\n }\n while (i--) {\n insert(bodies[i], root);\n }\n }\n\n function insert(newBody) {\n insertStack.reset();\n insertStack.push(root, newBody);\n\n while (!insertStack.isEmpty()) {\n var stackItem = insertStack.pop();\n var node = stackItem.node;\n var body = stackItem.body;\n\n if (!node.body) {\n // This is internal node. Update the total mass of the node and center-of-mass.\n ${t("var {var} = body.pos.{var};",{indent:8})}\n node.mass += body.mass;\n ${t("node.mass_{var} += body.mass * {var};",{indent:8})}\n\n // Recursively insert the body in the appropriate quadrant.\n // But first find the appropriate quadrant.\n var quadIdx = 0; // Assume we are in the 0's quad.\n ${t("var min_{var} = node.min_{var};",{indent:8})}\n ${t("var max_{var} = (min_{var} + node.max_{var}) / 2;",{indent:8})}\n\n${function(t){let n=[],r=Array(t+1).join(" ");for(let i=0;i max_${o(i)}) {`),n.push(r+` quadIdx = quadIdx + ${Math.pow(2,i)};`),n.push(r+` min_${o(i)} = max_${o(i)};`),n.push(r+` max_${o(i)} = node.max_${o(i)};`),n.push(r+"}");return n.join("\n")}(8)}\n\n var child = getChild(node, quadIdx);\n\n if (!child) {\n // The node is internal but this quadrant is not taken. Add\n // subnode to it.\n child = newNode();\n ${t("child.min_{var} = min_{var};",{indent:10})}\n ${t("child.max_{var} = max_{var};",{indent:10})}\n child.body = body;\n\n setChild(node, quadIdx, child);\n } else {\n // continue searching in this quadrant.\n insertStack.push(child, body);\n }\n } else {\n // We are trying to add to the leaf node.\n // We have to convert current leaf into internal node\n // and continue adding two nodes.\n var oldBody = node.body;\n node.body = null; // internal nodes do not cary bodies\n\n if (isSamePosition(oldBody.pos, body.pos)) {\n // Prevent infinite subdivision by bumping one node\n // anywhere in this quadrant\n var retriesCount = 3;\n do {\n var offset = random.nextDouble();\n ${t("var d{var} = (node.max_{var} - node.min_{var}) * offset;",{indent:12})}\n\n ${t("oldBody.pos.{var} = node.min_{var} + d{var};",{indent:12})}\n retriesCount -= 1;\n // Make sure we don't bump it out of the box. If we do, next iteration should fix it\n } while (retriesCount > 0 && isSamePosition(oldBody.pos, body.pos));\n\n if (retriesCount === 0 && isSamePosition(oldBody.pos, body.pos)) {\n // This is very bad, we ran out of precision.\n // if we do not return from the method we'll get into\n // infinite loop here. So we sacrifice correctness of layout, and keep the app running\n // Next layout iteration should get larger bounding box in the first step and fix this\n return;\n }\n }\n // Next iteration should subdivide node further.\n insertStack.push(node, oldBody);\n insertStack.push(node, body);\n }\n }\n }\n}\nreturn createQuadTree;\n\n`}function a(e){let t=r(e);return`\n function isSamePosition(point1, point2) {\n ${t("var d{var} = Math.abs(point1.{var} - point2.{var});",{indent:2})}\n \n return ${t("d{var} < 1e-8",{join:" && "})};\n } \n`}function s(e){var t=Math.pow(2,e);return`\nfunction setChild(node, idx, child) {\n ${function(){let e=[];for(let n=0;n 0) {\n return this.stack[--this.popIdx];\n }\n },\n reset: function () {\n this.popIdx = 0;\n }\n};\n\nfunction InsertStackElement(node, body) {\n this.node = node; // QuadTree node\n this.body = body; // physical body which needs to be inserted to node\n}\n"}e.exports=function(e){let t=i(e);return new Function(t)()},e.exports.generateQuadTreeFunctionBody=i,e.exports.getInsertStackCode=l,e.exports.getQuadNodeCode=c,e.exports.isSamePosition=a,e.exports.getChildBodyCode=u,e.exports.setChildBodyCode=s},16422:function(e){e.exports=function(e){return 0===e?"x":1===e?"y":2===e?"z":"c"+(e+1)}},45818:function(e,t,n){e.exports=function(e){var t=n(68403),d=n(35510),f=n(84245);if(e){if(void 0!==e.springCoeff)throw new Error("springCoeff was renamed to springCoefficient");if(void 0!==e.dragCoeff)throw new Error("dragCoeff was renamed to dragCoefficient")}e=d(e,{springLength:10,springCoefficient:.8,gravity:-12,theta:.8,dragCoefficient:.9,timeStep:.5,adaptiveTimeStepWeight:0,dimensions:2,debug:!1});var p=c[e.dimensions];if(!p){var h=e.dimensions;p={Body:r(h,e.debug),createQuadTree:o(h),createBounds:i(h),createDragForce:a(h),createSpringForce:s(h),integrate:u(h)},c[h]=p}var v=p.Body,m=p.createQuadTree,g=p.createBounds,y=p.createDragForce,b=p.createSpringForce,w=p.integrate,x=n(78712).random(42),_=[],k=[],E=m(e,x),O=g(_,e,x),C=b(e,x),T=y(e),M=[],S=new Map,P=0;A("nbody",(function(){if(0===_.length)return;E.insertBodies(_);var e=_.length;for(;e--;){var t=_[e];t.isPinned||(t.reset(),E.updateBodyForce(t),T.update(t))}})),A("spring",(function(){var e=k.length;for(;e--;)C.update(k[e])}));var j={bodies:_,quadTree:E,springs:k,settings:e,addForce:A,removeForce:function(e){var t=M.indexOf(S.get(e));if(t<0)return;M.splice(t,1),S.delete(e)},getForces:function(){return S},step:function(){for(var t=0;tnew v(e))(e);return _.push(t),t},removeBody:function(e){if(e){var t=_.indexOf(e);if(!(t<0))return _.splice(t,1),0===_.length&&O.reset(),!0}},addSpring:function(e,n,r,o){if(!e||!n)throw new Error("Cannot add null spring to force simulator");"number"!==typeof r&&(r=-1);var i=new t(e,n,r,o>=0?o:-1);return k.push(i),i},getTotalMovement:function(){return 0},removeSpring:function(e){if(e){var t=k.indexOf(e);return t>-1?(k.splice(t,1),!0):void 0}},getBestNewBodyPosition:function(e){return O.getBestNewPosition(e)},getBBox:I,getBoundingBox:I,invalidateBBox:function(){console.warn("invalidateBBox() is deprecated, bounds always recomputed on `getBBox()` call")},gravity:function(t){return void 0!==t?(e.gravity=t,E.options({gravity:t}),this):e.gravity},theta:function(t){return void 0!==t?(e.theta=t,E.options({theta:t}),this):e.theta},random:x};return function(e,t){for(var n in e)l(e,t,n)}(e,j),f(j),j;function I(){return O.update(),O.box}function A(e,t){if(S.has(e))throw new Error("Force "+e+" is already added");S.set(e,t),M.push(t)}};var r=n(6410),o=n(1584),i=n(30891),a=n(36647),s=n(34079),u=n(51763),c={};function l(e,t,n){if(e.hasOwnProperty(n)&&"function"!==typeof t[n]){var r=Number.isFinite(e[n]);t[n]=r?function(r){if(void 0!==r){if(!Number.isFinite(r))throw new Error("Value of "+n+" should be a valid number.");return e[n]=r,t}return e[n]}:function(r){return void 0!==r?(e[n]=r,t):e[n]}}}},68403:function(e){e.exports=function(e,t,n,r){this.from=e,this.to=t,this.length=n,this.coefficient=r}},54736:function(e,t,n){e.exports=function(e){"uniqueLinkId"in(e=e||{})&&(console.warn("ngraph.graph: Starting from version 0.14 `uniqueLinkId` is deprecated.\nUse `multigraph` option instead\n","\n","Note: there is also change in default behavior: From now on each graph\nis considered to be not a multigraph by default (each edge is unique)."),e.multigraph=e.uniqueLinkId);void 0===e.multigraph&&(e.multigraph=!1);if("function"!==typeof Map)throw new Error("ngraph.graph requires `Map` to be defined. Please polyfill it before using ngraph");var t=new Map,n=[],c={},l=0,d=e.multigraph?function(e,t,n){var r=u(e,t),o=c.hasOwnProperty(r);if(o||C(e,t)){o||(c[r]=0);var i="@"+ ++c[r];r=u(e+i,t+i)}return new s(e,t,n,r)}:function(e,t,n){var r=u(e,t);return new s(e,t,n,r)},f=[],p=T,h=T,v=T,m=T,g={addNode:w,addLink:function(e,t,r){v();var o=x(e)||w(e),i=x(t)||w(t),s=d(e,t,r);n.push(s),a(o,s),e!==t&&a(i,s);return p(s,"add"),m(),s},removeLink:O,removeNode:_,getNode:x,getNodeCount:k,getLinkCount:E,getLinksCount:E,getNodesCount:k,getLinks:function(e){var t=x(e);return t?t.links:null},forEachNode:P,forEachLinkedNode:function(e,n,r){var o=x(e);if(o&&o.links&&"function"===typeof n)return r?function(e,n,r){for(var o=0;o=0&&r.links.splice(t,1),i&&(t=o(e,i.links))>=0&&i.links.splice(t,1),p(e,"remove"),m(),!0}function C(e,t){var n,r=x(e);if(!r||!r.links)return null;for(n=0;n0&&(g.fire("changed",f),f.length=0)}function P(e){if("function"!==typeof e)throw new Error("Function is expected to iterate over graph nodes. You passed "+e);for(var n=t.values(),r=n.next();!r.done;){if(e(r.value))return!0;r=n.next()}}};var r=n(84245);function o(e,t){if(!t)return-1;if(t.indexOf)return t.indexOf(e);var n,r=t.length;for(n=0;n>>19))+374761393+(e<<5)&4294967295)+3550635116^e<<9))+4251993797+(e<<3)&4294967295)^e>>>16),this.seed=e,(268435455&e)/268435456}e.exports=t,e.exports.random=t,e.exports.randomIterator=function(e,n){var r=n||t();if("function"!==typeof r.next)throw new Error("customRandom does not match expected API: next() function is missing");return{forEach:function(t){var n,o,i;for(n=e.length-1;n>0;--n)o=r.next(n+1),i=e[o],e[o]=e[n],e[n]=i,t(i);e.length&&t(e[0])},shuffle:function(){var t,n,o;for(t=e.length-1;t>0;--t)n=r.next(t+1),o=e[n],e[n]=e[t],e[t]=o;return e}}},n.prototype.next=function(e){return Math.floor(this.nextDouble()*e)},n.prototype.nextDouble=o,n.prototype.uniform=o,n.prototype.gaussian=function(){var e,t,n;do{t=2*this.nextDouble()-1,n=2*this.nextDouble()-1,e=t*t+n*n}while(e>=1||0===e);return t*Math.sqrt(-2*Math.log(e)/e)},n.prototype.levy=function(){var e=1.5,t=Math.pow(r(2.5)*Math.sin(Math.PI*e/2)/(r(1.25)*e*Math.pow(2,.25)),1/e);return this.gaussian()*t/Math.pow(Math.abs(this.gaussian()),1/e)}},75:function(e,t,n){var r=n(34155);(function(){var t,n,o,i,a,s;"undefined"!==typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!==typeof r&&null!==r&&r.hrtime?(e.exports=function(){return(t()-a)/1e6},n=r.hrtime,i=(t=function(){var e;return 1e9*(e=n())[0]+e[1]})(),s=1e9*r.uptime(),a=i-s):Date.now?(e.exports=function(){return Date.now()-o},o=Date.now()):(e.exports=function(){return(new Date).getTime()-o},o=(new Date).getTime())}).call(this)},87236:function(e){var t=null,n=["Webkit","Moz","O","ms"];e.exports=function(e){t||(t=document.createElement("div"));var r=t.style;if(e in r)return e;for(var o=e.charAt(0).toUpperCase()+e.slice(1),i=n.length;i>=0;i--){var a=n[i]+o;if(a in r)return a}return!1}},34155:function(e){var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"===typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"===typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var s,u=[],c=!1,l=-1;function d(){c&&s&&(c=!1,s.length?u=s.concat(u):l=-1,u.length&&f())}function f(){if(!c){var e=a(d);c=!0;for(var t=u.length;t;){for(s=u,u=[];++l1)for(var n=1;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},36164:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t1?r-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollLeft=e)}},{key:"scrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollTop=e)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if("undefined"!==typeof document&&this.view){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,o=this.thumbVertical;e.addEventListener("scroll",this.handleScroll),(0,d.default)()&&(t.addEventListener("mouseenter",this.handleTrackMouseEnter),t.addEventListener("mouseleave",this.handleTrackMouseLeave),t.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),n.addEventListener("mouseenter",this.handleTrackMouseEnter),n.addEventListener("mouseleave",this.handleTrackMouseLeave),n.addEventListener("mousedown",this.handleVerticalTrackMouseDown),r.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),o.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if("undefined"!==typeof document&&this.view){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,o=this.thumbVertical;e.removeEventListener("scroll",this.handleScroll),(0,d.default)()&&(t.removeEventListener("mouseenter",this.handleTrackMouseEnter),t.removeEventListener("mouseleave",this.handleTrackMouseLeave),t.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),n.removeEventListener("mouseenter",this.handleTrackMouseEnter),n.removeEventListener("mouseleave",this.handleTrackMouseLeave),n.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),r.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),o.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(e){var t=this,n=this.props,r=n.onScroll,o=n.onScrollFrame;r&&r(e),this.update((function(e){var n=e.scrollLeft,r=e.scrollTop;t.viewScrollLeft=n,t.viewScrollTop=r,o&&o(e)})),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var e=this.props.onScrollStart;e&&e(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleScrollStop",value:function(){var e=this.props.onScrollStop;e&&e(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleWindowResize",value:function(){(0,d.default)(!1),this.forceUpdate()}},{key:"handleHorizontalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientX,r=t.getBoundingClientRect().left,o=this.getThumbHorizontalWidth(),i=Math.abs(r-n)-o/2;this.view.scrollLeft=this.getScrollLeftForOffset(i)}},{key:"handleVerticalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientY,r=t.getBoundingClientRect().top,o=this.getThumbVerticalHeight(),i=Math.abs(r-n)-o/2;this.view.scrollTop=this.getScrollTopForOffset(i)}},{key:"handleHorizontalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientX,r=t.offsetWidth,o=t.getBoundingClientRect().left;this.prevPageX=r-(n-o)}},{key:"handleVerticalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientY,r=t.offsetHeight,o=t.getBoundingClientRect().top;this.prevPageY=r-(n-o)}},{key:"setupDragging",value:function(){(0,s.default)(document.body,v.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=f.default}},{key:"teardownDragging",value:function(){(0,s.default)(document.body,v.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(e){this.dragging=!0,e.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(e){if(this.prevPageX){var t=e.clientX,n=-this.trackHorizontal.getBoundingClientRect().left+t-(this.getThumbHorizontalWidth()-this.prevPageX);this.view.scrollLeft=this.getScrollLeftForOffset(n)}if(this.prevPageY){var r=e.clientY,o=-this.trackVertical.getBoundingClientRect().top+r-(this.getThumbVerticalHeight()-this.prevPageY);this.view.scrollTop=this.getScrollTopForOffset(o)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,s.default)(this.trackHorizontal,{opacity:1}),(0,s.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var e=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var t=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout((function(){(0,s.default)(e.trackHorizontal,{opacity:0}),(0,s.default)(e.trackVertical,{opacity:0})}),t)}}},{key:"detectScrolling",value:function(){var e=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval((function(){e.lastViewScrollLeft===e.viewScrollLeft&&e.lastViewScrollTop===e.viewScrollTop&&(clearInterval(e.detectScrollingInterval),e.scrolling=!1,e.handleScrollStop()),e.lastViewScrollLeft=e.viewScrollLeft,e.lastViewScrollTop=e.viewScrollTop}),100))}},{key:"raf",value:function(e){var t=this;this.requestFrame&&a.default.cancel(this.requestFrame),this.requestFrame=(0,a.default)((function(){t.requestFrame=void 0,e()}))}},{key:"update",value:function(e){var t=this;this.raf((function(){return t._update(e)}))}},{key:"_update",value:function(e){var t=this.props,n=t.onUpdate,r=t.hideTracksWhenNotNeeded,o=this.getValues();if((0,d.default)()){var i=o.scrollLeft,a=o.clientWidth,u=o.scrollWidth,c=(0,p.default)(this.trackHorizontal),l=this.getThumbHorizontalWidth(),f={width:l,transform:"translateX("+i/(u-a)*(c-l)+"px)"},v=o.scrollTop,m=o.clientHeight,g=o.scrollHeight,y=(0,h.default)(this.trackVertical),b=this.getThumbVerticalHeight(),w={height:b,transform:"translateY("+v/(g-m)*(y-b)+"px)"};if(r){var x={visibility:u>a?"visible":"hidden"},_={visibility:g>m?"visible":"hidden"};(0,s.default)(this.trackHorizontal,x),(0,s.default)(this.trackVertical,_)}(0,s.default)(this.thumbHorizontal,f),(0,s.default)(this.thumbVertical,w)}n&&n(o),"function"===typeof e&&e(o)}},{key:"render",value:function(){var e=this,t=(0,d.default)(),n=this.props,o=(n.onScroll,n.onScrollFrame,n.onScrollStart,n.onScrollStop,n.onUpdate,n.renderView),i=n.renderTrackHorizontal,a=n.renderTrackVertical,s=n.renderThumbHorizontal,c=n.renderThumbVertical,f=n.tagName,p=(n.hideTracksWhenNotNeeded,n.autoHide),h=(n.autoHideTimeout,n.autoHideDuration),m=(n.thumbSize,n.thumbMinSize,n.universal),g=n.autoHeight,y=n.autoHeightMin,b=n.autoHeightMax,w=n.style,x=n.children,_=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(n,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),k=this.state.didMountUniversal,E=r({},v.containerStyleDefault,g&&r({},v.containerStyleAutoHeight,{minHeight:y,maxHeight:b}),w),O=r({},v.viewStyleDefault,{marginRight:t?-t:0,marginBottom:t?-t:0},g&&r({},v.viewStyleAutoHeight,{minHeight:(0,l.default)(y)?"calc("+y+" + "+t+"px)":y+t,maxHeight:(0,l.default)(b)?"calc("+b+" + "+t+"px)":b+t}),g&&m&&!k&&{minHeight:y,maxHeight:b},m&&!k&&v.viewStyleUniversalInitial),C={transition:"opacity "+h+"ms",opacity:0},T=r({},v.trackHorizontalStyleDefault,p&&C,(!t||m&&!k)&&{display:"none"}),M=r({},v.trackVerticalStyleDefault,p&&C,(!t||m&&!k)&&{display:"none"});return(0,u.createElement)(f,r({},_,{style:E,ref:function(t){e.container=t}}),[(0,u.cloneElement)(o({style:O}),{key:"view",ref:function(t){e.view=t}},x),(0,u.cloneElement)(i({style:T}),{key:"trackHorizontal",ref:function(t){e.trackHorizontal=t}},(0,u.cloneElement)(s({style:v.thumbHorizontalStyleDefault}),{ref:function(t){e.thumbHorizontal=t}})),(0,u.cloneElement)(a({style:M}),{key:"trackVertical",ref:function(t){e.trackVertical=t}},(0,u.cloneElement)(c({style:v.thumbVerticalStyleDefault}),{ref:function(t){e.thumbVertical=t}}))])}}]),t}(u.Component);t.default=w,w.propTypes={onScroll:c.default.func,onScrollFrame:c.default.func,onScrollStart:c.default.func,onScrollStop:c.default.func,onUpdate:c.default.func,renderView:c.default.func,renderTrackHorizontal:c.default.func,renderTrackVertical:c.default.func,renderThumbHorizontal:c.default.func,renderThumbVertical:c.default.func,tagName:c.default.string,thumbSize:c.default.number,thumbMinSize:c.default.number,hideTracksWhenNotNeeded:c.default.bool,autoHide:c.default.bool,autoHideTimeout:c.default.number,autoHideDuration:c.default.number,autoHeight:c.default.bool,autoHeightMin:c.default.oneOfType([c.default.number,c.default.string]),autoHeightMax:c.default.oneOfType([c.default.number,c.default.string]),universal:c.default.bool,style:c.default.object,children:c.default.node},w.defaultProps={renderView:m.renderViewDefault,renderTrackHorizontal:m.renderTrackHorizontalDefault,renderTrackVertical:m.renderTrackVerticalDefault,renderThumbHorizontal:m.renderThumbHorizontalDefault,renderThumbVertical:m.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}},58285:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},t.containerStyleAutoHeight={height:"auto"},t.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},t.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},t.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},t.trackHorizontalStyleDefault={position:"absolute",height:6},t.trackVerticalStyleDefault={position:"absolute",width:6},t.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},t.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},t.disableSelectStyle={userSelect:"none"},t.disableSelectStyleReset={userSelect:""}},86658:function(e,t,n){"use strict";var r,o=n(36164),i=(r=o)&&r.__esModule?r:{default:r};t.ZP=i.default,i.default},43840:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.clientHeight,n=getComputedStyle(e),r=n.paddingTop,o=n.paddingBottom;return t-parseFloat(r)-parseFloat(o)}},51608:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.clientWidth,n=getComputedStyle(e),r=n.paddingLeft,o=n.paddingRight;return t-parseFloat(r)-parseFloat(o)}},66445:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(e&&!1!==a)return a;if("undefined"!==typeof document){var t=document.createElement("div");(0,i.default)(t,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(t),a=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}else a=0;return a||0};var r,o=n(53879),i=(r=o)&&r.__esModule?r:{default:r};var a=!1},77928:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"===typeof e}},18309:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!1}},69590:function(e){var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,o="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,u,c,l;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(u=s;0!==u--;)if(!i(e[u],a[u]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(l=e.entries();!(u=l.next()).done;)if(!a.has(u.value[0]))return!1;for(l=e.entries();!(u=l.next()).done;)if(!i(u.value[1],a.get(u.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(l=e.entries();!(u=l.next()).done;)if(!a.has(u.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(u=s;0!==u--;)if(e[u]!==a[u])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===a.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(u=s;0!==u--;)if(!Object.prototype.hasOwnProperty.call(a,c[u]))return!1;if(t&&e instanceof Element)return!1;for(u=s;0!==u--;)if(("_owner"!==c[u]&&"__v"!==c[u]&&"__o"!==c[u]||!e.$$typeof)&&!i(e[c[u]],a[c[u]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return i(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},61957:function(e,n,r){"use strict";r.d(n,{f$:function(){return Fi},s6:function(){return zi}});var o=r(67294);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){s=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||u(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?t-1:0),r=1;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?r-1:0),i=1;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?r-1:0),i=1;i2&&void 0!==arguments[2]?arguments[2]:{},r=n.markerAttrs,o=void 0===r?{preset:"hiro"}:r;e.innerHTML="",t.container=document.createElement("div"),e.appendChild(t.container);var i=document.createElement("a-scene");i.setAttribute("embedded",""),i.setAttribute("arjs","debugUIEnabled: false;");var a,s=document.createElement("a-marker");Object.entries(o).forEach((function(e){var t=R(e,2),n=t[0],r=t[1];return s.setAttribute(n,r)})),i.appendChild(s),i.appendChild(a=document.createElement("a-entity")),a.setAttribute("cursor"),a.setAttribute("raycaster","objects: [forcegraph]"),t.forcegraph=document.createElement("a-entity"),t.forcegraph.setAttribute("forcegraph",null),s.appendChild(t.forcegraph);var u=document.createElement("a-entity");u.setAttribute("camera",""),i.appendChild(u),t.container.appendChild(i)},update:function(e,t){t.hasOwnProperty("width")&&e.width&&(e.container.style.width=e.width),t.hasOwnProperty("height")&&e.height&&(e.container.style.height=e.height),t.hasOwnProperty("glScale")&&e.forcegraph.setAttribute("scale",D(new Array(3)).map((function(){return 1/e.glScale})).join(" ")),t.hasOwnProperty("yOffset")&&e.forcegraph.setAttribute("position","0 ".concat(e.yOffset," 0"));var n=["jsonUrl","numDimensions","dagMode","dagLevelDistance","dagNodeFilter","onDagError","nodeRelSize","nodeId","nodeVal","nodeResolution","nodeVisibility","nodeColor","nodeAutoColorBy","nodeOpacity","nodeThreeObject","nodeThreeObjectExtend","linkSource","linkTarget","linkVisibility","linkColor","linkAutoColorBy","linkOpacity","linkWidth","linkResolution","linkCurvature","linkCurveRotation","linkMaterial","linkThreeObject","linkThreeObjectExtend","linkPositionUpdate","linkDirectionalArrowLength","linkDirectionalArrowColor","linkDirectionalArrowRelPos","linkDirectionalArrowResolution","linkDirectionalParticles","linkDirectionalParticleSpeed","linkDirectionalParticleWidth","linkDirectionalParticleColor","linkDirectionalParticleResolution","onNodeHover","onNodeClick","onLinkHover","onLinkClick","forceEngine","d3AlphaMin","d3AlphaDecay","d3VelocityDecay","ngraphPhysics","warmupTicks","cooldownTicks","cooldownTime","onEngineTick","onEngineStop"],r=Object.assign.apply(Object,[{}].concat(D(Object.entries(e).filter((function(e){var r=R(e,2),o=r[0],i=r[1];return t.hasOwnProperty(o)&&-1!==n.indexOf(o)&&void 0!==i&&null!==i})).map((function(e){var t=R(e,2);return A({},t[0],t[1])}))),D(Object.entries(e.graphData).map((function(e){var t=R(e,2);return A({},t[0],t[1])})))));e.forcegraph.setAttribute("forcegraph",r)}}),z=r(2212);const F=new z.JOQ,H=new z.iMs,V=new z.FM8,W=new z.Pa4,U=new z.Pa4,G=new z.Pa4,q=new z.yGw;class K extends z.pBf{constructor(e,t,n){super(),n.style.touchAction="none";let r=null,o=null;const i=[],a=this;function s(){n.addEventListener("pointermove",c),n.addEventListener("pointerdown",l),n.addEventListener("pointerup",d),n.addEventListener("pointerleave",d)}function u(){n.removeEventListener("pointermove",c),n.removeEventListener("pointerdown",l),n.removeEventListener("pointerup",d),n.removeEventListener("pointerleave",d),n.style.cursor=""}function c(s){if(!1!==a.enabled){if(f(s),H.setFromCamera(V,t),r)return H.ray.intersectPlane(F,U)&&r.position.copy(U.sub(W).applyMatrix4(q)),void a.dispatchEvent({type:"drag",object:r});if("mouse"===s.pointerType||"pen"===s.pointerType)if(i.length=0,H.setFromCamera(V,t),H.intersectObjects(e,!0,i),i.length>0){const e=i[0].object;F.setFromNormalAndCoplanarPoint(t.getWorldDirection(F.normal),G.setFromMatrixPosition(e.matrixWorld)),o!==e&&null!==o&&(a.dispatchEvent({type:"hoveroff",object:o}),n.style.cursor="auto",o=null),o!==e&&(a.dispatchEvent({type:"hoveron",object:e}),n.style.cursor="pointer",o=e)}else null!==o&&(a.dispatchEvent({type:"hoveroff",object:o}),n.style.cursor="auto",o=null)}}function l(o){!1!==a.enabled&&(f(o),i.length=0,H.setFromCamera(V,t),H.intersectObjects(e,!0,i),i.length>0&&(r=!0===a.transformGroup?e[0]:i[0].object,F.setFromNormalAndCoplanarPoint(t.getWorldDirection(F.normal),G.setFromMatrixPosition(r.matrixWorld)),H.ray.intersectPlane(F,U)&&(q.copy(r.parent.matrixWorld).invert(),W.copy(U).sub(G.setFromMatrixPosition(r.matrixWorld))),n.style.cursor="move",a.dispatchEvent({type:"dragstart",object:r})))}function d(){!1!==a.enabled&&(r&&(a.dispatchEvent({type:"dragend",object:r}),r=null),n.style.cursor=o?"pointer":"auto")}function f(e){const t=n.getBoundingClientRect();V.x=(e.clientX-t.left)/t.width*2-1,V.y=-(e.clientY-t.top)/t.height*2+1}s(),this.enabled=!0,this.transformGroup=!1,this.activate=s,this.deactivate=u,this.dispose=function(){u()},this.getObjects=function(){return e}}}var Z=r(81398);const $={type:"change"},X={type:"start"},Y={type:"end"};class Q extends z.pBf{constructor(e,t){super(),void 0===t&&console.warn('THREE.TrackballControls: The second parameter "domElement" is now mandatory.'),t===document&&console.error('THREE.TrackballControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.');const n=this,r=-1,o=0,i=1,a=2,s=3,u=4;this.object=e,this.domElement=t,this.domElement.style.touchAction="none",this.enabled=!0,this.screen={left:0,top:0,width:0,height:0},this.rotateSpeed=1,this.zoomSpeed=1.2,this.panSpeed=.3,this.noRotate=!1,this.noZoom=!1,this.noPan=!1,this.staticMoving=!1,this.dynamicDampingFactor=.2,this.minDistance=0,this.maxDistance=1/0,this.keys=["KeyA","KeyS","KeyD"],this.mouseButtons={LEFT:z.RsA.ROTATE,MIDDLE:z.RsA.DOLLY,RIGHT:z.RsA.PAN},this.target=new z.Pa4;const c=1e-6,l=new z.Pa4;let d=1,f=r,p=r,h=0,v=0,m=0;const g=new z.Pa4,y=new z.FM8,b=new z.FM8,w=new z.Pa4,x=new z.FM8,_=new z.FM8,k=new z.FM8,E=new z.FM8,O=[],C={};this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.up0=this.object.up.clone(),this.zoom0=this.object.zoom,this.handleResize=function(){const e=n.domElement.getBoundingClientRect(),t=n.domElement.ownerDocument.documentElement;n.screen.left=e.left+window.pageXOffset-t.clientLeft,n.screen.top=e.top+window.pageYOffset-t.clientTop,n.screen.width=e.width,n.screen.height=e.height};const T=function(){const e=new z.FM8;return function(t,r){return e.set((t-n.screen.left)/n.screen.width,(r-n.screen.top)/n.screen.height),e}}(),M=function(){const e=new z.FM8;return function(t,r){return e.set((t-.5*n.screen.width-n.screen.left)/(.5*n.screen.width),(n.screen.height+2*(n.screen.top-r))/n.screen.width),e}}();function S(e){!1!==n.enabled&&(0===O.length&&(n.domElement.ownerDocument.addEventListener("pointermove",P),n.domElement.ownerDocument.addEventListener("pointerup",j)),function(e){O.push(e)}(e),"touch"===e.pointerType?function(e){switch(B(e),O.length){case 1:f=s,b.copy(M(O[0].pageX,O[0].pageY)),y.copy(b);break;default:f=u;const e=O[0].pageX-O[1].pageX,t=O[0].pageY-O[1].pageY;v=h=Math.sqrt(e*e+t*t);const n=(O[0].pageX+O[1].pageX)/2,r=(O[0].pageY+O[1].pageY)/2;k.copy(T(n,r)),E.copy(k)}n.dispatchEvent(X)}(e):function(e){if(f===r)switch(e.button){case n.mouseButtons.LEFT:f=o;break;case n.mouseButtons.MIDDLE:f=i;break;case n.mouseButtons.RIGHT:f=a;break;default:f=r}const t=p!==r?p:f;t!==o||n.noRotate?t!==i||n.noZoom?t!==a||n.noPan||(k.copy(T(e.pageX,e.pageY)),E.copy(k)):(x.copy(T(e.pageX,e.pageY)),_.copy(x)):(b.copy(M(e.pageX,e.pageY)),y.copy(b));n.domElement.ownerDocument.addEventListener("pointermove",P),n.domElement.ownerDocument.addEventListener("pointerup",j),n.dispatchEvent(X)}(e))}function P(e){!1!==n.enabled&&("touch"===e.pointerType?function(e){switch(B(e),O.length){case 1:y.copy(b),b.copy(M(e.pageX,e.pageY));break;default:const t=function(e){const t=e.pointerId===O[0].pointerId?O[1]:O[0];return C[t.pointerId]}(e),n=e.pageX-t.x,r=e.pageY-t.y;v=Math.sqrt(n*n+r*r);const o=(e.pageX+t.x)/2,i=(e.pageY+t.y)/2;E.copy(T(o,i))}}(e):function(e){const t=p!==r?p:f;t!==o||n.noRotate?t!==i||n.noZoom?t!==a||n.noPan||E.copy(T(e.pageX,e.pageY)):_.copy(T(e.pageX,e.pageY)):(y.copy(b),b.copy(M(e.pageX,e.pageY)))}(e))}function j(e){!1!==n.enabled&&("touch"===e.pointerType?function(e){switch(O.length){case 0:f=r;break;case 1:f=s,b.copy(M(e.pageX,e.pageY)),y.copy(b)}n.dispatchEvent(Y)}(e):(f=r,n.domElement.ownerDocument.removeEventListener("pointermove",P),n.domElement.ownerDocument.removeEventListener("pointerup",j),n.dispatchEvent(Y)),N(e),0===O.length&&(n.domElement.ownerDocument.removeEventListener("pointermove",P),n.domElement.ownerDocument.removeEventListener("pointerup",j)))}function I(e){N(e)}function A(e){!1!==n.enabled&&(window.removeEventListener("keydown",A),p===r&&(e.code!==n.keys[o]||n.noRotate?e.code!==n.keys[i]||n.noZoom?e.code!==n.keys[a]||n.noPan||(p=a):p=i:p=o))}function R(){!1!==n.enabled&&(p=r,window.addEventListener("keydown",A))}function D(e){if(!1!==n.enabled&&!0!==n.noZoom){switch(e.preventDefault(),e.deltaMode){case 2:x.y-=.025*e.deltaY;break;case 1:x.y-=.01*e.deltaY;break;default:x.y-=25e-5*e.deltaY}n.dispatchEvent(X),n.dispatchEvent(Y)}}function L(e){!1!==n.enabled&&e.preventDefault()}function N(e){delete C[e.pointerId];for(let t=0;t0&&(n.object.isPerspectiveCamera?g.multiplyScalar(e):n.object.isOrthographicCamera?(n.object.zoom/=e,n.object.updateProjectionMatrix()):console.warn("THREE.TrackballControls: Unsupported camera type")),n.staticMoving?x.copy(_):x.y+=(_.y-x.y)*this.dynamicDampingFactor)},this.panCamera=function(){const e=new z.FM8,t=new z.Pa4,r=new z.Pa4;return function(){if(e.copy(E).sub(k),e.lengthSq()){if(n.object.isOrthographicCamera){const t=(n.object.right-n.object.left)/n.object.zoom/n.domElement.clientWidth,r=(n.object.top-n.object.bottom)/n.object.zoom/n.domElement.clientWidth;e.x*=t,e.y*=r}e.multiplyScalar(g.length()*n.panSpeed),r.copy(g).cross(n.object.up).setLength(e.x),r.add(t.copy(n.object.up).setLength(e.y)),n.object.position.add(r),n.target.add(r),n.staticMoving?k.copy(E):k.add(e.subVectors(E,k).multiplyScalar(n.dynamicDampingFactor))}}}(),this.checkDistances=function(){n.noZoom&&n.noPan||(g.lengthSq()>n.maxDistance*n.maxDistance&&(n.object.position.addVectors(n.target,g.setLength(n.maxDistance)),x.copy(_)),g.lengthSq()c&&(n.dispatchEvent($),l.copy(n.object.position))):n.object.isOrthographicCamera?(n.object.lookAt(n.target),(l.distanceToSquared(n.object.position)>c||d!==n.object.zoom)&&(n.dispatchEvent($),l.copy(n.object.position),d=n.object.zoom)):console.warn("THREE.TrackballControls: Unsupported camera type")},this.reset=function(){f=r,p=r,n.target.copy(n.target0),n.object.position.copy(n.position0),n.object.up.copy(n.up0),n.object.zoom=n.zoom0,n.object.updateProjectionMatrix(),g.subVectors(n.object.position,n.target),n.object.lookAt(n.target),n.dispatchEvent($),l.copy(n.object.position),d=n.object.zoom},this.dispose=function(){n.domElement.removeEventListener("contextmenu",L),n.domElement.removeEventListener("pointerdown",S),n.domElement.removeEventListener("pointercancel",I),n.domElement.removeEventListener("wheel",D),window.removeEventListener("keydown",A),window.removeEventListener("keyup",R)},this.domElement.addEventListener("contextmenu",L),this.domElement.addEventListener("pointerdown",S),this.domElement.addEventListener("pointercancel",I),this.domElement.addEventListener("wheel",D,{passive:!1}),window.addEventListener("keydown",A),window.addEventListener("keyup",R),this.handleResize(),this.update()}}const J={type:"change"},ee={type:"start"},te={type:"end"};class ne extends z.pBf{constructor(e,t){super(),void 0===t&&console.warn('THREE.OrbitControls: The second parameter "domElement" is now mandatory.'),t===document&&console.error('THREE.OrbitControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.'),this.object=e,this.domElement=t,this.domElement.style.touchAction="none",this.enabled=!0,this.target=new z.Pa4,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:z.RsA.ROTATE,MIDDLE:z.RsA.DOLLY,RIGHT:z.RsA.PAN},this.touches={ONE:z.QmN.ROTATE,TWO:z.QmN.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this.getPolarAngle=function(){return a.phi},this.getAzimuthalAngle=function(){return a.theta},this.listenToKeyEvents=function(e){e.addEventListener("keydown",U),this._domElementKeyEvents=e},this.saveState=function(){n.target0.copy(n.target),n.position0.copy(n.object.position),n.zoom0=n.object.zoom},this.reset=function(){n.target.copy(n.target0),n.object.position.copy(n.position0),n.object.zoom=n.zoom0,n.object.updateProjectionMatrix(),n.dispatchEvent(J),n.update(),o=r.NONE},this.update=function(){const t=new z.Pa4,d=(new z._fP).setFromUnitVectors(e.up,new z.Pa4(0,1,0)),f=d.clone().invert(),p=new z.Pa4,h=new z._fP,v=2*Math.PI;return function(){const e=n.object.position;t.copy(e).sub(n.target),t.applyQuaternion(d),a.setFromVector3(t),n.autoRotate&&o===r.NONE&&k(2*Math.PI/60/60*n.autoRotateSpeed),n.enableDamping?(a.theta+=s.theta*n.dampingFactor,a.phi+=s.phi*n.dampingFactor):(a.theta+=s.theta,a.phi+=s.phi);let m=n.minAzimuthAngle,g=n.maxAzimuthAngle;return isFinite(m)&&isFinite(g)&&(m<-Math.PI?m+=v:m>Math.PI&&(m-=v),g<-Math.PI?g+=v:g>Math.PI&&(g-=v),a.theta=m<=g?Math.max(m,Math.min(g,a.theta)):a.theta>(m+g)/2?Math.max(m,a.theta):Math.min(g,a.theta)),a.phi=Math.max(n.minPolarAngle,Math.min(n.maxPolarAngle,a.phi)),a.makeSafe(),a.radius*=u,a.radius=Math.max(n.minDistance,Math.min(n.maxDistance,a.radius)),!0===n.enableDamping?n.target.addScaledVector(c,n.dampingFactor):n.target.add(c),t.setFromSpherical(a),t.applyQuaternion(f),e.copy(n.target).add(t),n.object.lookAt(n.target),!0===n.enableDamping?(s.theta*=1-n.dampingFactor,s.phi*=1-n.dampingFactor,c.multiplyScalar(1-n.dampingFactor)):(s.set(0,0,0),c.set(0,0,0)),u=1,!!(l||p.distanceToSquared(n.object.position)>i||8*(1-h.dot(n.object.quaternion))>i)&&(n.dispatchEvent(J),p.copy(n.object.position),h.copy(n.object.quaternion),l=!1,!0)}}(),this.dispose=function(){n.domElement.removeEventListener("contextmenu",G),n.domElement.removeEventListener("pointerdown",B),n.domElement.removeEventListener("pointercancel",V),n.domElement.removeEventListener("wheel",W),n.domElement.ownerDocument.removeEventListener("pointermove",F),n.domElement.ownerDocument.removeEventListener("pointerup",H),null!==n._domElementKeyEvents&&n._domElementKeyEvents.removeEventListener("keydown",U)};const n=this,r={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let o=r.NONE;const i=1e-6,a=new z.$V,s=new z.$V;let u=1;const c=new z.Pa4;let l=!1;const d=new z.FM8,f=new z.FM8,p=new z.FM8,h=new z.FM8,v=new z.FM8,m=new z.FM8,g=new z.FM8,y=new z.FM8,b=new z.FM8,w=[],x={};function _(){return Math.pow(.95,n.zoomSpeed)}function k(e){s.theta-=e}function E(e){s.phi-=e}const O=function(){const e=new z.Pa4;return function(t,n){e.setFromMatrixColumn(n,0),e.multiplyScalar(-t),c.add(e)}}(),C=function(){const e=new z.Pa4;return function(t,r){!0===n.screenSpacePanning?e.setFromMatrixColumn(r,1):(e.setFromMatrixColumn(r,0),e.crossVectors(n.object.up,e)),e.multiplyScalar(t),c.add(e)}}(),T=function(){const e=new z.Pa4;return function(t,r){const o=n.domElement;if(n.object.isPerspectiveCamera){const i=n.object.position;e.copy(i).sub(n.target);let a=e.length();a*=Math.tan(n.object.fov/2*Math.PI/180),O(2*t*a/o.clientHeight,n.object.matrix),C(2*r*a/o.clientHeight,n.object.matrix)}else n.object.isOrthographicCamera?(O(t*(n.object.right-n.object.left)/n.object.zoom/o.clientWidth,n.object.matrix),C(r*(n.object.top-n.object.bottom)/n.object.zoom/o.clientHeight,n.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),n.enablePan=!1)}}();function M(e){n.object.isPerspectiveCamera?u/=e:n.object.isOrthographicCamera?(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom*e)),n.object.updateProjectionMatrix(),l=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function S(e){n.object.isPerspectiveCamera?u*=e:n.object.isOrthographicCamera?(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom/e)),n.object.updateProjectionMatrix(),l=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function P(e){d.set(e.clientX,e.clientY)}function j(e){h.set(e.clientX,e.clientY)}function I(){if(1===w.length)d.set(w[0].pageX,w[0].pageY);else{const e=.5*(w[0].pageX+w[1].pageX),t=.5*(w[0].pageY+w[1].pageY);d.set(e,t)}}function A(){if(1===w.length)h.set(w[0].pageX,w[0].pageY);else{const e=.5*(w[0].pageX+w[1].pageX),t=.5*(w[0].pageY+w[1].pageY);h.set(e,t)}}function R(){const e=w[0].pageX-w[1].pageX,t=w[0].pageY-w[1].pageY,n=Math.sqrt(e*e+t*t);g.set(0,n)}function D(e){if(1==w.length)f.set(e.pageX,e.pageY);else{const t=Z(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);f.set(n,r)}p.subVectors(f,d).multiplyScalar(n.rotateSpeed);const t=n.domElement;k(2*Math.PI*p.x/t.clientHeight),E(2*Math.PI*p.y/t.clientHeight),d.copy(f)}function L(e){if(1===w.length)v.set(e.pageX,e.pageY);else{const t=Z(e),n=.5*(e.pageX+t.x),r=.5*(e.pageY+t.y);v.set(n,r)}m.subVectors(v,h).multiplyScalar(n.panSpeed),T(m.x,m.y),h.copy(v)}function N(e){const t=Z(e),r=e.pageX-t.x,o=e.pageY-t.y,i=Math.sqrt(r*r+o*o);y.set(0,i),b.set(0,Math.pow(y.y/g.y,n.zoomSpeed)),M(b.y),g.copy(y)}function B(e){!1!==n.enabled&&(0===w.length&&(n.domElement.ownerDocument.addEventListener("pointermove",F),n.domElement.ownerDocument.addEventListener("pointerup",H)),function(e){w.push(e)}(e),"touch"===e.pointerType?function(e){switch(K(e),w.length){case 1:switch(n.touches.ONE){case z.QmN.ROTATE:if(!1===n.enableRotate)return;I(),o=r.TOUCH_ROTATE;break;case z.QmN.PAN:if(!1===n.enablePan)return;A(),o=r.TOUCH_PAN;break;default:o=r.NONE}break;case 2:switch(n.touches.TWO){case z.QmN.DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;n.enableZoom&&R(),n.enablePan&&A(),o=r.TOUCH_DOLLY_PAN;break;case z.QmN.DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;n.enableZoom&&R(),n.enableRotate&&I(),o=r.TOUCH_DOLLY_ROTATE;break;default:o=r.NONE}break;default:o=r.NONE}o!==r.NONE&&n.dispatchEvent(ee)}(e):function(e){let t;switch(e.button){case 0:t=n.mouseButtons.LEFT;break;case 1:t=n.mouseButtons.MIDDLE;break;case 2:t=n.mouseButtons.RIGHT;break;default:t=-1}switch(t){case z.RsA.DOLLY:if(!1===n.enableZoom)return;!function(e){g.set(e.clientX,e.clientY)}(e),o=r.DOLLY;break;case z.RsA.ROTATE:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===n.enablePan)return;j(e),o=r.PAN}else{if(!1===n.enableRotate)return;P(e),o=r.ROTATE}break;case z.RsA.PAN:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===n.enableRotate)return;P(e),o=r.ROTATE}else{if(!1===n.enablePan)return;j(e),o=r.PAN}break;default:o=r.NONE}o!==r.NONE&&n.dispatchEvent(ee)}(e))}function F(e){!1!==n.enabled&&("touch"===e.pointerType?function(e){switch(K(e),o){case r.TOUCH_ROTATE:if(!1===n.enableRotate)return;D(e),n.update();break;case r.TOUCH_PAN:if(!1===n.enablePan)return;L(e),n.update();break;case r.TOUCH_DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;!function(e){n.enableZoom&&N(e),n.enablePan&&L(e)}(e),n.update();break;case r.TOUCH_DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;!function(e){n.enableZoom&&N(e),n.enableRotate&&D(e)}(e),n.update();break;default:o=r.NONE}}(e):function(e){if(!1===n.enabled)return;switch(o){case r.ROTATE:if(!1===n.enableRotate)return;!function(e){f.set(e.clientX,e.clientY),p.subVectors(f,d).multiplyScalar(n.rotateSpeed);const t=n.domElement;k(2*Math.PI*p.x/t.clientHeight),E(2*Math.PI*p.y/t.clientHeight),d.copy(f),n.update()}(e);break;case r.DOLLY:if(!1===n.enableZoom)return;!function(e){y.set(e.clientX,e.clientY),b.subVectors(y,g),b.y>0?M(_()):b.y<0&&S(_()),g.copy(y),n.update()}(e);break;case r.PAN:if(!1===n.enablePan)return;!function(e){v.set(e.clientX,e.clientY),m.subVectors(v,h).multiplyScalar(n.panSpeed),T(m.x,m.y),h.copy(v),n.update()}(e)}}(e))}function H(e){!1!==n.enabled&&(e.pointerType,n.dispatchEvent(te),o=r.NONE,q(e),0===w.length&&(n.domElement.ownerDocument.removeEventListener("pointermove",F),n.domElement.ownerDocument.removeEventListener("pointerup",H)))}function V(e){q(e)}function W(e){!1===n.enabled||!1===n.enableZoom||o!==r.NONE&&o!==r.ROTATE||(e.preventDefault(),n.dispatchEvent(ee),function(e){e.deltaY<0?S(_()):e.deltaY>0&&M(_()),n.update()}(e),n.dispatchEvent(te))}function U(e){!1!==n.enabled&&!1!==n.enablePan&&function(e){let t=!1;switch(e.code){case n.keys.UP:T(0,n.keyPanSpeed),t=!0;break;case n.keys.BOTTOM:T(0,-n.keyPanSpeed),t=!0;break;case n.keys.LEFT:T(n.keyPanSpeed,0),t=!0;break;case n.keys.RIGHT:T(-n.keyPanSpeed,0),t=!0}t&&(e.preventDefault(),n.update())}(e)}function G(e){!1!==n.enabled&&e.preventDefault()}function q(e){delete x[e.pointerId];for(let t=0;t0){const t=this.getContainerDimensions(),n=t.size[0]/2,r=t.size[1]/2;this.moveState.yawLeft=-(e.pageX-t.offset[0]-n)/n,this.moveState.pitchDown=(e.pageY-t.offset[1]-r)/r,this.updateRotationVector()}},this.mouseup=function(e){if(this.dragToLook)this.mouseStatus--,this.moveState.yawLeft=this.moveState.pitchDown=0;else{switch(e.button){case 0:this.moveState.forward=0;break;case 2:this.moveState.back=0}this.updateMovementVector()}this.updateRotationVector()},this.update=function(e){const t=e*n.movementSpeed,a=e*n.rollSpeed;n.object.translateX(n.moveVector.x*t),n.object.translateY(n.moveVector.y*t),n.object.translateZ(n.moveVector.z*t),n.tmpQuaternion.set(n.rotationVector.x*a,n.rotationVector.y*a,n.rotationVector.z*a,1).normalize(),n.object.quaternion.multiply(n.tmpQuaternion),(i.distanceToSquared(n.object.position)>r||8*(1-o.dot(n.object.quaternion))>r)&&(n.dispatchEvent(re),o.copy(n.object.quaternion),i.copy(n.object.position))},this.updateMovementVector=function(){const e=this.moveState.forward||this.autoForward&&!this.moveState.back?1:0;this.moveVector.x=-this.moveState.left+this.moveState.right,this.moveVector.y=-this.moveState.down+this.moveState.up,this.moveVector.z=-e+this.moveState.back},this.updateRotationVector=function(){this.rotationVector.x=-this.moveState.pitchDown+this.moveState.pitchUp,this.rotationVector.y=-this.moveState.yawRight+this.moveState.yawLeft,this.rotationVector.z=-this.moveState.rollRight+this.moveState.rollLeft},this.getContainerDimensions=function(){return this.domElement!=document?{size:[this.domElement.offsetWidth,this.domElement.offsetHeight],offset:[this.domElement.offsetLeft,this.domElement.offsetTop]}:{size:[window.innerWidth,window.innerHeight],offset:[0,0]}},this.dispose=function(){this.domElement.removeEventListener("contextmenu",ie),this.domElement.removeEventListener("mousedown",s),this.domElement.removeEventListener("mousemove",a),this.domElement.removeEventListener("mouseup",u),window.removeEventListener("keydown",c),window.removeEventListener("keyup",l)};const a=this.mousemove.bind(this),s=this.mousedown.bind(this),u=this.mouseup.bind(this),c=this.keydown.bind(this),l=this.keyup.bind(this);this.domElement.addEventListener("contextmenu",ie),this.domElement.addEventListener("mousemove",a),this.domElement.addEventListener("mousedown",s),this.domElement.addEventListener("mouseup",u),window.addEventListener("keydown",c),window.addEventListener("keyup",l),this.updateMovementVector(),this.updateRotationVector()}}function ie(e){e.preventDefault()}var ae={uniforms:{tDiffuse:{value:null},opacity:{value:1}},vertexShader:"\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvUv = uv;\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}",fragmentShader:"\n\n\t\tuniform float opacity;\n\n\t\tuniform sampler2D tDiffuse;\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvec4 texel = texture2D( tDiffuse, vUv );\n\t\t\tgl_FragColor = opacity * texel;\n\n\t\t}"};class se{constructor(){this.enabled=!0,this.needsSwap=!0,this.clear=!1,this.renderToScreen=!1}setSize(){}render(){console.error("THREE.Pass: .render() must be implemented in derived pass.")}}const ue=new z.iKG(-1,1,1,-1,0,1),ce=new z.u9r;ce.setAttribute("position",new z.a$l([-1,3,0,-1,-1,0,3,-1,0],3)),ce.setAttribute("uv",new z.a$l([0,2,0,0,2,0],2));class le{constructor(e){this._mesh=new z.Kj0(ce,e)}dispose(){this._mesh.geometry.dispose()}render(e){e.render(this._mesh,ue)}get material(){return this._mesh.material}set material(e){this._mesh.material=e}}class de extends se{constructor(e,t){super(),this.textureID=void 0!==t?t:"tDiffuse",e instanceof z.jyz?(this.uniforms=e.uniforms,this.material=e):e&&(this.uniforms=z.rDY.clone(e.uniforms),this.material=new z.jyz({defines:Object.assign({},e.defines),uniforms:this.uniforms,vertexShader:e.vertexShader,fragmentShader:e.fragmentShader})),this.fsQuad=new le(this.material)}render(e,t,n){this.uniforms[this.textureID]&&(this.uniforms[this.textureID].value=n.texture),this.fsQuad.material=this.material,this.renderToScreen?(e.setRenderTarget(null),this.fsQuad.render(e)):(e.setRenderTarget(t),this.clear&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),this.fsQuad.render(e))}}class fe extends se{constructor(e,t){super(),this.scene=e,this.camera=t,this.clear=!0,this.needsSwap=!1,this.inverse=!1}render(e,t,n){const r=e.getContext(),o=e.state;let i,a;o.buffers.color.setMask(!1),o.buffers.depth.setMask(!1),o.buffers.color.setLocked(!0),o.buffers.depth.setLocked(!0),this.inverse?(i=0,a=1):(i=1,a=0),o.buffers.stencil.setTest(!0),o.buffers.stencil.setOp(r.REPLACE,r.REPLACE,r.REPLACE),o.buffers.stencil.setFunc(r.ALWAYS,i,4294967295),o.buffers.stencil.setClear(a),o.buffers.stencil.setLocked(!0),e.setRenderTarget(n),this.clear&&e.clear(),e.render(this.scene,this.camera),e.setRenderTarget(t),this.clear&&e.clear(),e.render(this.scene,this.camera),o.buffers.color.setLocked(!1),o.buffers.depth.setLocked(!1),o.buffers.stencil.setLocked(!1),o.buffers.stencil.setFunc(r.EQUAL,1,4294967295),o.buffers.stencil.setOp(r.KEEP,r.KEEP,r.KEEP),o.buffers.stencil.setLocked(!0)}}class pe extends se{constructor(){super(),this.needsSwap=!1}render(e){e.state.buffers.stencil.setLocked(!1),e.state.buffers.stencil.setTest(!1)}}class he{constructor(e,t){if(this.renderer=e,void 0===t){const n={minFilter:z.wem,magFilter:z.wem,format:z.wk1},r=e.getSize(new z.FM8);this._pixelRatio=e.getPixelRatio(),this._width=r.width,this._height=r.height,(t=new z.dd2(this._width*this._pixelRatio,this._height*this._pixelRatio,n)).texture.name="EffectComposer.rt1"}else this._pixelRatio=1,this._width=t.width,this._height=t.height;this.renderTarget1=t,this.renderTarget2=t.clone(),this.renderTarget2.texture.name="EffectComposer.rt2",this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2,this.renderToScreen=!0,this.passes=[],void 0===ae&&console.error("THREE.EffectComposer relies on CopyShader"),void 0===de&&console.error("THREE.EffectComposer relies on ShaderPass"),this.copyPass=new de(ae),this.clock=new z.SUY}swapBuffers(){const e=this.readBuffer;this.readBuffer=this.writeBuffer,this.writeBuffer=e}addPass(e){this.passes.push(e),e.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}insertPass(e,t){this.passes.splice(t,0,e),e.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}removePass(e){const t=this.passes.indexOf(e);-1!==t&&this.passes.splice(t,1)}isLastEnabledPass(e){for(let t=e+1;t=0&&o<1?(s=i,u=a):o>=1&&o<2?(s=a,u=i):o>=2&&o<3?(u=i,c=a):o>=3&&o<4?(u=a,c=i):o>=4&&o<5?(s=a,c=i):o>=5&&o<6&&(s=i,c=a);var l=n-i/2;return r(s+l,u+l,c+l)}var Te={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",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:"ff00ff",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:"639",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"};var Me=/^#[a-fA-F0-9]{6}$/,Se=/^#[a-fA-F0-9]{8}$/,Pe=/^#[a-fA-F0-9]{3}$/,je=/^#[a-fA-F0-9]{4}$/,Ie=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,Ae=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,Re=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,De=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;function Le(e){if("string"!==typeof e)throw new ke(3);var t=function(e){if("string"!==typeof e)return e;var t=e.toLowerCase();return Te[t]?"#"+Te[t]:e}(e);if(t.match(Me))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(Se)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(Pe))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(je)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var o=Ie.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=Ae.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])};var a=Re.exec(t);if(a){var s="rgb("+Ce(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",u=Ie.exec(s);if(!u)throw new ke(4,t,s);return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10)}}var c=De.exec(t.substring(0,50));if(c){var l="rgb("+Ce(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",d=Ie.exec(l);if(!d)throw new ke(4,t,l);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+c[4])}}throw new ke(5)}var Ne=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function Be(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function ze(e,t,n){if("number"===typeof e&&"number"===typeof t&&"number"===typeof n)return Ne("#"+Be(e)+Be(t)+Be(n));if("object"===typeof e&&void 0===t&&void 0===n)return Ne("#"+Be(e.red)+Be(e.green)+Be(e.blue));throw new ke(6)}function Fe(e,t,n,r){if("string"===typeof e&&"number"===typeof t){var o=Le(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"===typeof e&&"number"===typeof t&&"number"===typeof n&&"number"===typeof r)return r>=1?ze(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"===typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?ze(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new ke(7)}function He(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):He(e,t,r)}}function Ve(e){return He(e,e.length,[])}function We(e,t,n){return Math.max(e,Math.min(t,n))}function Ue(e,t){if("transparent"===t)return t;var n=Le(t);return Fe(ge({},n,{alpha:We(0,1,(100*("number"===typeof n.alpha?n.alpha:1)+100*parseFloat(e))/100)}))}var Ge=Ve(Ue);var qe=r(36194);function Ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ze(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){s=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||Xe(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $e(e){return function(e){if(Array.isArray(e))return Ye(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Xe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xe(e,t){if(e){if("string"===typeof e)return Ye(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ye(e,t):void 0}}function Ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=arguments.length,o=new Array(r>3?r-3:0),i=3;i2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,o=e.camera;if(t){var i=new Qe.Vector3(0,0,0),a=2*Math.max.apply(Math,$e(Object.entries(t).map((function(e){var t=Ze(e,2),n=t[0],r=t[1];return Math.max.apply(Math,$e(r.map((function(e){return Math.abs(i[n]-e)}))))})))),s=(1-2*r/e.height)*o.fov,u=a/Math.atan(s*Math.PI/180),c=u/o.aspect,l=Math.max(u,c);if(l>0){var d=i.clone().sub(o.position).normalize().multiplyScalar(-l);this.cameraPosition(d,i,n)}}return this},getBbox:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},n=new Qe.Box3(new Qe.Vector3(0,0,0),new Qe.Vector3(0,0,0)),r=e.objects.filter(t);return r.length?(r.forEach((function(e){return n.expandByObject(e)})),Object.assign.apply(Object,$e(["x","y","z"].map((function(e){return Ke({},e,[n.min[e],n.max[e]])}))))):null},getScreenCoords:function(e,t,n,r){var o=new Qe.Vector3(t,n,r);return o.project(this.camera()),{x:(o.x+1)*e.width/2,y:-(o.y-1)*e.height/2}},getSceneCoords:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=new Qe.Vector2(t/e.width*2-1,-n/e.height*2+1),i=new Qe.Raycaster;return i.setFromCamera(o,e.camera),Object.assign({},i.ray.at(r,new Qe.Vector3))},intersectingObjects:function(e,t,n){var r=new Qe.Vector2(t/e.width*2-1,-n/e.height*2+1),o=new Qe.Raycaster;return o.params.Line.threshold=e.lineHoverPrecision,o.setFromCamera(r,e.camera),o.intersectObjects(e.objects,!0)},renderer:function(e){return e.renderer},scene:function(e){return e.scene},camera:function(e){return e.camera},postProcessingComposer:function(e){return e.postProcessingComposer},controls:function(e){return e.controls},tbControls:function(e){return e.controls}},stateInit:function(){return{scene:new Qe.Scene,camera:new Qe.PerspectiveCamera,clock:new Qe.Clock}},init:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.controlType,o=void 0===r?"trackball":r,i=n.rendererConfig,a=void 0===i?{}:i,s=n.extraRenderers,u=void 0===s?[]:s,c=n.waitForLoadComplete,l=void 0===c||c;e.innerHTML="",e.appendChild(t.container=document.createElement("div")),t.container.className="scene-container",t.container.style.position="relative",t.container.appendChild(t.navInfo=document.createElement("div")),t.navInfo.className="scene-nav-info",t.navInfo.textContent={orbit:"Left-click: rotate, Mouse-wheel/middle-click: zoom, Right-click: pan",trackball:"Left-click: rotate, Mouse-wheel/middle-click: zoom, Right-click: pan",fly:"WASD: move, R|F: up | down, Q|E: roll, up|down: pitch, left|right: yaw"}[o]||"",t.navInfo.style.display=t.showNavInfo?null:"none",t.toolTipElem=document.createElement("div"),t.toolTipElem.classList.add("scene-tooltip"),t.container.appendChild(t.toolTipElem),t.pointerPos=new Qe.Vector2,t.pointerPos.x=-2,t.pointerPos.y=-2,["pointermove","pointerdown"].forEach((function(e){return t.container.addEventListener(e,(function(n){if("pointerdown"===e&&(t.isPointerPressed=!0),!t.isPointerDragging&&"pointermove"===n.type&&(n.pressure>0||t.isPointerPressed)&&("touch"!==n.pointerType||void 0===n.movementX||[n.movementX,n.movementY].some((function(e){return Math.abs(e)>1})))&&(t.isPointerDragging=!0),t.enablePointerInteraction){var r=function(e){var t=e.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,r=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+r,left:t.left+n}}(t.container);t.pointerPos.x=n.pageX-r.left,t.pointerPos.y=n.pageY-r.top,t.toolTipElem.style.top="".concat(t.pointerPos.y,"px"),t.toolTipElem.style.left="".concat(t.pointerPos.x,"px"),t.toolTipElem.style.transform="translate(-".concat(t.pointerPos.x/t.width*100,"%, 21px)")}}),{passive:!0})})),t.container.addEventListener("pointerup",(function(e){t.isPointerPressed=!1,t.isPointerDragging&&(t.isPointerDragging=!1,!t.clickAfterDrag)||requestAnimationFrame((function(){0===e.button&&t.onClick(t.hoverObj||null,e,t.intersectionPoint),2===e.button&&t.onRightClick&&t.onRightClick(t.hoverObj||null,e,t.intersectionPoint)}))}),{passive:!0,capture:!0}),t.container.addEventListener("contextmenu",(function(e){t.onRightClick&&e.preventDefault()})),t.renderer=new Qe.WebGLRenderer(Object.assign({antialias:!0,alpha:!0},a)),t.renderer.setPixelRatio(Math.min(2,window.devicePixelRatio)),t.container.appendChild(t.renderer.domElement),t.extraRenderers=u,t.extraRenderers.forEach((function(e){e.domElement.style.position="absolute",e.domElement.style.top="0px",e.domElement.style.pointerEvents="none",t.container.appendChild(e.domElement)})),t.postProcessingComposer=new he(t.renderer),t.postProcessingComposer.addPass(new me(t.scene,t.camera)),t.controls=new{trackball:Q,orbit:ne,fly:oe}[o](t.camera,t.renderer.domElement),"fly"===o&&(t.controls.movementSpeed=300,t.controls.rollSpeed=Math.PI/6,t.controls.dragToLook=!0),"trackball"!==o&&"orbit"!==o||(t.controls.minDistance=.1,t.controls.maxDistance=t.skyRadius,t.controls.addEventListener("start",(function(){t.controlsEngaged=!0})),t.controls.addEventListener("change",(function(){t.controlsEngaged&&(t.controlsDragging=!0)})),t.controls.addEventListener("end",(function(){t.controlsEngaged=!1,t.controlsDragging=!1}))),[t.renderer,t.postProcessingComposer].concat($e(t.extraRenderers)).forEach((function(e){return e.setSize(t.width,t.height)})),t.camera.aspect=t.width/t.height,t.camera.updateProjectionMatrix(),t.camera.position.z=1e3,t.scene.add(t.skysphere=new Qe.Mesh),t.skysphere.visible=!1,t.loadComplete=t.scene.visible=!l,window.scene=t.scene},update:function(e,t){if(e.width&&e.height&&(t.hasOwnProperty("width")||t.hasOwnProperty("height"))&&(e.container.style.width=e.width,e.container.style.height=e.height,[e.renderer,e.postProcessingComposer].concat($e(e.extraRenderers)).forEach((function(t){return t.setSize(e.width,e.height)})),e.camera.aspect=e.width/e.height,e.camera.updateProjectionMatrix()),t.hasOwnProperty("skyRadius")&&e.skyRadius&&(e.controls.hasOwnProperty("maxDistance")&&t.skyRadius&&(e.controls.maxDistance=e.skyRadius),e.camera.far=2.5*e.skyRadius,e.camera.updateProjectionMatrix(),e.skysphere.geometry=new Qe.SphereGeometry(e.skyRadius)),t.hasOwnProperty("backgroundColor")){var n=Le(e.backgroundColor).alpha;void 0===n&&(n=1),e.renderer.setClearColor(new Qe.Color(Ge(1,e.backgroundColor)),n)}function r(){e.loadComplete=e.scene.visible=!0}t.hasOwnProperty("backgroundImageUrl")&&(e.backgroundImageUrl?(new Qe.TextureLoader).load(e.backgroundImageUrl,(function(t){e.skysphere.material=new Qe.MeshBasicMaterial({map:t,side:Qe.BackSide}),e.skysphere.visible=!0,e.onBackgroundImageLoaded&&setTimeout(e.onBackgroundImageLoaded),!e.loadComplete&&r()})):(e.skysphere.visible=!1,e.skysphere.material.map=null,!e.loadComplete&&r())),t.hasOwnProperty("showNavInfo")&&(e.navInfo.style.display=e.showNavInfo?null:"none"),t.hasOwnProperty("objects")&&((t.objects||[]).forEach((function(t){return e.scene.remove(t)})),e.objects.forEach((function(t){return e.scene.add(t)})))}});function et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tt(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?o-1:0),a=1;a3?o-3:0),a=3;at?1:e>=t?0:NaN}function Dt(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return Lt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lt(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Bt.hasOwnProperty(t)?{space:Bt[t],local:e}:e}function Ft(e){return function(){this.removeAttribute(e)}}function Ht(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Vt(e,t){return function(){this.setAttribute(e,t)}}function Wt(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Ut(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function Gt(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function qt(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Kt(e){return function(){this.style.removeProperty(e)}}function Zt(e,t,n){return function(){this.style.setProperty(e,t,n)}}function $t(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Xt(e,t){return e.style.getPropertyValue(t)||qt(e).getComputedStyle(e,null).getPropertyValue(t)}function Yt(e){return function(){delete this[e]}}function Qt(e,t){return function(){this[e]=t}}function Jt(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function en(e){return e.trim().split(/^|\s+/)}function tn(e){return e.classList||new nn(e)}function nn(e){this._node=e,this._names=en(e.getAttribute("class")||"")}function rn(e,t){for(var n=tn(e),r=-1,o=t.length;++r=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function On(e){return function(){var t=this.__on;if(t){for(var n,r=0,o=-1,i=t.length;r=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var Pn=r(87757),jn=r.n(Pn),In=jn().mark(An);function An(){var e,t,n,r,o,i,a;return jn().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:e=this._groups,t=0,n=e.length;case 1:if(!(t=x&&(x=w+1);!(b=m[x])&&++x=0;)(r=o[i])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=Rt);for(var n=this._groups,r=n.length,o=new Array(r),i=0;i1?this.each((null==t?Kt:"function"===typeof t?$t:Zt)(e,t,null==n?"":n)):Xt(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Yt:"function"===typeof t?Jt:Qt)(e,t)):this.node()[e]},classed:function(e,t){var n=en(e+"");if(arguments.length<2){for(var r=tn(this.node()),o=-1,i=n.length;++o0)throw new Error("too late; already scheduled");return n}function tr(e,t){var n=nr(e,t);if(n.state>3)throw new Error("too late; already running");return n}function nr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function rr(e,t){var n,r,o,i=e.__transition,a=!0;if(i){for(o in t=null==t?null:t+"",i)(n=i[o]).name===t?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete i[o]):a=!1;a&&delete e.__transition}}var or,ir=r(16033),ar=180/Math.PI,sr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ur(e,t,n,r,o,i){var a,s,u;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r180?t+=360:t-e>180&&(e+=360),i.push({i:n.push(o(n)+"rotate(",null,r)-2,x:(0,ir.Z)(e,t)})):t&&n.push(o(n)+"rotate("+t+r)}(i.rotate,a.rotate,s,u),function(e,t,n,i){e!==t?i.push({i:n.push(o(n)+"skewX(",null,r)-2,x:(0,ir.Z)(e,t)}):t&&n.push(o(n)+"skewX("+t+r)}(i.skewX,a.skewX,s,u),function(e,t,n,r,i,a){if(e!==n||t!==r){var s=i.push(o(i)+"scale(",null,",",null,")");a.push({i:s-4,x:(0,ir.Z)(e,n)},{i:s-2,x:(0,ir.Z)(t,r)})}else 1===n&&1===r||i.push(o(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,a.scaleX,a.scaleY,s,u),i=a=null,function(e){for(var t,n=-1,r=u.length;++n=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?er:tr;return function(){var a=i(this,e),s=a.on;s!==r&&(o=(r=s).copy()).on(t,n),a.on=o}}var Dr=Nn.prototype.constructor;function Lr(e){return function(){this.style.removeProperty(e)}}function Nr(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Br(e,t,n){var r,o;function i(){var i=t.apply(this,arguments);return i!==o&&(r=(o=i)&&Nr(e,i,n)),r}return i._value=t,i}function zr(e){return function(t){this.textContent=e.call(this,t)}}function Fr(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&zr(r)),t}return r._value=e,r}var Hr=0;function Vr(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Wr(){return++Hr}var Ur=Nn.prototype;Vr.prototype=function(e){return Nn().transition(e)}.prototype=(0,vt.Z)({constructor:Vr,select:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=gt(e));for(var r=this._groups,o=r.length,i=new Array(o),a=0;ar?(r+o)/2:Math.min(0,r)||Math.max(0,o),a>i?(i+a)/2:Math.min(0,i)||Math.max(0,a))}function ao(){var e,t,n,r=eo,o=to,i=io,a=ro,s=oo,u=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],l=250,d=Kn,f=(0,zn.Z)("start","zoom","end"),p=500,h=0,v=10;function m(e){e.property("__zoom",no).on("wheel.zoom",k,{passive:!1}).on("mousedown.zoom",E).on("dblclick.zoom",O).filter(s).on("touchstart.zoom",C).on("touchmove.zoom",T).on("touchend.zoom touchcancel.zoom",M).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(e,t){return(t=Math.max(u[0],Math.min(u[1],t)))===e.k?e:new $r(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k;return r===e.x&&o===e.y?e:new $r(e.k,r,o)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function w(e,t,n,r){e.on("start.zoom",(function(){x(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){x(this,arguments).event(r).end()})).tween("zoom",(function(){var e=this,i=arguments,a=x(e,i).event(r),s=o.apply(e,i),u=null==n?b(s):"function"===typeof n?n.apply(e,i):n,c=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),l=e.__zoom,f="function"===typeof t?t.apply(e,i):t,p=d(l.invert(u).concat(c/l.k),f.invert(u).concat(c/f.k));return function(e){if(1===e)e=f;else{var t=p(e),n=c/t[2];e=new $r(n,u[0]-t[0]*n,u[1]-t[1]*n)}a.zoom(null,e)}}))}function x(e,t,n){return!n&&e.__zooming||new _(e,t)}function _(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=o.apply(e,t),this.taps=0}function k(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o1?t-1:0),a=1;ah}u.event(e).zoom("mouse",i(y(u.that.__zoom,u.mouse[0]=Zn(e,s),u.mouse[1]),u.extent,c))}function m(e){l.on("mousemove.zoom mouseup.zoom",null),Gn(e.view,u.moved),Jr(e),u.event(e).end()}}function O(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a0?Bn(this).transition().duration(l).call(w,p,u,e):Bn(this).call(m.transform,p,u,e)}}function C(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a1?t-1:0),r=1;r1?r-1:0),i=1;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:6;wo(this,e),this.csBits=t,this.registry=["__reserved for background__"]}var t,n,r;return t=e,(n=[{key:"register",value:function(e){if(this.registry.length>=Math.pow(2,24-this.csBits))return null;var t,n=this.registry.length,r=Oo(n,this.csBits),o=(t=n+(r<<24-this.csBits),"#".concat(Math.min(t,Math.pow(2,24)).toString(16).padStart(6,"0")));return this.registry.push(e),o}},{key:"lookup",value:function(e){var t="string"===typeof e?function(e){var t=bo()(e).toRgb(),n=t.r,r=t.g,o=t.b;return Eo(n,r,o)}(e):Eo.apply(void 0,_o(e));if(!t)return null;var n=t&Math.pow(2,24-this.csBits)-1,r=t>>24-this.csBits&Math.pow(2,this.csBits)-1;return Oo(n,this.csBits)!==r||n>=this.registry.length?null:this.registry[n]}}])&&xo(t.prototype,n),r&&xo(t,r),e}(),To=r(54505),Mo=r(15560),So=r(92405),Po=r(20216),jo=r(16917);const{abs:Io,cos:Ao,sin:Ro,acos:Do,atan2:Lo,sqrt:No,pow:Bo}=Math;function zo(e){return e<0?-Bo(-e,1/3):Bo(e,1/3)}const Fo=Math.PI,Ho=2*Fo,Vo=Fo/2,Wo=Number.MAX_SAFE_INTEGER||9007199254740991,Uo=Number.MIN_SAFE_INTEGER||-9007199254740991,Go={x:0,y:0,z:0},qo={Tvalues:[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213],Cvalues:[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872],arcfn:function(e,t){const n=t(e);let r=n.x*n.x+n.y*n.y;return"undefined"!==typeof n.z&&(r+=n.z*n.z),No(r)},compute:function(e,t,n){if(0===e)return t[0].t=0,t[0];const r=t.length-1;if(1===e)return t[r].t=1,t[r];const o=1-e;let i=t;if(0===r)return t[0].t=e,t[0];if(1===r){const t={x:o*i[0].x+e*i[1].x,y:o*i[0].y+e*i[1].y,t:e};return n&&(t.z=o*i[0].z+e*i[1].z),t}if(r<4){let t,a,s,u=o*o,c=e*e,l=0;2===r?(i=[i[0],i[1],i[2],Go],t=u,a=o*e*2,s=c):3===r&&(t=u*o,a=u*e*3,s=o*c*3,l=e*c);const d={x:t*i[0].x+a*i[1].x+s*i[2].x+l*i[3].x,y:t*i[0].y+a*i[1].y+s*i[2].y+l*i[3].y,t:e};return n&&(d.z=t*i[0].z+a*i[1].z+s*i[2].z+l*i[3].z),d}const a=JSON.parse(JSON.stringify(t));for(;a.length>1;){for(let t=0;t1;o--,i--){const e=[];for(let n,o=0;oi.x.min&&(t=i.x.min),n>i.y.min&&(n=i.y.min),r0&&(a.c1=t,a.c2=r,a.s1=e,a.s2=n,i.push(a))}))})),i},makeshape:function(e,t,n){const r=t.points.length,o=e.points.length,i=qo.makeline(t.points[r-1],e.points[0]),a=qo.makeline(e.points[o-1],t.points[0]),s={startcap:i,forward:e,back:t,endcap:a,bbox:qo.findbbox([i,e,t,a]),intersections:function(e){return qo.shapeintersections(s,s.bbox,e,e.bbox,n)}};return s},getminmax:function(e,t,n){if(!n)return{min:0,max:0};let r,o,i=Wo,a=Uo;-1===n.indexOf(0)&&(n=[0].concat(n)),-1===n.indexOf(1)&&n.push(1);for(let s=0,u=n.length;sa&&(a=o[t]);return{min:i,mid:(i+a)/2,max:a,size:a-i}},align:function(e,t){const n=t.p1.x,r=t.p1.y,o=-Lo(t.p2.y-r,t.p2.x-n);return e.map((function(e){return{x:(e.x-n)*Ao(o)-(e.y-r)*Ro(o),y:(e.x-n)*Ro(o)+(e.y-r)*Ao(o)}}))},roots:function(e,t){t=t||{p1:{x:0,y:0},p2:{x:1,y:0}};const n=e.length-1,r=qo.align(e,t),o=function(e){return 0<=e&&e<=1};if(2===n){const e=r[0].y,t=r[1].y,n=r[2].y,i=e-2*t+n;if(0!==i){const r=-No(t*t-e*n),a=-e+t;return[-(r+a)/i,-(-r+a)/i].filter(o)}return t!==n&&0===i?[(2*t-n)/(2*t-2*n)].filter(o):[]}const i=r[0].y,a=r[1].y,s=r[2].y;let u=3*a-i-3*s+r[3].y,c=3*i-6*a+3*s,l=-3*i+3*a,d=i;if(qo.approximately(u,0)){if(qo.approximately(c,0))return qo.approximately(l,0)?[]:[-d/l].filter(o);const e=No(l*l-4*c*d),t=2*c;return[(e-l)/t,(-l-e)/t].filter(o)}c/=u,l/=u,d/=u;const f=(3*l-c*c)/3,p=f/3,h=(2*c*c*c-9*c*l+27*d)/27,v=h/2,m=v*v+p*p*p;let g,y,b,w,x;if(m<0){const e=-f/3,t=No(e*e*e),n=-h/(2*t),r=Do(n<-1?-1:n>1?1:n),i=2*zo(t);return b=i*Ao(r/3)-c/3,w=i*Ao((r+Ho)/3)-c/3,x=i*Ao((r+2*Ho)/3)-c/3,[b,w,x].filter(o)}if(0===m)return g=v<0?zo(-v):-zo(v),b=2*g-c/3,w=-g-c/3,[b,w].filter(o);{const e=No(m);return g=zo(-v+e),y=zo(v+e),[g-y-c/3].filter(o)}},droots:function(e){if(3===e.length){const t=e[0],n=e[1],r=e[2],o=t-2*n+r;if(0!==o){const e=-No(n*n-t*r),i=-t+n;return[-(e+i)/o,-(-e+i)/o]}return n!==r&&0===o?[(2*n-r)/(2*(n-r))]:[]}if(2===e.length){const t=e[0],n=e[1];return t!==n?[t/(t-n)]:[]}return[]},curvature:function(e,t,n,r,o){let i,a,s,u,c=0,l=0;const d=qo.compute(e,t),f=qo.compute(e,n),p=d.x*d.x+d.y*d.y;if(r?(i=No(Bo(d.y*f.z-f.y*d.z,2)+Bo(d.z*f.x-f.z*d.x,2)+Bo(d.x*f.y-f.x*d.y,2)),a=Bo(p+d.z*d.z,1.5)):(i=d.x*f.y-d.y*f.x,a=Bo(p,1.5)),0===i||0===a)return{k:0,r:0};if(c=i/a,l=a/i,!o){const o=qo.curvature(e-.001,t,n,r,!0).k,i=qo.curvature(e+.001,t,n,r,!0).k;u=(i-c+(c-o))/2,s=(Io(i-c)+Io(c-o))/2}return{k:c,r:l,dk:u,adk:s}},inflections:function(e){if(e.length<4)return[];const t=qo.align(e,{p1:e[0],p2:e.slice(-1)[0]}),n=t[2].x*t[1].y,r=t[3].x*t[1].y,o=t[1].x*t[2].y,i=18*(-3*n+2*r+3*o-t[3].x*t[2].y),a=18*(3*n-r-3*o),s=18*(o-n);if(qo.approximately(i,0)){if(!qo.approximately(a,0)){let e=-s/a;if(0<=e&&e<=1)return[e]}return[]}const u=a*a-4*i*s,c=Math.sqrt(u),l=2*i;return qo.approximately(l,0)?[]:[(c-a)/l,-(a+c)/l].filter((function(e){return 0<=e&&e<=1}))},bboxoverlap:function(e,t){const n=["x","y"],r=n.length;for(let o,i,a,s,u=0;u=s)return!1;return!0},expandbox:function(e,t){t.x.mine.x.max&&(e.x.max=t.x.max),t.y.max>e.y.max&&(e.y.max=t.y.max),t.z&&t.z.max>e.z.max&&(e.z.max=t.z.max),e.x.mid=(e.x.min+e.x.max)/2,e.y.mid=(e.y.min+e.y.max)/2,e.z&&(e.z.mid=(e.z.min+e.z.max)/2),e.x.size=e.x.max-e.x.min,e.y.size=e.y.max-e.y.min,e.z&&(e.z.size=e.z.max-e.z.min)},pairiteration:function(e,t,n){const r=e.bbox(),o=t.bbox(),i=1e5,a=n||.5;if(r.x.size+r.y.sizek||k>E)&&(_+=Ho),_>E&&(x=E,E=_,_=x)):E4){if(1!==arguments.length)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");r=!0}}else if(6!==o&&8!==o&&9!==o&&12!==o&&1!==arguments.length)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");const i=this._3d=!r&&(9===o||12===o)||e&&e[0]&&"undefined"!==typeof e[0].z,a=this.points=[];for(let d=0,f=i?3:2;dZo(e.y)>1e-4)),this._lut=[],this._t1=0,this._t2=1,this.update()}static quadraticFromPoints(e,t,n,r){if("undefined"===typeof r&&(r=.5),0===r)return new ni(t,t,n);if(1===r)return new ni(e,t,t);const o=ni.getABC(2,e,t,n,r);return new ni(e,o.A,n)}static cubicFromPoints(e,t,n,r,o){"undefined"===typeof r&&(r=.5);const i=ni.getABC(3,e,t,n,r);"undefined"===typeof o&&(o=qo.dist(t,i.C));const a=o*(1-r)/r,s=qo.dist(e,n),u=(n.x-e.x)/s,c=(n.y-e.y)/s,l=o*u,d=o*c,f=a*u,p=a*c,h=t.x-l,v=t.y-d,m=t.x+f,g=t.y+p,y=i.A,b=y.x+(h-y.x)/(1-r),w=y.y+(v-y.y)/(1-r),x=y.x+(m-y.x)/r,_=y.y+(g-y.y)/r,k={x:e.x+(b-e.x)/r,y:e.y+(w-e.y)/r},E={x:n.x+(x-n.x)/(1-r),y:n.y+(_-n.y)/(1-r)};return new ni(e,k,E,n)}static getUtils(){return qo}getUtils(){return ni.getUtils()}static get PolyBezier(){return Ko}valueOf(){return this.toString()}toString(){return qo.pointsToString(this.points)}toSVG(){if(this._3d)return!1;const e=this.points,t=["M",e[0].x,e[0].y,2===this.order?"Q":"C"];for(let n=1,r=e.length;n0}length(){return qo.length(this.derivative.bind(this))}static getABC(e=2,t,n,r,o=.5){const i=qo.projectionratio(o,e),a=1-i,s={x:i*t.x+a*r.x,y:i*t.y+a*r.y},u=qo.abcratio(o,e);return{A:{x:n.x+(n.x-s.x)/u,y:n.y+(n.y-s.y)/u},B:n,C:s,S:t,E:r}}getABC(e,t){t=t||this.get(e);let n=this.points[0],r=this.points[this.order];return ni.getABC(this.order,n,t,r,e)}getLUT(e){if(this.verify(),e=e||100,this._lut.length===e)return this._lut;this._lut=[],e--;for(let t,n,r=0;r1?1:f,u=this.compute(f),u.t=f,u.d=l,u}get(e){return this.compute(e)}point(e){return this.points[e]}compute(e){return this.ratios?qo.computeWithRatios(e,this.points,this.ratios,this._3d):qo.compute(e,this.points,this._3d,this.ratios)}raise(){const e=this.points,t=[e[0]],n=e.length;for(let r,o,i=1;i1;){n=[];for(let i,a=0,s=t.length-1;a=0&&e<=1})),t=t.concat(e[n].sort(qo.numberSort))}.bind(this)),e.values=t.sort(qo.numberSort).filter((function(e,n){return t.indexOf(e)===n})),e}bbox(){const e=this.extrema(),t={};return this.dims.forEach(function(n){t[n]=qo.getminmax(this,n,e[n])}.bind(this)),t}overlaps(e){const t=this.bbox(),n=e.bbox();return qo.bboxoverlap(t,n)}offset(e,t){if("undefined"!==typeof t){const n=this.get(e),r=this.normal(e),o={c:n,n:r,x:n.x+r.x*t,y:n.y+r.y*t};return this._3d&&(o.z=n.z+r.z*t),o}if(this._linear){const t=this.normal(0),n=this.points.map((function(n){const r={x:n.x+e*t.x,y:n.y+e*t.y};return n.z&&t.z&&(r.z=n.z+e*t.z),r}));return[new ni(n)]}return this.reduce().map((function(t){return t._linear?t.offset(e)[0]:t.scale(e)}))}simple(){if(3===this.order){const e=qo.angle(this.points[0],this.points[3],this.points[1]),t=qo.angle(this.points[0],this.points[3],this.points[2]);if(e>0&&t<0||e<0&&t>0)return!1}const e=this.normal(0),t=this.normal(1);let n=e.x*t.x+e.y*t.y;return this._3d&&(n+=e.z*t.z),Zo(Jo(n)){if(2===t&&e)return;const n=u[e*t],r=this.derivative(e),o={x:n.x+r.x,y:n.y+r.y};u[e+1]=qo.lli4(n,o,c,s[e+1])})),new ni(u))}outline(e,t,n,r){t="undefined"===typeof t?e:t;const o=this.reduce(),i=o.length,a=[];let s,u=[],c=0,l=this.length();const d="undefined"!==typeof n&&"undefined"!==typeof r;function f(e,t,n,r,o){return function(i){const a=r/n,s=(r+o)/n,u=t-e;return qo.map(i,0,1,e+a*u,e+s*u)}}o.forEach((function(o){const i=o.length();d?(a.push(o.scale(f(e,n,l,c,i))),u.push(o.scale(f(-t,-r,l,c,i)))):(a.push(o.scale(e)),u.push(o.scale(-t))),c+=i})),u=u.map((function(e){return s=e.points,s[3]?e.points=[s[3],s[2],s[1],s[0]]:e.points=[s[2],s[1],s[0]],e})).reverse();const p=a[0].points[0],h=a[i-1].points[a[i-1].points.length-1],v=u[i-1].points[u[i-1].points.length-1],m=u[0].points[0],g=qo.makeline(v,p),y=qo.makeline(h,m),b=[g].concat(a).concat([y]).concat(u);b.length;return new Ko(b)}outlineshapes(e,t,n){t=t||e;const r=this.outline(e,t).curves,o=[];for(let i=1,a=r.length;i1,e.endcap.virtual=i{var i=this.get(e);return qo.between(i.x,t,r)&&qo.between(i.y,n,o)}))}selfintersects(e){const t=this.reduce(),n=t.length-2,r=[];for(let o,i,a,s=0;s0&&(o=o.concat(t))})),o}arcs(e){return e=e||.5,this._iterate(e,[])}_error(e,t,n,r){const o=(r-n)/4,i=this.get(n+o),a=this.get(r-o),s=qo.dist(e,t),u=qo.dist(e,i),c=qo.dist(e,a);return Zo(u-s)+Zo(c-s)}_iterate(e,t){let n,r=0,o=1;do{n=0,o=1;let i,a,s,u,c,l=this.get(r),d=!1,f=!1,p=o,h=1,v=0;do{if(f=d,u=s,p=(r+o)/2,v++,i=this.get(p),a=this.get(o),s=qo.getccenter(l,i,a),s.interval={start:r,end:o},d=this._error(s,l,r,o)<=e,c=f&&!d,c||(h=o),d){if(o>=1){if(s.interval.end=h=1,u=s,o>1){let e={x:s.x+s.r*Yo(s.e),y:s.y+s.r*Qo(s.e)};s.e+=qo.angle({x:s.x,y:s.y},e,this.get(1))}break}o+=(o-r)/2}else o=p}while(!c&&n++<100);if(n>=100)break;u=u||s,t.push(u),r=h}while(o<1);return t}}var ri=r(1527),oi=r(72462),ii=r(47646);function ai(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function si(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.cooldownTicks||new Date-e.startTickTime>e.cooldownTime||e.d3AlphaMin>0&&e.forceLayout.alpha()0){var a=Math.atan2(r.y-n.y,r.x-n.x),s=o*t,u={x:(n.x+r.x)/2+s*Math.cos(a-Math.PI/2),y:(n.y+r.y)/2+s*Math.sin(a-Math.PI/2)};e.__controlPoints=[u.x,u.y]}else{var c=70*t;e.__controlPoints=[r.x,r.y-c,r.x+c,r.y]}}));var l=[],d=[],f=c;if(e.linkCanvasObject){var p=[],h=[];c.forEach((function(e){return({before:l,after:d,replace:p}[a(e)]||h).push(e)})),f=[].concat(hi(l),d,h),l=l.concat(p)}s.save(),l.forEach((function(t){return e.linkCanvasObject(t,s,e.globalScale)})),s.restore();var v=(0,ri.Z)(f,[n,r,o]);s.save(),Object.entries(v).forEach((function(t){var n=pi(t,2),r=n[0],i=n[1],a=r&&"undefined"!==r?r:"rgba(0,0,0,0.15)";Object.entries(i).forEach((function(t){var n=pi(t,2),r=n[0],i=n[1],c=(r||1)/e.globalScale+u;Object.entries(i).forEach((function(e){var t=pi(e,2);t[0];var n=t[1],r=o(n[0]);s.beginPath(),n.forEach((function(e){var t=e.source,n=e.target;if(t&&n&&t.hasOwnProperty("x")&&n.hasOwnProperty("x")){s.moveTo(t.x,t.y);var r=e.__controlPoints;r?s[2===r.length?"quadraticCurveTo":"bezierCurveTo"].apply(s,hi(r).concat([n.x,n.y])):s.lineTo(n.x,n.y)}})),s.strokeStyle=a,s.lineWidth=c,s.setLineDash(r||[]),s.stroke()}))}))})),s.restore(),s.save(),d.forEach((function(t){return e.linkCanvasObject(t,s,e.globalScale)})),s.restore()}(),!e.isShadow&&function(){var t=(0,w.default)(e.linkDirectionalArrowLength),n=(0,w.default)(e.linkDirectionalArrowRelPos),r=(0,w.default)(e.linkVisibility),o=(0,w.default)(e.linkDirectionalArrowColor||e.linkColor),i=(0,w.default)(e.nodeVal),a=e.ctx;a.save(),e.graphData.links.filter(r).forEach((function(r){var s=t(r);if(s&&!(s<0)){var u=r.source,c=r.target;if(u&&c&&u.hasOwnProperty("x")&&c.hasOwnProperty("x")){var l=Math.sqrt(Math.max(0,i(u)||1))*e.nodeRelSize,d=Math.sqrt(Math.max(0,i(c)||1))*e.nodeRelSize,f=Math.min(1,Math.max(0,n(r))),p=o(r)||"rgba(0,0,0,0.28)",h=s/1.6/2,v=r.__controlPoints&&fi(ni,[u.x,u.y].concat(hi(r.__controlPoints),[c.x,c.y])),m=v?function(e){return v.get(e)}:function(e){return{x:u.x+(c.x-u.x)*e||0,y:u.y+(c.y-u.y)*e||0}},g=v?v.length():Math.sqrt(Math.pow(c.x-u.x,2)+Math.pow(c.y-u.y,2)),y=l+s+(g-l-d-s)*f,b=m(y/g),w=m((y-s)/g),x=m((y-.8*s)/g),_=Math.atan2(b.y-w.y,b.x-w.x)-Math.PI/2;a.beginPath(),a.moveTo(b.x,b.y),a.lineTo(w.x+h*Math.cos(_),w.y+h*Math.sin(_)),a.lineTo(x.x,x.y),a.lineTo(w.x-h*Math.cos(_),w.y-h*Math.sin(_)),a.fillStyle=p,a.fill()}}})),a.restore()}(),!e.isShadow&&function(){var t=(0,w.default)(e.linkDirectionalParticles),n=(0,w.default)(e.linkDirectionalParticleSpeed),r=(0,w.default)(e.linkDirectionalParticleWidth),o=(0,w.default)(e.linkVisibility),i=(0,w.default)(e.linkDirectionalParticleColor||e.linkColor),a=e.ctx;a.save(),e.graphData.links.filter(o).forEach((function(o){var s=t(o);if(o.hasOwnProperty("__photons")&&o.__photons.length){var u=o.source,c=o.target;if(u&&c&&u.hasOwnProperty("x")&&c.hasOwnProperty("x")){var l=n(o),d=o.__photons||[],f=Math.max(0,r(o)/2)/Math.sqrt(e.globalScale),p=i(o)||"rgba(0,0,0,0.28)";a.fillStyle=p;var h=o.__controlPoints?fi(ni,[u.x,u.y].concat(hi(o.__controlPoints),[c.x,c.y])):null,v=0,m=!1;d.forEach((function(e){var t=!!e.__singleHop;if(e.hasOwnProperty("__progressRatio")||(e.__progressRatio=t?0:v/s),!t&&v++,e.__progressRatio+=l,e.__progressRatio>=1){if(t)return void(m=!0);e.__progressRatio=e.__progressRatio%1}var n=e.__progressRatio,r=h?h.get(n):{x:u.x+(c.x-u.x)*n||0,y:u.y+(c.y-u.y)*n||0};a.beginPath(),a.arc(r.x,r.y,f,0,2*Math.PI,!1),a.fill()})),m&&(o.__photons=o.__photons.filter((function(e){return!e.__singleHop||e.__progressRatio<=1})))}}})),a.restore()}(),function(){var t=(0,w.default)(e.nodeVisibility),n=(0,w.default)(e.nodeVal),r=(0,w.default)(e.nodeColor),o=(0,w.default)(e.nodeCanvasObjectMode),i=e.ctx,a=e.isShadow/e.globalScale,s=e.graphData.nodes.filter(t);i.save(),s.forEach((function(t){var s=o(t);if(!e.nodeCanvasObject||"before"!==s&&"replace"!==s||(e.nodeCanvasObject(t,i,e.globalScale),"replace"!==s)){var u=Math.sqrt(Math.max(0,n(t)||1))*e.nodeRelSize+a;i.beginPath(),i.arc(t.x,t.y,u,0,2*Math.PI,!1),i.fillStyle=r(t)||"rgba(31, 120, 180, 0.92)",i.fill(),e.nodeCanvasObject&&"after"===s&&e.nodeCanvasObject(t,e.ctx,e.globalScale)}else i.restore()})),i.restore()}(),this},emitParticle:function(e,t){return t&&(!t.__photons&&(t.__photons=[]),t.__photons.push({__singleHop:!0})),this}},stateInit:function(){return{forceLayout:(0,To.Z)().force("link",(0,Mo.Z)()).force("charge",(0,So.Z)()).force("center",(0,Po.Z)()).force("dagRadial",null).stop(),engineRunning:!1}},init:function(e,t){t.ctx=e},update:function(e){if(e.engineRunning=!1,e.onUpdate(),null!==e.nodeAutoColorBy&&yi(e.graphData.nodes,(0,w.default)(e.nodeAutoColorBy),e.nodeColor),null!==e.linkAutoColorBy&&yi(e.graphData.links,(0,w.default)(e.linkAutoColorBy),e.linkColor),e.graphData.links.forEach((function(t){t.source=t[e.linkSource],t.target=t[e.linkTarget]})),!e.isShadow){var t=(0,w.default)(e.linkDirectionalParticles);e.graphData.links.forEach((function(e){var n=Math.round(Math.abs(t(e)));n?e.__photons=hi(Array(n)).map((function(){return{}})):delete e.__photons}))}e.forceLayout.stop().alpha(1).nodes(e.graphData.nodes);var n=e.forceLayout.force("link");n&&n.id((function(t){return t[e.nodeId]})).links(e.graphData.links);var r=e.dagMode&&function(e,t){var n=e.nodes,r=e.links,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=o.nodeFilter,a=void 0===i?function(){return!0}:i,s=o.onLoopError,u=void 0===s?function(e){throw"Invalid DAG structure! Found cycle in node path: ".concat(e.join(" -> "),".")}:s,c={};n.forEach((function(e){return c[t(e)]={data:e,out:[],depth:-1,skip:!a(e)}})),r.forEach((function(e){var n=e.source,r=e.target,o=u(n),i=u(r);if(!c.hasOwnProperty(o))throw"Missing source node with id: ".concat(o);if(!c.hasOwnProperty(i))throw"Missing target node with id: ".concat(i);var a=c[o],s=c[i];function u(e){return"object"===ui(e)?t(e):e}a.out.push(s)}));var l=[];return d(Object.values(c)),Object.assign.apply(Object,[{}].concat(hi(Object.entries(c).filter((function(e){return!pi(e,2)[1].skip})).map((function(e){var t=pi(e,2);return ci({},t[0],t[1].depth)})))));function d(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=0,i=e.length;oa.depth&&(a.depth=r,d(a.out,[].concat(hi(n),[a]),r+(a.skip?0:1)))}}}(e.graphData,(function(t){return t[e.nodeId]}),{nodeFilter:e.dagNodeFilter,onLoopError:e.onDagError||void 0}),o=Math.max.apply(Math,hi(Object.values(r||[]))),i=e.dagLevelDistance||e.graphData.nodes.length/(o||1)*2*(-1!==["radialin","radialout"].indexOf(e.dagMode)?.7:1);if(e.dagMode){var a=function(t,n){return function(a){return t?(r[a[e.nodeId]]-o/2)*i*(n?-1:1):void 0}},s=a(-1!==["lr","rl"].indexOf(e.dagMode),"rl"===e.dagMode),u=a(-1!==["td","bu"].indexOf(e.dagMode),"bu"===e.dagMode);e.graphData.nodes.filter(e.dagNodeFilter).forEach((function(e){e.fx=s(e),e.fy=u(e)}))}e.forceLayout.force("dagRadial",-1!==["radialin","radialout"].indexOf(e.dagMode)?(0,jo.Z)((function(t){var n=r[t[e.nodeId]]||-1;return("radialin"===e.dagMode?o-n:n)*i})).strength((function(t){return e.dagNodeFilter(t)?1:0})):null);for(var c=0;c0&&e.forceLayout.alpha()1?r-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=arguments.length,o=new Array(r>3?r-3:0),i=3;i1&&void 0!==arguments[1]?arguments[1]:function(){return!0},n=(0,w.default)(e.nodeVal),r=function(t){return Math.sqrt(Math.max(0,n(t)||1))*e.nodeRelSize},o=e.graphData.nodes.filter(t).map((function(e){return{x:e.x,y:e.y,r:r(e)}}));return o.length?{x:[(0,ho.Z)(o,(function(e){return e.x-e.r})),(0,vo.Z)(o,(function(e){return e.x+e.r}))],y:[(0,ho.Z)(o,(function(e){return e.y-e.r})),(0,vo.Z)(o,(function(e){return e.y+e.r}))]}:null},pauseAnimation:function(e){return e.animationFrameRequestId&&(cancelAnimationFrame(e.animationFrameRequestId),e.animationFrameRequestId=null),this},resumeAnimation:function(e){return e.animationFrameRequestId||this._animationCycle(),this},_destructor:function(){this.pauseAnimation(),this.graphData({nodes:[],links:[]})}},Oi),stateInit:function(){return{lastSetZoom:1,zoom:ao(),forceGraph:new wi,shadowGraph:(new wi).cooldownTicks(0).nodeColor("__indexColor").linkColor("__indexColor").isShadow(!0),colorTracker:new Co}},init:function(e,t){e.innerHTML="";var n=document.createElement("div");n.classList.add("force-graph-container"),n.style.position="relative",e.appendChild(n),t.canvas=document.createElement("canvas"),t.backgroundColor&&(t.canvas.style.background=t.backgroundColor),n.appendChild(t.canvas),t.shadowCanvas=document.createElement("canvas");var r=t.canvas.getContext("2d"),o=t.shadowCanvas.getContext("2d"),i={x:-1e12,y:-1e12},a=function(){var e=null,n=window.devicePixelRatio,r=i.x>0&&i.y>0?o.getImageData(i.x*n,i.y*n,1,1):null;return r&&(e=t.colorTracker.lookup(r.data)),e};Bn(t.canvas).call(function(){var e,t,n,r,o=co,i=lo,a=fo,s=po,u={},c=(0,zn.Z)("start","drag","end"),l=0,d=0;function f(e){e.on("mousedown.drag",p).filter(s).on("touchstart.drag",m).on("touchmove.drag",g,Fn).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(a,s){if(!r&&o.call(this,a,s)){var u=b(this,i.call(this,a,s),a,s,"mouse");u&&(Bn(a.view).on("mousemove.drag",h,Hn).on("mouseup.drag",v,Hn),Un(a.view),Vn(a),n=!1,e=a.clientX,t=a.clientY,u("start",a))}}function h(r){if(Wn(r),!n){var o=r.clientX-e,i=r.clientY-t;n=o*o+i*i>d}u.mouse("drag",r)}function v(e){Bn(e.view).on("mousemove.drag mouseup.drag",null),Gn(e.view,n),Wn(e),u.mouse("end",e)}function m(e,t){if(o.call(this,e,t)){var n,r,a=e.changedTouches,s=i.call(this,e,t),u=a.length;for(n=0;n0||t.isPointerPressed)&&("touch"!==r.pointerType||void 0===r.movementX||[r.movementX,r.movementY].some((function(e){return Math.abs(e)>1})))&&(t.isPointerDragging=!0);var o=function(e){var t=e.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,r=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+r,left:t.left+n}}(n);i.x=r.pageX-o.left,i.y=r.pageY-o.top,s.style.top="".concat(i.y,"px"),s.style.left="".concat(i.x,"px")}),{passive:!0})})),n.addEventListener("pointerup",(function(e){if(t.isPointerPressed=!1,t.isPointerDragging)t.isPointerDragging=!1;else{var n=[e,t.pointerDownEvent];requestAnimationFrame((function(){if(0===e.button)if(t.hoverObj){var r=t["on".concat(t.hoverObj.type,"Click")];r&&r.apply(void 0,[t.hoverObj.d].concat(n))}else t.onBackgroundClick&&t.onBackgroundClick.apply(t,n);if(2===e.button)if(t.hoverObj){var o=t["on".concat(t.hoverObj.type,"RightClick")];o&&o.apply(void 0,[t.hoverObj.d].concat(n))}else t.onBackgroundRightClick&&t.onBackgroundRightClick.apply(t,n)}))}}),{passive:!0}),n.addEventListener("contextmenu",(function(e){return!(t.onBackgroundRightClick||t.onNodeRightClick||t.onLinkRightClick)||(e.preventDefault(),!1)})),t.forceGraph(r),t.shadowGraph(o);var u=go()((function(){Mi(o,t.width,t.height),t.shadowGraph.linkWidth((function(e){return(0,w.default)(t.linkWidth)(e)+t.linkHoverPrecision}));var e=Yr(t.canvas);t.shadowGraph.globalScale(e.k).tickFrame()}),800);(this._animationCycle=function e(){var n=!t.autoPauseRedraw||!!t.needsRedraw||t.forceGraph.isEngineRunning()||t.graphData.links.some((function(e){return e.__photons&&e.__photons.length}));if(t.needsRedraw=!1,t.enablePointerInteraction){var o=t.isPointerDragging?null:a();if(o!==t.hoverObj){var i=t.hoverObj,c=i?i.type:null,l=o?o.type:null;if(c&&c!==l){var d=t["on".concat(c,"Hover")];d&&d(null,i.d)}if(l){var f=t["on".concat(l,"Hover")];f&&f(o.d,c===l?i.d:null)}var p=o&&(0,w.default)(t["".concat(o.type.toLowerCase(),"Label")])(o.d)||"";s.style.visibility=p?"visible":"hidden",s.innerHTML=p,t.canvas.classList[o&&t["on".concat(l,"Click")]||!o&&t.onBackgroundClick?"add":"remove"]("clickable"),t.hoverObj=o}n&&u()}if(n){Mi(r,t.width,t.height);var h=Yr(t.canvas).k;t.onRenderFramePre&&t.onRenderFramePre(r,h),t.forceGraph.globalScale(h).tickFrame(),t.onRenderFramePost&&t.onRenderFramePost(r,h)}qe.ZP.update(),t.animationFrameRequestId=requestAnimationFrame(e)})()},update:function(e){}}),Pi={width:P().number,height:P().number,graphData:P().shape({nodes:P().arrayOf(P().object).isRequired,links:P().arrayOf(P().object).isRequired}),backgroundColor:P().string,nodeRelSize:P().number,nodeId:P().string,nodeLabel:P().oneOfType([P().string,P().func]),nodeVal:P().oneOfType([P().number,P().string,P().func]),nodeVisibility:P().oneOfType([P().bool,P().string,P().func]),nodeColor:P().oneOfType([P().string,P().func]),nodeAutoColorBy:P().oneOfType([P().string,P().func]),onNodeHover:P().func,onNodeClick:P().func,linkSource:P().string,linkTarget:P().string,linkLabel:P().oneOfType([P().string,P().func]),linkVisibility:P().oneOfType([P().bool,P().string,P().func]),linkColor:P().oneOfType([P().string,P().func]),linkAutoColorBy:P().oneOfType([P().string,P().func]),linkWidth:P().oneOfType([P().number,P().string,P().func]),linkCurvature:P().oneOfType([P().number,P().string,P().func]),linkDirectionalArrowLength:P().oneOfType([P().number,P().string,P().func]),linkDirectionalArrowColor:P().oneOfType([P().string,P().func]),linkDirectionalArrowRelPos:P().oneOfType([P().number,P().string,P().func]),linkDirectionalParticles:P().oneOfType([P().number,P().string,P().func]),linkDirectionalParticleSpeed:P().oneOfType([P().number,P().string,P().func]),linkDirectionalParticleWidth:P().oneOfType([P().number,P().string,P().func]),linkDirectionalParticleColor:P().oneOfType([P().string,P().func]),onLinkHover:P().func,onLinkClick:P().func,dagMode:P().oneOf(["td","bu","lr","rl","zin","zout","radialin","radialout"]),dagLevelDistance:P().number,dagNodeFilter:P().func,onDagError:P().func,d3AlphaMin:P().number,d3AlphaDecay:P().number,d3VelocityDecay:P().number,warmupTicks:P().number,cooldownTicks:P().number,cooldownTime:P().number,onEngineTick:P().func,onEngineStop:P().func,getGraphBbox:P().func},ji={zoomToFit:P().func,onNodeRightClick:P().func,onNodeDrag:P().func,onNodeDragEnd:P().func,onLinkRightClick:P().func,linkHoverPrecision:P().number,onBackgroundClick:P().func,onBackgroundRightClick:P().func,enablePointerInteraction:P().bool,enableNodeDrag:P().bool},Ii={showNavInfo:P().bool,nodeOpacity:P().number,nodeResolution:P().number,nodeThreeObject:P().oneOfType([P().object,P().string,P().func]),nodeThreeObjectExtend:P().oneOfType([P().bool,P().string,P().func]),linkOpacity:P().number,linkResolution:P().number,linkCurveRotation:P().oneOfType([P().number,P().string,P().func]),linkMaterial:P().oneOfType([P().object,P().string,P().func]),linkThreeObject:P().oneOfType([P().object,P().string,P().func]),linkThreeObjectExtend:P().oneOfType([P().bool,P().string,P().func]),linkPositionUpdate:P().func,linkDirectionalArrowResolution:P().number,linkDirectionalParticleResolution:P().number,forceEngine:P().oneOf(["d3","ngraph"]),ngraphPhysics:P().object,numDimensions:P().oneOf([1,2,3])},Ai=Object.assign({},Pi,ji,{linkLineDash:P().oneOfType([P().arrayOf(P().number),P().string,P().func]),nodeCanvasObjectMode:P().oneOfType([P().string,P().func]),nodeCanvasObject:P().func,nodePointerAreaPaint:P().func,linkCanvasObjectMode:P().oneOfType([P().string,P().func]),linkCanvasObject:P().func,linkPointerAreaPaint:P().func,autoPauseRedraw:P().bool,minZoom:P().number,maxZoom:P().number,enableZoomInteraction:P().bool,enablePanInteraction:P().bool,onZoom:P().func,onZoomEnd:P().func,onRenderFramePre:P().func,onRenderFramePost:P().func}),Ri=Object.assign({},Pi,ji,Ii,{enableNavigationControls:P().bool,controlType:P().oneOf(["trackball","orbit","fly"]),rendererConfig:P().object,extraRenderers:P().arrayOf(P().shape({render:P().func.isRequired}))}),Di=Object.assign({},Pi,Ii,{nodeDesc:P().oneOfType([P().string,P().func]),linkDesc:P().oneOfType([P().string,P().func])}),Li=Object.assign({},Pi,Ii,{markerAttrs:P().object,yOffset:P().number,glScale:P().number});const Ni=y(M,{methodNames:["getGraphBbox","emitParticle","d3Force","d3ReheatSimulation","refresh"]});Ni.displayName="ForceGraphVR",Ni.propTypes=Di;const Bi=y(B,{methodNames:["getGraphBbox","emitParticle","d3Force","d3ReheatSimulation","refresh"],initPropNames:["markerAttrs"]});Bi.displayName="ForceGraphAR",Bi.propTypes=Li;const zi=y(ht,{methodNames:["emitParticle","d3Force","d3ReheatSimulation","stopAnimation","pauseAnimation","resumeAnimation","cameraPosition","zoomToFit","getGraphBbox","screen2GraphCoords","graph2ScreenCoords","postProcessingComposer","scene","camera","renderer","controls","refresh"],initPropNames:["controlType","rendererConfig","extraRenderers"]});zi.displayName="ForceGraph3D",zi.propTypes=Ri;const Fi=y(Si,{methodNames:["emitParticle","d3Force","d3ReheatSimulation","stopAnimation","pauseAnimation","resumeAnimation","centerAt","zoom","zoomToFit","getGraphBbox","screen2GraphCoords","graph2ScreenCoords"]});Fi.displayName="ForceGraph2D",Fi.propTypes=Ai},37763:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(2),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightClassName","unhighlightStyle"]),M=(0,i.findAll)({autoEscape:l,caseSensitive:f,findChunks:h,sanitize:x,searchWords:_,textToHighlight:k}),S=w,P=-1,j="",I=void 0,A=(0,u.default)((function(e){var t={};for(var n in e)t[n.toLowerCase()]=e[n];return t}));return(0,s.createElement)("span",r({className:p},T,{children:M.map((function(e,t){var r=k.substr(e.start,e.end-e.start);if(e.highlight){P++;var o=void 0;o="object"===typeof m?f?m[r]:(m=A(m))[r.toLowerCase()]:m;var i=P===+a;j=o+" "+(i?n:""),I=!0===i&&null!=c?Object.assign({},y,c):y;var u={children:r,className:j,key:t,style:I};return"string"!==typeof S&&(u.highlightIndex=P),(0,s.createElement)(S,u)}return(0,s.createElement)("span",{children:r,className:O,key:t,style:C})}))}))}c.propTypes={activeClassName:a.default.string,activeIndex:a.default.number,activeStyle:a.default.object,autoEscape:a.default.bool,className:a.default.string,findChunks:a.default.func,highlightClassName:a.default.oneOfType([a.default.object,a.default.string]),highlightStyle:a.default.object,highlightTag:a.default.oneOfType([a.default.node,a.default.func,a.default.string]),sanitize:a.default.func,searchWords:a.default.arrayOf(a.default.oneOfType([a.default.string,a.default.instanceOf(RegExp)])).isRequired,textToHighlight:a.default.string.isRequired,unhighlightClassName:a.default.string,unhighlightStyle:a.default.object},e.exports=t.default},function(e,t){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return r.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return r.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return r.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return r.findChunks}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.findAll=function(e){var t=e.autoEscape,i=e.caseSensitive,a=void 0!==i&&i,s=e.findChunks,u=void 0===s?r:s,c=e.sanitize,l=e.searchWords,d=e.textToHighlight;return o({chunksToHighlight:n({chunks:u({autoEscape:t,caseSensitive:a,sanitize:c,searchWords:l,textToHighlight:d})}),totalLength:d?d.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t=t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<=n.end){var r=Math.max(n.end,t.end);e.push({start:n.start,end:r})}else e.push(n,t);return e}),[])},r=function(e){var t=e.autoEscape,n=e.caseSensitive,r=e.sanitize,o=void 0===r?i:r,a=e.searchWords,s=e.textToHighlight;return s=o(s),a.filter((function(e){return e})).reduce((function(e,r){r=o(r),t&&(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var i=new RegExp(r,n?"g":"gi"),a=void 0;a=i.exec(s);){var u=a.index,c=i.lastIndex;c>u&&e.push({start:u,end:c}),a.index==i.lastIndex&&i.lastIndex++}return e}),[])};t.findChunks=r;var o=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,r=[],o=function(e,t,n){t-e>0&&r.push({start:e,end:t,highlight:n})};if(0===t.length)o(0,n,!1);else{var i=0;t.forEach((function(e){o(i,e.start,!1),o(e.start,e.end,!0),i=e.end})),o(i,n,!1)}return r};function i(e){return e}}])},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var r="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(6)((function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r}),!0)}else e.exports=n(13)()}).call(t,n(5))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,d=-1;function f(){l&&u&&(l=!1,u.length?c=u.concat(c):d=-1,c.length&&p())}function p(){if(!l){var e=s(f);l=!0;for(var t=c.length;t;){for(u=c,c=[];++d1)for(var n=1;n1?t-1:0),r=1;r2?n-2:0),i=2;i1&&void 0!==arguments[1]?arguments[1]:n,r=void 0,o=[],i=void 0,a=!1,s=function(e,n){return t(e,o[n])},u=function(){for(var t=arguments.length,n=Array(t),u=0;u=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function m(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof b?Promise.resolve(n.value.v).then(u,c):l(i[0][2],n)}catch(r){l(i[0][3],r)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function x(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}function k(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var E=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function O(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&f(t,e,n);return E(t,e),t}function C(e){return e&&e.__esModule?e:{default:e}}function T(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function M(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}},22003:function(e,t){"use strict";var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function r(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function o(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function i(){for(var e=[],t=0;t=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}(r),i=o.next();!i.done;i=o.next()){var a=i.value;this._callEventListener(e,a)}}catch(s){t={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return!0},e.prototype.removeEventListener=function(e,t){this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter((function(e){return e!==t})))},e.prototype._debug=function(){for(var e=[],t=0;t"],e))},e.prototype._getNextDelay=function(){var e=this._options,t=e.reconnectionDelayGrowFactor,n=void 0===t?l.reconnectionDelayGrowFactor:t,r=e.minReconnectionDelay,o=void 0===r?l.minReconnectionDelay:r,i=e.maxReconnectionDelay,a=void 0===i?l.maxReconnectionDelay:i,s=0;return this._retryCount>0&&(s=o*Math.pow(n,this._retryCount-1))>a&&(s=a),this._debug("next delay",s),s},e.prototype._wait=function(){var e=this;return new Promise((function(t){setTimeout(t,e._getNextDelay())}))},e.prototype._getNextUrl=function(e){if("string"===typeof e)return Promise.resolve(e);if("function"===typeof e){var t=e();if("string"===typeof t)return Promise.resolve(t);if(t.then)return t}throw Error("Invalid URL")},e.prototype._connect=function(){var e=this;if(!this._connectLock&&this._shouldReconnect){this._connectLock=!0;var t=this._options,n=t.maxRetries,r=void 0===n?l.maxRetries:n,o=t.connectionTimeout,i=void 0===o?l.connectionTimeout:o,a=t.WebSocket,s=void 0===a?c():a;if(this._retryCount>=r)this._debug("max retries reached",this._retryCount,">=",r);else{if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),"undefined"===typeof(u=s)||!u||2!==u.CLOSING)throw Error("No valid WebSocket class provided");var u;this._wait().then((function(){return e._getNextUrl(e._url)})).then((function(t){e._closeCalled||(e._debug("connect",{url:t,protocols:e._protocols}),e._ws=e._protocols?new s(t,e._protocols):new s(t),e._ws.binaryType=e._binaryType,e._connectLock=!1,e._addListeners(),e._connectTimeout=setTimeout((function(){return e._handleTimeout()}),i))}))}}},e.prototype._handleTimeout=function(){this._debug("timeout event"),this._handleError(new s(Error("TIMEOUT"),this))},e.prototype._disconnect=function(e,t){if(void 0===e&&(e=1e3),this._clearTimeouts(),this._ws){this._removeListeners();try{this._ws.close(e,t),this._handleClose(new u(e,t,this))}catch(n){}}},e.prototype._acceptOpen=function(){this._debug("accept open"),this._retryCount=0},e.prototype._callEventListener=function(e,t){"handleEvent"in t?t.handleEvent(e):t(e)},e.prototype._removeListeners=function(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))},e.prototype._addListeners=function(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))},e.prototype._clearTimeouts=function(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)},e}();t.Z=d},76826:function(e){var t={"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\u1ea4":"A","\u1eae":"A","\u1eb2":"A","\u1eb4":"A","\u1eb6":"A","\xc6":"AE","\u1ea6":"A","\u1eb0":"A","\u0202":"A","\xc7":"C","\u1e08":"C","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\u1ebe":"E","\u1e16":"E","\u1ec0":"E","\u1e14":"E","\u1e1c":"E","\u0206":"E","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\u1e2e":"I","\u020a":"I","\xd0":"D","\xd1":"N","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\u1ed0":"O","\u1e4c":"O","\u1e52":"O","\u020e":"O","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xdd":"Y","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\u1ea5":"a","\u1eaf":"a","\u1eb3":"a","\u1eb5":"a","\u1eb7":"a","\xe6":"ae","\u1ea7":"a","\u1eb1":"a","\u0203":"a","\xe7":"c","\u1e09":"c","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\u1ebf":"e","\u1e17":"e","\u1ec1":"e","\u1e15":"e","\u1e1d":"e","\u0207":"e","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\u1e2f":"i","\u020b":"i","\xf0":"d","\xf1":"n","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\u1ed1":"o","\u1e4d":"o","\u1e53":"o","\u020f":"o","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xfd":"y","\xff":"y","\u0100":"A","\u0101":"a","\u0102":"A","\u0103":"a","\u0104":"A","\u0105":"a","\u0106":"C","\u0107":"c","\u0108":"C","\u0109":"c","\u010a":"C","\u010b":"c","\u010c":"C","\u010d":"c","C\u0306":"C","c\u0306":"c","\u010e":"D","\u010f":"d","\u0110":"D","\u0111":"d","\u0112":"E","\u0113":"e","\u0114":"E","\u0115":"e","\u0116":"E","\u0117":"e","\u0118":"E","\u0119":"e","\u011a":"E","\u011b":"e","\u011c":"G","\u01f4":"G","\u011d":"g","\u01f5":"g","\u011e":"G","\u011f":"g","\u0120":"G","\u0121":"g","\u0122":"G","\u0123":"g","\u0124":"H","\u0125":"h","\u0126":"H","\u0127":"h","\u1e2a":"H","\u1e2b":"h","\u0128":"I","\u0129":"i","\u012a":"I","\u012b":"i","\u012c":"I","\u012d":"i","\u012e":"I","\u012f":"i","\u0130":"I","\u0131":"i","\u0132":"IJ","\u0133":"ij","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u1e30":"K","\u1e31":"k","K\u0306":"K","k\u0306":"k","\u0139":"L","\u013a":"l","\u013b":"L","\u013c":"l","\u013d":"L","\u013e":"l","\u013f":"L","\u0140":"l","\u0141":"l","\u0142":"l","\u1e3e":"M","\u1e3f":"m","M\u0306":"M","m\u0306":"m","\u0143":"N","\u0144":"n","\u0145":"N","\u0146":"n","\u0147":"N","\u0148":"n","\u0149":"n","N\u0306":"N","n\u0306":"n","\u014c":"O","\u014d":"o","\u014e":"O","\u014f":"o","\u0150":"O","\u0151":"o","\u0152":"OE","\u0153":"oe","P\u0306":"P","p\u0306":"p","\u0154":"R","\u0155":"r","\u0156":"R","\u0157":"r","\u0158":"R","\u0159":"r","R\u0306":"R","r\u0306":"r","\u0212":"R","\u0213":"r","\u015a":"S","\u015b":"s","\u015c":"S","\u015d":"s","\u015e":"S","\u0218":"S","\u0219":"s","\u015f":"s","\u0160":"S","\u0161":"s","\u0162":"T","\u0163":"t","\u021b":"t","\u021a":"T","\u0164":"T","\u0165":"t","\u0166":"T","\u0167":"t","T\u0306":"T","t\u0306":"t","\u0168":"U","\u0169":"u","\u016a":"U","\u016b":"u","\u016c":"U","\u016d":"u","\u016e":"U","\u016f":"u","\u0170":"U","\u0171":"u","\u0172":"U","\u0173":"u","\u0216":"U","\u0217":"u","V\u0306":"V","v\u0306":"v","\u0174":"W","\u0175":"w","\u1e82":"W","\u1e83":"w","X\u0306":"X","x\u0306":"x","\u0176":"Y","\u0177":"y","\u0178":"Y","Y\u0306":"Y","y\u0306":"y","\u0179":"Z","\u017a":"z","\u017b":"Z","\u017c":"z","\u017d":"Z","\u017e":"z","\u017f":"s","\u0192":"f","\u01a0":"O","\u01a1":"o","\u01af":"U","\u01b0":"u","\u01cd":"A","\u01ce":"a","\u01cf":"I","\u01d0":"i","\u01d1":"O","\u01d2":"o","\u01d3":"U","\u01d4":"u","\u01d5":"U","\u01d6":"u","\u01d7":"U","\u01d8":"u","\u01d9":"U","\u01da":"u","\u01db":"U","\u01dc":"u","\u1ee8":"U","\u1ee9":"u","\u1e78":"U","\u1e79":"u","\u01fa":"A","\u01fb":"a","\u01fc":"AE","\u01fd":"ae","\u01fe":"O","\u01ff":"o","\xde":"TH","\xfe":"th","\u1e54":"P","\u1e55":"p","\u1e64":"S","\u1e65":"s","X\u0301":"X","x\u0301":"x","\u0403":"\u0413","\u0453":"\u0433","\u040c":"\u041a","\u045c":"\u043a","A\u030b":"A","a\u030b":"a","E\u030b":"E","e\u030b":"e","I\u030b":"I","i\u030b":"i","\u01f8":"N","\u01f9":"n","\u1ed2":"O","\u1ed3":"o","\u1e50":"O","\u1e51":"o","\u1eea":"U","\u1eeb":"u","\u1e80":"W","\u1e81":"w","\u1ef2":"Y","\u1ef3":"y","\u0200":"A","\u0201":"a","\u0204":"E","\u0205":"e","\u0208":"I","\u0209":"i","\u020c":"O","\u020d":"o","\u0210":"R","\u0211":"r","\u0214":"U","\u0215":"u","B\u030c":"B","b\u030c":"b","\u010c\u0323":"C","\u010d\u0323":"c","\xca\u030c":"E","\xea\u030c":"e","F\u030c":"F","f\u030c":"f","\u01e6":"G","\u01e7":"g","\u021e":"H","\u021f":"h","J\u030c":"J","\u01f0":"j","\u01e8":"K","\u01e9":"k","M\u030c":"M","m\u030c":"m","P\u030c":"P","p\u030c":"p","Q\u030c":"Q","q\u030c":"q","\u0158\u0329":"R","\u0159\u0329":"r","\u1e66":"S","\u1e67":"s","V\u030c":"V","v\u030c":"v","W\u030c":"W","w\u030c":"w","X\u030c":"X","x\u030c":"x","Y\u030c":"Y","y\u030c":"y","A\u0327":"A","a\u0327":"a","B\u0327":"B","b\u0327":"b","\u1e10":"D","\u1e11":"d","\u0228":"E","\u0229":"e","\u0190\u0327":"E","\u025b\u0327":"e","\u1e28":"H","\u1e29":"h","I\u0327":"I","i\u0327":"i","\u0197\u0327":"I","\u0268\u0327":"i","M\u0327":"M","m\u0327":"m","O\u0327":"O","o\u0327":"o","Q\u0327":"Q","q\u0327":"q","U\u0327":"U","u\u0327":"u","X\u0327":"X","x\u0327":"x","Z\u0327":"Z","z\u0327":"z"},n=Object.keys(t).join("|"),r=new RegExp(n,"g"),o=new RegExp(n,""),i=function(e){return e.replace(r,(function(e){return t[e]}))};e.exports=i,e.exports.has=function(e){return!!e.match(o)},e.exports.remove=i},81398:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ue}});var r=n(2212),o=n(54505),i=n(15560),a=n(92405),s=n(20216),u=n(16917),c=n(54736),l=n.n(c),d=n(16505),f=n.n(d),p=n(44858),h=n(92539),v=n(86701),m=n(3752),g=n(1527);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){s=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||k(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e){return function(e){if(Array.isArray(e))return E(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){if(e){if("string"===typeof e)return E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function V(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?V(e):t}function U(e){var t=z();return function(){var n,r=N(e);if(t){var o=N(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return W(this,n)}}function G(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){s=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||K(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e){return function(e){if(Array.isArray(e))return Z(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||K(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function K(e,t){if(e){if("string"===typeof e)return Z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Z(e,t):void 0}}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:{},r=n.objFilter,o=void 0===r?function(){return!0}:r,i=H(n,Q);return C(e,t.children.filter(o),(function(e){return t.add(e)}),(function(e){t.remove(e),Y(e)}),I({objBindAttr:"__threeObj"},i))}var ee=function(e){return isNaN(e)?parseInt(P()(e).toHex(),16):e},te=function(e){return isNaN(e)?P()(e).getAlpha():1},ne=(0,T.Z)(M.Z);function re(e,t,n){t&&"string"===typeof n&&e.filter((function(e){return!e[n]})).forEach((function(e){e[n]=ne(t(e))}))}var oe=window.THREE?window.THREE:{Group:r.ZAu,Mesh:r.Kj0,MeshLambertMaterial:r.YBo,Color:r.Ilk,BufferGeometry:r.u9r,BufferAttribute:r.TlE,Matrix4:r.yGw,Vector3:r.Pa4,SphereBufferGeometry:r.Aip,CylinderBufferGeometry:r.m_w,TubeBufferGeometry:r.Lcc,ConeBufferGeometry:r._3,Line:r.x12,LineBasicMaterial:r.nls,QuadraticBezierCurve3:r.mXe,CubicBezierCurve3:r.yj7,Box3:r.ZzF},ie={graph:l(),forcelayout:f()},ae=(new oe.BufferGeometry).setAttribute?"setAttribute":"addAttribute",se=(new oe.BufferGeometry).applyMatrix4?"applyMatrix4":"applyMatrix";var ue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=function(t){L(o,t);var r=U(o);function o(){var t;R(this,o);for(var i=arguments.length,a=new Array(i),s=0;s2?-60:-30),e<3&&r(t.graphData.nodes,"z"),e<2&&r(t.graphData.nodes,"y")}},dagMode:{onChange:function(e,t){!e&&"d3"===t.forceEngine&&(t.graphData.nodes||[]).forEach((function(e){return e.fx=e.fy=e.fz=void 0}))}},dagLevelDistance:{},dagNodeFilter:{default:function(e){return!0}},onDagError:{triggerUpdate:!1},nodeRelSize:{default:4},nodeId:{default:"id"},nodeVal:{default:"val"},nodeResolution:{default:8},nodeColor:{default:"color"},nodeAutoColorBy:{},nodeOpacity:{default:.75},nodeVisibility:{default:!0},nodeThreeObject:{},nodeThreeObjectExtend:{default:!1},linkSource:{default:"source"},linkTarget:{default:"target"},linkVisibility:{default:!0},linkColor:{default:"color"},linkAutoColorBy:{},linkOpacity:{default:.2},linkWidth:{},linkResolution:{default:6},linkCurvature:{default:0,triggerUpdate:!1},linkCurveRotation:{default:0,triggerUpdate:!1},linkMaterial:{},linkThreeObject:{},linkThreeObjectExtend:{default:!1},linkPositionUpdate:{triggerUpdate:!1},linkDirectionalArrowLength:{default:0},linkDirectionalArrowColor:{},linkDirectionalArrowRelPos:{default:.5,triggerUpdate:!1},linkDirectionalArrowResolution:{default:8},linkDirectionalParticles:{default:0},linkDirectionalParticleSpeed:{default:.01,triggerUpdate:!1},linkDirectionalParticleWidth:{default:.5},linkDirectionalParticleColor:{},linkDirectionalParticleResolution:{default:4},forceEngine:{default:"d3"},d3AlphaMin:{default:0},d3AlphaDecay:{default:.0228,triggerUpdate:!1,onChange:function(e,t){t.d3ForceLayout.alphaDecay(e)}},d3AlphaTarget:{default:0,triggerUpdate:!1,onChange:function(e,t){t.d3ForceLayout.alphaTarget(e)}},d3VelocityDecay:{default:.4,triggerUpdate:!1,onChange:function(e,t){t.d3ForceLayout.velocityDecay(e)}},ngraphPhysics:{default:{timeStep:20,gravity:-1.2,theta:.8,springLength:30,springCoefficient:8e-4,dragCoefficient:.02}},warmupTicks:{default:0,triggerUpdate:!1},cooldownTicks:{default:1/0,triggerUpdate:!1},cooldownTime:{default:15e3,triggerUpdate:!1},onLoading:{default:function(){},triggerUpdate:!1},onFinishLoading:{default:function(){},triggerUpdate:!1},onUpdate:{default:function(){},triggerUpdate:!1},onFinishUpdate:{default:function(){},triggerUpdate:!1},onEngineTick:{default:function(){},triggerUpdate:!1},onEngineStop:{default:function(){},triggerUpdate:!1}},methods:{refresh:function(e){return e._flushObjects=!0,e._rerender(),this},d3Force:function(e,t,n){return void 0===n?e.d3ForceLayout.force(t):(e.d3ForceLayout.force(t,n),this)},d3ReheatSimulation:function(e){return e.d3ForceLayout.alpha(1),this.resetCountdown(),this},resetCountdown:function(e){return e.cntTicks=0,e.startTickTime=new Date,e.engineRunning=!0,this},tickFrame:function(e){var t="ngraph"!==e.forceEngine;return e.engineRunning&&function(){++e.cntTicks>e.cooldownTicks||new Date-e.startTickTime>e.cooldownTime||t&&e.d3AlphaMin>0&&e.d3ForceLayout.alpha()0){var h=s.x-a.x,v=s.y-a.y||0,m=(new oe.Vector3).subVectors(d,l),g=m.clone().multiplyScalar(u).cross(0!==h||0!==v?new oe.Vector3(0,0,1):new oe.Vector3(0,1,0)).applyAxisAngle(m.normalize(),p).add((new oe.Vector3).addVectors(l,d).divideScalar(2));c=new oe.QuadraticBezierCurve3(l,g,d)}else{var y=70*u,b=-p,w=b+Math.PI/2;c=new oe.CubicBezierCurve3(l,new oe.Vector3(y*Math.cos(w),y*Math.sin(w),0).add(l),new oe.Vector3(y*Math.cos(b),y*Math.sin(b),0).add(l),d)}n.__curve=c}else n.__curve=null}}e.graphData.links.forEach((function(r){var o=r.__lineObj;if(o){var s=t?r:e.layout.getLinkPosition(e.layout.graph.getLink(r.source,r.target).id),u=s[t?"source":"from"],c=s[t?"target":"to"];if(u&&c&&u.hasOwnProperty("x")&&c.hasOwnProperty("x")){a(r);var l=i(r);if(!e.linkPositionUpdate||!e.linkPositionUpdate(l?o.children[1]:o,{start:{x:u.x,y:u.y,z:u.z},end:{x:c.x,y:c.y,z:c.z}},r)||l){var d=30,f=r.__curve,p=o.children.length?o.children[0]:o;if("Line"===p.type){if(f)p.geometry.setFromPoints(f.getPoints(d));else{var h=p.geometry.getAttribute("position");h&&h.array&&6===h.array.length||p.geometry[ae]("position",h=new oe.BufferAttribute(new Float32Array(6),3)),h.array[0]=u.x,h.array[1]=u.y||0,h.array[2]=u.z||0,h.array[3]=c.x,h.array[4]=c.y||0,h.array[5]=c.z||0,h.needsUpdate=!0}p.geometry.computeBoundingSphere()}else if("Mesh"===p.type)if(f){p.geometry.type.match(/^Tube(Buffer)?Geometry$/)||(p.position.set(0,0,0),p.rotation.set(0,0,0),p.scale.set(1,1,1));var v=Math.ceil(10*n(r))/10/2,m=new oe.TubeBufferGeometry(f,d,v,e.linkResolution,!1);p.geometry.dispose(),p.geometry=m}else{if(!p.geometry.type.match(/^Cylinder(Buffer)?Geometry$/)){var g=Math.ceil(10*n(r))/10/2,y=new oe.CylinderBufferGeometry(g,g,1,e.linkResolution,1,!1);y[se]((new oe.Matrix4).makeTranslation(0,.5,0)),y[se]((new oe.Matrix4).makeRotationX(Math.PI/2)),p.geometry.dispose(),p.geometry=y}var b=new oe.Vector3(u.x,u.y||0,u.z||0),w=new oe.Vector3(c.x,c.y||0,c.z||0),x=b.distanceTo(w);p.position.x=b.x,p.position.y=b.y,p.position.z=b.z,p.scale.z=x,p.parent.localToWorld(w),p.lookAt(w)}}}}}))}(),function(){var n=(0,h.default)(e.linkDirectionalArrowRelPos),r=(0,h.default)(e.linkDirectionalArrowLength),o=(0,h.default)(e.nodeVal);e.graphData.links.forEach((function(i){var a=i.__arrowObj;if(a){var s=t?i:e.layout.getLinkPosition(e.layout.graph.getLink(i.source,i.target).id),u=s[t?"source":"from"],c=s[t?"target":"to"];if(u&&c&&u.hasOwnProperty("x")&&c.hasOwnProperty("x")){var l=Math.sqrt(Math.max(0,o(u)||1))*e.nodeRelSize,d=Math.sqrt(Math.max(0,o(c)||1))*e.nodeRelSize,f=r(i),p=n(i),h=i.__curve?function(e){return i.__curve.getPoint(e)}:function(e){var t=function(e,t,n,r){return t[e]+(n[e]-t[e])*r||0};return{x:t("x",u,c,e),y:t("y",u,c,e),z:t("z",u,c,e)}},v=i.__curve?i.__curve.getLength():Math.sqrt(["x","y","z"].map((function(e){return Math.pow((c[e]||0)-(u[e]||0),2)})).reduce((function(e,t){return e+t}),0)),m=l+f+(v-l-d-f)*p,g=h(m/v),y=h((m-f)/v);["x","y","z"].forEach((function(e){return a.position[e]=y[e]}));var b=F(oe.Vector3,q(["x","y","z"].map((function(e){return g[e]}))));a.parent.localToWorld(b),a.lookAt(b)}}}))}(),function(){var n=(0,h.default)(e.linkDirectionalParticleSpeed);e.graphData.links.forEach((function(r){var o=r.__photonsObj&&r.__photonsObj.children,i=r.__singleHopPhotonsObj&&r.__singleHopPhotonsObj.children;if(i&&i.length||o&&o.length){var a=t?r:e.layout.getLinkPosition(e.layout.graph.getLink(r.source,r.target).id),s=a[t?"source":"from"],u=a[t?"target":"to"];if(s&&u&&s.hasOwnProperty("x")&&u.hasOwnProperty("x")){var c=n(r),l=r.__curve?function(e){return r.__curve.getPoint(e)}:function(e){var t=function(e,t,n,r){return t[e]+(n[e]-t[e])*r||0};return{x:t("x",s,u,e),y:t("y",s,u,e),z:t("z",s,u,e)}};[].concat(q(o||[]),q(i||[])).forEach((function(e,t){var n="singleHopPhotons"===e.parent.__linkThreeObjType;if(e.hasOwnProperty("__progressRatio")||(e.__progressRatio=n?0:t/o.length),e.__progressRatio+=c,e.__progressRatio>=1){if(n)return e.parent.remove(e),void Y(e);e.__progressRatio=e.__progressRatio%1}var r=e.__progressRatio,i=l(r);["x","y","z"].forEach((function(t){return e.position[t]=i[t]}))}))}}}))}(),this},emitParticle:function(e,t){if(t){if(!t.__singleHopPhotonsObj){var n=new oe.Group;n.__linkThreeObjType="singleHopPhotons",t.__singleHopPhotonsObj=n,e.graphScene.add(n)}var r=(0,h.default)(e.linkDirectionalParticleWidth),o=Math.ceil(10*r(t))/10/2,i=e.linkDirectionalParticleResolution,a=new oe.SphereBufferGeometry(o,i,i),s=(0,h.default)(e.linkColor),u=(0,h.default)(e.linkDirectionalParticleColor)(t)||s(t)||"#f0f0f0",c=new oe.Color(ee(u)),l=3*e.linkOpacity,d=new oe.MeshLambertMaterial({color:c,transparent:!0,opacity:l});t.__singleHopPhotonsObj.add(new oe.Mesh(a,d))}return this},getGraphBbox:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0};if(!e.initialised)return null;var n=function e(n){var r=[];if(n.geometry){n.geometry.computeBoundingBox();var o=new oe.Box3;o.copy(n.geometry.boundingBox).applyMatrix4(n.matrixWorld),r.push(o)}return r.concat.apply(r,q((n.children||[]).filter((function(e){return!e.hasOwnProperty("__graphObjType")||"node"===e.__graphObjType&&t(e.__data)})).map(e)))}(e.graphScene);return n.length?Object.assign.apply(Object,q(["x","y","z"].map((function(e){return D({},e,[(0,v.Z)(n,(function(t){return t.min[e]})),(0,m.Z)(n,(function(t){return t.max[e]}))])})))):null}},stateInit:function(){return{d3ForceLayout:(0,o.Z)().force("link",(0,i.Z)()).force("charge",(0,a.Z)()).force("center",(0,s.Z)()).force("dagRadial",null).stop(),engineRunning:!1}},init:function(e,t){t.graphScene=e},update:function(e,t){var n=function(e){return e.some((function(e){return t.hasOwnProperty(e)}))};if(e.engineRunning=!1,e.onUpdate(),null!==e.nodeAutoColorBy&&n(["nodeAutoColorBy","graphData","nodeColor"])&&re(e.graphData.nodes,(0,h.default)(e.nodeAutoColorBy),e.nodeColor),null!==e.linkAutoColorBy&&n(["linkAutoColorBy","graphData","linkColor"])&&re(e.graphData.links,(0,h.default)(e.linkAutoColorBy),e.linkColor),e._flushObjects||n(["graphData","nodeThreeObject","nodeThreeObjectExtend","nodeVal","nodeColor","nodeVisibility","nodeRelSize","nodeResolution","nodeOpacity"])){var r=(0,h.default)(e.nodeThreeObject),o=(0,h.default)(e.nodeThreeObjectExtend),i=(0,h.default)(e.nodeVal),a=(0,h.default)(e.nodeColor),s=(0,h.default)(e.nodeVisibility),c={},l={};J(e.graphData.nodes.filter(s),e.graphScene,{purge:e._flushObjects||n(["nodeThreeObject","nodeThreeObjectExtend"]),objFilter:function(e){return"node"===e.__graphObjType},createObj:function(t){var n,i=r(t),a=o(t);return i&&e.nodeThreeObject===i&&(i=i.clone()),i&&!a?n=i:((n=new oe.Mesh).__graphDefaultObj=!0,i&&a&&n.add(i)),n.__graphObjType="node",n},updateObj:function(t,n){if(t.__graphDefaultObj){var r=i(n)||1,o=Math.cbrt(r)*e.nodeRelSize,s=e.nodeResolution;t.geometry.type.match(/^Sphere(Buffer)?Geometry$/)&&t.geometry.parameters.radius===o&&t.geometry.parameters.widthSegments===s||(c.hasOwnProperty(r)||(c[r]=new oe.SphereBufferGeometry(o,s,s)),t.geometry.dispose(),t.geometry=c[r]);var u=a(n),d=new oe.Color(ee(u||"#ffffaa")),f=e.nodeOpacity*te(u);"MeshLambertMaterial"===t.material.type&&t.material.color.equals(d)&&t.material.opacity===f||(l.hasOwnProperty(u)||(l[u]=new oe.MeshLambertMaterial({color:d,transparent:!0,opacity:f})),t.material.dispose(),t.material=l[u])}}})}if(e._flushObjects||n(["graphData","linkThreeObject","linkThreeObjectExtend","linkMaterial","linkColor","linkWidth","linkVisibility","linkResolution","linkOpacity","linkDirectionalArrowLength","linkDirectionalArrowColor","linkDirectionalArrowResolution","linkDirectionalParticles","linkDirectionalParticleWidth","linkDirectionalParticleColor","linkDirectionalParticleResolution"])){var d=(0,h.default)(e.linkThreeObject),f=(0,h.default)(e.linkThreeObjectExtend),p=(0,h.default)(e.linkMaterial),v=(0,h.default)(e.linkVisibility),m=(0,h.default)(e.linkColor),g=(0,h.default)(e.linkWidth),y={},b={},w={},x=e.graphData.links.filter(v);if(J(x,e.graphScene,{objBindAttr:"__lineObj",purge:e._flushObjects||n(["linkThreeObject","linkThreeObjectExtend","linkWidth"]),objFilter:function(e){return"link"===e.__graphObjType},createObj:function(t){var n,r,o=d(t),i=f(t);if(o&&e.linkThreeObject===o&&(o=o.clone()),!o||i)if(!!g(t))n=new oe.Mesh;else{var a=new oe.BufferGeometry;a[ae]("position",new oe.BufferAttribute(new Float32Array(6),3)),n=new oe.Line(a)}return o?i?((r=new oe.Group).__graphDefaultObj=!0,r.add(n),r.add(o)):r=o:(r=n).__graphDefaultObj=!0,r.renderOrder=10,r.__graphObjType="link",r},updateObj:function(t,n){if(t.__graphDefaultObj){var r=t.children.length?t.children[0]:t,o=Math.ceil(10*g(n))/10,i=!!o;if(i){var a=o/2,s=e.linkResolution;if(!r.geometry.type.match(/^Cylinder(Buffer)?Geometry$/)||r.geometry.parameters.radiusTop!==a||r.geometry.parameters.radialSegments!==s){if(!y.hasOwnProperty(o)){var u=new oe.CylinderBufferGeometry(a,a,1,s,1,!1);u[se]((new oe.Matrix4).makeTranslation(0,.5,0)),u[se]((new oe.Matrix4).makeRotationX(Math.PI/2)),y[o]=u}r.geometry.dispose(),r.geometry=y[o]}}var c=p(n);if(c)r.material=c;else{var l=m(n),d=new oe.Color(ee(l||"#f0f0f0")),f=e.linkOpacity*te(l),h=i?"MeshLambertMaterial":"LineBasicMaterial";if(r.material.type!==h||!r.material.color.equals(d)||r.material.opacity!==f){var v=i?b:w;v.hasOwnProperty(l)||(v[l]=new oe[h]({color:d,transparent:f<1,opacity:f,depthWrite:f>=1})),r.material.dispose(),r.material=v[l]}}}}}),e.linkDirectionalArrowLength||t.hasOwnProperty("linkDirectionalArrowLength")){var _=(0,h.default)(e.linkDirectionalArrowLength),k=(0,h.default)(e.linkDirectionalArrowColor);J(x.filter(_),e.graphScene,{objBindAttr:"__arrowObj",objFilter:function(e){return"arrow"===e.__linkThreeObjType},createObj:function(){var e=new oe.Mesh(void 0,new oe.MeshLambertMaterial({transparent:!0}));return e.__linkThreeObjType="arrow",e},updateObj:function(t,n){var r=_(n),o=e.linkDirectionalArrowResolution;if(!t.geometry.type.match(/^Cone(Buffer)?Geometry$/)||t.geometry.parameters.height!==r||t.geometry.parameters.radialSegments!==o){var i=new oe.ConeBufferGeometry(.25*r,r,o);i.translate(0,r/2,0),i.rotateX(Math.PI/2),t.geometry.dispose(),t.geometry=i}t.material.color=new oe.Color(k(n)||m(n)||"#f0f0f0"),t.material.opacity=3*e.linkOpacity}})}if(e.linkDirectionalParticles||t.hasOwnProperty("linkDirectionalParticles")){var E=(0,h.default)(e.linkDirectionalParticles),O=(0,h.default)(e.linkDirectionalParticleWidth),C=(0,h.default)(e.linkDirectionalParticleColor),T={},M={};J(x.filter(E),e.graphScene,{objBindAttr:"__photonsObj",objFilter:function(e){return"photons"===e.__linkThreeObjType},createObj:function(){var e=new oe.Group;return e.__linkThreeObjType="photons",e},updateObj:function(t,n){var r,o=Math.round(Math.abs(E(n))),i=!!t.children.length&&t.children[0],a=Math.ceil(10*O(n))/10/2,s=e.linkDirectionalParticleResolution;i&&i.geometry.parameters.radius===a&&i.geometry.parameters.widthSegments===s?r=i.geometry:(M.hasOwnProperty(a)||(M[a]=new oe.SphereBufferGeometry(a,s,s)),r=M[a],i&&i.geometry.dispose());var u,c=C(n)||m(n)||"#f0f0f0",l=new oe.Color(ee(c)),d=3*e.linkOpacity;i&&i.material.color.equals(l)&&i.material.opacity===d?u=i.material:(T.hasOwnProperty(c)||(T[c]=new oe.MeshLambertMaterial({color:l,transparent:!0,opacity:d})),u=T[c],i&&i.material.dispose()),J(q(new Array(o)).map((function(e,t){return{idx:t}})),t,{idAccessor:function(e){return e.idx},createObj:function(){return new oe.Mesh(r,u)},updateObj:function(e){e.geometry=r,e.material=u}})}})}}if(e._flushObjects=!1,n(["graphData","nodeId","linkSource","linkTarget","numDimensions","forceEngine","dagMode","dagNodeFilter","dagLevelDistance"])){e.engineRunning=!1,e.graphData.links.forEach((function(t){t.source=t[e.linkSource],t.target=t[e.linkTarget]}));var S,P="ngraph"!==e.forceEngine;if(P){(S=e.d3ForceLayout).stop().alpha(1).numDimensions(e.numDimensions).nodes(e.graphData.nodes);var j=e.d3ForceLayout.force("link");j&&j.id((function(t){return t[e.nodeId]})).links(e.graphData.links);var R=e.dagMode&&function(e,t){var n=e.nodes,r=e.links,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=o.nodeFilter,a=void 0===i?function(){return!0}:i,s=o.onLoopError,u=void 0===s?function(e){throw"Invalid DAG structure! Found cycle in node path: ".concat(e.join(" -> "),".")}:s,c={};n.forEach((function(e){return c[t(e)]={data:e,out:[],depth:-1,skip:!a(e)}})),r.forEach((function(e){var n=e.source,r=e.target,o=u(n),i=u(r);if(!c.hasOwnProperty(o))throw"Missing source node with id: ".concat(o);if(!c.hasOwnProperty(i))throw"Missing target node with id: ".concat(i);var a=c[o],s=c[i];function u(e){return"object"===A(e)?t(e):e}a.out.push(s)}));var l=[];return d(Object.values(c)),Object.assign.apply(Object,[{}].concat(q(Object.entries(c).filter((function(e){return!G(e,2)[1].skip})).map((function(e){var t=G(e,2);return D({},t[0],t[1].depth)})))));function d(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=0,i=e.length;oa.depth&&(a.depth=r,d(a.out,[].concat(q(n),[a]),r+(a.skip?0:1)))}}}(e.graphData,(function(t){return t[e.nodeId]}),{nodeFilter:e.dagNodeFilter,onLoopError:e.onDagError||void 0}),L=Math.max.apply(Math,q(Object.values(R||[]))),N=e.dagLevelDistance||e.graphData.nodes.length/(L||1)*2*(-1!==["radialin","radialout"].indexOf(e.dagMode)?.7:1);if(e.dagMode){var B=function(t,n){return function(r){return t?(R[r[e.nodeId]]-L/2)*N*(n?-1:1):void 0}},z=B(-1!==["lr","rl"].indexOf(e.dagMode),"rl"===e.dagMode),F=B(-1!==["td","bu"].indexOf(e.dagMode),"td"===e.dagMode),H=B(-1!==["zin","zout"].indexOf(e.dagMode),"zout"===e.dagMode);e.graphData.nodes.filter(e.dagNodeFilter).forEach((function(e){e.fx=z(e),e.fy=F(e),e.fz=H(e)}))}e.d3ForceLayout.force("dagRadial",-1!==["radialin","radialout"].indexOf(e.dagMode)?(0,u.Z)((function(t){var n=R[t[e.nodeId]]||-1;return("radialin"===e.dagMode?L-n:n)*N})).strength((function(t){return e.dagNodeFilter(t)?1:0})):null)}else{var V=ie.graph();e.graphData.nodes.forEach((function(t){V.addNode(t[e.nodeId])})),e.graphData.links.forEach((function(e){V.addLink(e.source,e.target)})),(S=ie.forcelayout(V,I({dimensions:e.numDimensions},e.ngraphPhysics))).graph=V}for(var W=0;W0&&e.d3ForceLayout.alpha()=0&&n.push(e)})),n.length<2)return[];n.includes(e[0])&&n.includes(e[e.length-1])&&e.push(e.shift()),n.includes(t[0])&&n.includes(t[t.length-1])&&t.push(t.shift()),n=[],e.forEach((function(e){t.includes(e)&&n.push(e)}));for(var r=n[1],o=n[0],i=e.slice();i[0]!==r;)i.push(i.shift());for(var a=0,s=t.slice();s[0]!==o;)if(s.push(s.shift()),a++>10)throw new Error("Unexpected state");return s.shift(),s.pop(),i.concat(s)},r.setPolygonCentroid=function(e,t){var n=new THREE.Vector3,r=t.vertices;e.vertexIds.forEach((function(e){n.add(r[e])})),n.divideScalar(e.vertexIds.length),e.centroid.copy(n)},r.cleanPolygon=function(e,t){for(var n=[],r=t.vertices,o=0;oMath.PI-.01&&d0?function(e){e<0&&(r=!1)}:function(e){e>0&&(r=!1)}),r},r.distanceToSquared=function(e,t){var n=e.x-t.x,r=e.y-t.y,o=e.z-t.z;return n*n+r*r+o*o},r.isPointInPoly=function(e,t){for(var n=!1,r=-1,o=e.length,i=o-1;++rr-.5&&this.isPointInPoly(i,e))},r.triarea2=function(e,t,n){return(n.x-e.x)*(t.z-e.z)-(t.x-e.x)*(n.z-e.z)},r.vequal=function(e,t){return this.distanceToSquared(e,t)<1e-5};var o=function(e){this.content=[],this.scoreFunction=e};o.prototype.push=function(e){this.content.push(e),this.sinkDown(this.content.length-1)},o.prototype.pop=function(){var e=this.content[0],t=this.content.pop();return this.content.length>0&&(this.content[0]=t,this.bubbleUp(0)),e},o.prototype.remove=function(e){var t=this.content.indexOf(e),n=this.content.pop();t!==this.content.length-1&&(this.content[t]=n,this.scoreFunction(n)0;){var n=(e+1>>1)-1,r=this.content[n];if(!(this.scoreFunction(t)0;){var o=r.pop();if(o===n){for(var i=o,a=[];i.parent;)a.push(i),i=i.parent;return this.cleanUp(a),a.reverse()}o.closed=!0;for(var s=this.neighbours(e,o),u=0,c=s.length;u0)){i.push(t),t=e=t,n=e,s=a=s,u=a,c=a;continue}n=d,u=c}if(r.triarea2(e,t,l)>=0){if(!(r.vequal(e,t)||r.triarea2(e,n,l)<0)){i.push(n),t=e=n,n=e,s=a=u,u=a,c=a;continue}t=l,s=c}}return 0!==i.length&&r.vequal(i[i.length-1],o[o.length-1].left)||i.push(o[o.length-1].left),this.path=i,i};var c,l,d,f,p,h,v=function(){this.zones={}};v.createZone=function(e){return s.buildZone(e)},v.prototype.setZoneData=function(e,t){this.zones[e]=t},v.prototype.getGroup=function(e,t){if(!this.zones[e])return null;var n=null,o=Math.pow(50,2);return this.zones[e].groups.forEach((function(e,i){e.forEach((function(e){var a=r.distanceToSquared(e.centroid,t);a2))for(var y=0;ye.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"rgba(255, 255, 255, 1)";return o(this,u),(e=a.call(this,new h.SpriteMaterial({map:new h.Texture})))._text="".concat(t),e._textHeight=n,e._color=r,e._backgroundColor=!1,e._padding=0,e._borderWidth=0,e._borderRadius=0,e._borderColor="white",e._strokeWidth=0,e._strokeColor="white",e._fontFace="Arial",e._fontSize=90,e._fontWeight="normal",e._canvas=document.createElement("canvas"),e._texture=e.material.map,e._texture.minFilter=h.LinearFilter,e._genCanvas(),e}return t=u,(n=[{key:"text",get:function(){return this._text},set:function(e){this._text=e,this._genCanvas()}},{key:"textHeight",get:function(){return this._textHeight},set:function(e){this._textHeight=e,this._genCanvas()}},{key:"color",get:function(){return this._color},set:function(e){this._color=e,this._genCanvas()}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(e){this._backgroundColor=e,this._genCanvas()}},{key:"padding",get:function(){return this._padding},set:function(e){this._padding=e,this._genCanvas()}},{key:"borderWidth",get:function(){return this._borderWidth},set:function(e){this._borderWidth=e,this._genCanvas()}},{key:"borderRadius",get:function(){return this._borderRadius},set:function(e){this._borderRadius=e,this._genCanvas()}},{key:"borderColor",get:function(){return this._borderColor},set:function(e){this._borderColor=e,this._genCanvas()}},{key:"fontFace",get:function(){return this._fontFace},set:function(e){this._fontFace=e,this._genCanvas()}},{key:"fontSize",get:function(){return this._fontSize},set:function(e){this._fontSize=e,this._genCanvas()}},{key:"fontWeight",get:function(){return this._fontWeight},set:function(e){this._fontWeight=e,this._genCanvas()}},{key:"strokeWidth",get:function(){return this._strokeWidth},set:function(e){this._strokeWidth=e,this._genCanvas()}},{key:"strokeColor",get:function(){return this._strokeColor},set:function(e){this._strokeColor=e,this._genCanvas()}},{key:"_genCanvas",value:function(){var e=this,t=this._canvas,n=t.getContext("2d"),r=Array.isArray(this.borderWidth)?this.borderWidth:[this.borderWidth,this.borderWidth],o=r.map((function(t){return t*e.fontSize*.1})),i=(Array.isArray(this.borderRadius)?this.borderRadius:[this.borderRadius,this.borderRadius,this.borderRadius,this.borderRadius]).map((function(t){return t*e.fontSize*.1})),a=Array.isArray(this.padding)?this.padding:[this.padding,this.padding],s=a.map((function(t){return t*e.fontSize*.1})),u=this.text.split("\n"),c="".concat(this.fontWeight," ").concat(this.fontSize,"px ").concat(this.fontFace);n.font=c;var f=Math.max.apply(Math,d(u.map((function(e){return n.measureText(e).width})))),p=this.fontSize*u.length;if(t.width=f+2*o[0]+2*s[0],t.height=p+2*o[1]+2*s[1],this.borderWidth){if(n.strokeStyle=this.borderColor,o[0]){var h=o[0]/2;n.lineWidth=o[0],n.beginPath(),n.moveTo(h,i[0]),n.lineTo(h,t.height-i[3]),n.moveTo(t.width-h,i[1]),n.lineTo(t.width-h,t.height-i[2]),n.stroke()}if(o[1]){var v=o[1]/2;n.lineWidth=o[1],n.beginPath(),n.moveTo(Math.max(o[0],i[0]),v),n.lineTo(t.width-Math.max(o[0],i[1]),v),n.moveTo(Math.max(o[0],i[3]),t.height-v),n.lineTo(t.width-Math.max(o[0],i[2]),t.height-v),n.stroke()}if(this.borderRadius){var m=Math.max.apply(Math,d(o)),g=m/2;n.lineWidth=m,n.beginPath(),[!!i[0]&&[i[0],g,g,i[0]],!!i[1]&&[t.width-i[1],t.width-g,g,i[1]],!!i[2]&&[t.width-i[2],t.width-g,t.height-g,t.height-i[2]],!!i[3]&&[i[3],g,t.height-g,t.height-i[3]]].filter((function(e){return e})).forEach((function(e){var t=l(e,4),r=t[0],o=t[1],i=t[2],a=t[3];n.moveTo(r,i),n.quadraticCurveTo(o,i,o,a)})),n.stroke()}}this.backgroundColor&&(n.fillStyle=this.backgroundColor,this.borderRadius?(n.beginPath(),n.moveTo(o[0],i[0]),[[o[0],i[0],t.width-i[1],o[1],o[1],o[1]],[t.width-o[0],t.width-o[0],t.width-o[0],o[1],i[1],t.height-i[2]],[t.width-o[0],t.width-i[2],i[3],t.height-o[1],t.height-o[1],t.height-o[1]],[o[0],o[0],o[0],t.height-o[1],t.height-i[3],i[0]]].forEach((function(e){var t=l(e,6),r=t[0],o=t[1],i=t[2],a=t[3],s=t[4],u=t[5];n.quadraticCurveTo(r,a,o,s),n.lineTo(i,u)})),n.closePath(),n.fill()):n.fillRect(o[0],o[1],t.width-2*o[0],t.height-2*o[1])),n.translate.apply(n,d(o)),n.translate.apply(n,d(s)),n.font=c,n.fillStyle=this.color,n.textBaseline="bottom";var y=this.strokeWidth>0;y&&(n.lineWidth=this.strokeWidth*this.fontSize/10,n.strokeStyle=this.strokeColor),u.forEach((function(t,r){var o=(f-n.measureText(t).width)/2,i=(r+1)*e.fontSize;y&&n.strokeText(t,o,i),n.fillText(t,o,i)})),this._texture.image=t,this._texture.needsUpdate=!0;var b=this.textHeight*u.length+2*r[1]+2*a[1];this.scale.set(b*t.width/t.height,b,0)}},{key:"clone",value:function(){return new this.constructor(this.text,this.textHeight,this.color).copy(this)}},{key:"copy",value:function(e){return h.Sprite.prototype.copy.call(this,e),this.color=e.color,this.backgroundColor=e.backgroundColor,this.padding=e.padding,this.borderWidth=e.borderWidth,this.borderColor=e.borderColor,this.fontFace=e.fontFace,this.fontSize=e.fontSize,this.fontWeight=e.fontWeight,this.strokeWidth=e.strokeWidth,this.strokeColor=e.strokeColor,this}}])&&i(t.prototype,n),r&&i(t,r),u}(h.Sprite);t.Z=v},6189:function(e,t,n){var r=n(7966);e.exports=function(e){return r(e).replace(/\s(\w)/g,(function(e,t){return t.toUpperCase()}))}},71788:function(e){e.exports=function(e){return t.test(e)?e.toLowerCase():n.test(e)?(function(e){return e.replace(o,(function(e,t){return t?" "+t:""}))}(e)||e).toLowerCase():r.test(e)?function(e){return e.replace(i,(function(e,t,n){return t+" "+n.toLowerCase().split("").join(" ")}))}(e).toLowerCase():e.toLowerCase()};var t=/\s/,n=/(_|-|\.|:)/,r=/([a-z][A-Z]|[A-Z][a-z])/;var o=/[\W_]+(.|$)/g;var i=/(.)([A-Z]+)/g},7966:function(e,t,n){var r=n(71788);e.exports=function(e){return r(e).replace(/[\W_]+(.|$)/g,(function(e,t){return t?" "+t:""})).trim()}},11742:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r