PageSourceSearch

https://hightouch.com/docs/_next/static/chunks/pages/_app-128f89bf7ecf9863.js

js hightouch.com collected 2026-09-24 07:23:58 UTC 1,012,259 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[92888],{17331:function(e){function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(e){return"function"===typeof e}function r(e){return"object"===typeof e&&null!==e}function i(e){return void 0===e}e.exports=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},t.prototype.emit=function(e){var t,o,a,s,u,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||r(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(i(o=this._events[e]))return!1;if(n(o))switch(arguments.length){case 1:o.call(this);break;case 2:o.call(this,arguments[1]);break;case 3:o.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),o.apply(this,s)}else if(r(o))for(s=Array.prototype.slice.call(arguments,1),a=(c=o.slice()).length,u=0;u<a;u++)c[u].apply(this,s);return!0},t.prototype.addListener=function(e,o){var a;if(!n(o))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,n(o.listener)?o.listener:o),this._events[e]?r(this._events[e])?this._events[e].push(o):this._events[e]=[this._events[e],o]:this._events[e]=o,r(this._events[e])&&!this._events[e].warned&&(a=i(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"===typeof console.trace&&console.trace()),this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(e,t){if(!n(t))throw TypeError("listener must be a function");var r=!1;function i(){this.removeListener(e,i),r||(r=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},t.prototype.removeListener=function(e,t){var i,o,a,s;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(i=this._events[e]).length,o=-1,i===t||n(i.listener)&&i.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(r(i)){for(s=a;s-- >0;)if(i[s]===t||i[s].listener&&i[s].listener===t){o=s;break}if(o<0)return this;1===i.length?(i.length=0,delete this._events[e]):i.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},t.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},t.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},t.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},t.listenerCount=function(e,t){return e.listenerCount(t)}},15193:function(e,t,n){"use strict";n.d(t,{hU:function(){return C},zx:function(){return S}});var r=n(97375),i=n(5993),o=n(15031),a=n(38554),s=n.n(a),u=n(67294),c=n(26450),l=n(49609);function d(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}var p=["size","colorScheme","variant","className","spacing","isAttached","isDisabled"],h=(0,c.kr)({strict:!1,name:"ButtonGroupContext"}),m=h[0],v=h[1],g=(0,i.Gp)((function(e,t){var n=e.size,r=e.colorScheme,a=e.variant,s=e.className,c=e.spacing,l=void 0===c?"0.5rem":c,h=e.isAttached,v=e.isDisabled,g=d(e,p),y=(0,o.cx)("chakra-button__group",s),b=u.useMemo((function(){return{size:n,colorScheme:r,variant:a,isDisabled:v}}),[n,r,a,v]),x={display:"inline-flex"};return x=f({},x,h?{"> *: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:l}}),u.createElement(m,{value:b},u.createElement(i.m$.div,f({ref:t,role:"group",__css:x,className:y},g)))}));o.Ts&&(g.displayName="ButtonGroup");var y=["label","placement","spacing","children","className","__css"],b=function(e){var t=e.label,n=e.placement,r=e.spacing,a=void 0===r?"0.5rem":r,s=e.children,c=void 0===s?u.createElement(l.$,{color:"currentColor",width:"1em",height:"1em"}
1):s,p=e.className,h=e.__css,m=d(e,y),v=(0,o.cx)("chakra-button__spinner",p),g="start"===n?"marginEnd":"marginStart",b=u.useMemo((function(){var e;return f(((e={display:"flex",alignItems:"center",position:t?"relative":"absolute"})[g]=t?a:0,e.fontSize="1em",e.lineHeight="normal",e),h)}),[h,t,g,a]);return u.createElement(i.m$.div,f({className:v},m,{__css:b}),c)};o.Ts&&(b.displayName="ButtonSpinner");var x=["children","className"],_=function(e){var t=e.children,n=e.className,r=d(e,x),a=u.isValidElement(t)?u.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,s=(0,o.cx)("chakra-button__icon",n);return u.createElement(i.m$.span,f({display:"inline-flex",alignSelf:"center",flexShrink:0},r,{className:s}),a)};o.Ts&&(_.displayName="ButtonIcon");var w=["isDisabled","isLoading","isActive","isFullWidth","children","leftIcon","rightIcon","loadingText","iconSpacing","type","spinner","spinnerPlacement","className","as"],S=(0,i.Gp)((function(e,t){var n=v(),a=(0,i.mq)("Button",f({},n,e)),c=(0,i.Lr)(e),l=c.isDisabled,p=void 0===l?null==n?void 0:n.isDisabled:l,h=c.isLoading,m=c.isActive,g=c.isFullWidth,y=c.children,x=c.leftIcon,_=c.rightIcon,S=c.loadingText,E=c.iconSpacing,C=void 0===E?"0.5rem":E,j=c.type,T=c.spinner,R=c.spinnerPlacement,O=void 0===R?"start":R,P=c.className,A=c.as,D=d(c,w),I=u.useMemo((function(){var e,t=s()({},null!=(e=null==a?void 0:a._focus)?e:{},{zIndex:1});return f({display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",width:g?"100%":"auto"},a,!!n&&{_focus:t})}),[a,n,g]),N=function(e){var t=u.useState(!e),n=t[0],r=t[1];return{ref:u.useCallback((function(e){e&&r("BUTTON"===e.tagName)}),[]),type:n?"button":void 0}}(A),M=N.ref,F=N.type,B={rightIcon:_,leftIcon:x,iconSpacing:C,children:y};return u.createElement(i.m$.button,f({disabled:p||h,ref:(0,r.qq)(t,M),as:A,type:null!=j?j:F,"data-active":(0,o.PB)(m),"data-loading":(0,o.PB)(h),__css:I,className:(0,o.cx)("chakra-button",P)},D),h&&"start"===O&&u.createElement(b,{className:"chakra-button__spinner--start",label:S,placement:"start",spacing:C},T),h?S||u.createElement(i.m$.span,{opacity:0},u.createElement(k,B)):u.createElement(k,B),h&&"end"===O&&u.createElement(b,{className:"chakra-button__spinner--end",label:S,placement:"end",spacing:C},T))}));function k(e){var t=e.leftIcon,n=e.rightIcon,r=e.children,i=e.iconSpacing;return u.createElement(u.Fragment,null,t&&u.createElement(_,{marginEnd:i},t),r,n&&u.createElement(_,{marginStart:i},n))}o.Ts&&(S.displayName="Button");var E=["icon","children","isRound","aria-label"],C=(0,i.Gp)((function(e,t){var n=e.icon,r=e.children,i=e.isRound,o=e["aria-label"],a=d(e,E),s=n||r,c=u.isValidElement(s)?u.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;return u.createElement(S,f({padding:"0",borderRadius:i?"full":void 0,ref:t,"aria-label":o},a),c)}));o.Ts&&(C.displayName="IconButton")},20949:function(e,t,n){"use strict";n.d(t,{If:function(){return y},SG:function(){return b}});var r=n(85393),i=n(15031),o=n(67294);var a="chakra-ui-light",s="chakra-ui-dark",u={classList:{add:i.ZT,remove:i.ZT}};function c(e,t){var n=function(e){return i.jU?e.body:u}(t);n.classList.add(e?s:a),n.classList.remove(e?a:s)}var l="(prefers-color-scheme: dark)";function d(e){var t;return(null!=(t=function(e){var t=null==window.matchMedia?void 0:window.matchMedia(e);if(t)return!!t.media===t.matches}(l))?t:"dark"===e)?"dark":"light"}var f=function(){return document.documentElement.style.getPropertyValue("--chakra-ui-color-mode")||document.documentElement.dataset.theme},p=function(e){i.jU&&(document.documentElement.style.setProperty("--chakra-ui-color-mode",e),document.documentElement.setAttribute("data-theme",e))},h=function(){return"undefined"!==typeof Storage},m="chakra-ui-color-mode",v={get:function(e){if(!h())return e;try{var t=localStorage.getItem(m);return null!=t?t:e}catch(n){return i.Ts&&console.log(n),e}},set:function(e){if(h())try{localStorage.setItem(m,e)}catch(t){i.Ts&&console.log(t)}},type:"localStorage"},g=o.createContext({});i.Ts&&(g.displayName="ColorModeContext");var y=function(){var e=o.useContext(g);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e};function b(e){var t=e.value,n=e.children,a=e.options,s=a.useSystemColorMode,u=a.initialColorMode,h=e.colorModeManager,m=void 0===h?v:h,y="dark"===u?"dark":"light",b=o.useState("cookie"===m.type?m.get(y):y),x=b[0],_=b[1],w=(0,r.O)().document;o.useEffect((function(){if(i.jU&&"localStorage"===m.type){var e=d(y);if(s)return _(e);var t=f(),n=m.get();return _(t?t:n||("system"===u?e:y))}}),[m,s,y,u]),o.useEffect((function(){var e="dark"===x;c(e,w),p(e?"dark":"light")}),[x,w]);var S=o.useCallback((function(e,t){if(void 0===t&&(t=!1),t){if(m.get()&&!s)return}else m.set(e);_(e)}),[m,s]),k=o.useCallback((function(){S("light"===x?"dark":"light")}),[x,S]);o.useEffect((function(){var e,t=s||"system"===u;return t&&(e=function(e){if(!("matchMedia"in window))return i.ZT;
1var t=window.matchMedia(l),n=function(){e(t.matches?"dark":"light",!0)};return t.addEventListener("change",n),function(){t.removeEventListener("change",n)}}(S)),function(){e&&t&&e()}}),[S,s,u]);var E=o.useMemo((function(){return{colorMode:null!=t?t:x,toggleColorMode:t?i.ZT:k,setColorMode:t?i.ZT:S}}),[x,S,k,t]);return o.createElement(g.Provider,{value:E},n)}i.Ts&&(b.displayName="ColorModeProvider");i.Ts;i.Ts},40242:function(e,t,n){"use strict";n.d(t,{n:function(){return h}});var r=n(26450),i=n(67294);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){return e.sort((function(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,l=function(){var e=this;this.descendants=new Map,this.register=function(t){var n;if(null!=t)return"object"==typeof(n=t)&&"nodeType"in n&&n.nodeType===Node.ELEMENT_NODE?e.registerNode(t):function(n){e.registerNode(n,t)}},this.unregister=function(t){e.descendants.delete(t);var n=a(Array.from(e.descendants.keys()));e.assignIndex(n)},this.destroy=function(){e.descendants.clear()}
1,this.assignIndex=function(t){e.descendants.forEach((function(e){var n=t.indexOf(e.node);e.index=n,e.node.dataset.index=e.index.toString()}))},this.count=function(){return e.descendants.size},this.enabledCount=function(){return e.enabledValues().length},this.values=function(){return Array.from(e.descendants.values()).sort((function(e,t){return e.index-t.index}))},this.enabledValues=function(){return e.values().filter((function(e){return!e.disabled}))},this.item=function(t){if(0!==e.count())return e.values()[t]},this.enabledItem=function(t){if(0!==e.enabledCount())return e.enabledValues()[t]},this.first=function(){return e.item(0)},this.firstEnabled=function(){return e.enabledItem(0)},this.last=function(){return e.item(e.descendants.size-1)},this.lastEnabled=function(){var t=e.enabledValues().length-1;return e.enabledItem(t)},this.indexOf=function(t){var n,r;return t&&null!=(n=null==(r=e.descendants.get(t))?void 0:r.index)?n:-1},this.enabledIndexOf=function(t){return null==t?-1:e.enabledValues().findIndex((function(e){return e.node.isSameNode(t)}))},this.next=function(t,n){void 0===n&&(n=!0);var r=s(t,e.count(),n);return e.item(r)},this.nextEnabled=function(t,n){void 0===n&&(n=!0);var r=e.item(t);if(r){var i=s(e.enabledIndexOf(r.node),e.enabledCount(),n);return e.enabledItem(i)}},this.prev=function(t,n){void 0===n&&(n=!0);var r=u(t,e.count()-1,n);return e.item(r)},this.prevEnabled=function(t,n){void 0===n&&(n=!0);var r=e.item(t);if(r){var i=u(e.enabledIndexOf(r.node),e.enabledCount()-1,n);return e.enabledItem(i)}},this.registerNode=function(t,n){if(t&&!e.descendants.has(t)){var r=a(Array.from(e.descendants.keys()).concat(t));null!=n&&n.disabled&&(n.disabled=!!n.disabled);var i=o({node:t,index:-1},n);e.descendants.set(t,i),e.assignIndex(r)}}};var d=(0,r.kr)({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"}),f=d[0],p=d[1];function h(){return[f,function(){return p()},function(){return function(){var e=(0,i.useRef)(new l);return c((function(){return function(){return e.current.destroy()}})),e.current}()},function(e){return function(e){var t=p(),n=(0,i.useState)(-1),o=n[0],a=n[1],s=(0,i.useRef)(null);c((function(){return function(){s.current&&t.unregister(s.current)}}),[]),c((function(){if(s.current){var e=Number(s.current.dataset.index);o==e||Number.isNaN(e)||a(e)}}));var u=e?t.register(e):t.register;return{descendants:t,index:o,enabledIndex:t.enabledIndexOf(s.current),register:(0,r.lq)(u,s)}}(e)}]}},79762:function(e,t,n){"use strict";n.d(t,{Yp:function(){return x}});var r=n(97375),i=n(5993),o=n(15031),a=n(26450),s=n(67294),u=n(10894);function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function l(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var d=["id","isRequired","isInvalid","isDisabled","isReadOnly"],f=["getRootProps","htmlProps"],p=(0,a.kr)({strict:!1,name:"FormControlContext"}),h=p[0],m=p[1];var v=(0,i.Gp)((function(e,t){var n=(0,i.jC)("Form",e),u=function(e){var t=e.id,n=e.isRequired,i=e.isInvalid,u=e.isDisabled,f=e.isReadOnly,p=l(e,d),h=(0,r.Me)(),m=t||"field-"+h,v=m+"-label",g=m+"-feedback",y=m+"-helptext",b=s.useState(!1),x=b[0],_=b[1],w=s.useState(!1),S=w[0],k=w[1],E=(0,r.kt)(),C=E[0],j=E[1],T=s.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),c({id:y},e,{ref:(0,a.lq)(t,(function(e){e&&k(!0)}))})}),[y]),R=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,o.PB)(C),"data-disabled":(0,o.PB)(u),"data-invalid":(0,o.PB)(i),"data-readonly":(0,o.PB)(f),id:null!=(n=e.id)?n:v,htmlFor:null!=(r=e.htmlFor)?r:m})}),[m,u,C,i,f,v]),O=s.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),c({id:g},e,{ref:(0,a.lq)(t,(function(e){e&&_(!0)})),"aria-live":"polite"})}),[g]),P=s.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),c({},e,p,{ref:t,role:"group"})}),[p]),A=s.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),c({}
1,e,{ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"})}),[]);return{isRequired:!!n,isInvalid:!!i,isReadOnly:!!f,isDisabled:!!u,isFocused:!!C,onFocus:j.on,onBlur:j.off,hasFeedbackText:x,setHasFeedbackText:_,hasHelpText:S,setHasHelpText:k,id:m,labelId:v,feedbackId:g,helpTextId:y,htmlProps:p,getHelpTextProps:T,getErrorMessageProps:O,getRootProps:P,getLabelProps:R,getRequiredIndicatorProps:A}}((0,i.Lr)(e)),p=u.getRootProps;u.htmlProps;var m=l(u,f),v=(0,o.cx)("chakra-form-control",e.className);return s.createElement(h,{value:m},s.createElement(i.Fo,{value:n},s.createElement(i.m$.div,c({},p({},t),{className:v,__css:n.container}))))}));o.Ts&&(v.displayName="FormControl");var g=(0,i.Gp)((function(e,t){var n=m(),r=(0,i.yK)(),a=(0,o.cx)("chakra-form__helper-text",e.className);return s.createElement(i.m$.div,c({},null==n?void 0:n.getHelpTextProps(e,t),{__css:r.helperText,className:a}))}));o.Ts&&(g.displayName="FormHelperText");var y=["isDisabled","isInvalid","isReadOnly","isRequired"],b=["id","disabled","readOnly","required","isRequired","isInvalid","isReadOnly","isDisabled","onFocus","onBlur"];function x(e){var t=function(e){var t,n,r,i=m(),a=e.id,s=e.disabled,u=e.readOnly,d=e.required,f=e.isRequired,p=e.isInvalid,h=e.isReadOnly,v=e.isDisabled,g=e.onFocus,y=e.onBlur,x=l(e,b),_=e["aria-describedby"]?[e["aria-describedby"]]:[];null!=i&&i.hasFeedbackText&&null!=i&&i.isInvalid&&_.push(i.feedbackId);null!=i&&i.hasHelpText&&_.push(i.helpTextId);return c({},x,{"aria-describedby":_.join(" ")||void 0,id:null!=a?a:null==i?void 0:i.id,isDisabled:null!=(t=null!=s?s:v)?t:null==i?void 0:i.isDisabled,isReadOnly:null!=(n=null!=u?u:h)?n:null==i?void 0:i.isReadOnly,isRequired:null!=(r=null!=d?d:f)?r:null==i?void 0:i.isRequired,isInvalid:null!=p?p:null==i?void 0:i.isInvalid,onFocus:(0,o.v0)(null==i?void 0:i.onFocus,g),onBlur:(0,o.v0)(null==i?void 0:i.onBlur,y)})}(e),n=t.isDisabled,r=t.isInvalid,i=t.isReadOnly,a=t.isRequired;return c({},l(t,y),{disabled:n,readOnly:i,required:a,"aria-invalid":(0,o.Qm)(r),"aria-required":(0,o.Qm)(a),"aria-readonly":(0,o.Qm)(i)})}var _=(0,i.Gp)((function(e,t){var n=(0,i.jC)("FormError",e),r=(0,i.Lr)(e),a=m();return null!=a&&a.isInvalid?s.createElement(i.Fo,{value:n},s.createElement(i.m$.div,c({},null==a?void 0:a.getErrorMessageProps(r,t),{className:(0,o.cx)("chakra-form__error-message",e.className),__css:c({display:"flex",alignItems:"center"},n.text)}))):null}));o.Ts&&(_.displayName="FormErrorMessage");var w=(0,i.Gp)((function(e,t){var n=(0,i.yK)(),r=m();if(null==r||!r.isInvalid)return null;var a=(0,o.cx)("chakra-form__error-icon",e.className);return s.createElement(u.ZP,c({ref:t,"aria-hidden":!0},e,{__css:n.icon,className:a}),s.createElement("path",{fill:"currentColor",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"}))}));o.Ts&&(w.displayName="FormErrorIcon");var S=["className","children","requiredIndicator"],k=(0,i.Gp)((function(e,t){var n,r=(0,i.mq)("FormLabel",e),a=(0,i.Lr)(e);a.className;var u=a.children,d=a.requiredIndicator,f=void 0===d?s.createElement(E,null):d,p=l(a,S),h=m(),v=null!=(n=null==h?void 0:h.getLabelProps(p,t))?n:c({ref:t},p);return s.createElement(i.m$.label,c({},v,{className:(0,o.cx)("chakra-form__label",a.className),__css:c({display:"block",textAlign:"start"},r)}),u,null!=h&&h.isRequired?f:null)}));o.Ts&&(k.displayName="FormLabel");var E=(0,i.Gp)((function(e,t){var n=m(),r=(0,i.yK)();if(null==n||!n.isRequired)return null;var a=(0,o.cx)("chakra-form__required-indicator",e.className);return s.createElement(i.m$.span,c({},null==n?void 0:n.getRequiredIndicatorProps(e,t),{__css:r.requiredIndicator,className:a}))}));o.Ts&&(E.displayName="RequiredIndicator")},97375:function(e,t,n){"use strict";n.d(t,{Me:function(){return v},NW:function(){return x},Tx:function(){return d},VP:function(){return l},ZS:function(){return g},kt:function(){return u},qY:function(){return y},qq:function(){return w},vc:function(){return m},zq:function(){return b}});var r=n(67294),i=n(71561),o=n(20640),a=n.n(o),s=n(15031);function u(e){void 0===e&&(e=!1);var t=(0,r.useState)(e),n=t[0],i=t[1];return[n,{on:(0,r.useCallback)((function(){i(!0)}),[]),off:(0,r.useCallback)((function(){i(!1)}),[]),toggle:(0,r.useCallback)((function(){i((function(e){return!e}))}),[])}]}var c=["timeout"];function l(e,t){void 0===t&&(t={});var n=(0,r.useState)(!1),i=n[0],o=n[1],s="number"===typeof t?{timeout:t}:t,u=s.timeout,l=void 0===u?1500:u,d=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(s,c),f=(0,r.useCallback)((function(){var t=a()(e,d);o(t)}),[e,d]);return(0,r.useEffect)((function(){var e=null;return i&&(e=window.setTimeout((function(){o(!1)}),l)),function(){e&&window.clearTimeout(e)}}),[l,i]),{value:e,onCopy:f,hasCopied:i}}function d(e){var t=e.value,n=e.defaultValue,o=e.onChange,a=e.shouldUpdate,u=void 0===a?function(e,t){return e!==t}:a,c=(0,i.u)(o),l=(0,i.u)(u),d=r.useState(n),f=d[0],p=d[1],h=void 0!==t,m=h?t:f,v=r.useCallback((function(e){var t=(0,s.Pu)(e,m);l(m,t)&&(h||p(t),c(t))}),[h,c,m,l]);return[m,v]}function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}var p={current:1},h=r.createContext(p),m=r.memo((function(e){var t=e.children;return r.createElement(h.Provider,{value:{current:1}},t)}));function v(e,t){var n=r.useContext(h),i=r.useState(n.current),o=i[0],a=i[1];return r.useEffect((function(){a(function(e){return e.current++}(n))}
1),[n]),r.useMemo((function(){return e||[t,o].filter(Boolean).join("-")}),[e,t,o])}function g(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var o=v(e);return r.useMemo((function(){return n.map((function(e){return e+"-"+o}))}),[o,n])}function y(e){void 0===e&&(e={});var t=e,n=t.onClose,o=t.onOpen,a=t.isOpen,u=t.id,c=(0,i.u)(o),l=(0,i.u)(n),d=r.useState(e.defaultIsOpen||!1),p=d[0],h=d[1],m=function(e,t){var n=void 0!==e;return[n,n&&"undefined"!==typeof e?e:t]}(a,p),g=m[0],y=m[1],b=v(u,"disclosure"),x=r.useCallback((function(){g||h(!1),null==l||l()}),[g,l]),_=r.useCallback((function(){g||h(!0),null==c||c()}),[g,c]),w=r.useCallback((function(){(y?x:_)()}),[y,_,x]);return{isOpen:!!y,onOpen:_,onClose:x,onToggle:w,isControlled:g,getButtonProps:function(e){return void 0===e&&(e={}),f({},e,{"aria-expanded":"true","aria-controls":b,onClick:(0,s.v0)(e.onClick,w)})},getDisclosureProps:function(e){return void 0===e&&(e={}),f({},e,{hidden:!y,id:b})}}}function b(e,t){return void 0===t&&(t=[]),r.useEffect((function(){return function(){return e()}}),t)}function x(){var e=r.useRef(!1),t=r.useState(0),n=t[0],i=t[1];return b((function(){e.current=!0})),r.useCallback((function(){e.current||i(n+1)}),[n])}function _(e,t){if(null!=e)if("function"!==typeof e)try{e.current=t}catch(n){throw new Error("Cannot assign value '"+t+"' to ref '"+e+"'")}else e(t)}function w(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useMemo((function(){return t.every((function(e){return null==e}))?null:function(e){t.forEach((function(t){t&&_(t,e)}))}}),t)}},71561:function(e,t,n){"use strict";n.d(t,{a:function(){return o},b:function(){return s},u:function(){return a}});var r=n(15031),i=n(67294),o=r.jU?i.useLayoutEffect:i.useEffect;function a(e,t){void 0===t&&(t=[]);var n=i.useRef(e);return o((function(){n.current=e})),i.useCallback((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current.apply(n,t)}),t)}function s(e,t,n,o){var s=a(t);return i.useEffect((function(){var t,i=null!=(t=(0,r.Pu)(n))?t:document;return i.addEventListener(e,s,o),function(){i.removeEventListener(e,s,o)}}),[e,n,o,s]),function(){var t;(null!=(t=(0,r.Pu)(n))?t:document).removeEventListener(e,s,o)}}},10894:function(e,t,n){"use strict";n.d(t,{IU:function(){return d},JO:function(){return c},ZP:function(){return l}});var r=n(5993),i=n(15031),o=n(67294);function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}var s=["as","viewBox","color","focusable","children","className","__css"],u={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:"currentColor",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"})),viewBox:"0 0 24 24"},c=(0,r.Gp)((function(e,t){var n=e.as,c=e.viewBox,l=e.color,d=void 0===l?"currentColor":l,f=e.focusable,p=void 0!==f&&f,h=e.children,m=e.className,v=e.__css,g=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,s),y={ref:t,focusable:p,className:(0,i.cx)("chakra-icon",m),__css:a({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:d},v)},b=null!=c?c:u.viewBox;if(n&&"string"!==typeof n)return o.createElement(r.m$.svg,a({as:n},y,g));var x=null!=h?h:u.path;return o.createElement(r.m$.svg,a({verticalAlign:"middle",viewBox:b},y,g),x)}));i.Ts&&(c.displayName="Icon");var l=c;function d(e){var t=e.viewBox,n=void 0===t?"0 0 24 24":t,s=e.d,u=e.displayName,l=e.defaultProps,d=void 0===l?{}:l,f=o.Children.toArray(e.path),p=(0,r.Gp)((function(e,t){return o.createElement(c,a({ref:t,viewBox:n},d,e),f.length?f:o.createElement("path",{fill:"currentColor",d:s}))}));return i.Ts&&(p.displayName=u),p}},34651:function(e,t,n){"use strict";n.d(t,{Ee:function(){return f}});var r=n(5993),i=n(15031),o=n(67294),a=n(71561);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var c=["htmlWidth","htmlHeight","alt"],l=["fallbackSrc","fallback","src","srcSet","align","fit","loading","ignoreFallback","crossOrigin"],d=o.forwardRef((function(e,t){var n=e.htmlWidth,r=e.htmlHeight,i=e.alt,a=u(e,c);return o.createElement("img",s({width:n,height:r,ref:t,alt:i},a))})),f=(0,r.Gp)((function(e,t){var n=e.fallbackSrc,c=e.fallback,f=e.src,p=e.srcSet,h=e.align,m=e.fit,v=e.loading,g=e.ignoreFallback,y=e.crossOrigin,b=u(e,l),x=null!=v||g||void 0===n&&void 0===c,_=function(e){var t=e.loading,n=e.src,r=e.srcSet,i=e.onLoad,s=e.onError,u=e.crossOrigin,c=e.sizes,l=e.ignoreFallback,d=(0,o.useState)("pending"),f=d[0],p=d[1];(0,o.useEffect)((function(){p(n?"loading":"pending")}),[n]);var h=(0,o.useRef)(),m=(0,o.useCallback)((function(){if(n){v();var e=new Image;e.src=n,u&&(e.crossOrigin=u),r&&(e.srcset=r),c&&(e.sizes=c),t&&(e.loading=t),e.onload=function(e){v(),p("loaded"),null==i||i(e)},e.onerror=function(e){v(),p("failed"),null==s||s(e)},h.current=e}}),[n,u,r,c,i,s,t]),v=function(){h.current&&(h.current.onload=null,h.current.onerror=null,h.current=null)};return(0,a.a)((function(){if(!l)return"loading"===f&&m(),function(){v()}}),[f,m,l]),l?"loaded":f}(s({},e,{ignoreFallback:x})),w=s({ref:t,objectFit:m,objectPosition:h},x?b:(0,i.CE)(b,["onError","onLoad"]));return"loaded"!==_?c||o.createElement(r.m$.img,s({as:d,className:"chakra-image__placeholder",src:n}
1,w)):o.createElement(r.m$.img,s({as:d,src:f,srcSet:p,crossOrigin:y,loading:v,className:"chakra-image"},w))}));i.Ts&&(f.displayName="Image")},4612:function(e,t,n){"use strict";n.d(t,{BZ:function(){return b},II:function(){return d},Z8:function(){return E}});var r=n(79762),i=n(5993),o=n(15031),a=n(67294),s=n(26450);function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function c(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var l=["htmlSize"],d=(0,i.Gp)((function(e,t){var n=e.htmlSize,s=c(e,l),d=(0,i.jC)("Input",s),f=(0,i.Lr)(s),p=(0,r.Yp)(f),h=(0,o.cx)("chakra-input",e.className);return a.createElement(i.m$.input,u({size:n},p,{__css:d.field,ref:t,className:h}))}));o.Ts&&(d.displayName="Input"),d.id="Input";var f=["placement"],p={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},h=(0,i.m$)("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),m=(0,i.Gp)((function(e,t){var n,r=e.placement,o=void 0===r?"left":r,s=c(e,f),l=null!=(n=p[o])?n:{},d=(0,i.yK)();return a.createElement(h,u({ref:t},s,{__css:u({},d.addon,l)}))}));o.Ts&&(m.displayName="InputAddon");var v=(0,i.Gp)((function(e,t){return a.createElement(m,u({ref:t,placement:"left"},e,{className:(0,o.cx)("chakra-input__left-addon",e.className)}))}));o.Ts&&(v.displayName="InputLeftAddon"),v.id="InputLeftAddon";var g=(0,i.Gp)((function(e,t){return a.createElement(m,u({ref:t,placement:"right"},e,{className:(0,o.cx)("chakra-input__right-addon",e.className)}))}));o.Ts&&(g.displayName="InputRightAddon"),g.id="InputRightAddon";var y=["children","className"],b=(0,i.Gp)((function(e,t){var n=(0,i.jC)("Input",e),r=(0,i.Lr)(e),l=r.children,d=r.className,f=c(r,y),p=(0,o.cx)("chakra-input__group",d),h={},m=(0,s.WR)(l),v=n.field;m.forEach((function(e){if(n){var t,r;if(v&&"InputLeftElement"===e.type.id)h.paddingStart=null!=(t=v.height)?t:v.h;if(v&&"InputRightElement"===e.type.id)h.paddingEnd=null!=(r=v.height)?r:v.h;"InputRightAddon"===e.type.id&&(h.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(h.borderStartRadius=0)}}));var g=m.map((function(t){var n,r,i=(0,o.YU)({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,i):a.cloneElement(t,Object.assign(i,h,t.props))}));return a.createElement(i.m$.div,u({className:p,ref:t,__css:{width:"100%",display:"flex",position:"relative"}},f),a.createElement(i.Fo,{value:n},g))}));o.Ts&&(b.displayName="InputGroup");var x=["placement"],_=["className"],w=["className"],S=(0,i.m$)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),k=(0,i.Gp)((function(e,t){var n,r,o,s=e.placement,l=void 0===s?"left":s,d=c(e,x),f=(0,i.yK)(),p=f.field,h=u(((o={})["left"===l?"insetStart":"insetEnd"]="0",o.width=null!=(n=null==p?void 0:p.height)?n:null==p?void 0:p.h,o.height=null!=(r=null==p?void 0:p.height)?r:null==p?void 0:p.h,o.fontSize=null==p?void 0:p.fontSize,o),f.element);return a.createElement(S,u({ref:t,__css:h},d))}));k.id="InputElement",o.Ts&&(k.displayName="InputElement");var E=(0,i.Gp)((function(e,t){var n=e.className,r=c(e,_),i=(0,o.cx)("chakra-input__left-element",n);return a.createElement(k,u({ref:t,placement:"left",className:i},r))}));E.id="InputLeftElement",o.Ts&&(E.displayName="InputLeftElement");var C=(0,i.Gp)((function(e,t){var n=e.className,r=c(e,w),i=(0,o.cx)("chakra-input__right-element",n);return a.createElement(k,u({ref:t,placement:"right",className:i},r))}));C.id="InputRightElement",o.Ts&&(C.displayName="InputRightElement")},68527:function(e,t,n){"use strict";n.d(t,{Ct:function(){return h},EK:function(){return w},HC:function(){return Z},M5:function(){return x},MI:function(){return K},QI:function(){return q},Ug:function(){return ne},X6:function(){return D},gC:function(){return re},kC:function(){return R},oM:function(){return f},rU:function(){return F},xu:function(){return g},xv:function(){return oe}});var r=n(5993),i=n(94244),o=n(15031),a=n(67294),s=n(10894),u=n(26450);function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function l(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var d=["ratio","children","className"],f=(0,r.Gp)((function(e,t){var n=e.ratio,i=void 0===n?4/3:n,s=e.children,u=e.className,f=l(e,d),p=a.Children.only(s),h=(0,o.cx)("chakra-aspect-ratio",u);return a.createElement(r.m$.div,c({ref:t,position:"relative",className:h,_before:{height:0,content:'""',dis
1play:"block",paddingBottom:(0,o.XQ)(i,(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"}}},f),p)}));o.Ts&&(f.displayName="AspectRatio");var p=["className"],h=(0,r.Gp)((function(e,t){var n=(0,r.mq)("Badge",e),i=(0,r.Lr)(e);i.className;var s=l(i,p);return a.createElement(r.m$.span,c({ref:t,className:(0,o.cx)("chakra-badge",e.className)},s,{__css:c({display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle"},n)}))}));o.Ts&&(h.displayName="Badge");var m=["size","centerContent"],v=["size"],g=(0,r.m$)("div");o.Ts&&(g.displayName="Box");var y=(0,r.Gp)((function(e,t){var n=e.size,r=e.centerContent,i=void 0===r||r,o=l(e,m),s=i?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return a.createElement(g,c({ref:t,boxSize:n,__css:c({},s,{flexShrink:0,flexGrow:0})},o))}));o.Ts&&(y.displayName="Square");var b=(0,r.Gp)((function(e,t){var n=e.size,r=l(e,v);return a.createElement(y,c({size:n,ref:t,borderRadius:"9999px"},r))}));o.Ts&&(b.displayName="Circle");var x=(0,r.m$)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});o.Ts&&(x.displayName="Center");var _=["className"],w=(0,r.Gp)((function(e,t){var n=(0,r.mq)("Code",e),i=(0,r.Lr)(e);i.className;var s=l(i,_);return a.createElement(r.m$.code,c({ref:t,className:(0,o.cx)("chakra-code",e.className)},s,{__css:c({display:"inline-block"},n)}))}));o.Ts&&(w.displayName="Code");var S=["className","centerContent"],k=(0,r.Gp)((function(e,t){var n=(0,r.Lr)(e),i=n.className,s=n.centerContent,u=l(n,S),d=(0,r.mq)("Container",e);return a.createElement(r.m$.div,c({ref:t,className:(0,o.cx)("chakra-container",i)},u,{__css:c({},d,s&&{display:"flex",flexDirection:"column",alignItems:"center"})}))}));o.Ts&&(k.displayName="Container");var E=["borderLeftWidth","borderBottomWidth","borderTopWidth","borderRightWidth","borderWidth","borderStyle","borderColor"],C=["className","orientation","__css"],j=(0,r.Gp)((function(e,t){var n=(0,r.mq)("Divider",e),i=n.borderLeftWidth,s=n.borderBottomWidth,u=n.borderTopWidth,d=n.borderRightWidth,f=n.borderWidth,p=n.borderStyle,h=n.borderColor,m=l(n,E),v=(0,r.Lr)(e),g=v.className,y=v.orientation,b=void 0===y?"horizontal":y,x=v.__css,_=l(v,C),w={vertical:{borderLeftWidth:i||d||f||"1px",height:"100%"},horizontal:{borderBottomWidth:s||u||f||"1px",width:"100%"}};return a.createElement(r.m$.hr,c({ref:t,"aria-orientation":b},_,{__css:c({},m,{border:"0",borderColor:h,borderStyle:p},w[b],x),className:(0,o.cx)("chakra-divider",g)}))}));o.Ts&&(j.displayName="Divider");var T=["direction","align","justify","wrap","basis","grow","shrink"],R=(0,r.Gp)((function(e,t){var n=e.direction,i=e.align,o=e.justify,s=e.wrap,u=e.basis,d=e.grow,f=e.shrink,p=l(e,T),h={display:"flex",flexDirection:n,alignItems:i,justifyContent:o,flexWrap:s,flexBasis:u,flexGrow:d,flexShrink:f};return a.createElement(r.m$.div,c({ref:t,__css:h},p))}));o.Ts&&(R.displayName="Flex");var O=["area","templateAreas","gap","rowGap","columnGap","column","row","autoFlow","autoRows","templateRows","autoColumns","templateColumns"],P=(0,r.Gp)((function(e,t){var n=e.area,i=e.templateAreas,o=e.gap,s=e.rowGap,u=e.columnGap,d=e.column,f=e.row,p=e.autoFlow,h=e.autoRows,m=e.templateRows,v=e.autoColumns,g=e.templateColumns,y=l(e,O),b={display:"grid",gridArea:n,gridTemplateAreas:i,gridGap:o,gridRowGap:s,gridColumnGap:u,gridAutoColumns:v,gridColumn:d,gridRow:f,gridAutoFlow:p,gridAutoRows:h,gridTemplateRows:m,gridTemplateColumns:g};return a.createElement(r.m$.div,c({ref:t,__css:b},y))}));o.Ts&&(P.displayName="Grid");var A=["className"],D=(0,r.Gp)((function(e,t){var n=(0,r.mq)("Heading",e),i=(0,r.Lr)(e);i.className;var s=l(i,A);return a.createElement(r.m$.h2,c({ref:t,className:(0,o.cx)("chakra-heading",e.className)},s,{__css:n}))}));o.Ts&&(D.displayName="Heading");var I=["className"],N=(0,r.Gp)((function(e,t){var n=(0,r.mq)("Kbd",e),i=(0,r.Lr)(e),s=i.className,u=l(i,I);
1return a.createElement(r.m$.kbd,c({ref:t,className:(0,o.cx)("chakra-kbd",s)},u,{__css:c({fontFamily:"mono"},n)}))}));o.Ts&&(N.displayName="Kbd");var M=["className","isExternal"],F=(0,r.Gp)((function(e,t){var n=(0,r.mq)("Link",e),i=(0,r.Lr)(e),s=i.className,u=i.isExternal,d=l(i,M);return a.createElement(r.m$.a,c({target:u?"_blank":void 0,rel:u?"noopener noreferrer":void 0,ref:t,className:(0,o.cx)("chakra-link",s)},d,{__css:n}))}));o.Ts&&(F.displayName="Link");var B=["children","styleType","stylePosition","spacing"],L=["as"],z=["as"],U=(0,u.kr)({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in a `<*List />` "}),H=U[0],V=U[1],W=(0,r.Gp)((function(e,t){var n,i=(0,r.jC)("List",e),o=(0,r.Lr)(e),s=o.children,d=o.styleType,f=void 0===d?"none":d,p=o.stylePosition,h=o.spacing,m=l(o,B),v=(0,u.WR)(s),g=h?((n={})["& > *:not(style) ~ *:not(style)"]={mt:h},n):{};return a.createElement(H,{value:i},a.createElement(r.m$.ul,c({ref:t,listStyleType:f,listStylePosition:p,role:"list",__css:c({},i.container,g)},m),v))}));o.Ts&&(W.displayName="List");var G=(0,r.Gp)((function(e,t){e.as;var n=l(e,L);return a.createElement(W,c({ref:t,as:"ol",styleType:"decimal",marginStart:"1em"},n))}));o.Ts&&(G.displayName="OrderedList");var q=(0,r.Gp)((function(e,t){e.as;var n=l(e,z);return a.createElement(W,c({ref:t,as:"ul",styleType:"initial",marginStart:"1em"},n))}));o.Ts&&(q.displayName="UnorderedList");var Z=(0,r.Gp)((function(e,t){var n=V();return a.createElement(r.m$.li,c({ref:t},e,{__css:n.item}))}));o.Ts&&(Z.displayName="ListItem");var $=(0,r.Gp)((function(e,t){var n=V();return a.createElement(s.JO,c({ref:t,role:"presentation"},e,{__css:n.icon}))}));o.Ts&&($.displayName="ListIcon");var Y=["columns","spacingX","spacingY","spacing","minChildWidth"],K=(0,r.Gp)((function(e,t){var n,r,i=e.columns,s=e.spacingX,u=e.spacingY,d=e.spacing,f=e.minChildWidth,p=l(e,Y),h=f?(r=f,(0,o.XQ)(r,(function(e){return(0,o.Ft)(e)?null:"repeat(auto-fit, minmax("+(t=e,((0,o.hj)(t)?t+"px":t)+", 1fr))");var t}))):(n=i,(0,o.XQ)(n,(function(e){return(0,o.Ft)(e)?null:"repeat("+e+", minmax(0, 1fr))"})));return a.createElement(P,c({ref:t,gap:d,columnGap:s,rowGap:u,templateColumns:h},p))}));o.Ts&&(K.displayName="SimpleGrid");var X=(0,r.m$)("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});o.Ts&&(X.displayName="Spacer");var Q="& > *:not(style) ~ *:not(style)";var J=["isInline","direction","align","justify","spacing","wrap","children","divider","className","shouldWrapChildren"],ee=function(e){return a.createElement(r.m$.div,c({className:"chakra-stack__item"},e,{__css:c({display:"inline-block",flex:"0 0 auto",minWidth:0},e.__css)}))},te=(0,r.Gp)((function(e,t){var n,i=e.isInline,s=e.direction,d=e.align,f=e.justify,p=e.spacing,h=void 0===p?"0.5rem":p,m=e.wrap,v=e.children,g=e.divider,y=e.className,b=e.shouldWrapChildren,x=l(e,J),_=i?"row":null!=s?s:"column",w=a.useMemo((function(){return function(e){var t,n=e.spacing,r=e.direction,i={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:r})[Q]=(0,o.XQ)(r,(function(e){return i[e]})),t}({direction:_,spacing:h})}),[_,h]),S=a.useMemo((function(){return function(e){var t=e.spacing,n=e.direction,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{"&":(0,o.XQ)(n,(function(e){return r[e]}))}}({spacing:h,direction:_})}),[h,_]),k=!!g,E=!b&&!k,C=(0,u.WR)(v),j=E?C:C.map((function(e,t){var n="undefined"!==typeof e.key?e.key:t,r=t+1===C.length,i=b?a.createElement(ee,{key:n},e):e;if(!k)return i;var o=r?null:a.cloneElement(g,{__css:S});return a.createElement(a.Fragment,{key:n},i,o)})),T=(0,o.cx)("chakra-stack",y);return a.createElement(r.m$.div,c({ref:t,display:"flex",alignItems:d,justifyContent:f,flexDirection:w.flexDirection,flexWrap:m,className:T,__css:k?{}:(n={},n[Q]=w[Q],n)},x),j)}));o.Ts&&(te.displayName="Stack");var ne=(0,r.Gp)((function(e,t){return a.createElement(te,c({align:"center"},e,{direction:"row",ref:t}))}));o.Ts&&(ne.displayName="HStack");var re=(0,r.Gp)((function(e,t){return a.createElement(te,c({align:"center"},e,{direction:"column",ref:t}))}));o.Ts&&(re.displayName="VStack");var ie=["className","align","decoration","casing"],oe=(0,r.Gp)((function(e,t){var n=(0,r.mq)("Text",e),i=(0,r.Lr)(e);i.className,i.align,i.decoration,i.casing;var s=l(i,ie),u=(0,o.YU)({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});
1return a.createElement(r.m$.p,c({ref:t,className:(0,o.cx)("chakra-text",e.className)},u,s,{__css:n}))}));o.Ts&&(oe.displayName="Text");var ae=["spacing","children","justify","direction","align","className","shouldWrapChildren"],se=["className"],ue=(0,r.Gp)((function(e,t){var n=e.spacing,s=void 0===n?"0.5rem":n,u=e.children,d=e.justify,f=e.direction,p=e.align,h=e.className,m=e.shouldWrapChildren,v=l(e,ae),g=a.useMemo((function(){return{"--chakra-wrap-spacing":function(e){return(0,o.XQ)(s,(function(t){return(0,i.fr)("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)"}}}),[s,d,p,f]),y=m?a.Children.map(u,(function(e,t){return a.createElement(ce,{key:t},e)})):u;return a.createElement(r.m$.div,c({ref:t,className:(0,o.cx)("chakra-wrap",h)},v),a.createElement(r.m$.ul,{className:"chakra-wrap__list",__css:g},y))}));o.Ts&&(ue.displayName="Wrap");var ce=(0,r.Gp)((function(e,t){var n=e.className,i=l(e,se);return a.createElement(r.m$.li,c({ref:t,__css:{display:"flex",alignItems:"flex-start"},className:(0,o.cx)("chakra-wrap__listitem",n)},i))}));o.Ts&&(ce.displayName="WrapItem")},79714:function(e,t,n){"use strict";n.d(t,{u_:function(){return zt},fe:function(){return qt},ol:function(){return $t},hz:function(){return Ht},mz:function(){return Zt},xB:function(){return Gt},ZA:function(){return Wt}});var r=n(10894),i=n(5993),o=n(15031),a=n(67294);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}var u=["children","isDisabled","__css"],c=function(e){return a.createElement(r.JO,s({focusable:"false","aria-hidden":!0},e),a.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,
111.823a.25.25,0,0,1,0,.354Z"}))},l=(0,i.Gp)((function(e,t){var n=(0,i.mq)("CloseButton",e),r=(0,i.Lr)(e),o=r.children,l=r.isDisabled,d=r.__css,f=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(r,u);return a.createElement(i.m$.button,s({type:"button","aria-label":"Close",ref:t,disabled:l,__css:s({},{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},n,d)},f),o||a.createElement(c,{width:"1em",height:"1em"}))}));o.Ts&&(l.displayName="CloseButton");var d=n(63366),f=n(87462),p="data-focus-lock",h="data-focus-lock-disabled";function m(e,t){return function(e,t){var n=(0,a.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 v={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},g=function(e){var t=e.children;return a.createElement(a.Fragment,null,a.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:v}),t,t&&a.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:v}))};g.propTypes={},g.defaultProps={children:null};var y=function(){return y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},y.apply(this,arguments)};function b(e){return e}function x(e,t){void 0===t&&(t=b);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 i=t(e,r);return n.push(i),function(){n=n.filter((function(e){return e!==i}))}},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 i=n;n=[],i.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(o)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}function _(e,t){return void 0===t&&(t=b),x(e,t)}function w(e){void 0===e&&(e={});var t=x(null);return t.options=y({async:!0,ssr:!1},e),t}var S=_({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),k=_(),E=_(),C=w({async:!0}),j=[],T=a.forwardRef((function(e,t){var n,r=a.useState(),i=r[0],o=r[1],s=a.useRef(),u=a.useRef(!1),c=a.useRef(null),l=e.children,d=e.disabled,g=e.noFocusGuards,y=e.persistentFocus,b=e.crossFrame,x=e.autoFocus,_=(e.allowTextSelection,e.group),w=e.className,E=e.whiteList,T=e.shards,R=void 0===T?j:T,O=e.as,P=void 0===O?"div":O,A=e.lockProps,D=void 0===A?{}:A,I=e.sideCar,N=e.returnFocus,M=e.onActivation,F=e.onDeactivation,B=a.useState({})[0],L=a.useCallback((function(){c.current=c.current||document&&document.activeElement,s.current&&M&&M(s.current),u.current=!0}),[M]),z=a.useCallback((function(){u.current=!1,F&&F(s.current)}),[F]),U=a.useCallback((function(e){var t=c.current;if(Boolean(N)&&t&&t.focus){var n="object"===typeof N?N:void 0;c.current=null,e?Promise.resolve().then((function(){return t.focus(n)})):t.focus(n)}}),[N]),H=a.useCallback((function(e){u.current&&S.useMedium(e)}),[]),V=k.useMedium,W=a.useCallback((function(e){s.current!==e&&(s.current=e,o(e))}),[]);var G=(0,f.Z)(((n={})[h]=d&&"disabled",n[p]=_,n),D),q=!0!==g,Z=q&&"tail"!==g,$=m([t,W]);return a.createElement(a.Fragment,null,q&&[a.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:d?-1:0,style:v}),a.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:d?-1:1,style:v})],!d&&a.createElement(I,{id:B,sideCar:C,observed:i,disabled:d,persistentFocus:y,crossFrame:b,autoFocus:x,whiteList:E,shards:R,onActivation:L,onDeactivation:z,returnFocus:U}),a.createElement(P,(0,f.Z)({ref:$},G,{className:w,onBlur:V,onFocus:H}),l),Z&&a.createElement("div",{"data-focus-guard":!0,tabIndex:d?-1:0,style:v}))}));T.propTypes={},T.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 R=T,O=n(94578),P=n(4942);var A=function(e,t){return function(n){var r,i=[];function o(){r=e(i.map((function(e){return e.props}))),t(r)}var s=function(e){function t(){return e.apply(this,arguments)||this}(0,O.Z)(t,e),t.peek=function(){return r};var s=t.prototype;return s.componentDidMount=function(){i.push(this),o()},s.componentDidUpdate=function(){o()},s.componentWillUnmount=function(){var e=i.indexOf(this);i.splice(e,1),o()},s.render=function(){return a.createElement(n,this.props)},t}
1(a.PureComponent);return(0,P.Z)(s,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")"),s}},D=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},I=function(e){return Array.isArray(e)?e:[e]},N=function(e){return e.parentNode?N(e.parentNode):e},M=function(e){return I(e).filter(Boolean).reduce((function(e,t){var n=t.getAttribute(p);return e.push.apply(e,n?function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var i=r+1;i<n;i+=1){var o=e[r].compareDocumentPosition(e[i]);(o&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter((function(e,n){return!t.has(n)}))}(D(N(t).querySelectorAll('[data-focus-lock="'+n+'"]:not(['+h+'="disabled"])'))):[t]),e}),[])},F=function(e){return Boolean(D(e.querySelectorAll("iframe")).some((function(e){return e===document.activeElement})))},B=function(e){var t=document&&document.activeElement;return!(!t||t.dataset&&t.dataset.focusGuard)&&M(e).reduce((function(e,n){return e||n.contains(t)||F(n)}),!1)},L=function(e){return"INPUT"===e.tagName&&"radio"===e.type},z=function(e,t){return L(e)&&e.name?function(e,t){return t.filter(L).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},U=function(e){return e[0]&&e.length>1?z(e[0],e):e[0]},H=function(e,t){return e.length>1?e.indexOf(z(e[t],e)):t},V=function(e,t){return!e||e===document||e&&e.nodeType===Node.DOCUMENT_NODE||!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!(!t||!t.getPropertyValue)&&("none"===t.getPropertyValue("display")||"hidden"===t.getPropertyValue("visibility"))}(e)&&t(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode)},W=function(e,t){var n=e.get(t);if(void 0!==n)return n;var r=V(t,W.bind(void 0,e));return e.set(t,r),r},G=function(e){return Boolean(e&&e.dataset&&e.dataset.focusGuard)},q=function(e){return!G(e)},Z=function(e){return Boolean(e)},$="NEW_FOCUS",Y=function(e,t,n,r){var i=e.length,o=e[0],a=e[i-1],s=G(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(o),p=t.indexOf(a),h=function(e){var t=new Set;return e.forEach((function(n){return t.add(z(n,e))})),e.filter((function(e){return t.has(e)}))}(t),m=h.indexOf(n)-(r?h.indexOf(r):u),v=H(e,0),g=H(e,i-1);return-1===u||-1===l?$:!d&&l>=0?l:u<=f&&s&&Math.abs(d)>1?g:u>=p&&s&&Math.abs(d)>1?v:d&&Math.abs(m)>1?l:u<=f?g:u>p?v:d?Math.abs(d)>1?l:(i+l+d)%i:void 0}},K=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},X=function(e,t,n){return D(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(K)},Q=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),J=Q+", [data-focus-guard]",ee=function(e,t){return e.reduce((function(e,n){return e.concat(D(n.querySelectorAll(t?J:Q)),n.parentNode?D(n.parentNode.querySelectorAll(Q)).filter((function(e){return e===n})):[])}),[])},te=function(e,t){return D(e).filter((function(e){return W(t,e)})).filter((function(e){return function(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))}(e)}))},ne=function(e,t,n){return X(te(ee(e,n),t),!0,n)},re=function(e,t){return X(te(ee(e),t),!1)},ie=function(e,t){return te(function(e){var t=e.querySelectorAll("[data-autofocus-inside]");return D(t).map((function(e){return ee([e])})).reduce((function(e,t){return e.concat(t)}),[])}(e),t)},oe=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&oe(e.parentNode,t),t},ae=function(e,t){for(var n=oe(e),r=oe(t),i=0;i<n.length;i+=1){var o=n[i];if(r.indexOf(o)>=0)return o}return!1},se=function(e,t,n){var r=I(e),i=I(t),o=r[0],a=!1;return i.filter(Boolean).forEach((function(e){a=ae(a||e,e)||a,n.filter(
1Boolean).forEach((function(e){var t=ae(o,e);t&&(a=!a||t.contains(a)?t:ae(t,a))}))})),a},ue=function(e,t){var n=document&&document.activeElement,r=M(e).filter(q),i=se(n||e,e,r),o=new Map,a=re(r,o),s=ne(r,o).filter((function(e){var t=e.node;return q(t)}));if(s[0]||(s=a)[0]){var u,c=re([i],o).map((function(e){return e.node})),l=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(Z)}(c,s),d=l.map((function(e){return e.node})),f=Y(d,c,n,t);if(f===$){var p=a.map((function(e){return e.node})).filter((u=function(e,t){return e.reduce((function(e,n){return e.concat(ie(n,t))}),[])}(r,o),function(e){return e.autofocus||e.dataset&&!!e.dataset.autofocus||u.indexOf(e)>=0}));return{node:p&&p.length?U(p):U(d)}}return void 0===f?f:l[f]}},ce=0,le=!1,de=function(e,t){var n,r=ue(e,t);if(!le&&r){if(ce>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"),le=!0,void setTimeout((function(){le=!1}),1);ce++,(n=r.node).focus(),"contentWindow"in n&&n.contentWindow&&n.c
1ontentWindow.focus(),ce--}};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&&D(document.querySelectorAll("[data-no-focus-lock]")).some((function(e){return e.contains(document.activeElement)}))},he=null,me=null,ve=null,ge=!1,ye=function(){return!0};function be(e,t,n,r){var i=null,o=e;do{var a=r[o];if(a.guard)a.node.dataset.focusAutoGuard&&(i=a);else{if(!a.lockItem)break;if(o!==e)return;i=null}}while((o+=n)!==t);i&&(i.node.tabIndex=0)}var xe=function(e){return e&&"current"in e?e.current:e},_e=function(){var e,t=!1;if(he){var n=he,r=n.observed,i=n.persistentFocus,o=n.autoFocus,a=n.shards,s=n.crossFrame,u=r||ve&&ve.portaledElement,c=document&&document.activeElement;if(u){var l=[u].concat(a.map(xe).filter(Boolean));if(c&&!function(e){return(he.whiteList||ye)(e)}(c)||(i||(s?Boolean(ge):"meanwhile"===ge)||!pe()||!me&&o)&&(!u||B(l)||(e=c,ve&&ve.portaledElement===e)||(document&&!me&&c&&!o?(c.blur&&c.blur(),document.body.focus()):(t=de(l,me),ve={})),ge=!1,me=document&&document.activeElement),document){var d=document&&document.activeElement,f=function(e){var t=M(e).filter(q),n=se(e,e,t),r=new Map,i=ne([n],r,!0),o=ne(t,r).filter((function(e){var t=e.node;return q(t)})).map((function(e){return e.node}));return i.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:o.indexOf(t)>=0,guard:G(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},we=function(e){_e()&&e&&(e.stopPropagation(),e.preventDefault())},Se=function(){return fe(_e)},ke=function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(ve={observerNode:n,portaledElement:t})},Ee=function(){ge="just",setTimeout((function(){ge="meanwhile"}),0)};S.assignSyncMedium(ke),k.assignMedium(Se),E.assignMedium((function(e){return e({moveFocusInside:de,focusInside:B})}));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",we,!0),document.addEventListener("focusout",Se),window.addEventListener("blur",Ee));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?(me=null,r&&n.observed===t.observed||t.onActivation(),_e(),fe(_e)):(document.removeEventListener("focusin",we,!0),document.removeEventListener("focusout",Se),window.removeEventListener("blur",Ee),me=null)}))((function(){return null})),je=a.forwardRef((function(e,t){return a.createElement(R,(0,f.Z)({sideCar:Ce,ref:t},e))})),Te=R.propTypes||{};Te.sideCar,(0,d.Z)(Te,["sideCar"]);je.propTypes={};var Re=je,Oe=function(e){var t=e.initialFocusRef,n=e.finalFocusRef,r=e.contentRef,i=e.restoreFocus,s=e.children,u=e.isDisabled,c=e.autoFocus,l=e.persistentFocus,d=e.lockFocusAcrossFrames,f=a.useCallback((function(){if(null!=t&&t.current)t.current.focus();else if(null!=r&&r.current){0===(0,o.t5)(r.current).length&&(0,o.T_)(r.current,{nextTick:!0})}}),[t,r]),p=a.useCallback((function(){var e;null==n||null==(e=n.current)||e.focus()}),[n]),h=i&&!n;return a.createElement(Re,{crossFrame:d,persistentFocus:l,autoFocus:c,disabled:u,onActivation:f,onDeactivation:p,returnFocus:h},s)};o.Ts&&(Oe.displayName="FocusLock");var Pe=n(46871),Ae=n(37496),De=n(26450),Ie=n(94930),Ne=n(95421),Me=n(15947);var Fe=function(){return Fe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Fe.apply(this,arguments)};var Be="right-scroll-bar-position",Le="width-before-scroll-bar",ze=w();function Ue(e,t){return function(e,t){var n=(0,a.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)}))}))}
1var He=function(){},Ve=a.forwardRef((function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:He,onWheelCapture:He,onTouchMoveCapture:He}),i=r[0],o=r[1],s=e.forwardProps,u=e.children,c=e.className,l=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noIsolation,m=e.inert,v=e.allowPinchZoom,g=e.as,y=void 0===g?"div":g,b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),x=p,_=Ue([n,t]),w=Fe({},b,i);return a.createElement(a.Fragment,null,d&&a.createElement(x,{sideCar:ze,removeScrollBar:l,shards:f,noIsolation:h,inert:m,setCallbacks:o,allowPinchZoom:!!v,lockRef:n}),s?a.cloneElement(a.Children.only(u),Fe({},w,{ref:_})):a.createElement(y,Fe({},w,{className:c,ref:_}),u))}));Ve.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ve.classNames={fullWidth:Le,zeroRight:Be};var We,Ge=function(e){var t=e.sideCar,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(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 a.createElement(r,y({},n))};Ge.isSideCarExport=!0;function qe(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=We||n.nc;return t&&e.setAttribute("nonce",t),e}var Ze=function(){var e=0,t=null;return{add:function(n){var r,i;0==e&&(t=qe())&&(i=n,(r=t).styleSheet?r.styleSheet.cssText=i:r.appendChild(document.createTextNode(i)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},$e=function(){var e=function(){var e=Ze();return function(t){a.useEffect((function(){return e.add(t),function(){e.remove()}}),[])}}();return function(t){var n=t.styles;return e(n),null}},Ye={left:0,top:0,right:0,gap:0},Ke=function(e){return parseInt(e||"",10)||0},Xe=function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return Ye;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[Ke(n),Ke(r),Ke(i)]}(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])}},Qe=$e(),Je=function(e,t,n,r){var i=e.left,o=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: "+i+"px;\n    padding-top: "+o+"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  ."+Be+" {\n    right: "+s+"px "+r+";\n  }\n  \n  ."+Le+" {\n    margin-right: "+s+"px "+r+";\n  }\n  \n  ."+Be+" ."+Be+" {\n    right: 0 "+r+";\n  }\n  \n  ."+Le+" ."+Le+" {\n    margin-right: 0 "+r+";\n  }\n  \n  body {\n    --removed-body-scroll-bar-size: "+s+"px;\n  }\n"},et=function(e){var t=a.useState(Xe(e.gapMode)),n=t[0],r=t[1];a.useEffect((function(){r(Xe(e.gapMode))}),[e.gapMode]);var i=e.noRelative,o=e.noImportant,s=e.gapMode,u=void 0===s?"margin":s;return a.createElement(Qe,{styles:Je(n,!i,u,o?"":"!important")})},tt=function(e,t){var n=t;do{if(nt(e,n)){var r=rt(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},nt=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)},rt=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},it=!1;if("undefined"!==typeof window)try{var ot=Object.defineProperty({},"passive",{get:function(){return it=!0,!0}});window.addEventListener("test",ot,ot),window.removeEventListener("test",ot,ot)}catch(en){it=!1}var at=!!it&&{passive:!1},st=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ut=function(e){return[e.deltaX,e.deltaY]},ct=function(e){return e&&"current"in e?e.current:e},lt=function(e){return"\n  .block-interactivity-"+e+" {pointer-events: none;}\n  .allow-interactivity-"+e+" {pointer-events: all;}\n"},dt=0,ft=[];var pt,ht=(pt=function(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),i=a.useState(dt++)[0],o=a.useState((function(){return $e()}))[0],s=a.useRef(e);a.useEffect((function(){s.current=e}),[e]),a.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-"+i);var t=[e.lockRef.current].concat((e.shards||[]).map(ct)).filter(
1Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-"+i)})),function(){document.body.classList.remove("block-interactivity-"+i),t.forEach((function(e){return e.classList.remove("allow-interactivity-"+i)}))}}}),[e.inert,e.lockRef.current,e.shards]);var u=a.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var i,o=st(e),a=n.current,u="deltaX"in e?e.deltaX:a[0]-o[0],c="deltaY"in e?e.deltaY:a[1]-o[1],l=e.target,d=Math.abs(u)>Math.abs(c)?"h":"v",f=tt(d,l);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=tt(d,l)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||c)&&(r.current=i),!i)return!0;var p=r.current||i;return function(e,t,n,r,i){var o=r,a=n.target,s=t.contains(a),u=!1,c=o>0,l=0,d=0;do{var f=rt(e,a),p=f[0],h=f[1]-f[2]-p;(p||h)&&nt(e,a)&&(l+=h,d+=p),a=a.parentNode}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return(c&&(i&&0===l||!i&&o>l)||!c&&(i&&0===d||!i&&-o>d))&&(u=!0),u}(p,t,e,"h"===p?u:c,!0)}),[]),c=a.useCallback((function(e){var n=e;if(ft.length&&ft[ft.length-1]===o){var r="deltaY"in n?ut(n):st(n),i=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,i=r,t[0]===i[0]&&t[1]===i[1]);var t,i}))[0];if(i&&i.should)n.preventDefault();else if(!i){var a=(s.current.shards||[]).map(ct).filter(Boolean).filter((function(e){return e.contains(n.target)}));(a.length>0?u(n,a[0]):!s.current.noIsolation)&&n.preventDefault()}}}),[]),l=a.useCallback((function(e,n,r,i){var o={name:e,delta:n,target:r,should:i};t.current.push(o),setTimeout((function(){t.current=t.current.filter((function(e){return e!==o}))}),1)}),[]),d=a.useCallback((function(e){n.current=st(e),r.current=void 0}),[]),f=a.useCallback((function(t){l(t.type,ut(t),t.target,u(t,e.lockRef.current))}),[]),p=a.useCallback((function(t){l(t.type,st(t),t.target,u(t,e.lockRef.current))}),[]);a.useEffect((function(){return ft.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,at),document.addEventListener("touchmove",c,at),document.addEventListener("touchstart",d,at),function(){ft=ft.filter((function(e){return e!==o})),document.removeEventListener("wheel",c,at),document.removeEventListener("touchmove",c,at),document.removeEventListener("touchstart",d,at)}}),[]);var h=e.removeScrollBar,m=e.inert;return a.createElement(a.Fragment,null,m?a.createElement(o,{styles:lt(i)}):null,h?a.createElement(et,{gapMode:"margin"}):null)},ze.useMedium(pt),Ge),mt=a.forwardRef((function(e,t){return a.createElement(Ve,Fe({},e,{ref:t,sideCar:ht}))}));mt.classNames=Ve.classNames;var vt=mt,gt=n(97375),yt=new WeakMap,bt=new WeakMap,xt={},_t=0,wt=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];xt[n]||(xt[n]=new WeakMap);var i=xt[n],o=[],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=(yt.get(e)||0)+1,c=(i.get(e)||0)+1;yt.set(e,s),i.set(e,c),o.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(),_t++,function(){o.forEach((function(e){var t=yt.get(e)-1,r=i.get(e)-1;yt.set(e,t),i.set(e,r),t||(bt.has(e)||e.removeAttribute("aria-hidden"),bt.delete(e)),r||e.removeAttribute(n)})),--_t||(yt=new WeakMap,yt=new WeakMap,bt=new WeakMap,xt={})}};function St(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function kt(){return kt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kt.apply(this,arguments)}var Et=["preset"],Ct={slideInBottom:kt({},Ae.Xc,{custom:{offsetY:16,reverse:!0}}),slideInRight:kt({},Ae.Xc,{custom:{offsetX:16,reverse:!0}}),scale:kt({},Ae.Qh,{custom:{initialScale:.95,reverse:!0}}),none:{}},jt=(0,i.m$)(Ie.E.section),Tt=a.forwardRef((function(e,t){var n=e.preset,r=St(e,Et),i=Ct[n];return a.createElement(jt,kt({ref:t},i,r))})),Rt=new(function(){function e(){this.modals=void 0,this.modals=[]}var t=e.prototype;return t.add=function(e){this.modals.push(e)},t.remove=function(e){this.modals=this.modals.filter((function(t){return t!==e}))},t.isTopModal=function(e){return this.modals[this.modals.length-1]===e},e}());function Ot(e){var t=e.isOpen,n=e.onClose,r=e.id,i=e.closeOnOverlayClick,s=void 0===i||i,u=e.closeOnEsc,c=void 0===u||u,l=e.useInert,d=void 0===l||l,f=e.onOverlayClick,p=e.onEsc,h=(0,a.useRef)(null),m=(0,a.useRef)(null),v=(0,gt.ZS)(r,"chakra-modal","chakra-modal--header","chakra-modal--body"),g=v[0],y=v[1],b=v[2];!function(e,t){var n=e.current;(0,a.useEffect)((function(){if(e.current&&t)return wt(e.current)}),[t,e,n])}(h,t&&d),function(e,t){(0,a.useEffect)((function(){return t&&Rt.add(e),function(){Rt.remove(e)}}),[t,e])}(h,t);var x=(0,a.useRef)(null),_=(0,a.useCallback)((function(e){x.current=e.target}),[]),w=(0,a.useCallback)((function(e){"Escape"===e.key&&(e.stopPropagation(),c&&(null==n||n()),null==p||p())}),[c,n,p]),S=(0,a.useState)(!1),k=S[0],E=S[1],C=(0,a.useState)(!1),j=C[0],T=C[1],R=(0,a.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),kt({role:"dialog"},e,{ref:(0,De.lq)(t,h),id:g,tabIndex:-1,"aria-modal":!0,"aria-labelledby":k?y:void 0,"aria-describedby":j?b:void 0,onClick:(0,o.v0)(e.onClick,(function(e){return e.stopPropagation()}))})}),[b,j,g,y,k]),O=(0,a.useCallback)((function(e){e.stopPropagation(),x.current===e.target&&Rt.isTopModal(h)&&(s&&(null==n||n()),null==f||f())}),[n,s,f]),P=(0,a.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),kt({},e,{ref:(0,De.lq)(t,m),onClick:(0,o.v0)(e.onClick,O),onKeyDown:(0,o.v0)(e.onKeyDown,w),onMouseDown:(0,o.v0)(e.onMouseDown,_)})}),[w,_,O]);return{isOpen:t,onClose:n,headerId:y,bodyId:b,setBodyMounted:T,setHeaderMounted:E,dialogRef:h,overlayRef:m,getDialogProps:R,getDialogContainerProps:P}}var Pt=["className","children","containerProps"],At=["className","transition"],Dt=["className"],It=["className"],Nt=["className"],Mt=["onClick","className"],Ft=(0,De.kr)({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `
1context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),Bt=Ft[0],Lt=Ft[1],zt=function(e){var t=e.portalProps,n=e.children,r=e.autoFocus,o=e.trapFocus,s=e.initialFocusRef,u=e.finalFocusRef,c=e.returnFocusOnClose,l=e.blockScrollOnMount,d=e.allowPinchZoom,f=e.preserveScrollBarGap,p=e.motionPreset,h=e.lockFocusAcrossFrames,m=(0,i.jC)("Modal",e),v=kt({},Ot(e),{autoFocus:r,trapFocus:o,initialFocusRef:s,finalFocusRef:u,returnFocusOnClose:c,blockScrollOnMount:l,allowPinchZoom:d,preserveScrollBarGap:f,motionPreset:p,lockFocusAcrossFrames:h});return a.createElement(Bt,{value:v},a.createElement(i.Fo,{value:m},a.createElement(Ne.M,null,v.isOpen&&a.createElement(Pe.h_,t,n))))};zt.defaultProps={lockFocusAcrossFrames:!0,returnFocusOnClose:!0,scrollBehavior:"outside",trapFocus:!0,autoFocus:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale"},o.Ts&&(zt.displayName="Modal");var Ut=(0,i.m$)(Ie.E.div),Ht=(0,i.Gp)((function(e,t){var n=e.className,r=e.children,s=e.containerProps,u=St(e,Pt),c=Lt(),l=c.getDialogProps,d=c.getDialogContainerProps,f=l(u,t),p=d(s),h=(0,o.cx)("chakra-modal__content",n),m=(0,i.yK)(),v=kt({display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0},m.dialog),g=kt({display:"flex",width:"100vw",height:"100vh","@supports(height: -webkit-fill-available)":{height:"-webkit-fill-available"},position:"fixed",left:0,top:0},m.dialogContainer),y=Lt().motionPreset;return a.createElement(Vt,null,a.createElement(i.m$.div,kt({},p,{className:"chakra-modal__content-container",tabIndex:-1,__css:g}),a.createElement(Tt,kt({preset:y,className:h},f,{__css:v}),r)))}));function Vt(e){var t=Lt(),n=t.autoFocus,r=t.trapFocus,i=t.dialogRef,o=t.initialFocusRef,s=t.blockScrollOnMount,u=t.allowPinchZoom,c=t.finalFocusRef,l=t.returnFocusOnClose,d=t.preserveScrollBarGap,f=t.lockFocusAcrossFrames,p=(0,Me.oO)(),h=p[0],m=p[1];return a.useEffect((function(){!h&&m&&setTimeout(m)}),[h,m]),a.createElement(Oe,{autoFocus:n,isDisabled:!r,initialFocusRef:o,finalFocusRef:c,restoreFocus:l,contentRef:i,lockFocusAcrossFrames:f},a.createElement(vt,{removeScrollBar:!d,allowPinchZoom:u,enabled:s,forwardProps:!0},e.children))}o.Ts&&(Ht.displayName="ModalContent");var Wt=(0,i.Gp)((function(e,t){var n=e.className;e.transition;var r=St(e,At),s=(0,o.cx)("chakra-modal__overlay",n),u=kt({pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh"},(0,i.yK)().overlay),c="none"===Lt().motionPreset?{}:Ae.uf;return a.createElement(Ut,kt({},c,{__css:u,ref:t,className:s},r))}));o.Ts&&(Wt.displayName="ModalOverlay");var Gt=(0,i.Gp)((function(e,t){var n=e.className,r=St(e,Dt),s=Lt(),u=s.headerId,c=s.setHeaderMounted;a.useEffect((function(){return c(!0),function(){return c(!1)}}),[c]);var l=(0,o.cx)("chakra-modal__header",n),d=kt({flex:0},(0,i.yK)().header);return a.createElement(i.m$.header,kt({ref:t,className:l,id:u},r,{__css:d}))}));o.Ts&&(Gt.displayName="ModalHeader");var qt=(0,i.Gp)((function(e,t){var n=e.className,r=St(e,It),s=Lt(),u=s.bodyId,c=s.setBodyMounted;a.useEffect((function(){return c(!0),function(){return c(!1)}}),[c]);var l=(0,o.cx)("chakra-modal__body",n),d=(0,i.yK)();return a.createElement(i.m$.div,kt({ref:t,className:l,id:u},r,{__css:d.body}))}));o.Ts&&(qt.displayName="ModalBody");var Zt=(0,i.Gp)((function(e,t){var n=e.className,r=St(e,Nt),s=(0,o.cx)("chakra-modal__footer",n),u=kt({display:"flex",alignItems:"center",justifyContent:"flex-end"},(0,i.yK)().footer);return a.createElement(i.m$.footer,kt({ref:t},r,{__css:u,className:s}))}));o.Ts&&(Zt.displayName="ModalFooter");var $t=(0,i.Gp)((function(e,t){var n=e.onClick,r=e.className,s=St(e,Mt),u=Lt().onClose,c=(0,o.cx)("chakra-modal__close-btn",r),d=(0,i.yK)();return a.createElement(l,kt({ref:t,__css:d.closeButton,className:c,onClick:(0,o.v0)(n,(function(e){e.stopPropagation(),u()}))},s))}));o.Ts&&($t.displayName="ModalCloseButton");var Yt=["className","children"],Kt=(0,De.kr)(),Xt=(Kt[0],Kt[1]);var Qt=(0,i.m$)(Ae.Mi),Jt=(0,i.Gp)((function(e,t){var n=e.className,r=e.children,s=St(e,Yt),u=Lt(),c=u.getDialogProps,l=u.getDialogContainerProps,d=u.isOpen,f=c(s,t),p=l(),h=(0,o.cx)("chakra-modal__content",n),m=(0,i.yK)(),v=kt({display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0},m.dialog),g=kt({display:"flex",width:"100vw",height:"100vh",position:"fixed",left:0,top:0},m.dialogContainer),y=Xt().placement;return a.createElement(i.m$.div,kt({},p,{className:"chakra-modal__content-container",__css:g}),a.createElement(Vt,null,a.createElement(Qt,kt({direction:y,in:d,className:h},f,{__css:v}),r)))}));o.Ts&&(Jt.displayName="DrawerContent")},46871:function(e,t,n){"use strict";n.d(t,{hE:function(){return f},h_:function(){return w}});var r=n(15031),i=n(26450),o=n(67294),a=n(97375),s=n(71561),u=n(73935),c=(0,i.kr)({strict:!1,name:"PortalManagerContext"}),l=c[0],d=c[1];function f(e){var t=e.children,n=e.zIndex;return o.createElement(l,{value:{zIndex:n}},t)}function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}r.Ts&&(f.displayName="PortalManager");var h=["containerRef"],m=(0,i.kr)({strict:!1,name:"PortalContext"}
1),v=m[0],g=m[1],y="chakra-portal",b=function(e){return o.createElement("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0}},e.children)},x=function(e){var t=e.appendToParentPortal,n=e.children,r=o.useRef(null),i=o.useRef(null),c=(0,a.NW)(),l=g(),f=d();(0,s.a)((function(){if(r.current){var e=r.current.ownerDocument,n=t&&null!=l?l:e.body;if(n){i.current=e.createElement("div"),i.current.className=y,n.appendChild(i.current),c();var o=i.current;return function(){n.contains(o)&&n.removeChild(o)}}}}),[]);var p=null!=f&&f.zIndex?o.createElement(b,{zIndex:null==f?void 0:f.zIndex},n):n;return i.current?(0,u.createPortal)(o.createElement(v,{value:i.current},p),i.current):o.createElement("span",{ref:r})},_=function(e){var t=e.children,n=e.containerRef,i=e.appendToParentPortal,c=n.current,l=null!=c?c:r.jU?document.body:void 0,d=o.useMemo((function(){var e=null==c?void 0:c.ownerDocument.createElement("div");return e&&(e.className=y),e}),[c]),f=(0,a.NW)();return(0,s.a)((function(){f()}),[]),(0,s.a)((function(){if(d&&l)return l.appendChild(d),function(){l.removeChild(d)}}),[d,l]),l&&d?(0,u.createPortal)(o.createElement(v,{value:i?d:null},t),d):null};function w(e){var t=e.containerRef,n=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,h);return t?o.createElement(_,p({containerRef:t},n)):o.createElement(x,n)}w.defaultProps={appendToParentPortal:!0},w.className=y,w.selector=".chakra-portal",r.Ts&&(w.displayName="Portal")},85393:function(e,t,n){"use strict";n.d(t,{O:function(){return l},u:function(){return d}});var r=n(15031),i=n(67294),o={body:{classList:{add:function(){},remove:function(){}}},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}}},a=function(){},s={window:{document:o,navigator:{userAgent:""},CustomEvent:function(){return this},addEventListener:a,removeEventListener:a,getComputedStyle:function(){return{getPropertyValue:function(){return""}}},matchMedia:function(){return{matches:!1,addListener:a,removeListener:a}},requestAnimationFrame:function(e){return"undefined"===typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!==typeof setTimeout&&clearTimeout(e)},setTimeout:function(){return 0},clearTimeout:a,setInterval:function(){return 0},clearInterval:a},document:o},u=r.jU?{window:window,document:document}:s,c=(0,i.createContext)(u);function l(){return(0,i.useContext)(c)}function d(e){var t=e.children,n=e.environment,r=(0,i.useState)(null),o=r[0],a=r[1],s=(0,i.useMemo)((function(){var e,t=null==o?void 0:o.ownerDocument,r=null==o?void 0:o.ownerDocument.defaultView;return null!=(e=null!=n?n:t?{document:t,window:r}:void 0)?e:u}),[o,n]),l=!o&&!n;return i.createElement(c.Provider,{value:s},t,l&&i.createElement("span",{ref:function(e){e&&a(e)}}))}r.Ts&&(c.displayName="EnvironmentContext"),r.Ts&&(d.displayName="EnvironmentProvider")},26450:function(e,t,n){"use strict";n.d(t,{WR:function(){return u},kr:function(){return s},lq:function(){return a}});var r=n(15031),i=n(67294);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 a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){return o(t,e)}))}}function s(e){void 0===e&&(e={});var t=e,n=t.strict,r=void 0===n||n,o=t.errorMessage,a=void 0===o?"useContext: `context` is undefined. Seems you forgot to wrap component within the Provider":o,s=t.name,u=i.createContext(void 0);return u.displayName=s,[u.Provider,function e(){var t=i.useContext(u);if(!t&&r){var n=new Error(a);throw n.name="ContextError",null==Error.captureStackTrace||Error.captureStackTrace(n,e),n}return t},u]}function u(e){return i.Children.toArray(e).filter((function(e){return i.isValidElement(e)}))}},49609:function(e,t,n){"use strict";n.d(t,{$:function(){return d}});var r=n(70917),i=n(5993),o=n(15031),a=n(1358),s=n(67294);function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}var c=["label","thickness","speed","emptyColor","className"],l=(0,r.F4)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),d=(0,i.Gp)((function(e,t){var n=(0,i.mq)("Spinner",e),r=(0,i.Lr)(e),d=r.label,f=void 0===d?"Loading...":d,p=r.thickness,h=void 0===p?"2px":p,m=r.speed,v=void 0===m?"0.45s":m,g=r.emptyColor,y=void 0===g?"transparent":g,b=r.className,x=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}
1(r,c),_=(0,o.cx)("chakra-spinner",b),w=u({display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:h,borderBottomColor:y,borderLeftColor:y,animation:l+" "+v+" linear infinite"},n);return s.createElement(i.m$.div,u({ref:t,__css:w,className:_},x),f&&s.createElement(a.TX,null,f))}));o.Ts&&(d.displayName="Spinner")},94244:function(e,t,n){"use strict";n.d(t,{ZR:function(){return be},c0:function(){return Ue},cC:function(){return ge},fr:function(){return s},iv:function(){return Se}});var r=n(15031),i=n(38554),o=n.n(i);function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}var s=function(e,t){return function(n){var i=String(t),o=e?e+"."+i:i;return(0,r.Kn)(n.__cssMap)&&o in n.__cssMap?n.__cssMap[o].varRef:t}};function u(e){var t=e.scale,n=e.transform,r=e.compose;return function(e,i){var o,a=s(t,e)(i),u=null!=(o=null==n?void 0:n(a,i))?o:a;return r&&(u=r(u,i)),u}}function c(e,t){return function(n){var r={property:n,scale:e};return r.transform=u({scale:e,transform:t}),r}}var l,d,f=function(e){var t=e.rtl,n=e.ltr;return function(e){return"rtl"===e.direction?t:n}};var p=["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 h={"--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(" ")},m={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,/*!*/ /*!*/)"};var v={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},g="& > :not(style) ~ :not(style)",y=((l={})[g]={marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"},l),b=((d={})[g]={marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"},d);function x(e,t){return x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},x(e,t)}function _(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&&x(e,t)}function w(){w=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,i){var o=new RegExp(e,r);return t.set(o,i||t.get(e)),x(o,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){return t[n]=e[r[n]],t}),Object.create(null))}return _(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);return n&&(n.groups=r(n,this)),n}
1,n.prototype[Symbol.replace]=function(n,i){if("string"===typeof i){var o=t.get(this);return e[Symbol.replace].call(this,n,i.replace(/\$<([^>]+)>/g,(function(e,t){return"$"+o[t]})))}if("function"===typeof i){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!==typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,a)),i.apply(this,e)}))}return e[Symbol.replace].call(this,n,i)},w.apply(this,arguments)}var S={"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"},k=new Set(Object.values(S)),E=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),C=function(e){return e.trim()};var j=function(e){return(0,r.HD)(e)&&e.includes("(")&&e.includes(")")},T=function(e){return function(t){return e+"("+t+")"}},R={filter:function(e){return"auto"!==e?e:h},backdropFilter:function(e){return"auto"!==e?e:m},ring:function(e){return 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(", ")}}(R.px(e))},bgClip:function(e){return"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform:function(e){return"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))"].concat(p).join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)"].concat(p).join(" "):e},px:function(e){if(null==e)return e;var t=function(e){var t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e);return t.unitless||(0,r.hj)(e)?e+"px":e},fraction:function(e){return!(0,r.hj)(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.FS)(e)||null==e)return e;var t=(0,r.HD)(e)&&!e.endsWith("deg");return(0,r.hj)(e)||t?e+"deg":e},gradient:function(e,t){return function(e,t){var n,r;if(null==e||E.has(e))return e;var i=null!=(n=null==(r=w(/(^[\x2DA-Za-z]+)\(((.*))\)/g,{type:1,values:2}).exec(e))?void 0:r.groups)?n:{},o=i.type,a=i.values;if(!o||!a)return e;var s=o.includes("-gradient")?o:o+"-gradient",u=a.split(",").map(C).filter(Boolean),c=u[0],l=u.slice(1);if(0===(null==l?void 0:l.length))return e;var d=c in S?S[c]:c;l.unshift(d);var f=l.map((function(e){if(k.has(e))return e;var n=e.indexOf(" "),r=-1!==n?[e.substr(0,n),e.substr(n+1)]:[e],i=r[0],o=r[1],a=j(o)?o:o&&o.split(" "),s="colors."+i,u=s in t.__cssMap?t.__cssMap[s].varRef:i;return a?[u].concat(Array.isArray(a)?a:[a]).join(" "):u}));return s+"("+f.join(", ")+")"}(e,null!=t?t:{})},blur:T("blur"),opacity:T("opacity"),brightness:T("brightness"),contrast:T("contrast"),dropShadow:T("drop-shadow"),grayscale:T("grayscale"),hueRotate:T("hue-rotate"),invert:T("invert"),saturate:T("saturate"),sepia:T("sepia"),bgImage:function(e){return null==e||j(e)||E.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=v[e])?t:{},r=n.space,i=n.divide,o={flexDirection:e};return r&&(o[r]=1),i&&(o[i]=1),o}},O={borderWidths:c("borderWidths"),borderStyles:c("borderStyles"),colors:c("colors"),borders:c("borders"),radii:c("radii",R.px),space:c("space",R.px),spaceT:c("space",R.px),degreeT:function(e){return{property:e,transform:R.degree}},prop:function(e,t,n){return a({property:e,scale:t},t&&{transform:u({scale:t,transform:n})})},propT:function(e,t){return{property:e,transform:t}},sizes:c("sizes",R.px),sizesT:c("sizes",R.fraction),shadows:c("shadows"),logical:function(e){var t=e.property,n=e.scale,r=e.transform;return{scale:n,property:f(t),transform:n?u({scale:n,compose:r}):r}},blur:c("blur",R.blur)},P={background:O.colors("background"),backgroundColor:O.colors("backgroundColor"),backgroundImage:O.propT("backgroundImage",R.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:R.bgClip},bgSize:O.prop("backgroundSize"),bgPosition:O.prop("backgroundPosition"),bg:O.colors("background"),bgColor:O.colors("backgroundColor"),bgPos:O.prop("backgroundPosition"),bgRepeat:O.prop("backgroundRepeat"),bgAttachment:O.prop("backgroundAttachment"),bgGradient:O.propT("backgroundImage",R.gradient),bgClip:{transform:R.bgClip}};Object.assign(P,{bgImage:P.backgroundImage,bgImg:P.backgroundImage});var A={border:O.borders("border"),borderWidth:O.borderWidths("borderWidth"),borderStyle:O.borderStyles("borderStyle"),borderColor:O.colors("borderColor"),borderRadius:O.radii("borderRadius"),borderTop:O.borders("borderTop"),borderBlockStart:O.borders("borderBlockStart"),borderTopLeftRadius:O.radii("borderTopLeftRadius"),borderStartStartRadius:O.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:O.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:O.radii("borderTopRightRadius"),borderStartEndRadius:O.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:O.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:O.borders("borderRight"),borderInlineEnd:O.borders("borderInlineEnd"),borderBottom:O.borders("borderBottom"),borderBlockEnd:O.borders("borderBlockEnd"),borderBottomLeftRadius:O.radii("borderBottomLeftRadius"),borderBottomRightRadius:O.radii("borderBottomRightRadius"),borderLeft:O.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:O.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:O.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:O.borders(["borderLeft","borderRight"]),borderInline:O.borders("borderInline"),borderY:O.borders(["borderTop","borderBottom"]),borderBlock:O.borders("borderBlock"),borderTopWidth:O.borderWidths("borderTopWidth"),borderBlockStartWidth:O.borderWidths("borderBlockStartWidth"),borderTopColor:O.colors("borderTopColor"),borderBlockStartColor:O.colors("borderBlockStartColor"),borderTopStyle:O.borderStyles("borderTopStyle"),borderBlockStartStyle:O.borderStyles("borderBlockStartStyle"),borderBottomWidth:O.borderWidths("borderBottomWidth"),borderBlockEndWidth:O.borderWidths("borderBlockEndWidth"),borderBottomColor:O.colors("borderBottomColor"),borderBlockEndColor:O.colors("borderBlockEndColor"),borderBottomStyle:O.borderStyles("borderBottomStyle"),borderBlockEndStyle:O.borderStyles("borderBlockEndStyle"),borderLeftWidth:O.borderWidths("borderLeftWidth"),borderInlineStartWidth:O.borderWidths("borderInlineStartWidth"),borderLeftColor:O.colors("borderLeftColor"),borderInlineStartColor:O.colors("borderInlineStartColor"),borderLeftStyle:O.borderStyles("borderLeftStyle"),borderInlineStartStyle:O.borderStyles("borderInlineStartStyle"),borderRightWidth:O.borderWidths("borderRightWidth"),borderInlineEndWidth:O.borderWidths("borderInlineEndWidth"),borderRightColor:O.colors("borderRightColor"),borderInlineEndColor:O.colors("borderInlineEndColor"),borderRightStyle:O.borderStyles("borderRightStyle"),borderInlineEndStyle:O.borderStyles("borderInlineEndStyle"),borderTopRadius:O.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:O.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:O.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:O.radii(["borderTopRightRadius","borderBottomRightRadius"])};
1Object.assign(A,{rounded:A.borderRadius,roundedTop:A.borderTopRadius,roundedTopLeft:A.borderTopLeftRadius,roundedTopRight:A.borderTopRightRadius,roundedTopStart:A.borderStartStartRadius,roundedTopEnd:A.borderStartEndRadius,roundedBottom:A.borderBottomRadius,roundedBottomLeft:A.borderBottomLeftRadius,roundedBottomRight:A.borderBottomRightRadius,roundedBottomStart:A.borderEndStartRadius,roundedBottomEnd:A.borderEndEndRadius,roundedLeft:A.borderLeftRadius,roundedRight:A.borderRightRadius,roundedStart:A.borderInlineStartRadius,roundedEnd:A.borderInlineEndRadius,borderStart:A.borderInlineStart,borderEnd:A.borderInlineEnd,borderTopStartRadius:A.borderStartStartRadius,borderTopEndRadius:A.borderStartEndRadius,borderBottomStartRadius:A.borderEndStartRadius,borderBottomEndRadius:A.borderEndEndRadius,borderStartRadius:A.borderInlineStartRadius,borderEndRadius:A.borderInlineEndRadius,borderStartWidth:A.borderInlineStartWidth,borderEndWidth:A.borderInlineEndWidth,borderStartColor:A.borderInlineStartColor,borderEndColor:A.borderInlineEndColor,borderStartStyle:A.borderInlineStartStyle,borderEndStyle:A.borderInlineEndStyle});var D={color:O.colors("color"),textColor:O.colors("color"),fill:O.colors("fill"),stroke:O.colors("stroke")},I={boxShadow:O.shadows("boxShadow"),mixBlendMode:!0,blendMode:O.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:O.prop("backgroundBlendMode"),opacity:!0};Object.assign(I,{shadow:I.boxShadow});var N={filter:{transform:R.filter},blur:O.blur("--chakra-blur"),brightness:O.propT("--chakra-brightness",R.brightness),contrast:O.propT("--chakra-contrast",R.contrast),hueRotate:O.degreeT("--chakra-hue-rotate"),invert:O.propT("--chakra-invert",R.invert),saturate:O.propT("--chakra-saturate",R.saturate),dropShadow:O.propT("--chakra-drop-shadow",R.dropShadow),backdropFilter:{transform:R.backdropFilter},backdropBlur:O.blur("--chakra-backdrop-blur"),backdropBrightness:O.propT("--chakra-backdrop-brightness",R.brightness),backdropContrast:O.propT("--chakra-backdrop-contrast",R.contrast),backdropHueRotate:O.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:O.propT("--chakra-backdrop-invert",R.invert),backdropSaturate:O.propT("--chakra-backdrop-saturate",R.saturate)},M={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:R.flexDirection},experimental_spaceX:{static:y,transform:u({scale:"space",transform:function(e){return null!==e?{"--chakra-space-x":e}:null}})},experimental_spaceY:{static:b,transform:u({scale:"space",transform:function(e){return null!=e?{"--chakra-space-y":e}:null}})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:O.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:O.space("gap"),rowGap:O.space("rowGap"),columnGap:O.space("columnGap")};Object.assign(M,{flexDir:M.flexDirection});var F={gridGap:O.space("gridGap"),gridColumnGap:O.space("gridColumnGap"),gridRowGap:O.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},B={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:R.outline},outlineOffset:!0,outlineColor:O.colors("outlineColor")},L={width:O.sizesT("width"),inlineSize:O.sizesT("inlineSize"),height:O.sizes("height"),blockSize:O.sizes("blockSize"),boxSize:O.sizes(["width","height"]),minWidth:O.sizes("minWidth"),minInlineSize:O.sizes("minInlineSize"),minHeight:O.sizes("minHeight"),minBlockSize:O.sizes("minBlockSize"),maxWidth:O.sizes("maxWidth"),maxInlineSize:O.sizes("maxInlineSize"),maxHeight:O.sizes("maxHeight"),maxBlockSize:O.sizes("maxBlockSize"),d:O.prop("display"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:O.propT("float",R.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(L,{w:L.width,h:L.height,minW:L.minWidth,maxW:L.maxWidth,minH:L.minHeight,maxH:L.maxHeight,overscroll:L.overscrollBehavior,overscrollX:L.overscrollBehaviorX,overscrollY:L.overscrollBehaviorY});var z={listStyleType:!0,listStylePosition:!0,listStylePos:O.prop("listStylePosition"),listStyleImage:!0,listStyleImg:O.prop("listStyleImage")},U={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",
1whiteSpace:"nowrap",position:"absolute"},H={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},V=function(e,t,n){var i={},o=(0,r.Wf)(e,t,{});for(var a in o){a in n&&null!=n[a]||(i[a]=o[a])}return i},W={srOnly:{transform:function(e){return!0===e?U:"focusable"===e?H:{}}},layerStyle:{processResult:!0,transform:function(e,t,n){return V(t,"layerStyles."+e,n)}},textStyle:{processResult:!0,transform:function(e,t,n){return V(t,"textStyles."+e,n)}},apply:{processResult:!0,transform:function(e,t,n){return V(t,e,n)}}},G={position:!0,pos:O.prop("position"),zIndex:O.prop("zIndex","zIndices"),inset:O.spaceT("inset"),insetX:O.spaceT(["left","right"]),insetInline:O.spaceT("insetInline"),insetY:O.spaceT(["top","bottom"]),insetBlock:O.spaceT("insetBlock"),top:O.spaceT("top"),insetBlockStart:O.spaceT("insetBlockStart"),bottom:O.spaceT("bottom"),insetBlockEnd:O.spaceT("insetBlockEnd"),left:O.spaceT("left"),insetInlineStart:O.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:O.spaceT("right"),insetInlineEnd:O.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(G,{insetStart:G.insetInlineStart,insetEnd:G.insetInlineEnd});var q={ring:{transform:R.ring},ringColor:O.colors("--chakra-ring-color"),ringOffset:O.prop("--chakra-ring-offset-width"),ringOffsetColor:O.colors("--chakra-ring-offset-color"),ringInset:O.prop("--chakra-ring-inset")},Z={margin:O.spaceT("margin"),marginTop:O.spaceT("marginTop"),marginBlockStart:O.spaceT("marginBlockStart"),marginRight:O.spaceT("marginRight"),marginInlineEnd:O.spaceT("marginInlineEnd"),marginBottom:O.spaceT("marginBottom"),marginBlockEnd:O.spaceT("marginBlockEnd"),marginLeft:O.spaceT("marginLeft"),marginInlineStart:O.spaceT("marginInlineStart"),marginX:O.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:O.spaceT("marginInline"),marginY:O.spaceT(["marginTop","marginBottom"]),marginBlock:O.spaceT("marginBlock"),padding:O.space("padding"),paddingTop:O.space("paddingTop"),paddingBlockStart:O.space("paddingBlockStart"),paddingRight:O.space("paddingRight"),paddingBottom:O.space("paddingBottom"),paddingBlockEnd:O.space("paddingBlockEnd"),paddingLeft:O.space("paddingLeft"),paddingInlineStart:O.space("paddingInlineStart"),paddingInlineEnd:O.space("paddingInlineEnd"),paddingX:O.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:O.space("paddingInline"),paddingY:O.space(["paddingTop","paddingBottom"]),paddingBlock:O.space("paddingBlock")};Object.assign(Z,{m:Z.margin,mt:Z.marginTop,mr:Z.marginRight,me:Z.marginInlineEnd,marginEnd:Z.marginInlineEnd,mb:Z.marginBottom,ml:Z.marginLeft,ms:Z.marginInlineStart,marginStart:Z.marginInlineStart,mx:Z.marginX,my:Z.marginY,p:Z.padding,pt:Z.paddingTop,py:Z.paddingY,px:Z.paddingX,pb:Z.paddingBottom,pl:Z.paddingLeft,ps:Z.paddingInlineStart,paddingStart:Z.paddingInlineStart,pr:Z.paddingRight,pe:Z.paddingInlineEnd,paddingEnd:Z.paddingInlineEnd});var $={textDecorationColor:O.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:O.shadows("textShadow")},Y={clipPath:!0,transform:O.propT("transform",R.transform),transformOrigin:!0,translateX:O.spaceT("--chakra-translate-x"),translateY:O.spaceT("--chakra-translate-y"),skewX:O.degreeT("--chakra-skew-x"),skewY:O.degreeT("--chakra-skew-y"),scaleX:O.prop("--chakra-scale-x"),scaleY:O.prop("--chakra-scale-y"),scale:O.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:O.degreeT("--chakra-rotate")},K={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:O.prop("transitionDuration","transition.duration"),transitionProperty:O.prop("transitionProperty","transition.property"),transitionTimingFunction:O.prop("transitionTimingFunction","transition.easing")},X={fontFamily:O.prop("fontFamily","fonts"),fontSize:O.prop("fontSize","fontSizes",R.px),fontWeight:O.prop("fontWeight","fontWeights"),lineHeight:O.prop("lineHeight","lineHeights"),letterSpacing:O.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)"}
1,property:"--chakra-line-clamp"},isTruncated:{transform:function(e){if(!0===e)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}}},Q={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:O.spaceT("scrollMargin"),scrollMarginTop:O.spaceT("scrollMarginTop"),scrollMarginBottom:O.spaceT("scrollMarginBottom"),scrollMarginLeft:O.spaceT("scrollMarginLeft"),scrollMarginRight:O.spaceT("scrollMarginRight"),scrollMarginX:O.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:O.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:O.spaceT("scrollPadding"),scrollPaddingTop:O.spaceT("scrollPaddingTop"),scrollPaddingBottom:O.spaceT("scrollPaddingBottom"),scrollPaddingLeft:O.spaceT("scrollPaddingLeft"),scrollPaddingRight:O.spaceT("scrollPaddingRight"),scrollPaddingX:O.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:O.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ee(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"===typeof e)return J(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)?J(e,t):void 0}}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0;return function(){return r>=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.")}var te=function(e,t){return e+":hover "+t+", "+e+"[data-hover] "+t},ne=function(e,t){return e+":focus "+t+", "+e+"[data-focus] "+t},re=function(e,t){return e+":focus-visible "+t},ie=function(e,t){return e+":focus-within "+t},oe=function(e,t){return e+":active "+t+", "+e+"[data-active] "+t},ae=function(e,t){return e+":disabled "+t+", "+e+"[data-disabled] "+t},se=function(e,t){return e+":invalid "+t+", "+e+"[data-invalid] "+t},ue=function(e,t){return e+":checked "+t+", "+e+"[data-checked] "+t},ce=function(e,t){return e+":placeholder-shown "+t},le=function(e){return fe((function(t){return e(t,"&")}),"[role=group]","[data-group]",".group")},de=function(e){return fe((function(t){return e(t,"~ &")}),"[data-peer]",".peer")},fe=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.map(e).join(", ")},pe={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible",_disabled:"&[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:le(te),_peerHover:de(te),_groupFocus:le(ne),_peerFocus:de(ne),_groupFocusVisible:le(re),_peerFocusVisible:de(re),_groupActive:le(oe),_peerActive:de(oe),_groupDisabled:le(ae),_peerDisabled:de(ae),_groupInvalid:le(se),_peerInvalid:de(se),_groupChecked:le(ue),_peerChecked:de(ue),_groupFocusWithin:le(ie),_peerFocusWithin:de(ie),_peerPlaceholderShown:de(ce),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &, [data-theme=dark] &, &[data-theme=dark]",_light:".chakra-ui-light &, [data-theme=light] &, &[data-theme=light]"},he=(0,r.Yd)(pe),me=o()({},P,A,D,M,L,N,q,B,F,W,G,I,Z,Q,X,$,Y,z,K),ve=Object.assign({},Z,L,M,F,G),ge=((0,r.Yd)(ve),[].concat((0,r.Yd)(me),he)),ye=a({},me,pe),be=function(e){return e in ye},xe=function(e,t){return e.startsWith("--")&&(0,r.HD)(t)&&!(0,r.FS)(t)},_e=function(e,t){var n,r;if(null==t)return t;var i=function(t){var n,r;return null==(n=e.__cssMap)||null==(r=n[t])?void 0:r.varRef},o=function(e){var t;return null!=(t=i(e))?t:e},a=t.split(",").map((function(e){return e.trim()})),s=a[0],u=a[1];
1return t=null!=(n=null!=(r=i(s))?r:o(u))?n:o(t)};function we(e){var t=e.configs,n=void 0===t?{}:t,i=e.pseudos,a=void 0===i?{}:i,s=e.theme;return function e(t,i){void 0===i&&(i=!1);var u=(0,r.Pu)(t,s),c=function(e){return function(t){if(!t.__breakpoints)return e;var n=t.__breakpoints,i=n.isResponsive,o=n.toArrayValue,a=n.media,s={};for(var u in e){var c=(0,r.Pu)(e[u],t);if(null!=c)if(c=(0,r.Kn)(c)&&i(c)?o(c):c,Array.isArray(c))for(var l=c.slice(0,a.length).length,d=0;d<l;d+=1){var f=null==a?void 0:a[d];f?(s[f]=s[f]||{},null!=c[d]&&(s[f][u]=c[d])):s[u]=c[d]}else s[u]=c}return s}}(u)(s),l={};for(var d in c){var f,p,h,m,v,g=c[d],y=(0,r.Pu)(g,s);d in a&&(d=a[d]),xe(d,y)&&(y=_e(s,y));var b=n[d];if(!0===b&&(b={property:d}),(0,r.Kn)(y)){var x;l[d]=null!=(x=l[d])?x:{},l[d]=o()({},l[d],e(y,!0))}else{var _=null!=(f=null==(p=b)||null==p.transform?void 0:p.transform(y,s,u))?f:y;_=null!=(h=b)&&h.processResult?e(_,!0):_;var w=(0,r.Pu)(null==(m=b)?void 0:m.property,s);if(!i&&null!=(v=b)&&v.static){var S=(0,r.Pu)(b.static,s);l=o()({},l,S)}if(w&&Array.isArray(w))for(var k,E=ee(w);!(k=E()).done;){l[k.value]=_}else w?"&"===w&&(0,r.Kn)(_)?l=o()({},l,_):l[w]=_:(0,r.Kn)(_)?l=o()({},l,_):l[d]=_}}return l}}var Se=function(e){return function(t){return we({theme:t,pseudos:pe,configs:me})(e)}};function ke(e){return(0,r.Kn)(e)&&e.reference?e.reference:String(e)}var Ee=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.map(ke).join(" "+e+" ").replace(/calc/g,"")},Ce=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+Ee.apply(void 0,["+"].concat(t))+")"},je=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+Ee.apply(void 0,["-"].concat(t))+")"},Te=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+Ee.apply(void 0,["*"].concat(t))+")"},Re=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+Ee.apply(void 0,["/"].concat(t))+")"},Oe=function(e){var t=ke(e);return null==t||Number.isNaN(parseFloat(t))?Te(t,-1):String(t).startsWith("-")?String(t).slice(1):"-"+t},Pe=Object.assign((function(e){return{add:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Pe(Ce.apply(void 0,[e].concat(n)))},subtract:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Pe(je.apply(void 0,[e].concat(n)))},multiply:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Pe(Te.apply(void 0,[e].concat(n)))},divide:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Pe(Re.apply(void 0,[e].concat(n)))},negate:function(){return Pe(Oe(e))},toString:function(){return e.toString()}}}),{add:Ce,subtract:je,multiply:Te,divide:Re,negate:Oe});function Ae(e){var t=function(e,t){return void 0===t&&(t="-"),e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?t.replace(".","\\."):e}function De(e,t){return"var("+Ae(e)+(t?", "+t:"")+")"}function Ie(e,t){return void 0===t&&(t=""),"--"+function(e,t){return void 0===t&&(t=""),[t,Ae(e)].filter(Boolean).join("-")}(e,t)}function Ne(e,t){return function(e,t,n){var r=Ie(e,n);return{variable:r,reference:De(r,t)}}(String(e).replace(/\./g,"-"),void 0,t)}function Me(e,t){for(var n={},i={},a=function(){var a=u[s],c=a[0],l=a[1],d=l.isSemantic,f=l.value,p=Ne(c,null==t?void 0:t.cssVarPrefix),h=p.variable,m=p.reference;if(!d){if(c.startsWith("space")){var v=c.split("."),g=v[0]+".-"+v.slice(1).join("."),y=Pe.negate(f),b=Pe.negate(m);i[g]={value:y,var:h,varRef:b}}return n[h]=f,i[c]={value:f,var:h,varRef:m},"continue"}var x=(0,r.Kn)(f)?f:{default:f};n=o()(n,Object.entries(x).reduce((function(n,r){var i,o,a=r[0],s=function(n){var r=[String(c).split(".")[0],n].join(".");return e[r]?Ne(r,null==t?void 0:t.cssVarPrefix).reference:n}(r[1]);return"default"===a?(n[h]=s,n):(n[null!=(i=null==pe?void 0:pe[a])?i:a]=((o={})[h]=s,o),n)}),{})),i[c]={value:m,var:h,varRef:m}},s=0,u=Object.entries(e);s<u.length;s++)a();return{cssVars:n,cssMap:i}}var Fe=["__cssMap","__cssVars","__breakpoints"],Be=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"];function Le(e){var t=Be;return(0,r.ei)(e,t)}function ze(e){return e.__cssMap,e.__cssVars,e.__breakpoints,function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,Fe)}function Ue(e){var t,n=ze(e),i=Le(n),o=function(e){return e.semanticTokens}(n),s=function(e){var t,n,i=e.tokens,o=e.semanticTokens,a=Object.entries(null!=(t=(0,r.xH)(i))?t:{}).map((function(e){return[e[0],{isSemantic:!1,value:e[1]}]})),s=Object.entries(null!=(n=(0,r.xH)(o,1))?n:{}).map((function(e){return[e[0],{isSemantic:!0,value:e[1]}]}));return(0,r.sq)([].concat(a,s))}({tokens:i,semanticTokens:o}),u=Me(s,{cssVarPrefix:null==(t=n.config)?void 0:t.cssVarPrefix}),c=u.cssMap,l=u.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"},l),__cssMap:c,__breakpoints:(0,r.yn)(n.breakpoints)}),n}},5993:function(e,t,n){"use strict";n.d(t,{ZL:function(){return N},Fo:function(){return D},f6:function(){return R},m$:function(){return Y},Gp:function(){return G},Lr:function(){return M},jC:function(){return $},mq:function(){return Z},yK:function(){return I},Fg:function(){return P}});var r=n(20949),i=n(94244),o=n(23663),a=n(70917),s=n(15031),u=n(38554),c=n.n(u),l=n(67294),d=n.t(l,2),f=n(69590),p=n.n(f),h=n(26450),m=n(87462),v=n(59122),g=n(70444),y=n(44478),b=v.Z,x=function(e){return"theme"!==e},_=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?b:x},w=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},S=d.useInsertionEffect?d.useInsertionEffect:function(e){e()};var k=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;(0,g.hC)(t,n,r);S((function(){return(0,g.My)(t,n,r)}));return null},E=function e(t,n){var r,i,a=t.__emotion_real===t,s=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var u=w(t,n,a),c=u||_(s),d=!c("as");return function(){var f=arguments,p=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&p.push("label:"+r+";
1"),null==f[0]||void 0===f[0].raw)p.push.apply(p,f);else{0,p.push(f[0][0]);for(var h=f.length,v=1;v<h;v++)p.push(f[v],f[0][v])}var b=(0,o.w)((function(e,t,n){var r=d&&e.as||s,a="",f=[],h=e;if(null==e.theme){for(var m in h={},e)h[m]=e[m];h.theme=(0,l.useContext)(o.T)}"string"===typeof e.className?a=(0,g.fp)(t.registered,f,e.className):null!=e.className&&(a=e.className+" ");var v=(0,y.O)(p.concat(f),t.registered,h);a+=t.key+"-"+v.name,void 0!==i&&(a+=" "+i);var b=d&&void 0===u?_(r):c,x={};for(var w in e)d&&"as"===w||b(w)&&(x[w]=e[w]);return x.className=a,x.ref=n,(0,l.createElement)(l.Fragment,null,(0,l.createElement)(k,{cache:t,serialized:v,isStringTag:"string"===typeof r}),(0,l.createElement)(r,x))}));return b.displayName=void 0!==r?r:"Styled("+("string"===typeof s?s:s.displayName||s.name||"Component")+")",b.defaultProps=t.defaultProps,b.__emotion_real=b,b.__emotion_base=s,b.__emotion_styles=p,b.__emotion_forwardProp=u,Object.defineProperty(b,"toString",{value:function(){return"."+i}}),b.withComponent=function(t,r){return e(t,(0,m.Z)({},n,r,{shouldForwardProp:w(b,r,!0)})).apply(void 0,p)},b}},C=E.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){C[e]=C(e)}));var j=C;function T(){return T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T.apply(this,arguments)}var R=function(e){var t=e.cssVarsRoot,n=e.theme,r=e.children,a=l.useMemo((function(){return(0,i.c0)(n)}),[n]);return l.createElement(o.b,{theme:a},l.createElement(O,{root:t}),r)},O=function(e){var t=e.root,n=void 0===t?":host, :root":t;return l.createElement(a.xB,{styles:function(e){var t;return(t={})[n]=e.__cssVars,t}})};function P(){var e=l.useContext(o.T);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}var A=(0,h.kr)({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "}),D=A[0],I=A[1],N=function(){var e=(0,r.If)().colorMode;return l.createElement(a.xB,{styles:function(t){var n=(0,s.Wf)(t,"styles.global"),r=(0,s.Pu)(n,{theme:t,colorMode:e});if(r){var o=(0,i.iv)(r)(t);return o}}})};function M(e){return(0,s.CE)(e,["styleConfig","size","variant","colorScheme"])}function F(){return T({},(0,r.If)(),{theme:P()})}function B(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var L=new Set([].concat(i.cC,["textStyle","layerStyle","apply","isTruncated","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"])),z=new Set(["htmlWidth","htmlHeight","htmlSize"]),U=function(e){return z.has(e)||!L.has(e)},H=["theme","css","__css","sx"],V=["baseStyle"];function W(e,t){var n=null!=t?t:{},r=n.baseStyle,o=B(n,V);o.shouldForwardProp||(o.shouldForwardProp=U);var a=function(e){var t=e.baseStyle;return function(e){e.theme;var n=e.css,r=e.__css,o=e.sx,a=B(e,H),u=(0,s.lw)(a,(function(e,t){return(0,i.ZR)(t)})),c=(0,s.Pu)(t,e),l=Object.assign({},r,c,(0,s.YU)(u),o),d=(0,i.iv)(l)(e.theme);return n?[d,n]:d}}({baseStyle:r});return j(e,o)(a)}function G(e){return l.forwardRef(e)}var q=["styleConfig"];function Z(e,t,n){var r;void 0===t&&(t={}),void 0===n&&(n={});var i=t,o=i.styleConfig,a=B(i,q),u=F(),d=u.theme,f=u.colorMode,h=(0,s.Wf)(d,"components."+e),m=o||h,v=c()({theme:d,colorMode:f},null!=(r=null==m?void 0:m.defaultProps)?r:{},(0,s.YU)((0,s.CE)(a,["children"]))),g=(0,l.useRef)({});if(m){var y,b,x,_,w,S,k=(0,s.Pu)(null!=(y=m.baseStyle)?y:{},v),E=(0,s.Pu)(null!=(b=null==(x=m.variants)?void 0:x[v.variant])?b:{},v),C=(0,s.Pu)(null!=(_=null==(w=m.sizes)?void 0:w[v.size])?_:{},v),j=c()({},k,C,E);
1null!=(S=n)&&S.isMultiPart&&m.parts&&m.parts.forEach((function(e){var t;j[e]=null!=(t=j[e])?t:{}})),p()(g.current,j)||(g.current=j)}return g.current}function $(e,t){return Z(e,t,{isMultiPart:!0})}var Y=function(){var e=new Map;return new Proxy(W,{apply:function(e,t,n){return W.apply(void 0,n)},get:function(t,n){return e.has(n)||e.set(n,W(n)),e.get(n)}})}()},37496:function(e,t,n){"use strict";n.d(t,{Mi:function(){return D},Qh:function(){return T},UO:function(){return S},Xc:function(){return N},uf:function(){return E}});var r=n(15031),i=n(38554),o=n.n(i),a=n(95421),s=n(94930),u=n(67294);function c(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}var d={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},f={position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},p={position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},h={position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},m={position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}};function v(e){var t;switch(null!=(t=null==e?void 0:e.direction)?t:"right"){case"right":default:return p;case"left":return f;case"bottom":return m;case"top":return h}}var g={enter:{duration:.2,ease:d.easeOut},exit:{duration:.1,ease:d.easeIn}},y=function(e,t){return l({},e,{delay:(0,r.hj)(t)?t:null==t?void 0:t.enter})},b=function(e,t){return l({},e,{delay:(0,r.hj)(t)?t:null==t?void 0:t.exit})},x=["in","unmountOnExit","animateOpacity","startingHeight","endingHeight","style","className","transition","transitionEnd"],_={exit:{height:{duration:.2,ease:d.ease},opacity:{duration:.3,ease:d.ease}},enter:{height:{duration:.3,ease:d.ease},opacity:{duration:.4,ease:d.ease}}},w={exit:function(e){var t,n,r=e.animateOpacity,i=e.startingHeight,o=e.transition,a=e.transitionEnd,s=e.delay;return l({},r&&{opacity:(n=i,null!=n&&parseInt(n.toString(),10)>0?1:0)},{overflow:"hidden",height:i,transitionEnd:null==a?void 0:a.exit,transition:null!=(t=null==o?void 0:o.exit)?t:b(_.exit,s)})},enter:function(e){var t,n=e.animateOpacity,r=e.endingHeight,i=e.transition,o=e.transitionEnd,a=e.delay;return l({},n&&{opacity:1},{height:r,transitionEnd:null==o?void 0:o.enter,transition:null!=(t=null==i?void 0:i.enter)?t:y(_.enter,a)})}},S=u.forwardRef((function(e,t){var n=e.in,i=e.unmountOnExit,d=e.animateOpacity,f=void 0===d||d,p=e.startingHeight,h=void 0===p?0:p,m=e.endingHeight,v=void 0===m?"auto":m,g=e.style,y=e.className,b=e.transition,_=e.transitionEnd,S=c(e,x),k=u.useState(!1),E=k[0],C=k[1];u.useEffect((function(){var e=setTimeout((function(){C(!0)}));return function(){return clearTimeout(e)}}),[]),(0,r.ZK)({condition:Boolean(h>0&&i),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});var j=parseFloat(h.toString())>0,T={startingHeight:h,endingHeight:v,animateOpacity:f,transition:E?b:{enter:{duration:0}},transitionEnd:o()(_,{enter:{overflow:"initial"},exit:i?void 0:{display:j?"block":"none"}})},R=!i||n,O=n||i?"enter":"exit";return u.createElement(a.M,{initial:!1,custom:T},R&&u.createElement(s.E.div,l({ref:t},S,{className:(0,r.cx)("chakra-collapse",y),style:l({overflow:"hidden",display:"block"},g),custom:T,variants:w,initial:!!i&&"exit",animate:O,exit:"exit"})))}));r.Ts&&(S.displayName="Collapse");var k=["unmountOnExit","in","className","transition","transitionEnd","delay"],E={initial:"exit",animate:"enter",exit:"exit",variants:{enter:function(e){var t,n=void 0===e?{}:e,r=n.transition,i=n.transitionEnd,o=n.delay;return{opacity:1,transition:null!=(t=null==r?void 0:r.enter)?t:y(g.enter,o),transitionEnd:null==i?void 0:i.enter}},exit:function(e){var t,n=void 0===e?{}:e,r=n.transition,i=n.transitionEnd,o=n.delay;return{opacity:0,transition:null!=(t=null==r?void 0:r.exit)?t:b(g.exit,o),transitionEnd:null==i?void 0:i.exit}}}},C=u.forwardRef((function(e,t){var n=e.unmountOnExit,i=e.in,o=e.className,d=e.transition,f=e.transitionEnd,p=e.delay,h=c(e,k),m=i||n?"enter":"exit",v=!n||i&&n,g={transition:d,transitionEnd:f,delay:p};return u.createElement(a.M,{custom:g},v&&u.createElement(s.E.div,l({ref:t,className:(0,r.cx)("chakra-fade",o),custom:g},E,{animate:m},h)))}));r.Ts&&(C.displayName="Fade");var j=["unmountOnExit","in","reverse","initialScale","className","transition","transitionEnd","delay"],T={initial:"exit",animate:"enter",exit:"exit",variants:{exit:function(e){var t,n=e.reverse,r=e.initialScale,i=e.transition,o=e.transitionEnd,a=e.delay;return l({opacity:0}
1,n?{scale:r,transitionEnd:null==o?void 0:o.exit}:{transitionEnd:l({scale:r},null==o?void 0:o.exit)},{transition:null!=(t=null==i?void 0:i.exit)?t:b(g.exit,a)})},enter:function(e){var t,n=e.transitionEnd,r=e.transition,i=e.delay;return{opacity:1,scale:1,transition:null!=(t=null==r?void 0:r.enter)?t:y(g.enter,i),transitionEnd:null==n?void 0:n.enter}}}},R=u.forwardRef((function(e,t){var n=e.unmountOnExit,i=e.in,o=e.reverse,d=void 0===o||o,f=e.initialScale,p=void 0===f?.95:f,h=e.className,m=e.transition,v=e.transitionEnd,g=e.delay,y=c(e,j),b=!n||i&&n,x=i||n?"enter":"exit",_={initialScale:p,reverse:d,transition:m,transitionEnd:v,delay:g};return u.createElement(a.M,{custom:_},b&&u.createElement(s.E.div,l({ref:t,className:(0,r.cx)("chakra-offset-slide",h)},T,{animate:x,custom:_},y)))}));r.Ts&&(R.displayName="ScaleFade");var O=["direction","style","unmountOnExit","in","className","transition","transitionEnd","delay"],P={exit:{duration:.15,ease:d.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},A={exit:function(e){var t,n=e.direction,r=e.transition,i=e.transitionEnd,o=e.delay;return l({},v({direction:n}).exit,{transition:null!=(t=null==r?void 0:r.exit)?t:b(P.exit,o),transitionEnd:null==i?void 0:i.exit})},enter:function(e){var t,n=e.direction,r=e.transitionEnd,i=e.transition,o=e.delay;return l({},v({direction:n}).enter,{transition:null!=(t=null==i?void 0:i.enter)?t:y(P.enter,o),transitionEnd:null==r?void 0:r.enter})}},D=u.forwardRef((function(e,t){var n=e.direction,i=void 0===n?"right":n,o=e.style,d=e.unmountOnExit,f=e.in,p=e.className,h=e.transition,m=e.transitionEnd,g=e.delay,y=c(e,O),b=v({direction:i}),x=Object.assign({position:"fixed"},b.position,o),_=!d||f&&d,w=f||d?"enter":"exit",S={transitionEnd:m,transition:h,direction:i,delay:g};return u.createElement(a.M,{custom:S},_&&u.createElement(s.E.div,l({},y,{ref:t,initial:"exit",className:(0,r.cx)("chakra-slide",p),animate:w,exit:"exit",custom:S,variants:A,style:x})))}));r.Ts&&(D.displayName="Slide");var I=["unmountOnExit","in","reverse","className","offsetX","offsetY","transition","transitionEnd","delay"],N={initial:"initial",animate:"enter",exit:"exit",variants:{initial:function(e){var t,n=e.offsetX,r=e.offsetY,i=e.transition,o=e.transitionEnd,a=e.delay;return{opacity:0,x:n,y:r,transition:null!=(t=null==i?void 0:i.exit)?t:b(g.exit,a),transitionEnd:null==o?void 0:o.exit}},enter:function(e){var t,n=e.transition,r=e.transitionEnd,i=e.delay;return{opacity:1,x:0,y:0,transition:null!=(t=null==n?void 0:n.enter)?t:y(g.enter,i),transitionEnd:null==r?void 0:r.enter}},exit:function(e){var t,n=e.offsetY,r=e.offsetX,i=e.transition,o=e.transitionEnd,a=e.reverse,s=e.delay,u={x:r,y:n};return l({opacity:0,transition:null!=(t=null==i?void 0:i.exit)?t:b(g.exit,s)},a?l({},u,{transitionEnd:null==o?void 0:o.exit}):{transitionEnd:l({},u,null==o?void 0:o.exit)})}}},M=u.forwardRef((function(e,t){var n=e.unmountOnExit,i=e.in,o=e.reverse,d=void 0===o||o,f=e.className,p=e.offsetX,h=void 0===p?0:p,m=e.offsetY,v=void 0===m?8:m,g=e.transition,y=e.transitionEnd,b=e.delay,x=c(e,I),_=!n||i&&n,w=i||n?"enter":"exit",S={offsetX:h,offsetY:v,reverse:d,transition:g,transitionEnd:y,delay:b};return u.createElement(a.M,{custom:S},_&&u.createElement(s.E.div,l({ref:t,className:(0,r.cx)("chakra-offset-slide",f),custom:S},N,{animate:w},x)))}));r.Ts&&(M.displayName="SlideFade")},15031:function(e,t,n){"use strict";n.d(t,{Ts:function(){return g},jX:function(){return a},yn:function(){return P},Qm:function(){return F},v0:function(){return K},cx:function(){return B},PB:function(){return M},VI:function(){return ie},YU:function(){return w},xH:function(){return re},T_:function(){return te},sq:function(){return k},t5:function(){return q},K1:function(){return E}
1,kJ:function(){return c},jU:function(){return N},FS:function(){return v},Qr:function(){return p},mf:function(){return l},Ft:function(){return h},hj:function(){return u},Kn:function(){return f},n_:function(){return z},HD:function(){return m},o8:function(){return d},XQ:function(){return oe},Wf:function(){return x},ZT:function(){return Q},uh:function(){return L},lw:function(){return _},Yd:function(){return S},CE:function(){return y},ei:function(){return b},zG:function(){return ee},px:function(){return C},cl:function(){return s},Pu:function(){return Y},ZK:function(){return J}});n(38554);var r=1/60*1e3,i="undefined"!==typeof performance?function(){return performance.now()}:function(){return Date.now()};function o(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}function a(e,t){return[].concat(e,[t])}function s(e,t){return e.filter((function(e){return e!==t}))}function u(e){return"number"===typeof e}function c(e){return Array.isArray(e)}function l(e){return"function"===typeof e}function d(e){return"undefined"===typeof e||void 0===e}function f(e){var t=typeof e;return null!=e&&("object"===t||"function"===t)&&!c(e)}function p(e){return f(e)&&0===Object.keys(e).length}function h(e){return null==e}function m(e){return"[object String]"===Object.prototype.toString.call(e)}function v(e){return/^var\(--.+\)$/.test(e)}var g=!1;function y(e,t){var n={};return Object.keys(e).forEach((function(r){t.includes(r)||(n[r]=e[r])})),n}function b(e,t){var n={};return t.forEach((function(t){t in e&&(n[t]=e[t])})),n}var x=function(e){var t=new WeakMap;return function(n,r,i,o){if("undefined"===typeof n)return e(n,r,i);t.has(n)||t.set(n,new Map);var a=t.get(n);if(a.has(r))return a.get(r);var s=e(n,r,i,o);return a.set(r,s),s}}((function(e,t,n,r){var i="string"===typeof t?t.split("."):[t];for(r=0;r<i.length&&e;r+=1)e=e[i[r]];return void 0===e?n:e}));function _(e,t){var n={};return Object.keys(e).forEach((function(r){var i=e[r];t(i,r,e)&&(n[r]=i)})),n}var w=function(e){return _(e,(function(e){return null!==e&&void 0!==e}))},S=function(e){return Object.keys(e)},k=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},E=function(e,t,n){var r,i;return null!=(r=null==(i=e.__cssMap[t+"."+n])?void 0:i.varRef)?r:n};function C(e){if(null==e)return e;var t=function(e){var t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e);return t.unitless||u(e)?e+"px":e}var j=function(e,t){return parseInt(e[1],10)>parseInt(t[1],10)?1:-1},T=function(e){return k(Object.entries(e).sort(j))};function R(e){var t=T(e);return Object.assign(Object.values(t),t)}function O(e,t){var n=["@media screen"];return e&&n.push("and","(min-width: "+C(e)+")"),t&&n.push("and","(max-width: "+C(t)+")"),n.join(" ")}function P(e){var t;if(!e)return null;e.base=null!=(t=e.base)?t:"0px";var n=R(e),r=Object.entries(e).sort(j).map((function(e,t,n){var r,i=e[0],o=e[1],a=(null!=(r=n[t+1])?r:[])[1];return{breakpoint:i,minW:o,maxW:a=parseFloat(a)>0?function(e){var t;if(!e)return e;
1var n=(e=null!=(t=C(e))?t:e).endsWith("px")?-1:-.0635;return u(e)?""+(e+n):e.replace(/([0-9]+\.?[0-9]*)/,(function(e){return""+(parseFloat(e)+n)}))}(a):void 0,maxWQuery:O(null,a),minWQuery:O(o),minMaxQuery:O(o,a)}})),i=function(e){var t=Object.keys(T(e));return new Set(t)}(e),a=Array.from(i.values());return{keys:i,normalized:n,isResponsive:function(e){var t=Object.keys(e);return t.length>0&&t.every((function(e){return i.has(e)}))},asObject:T(e),asArray:R(e),details:r,media:[null].concat(n.map((function(e){return O(e)})).slice(1)),toArrayValue:function(e){if(!f(e))throw new Error("toArrayValue: value must be an object");for(var t=a.map((function(t){var n;return null!=(n=e[t])?n:null}));null===o(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=a[n];return null!=r&&null!=t&&(e[r]=t),e}),{})}}}function A(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function D(e){var t;return!!A(e)&&e instanceof(null!=(t=e.ownerDocument.defaultView)?t:window).HTMLElement}function I(e){var t;return A(e)&&null!=(t=e.ownerDocument)?t:document}var N=!("undefined"===typeof window||!window.document||!window.document.createElement),M=function(e){return e?"":void 0},F=function(e){return!!e||void 0},B=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")};function L(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function z(e){return 0!==e.button}var U=function(e){return e.hasAttribute("tabindex")};function H(e){return(D(e)?I(e):document).activeElement===e}function V(e){return!(!e.parentElement||!V(e.parentElement))||e.hidden}function W(e){if(!D(e)||V(e)||function(e){return!0===Boolean(e.getAttribute("disabled"))||!0===Boolean(e.getAttribute("aria-disabled"))}(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]():!!function(e){var t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||U(e)}var G=["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 q(e){var t=Array.from(e.querySelectorAll(G));return t.unshift(e),t.filter(W).filter((function(e){return"none"!==window.getComputedStyle(e).display}))}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(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}}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0;return function(){return r>=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.")}function Y(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return l(e)?e.apply(void 0,n):e}function K(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.some((function(t){return null==t||t(e),null==e?void 0:e.defaultPrevented}))}}function X(e){var t;return function(){if(e){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t=e.apply(this,r),e=null}return t}}var Q=function(){},J=X((function(e){return function(){var t=e.condition,n=e.message;t&&g&&console.warn(n)}})),ee=(X((function(e){return function(){var t=e.condition,n=e.message;t&&g&&console.error(n)}})),function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduce((function(e,t){return t(e)}),e)}});function te(e,t){void 0===t&&(t={});var n=t,r=n.isActive,i=void 0===r?H:r,o=n.nextTick,a=n.preventScroll,s=void 0===a||a,u=n.selectTextIfInput,c=void 0===u||u;if(!e||i(e))return-1;function l(){if(e){if(function(){if(null==ne){ne=!1;try{document.createElement("div").focus({get preventScroll(){return ne=!0,!0}})}catch(e){}}return ne}())e.focus({preventScroll:s});else if(e.focus(),s){var t=function(e){var t,n=I(e),r=null!=(t=n.defaultView)?t:window,i=e.parentNode,o=[],a=n.scrollingElement||n.documentElement;for(;i instanceof r.HTMLElement&&i!==a;)(i.offsetHeight<i.scrollHeight||i.offsetWidth<i.scrollWidth)&&o.push({element:i,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft}),i=i.parentNode;a instanceof r.HTMLElement&&o.push({element:a,scrollTop:a.scrollTop,scrollLeft:a.scrollLeft});return o}(e);!function(e){for(var t,n=$(e);!(t=n()).done;
1){var r=t.value,i=r.element,o=r.scrollTop,a=r.scrollLeft;i.scrollTop=o,i.scrollLeft=a}}(t)}(function(e){return D(e)&&"input"===e.tagName.toLowerCase()&&"select"in e})(e)&&c&&e.select()}else J({condition:!0,message:"[chakra-ui]: can't call focus() on `null` or `undefined` element"})}return o?requestAnimationFrame(l):(l(),-1)}var ne=null;function re(e,t){return void 0===t&&(t=1/0),(f(e)||Array.isArray(e))&&t?Object.entries(e).reduce((function(e,n){var r=n[0],i=n[1];return f(i)||c(i)?Object.entries(re(i,t-1)).forEach((function(t){var n=t[0],i=t[1];e[r+"."+n]=i})):e[r]=i,e}),{}):e}function ie(e){var t=e.hasBeenSelected,n=e.isLazy,r=e.isSelected,i=e.lazyBehavior;return!n||(!!r||!("keepMounted"!==(void 0===i?"unmount":i)||!t))}Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER;Object.freeze(["base","sm","md","lg","xl","2xl"]);function oe(e,t){return c(e)?e.map((function(e){return null===e?null:t(e)})):f(e)?S(e).reduce((function(n,r){return n[r]=t(e[r]),n}),{}):null!=e?t(e):null}},1358:function(e,t,n){"use strict";n.d(t,{TX:function(){return a}});var r=n(5993),i=n(15031),o={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:o});i.Ts&&(a.displayName="VisuallyHidden");var s=(0,r.m$)("input",{baseStyle:o});i.Ts&&(s.displayName="VisuallyHiddenInput")},6106:function(e,t,n){"use strict";n.d(t,{Z:function(){return ie}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){0}}else t.appendChild(document.createTextNode(e));this.ctr++}
vendor: 9,391 bytes, line 1
1,t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),i=Math.abs,o=String.fromCharCode,a=Object.assign;function s(e){return e.trim()}function u(e,t,n){return e.replace(t,n)}function c(e,t){return e.indexOf(t)}function l(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function f(e){return e.length}function p(e){return e.length}function h(e,t){return t.push(e),e}var m=1,v=1,g=0,y=0,b=0,x="";function _(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:m,column:v,length:a,return:""}}function w(e,t){return a(_("",null,null,"",null,null,0),e,{length:-e.length},t)}function S(){return b=y>0?l(x,--y):0,v--,10===b&&(v=1,m--),b}function k(){return b=y<g?l(x,y++):0,v++,10===b&&(v=1,m++),b}function E(){return l(x,y)}function C(){return y}function j(e,t){return d(x,e,t)}function T(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function R(e){return m=v=1,g=f(x=e),y=0,[]}function O(e){return x="",e}function P(e){return s(j(y-1,I(91===e?e+2:40===e?e+1:e)))}function A(e){for(;(b=E())&&b<33;)k();return T(e)>2||T(b)>3?"":" "}function D(e,t){for(;--t&&k()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return j(e,C()+(t<6&&32==E()&&32==k()))}function I(e){for(;k();)switch(b){case e:return y;case 34:case 39:34!==e&&39!==e&&I(b);break;case 40:41===e&&I(e);break;case 92:k()}return y}function N(e,t){for(;k()&&e+b!==57&&(e+b!==84||47!==E()););return"/*"+j(t,y-1)+"*"+o(47===e?e:k())}function M(e){for(;!T(E());)k();return j(e,y)}var F="-ms-",B="-moz-",L="-webkit-",z="comm",U="rule",H="decl",V="@keyframes";function W(e,t){for(var n="",r=p(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function G(e,t,n,r){switch(e.type){case"@import":case H:return e.return=e.return||e.value;case z:return"";case V:return e.return=e.value+"{"+W(e.children,r)+"}";case U:e.value=e.props.join(",")}return f(n=W(e.children,r))?e.return=e.value+"{"+n+"}":""}function q(e,t){switch(function(e,t){return(((t<<2^l(e,0))<<2^l(e,1))<<2^l(e,2))<<2^l(e,3)}(e,t)){case 5103:return L+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return L+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return L+e+B+e+F+e+e;case 6828:case 4268:return L+e+F+e+e;case 6165:return L+e+F+"flex-"+e+e;case 5187:return L+e+u(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return L+e+F+"flex-item-"+u(e,/flex-|-self/,"")+e;case 4675:return L+e+F+"flex-line-pack"+u(e,/align-content|flex-|-self/,"")+e;case 5548:return L+e+F+u(e,"shrink","negative")+e;case 5292:return L+e+F+u(e,"basis","preferred-size")+e;case 6060:return L+"box-"+u(e,"-grow","")+L+e+F+u(e,"grow","positive")+e;case 4554:return L+u(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return u(u(u(e,/(zoom-|grab)/,L+"$1"),/(image-set)/,L+"$1"),e,"")+e;case 5495:case 3959:return u(e,/(image-set\([^]*)/,L+"$1$`$1");case 4968:return u(u(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+L+e+e;case 4095:case 3583:case 4068:case 2532:return u(e,/(.+)-inline(.+)/,L+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(f(e)-1-t>6)switch(l(e,t+1)){case 109:if(45!==l(e,t+4))break;case 102:return u(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+B+(108==l(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?q(u(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==l(e,t+1))break;case 6444:switch(l(e,f(e)-3-(~c(e,"!important")&&10))){case 107:return u(e,":",":"+L)+e;case 101:return u(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+L+(45===l(e,14)?"inline-":"")+"box$3$1"+L+"$2$3$1"+F+"$2box$3")+e}break;case 5936:switch(l(e,t+11)){case 114:return L+e+F+u(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return L+e+F+u(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return L+e+F+u(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return L+e+F+e+e}return e}function Z(e){return O($("",null,null,null,[""],e=R(e),0,[0],e))}function $(e,t,n,r,i,a,s,l,d){for(var p=0,m=0,v=s,g=0,y=0,b=0,x=1,_=1,w=1,j=0,T="",R=i,O=a,I=r,F=T;_;)switch(b=j,j=k()){case 40:if(108!=b&&58==F.charCodeAt(v-1)){-1!=c(F+=u(P(j),"&","&\f"),"&\f")&&(w=-1);break}case 34:case 39:case 91:F+=P(j);break;case 9:case 10:case 13:case 32:F+=A(b);break;case 92:F+=D(C()-1,7);continue;case 47:switch(E()){case 42:case 47:h(K(N(k(),C()),t,n),d);break;default:F+="/"}break;case 123*x:l[p++]=f(F)*w;case 125*x:case 59:case 0:switch(j){case 0:case 125:_=0;case 59+m:y>0&&f(F)-v&&h(y>32?X(F+";",r,n,v-1):X(u(F," ","")+";",r,n,v-2),d);break;case 59:F+=";";default:if(h(I=Y(F,t,n,p,m,i,l,T,R=[],O=[],v),a),123===j)if(0===m)$(F,t,I,I,R,a,v,l,O);else switch(g){case 100:case 109:case 115:$(e,I,I,r&&h(Y(e,I,I,0,0,i,l,T,i,R=[],v),O),i,O,v,l,r?R:O);break;default:$(F,I,I,I,[""],O,0,l,O)}}p=m=y=0,x=w=1,T=F="",v=s;break;case 58:v=1+f(F),y=b;default:if(x<1)if(123==j)--x;else if(125==j&&0==x++&&125==S())continue;switch(F+=o(j),j*x){case 38:w=m>0?1:(F+="\f",-1);break;case 44:l[p++]=(f(F)-1)*w,w=1;break;case 64:45===E()&&(F+=P(k())),g=E(),m=v=f(T=F+=M(C())),j++;break;case 45:45===b&&2==f(F)&&(x=0)}}return a}function Y(e,t,n,r,o,a,c,l,f,h,m){for(var v=o-1,g=0===o?a:[""],y=p(g),b=0,x=0,w=0;b<r;++b)for(var S=0,k=d(e,v+1,v=i(x=c[b])),E=e;S<y;++S)(E=s(x>0?g[S]+" "+k:u(k,/&\f/g,g[S])))&&(f[w++]=E);return _(e,t,n,0===o?U:l,f,h,m)}function K(e,t,n){return _(e,t,n,z,o(b),d(e,2,-2),0)}function X(e,t,n,r){return _(e,t,n,H,d(e,0,r),d(e,r+1,-1),r)}var Q=function(e,t,n){for(var r=0,i=0;r=i,i=E(),38===r&&12===i&&(t[n]=1),!T(i);)k();return j(e,y)},J=function(e,t){return O(function(e,t){var n=-1,r=44;do{switch(T(r)){case 0:38===r&&12===E()&&(t[n]=1),e[n]+=Q(y-1,t,n);break;case 2:e[n]+=P(r);break;case 4:if(44===r){e[++n]=58===E()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}}while(r=k());return e}(R(e),t))},ee=new WeakMap,te=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ee.get(n))&&!r){ee.set(e,!0);for(var i=[],o=J(t,i),a=n.props,s=0,u=0;s<o.length;s++)for(var c=0;c<a.length;c++,u++)e.props[u]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},ne=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case H:e.return=q(e.value,e.length);break;case V:return W([w(e,{value:u(e.value,"@","@"+L)})],r);case U:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return W([w(e,{props:[u(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return W([w(e,{props:[u(t,/:(plac\w+)/,":-webkit-input-$1")]}),w(e,{props:[u(t,/:(plac\w+)/,":-moz-$1")]}),w(e,{props:[u(t,/:(plac\w+)/,F+"input-$1")]})],r)}return""}))}}],ie=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i=e.stylisPlugins||re;var o,a,s={},u=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;u.push(e)}));var c,l,d=[G,(l=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],f=function(e){var t=p(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}([te,ne].concat(i,d));a=function(e,t,n,r){c=n,W(Z(e?e+"{"+t.styles+"}":t.styles),f),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new r({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:a};return h.sheet.hydrate(u),h}},59122:function(e,t,n){"use strict";var r=n(67866),i=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInl
1ine|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,o=(0,r.Z)((function(e){return i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));t.Z=o},67866:function(e,t){"use strict";t.Z=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},23663:function(e,t,n){"use strict";n.d(t,{T:function(){return l},b:function(){return f},w:function(){return c}});var r=n(67294),i=n.t(r,2),o=n(6106),a=n(87462),s=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}},u=(n(44478),(0,r.createContext)("undefined"!==typeof HTMLElement?(0,o.Z)({key:"css"}):null));u.Provider;var c=function(e){return(0,r.forwardRef)((function(t,n){var i=(0,r.useContext)(u);return e(t,i,n)}))},l=(0,r.createContext)({});var d=s((function(e){return s((function(t){return function(e,t){return"function"===typeof t?t(e):(0,a.Z)({},e,t)}(e,t)}))})),f=function(e){var t=(0,r.useContext)(l);return e.theme!==t&&(t=d(t)(e.theme)),(0,r.createElement)(l.Provider,{value:t},e.children)};i.useInsertionEffect&&i.useInsertionEffect},70917:function(e,t,n){"use strict";var r;n.d(t,{F4:function(){return d},xB:function(){return c}});var i=n(67294),o=(n(6106),n(23663)),a=(n(8679),n(70444)),s=n(44478),u=(r||(r=n.t(i,2))).useInsertionEffect?(r||(r=n.t(i,2))).useInsertionEffect:i.useLayoutEffect,c=(0,o.w)((function(e,t){var n=e.styles,r=(0,s.O)([n],void 0,(0,i.useContext)(o.T)),c=(0,i.useRef)();return u((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,o=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==o&&(i=!0,o.setAttribute("data-emotion",e),n.hydrate([o])),c.current=[n,i],function(){n.flush()}}),[t]),u((function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&(0,a.My)(t,r.next,!0),n.tags.length){var i=n.tags[n.tags.length-1].nextElementSibling;n.before=i,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function l(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,s.O)(t)}var d=function(){var e=l.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},44478:function(e,t,n){"use strict";n.d(t,{O:function(){return m}});var r=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},i=n(40351),o=n(67866),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!==typeof e},l=(0,o.Z)((function(e){return u(e)?e:e.replace(a,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(s,(function(e,t,n){return p={name:t,styles:n,next:p},t}))}return 1===i.Z[e]||u(e)||"number"!==typeof t||0===t?t:t+"px"};function f(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return p={name:n.name,styles:n.styles,next:p},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)p={name:r.name,styles:r.styles,next:p},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=f(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!==typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":c(a)&&(r+=l(o)+":"+d(o,a)+";");else if(!Array.isArray(a)||"string"!==typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=f(e,t,a);switch(o){case"animation":case"animationName":r+=l(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var u=0;u<a.length;u++)c(a[u])&&(r+=l(o)+":"+d(o,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=p,o=n(e);return p=i,f(e,t,o)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var p,h=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var m=function(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i=!0,o="";p=void 0;var a=e[0];null==a||void 0===a.raw?(i=!1,o+=f(n,t,a)):o+=a[0];for(var s=1;s<e.length;s++)o+=f(n,t,e[s]),i&&(o+=a[s]);h.lastIndex=0;for(var u,c="";null!==(u=h.exec(o));)c+="-"+u[1];return{name:r(o)+c,styles:o,next:p}}},40351:function(e,t){"use strict";t.Z={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGr
1idRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},70444:function(e,t,n){"use strict";n.d(t,{My:function(){return o},fp:function(){return r},hC:function(){return i}});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},o=function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0);o=o.next}while(void 0!==o)}}},49474:function(e,t,n){"use strict";n.r(t),n.d(t,{Portal:function(){return s},default:function(){return u}});var r=n(67294);function i(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}var o=i()?r.useLayoutEffect:r.useEffect;var a=n(73935),s=function(e){var t=e.children,n=e.type,i=void 0===n?"reach-portal":n,s=e.containerRef,u=(0,r.useRef)(null),c=(0,r.useRef)(null),l=function(){var e=(0,r.useState)(Object.create(null))[1];return(0,r.useCallback)((function(){e(Object.create(null))}),[])}();return o((function(){if(u.current){var e=u.current.ownerDocument,t=(null==s?void 0:s.current)||e.body;return c.current=null==e?void 0:e.createElement(i),t.appendChild(c.current),l(),function(){c.current&&t&&t.removeChild(c.current)}}}),[i,l,s]),c.current?(0,a.createPortal)(t,c.current):(0,r.createElement)("span",{ref:u})};var u=s},86891:function(e,t,n){"use strict";n.d(t,{Wz:function(){return c},m9:function(){return s},re:function(){return d}});var r=n(64487),i=n(71235),o=n(20535),a=n(62844);const s=i.n2;let u=0;function c(){return u>0}function l(){u++,setTimeout((()=>{u--}))}function d(e,t={},n){if("function"!==typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return t;if((0,o.HK)(e))return e}catch(s){return e}const i=function(){const i=Array.prototype.slice.call(arguments);try{n&&"function"===typeof n&&n.apply(this,arguments);const r=i.map((e=>d(e,t)));return e.apply(this,r)}catch(o){throw l(),(0,r.$e)((e=>{e.addEventProcessor((e=>(t.mechanism&&((0,a.Db)(e,void 0,void 0),(0,a.EG)(e,t.mechanism)),e.extra={...e.extra,arguments:i},e))),(0,r.Tb)(o)})),o}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t])}catch(u){}(0,o.$Q)(i,e),(0,o.xp)(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:()=>e.name})}catch(u){}return i}},11507:function(e,t,n){"use strict";n.d(t,{yl:function(){return nt},S1:function(){return tt}});var r=n(12343),i=n(62844),o=n(57321);const a=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class s{static __initStatic(){this.id="InboundFilters"}__init(){this.name=s.id}constructor(e={}){this._options=e,s.prototype.__init.call(this)}setupOnce(e,t){const n=e=>{const n=t();if(n){const t=n.getIntegration(s);if(t){const s=n.getClient(),c=s?s.getOptions():{},l=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...a],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(t._options,c);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(t){}return!1}(e))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${(0,i.jH)(e)}`),!0;if(function(e,t){if(e.type||!t||!t.length)return!1;return function(e){if(e.message)return[e.message];if(e.exception){const{values:n}=e.exception;try{const{type:e="",value:t=""}=n&&n[n.length-1]||{};return[`${t}`,`${e}: ${t}`]}catch(t){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error(`Cannot extract message for event ${(0,i.jH)(e)}`),[]}}return[]}(e).some((e=>(0,o.U0)(e,t)))}(e,t.ignoreErrors))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,i.jH)(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&(0,o.U0)(n,t)}(e,t.ignoreTransactions))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,i.jH)(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;const n=u(e);return!!n&&(0,o.U0)(n,t)}(e,t.denyUrls))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,i.jH)(e)}.\nUrl: ${u(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;const n=u(e);return!n||(0,o.U0)(n,t)}(e,t.allowUrls))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,i.jH)(e)}.\nUrl: ${u(e)}`),!0;return!1}(e,l)?null:e}}return e};n.id=this.name,e(n)}}function u(e){try{let n;try{n=e.exception.values[0].stacktrace.frames}catch(t){}return n?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch(n){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error(`Cannot extract url for event ${(0,i.jH)(e)}`),null}}s.__initStatic();var c=n(20535);let l;class d{constructor(){d.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=d.id}setupOnce(){l=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=(0,c.HK)(this)||this;return l.apply(t,e)}}catch(e){}}}d.__initStatic();var f=n(95659),p=n(10350);const h=[];function m(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;t.forEach((e=>{e.isDefaultInstance=!0})),r=Array.isArray(n)?[...t,...n]:"function"===typeof n?(0,i.lE)(n(t)):t;const o=function(e){const t={};return e.forEach((e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.keys(t).map((e=>t[e]))}(r),a=function(e,t){for(let n=0;n<e.length;n++)if(!0===t(e[n]))return n;return-1}(o,(e=>"Debug"===e.name));if(-1!==a){const[e]=o.splice(a,1);o.push(e)}return o}function v(e,t){t[e.name]=e,-1===h.indexOf(e.name)&&(e.setupOnce(p.c,f.Gd),h.push(e.name),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`Integration installed: ${e.name}`))}var g=n(30360),y=n(8823),b=n(96893),x=n(35648),_=n(30292),w=n(67597);function S(e,t=100,n=1/0){try{return E("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function k(e,t=3,n=102400){const r=S(e,t);return i=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>n?k(e,t-1,n):r;var i}function E(e,t,r=1/0,i=1/0,o=function(){const e="function"===typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[a,s]=o;if(null==t||["number","boolean","string"].includes(typeof t)&&!(0,w.i2)(t))return t;const u=function(e,t){try{if("domain"===e&&t&&"object"===typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!==typeof n.g&&t===n.g)return"[Global]";if("undefined"!==typeof window&&t===window)return"[Window]";if("undefined"!==typeof document&&t===document)return"[Document]";if((0,w.Cy)(t))return"[SyntheticEvent]";if("number"===typeof t&&t!==t)return"[NaN]";if("function"===typeof t)return`[Function: ${(0,g.$P)(t)}]`;if("symbol"===typeof t)return`[${String(t)}]`;if("bigint"===typeof t)return`[BigInt: ${String(t)}]`;const r=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return`**non-serializable** (${r})`}}(e,t);if(!u.startsWith("[object "))return u;if(t.__sentry_skip_normalization__)return t;const l="number"===typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:r;if(0===l)return u.replace("object ","");if(a(t))return"[Circular ~]";const d=t;if(d&&"function"===typeof d.toJSON)try{return E("",d.toJSON(),l-1,i,o)}catch(m){}const f=Array.isArray(t)?[]:{};let p=0;const h=(0,c.Sh)(t);for(const n in h){if(!Object.prototype.hasOwnProperty.call(h,n))continue;if(p>=i){f[n]="[MaxProperties ~]";break}const e=h[n];f[n]=E(n,e,l-1,i,o),p++}return s(t),f}function C(e,t=[]){return[e,t]}function j(e,t){const[n,r]=e;return[n,[...r,t]]}function T(e,t){const n=e[1];for(const r of n){if(t(r,r[0].type))return!0}return!1}function R(e,t){return(t||new TextEncoder).encode(e)}function O(e,t){const[n,r]=e;let i=JSON.stringify(n);function o(e){"string"===typeof i?i="string"===typeof e?i+e:[R(i,t),e]:i.push("string"===typeof e?R(e,t):e)}for(const s of r){const[e,t]=s;if(o(`\n${JSON.stringify(e)}\n`),"string"===typeof t||t instanceof Uint8Array)o(t);else{let e;try{e=JSON.stringify(t)}catch(a){e=JSON.stringify(S(t))}o(e)}}return"string"===typeof i?i:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}(i)}function P(e,t){const n="string"===typeof e.data?R(e.data,t):e.data;return[(0,c.Jr)({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const A={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor"};function D(e){return A[e]}function I(e){if(!e||!e.sdk)return;
1const{name:t,version:n}=e.sdk;return{name:t,version:n}}var N=n(80409);function M(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function F(e,t={}){const n="string"===typeof t?t:t.tunnel,r="string"!==typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${M(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return(0,c._j)({sentry_key:e.publicKey,sentry_version:"7",...t&&{sentry_client:`${t.name}/${t.version}`}})}(e,r)}`}function B(e,t,n,r){const i=I(n),o=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const a=function(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&{dsn:(0,_.RA)(r)},...i&&{trace:(0,c.Jr)({...i})}}}(e,i,r,t);delete e.sdkProcessingMetadata;return C(a,[[{type:o},e]])}var L=n(9015),z=n(21170),U=n(71235),H=n(51131);function V(e,t,n,r){const{normalizeDepth:a=3,normalizeMaxBreadth:s=1e3}=e,u={...t,event_id:t.event_id||n.event_id||(0,i.DM)(),timestamp:t.timestamp||(0,z.yW)()},c=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:r,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:H.J);void 0===e.release&&void 0!==r&&(e.release=r);void 0===e.dist&&void 0!==i&&(e.dist=i);e.message&&(e.message=(0,o.$G)(e.message,a));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=(0,o.$G)(s.value,a));const u=e.request;u&&u.url&&(u.url=(0,o.$G)(u.url,a))}(u,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(u,c),void 0===t.type&&function(e,t){const n=U.n2._sentryDebugIds;if(!n)return;let r;const i=W.get(t);i?r=i:(r=new Map,W.set(t,r));const o=Object.keys(n).reduce(((e,i)=>{let o;const a=r.get(i);a?o=a:(o=t(i),r.set(i,o));for(let t=o.length-1;t>=0;t--){const r=o[t];if(r.filename){e[r.filename]=n[i];break}}return e}),{}),a=new Set;try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&a.add(e.filename)}))}))}catch(u){}e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const s=e.debug_meta.images;a.forEach((e=>{o[e]&&s.push({type:"sourcemap",code_file:e,debug_id:o[e]})}))}(u,e.stackParser);let l=r;n.captureContext&&(l=p.s.clone(l).update(n.captureContext));let d=(0,b.WD)(u);if(l){if(l.getAttachments){const e=[...n.attachments||[],...l.getAttachments()];e.length&&(n.attachments=e)}d=l.applyToEvent(u,n)}return d.then((e=>"number"===typeof a&&a>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:S(e.data,t,n)}})))},...e.user&&{user:S(e.user,t,n)},...e.contexts&&{contexts:S(e.contexts,t,n)},...e.extra&&{extra:S(e.extra,t,n)}};e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=S(e.contexts.trace.data,t,n)));e.spans&&(r.spans=e.spans.map((e=>(e.data&&(e.data=S(e.data,t,n)),e))));return r}(e,a,s):e))}const W=new WeakMap;const G="Not capturing exception because it's already been captured.";class q{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}__init5(){this._hooks={}}constructor(e){if(q.prototype.__init.call(this),q.prototype.__init2.call(this),q.prototype.__init3.call(this),q.prototype.__init4.call(this),q.prototype.__init5.call(this),this._options=e,e.dsn){this._dsn=(0,_.vK)(e.dsn);const t=F(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("No DSN provided, client will not do anything.")}captureException(e,t,n){if((0,i.YO)(e))return void(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(G));let o=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{o=e}))),o}captureMessage(e,t,n,r){let i=n&&n.event_id;const o=(0,w.pt)(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(o.then((e=>this._captureEvent(e,n,r))).then((e=>{i=e}))),i}captureEvent(e,t,n){if(t&&t.originalException&&(0,i.YO)(t.originalException))return void(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(G));let o=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((e=>{o=e}))),o}captureSession(e){this._isEnabled()?"string"!==typeof e.release?("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,L.CT)(e,{init:!1})):("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("SDK not enabled, will not capture session.")}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;
1return t?this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e)))):(0,b.WD)(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,e)))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(e){const t={};return e.forEach((e=>{e&&v(e,t)})),t}(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){v(e,this._integrations)}sendEvent(e,t={}){if(this._dsn){let n=B(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=j(n,P(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));const r=this._sendEnvelope(n);r&&r.then((t=>this.emit("afterSendEvent",e,t)),null)}}sendSession(e){if(this._dsn){const t=function(e,t,n,r){const i=I(n);return C({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&{dsn:(0,_.RA)(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const n=`${e}:${t}`;("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach((e=>e(...t)))}_updateSessionFromEvent(e,t){let n=!1,r=!1;const i=t.exception&&t.exception.values;if(i){r=!0;for(const e of i){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const o="ok"===e.status;(o&&0===e.errors||o&&n)&&((0,L.CT)(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new b.cW((t=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(e,t,n){const r=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i.length>0&&(t.integrations=i),V(r,e,t,n)}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const t=e;"log"===t.logLevel?r.kg.log(t.message):r.kg.warn(t)}}))}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:i}=r;if(!this._isEnabled())return(0,b.$2)(new N.b("SDK not enabled, will not capture event.","log"));const o=$(e),a=Z(e),s=e.type||"error",u=`before send for type \`${s}\``;if(a&&"number"===typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),(0,b.$2)(new N.b(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const c="replay_event"===s?"replay":s;return this._prepareEvent(e,t,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",c,e),new N.b("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const i=function(e,t,n){const{beforeSend:r,beforeSendTransaction:i}=e;if(Z(t)&&r)return r(t,n);if($(t)&&i)return i(t,n);return t}(r,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if((0,w.J8)(e))return e.then((e=>{if(!(0,w.PO)(e)&&null!==e)throw new N.b(n);return e}),(e=>{throw new N.b(`${t} rejected with ${e}`)}));if(!(0,w.PO)(e)&&null!==e)throw new N.b(n);return e}(i,u)})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",c,e),new N.b(`${u} returned \`null\`, will not send event.`,"log");const i=n&&n.getSession();!o&&i&&this._updateSessionFromEvent(i,r);const a=r.transaction_info;if(o&&a&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...a,source:e}}return this.sendEvent(r,t),r})).then(null,(e=>{if(e instanceof N.b)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new N.b(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}
1_sendEnvelope(e){if(this._transport&&this._dsn)return this.emit("beforeEnvelope",e),this._transport.send(e).then(null,(e=>{("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("Error while sending event:",e)}));("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}}))}}function Z(e){return void 0===e.type}function $(e){return"transaction"===e.type}var Y=n(40105),K=n(68518);function X(e,t){const n=J(e,t),r={type:t&&t.name,value:te(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Q(e,t){return{exception:{values:[X(e,t)]}}}function J(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"===typeof e.framesToPop)return e.framesToPop;if(ee.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(i){}return[]}const ee=/Minified React error #\d+;/i;function te(e){const t=e&&e.message;return t?t.error&&"string"===typeof t.error.message?t.error.message:t:"No error message"}function ne(e,t,n,r,o){let a;if((0,w.VW)(t)&&t.error){return Q(e,t.error)}if((0,w.TX)(t)||(0,w.fm)(t)){const o=t;if("stack"in t)a=Q(e,t);else{const t=o.name||((0,w.TX)(o)?"DOMError":"DOMException"),s=o.message?`${t}: ${o.message}`:t;a=re(e,s,n,r),(0,i.Db)(a,s)}return"code"in o&&(a.tags={...a.tags,"DOMException.code":`${o.code}`}),a}if((0,w.VZ)(t))return Q(e,t);if((0,w.PO)(t)||(0,w.cO)(t)){return a=function(e,t,n,r){const i=(0,f.Gd)().getClient(),o=i&&i.getOptions().normalizeDepth,a={exception:{values:[{type:(0,w.cO)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:`Non-Error ${r?"promise rejection":"exception"} captured with keys: ${(0,c.zf)(t)}`}]},extra:{__serialized__:k(t,o)}};if(n){const t=J(e,n);t.length&&(a.exception.values[0].stacktrace={frames:t})}return a}(e,t,n,o),(0,i.EG)(a,{synthetic:!0}),a}return a=re(e,t,n,r),(0,i.Db)(a,`${t}`,void 0),(0,i.EG)(a,{synthetic:!0}),a}function re(e,t,n,r){const i={message:t};if(r&&n){const r=J(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}return i}var ie=n(86891),oe=n(58464);const ae=["fatal","error","warning","log","info","debug"];function se(e){return"warn"===e?"warning":ae.includes(e)?e:"log"}var ue=n(26956);const ce=1024,le="Breadcrumbs";class de{static __initStatic(){this.id=le}__init(){this.name=de.id}constructor(e){de.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){this.options.console&&(0,x.oq)("console",fe),this.options.dom&&(0,x.oq)("dom",function(e){function t(t){let n,i="object"===typeof e?e.serializeAttribute:void 0,o="object"===typeof e&&"number"===typeof e.maxStringLength?e.maxStringLength:void 0;o&&o>ce&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${o} was configured. Sentry will use 1024 instead.`),o=ce),"string"===typeof i&&(i=[i]);try{const e=t.event;n=function(e){return e&&!!e.target}(e)?(0,oe.Rt)(e.target,{keyAttrs:i,maxStringLength:o}):(0,oe.Rt)(e,{keyAttrs:i,maxStringLength:o})}catch(a){n="<unknown>"}0!==n.length&&(0,f.Gd)().addBreadcrumb({category:`ui.${t.name}`,message:n},{event:t.event,name:t.name,global:t.global})}return t}(this.options.dom)),this.options.xhr&&(0,x.oq)("xhr",pe),this.options.fetch&&(0,x.oq)("fetch",he),this.options.history&&(0,x.oq)("history",me)}addSentryBreadcrumb(e){this.options.sentry&&(0,f.Gd)().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,i.jH)(e)},{event:e})}}function fe(e){for(let n=0;n<e.args.length;n++)if("ref=Ref<"===e.args[n]){e.args[n+1]="viewRef";break}const t={category:"console",data:{arguments:e.args,logger:"console"},level:se(e.level),message:(0,o.nK)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message=`Assertion failed: ${(0,o.nK)(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1)}(0,f.Gd)().addBreadcrumb(t,{input:e.args,level:e.level})}function pe(e){const{startTimestamp:t,endTimestamp:n}=e,r=e.xhr[x.xU];if(!t||!n||!r)return;const{method:i,url:o,status_code:a,body:s}=r,u={method:i,url:o,status_code:a},c={xhr:e.xhr,input:s,startTimestamp:t,endTimestamp:n};(0,f.Gd)().addBreadcrumb({category:"xhr",data:u,type:"http"},c)}function he(e){const{startTimestamp:t,endTimestamp:n}=e;
1if(n&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){const r=e.fetchData,i={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n};(0,f.Gd)().addBreadcrumb({category:"fetch",data:r,level:"error",type:"http"},i)}else{const r={...e.fetchData,status_code:e.response&&e.response.status},i={input:e.args,response:e.response,startTimestamp:t,endTimestamp:n};(0,f.Gd)().addBreadcrumb({category:"fetch",data:r,type:"http"},i)}}function me(e){let t=e.from,n=e.to;const r=(0,ue.en)(ie.m9.location.href);let i=(0,ue.en)(t);const o=(0,ue.en)(n);i.path||(i=r),r.protocol===o.protocol&&r.host===o.host&&(n=o.relative),r.protocol===i.protocol&&r.host===i.host&&(t=i.relative),(0,f.Gd)().addBreadcrumb({category:"navigation",data:{from:t,to:n}})}de.__initStatic();class ve extends q{constructor(e){const t=ie.m9.SENTRY_SDK_SOURCE||(0,K.S)();e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${t}:@sentry/browser`,version:Y.J}],version:Y.J},super(e),e.sendClientReports&&ie.m9.document&&ie.m9.document.addEventListener("visibilitychange",(()=>{"hidden"===ie.m9.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,r){const o=ne(e,t,n&&n.syntheticException||void 0,r);return(0,i.EG)(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),(0,b.WD)(o)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){const o=re(e,t,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),(0,b.WD)(o)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}sendEvent(e,t){const n=this.getIntegrationById(le);n&&n.addSentryBreadcrumb&&n.addSentryBreadcrumb(e),super.sendEvent(e,t)}captureUserFeedback(e){if(!this._isEnabled())return void(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:(0,_.RA)(r)}},o=function(e){return[{type:"user_report"},e]}(e);return C(i,[o])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("No outcomes to send"));if(!this._dsn)return void(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("No dsn provided, will not send outcomes"));("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("Sending outcomes:",e);const t=(n=e,C((i=this._options.tunnel&&(0,_.RA)(this._dsn))?{dsn:i}:{},[[{type:"client_report"},{timestamp:o||(0,z.yW)(),discarded_events:n}]]));var n,i,o;this._sendEnvelope(t)}}class ge{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=ge.id}__init2(){this._installFunc={onerror:ye,onunhandledrejection:be}}constructor(e){ge.prototype.__init.call(this),ge.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...e}}setupOnce(){Error.stackTraceLimit=50;const e=this._options;for(const n in e){const i=this._installFunc[n];i&&e[n]&&(t=n,("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`Global Handler attached: ${t}`),i(),this._installFunc[n]=void 0)}var t}}function ye(){(0,x.oq)("error",(e=>{const[t,n,r]=we();if(!t.getIntegration(ge))return;const{msg:i,url:o,line:a,column:s,error:u}=e;if((0,ie.Wz)()||u&&u.__sentry_own_request__)return;const c=void 0===u&&(0,w.HD)(i)?function(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=(0,w.VW)(e)?e.message:e,a="Error";const s=o.match(i);s&&(a=s[1],o=s[2]);return xe({exception:{values:[{type:a,value:o}]}},t,n,r)}(i,o,a,s):xe(ne(n,u||i,void 0,r,!1),o,a,s);c.level="error",_e(t,u,c,"onerror")}))}function be(){(0,x.oq)("unhandledrejection",(e=>{const[t,n,r]=we();if(!t.getIntegration(ge))return;let i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch(a){}if((0,ie.Wz)()||i&&i.__sentry_own_request__)return!0;const o=(0,w.pt)(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:ne(n,i,void 0,r,!0);o.level="error",_e(t,i,o,"onunhandledrejection")}))}function xe(e,t,n,r){const i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},u=s.frames=s.frames||[],c=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,d=(0,w.HD)(t)&&t.length>0?t:(0,oe.l4)();return 0===u.length&&u.push({colno:c,filename:d,function:"?",in_app:!0,lineno:l}),e}function _e(e,t,n,r){(0,i.EG)(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function we(){const e=(0,f.Gd)(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}ge.__initStatic();const Se=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class ke{static __initStatic(){this.id="TryCatch"}__init(){this.name=ke.id}constructor(e){ke.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){this._options.setTimeout&&(0,c.hl)(ie.m9,"setTimeout",Ee),this._options.setInterval&&(0,c.hl)(ie.m9,"setInterval",Ee),this._options.requestAnimationFrame&&(0,c.hl)(ie.m9,"requestAnimationFrame",Ce),this._options.XMLHttpRequest&&"XMLHttpRequest"in ie.m9&&(0,c.hl)(XMLHttpRequest.prototype,"send",je);const e=this._options.eventTarget;if(e){(Array.isArray(e)?e:Se).forEach(Te)}}}function Ee(e){return function(...t){const n=t[0];return t[0]=(0,ie.re)(n,{mechanism:{data:{function:(0,g.$P)(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function Ce(e){return function(t){return e.apply(this,[(0,ie.re)(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,g.$P)(e)},handled:!0,type:"instrument"}})])}}function je(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"===typeof n[e]&&(0,c.hl)(n,e,(function(t){const n={mechanism:{data:{function:e,handler:(0,g.$P)(t)},handled:!0,type:"instrument"}},r=(0,c.HK)(t);return r&&(n.mechanism.data.handler=(0,g.$P)(r)),(0,ie.re)(t,n)}))})),e.apply(this,t)}}function Te(e){const t=ie.m9,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,c.hl)(n,"addEventListener",(function(t){return function(n,r,i){try{"function"===typeof r.handleEvent&&(r.handleEvent=(0,ie.re)(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,g.$P)(r),target:e},handled:!0,type:"instrument"}}))}catch(o){}return t.apply(this,[n,(0,ie.re)(r,{mechanism:{data:{function:"addEventListener",handler:(0,g.$P)(r),target:e},handled:!0,type:"instrument"}}),i])}})),(0,c.hl)(n,"removeEventListener",(function(e){return function(t,n,r){const i=n;try{const n=i&&i.__sentry_wrapped__;n&&e.call(this,t,n,r)}catch(o){}return e.call(this,t,i,r)}})))}ke.__initStatic();class Re{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=Re.id}constructor(e={}){Re.prototype.__init.call(this),this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){const e=(0,f.Gd)().getClient();e&&(0,p.c)(((t,n)=>{const r=(0,f.Gd)().getIntegration(Re);return r?function(e,t,n,r,i){if(!r.exception||!r.exception.values||!i||!(0,w.V9)(i.originalException,Error))return r;const o=Oe(e,n,i.originalException,t);return r.exception.values=[...o,...r.exception.values],r}(e.getOptions().stackParser,r._key,r._limit,t,n):t}))}}function Oe(e,t,n,r,i=[]){if(!(0,w.V9)(n[r],Error)||i.length+1>=t)return i;const o=X(e,n[r]);return Oe(e,t,n[r],r,[o,...i])}Re.__initStatic();class Pe{constructor(){Pe.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=Pe.id}setupOnce(){(0,p.c)((e=>{if((0,f.Gd)().getIntegration(Pe)){if(!ie.m9.navigator&&!ie.m9.location&&!ie.m9.document)return e;const t=e.request&&e.request.url||ie.m9.location&&ie.m9.location.href,{referrer:n}=ie.m9.document||{},{userAgent:r}=ie.m9.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:i};return{...e,request:o}}return e}))}}Pe.__initStatic();class Ae{constructor(){Ae.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=Ae.id}setupOnce(e,t){const n=e=>{if(e.type)return e;const n=t().getIntegration(Ae);if(n){try{if(function(e,t){if(!t)return!1;if(function(e,t){const n=e.message,r=t.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!Ie(e,t))return!1;if(!De(e,t))return!1;return!0}(e,t))return!0;
1if(function(e,t){const n=Ne(t),r=Ne(e);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!Ie(e,t))return!1;if(!De(e,t))return!1;return!0}(e,t))return!0;return!1}(e,n._previousEvent))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(i){return n._previousEvent=e}return n._previousEvent=e}return e};n.id=this.name,e(n)}}function De(e,t){let n=Me(e),r=Me(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++){const e=r[i],t=n[i];if(e.filename!==t.filename||e.lineno!==t.lineno||e.colno!==t.colno||e.function!==t.function)return!1}return!0}function Ie(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(i){return!1}}function Ne(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Me(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(n){return}}Ae.__initStatic();const Fe="?";function Be(e,t,n,r){const i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}const Le=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ze=/\((\S*)(?::(\d+))(?::(\d+))\)/,Ue=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,He=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ve=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,We=[[30,e=>{const t=Le.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=ze.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=qe(t[1]||Fe,t[2]);return Be(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{const t=Ue.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=He.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||Fe;return[n,e]=qe(n,e),Be(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{const t=Ve.exec(e);return t?Be(t[2],t[1]||Fe,+t[3],t[4]?+t[4]:void 0):void 0}]],Ge=(0,g.pE)(...We),qe=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:Fe,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};function Ze(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return(0,b.$2)(new N.b("Not adding Promise because buffer limit was reached."));const i=r();return-1===t.indexOf(i)&&t.push(i),i.then((()=>n(i))).then(null,(()=>n(i).then(null,(()=>{})))),i},drain:function(e){return new b.cW(((n,r)=>{let i=t.length;if(!i)return n(!0);const o=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{(0,b.WD)(e).then((()=>{--i||(clearTimeout(o),n(!0))}),r)}))}))}}}function $e(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},o=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(o)for(const s of o.trim().split(",")){const[e,t]=s.split(":",2),n=parseInt(e,10),o=1e3*(isNaN(n)?60:n);if(t)for(const a of t.split(";"))i[a]=r+o;else i.all=r+o}else a?i.all=r+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(a,r):429===t&&(i.all=r+6e4);return i}function Ye(e,t,n=Ze(e.bufferSize||30)){let i={};function o(o){const a=[];if(T(o,((t,n)=>{const r=D(n);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(i,r)){const i=Ke(t,n);e.recordDroppedEvent("ratelimit_backoff",r,i)}else a.push(t)})),0===a.length)return(0,b.WD)();const s=C(o[0],a),u=t=>{T(s,((n,r)=>{const i=Ke(n,r);e.recordDroppedEvent(t,D(r),i)}))};return n.add((()=>t({body:O(s,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),i=$e(i,e),e)),(e=>{throw u("network_error"),e})))).then((e=>e),(e=>{if(e instanceof N.b)return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("Skipped sending event because buffer is full."),u("queue_overflow"),(0,b.WD)();throw e}))}return o.__sentry__baseTransport__=!0,{send:o,flush:e=>n.drain(e)}}function Ke(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}
1let Xe;function Qe(e,t=function(){if(Xe)return Xe;if((0,y.Du)(ie.m9.fetch))return Xe=ie.m9.fetch.bind(ie.m9);const e=ie.m9.document;let t=ie.m9.fetch;if(e&&"function"===typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return Xe=t.bind(ie.m9)}()){let n=0,i=0;return Ye(e,(function(r){const o=r.body.length;n+=o,i++;const a={body:r.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&i<15,...e.fetchOptions};try{return t(e.url,a).then((e=>(n-=o,i--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(s){return Xe=void 0,n-=o,i--,(0,b.$2)(s)}}))}function Je(e){return Ye(e,(function(t){return new b.cW(((n,r)=>{const i=new XMLHttpRequest;i.onerror=r,i.onreadystatechange=()=>{4===i.readyState&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url);for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&i.setRequestHeader(t,e.headers[t]);i.send(t.body)}))}))}const et=[new s,new d,new ke,new de,new ge,new Re,new Ae,new Pe];function tt(e={}){void 0===e.defaultIntegrations&&(e.defaultIntegrations=et),void 0===e.release&&("string"===typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),ie.m9.SENTRY_RELEASE&&ie.m9.SENTRY_RELEASE.id&&(e.release=ie.m9.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);const t={...e,stackParser:(0,g.Sq)(e.stackParser||Ge),integrations:m(e),transport:e.transport||((0,y.Ak)()?Qe:Je)};!function(e,t){!0===t.debug&&("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?r.kg.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));const n=(0,f.Gd)();n.getScope().update(t.initialScope);const i=new e(t);n.bindClient(i)}(ve,t),e.autoSessionTracking&&function(){if("undefined"===typeof ie.m9.document)return void(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));const e=(0,f.Gd)();if(!e.captureSession)return;rt(e),(0,x.oq)("history",(({from:e,to:t})=>{void 0!==e&&e!==t&&rt((0,f.Gd)())}))}()}function nt(e){const t=(0,f.Gd)().getClient();return t?t.flush(e):(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Cannot flush events. No client defined."),(0,b.WD)(!1))}function rt(e){e.startSession({ignoreDuration:!0}),e.captureSession()}},51131:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});const r="production"},64487:function(e,t,n){"use strict";n.d(t,{$e:function(){return a},Tb:function(){return i},e:function(){return o}});var r=n(95659);function i(e,t){return(0,r.Gd)().captureException(e,{captureContext:t})}function o(e){(0,r.Gd)().configureScope(e)}function a(e){(0,r.Gd)().withScope(e)}}
1,95659:function(e,t,n){"use strict";n.d(t,{Gd:function(){return h},cu:function(){return f}});var r=n(62844),i=n(21170),o=n(12343),a=n(71235),s=n(51131),u=n(10350),c=n(9015);const l=100;class d{constructor(e,t=new u.s,n=4){this._version=n,this._stack=[{scope:t}],e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=u.s.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){const t=this.pushScope();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:(0,r.DM)(),i=new Error("Sentry syntheticException");return this._withClient(((r,o)=>{r.captureException(e,{originalException:e,syntheticException:i,...t,event_id:n},o)})),n}captureMessage(e,t,n){const i=this._lastEventId=n&&n.event_id?n.event_id:(0,r.DM)(),o=new Error(e);return this._withClient(((r,a)=>{r.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:i},a)})),i}captureEvent(e,t){const n=t&&t.event_id?t.event_id:(0,r.DM)();return e.type||(this._lastEventId=n),this._withClient(((r,i)=>{r.captureEvent(e,{...t,event_id:n},i)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:s=l}=r.getOptions&&r.getOptions()||{};if(s<=0)return;const u={timestamp:(0,i.yW)(),...e},c=a?(0,o.Cf)((()=>a(u,t))):u;null!==c&&(r.emit&&r.emit("beforeAddBreadcrumb",c,t),n.addBreadcrumb(c,s))}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=p(this);try{e(this)}finally{p(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(n){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);return"undefined"!==typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||n||console.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&(0,c.RJ)(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:i=s.J}=n&&n.getOptions()||{},{userAgent:o}=a.n2.navigator||{},u=(0,c.Hv)({release:r,environment:i,user:t.getUser(),...o&&{userAgent:o},...e}),l=t.getSession&&t.getSession();return l&&"ok"===l.status&&(0,c.CT)(l,{status:"exited"}),this.endSession(),t.setSession(u),u}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_withClient(e){const{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){const n=f().__SENTRY__;if(n&&n.extensions&&"function"===typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function f(){return a.n2.__SENTRY__=a.n2.__SENTRY__||{extensions:{},hub:void 0},a.n2}function p(e){const t=f(),n=g(t);return y(t,e),n}function h(){const e=f();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return m(e)}function m(e=f()){return v(e)&&!g(e).isOlderThan(4)||y(e,new d),g(e)}function v(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function g(e){return(0,a.YO)("hub",(()=>new d),e)}function y(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}},10350:function(e,t,n){"use strict";n.d(t,{c:function(){return f},s:function(){return l}});var r=n(67597),i=n(21170),o=n(96893),a=n(12343),s=n(62844),u=n(71235),c=n(9015);class l{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){const t=new l;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments],t._sdkProcessingMetadata={...e._sdkProcessingMetadata}),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&(0,c.CT)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"===typeof e){const t=e(this);return t instanceof l?t:this}return e instanceof l?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):(0,r.PO)(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,t){const n="number"===typeof t?t:100;if(n<=0)return this;const r={timestamp:(0,i.yW)(),...e};return this._breadcrumbs=[...this._breadcrumbs,r].slice(-n),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};const t=this._span.transaction;if(t){e.sdkProcessingMetadata={dynamicSamplingContext:t.getDynamicSamplingContext(),...e.sdkProcessingMetadata};const n=t.name;n&&(e.tags={transaction:n,...e.tags})}}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...d(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,t,n,i=0){return new o.cW(((o,s)=>{const u=e[i];if(null===t||"function"!==typeof u)o(t);else{const c=u({...t},n);("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.id&&null===c&&a.kg.log(`Event processor "${u.id}" dropped event`),(0,r.J8)(c)?c.then((t=>this._notifyEventProcessors(e,t,n,i+1).then(o))).then(null,s):this._notifyEventProcessors(e,c,n,i+1).then(o).then(null,s)}}))}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
1h((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?(0,s.lE)(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function d(){return(0,u.YO)("globalEventProcessors",(()=>[]))}function f(e){d().push(e)}},9015:function(e,t,n){"use strict";n.d(t,{CT:function(){return s},Hv:function(){return a},RJ:function(){return u}});var r=n(21170),i=n(62844),o=n(20535);function a(e){const t=(0,r.ph)(),n={sid:(0,i.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return(0,o.Jr)({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"===typeof e.did||"string"===typeof e.did?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&s(n,e),n}function s(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,r.ph)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,i.DM)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"===typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"===typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"===typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function u(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),s(e,n)}},40105:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});const r="7.52.1"},58464:function(e,t,n){"use strict";n.d(t,{Rt:function(){return o},l4:function(){return s},qT:function(){return u}});var r=n(67597);const i=(0,n(71235).Rf)();function o(e,t={}){try{let n=e;const r=5,i=[];let o=0,s=0;const u=" > ",c=u.length;let l;const d=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&o++<r&&(l=a(n,d),!("html"===l||o>1&&s+i.length*c+l.length>=f));)i.push(l),s+=l.length,n=n.parentNode;return i.reverse().join(u)}catch(n){return"<unknown>"}}function a(e,t){const n=e,i=[];let o,a,s,u,c;if(!n||!n.tagName)return"";i.push(n.tagName.toLowerCase());const l=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(l&&l.length)l.forEach((e=>{i.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&i.push(`#${n.id}`),o=n.className,o&&(0,r.HD)(o))for(a=o.split(/\s+/),c=0;c<a.length;c++)i.push(`.${a[c]}`);const d=["aria-label","type","name","title","alt"];for(c=0;c<d.length;c++)s=d[c],u=n.getAttribute(s),u&&i.push(`[${s}="${u}"]`);return i.join("")}function s(){try{return i.document.location.href}catch(e){return""}}function u(e){return i.document&&i.document.querySelector?i.document.querySelector(e):null}},30292:function(e,t,n){"use strict";n.d(t,{RA:function(){return o},U4:function(){return a},vK:function(){return u}});var r=n(80409);const i=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function o(e,t=!1){const{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:u}=e;return`${s}://${u}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${a}`}function a(e){const t=i.exec(e);if(!t)throw new r.b(`Invalid Sentry Dsn: ${e}`);const[n,o,a="",u,c="",l]=t.slice(1);let d="",f=l;const p=f.split("/");if(p.length>1&&(d=p.slice(0,-1).join("/"),f=p.pop()),f){const e=f.match(/^\d+/);e&&(f=e[0])}return s({host:u,pass:a,path:d,projectId:f,port:c,protocol:n,publicKey:o})}function s(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function u(e){const t="string"===typeof e?a(e):s(e);return function(e){if("undefined"!==typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return;const{port:t,projectId:n,protocol:i}=e;if(["protocol","publicKey","host","projectId"].forEach((t=>{if(!e[t])throw new r.b(`Invalid Sentry Dsn: ${t} missing`)})),!n.match(/^\d+$/))throw new r.b(`Invalid Sentry Dsn: Invalid projectId ${n}`);if(!function(e){return"http"===e||"https"===e}(i))throw new r.b(`Invalid Sentry Dsn: Invalid protocol ${i}`);if(t&&isNaN(parseInt(t,10)))throw new r.b(`Invalid Sentry Dsn: Invalid port ${t}`)}(t),t}},68518:function(e,t,n){"use strict";function r(){return"undefined"!==typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function i(){return"npm"}n.d(t,{S:function(){return i},n:function(){return r}})},80409:function(e,t,n){"use strict";n.d(t,{b:function(){return r}});
1class r extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}},35648:function(e,t,n){"use strict";n.d(t,{xU:function(){return d},oq:function(){return m}});var r=n(67597),i=n(12343),o=n(20535),a=n(30360),s=n(8823),u=n(71235);const c=(0,u.Rf)();const l=(0,u.Rf)(),d="__sentry_xhr_v2__",f={},p={};function h(e){if(!p[e])switch(p[e]=!0,e){case"console":!function(){if(!("console"in l))return;i.RU.forEach((function(e){e in l.console&&(0,o.hl)(l.console,e,(function(t){return function(...n){v("console",{args:n,level:e}),t&&t.apply(l.console,n)}}))}))}();break;case"dom":!function(){if(!("document"in l))return;const e=v.bind(null,"dom"),t=w(e,!0);l.document.addEventListener("click",t,!1),l.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=l[t]&&l[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,o.hl)(n,"addEventListener",(function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{const r=this,o=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},a=o[n]=o[n]||{refCount:0};if(!a.handler){const r=w(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch(o){}return t.call(this,n,r,i)}})),(0,o.hl)(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this,i=n.__sentry_instrumentation_handlers__||{},o=i[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete n.__sentry_instrumentation_handlers__)}catch(i){}return e.call(this,t,n,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in l))return;const e=XMLHttpRequest.prototype;(0,o.hl)(e,"open",(function(e){return function(...t){const n=t[1],i=this[d]={method:(0,r.HD)(t[0])?t[0].toUpperCase():t[0],url:t[1],request_headers:{}};(0,r.HD)(n)&&"POST"===i.method&&n.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const a=()=>{const e=this[d];if(e&&4===this.readyState){try{e.status_code=this.status}catch(n){}v("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&"function"===typeof this.onreadystatechange?(0,o.hl)(this,"onreadystatechange",(function(e){return function(...t){return a(),e.apply(this,t)}})):this.addEventListener("readystatechange",a),(0,o.hl)(this,"setRequestHeader",(function(e){return function(...t){const[n,r]=t,i=this[d];return i&&(i.request_headers[n.toLowerCase()]=r),e.apply(this,t)}})),e.apply(this,t)}})),(0,o.hl)(e,"send",(function(e){return function(...t){const n=this[d];return n&&void 0!==t[0]&&(n.body=t[0]),v("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}();break;case"fetch":!function(){if(!(0,s.t$)())return;(0,o.hl)(l,"fetch",(function(e){return function(...t){const{method:n,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:y(t),method:g(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:y(t),method:g(t,"method")?String(t.method).toUpperCase():"GET"}}(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return v("fetch",{...i}),e.apply(l,t).then((e=>(v("fetch",{...i,endTimestamp:Date.now(),response:e}),e)),(e=>{throw v("fetch",{...i,endTimestamp:Date.now(),error:e}),e}))}}))}();break;case"history":!function(){if(!function(){const e=c.chrome,t=e&&e.app&&e.app.runtime,n="history"in c&&!!c.history.pushState&&!!c.history.replaceState;return!t&&n}())return;const e=l.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=b,t=String(n);b=t,v("history",{from:e,to:t})}return e.apply(this,t)}}l.onpopstate=function(...t){const n=l.location.href,r=b;if(b=n,v("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(i){}},(0,o.hl)(l.history,"pushState",t),(0,o.hl)(l.history,"replaceState",t)}();break;case"error":S=l.onerror,l.onerror=function(e,t,n,r,i){return v("error",{column:r,error:i,line:n,msg:e,url:t}),!(!S||S.__SENTRY_LOADER__)&&S.apply(this,arguments)},l.onerror.__SENTRY_INSTRUMENTED__=!0;break;case"unhandledrejection":k=l.onunhandledrejection,l.onunhandledrejection=function(e){return v("unhandledrejection",e),!(k&&!k.__SENTRY_LOADER__)||k.apply(this,arguments)},l.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;break;default:return void(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.warn("unknown instrumentation type:",e))}}function m(e,t){f[e]=f[e]||[],f[e].push(t),h(e)}function v(e,t){if(e&&f[e])for(const r of f[e]||[])try{r(t)}catch(n){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,a.$P)(r)}\nError:`,n)}}function g(e,t){return!!e&&"object"===typeof e&&!!e[t]}function y(e){return"string"===typeof e?e:e?g(e,"url")?e.url:e.toString?e.toString():"":""}let b;let x,_;function w(e,t=!1){return n=>{if(!n||_===n)return;if(function(e){if("keypress"!==e.type)return!1;try{const t=e.target;if(!t||!t.tagName)return!0;
1if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(t){}return!0}(n))return;const r="keypress"===n.type?"input":n.type;(void 0===x||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(n){}return!1}(_,n))&&(e({event:n,name:r,global:t}),_=n),clearTimeout(x),x=l.setTimeout((()=>{x=void 0}),1e3)}}let S=null;let k=null},67597:function(e,t,n){"use strict";n.d(t,{Cy:function(){return v},HD:function(){return c},J8:function(){return m},Kj:function(){return h},PO:function(){return d},TX:function(){return s},V9:function(){return y},VW:function(){return a},VZ:function(){return i},cO:function(){return f},fm:function(){return u},i2:function(){return g},kK:function(){return p},pt:function(){return l}});const r=Object.prototype.toString;function i(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(e,Error)}}function o(e,t){return r.call(e)===`[object ${t}]`}function a(e){return o(e,"ErrorEvent")}function s(e){return o(e,"DOMError")}function u(e){return o(e,"DOMException")}function c(e){return o(e,"String")}function l(e){return null===e||"object"!==typeof e&&"function"!==typeof e}function d(e){return o(e,"Object")}function f(e){return"undefined"!==typeof Event&&y(e,Event)}function p(e){return"undefined"!==typeof Element&&y(e,Element)}function h(e){return o(e,"RegExp")}function m(e){return Boolean(e&&e.then&&"function"===typeof e.then)}function v(e){return d(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function g(e){return"number"===typeof e&&e!==e}function y(e,t){try{return e instanceof t}catch(n){return!1}}},12343:function(e,t,n){"use strict";n.d(t,{Cf:function(){return o},RU:function(){return i},kg:function(){return s}});var r=n(71235);const i=["debug","info","warn","error","log","assert","trace"];function o(e){if(!("console"in r.n2))return e();const t=r.n2.console,n={};i.forEach((e=>{const r=t[e]&&t[e].__sentry_original__;e in t&&r&&(n[e]=t[e],t[e]=r)}));try{return e()}finally{Object.keys(n).forEach((e=>{t[e]=n[e]}))}}function a(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?i.forEach((n=>{t[n]=(...t)=>{e&&o((()=>{r.n2.console[n](`Sentry Logger [${n}]:`,...t)}))}})):i.forEach((e=>{t[e]=()=>{}})),t}let s;s="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,r.YO)("logger",a):a()},62844:function(e,t,n){"use strict";n.d(t,{DM:function(){return o},Db:function(){return u},EG:function(){return c},YO:function(){return l},jH:function(){return s},lE:function(){return d}});var r=n(20535),i=n(71235);function o(){const e=i.n2,t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");const n=t&&t.getRandomValues?()=>t.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function a(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function s(e){const{message:t,event_id:n}=e;if(t)return t;const r=a(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function u(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function c(e,t){const n=a(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function l(e){if(e&&e.__sentry_captured__)return!0;try{(0,r.xp)(e,"__sentry_captured__",!0)}catch(t){}return!1}function d(e){return Array.isArray(e)?e:[e]}},61422:function(e,t,n){"use strict";n.d(t,{KV:function(){return o},l$:function(){return a}});var r=n(68518);e=n.hmd(e);var i=n(83454);function o(){return!(0,r.n)()&&"[object process]"===Object.prototype.toString.call("undefined"!==typeof i?i:0)}function a(e,t){return e.require(t)}},20535:function(e,t,n){"use strict";n.d(t,{$Q:function(){return u},HK:function(){return c},Jr:function(){return m},Sh:function(){return d},_j:function(){return l},hl:function(){return a},xp:function(){return s},zf:function(){return h}});var r=n(58464),i=n(67597),o=n(57321);function a(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);if("function"===typeof i)try{u(i,r)}catch(o){}e[t]=i}function s(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function u(e,t){const n=t.prototype||{};e.prototype=t.prototype=n,s(e,"__sentry_original__",t)}function c(e){return e.__sentry_original__}function l(e){return Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&")}function d(e){if((0,i.VZ)(e))return{message:e.message,name:e.name,stack:e.stack,...p(e)};if((0,i.cO)(e)){const t={type:e.type,target:f(e.target),currentTarget:f(e.currentTarget),...p(e)};return"undefined"!==typeof CustomEvent&&(0,i.V9)(e,CustomEvent)&&(t.detail=e.detail),t}return e}function f(e){try{return(0,i.kK)(e)?(0,r.Rt)(e):Object.prototype.toString.call(e)}catch(t){return"<unknown>"}}function p(e){if("object"===typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function h(e,t=40){const n=Object.keys(d(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return(0,o.$G)(n[0],t);for(let r=n.length;r>0;r--){const e=n.slice(0,r).join(", ");
1if(!(e.length>t))return r===n.length?e:(0,o.$G)(e,t)}return""}function m(e){return v(e,new Map)}function v(e,t){if((0,i.PO)(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const i of Object.keys(e))"undefined"!==typeof e[i]&&(r[i]=v(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(v(e,t))})),r}return e}},30360:function(e,t,n){"use strict";n.d(t,{$P:function(){return s},Sq:function(){return o},pE:function(){return i}});const r=/\(error: (.*)\)/;function i(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{const i=[],o=e.split("\n");for(let a=n;a<o.length;a++){const e=o[a];if(e.length>1024)continue;const n=r.test(e)?e.replace(r,"$1"):e;if(!n.match(/\S*Error: /)){for(const e of t){const t=e(n);if(t){i.push(t);break}}if(i.length>=50)break}}return function(e){if(!e.length)return[];const t=e.slice(0,50),n=t[t.length-1].function;n&&/sentryWrapped/.test(n)&&t.pop();t.reverse();const r=t[t.length-1].function;r&&/captureMessage|captureException/.test(r)&&t.pop();return t.map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}(i)}}function o(e){return Array.isArray(e)?i(...e):e}const a="<anonymous>";function s(e){try{return e&&"function"===typeof e&&e.name||a}catch(t){return a}}},57321:function(e,t,n){"use strict";n.d(t,{$G:function(){return i},U0:function(){return a},nK:function(){return o}});var r=n(67597);function i(e,t=0){return"string"!==typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function o(e,t){if(!Array.isArray(e))return"";const n=[];for(let i=0;i<e.length;i++){const t=e[i];try{n.push(String(t))}catch(r){n.push("[value cannot be serialized]")}}return n.join(t)}function a(e,t=[],n=!1){return t.some((t=>function(e,t,n=!1){return!!(0,r.HD)(e)&&((0,r.Kj)(t)?t.test(e):!!(0,r.HD)(t)&&(n?e===t:e.includes(t)))}(e,t,n)))}},8823:function(e,t,n){"use strict";n.d(t,{Ak:function(){return o},Du:function(){return a},t$:function(){return s}});var r=n(12343);const i=(0,n(71235).Rf)();function o(){if(!("fetch"in i))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function a(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function s(){if(!o())return!1;if(a(i.fetch))return!0;let e=!1;const t=i.document;if(t&&"function"===typeof t.createElement)try{const n=t.createElement("iframe");
1n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=a(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}},96893:function(e,t,n){"use strict";n.d(t,{$2:function(){return a},WD:function(){return o},cW:function(){return s}});var r,i=n(67597);function o(e){return new s((t=>{t(e)}))}function a(e){return new s(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(r||(r={}));class s{__init(){this._state=r.PENDING}__init2(){this._handlers=[]}constructor(e){s.prototype.__init.call(this),s.prototype.__init2.call(this),s.prototype.__init3.call(this),s.prototype.__init4.call(this),s.prototype.__init5.call(this),s.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(t){this._reject(t)}}then(e,t){return new s(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(i){r(i)}else n(t)},e=>{if(t)try{n(t(e))}catch(i){r(i)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new s(((t,n)=>{let r,i;return this.then((t=>{i=!1,r=t,e&&e()}),(t=>{i=!0,r=t,e&&e()})).then((()=>{i?n(r):t(r)}))}))}__init3(){this._resolve=e=>{this._setResult(r.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(r.REJECTED,e)}}__init5(){this._setResult=(e,t)=>{this._state===r.PENDING&&((0,i.J8)(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state===r.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===r.RESOLVED&&e[1](this._value),this._state===r.REJECTED&&e[2](this._value),e[0]=!0)}))}}}},21170:function(e,t,n){"use strict";n.d(t,{Z1:function(){return f},ph:function(){return l},yW:function(){return c}});var r=n(61422),i=n(71235);e=n.hmd(e);const o=(0,i.Rf)(),a={nowSeconds:()=>Date.now()/1e3};const s=(0,r.KV)()?function(){try{return(0,r.l$)(e,"perf_hooks").performance}catch(t){return}}():function(){const{performance:e}=o;if(!e||!e.now)return;return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),u=void 0===s?a:{nowSeconds:()=>(s.timeOrigin+s.now())/1e3},c=a.nowSeconds.bind(a),l=u.nowSeconds.bind(u);let d;const f=(()=>{const{performance:e}=o;if(!e||!e.now)return void(d="none");const t=36e5,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=i<t,s=e.timing&&e.timing.navigationStart,u="number"===typeof s?Math.abs(s+n-r):t;return a||u<t?i<=u?(d="timeOrigin",e.timeOrigin):(d="navigationStart",s):(d="dateNow",r)})()},26956:function(e,t,n){"use strict";function r(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function i(e){return e.split(/[\?#]/,1)[0]}n.d(t,{en:function(){return r},rt:function(){return i}})},71235:function(e,t,n){"use strict";function r(e){return e&&e.Math==Math?e:void 0}n.d(t,{Rf:function(){return o},YO:function(){return a},n2:function(){return i}});const i="object"==typeof globalThis&&r(globalThis)||"object"==typeof window&&r(window)||"object"==typeof self&&r(self)||"object"==typeof n.g&&r(n.g)||function(){return this}()||{};function o(){return i}function a(e,t,n){const r=n||i,o=r.__SENTRY__=r.__SENTRY__||{};return o[e]||(o[e]=t())}},79361:function(e,t){"use strict";t.Z=function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}},8131:function(e,t,n){"use strict";var r=n(49374),i=n(17775),o=n(23076);function a(e,t,n){return new r(e,t,n)}a.version=n(24336),a.AlgoliaSearchHelper=r,a.SearchParameters=i,a.SearchResults=o,e.exports=a},68078:function(e,t,n){"use strict";var r=n(17331);function i(e,t){this.main=e,this.fn=t,this.lastResults=null}n(14853)(i,r),i.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},i.prototype.getModifiedState=function(e){return this.fn(e)},e.exports=i},82437:function(e,t,n){"use strict";var r=n(52344),i=n(49803),o=n(90116),a={addRefinement:function(e,t,n){if(a.isRefined(e,t,n))return e;var i=""+n,o=e[t]?e[t].concat(i):[i],s={};return s[t]=o,r({},s,e)},removeRefinement:function(e,t,n){if(void 0===n)return a.clearRefinement(e,(function(e,n){return t===n}));var r=""+n;return a.clearRefinement(e,(function(e,n){return t===n&&r===e}))},toggleRefinement:function(e,t,n){if(void 0===n)throw new Error("toggleRefinement should be used with a value");
1return a.isRefined(e,t,n)?a.removeRefinement(e,t,n):a.addRefinement(e,t,n)},clearRefinement:function(e,t,n){if(void 0===t)return o(e)?{}:e;if("string"===typeof t)return i(e,[t]);if("function"===typeof t){var r=!1,a=Object.keys(e).reduce((function(i,o){var a=e[o]||[],s=a.filter((function(e){return!t(e,o,n)}));return s.length!==a.length&&(r=!0),i[o]=s,i}),{});return r?a:e}},isRefined:function(e,t,n){var r=!!e[t]&&e[t].length>0;if(void 0===n||!r)return r;var i=""+n;return-1!==e[t].indexOf(i)}};e.exports=a},17775:function(e,t,n){"use strict";var r=n(60185),i=n(52344),o=n(22686),a=n(7888),s=n(28023),u=n(49803),c=n(90116),l=n(46801),d=n(82437);function f(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((function(e,n){return f(t[n],e)})):e===t}function p(e){var t=e?p._parseNumbers(e):{};void 0===t.userToken||l(t.userToken)||console.warn("[algoliasearch-helper] The `userToken` parameter is invalid. This can lead to wrong analytics.\n  - Format: [a-zA-Z0-9_-]{1,64}"),this.facets=t.facets||[],this.disjunctiveFacets=t.disjunctiveFacets||[],this.hierarchicalFacets=t.hierarchicalFacets||[],this.facetsRefinements=t.facetsRefinements||{},this.facetsExcludes=t.facetsExcludes||{},this.disjunctiveFacetsRefinements=t.disjunctiveFacetsRefinements||{},this.numericRefinements=t.numericRefinements||{},this.tagRefinements=t.tagRefinements||[],this.hierarchicalFacetsRefinements=t.hierarchicalFacetsRefinements||{};var n=this;Object.keys(t).forEach((function(e){var r=-1!==p.PARAMETERS.indexOf(e),i=void 0!==t[e];!r&&i&&(n[e]=t[e])}))}p.PARAMETERS=Object.keys(new p),p._parseNumbers=function(e){if(e instanceof p)return e;var t={};if(["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"].forEach((function(n){var r=e[n];if("string"===typeof r){var i=parseFloat(r);t[n]=isNaN(i)?r:i}})),Array.isArray(e.insideBoundingBox)&&(t.insideBoundingBox=e.insideBoundingBox.map((function(e){return Array.isArray(e)?e.map((function(e){return parseFloat(e)})):e}))),e.numericRefinements){var n={};Object.keys(e.numericRefinements).forEach((function(t){var r=e.numericRefinements[t]||{};n[t]={},Object.keys(r).forEach((function(e){var i=r[e].map((function(e){return Array.isArray(e)?e.map((function(e){return"string"===typeof e?parseFloat(e):e})):"string"===typeof e?parseFloat(e):e}));n[t][e]=i}))})),t.numericRefinements=n}return r({},e,t)},p.make=function(e){var t=new p(e);return(e.hierarchicalFacets||[]).forEach((function(e){if(e.rootPath){var n=t.getHierarchicalRefinement(e.name);n.length>0&&0!==n[0].indexOf(e.rootPath)&&(t=t.clearRefinements(e.name)),0===(n=t.getHierarchicalRefinement(e.name)).length&&(t=t.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}})),t},p.validate=function(e,t){var n=t||{};return e.tagFilters&&n.tagRefinements&&n.tagRefinements.length>0?new Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):e.tagRefinements.length>0&&n.tagFilters?new Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&n.numericRefinements&&c(n.numericRefinements)?new Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):c(e.numericRefinements)&&n.numericFilters?new Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},p.prototype={constructor:p,clearRefinements:function(e){var t={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:d.clearRefinement(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:d.clearRefinement(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:d.clearRefinement(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:d.clearRefinement(this.hierarchicalFacetsRefinements,e,"hierarchicalFacet")};return t.numericRefinements===this.numericRefinements&&t.facetsRefinements===this.facetsRefinements&&t.facetsExcludes===this.facetsExcludes&&t.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&t.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(t)},clearTags:function(){return void 0===this.tagFilters&&0===this.tagRefinements.length?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(e){return e===this.index?this:this.setQueryParameters({index:e})},setQuery:function(e){return e===this.query?this:this.setQueryParameters({query:e})},setPage:function(e){return e===this.page?this:this.setQueryParameters({page:e})},setFacets:function(e){return this.setQueryParameters({facets:e})},setDisjunctiveFacets:function(e){return this.setQueryParameters({disjunctiveFacets:e})},setHitsPerPage:function(e){return this.hitsPerPage===e?this:this.setQueryParameters({hitsPerPage:e})},setTypoTolerance:function(e){return this.typoTolerance===e?this:this.setQueryParameters({typoTolerance:e})},addNumericRefinement:function(e,t,n){var i=s(n);if(this.isNumericRefined(e,t,i))return this;var o=r({},this.numericRefinements);return o[e]=r({},o[e]),o[e][t]?(o[e][t]=o[e][t].slice(),o[e][t].push(i)):o[e][t]=[i],this.setQueryParameters({numericRefinements:o})},getConjunctiveRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsRefinements[e]||[]},getDisjunctiveRefinements:function(e){return this.isDisjunctiveFacet(e)&&this.disjunctiveFacetsRefinements[e]||[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsExcludes[e]||[]},removeNumericRefinement:function(e,t,n){return void 0!==n?this.isNumericRefined(e,t,n)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(r,i){return i===e&&r.op===t&&f(r.val,s(n))}))}):this:void 0!==t?this.isNumericRefined(e,t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(n,r){return r===e&&n.op===t}))}):this:this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(t,n){return n===e}))}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(e){if(void 0===e)return c(this.numericRefinements)?{}:this.numericRefinements;if("string"===typeof e)return u(this.numericRefinements,[e]);if("function"===typeof e){var t=!1,n=this.numericRefinements,r=Object.keys(n).reduce((function(r,i){var o=n[i],a={};return o=o||{}
1,Object.keys(o).forEach((function(n){var r=o[n]||[],s=[];r.forEach((function(t){e({val:t,op:n},i,"numeric")||s.push(t)})),s.length!==r.length&&(t=!0),a[n]=s})),r[i]=a,r}),{});return t?r:this.numericRefinements}},addFacet:function(e){return this.isConjunctiveFacet(e)?this:this.setQueryParameters({facets:this.facets.concat([e])})},addDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([e])})},addHierarchicalFacet:function(e){if(this.isHierarchicalFacet(e.name))throw new Error("Cannot declare two hierarchical facets with the same name: `"+e.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([e])})},addFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return d.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:d.addRefinement(this.facetsRefinements,e,t)})},addExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return d.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:d.addRefinement(this.facetsExcludes,e,t)})},addDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return d.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:d.addRefinement(this.disjunctiveFacetsRefinements,e,t)})},addTagRefinement:function(e){if(this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.concat(e)};return this.setQueryParameters(t)},removeFacet:function(e){return this.isConjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({facets:this.facets.filter((function(t){return t!==e}))}):this},removeDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter((function(t){return t!==e}))}):this},removeHierarchicalFacet:function(e){return this.isHierarchicalFacet(e)?this.clearRefinements(e).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter((function(t){return t.name!==e}))}):this},removeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return d.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:d.removeRefinement(this.facetsRefinements,e,t)}):this},removeExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return d.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:d.removeRefinement(this.facetsExcludes,e,t)}):this},removeDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return d.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:d.removeRefinement(this.disjunctiveFacetsRefinements,e,t)}):this},removeTagRefinement:function(e){if(!this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.filter((function(t){return t!==e}))};return this.setQueryParameters(t)},toggleRefinement:function(e,t){return this.toggleFacetRefinement(e,t)},toggleFacetRefinement:function(e,t){if(this.isHierarchicalFacet(e))return this.toggleHierarchicalFacetRefinement(e,t);if(this.isConjunctiveFacet(e))return this.toggleConjunctiveFacetRefinement(e,t);if(this.isDisjunctiveFacet(e))return this.toggleDisjunctiveFacetRefinement(e,t);throw new Error("Cannot refine the undeclared facet "+e+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:d.toggleRefinement(this.facetsRefinements,e,t)})},toggleExcludeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:d.toggleRefinement(this.facetsExcludes,e,t)})},toggleDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:d.toggleRefinement(this.disjunctiveFacetsRefinements,e,t)})},toggleHierarchicalFacetRefinement:function(e,t){if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),r={};return void 0!==this.hierarchicalFacetsRefinements[e]&&this.hierarchicalFacetsRefinements[e].length>0&&(this.hierarchicalFacetsRefinements[e][0]===t||0===this.hierarchicalFacetsRefinements[e][0].indexOf(t+n))?-1===t.indexOf(n)?r[e]=[]:r[e]=[t.slice(0,t.lastIndexOf(n))]:r[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:i({},r,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw new Error(e+" is already refined.");if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration.");var n={};return n[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:i({},n,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(e){if(!this.isHierarchicalFacetRefined(e))return this;var t={};return t[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:i({},t,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function(e){return this.isTagRefined(e)?this.removeTagRefinement(e):this.addTagRefinement(e)},isDisjunctiveFacet:function(e){return this.disjunctiveFacets.indexOf(e)>-1},isHierarchicalFacet:function(e){return void 0!==this.getHierarchicalFacetByName(e)},isConjunctiveFacet:function(e){return this.facets.indexOf(e)>-1},isFacetRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&d.isRefined(this.facetsRefinements,e,t)},isExcludeRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&d.isRefined(this.facetsExcludes,e,t)},isDisjunctiveFacetRefined:function(e,t){return!!this.isDisjunctiveFacet(e)&&d.isRefined(this.disjunctiveFacetsRefinements,e,t)},isHierarchicalFacetRefined:function(e,t){if(!this.isHierarchicalFacet(e))return!1;var n=this.getHierarchicalRefinement(e);return t?-1!==n.indexOf(t):n.length>0},isNumericRefined:function(e,t,n){if(void 0===n&&void 0===t)return!!this.numericRefinements[e];var r=this.numericRefinements[e]&&void 0!==this.numericRefinements[e][t];if(void 0===n||!r)return r;var i,o,u=s(n),c=void 0!==(i=this.numericRefinements[e][t],o=u,a(i,(function(e){return f(e,o)})));return r&&c},isTagRefined:function(e){return-1!==this.tagRefinements.indexOf(e)},getRefinedDisjunctiveFacets:function(){var e=this,t=o(Object.keys(this.numericRefinements).filter((function(t){return Object.keys(e.numericRefinements[t]).length>0})),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter((function(t){return e.disjunctiveFacetsRefinements[t].length>0})).concat(t).concat(this.getRefinedHierarchicalFacets())},getRefinedHierarchicalFacets:function(){var e=this;return o(this.hierarchicalFacets.map((function(e){return e.name})),Object.keys(this.hierarchicalFacetsRefinements).filter((function(t){return e.hierarchicalFacetsRefinements[t].length>0})))},getUnrefinedDisjunctiveFacets:function(){var e=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter((function(t){return-1===e.indexOf(t)}))},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","hierarchicalFacets","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacetsRefinements"],getQueryParams:function(){var e=this.managedParameters,t={},n=this;
1return Object.keys(this).forEach((function(r){var i=n[r];-1===e.indexOf(r)&&void 0!==i&&(t[r]=i)})),t},setQueryParameter:function(e,t){if(this[e]===t)return this;var n={};return n[e]=t,this.setQueryParameters(n)},setQueryParameters:function(e){if(!e)return this;var t=p.validate(this,e);if(t)throw t;var n=this,r=p._parseNumbers(e),i=Object.keys(this).reduce((function(e,t){return e[t]=n[t],e}),{}),o=Object.keys(r).reduce((function(e,t){var n=void 0!==e[t],i=void 0!==r[t];return n&&!i?u(e,[t]):(i&&(e[t]=r[t]),e)}),i);return new this.constructor(o)},resetPage:function(){return void 0===this.page?this:this.setPage(0)},_getHierarchicalFacetSortBy:function(e){return e.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(e){return e.separator||" > "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!==typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(e){return a(this.hierarchicalFacets,(function(t){return t.name===e}))},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))return[];var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e));return t.split(n).map((function(e){return e.trim()}))},toString:function(){return JSON.stringify(this,null,2)}},e.exports=p},10210:function(e,t,n){"use strict";e.exports=function(e){return function(t,n){var a=e.hierarchicalFacets[n],c=e.hierarchicalFacetsRefinements[a.name]&&e.hierarchicalFacetsRefinements[a.name][0]||"",l=e._getHierarchicalFacetSeparator(a),d=e._getHierarchicalRootPath(a),f=e._getHierarchicalShowParentLevel(a),p=o(e._getHierarchicalFacetSortBy(a)),h=t.every((function(e){return e.exhaustive})),m=function(e,t,n,o,a){return function(c,l,d){var f=c;if(d>0){var p=0;for(f=c;p<d;){var h=f&&Array.isArray(f.data)?f.data:[];f=i(h,(function(e){return e.isRefined})),p++}}if(f){var m=Object.keys(l.data).map((function(e){return[e,l.data[e]]})).filter((function(e){return function(e,t,n,r,i,o){if(i&&(0!==e.indexOf(i)||i===e))return!1;return!i&&-1===e.indexOf(r)||i&&e.split(r).length-i.split(r).length===1||-1===e.indexOf(r)&&-1===n.indexOf(r)||0===n.indexOf(e)||0===e.indexOf(t+r)&&(o||0===e.indexOf(n))}(e[0],f.path||n,a,t,n,o)}));f.data=r(m.map((function(e){var n=e[0];return function(e,t,n,r,i){var o=t.split(n);return{name:o[o.length-1].trim(),path:t,escapedValue:s(t),count:e,isRefined:r===t||0===r.indexOf(t+n),exhaustive:i,data:null}}(e[1],n,t,u(a),l.exhaustive)})),e[0],e[1])}return c}}(p,l,d,f,c),v=t;return d&&(v=t.slice(d.split(l).length)),v.reduce(m,{name:e.hierarchicalFacets[n].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:h,data:null})}};var r=n(42148),i=n(7888),o=n(82293),a=n(94039),s=a.escapeFacetValue,u=a.unescapeFacetValue},23076:function(e,t,n){"use strict";var r=n(60185),i=n(52344),o=n(42148),a=n(74587),s=n(7888),u=n(69725),c=n(82293),l=n(94039),d=l.escapeFacetValue,f=l.unescapeFacetValue,p=n(10210);function h(e){var t={};return e.forEach((function(e,n){t[e]=n})),t}function m(e,t,n){t&&t[n]&&(e.stats=t[n])}function v(e,t,n){var o=t[0];this._rawResults=t;var c=this;Object.keys(o).forEach((function(e){c[e]=o[e]})),Object.keys(n||{}).forEach((function(e){c[e]=n[e]})),this.processingTimeMS=t.reduce((function(e,t){return void 0===t.processingTimeMS?e:e+t.processingTimeMS}),0),this.disjunctiveFacets=[],this.hierarchicalFacets=e.hierarchicalFacets.map((function(){return[]})),this.facets=[];var l=e.getRefinedDisjunctiveFacets(),d=h(e.facets),v=h(e.disjunctiveFacets),g=1,y=o.facets||{};Object.keys(y).forEach((function(t){var n,r,i=y[t],a=(n=e.hierarchicalFacets,r=t,s(n,(function(e){return(e.attributes||[]).indexOf(r)>-1})));if(a){var l=a.attributes.indexOf(t),f=u(e.hierarchicalFacets,(function(e){return e.name===a.name}));c.hierarchicalFacets[f][l]={attribute:t,data:i,exhaustive:o.exhaustiveFacetsCount}}else{var p,h=-1!==e.disjunctiveFacets.indexOf(t),g=-1!==e.facets.indexOf(t);h&&(p=v[t],c.disjunctiveFacets[p]={name:t,data:i,exhaustive:o.exhaustiveFacetsCount},m(c.disjunctiveFacets[p],o.facets_stats,t)),g&&(p=d[t],c.facets[p
1]={name:t,data:i,exhaustive:o.exhaustiveFacetsCount},m(c.facets[p],o.facets_stats,t))}})),this.hierarchicalFacets=a(this.hierarchicalFacets),l.forEach((function(n){var a=t[g],s=a&&a.facets?a.facets:{},l=e.getHierarchicalFacetByName(n);Object.keys(s).forEach((function(t){var n,d=s[t];if(l){n=u(e.hierarchicalFacets,(function(e){return e.name===l.name}));var p=u(c.hierarchicalFacets[n],(function(e){return e.attribute===t}));if(-1===p)return;c.hierarchicalFacets[n][p].data=r({},c.hierarchicalFacets[n][p].data,d)}else{n=v[t];var h=o.facets&&o.facets[t]||{};c.disjunctiveFacets[n]={name:t,data:i({},d,h),exhaustive:a.exhaustiveFacetsCount},m(c.disjunctiveFacets[n],a.facets_stats,t),e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].forEach((function(r){!c.disjunctiveFacets[n].data[r]&&e.disjunctiveFacetsRefinements[t].indexOf(f(r))>-1&&(c.disjunctiveFacets[n].data[r]=0)}))}})),g++})),e.getRefinedHierarchicalFacets().forEach((function(n){var r=e.getHierarchicalFacetByName(n),o=e._getHierarchicalFacetSeparator(r),a=e.getHierarchicalRefinement(n);if(!(0===a.length||a[0].split(o).length<2)){var s=t[g],l=s&&s.facets?s.facets:{};Object.keys(l).forEach((function(t){var n=l[t],s=u(e.hierarchicalFacets,(function(e){return e.name===r.name})),d=u(c.hierarchicalFacets[s],(function(e){return e.attribute===t}));if(-1!==d){var f={};if(a.length>0){var p=a[0].split(o)[0];f[p]=c.hierarchicalFacets[s][d].data[p]}c.hierarchicalFacets[s][d].data=i(f,n,c.hierarchicalFacets[s][d].data)}})),g++}})),Object.keys(e.facetsExcludes).forEach((function(t){var n=e.facetsExcludes[t],r=d[t];c.facets[r]={name:t,data:o.facets[t],exhaustive:o.exhaustiveFacetsCount},n.forEach((function(e){c.facets[r]=c.facets[r]||{name:t},c.facets[r].data=c.facets[r].data||{},c.facets[r].data[e]=0}))})),this.hierarchicalFacets=this.hierarchicalFacets.map(p(e)),this.facets=a(this.facets),this.disjunctiveFacets=a(this.disjunctiveFacets),this._state=e}function g(e,t,n,r){if(r=r||0,Array.isArray(t))return e(t,n[r]);if(!t.data||0===t.data.length)return t;var o=t.data.map((function(t){return g(e,t,n,r+1)})),a=e(o,n[r]);return i({data:a},t)}function y(e,t){var n=s(e,(function(e){return e.name===t}));return n&&n.stats}function b(e,t,n,r,i){var o=s(i,(function(e){return e.name===n})),a=o&&o.data&&o.data[r]?o.data[r]:0,u=o&&o.exhaustive||!1;return{type:t,attributeName:n,name:r,count:a,exhaustive:u}}v.prototype.getFacetByName=function(e){function t(t){return t.name===e}return s(this.facets,t)||s(this.disjunctiveFacets,t)||s(this.hierarchicalFacets,t)},v.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],v.prototype.getFacetValues=function(e,t){var n=function(e,t){function n(e){return e.name===t}if(e._state.isConjunctiveFacet(t)){var r=s(e.facets,n);return r?Object.keys(r.data).map((function(n){var i=d(n);return{name:n,escapedValue:i,count:r.data[n],isRefined:e._state.isFacetRefined(t,i),isExcluded:e._state.isExcludeRefined(t,n)}})):[]}if(e._state.isDisjunctiveFacet(t)){var i=s(e.disjunctiveFacets,n);return i?Object.keys(i.data).map((function(n){var r=d(n);return{name:n,escapedValue:r,count:i.data[n],isRefined:e._state.isDisjunctiveFacetRefined(t,r)}})):[]}if(e._state.isHierarchicalFacet(t))return s(e.hierarchicalFacets,n)}(this,e);if(n){var r,a=i({},t,{sortBy:v.DEFAULT_SORT,facetOrdering:!(t&&t.sortBy)}),u=this;if(Array.isArray(n))r=[e];else r=u._state.getHierarchicalFacetByName(n.name).attributes;return g((function(e,t){if(a.facetOrdering){var n=function(e,t){return e.renderingContent&&e.renderingContent.facetOrdering&&e.renderingContent.facetOrdering.values&&e.renderingContent.facetOrdering.values[t]}(u,t);if(Boolean(n))return function(e,t){var n=[],r=[],i=(t.order||[]).reduce((function(e,t,n){return e[t]=n,e}),{});e.forEach((function(e){var t=e.path||e.name;void 0!==i[t]?n[i[t]]=e:r.push(e)})),n=n.filter((function(e){return e}));var a,s=t.sortRemainingBy;return"hidden"===s?n:(a="alpha"===s?[["path","name"],["asc","asc"]]:[["count"],["desc"]],n.concat(o(r,a[0],a[1])))}(e,n)}if(Array.isArray(a.sortBy)){var r=c(a.sortBy,v.DEFAULT_SORT);return o(e,r[0],r[1])}if("function"===typeof a.sortBy)return function(e,t){return t.sort(e)}(a.sortBy,e);throw new Error("options.sortBy is optional but if defined it must be either an array of str
1ing (predicates) or a sorting function")}),n,r)}},v.prototype.getFacetStats=function(e){return this._state.isConjunctiveFacet(e)?y(this.facets,e):this._state.isDisjunctiveFacet(e)?y(this.disjunctiveFacets,e):void 0},v.prototype.getRefinements=function(){var e=this._state,t=this,n=[];return Object.keys(e.facetsRefinements).forEach((function(r){e.facetsRefinements[r].forEach((function(i){n.push(b(e,"facet",r,i,t.facets))}))})),Object.keys(e.facetsExcludes).forEach((function(r){e.facetsExcludes[r].forEach((function(i){n.push(b(e,"exclude",r,i,t.facets))}))})),Object.keys(e.disjunctiveFacetsRefinements).forEach((function(r){e.disjunctiveFacetsRefinements[r].forEach((function(i){n.push(b(e,"disjunctive",r,i,t.disjunctiveFacets))}))})),Object.keys(e.hierarchicalFacetsRefinements).forEach((function(r){e.hierarchicalFacetsRefinements[r].forEach((function(i){n.push(function(e,t,n,r){var i=e.getHierarchicalFacetByName(t),o=e._getHierarchicalFacetSeparator(i),a=n.split(o),u=s(r,(function(e){return e.name===t})),c=a.reduce((function(e,t){var n=e&&s(e.data,(function(e){return e.name===t}));return void 0!==n?n:e}),u),l=c&&c.count||0,d=c&&c.exhaustive||!1,f=c&&c.path||"";return{type:"hierarchical",attributeName:t,name:f,count:l,exhaustive:d}}(e,r,i,t.hierarchicalFacets))}))})),Object.keys(e.numericRefinements).forEach((function(t){var r=e.numericRefinements[t];Object.keys(r).forEach((function(e){r[e].forEach((function(r){n.push({type:"numeric",attributeName:t,name:r,numericValue:r,operator:e})}))}))})),e.tagRefinements.forEach((function(e){n.push({type:"tag",attributeName:"_tags",name:e})})),n},e.exports=v},49374:function(e,t,n){"use strict";var r=n(17775),i=n(23076),o=n(68078),a=n(96394),s=n(17331),u=n(14853),c=n(90116),l=n(49803),d=n(60185),f=n(24336),p=n(94039).escapeFacetValue;function h(e,t,n){"function"===typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+f+")"),this.setClient(e);var i=n||{};i.index=t,this.state=r.make(i),this.lastResults=null,this._queryId=0,this._lastQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0}function m(e){if(e<0)throw new Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function v(){return this.state.page}u(h,s),h.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},h.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},h.prototype.getQuery=function(){var e=this.state;return a._getHitsSearchParams(e)},h.prototype.searchOnce=function(e,t){var n=e?this.state.setQueryParameters(e):this.state,r=a._getQueries(n.index,n),o=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:n}),!t)return this.client.search(r).then((function(e){return o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),{content:new i(n,e.results),state:n,_originalResponse:e}}),(function(e){throw o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),e}));this.client.search(r).then((function(e){o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),t(null,new i(n,e.results),n)})).catch((function(e){o._currentNbQueries--,0===o._currentNbQueries&&o.emit("searchQueueEmpty"),t(e,null,n)}))},h.prototype.findAnswers=function(e){var t=this.state,n=this.derivedHelpers[0];if(!n)return Promise.resolve([]);var r=n.getModifiedState(t),i=d({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:l(a._getHitsSearchParams(r),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),o="search for answers was called, but this client does not have a function client.initIndex(index).findAnswers";if("function"!==typeof this.client.initIndex)throw new Error(o);var s=this.client.initIndex(r.index);if("function"!==typeof s.findAnswers)throw new Error(o);return s.findAnswers(r.query,e.queryLanguages,i)},h.prototype.searchForFacetValues=function(e,t,n,r){var i="function"===typeof this.client.searchForFacetValues;if(!i&&"function"!==typeof this.client.initIndex)throw new Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues");var o=this.state.setQueryParameters(r||{}),s=o.isDisjunctiveFacet(e),u=a.getSearchForFacetQuery(e,t,n,o);this._currentNbQueries++;var c=this;
1return this.emit("searchForFacetValues",{state:o,facet:e,query:t}),(i?this.client.searchForFacetValues([{indexName:o.index,params:u}]):this.client.initIndex(o.index).searchForFacetValues(u)).then((function(t){return c._currentNbQueries--,0===c._currentNbQueries&&c.emit("searchQueueEmpty"),(t=Array.isArray(t)?t[0]:t).facetHits.forEach((function(t){t.escapedValue=p(t.value),t.isRefined=s?o.isDisjunctiveFacetRefined(e,t.escapedValue):o.isFacetRefined(e,t.escapedValue)})),t}),(function(e){throw c._currentNbQueries--,0===c._currentNbQueries&&c.emit("searchQueueEmpty"),e}))},h.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},h.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},h.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},h.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},h.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},h.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},h.prototype.addNumericRefinement=function(e,t,n){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,n),isPageReset:!0}),this},h.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},h.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},h.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},h.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},h.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},h.prototype.removeNumericRefinement=function(e,t,n){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,n),isPageReset:!0}),this},h.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},h.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},h.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},h.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},h.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},h.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},h.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},h.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},h.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},h.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},h.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},h.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},h.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},h.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},h.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},h.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},h.prototype.setCurrentPage=m,h.prototype.setPage=m,h.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},h.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},h.prototype.setState=function(e){return this._change({state:r.make(e),isPageReset:!1}),this},h.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new r(e),this}
1,h.prototype.hasRefinements=function(e){return!!c(this.state.getNumericRefinements(e))||(this.state.isConjunctiveFacet(e)?this.state.isFacetRefined(e):this.state.isDisjunctiveFacet(e)?this.state.isDisjunctiveFacetRefined(e):!!this.state.isHierarchicalFacet(e)&&this.state.isHierarchicalFacetRefined(e))},h.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},h.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},h.prototype.hasTag=function(e){return this.state.isTagRefined(e)},h.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},h.prototype.getIndex=function(){return this.state.index},h.prototype.getCurrentPage=v,h.prototype.getPage=v,h.prototype.getTags=function(){return this.state.tagRefinements},h.prototype.getRefinements=function(e){var t=[];if(this.state.isConjunctiveFacet(e))this.state.getConjunctiveRefinements(e).forEach((function(e){t.push({value:e,type:"conjunctive"})})),this.state.getExcludeRefinements(e).forEach((function(e){t.push({value:e,type:"exclude"})}));else if(this.state.isDisjunctiveFacet(e)){this.state.getDisjunctiveRefinements(e).forEach((function(e){t.push({value:e,type:"disjunctive"})}))}var n=this.state.getNumericRefinements(e);return Object.keys(n).forEach((function(e){var r=n[e];t.push({value:r,operator:e,type:"numeric"})})),t},h.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},h.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},h.prototype._search=function(e){var t=this.state,n=[],r=[];e.onlyWithDerivedHelpers||(r=a._getQueries(t.index,t),n.push({state:t,queriesCount:r.length,helper:this}),this.emit("search",{state:t,results:this.lastResults}));var i=this.derivedHelpers.map((function(e){var r=e.getModifiedState(t),i=a._getQueries(r.index,r);return n.push({state:r,queriesCount:i.length,helper:e}),e.emit("search",{state:r,results:e.lastResults}),i})),o=Array.prototype.concat.apply(r,i),s=this._queryId++;this._currentNbQueries++;try{this.client.search(o).then(this._dispatchAlgoliaResponse.bind(this,n,s)).catch(this._dispatchAlgoliaError.bind(this,s))}catch(u){this.emit("error",{error:u})}},h.prototype._dispatchAlgoliaResponse=function(e,t,n){if(!(t<this._lastQueryIdReceived)){this._currentNbQueries-=t-this._lastQueryIdReceived,this._lastQueryIdReceived=t,0===this._currentNbQueries&&this.emit("searchQueueEmpty");var r=n.results.slice();e.forEach((function(e){var t=e.state,n=e.queriesCount,o=e.helper,a=r.splice(0,n),s=o.lastResults=new i(t,a);o.emit("result",{results:s,state:t})}))}},h.prototype._dispatchAlgoliaError=function(e,t){e<this._lastQueryIdReceived||(this._currentNbQueries-=e-this._lastQueryIdReceived,this._lastQueryIdReceived=e,this.emit("error",{error:t}),0===this._currentNbQueries&&this.emit("searchQueueEmpty"))},h.prototype.containsRefinement=function(e,t,n,r){return e||0!==t.length||0!==n.length||0!==r.length},h.prototype._hasDisjunctiveRefinements=function(e){return this.state.disjunctiveRefinements[e]&&this.state.disjunctiveRefinements[e].length>0},h.prototype._change=function(e){var t=e.state,n=e.isPageReset;t!==this.state&&(this.state=t,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:n}))},h.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},h.prototype.setClient=function(e){return this.client===e||("function"===typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+f+")"),this.client=e),this},h.prototype.getClient=function(){return this.client},h.prototype.derive=function(e){var t=new o(this,e);return this.derivedHelpers.push(t),t},h.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(-1===t)throw new Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},h.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},e.exports=h},74587:function(e){"use strict";e.exports=function(e){return Array.isArray(e)?e.filter(Boolean):[]}},52344:function(e){"use strict";e.exports=function(){var e=Array.prototype.slice.call(arguments);return e.reduceRight((function(e,t){return Object.keys(Object(t)).forEac
1h((function(n){void 0!==t[n]&&(void 0!==e[n]&&delete e[n],e[n]=t[n])})),e}),{})}},94039:function(e){"use strict";e.exports={escapeFacetValue:function(e){return"string"!==typeof e?e:String(e).replace(/^-/,"\\-")},unescapeFacetValue:function(e){return"string"!==typeof e?e:e.replace(/^\\-/,"-")}}},7888:function(e){"use strict";e.exports=function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}},69725:function(e){"use strict";e.exports=function(e,t){if(!Array.isArray(e))return-1;for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}},82293:function(e,t,n){"use strict";var r=n(7888);e.exports=function(e,t){var n=(t||[]).map((function(e){return e.split(":")}));return e.reduce((function(e,t){var i=t.split(":"),o=r(n,(function(e){return e[0]===i[0]}));return i.length>1||!o?(e[0].push(i[0]),e[1].push(i[1]),e):(e[0].push(o[0]),e[1].push(o[1]),e)}),[[],[]])}},14853:function(e){"use strict";e.exports=function(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}},22686:function(e){"use strict";e.exports=function(e,t){return e.filter((function(n,r){return t.indexOf(n)>-1&&e.indexOf(n)===r}))}},60185:function(e){"use strict";function t(e){return"function"===typeof e||Array.isArray(e)||"[object Object]"===Object.prototype.toString.call(e)}function n(e,r){if(e===r)return e;for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)&&"__proto__"!==i){var o=r[i],a=e[i];"undefined"!==typeof a&&"undefined"===typeof o||(t(a)&&t(o)?e[i]=n(a,o):e[i]="object"===typeof(s=o)&&null!==s?n(Array.isArray(s)?[]:{},s):s)}var s;return e}e.exports=function(e){t(e)||(e={});for(var r=1,i=arguments.length;r<i;r++){var o=arguments[r];t(o)&&n(e,o)}return e}},90116:function(e){"use strict";e.exports=function(e){return e&&Object.keys(e).length>0}},49803:function(e){"use strict";e.exports=function(e,t){if(null===e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}},42148:function(e){"use strict";function t(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=void 0!==t,o=null===t;if(!o&&e>t||r&&i||!n)return 1;if(!r&&e<t||o&&n||!i)return-1}return 0}e.exports=function(e,n,r){if(!Array.isArray(e))return[];Array.isArray(r)||(r=[]);var i=e.map((function(e,t){return{criteria:n.map((function(t){return e[t]})),index:t,value:e}}));return i.sort((function(e,n){for(var i=-1;++i<e.criteria.length;){var o=t(e.criteria[i],n.criteria[i]);if(o)return i>=r.length?o:"desc"===r[i]?-o:o}return e.index-n.index})),i.map((function(e){return e.value}))}},28023:function(e){"use strict";e.exports=function e(t){if("number"===typeof t)return t;if("string"===typeof t)return parseFloat(t);if(Array.isArray(t))return t.map(e);throw new Error("The value should be a number, a parsable string or an array of those.")}},96394:function(e,t,n){"use strict";var r=n(60185),i={_getQueries:function(e,t){var n=[];return n.push({indexName:e,params:i._getHitsSearchParams(t)}),t.getRefinedDisjunctiveFacets().forEach((function(r){n.push({indexName:e,params:i._getDisjunctiveFacetSearchParams(t,r)}
1)})),t.getRefinedHierarchicalFacets().forEach((function(r){var o=t.getHierarchicalFacetByName(r),a=t.getHierarchicalRefinement(r),s=t._getHierarchicalFacetSeparator(o);a.length>0&&a[0].split(s).length>1&&n.push({indexName:e,params:i._getDisjunctiveFacetSearchParams(t,r,!0)})})),n},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(i._getHitsHierarchicalFacetsAttributes(e)),n=i._getFacetFilters(e),o=i._getNumericFilters(e),a=i._getTagFilters(e),s={facets:t.indexOf("*")>-1?["*"]:t,tagFilters:a};return n.length>0&&(s.facetFilters=n),o.length>0&&(s.numericFilters=o),r({},e.getQueryParams(),s)},_getDisjunctiveFacetSearchParams:function(e,t,n){var o=i._getFacetFilters(e,t,n),a=i._getNumericFilters(e,t),s={hitsPerPage:1,page:0,attributesToRetrieve:[],attributesToHighlight:[],attributesToSnippet:[],tagFilters:i._getTagFilters(e),analytics:!1,clickAnalytics:!1},u=e.getHierarchicalFacetByName(t);return s.facets=u?i._getDisjunctiveHierarchicalFacetAttribute(e,u,n):t,a.length>0&&(s.numericFilters=a),o.length>0&&(s.facetFilters=o),r({},e.getQueryParams(),s)},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var n=[];return Object.keys(e.numericRefinements).forEach((function(r){var i=e.numericRefinements[r]||{};
1Object.keys(i).forEach((function(e){var o=i[e]||[];t!==r&&o.forEach((function(t){if(Array.isArray(t)){var i=t.map((function(t){return r+e+t}));n.push(i)}else n.push(r+e+t)}))}))})),n},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(e,t,n){var r=[],i=e.facetsRefinements||{};Object.keys(i).forEach((function(e){(i[e]||[]).forEach((function(t){r.push(e+":"+t)}))}));var o=e.facetsExcludes||{};Object.keys(o).forEach((function(e){(o[e]||[]).forEach((function(t){r.push(e+":-"+t)}))}));var a=e.disjunctiveFacetsRefinements||{};Object.keys(a).forEach((function(e){var n=a[e]||[];if(e!==t&&n&&0!==n.length){var i=[];n.forEach((function(t){i.push(e+":"+t)})),r.push(i)}}));var s=e.hierarchicalFacetsRefinements||{};return Object.keys(s).forEach((function(i){var o=(s[i]||[])[0];if(void 0!==o){var a,u,c=e.getHierarchicalFacetByName(i),l=e._getHierarchicalFacetSeparator(c),d=e._getHierarchicalRootPath(c);if(t===i){if(-1===o.indexOf(l)||!d&&!0===n||d&&d.split(l).length===o.split(l).length)return;d?(u=d.split(l).length-1,o=d):(u=o.split(l).length-2,o=o.slice(0,o.lastIndexOf(l))),a=c.attributes[u]}else u=o.split(l).length-1,a=c.attributes[u];a&&r.push([a+":"+o])}})),r},_getHitsHierarchicalFacetsAttributes:function(e){return e.hierarchicalFacets.reduce((function(t,n){var r=e.getHierarchicalRefinement(n.name)[0];if(!r)return t.push(n.attributes[0]),t;var i=e._getHierarchicalFacetSeparator(n),o=r.split(i).length,a=n.attributes.slice(0,o+1);return t.concat(a)}),[])},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,n){var r=e._getHierarchicalFacetSeparator(t);if(!0===n){var i=e._getHierarchicalRootPath(t),o=0;return i&&(o=i.split(r).length),[t.attributes[o]]}var a=(e.getHierarchicalRefinement(t.name)[0]||"").split(r).length-1;return t.attributes.slice(0,a+1)},getSearchForFacetQuery:function(e,t,n,o){var a=o.isDisjunctiveFacet(e)?o.clearRefinements(e):o,s={facetQuery:t,facetName:e};return"number"===typeof n&&(s.maxFacetHits=n),r({},i._getHitsSearchParams(a),s)}};e.exports=i},46801:function(e){"use strict";e.exports=function(e){return null!==e&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)}},24336:function(e){"use strict";e.exports="3.8.2"},70290:function(e){e.exports=function(){"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(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 n(n){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?t(Object(i),!0).forEach((function(t){e(n,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))}))}return n}function r(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,i=!1,o=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(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(e){var t,n="algoliasearch-client-js-".concat(e.key),r=function(){return void 0===t&&(t=e.localStorage||window.localStorage),t},o=function(){return JSON.parse(r().getItem(n)||"{}")};return{get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){var n=JSON.stringify(e),r=o()[n];return Promise.all([r||t(),void 0!==r])})).then((function(e){var t=i(e,2),r=t[0],o=t[1];return Promise.all([r,o||n.miss(r)])})).then((function(e){return i(e,1)[0]}))},set:function(e,t){return Promise.resolve().then((function(){var i=o();return i[JSON.stringify(e)]=t,r().setItem(n,JSON.stringify(i)),t}))},delete:function(e){return Promise.resolve().then((function(){var t=o();delete t[JSON.stringify(e)],r().setItem(n,JSON.stringify(t))}))},clear:function(){return Promise.resolve().then((function(){r().removeItem(n)}))}}}function s(e){var t=o(e.caches),n=t.shift();return void 0===n?{get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return t().then((function(e){return Promise.all([e,n.miss(e)])})).then((function(e){return i(e,1)[0]}))},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return n.get(e,r,i).catch((function(){return s({caches:t}).get(e,r,i)}))},set:function(e,r){return n.set(e,r).catch((function(){return s({caches:t}).set(e,r)}))},delete:function(e){return n.delete(e).catch((function(){return s({caches:t}).delete(e)}))}
1,clear:function(){return n.clear().catch((function(){return s({caches:t}).clear()}))}}}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},o=JSON.stringify(n);if(o in t)return Promise.resolve(e.serializable?JSON.parse(t[o]):t[o]);var a=r(),s=i&&i.miss||function(){return Promise.resolve()};return a.then((function(e){return s(e)})).then((function(){return a}))},set:function(n,r){return t[JSON.stringify(n)]=e.serializable?JSON.stringify(r):r,Promise.resolve(r)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function c(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e}function l(e,t){return t?(Object.keys(t).forEach((function(n){e[n]=t[n](e)})),e):e}function d(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0;return e.replace(/%s/g,(function(){return encodeURIComponent(n[i++])}))}var f={WithinQueryParameters:0,WithinHeaders:1};function p(e,t){var n=e||{},r=n.data||{};return Object.keys(n).forEach((function(e){-1===["timeout","headers","queryParameters","data","cacheable"].indexOf(e)&&(r[e]=n[e])})),{data:Object.entries(r).length>0?r:void 0,timeout:n.timeout||t,headers:n.headers||{},queryParameters:n.queryParameters||{},cacheable:n.cacheable}}var h={Read:1,Write:2,Any:3},m=1,v=2,g=3;function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m;return n(n({},e),{},{status:t,lastUpdate:Date.now()})}function b(e){return"string"==typeof e?{protocol:"https",url:e,accept:h.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||h.Any}}var x="GET",_="POST";function w(e,t){return Promise.all(t.map((function(t){return e.get(t,(function(){return Promise.resolve(y(t))}))}))).then((function(e){var n=e.filter((function(e){return function(e){return e.status===m||Date.now()-e.lastUpdate>12e4}(e)})),r=e.filter((function(e){return function(e){return e.status===g&&Date.now()-e.lastUpdate<=12e4}(e)})),i=[].concat(o(n),o(r));return{getTimeout:function(e,t){return(0===r.length&&0===e?1:r.length+3+e)*t},statelessHosts:i.length>0?i.map((function(e){return b(e)})):t}}))}function S(e,t,r,i){var a=[],s=function(e,t){if(e.method!==x&&(void 0!==e.data||void 0!==t.data)){var r=Array.isArray(e.data)?e.data:n(n({},e.data),t.data);return JSON.stringify(r)}}(r,i),u=function(e,t){var r=n(n({},e.headers),t.headers),i={};return Object.keys(r).forEach((function(e){var t=r[e];i[e.toLowerCase()]=t})),i}(e,i),c=r.method,l=r.method!==x?{}:n(n({},r.data),i.data),d=n(n(n({"x-algolia-agent":e.userAgent.value},e.queryParameters),l),i.queryParameters),f=0,p=function t(n,o){var l=n.pop();if(void 0===l)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact [email protected].",transporterStackTrace:j(a)};var p={data:s,headers:u,method:c,url:E(l,r.path,d),connectTimeout:o(f,e.timeouts.connect),responseTimeout:o(f,i.timeout)},h=function(e){var t={request:p,response:e,host:l,triesLeft:n.length};return a.push(t),t},m={onSuccess:function(e){return function(e){try{return JSON.parse(e.content)}catch(t){throw function(e,t){return{name:"DeserializationError",message:e,response:t}}(t.message,e)}}(e)},onRetry:function(r){var i=h(r);return r.isTimedOut&&f++,Promise.all([e.logger.info("Retryable failure",T(i)),e.hostsCache.set(l,y(l,r.isTimedOut?g:v))]).then((function(){return t(n,o)}))},onFail:function(e){throw h(e),function(e,t){var n=e.content,r=e.status,i=n;try{i=JSON.parse(n).message}catch(e){}return function(e,t,n){return{name:"ApiError",message:e,status:t,transporterStackTrace:n}}(i,r,t)}(e,j(a))}};return e.requester.send(p).then((function(e){return function(e,t){return function(e){var t=e.status;return e.isTimedOut||function(e){var t=e.isTimedOut,n=e.status;return!t&&0==~~n}(e)||2!=~~(t/100)&&4!=~~(t/100)}(e)?t.onRetry(e):2==~~(e.status/100)?t.onSuccess(e):t.onFail(e)}(e,m)}))};return w(e.hostsCache,t).then((function(e){return p(o(e.statelessHosts).reverse(),e.getTimeout)}))}function k(e){var t={value:"Algolia for JavaScript (".concat(e,")"),add:function(e){var n="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return-1===t.value.indexOf(n)&&(t.value="".concat(t.value).concat(n)),t}};return t}function E(e,t,n){var r=C(n),i="".concat(e.protocol,"://").concat(e.url,"/").concat("/"===t.charAt(0)?t.substr(1):t);return r.length&&(i+="?".concat(r)),i}function C(e){return Object.keys(e).map((function(t){return d("%s=%s",t,(n=e[t],"[object Object]"===Object.prototype.toString.call(n)||"[object Array]"===Object.prototype.toString.call(n)?JSON.stringify(e[t]):e[t]));var n})).join("&")}function j(e){return e.map((function(e){return T(e)}))}function T(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return n(n({},e),{},{request:n(n({},e.request),{},{headers:n(n({},e.request.headers),t)})})}var R=function(e){var t=e.appId,r=function(e,t,n){var r={"x-algolia-api-key":n,"x-algolia-application-id":t};return{headers:function(){return e===f.WithinHeaders?r:{}},queryParameters:function(){return e===f.WithinQueryParameters?r:{}}}}(void 0!==e.authMode?e.authMode:f.WithinHeaders,t,e.apiKey),o=function(e){var t=e.hostsCache,n=e.logger,r=e.requester,o=e.requestsCache,a=e.responsesCache,s=e.timeouts,u=e.userAgent,c=e.hosts,l=e.queryParameters,d={hostsCache:t,logger:n,requester:r,requestsCache:o,responsesCache:a,timeouts:s,userAgent:u,headers:e.headers,queryParameters:l,hosts:c.map((function(e){return b(e)})),read:function(e,t){var n=p(t,d.timeouts.read),r=function(){return S(d,d.hosts.filter((function(e){return 0!=(e.accept&h.Read)})),e,n)};if(!0!==(void 0!==n.cacheable?n.cacheable:e.cacheable))return r();var o={request:e,mappedRequestOptions:n,transporter:{queryParameters:d.queryParameters,headers:d.headers}};return d.responsesCache.get(o,(function(){return d.requestsCache.get(o,(function(){return d.requestsCache.set(o,r()).then((function(e){return Promise.all([d.requestsCache.delete(o),e])}),(function(e){return Promise.all([d.requestsCache.delete(o),Promise.reject(e)])})).then((function(e){var t=i(e,2);return t[0],t[1]}))}))}),{miss:function(e){return d.responsesCache.set(o,e)}})},write:function(e,t){return S(d,d.hosts.filter((function(e){return 0!=(e.accept&h.Write)})),e,p(t,d.timeouts.write))}};return d}(n(n({hosts:[{url:"".concat(t,"-dsn.algolia.net"),accept:h.Read},{url:"".concat(t,".algolia.net"),accept:h.Write}].concat(c([{url:"".concat(t,"-1.algolianet.com")},{url:"".concat(t,"-2.algolianet.com")},{url:"".concat(t,"-3.algolianet.com")}]))},e),{},{headers:n(n(n({},r.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:n(n({},r.queryParameters()),e.queryParameters)}));return l({transporter:o,appId:t,addAlgoliaAgent:function(e,t){o.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([o.requestsCache.clear(),o.responsesCache.clear()]).then((function(){}))}},e.methods)},O=function(e){return function(t,n){return t.method===x?e.transporter.read(t,n):e.transporter.write(t,n)}},P=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l({transporter:e.transporter,appId:e.appId,indexName:t},n.methods)}},A=function(e){return function(t,r){var i=t.map((function(e){return n(n({},e),{},{params:C(e.params||{})})}));return e.transporter.read({method:_,path:"1/indexes/*/queries",data:{requests:i},cacheable:!0},r)}},D=function(e){return function(t,i){return Promise.all(t.map((function(t){var o=t.params,a=o.facetName,s=o.facetQuery,u=r(o,["facetName","facetQuery"]);return P(e)(t.indexName,{methods:{searchForFacetValues:M}}).searchForFacetValues(a,s,n(n({},i),u))})))}},I=function(e){return function(t,n,r){return e.transporter.read({method:_,path:d("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:n},cacheable:!0},r)}},N=function(e){return function(t,n){return e.transporter.read({method:_,path:d("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},n)}},M=function(e){return function(t,n,r){return e.transporter.read({method:_,path:d("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:n},cacheable:!0},r)}},F=1,B=2,L=3;function z(e,t,r){var i,o={appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise((function(t){var n=new XMLHttpRequest;
1n.open(e.method,e.url,!0),Object.keys(e.headers).forEach((function(t){return n.setRequestHeader(t,e.headers[t])}));var r,i=function(e,r){return setTimeout((function(){n.abort(),t({status:0,content:r,isTimedOut:!0})}),1e3*e)},o=i(e.connectTimeout,"Connection timeout");n.onreadystatechange=function(){n.readyState>n.OPENED&&void 0===r&&(clearTimeout(o),r=i(e.responseTimeout,"Socket timeout"))},n.onerror=function(){0===n.status&&(clearTimeout(o),clearTimeout(r),t({content:n.responseText||"Network request failed",status:n.status,isTimedOut:!1}))},n.onload=function(){clearTimeout(o),clearTimeout(r),t({content:n.responseText,status:n.status,isTimedOut:!1})},n.send(e.data)}))}},logger:(i=L,{debug:function(e,t){return F>=i&&console.debug(e,t),Promise.resolve()},info:function(e,t){return B>=i&&console.info(e,t),Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}}),responsesCache:u(),requestsCache:u({serializable:!1}),hostsCache:s({caches:[a({key:"".concat("4.13.0","-").concat(e)}),u()]}),userAgent:k("4.13.0").add({segment:"Browser",version:"lite"}),authMode:f.WithinQueryParameters};return R(n(n(n({},o),r),{},{methods:{search:A,searchForFacetValues:D,multipleQueries:A,multipleSearchForFacetValues:D,customRequest:O,initIndex:function(e){return function(t){return P(e)(t,{methods:{search:N,searchForFacetValues:M,findAnswers:I}})}}}}))}return z.version="4.13.0",z}()},98382:function(e){var t=.999,n=/[\\\/\-_+.# \t"@\[\(\{&]/,r=/[\\\/\-_+.# \t"@\[\(\{&]/g;function i(e,o,a,s,u,c){if(c===o.length)return u===e.length?1:.99;for(var l,d,f,p=s.charAt(c),h=a.indexOf(p,u),m=0;h>=0;)(l=i(e,o,a,s,h+1,c+1))>m&&(h===u?l*=1:n.test(e.charAt(h-1))?(l*=.9,(f=e.slice(u,h-1).match(r))&&u>0&&(l*=Math.pow(t,f.length))):n.test(e.slice(u,h-1))?(l*=0,u>0&&(l*=Math.pow(t,h-u))):(l*=.3,u>0&&(l*=Math.pow(t,h-u))),e.charAt(h)!==o.charAt(c)&&(l*=.9999)),l<.1&&a.charAt(h-1)===s.charAt(c+1)&&a.charAt(h-1)!==s.charAt(c)&&.1*(d=i(e,o,a,s,h+1,c+2))>l&&(l=.1*d),l>m&&(m=l),h=a.indexOf(p,h+1);return m}e.exports=function(e,t){return i(e,t,e.toLowerCase(),t.toLowerCase(),0,0)}},20640:function(e,t,n){"use strict";var r=n(11742),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,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 o=i[t.format]||i.default;window.clipboardData.setData(o,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"),o=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(o,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(s):u.removeAllRanges()),c&&document.body.removeChild(c),a()}return l}},54098:function(e,t){var n="undefined"!==typeof self?self:this,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,i="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),o="FormData"in e,a="ArrayBuffer"in e;if(a)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array
1]"],u=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function l(e){return"string"!==typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function p(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function m(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"===typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&i&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=h(t);return t.readAsText(e),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}f.prototype.append=function(e,t){e=c(e),t=l(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},f.prototype.delete=function(e){delete this.map[c(e)]},f.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},f.prototype.set=function(e,t){this.map[c(e)]=l(t)},f.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},f.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),d(e)},f.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),d(e)},f.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),d(e)},r&&(f.prototype[Symbol.iterator]=f.prototype.entries);var y=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e,t){var n=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new f(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new f(t.headers)),this.method=function(e){var t=e.toUpperCase();return y.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function x(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function _(e){var t=new f;
1return e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t}function w(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},g.call(b.prototype),g.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:""});return e.type="error",e};var S=[301,302,303,307,308];w.redirect=function(e,t){if(-1===S.indexOf(t))throw new RangeError("Invalid status code");return new w(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(E){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function k(e,n){return new Promise((function(r,o){var a=new b(e,n);if(a.signal&&a.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e={status:s.status,statusText:s.statusText,headers:_(s.getAllResponseHeaders()||"")};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL");var t="response"in s?s.response:s.responseText;r(new w(t,e))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.onabort=function(){o(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&i&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",u)}),s.send("undefined"===typeof a._bodyInit?null:a._bodyInit)}))}k.polyfill=!0,e.fetch||(e.fetch=k,e.Headers=f,e.Request=b,e.Response=w),t.Headers=f,t.Request=b,t.Response=w,t.fetch=k,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},13882:function(e,t,n){"use strict";function r(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:function(){return r}})},83946:function(e,t,n){"use strict";function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,{Z:function(){return r}})},36159:function(e,t,n){"use strict";n.d(t,{Z:function(){return de}});var r=n(13882);function i(e){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e){return(0,r.Z)(1,arguments),e instanceof Date||"object"===i(e)&&"[object Date]"===Object.prototype.toString.call(e)}function a(e){return a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e){(0,r.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===a(e)&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function u(e){if((0,r.Z)(1,arguments),!o(e)&&"number"!==typeof e)return!1;var t=s(e);return!isNaN(Number(t))}var c=n(83946);function l(e,t){(0,r.Z)(2,arguments);var n=s(e).getTime(),i=(0,c.Z)(t);return new Date(n+i)}function d(e,t){(0,r.Z)(2,arguments);var n=(0,c.Z)(t);return l(e,-n)}var f=864e5;function p(e){(0,r.Z)(1,arguments);var t=1,n=s(e),i=n.getUTCDay(),o=(i<t?7:0)+i-t;return n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n}function h(e){(0,r.Z)(1,arguments);var t=s(e),n=t.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(n+1,0,4),i.setUTCHours(0,0,0,0);var o=p(i),a=new Date(0);a.setUTCFullYear(n,0,4),a.setUTCHours(0,0,0,0);var u=p(a);return t.getTime()>=o.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}function m(e){(0,r.Z)(1,arguments);var t=h(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var i=p(n);return i}var v=6048e5;var g={};function y(){return g}function b(e,t){var n,i,o,a,u,l,d,f;(0,r.Z)(1,arguments);var p=y(),h=(0,c.Z)(null!==(n=null!==(i=null!==(o=null!==(a=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==a?a:null===t||void 0===t||null===(u=t.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==o?o:p.weekStartsOn)&&void 0!==i?i:null===(d=p.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==n?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=s(e),v=m.getUTCDay(),g=(v<h?7:0)+v-h;return m.setUTCDate(m.getUTCDate()-g),m.setUTCHours(0,0,0,0),m}function x(e,t){var n,i,o,a,u,l,d,f;(0,r.Z)(1,arguments);var p=s(e),h=p.getUTCFullYear(),m=y(),v=(0,c.Z)(null!==(n=null!==(i=null!==(o=null!==(a=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null===t||void 0===t||null===(u=t.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==o?o:m.firstWeekContainsDate)&&void 0!==i?i:null===(d=m.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==n?n:1);if(!(v>=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(h+1,0,v),g.setUTCHours(0,0,0,0);var x=b(g,t),_=new Date(0);_.setUTCFullYear(h,0,v),_.setUTCHours(0,0,0,0);var w=b(_,t);return p.getTime()>=x.getTime()?h+1:p.getTime()>=w.getTime()?h:h-1}function _(e,t){var n,i,o,a,s,u,l,d;(0,r.Z)(1,arguments);var f=y(),p=(0,c.Z)(null!==(n=null!==(i=null!==(o=null!==(a=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null===t||void 0===t||null===(s=t.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==o?o:f.firstWeekContainsDate)&&void 0!==i?i:null===(l=f.locale)||void 0===l||null===(d=l.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==n?n:1),h=x(e,t),m=new Date(0);m.setUTCFullYear(h,0,p),m.setUTCHours(0,0,0,0);var v=b(m,t);return v}var w=6048e5;function S(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var k={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return S("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):S(n+1,2)},d:function(e,t){return S(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];
vendor: 5,258 bytes, line 1
1default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return S(e.getUTCHours()%12||12,t.length)},H:function(e,t){return S(e.getUTCHours(),t.length)},m:function(e,t){return S(e.getUTCMinutes(),t.length)},s:function(e,t){return S(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return S(Math.floor(r*Math.pow(10,n-3)),t.length)}},E="midnight",C="noon",j="morning",T="afternoon",R="evening",O="night",P={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return k.y(e,t)},Y:function(e,t,n,r){var i=x(e,r),o=i>0?i:1-i;return"YY"===t?S(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):S(o,t.length)},R:function(e,t){return S(h(e),t.length)},u:function(e,t){return S(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return S(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return S(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return k.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return S(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){var o=function(e,t){(0,r.Z)(1,arguments);var n=s(e),i=b(n,t).getTime()-_(n,t).getTime();return Math.round(i/w)+1}(e,i);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):S(o,t.length)},I:function(e,t,n){var i=function(e){(0,r.Z)(1,arguments);var t=s(e),n=p(t).getTime()-m(t).getTime();return Math.round(n/v)+1}(e);return"Io"===t?n.ordinalNumber(i,{unit:"week"}):S(i,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):k.d(e,t)},D:function(e,t,n){var i=function(e){(0,r.Z)(1,arguments);var t=s(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var i=t.getTime(),o=n-i;return Math.floor(o/f)+1}(e);return"Do"===t?n.ordinalNumber(i,{unit:"dayOfYear"}):S(i,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return S(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return S(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return S(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?C:0===i?E:i/12>
1=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?R:i>=12?T:i>=4?j:O,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return k.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):k.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):S(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):S(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):k.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):k.s(e,t)},S:function(e,t){return k.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return D(i);case"XXXX":case"XX":return I(i);default:return I(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return D(i);case"xxxx":case"xx":return I(i);default:return I(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+A(i,":");default:return"GMT"+I(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+A(i,":");default:return"GMT"+I(i,":")}},t:function(e,t,n,r){var i=r._originalDate||e;return S(Math.floor(i.getTime()/1e3),t.length)},T:function(e,t,n,r){return S((r._originalDate||e).getTime(),t.length)}};function A(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=t||"";return n+String(i)+a+S(o,2)}function D(e,t){return e%60===0?(e>0?"-":"+")+S(Math.abs(e)/60,2):I(e,t)}function I(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+S(Math.floor(i/60),2)+n+S(i%60,2)}var N=P,M=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},F=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},B={p:F,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return M(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",M(i,t)).replace("{{time}}",F(o,t))}},L=B;function z(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var U=["D","DD"],H=["YY","YYYY"];function V(e){return-1!==U.indexOf(e)}function W(e){return-1!==H.indexOf(e)}function G(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").
1concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var q={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Z=function(e,t,n){var r,i=q[e];return r="string"===typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function $(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var Y={date:$({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:$({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:$({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},K={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},X=function(e,t,n,r){return K[e]};function Q(e){return function(t,n){var r;if("formatting"===(null!==n&&void 0!==n&&n.context?String(n.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=null!==n&&void 0!==n&&n.width?String(n.width):i;r=e.formattingValues[o]||e.formattingValues[i]}else{var a=e.defaultWidth,s=null!==n&&void 0!==n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var J={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Q({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Q({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Q({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Q({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Q({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function ee(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a,s=o[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(u)?ne(u,(function(e){return e.test(s)})):te(u,(function(e){return e.test(s)}));a=e.valueCallback?e.valueCallback(c):c,a=n.valueCallback?n.valueCallback(a):a;var l=t.slice(s.length);return{value:a,rest:l}}}function te(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function ne(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}var re,ie={ordinalNumber:(re={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(re.matchPattern);if(!n)return null;var r=n[0],i=e.match(re.parsePattern);if(!i)return null;var o=re.valueCallback?re.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;var a=e.slice(r.length);return{value:o,rest:a}}),era:ee({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:ee({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ee({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ee({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:ee({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},oe={code:"en-US",formatDistance:Z,formatLong:Y,formatRelative:X,localize:J,match:ie,options:{weekStartsOn:0,firstWeekContainsDate:1}},ae=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,se=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ue=/^'([^]*?)'?$/,ce=/''/g,le=/[a-zA-Z]/;function de(e,t,n){var i,o,a,l,f,p,h,m,v,g,b,x,_,w,S,k,E,C;(0,r.Z)(2,arguments);var j=String(t),T=y(),R=null!==(i=null!==(o=null===n||void 0===n?void 0:n.locale)&&void 0!==o?o:T.locale)&&void 0!==i?i:oe,O=(0,c.Z)(null!==(a=null!==(l=null!==(f=null!==(p=null===n||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==p?p:null===n||void 0===n||null===(h=n.locale)||void 0===h||null===(m=h.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==f?f:T.firstWeekContainsDate)&&void 0!==l?l:null===(v=T.locale)||void 0===v||null===(g=v.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==a?a:1);if(!(O>=1&&O<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=(0,c.Z)(null!==(b=null!==(x=null!==(_=null!==(w=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==w?w:null===n||void 0===n||null===(S=n.locale)||void 0===S||null===(k=S.options)||void 0===k?void 0:k.weekStartsOn)&&void 0!==_?_:T.weekStartsOn)&&void 0!==x?x:null===(E=T.locale)||void 0===E||null===(C=E.options)||void 0===C?void 0:C.weekStartsOn)&&void 0!==b?b:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!R.localize)throw new RangeError("locale must contain localize property");if(!R.formatLong)throw new RangeError("locale must contain formatLong property");var A=s(e);if(!u(A))throw new RangeError("Invalid time value");var D=z(A),I=d(A,D),M={firstWeekContainsDate:O,weekStartsOn:P,locale:R,_originalDate:A},F=j.match(se).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,L[t])(e,R.formatLong):e})).join("").match(ae).map((function(r){if("''"===r)return"'";var i=r[0];if("'"===i)return fe(r);var o=N[i];if(o)return null!==n&&void 0!==n&&n.useAdditionalWeekYearTokens||!W(r)||G(r,t,String(e)),null!==n&&void 0!==n&&n.useAdditionalDayOfYearTokens||!V(r)||G(r,t,String(e)),o(I,r,R.localize,M);
1if(i.match(le))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return r})).join("");return F}function fe(e){var t=e.match(ue);return t?t[1].replace(ce,"'"):e}},78420:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});Math.pow(10,8);var r=36e5,i=n(13882),o=n(83946);function a(e,t){var n;(0,i.Z)(1,arguments);var r=(0,o.Z)(null!==(n=null===t||void 0===t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!==typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var a,s=d(e);if(s.date){var u=f(s.date,r);a=p(u.restDateString,u.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);var c,l=a.getTime(),h=0;if(s.time&&(h=m(s.time),isNaN(h)))return new Date(NaN);if(!s.timezone){var v=new Date(l+h),y=new Date(0);return y.setFullYear(v.getUTCFullYear(),v.getUTCMonth(),v.getUTCDate()),y.setHours(v.getUTCHours(),v.getUTCMinutes(),v.getUTCSeconds(),v.getUTCMilliseconds()),y}return c=g(s.timezone),isNaN(c)?new Date(NaN):new Date(l+h+c)}var s={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},u=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,c=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,l=/^([+-])(\d{2})(?::?(\d{2}))?$/;function d(e){var t,n={},r=e.split(s.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],s.timeZoneDelimiter.test(n.date)&&(n.date=e.split(s.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var i=s.timezone.exec(t);i?(n.time=t.replace(i[1],""),n.timezone=i[1]):n.time=t}return n}function f(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?i:100*o,restDateString:e.slice((r[1]||r[2]).length)}}function p(e,t){if(null===t)return new Date(NaN);var n=e.match(u);if(!n)return new Date(NaN);var r=!!n[4],i=h(n[1]),o=h(n[2])-1,a=h(n[3]),s=h(n[4]),c=h(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,c)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,o=7*(t-1)+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}(t,s,c):new Date(NaN);var l=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(y[t]||(b(e)?29:28))}(t,o,a)&&function(e,t){return t>=1&&t<=(b(e)?366:365)}(t,i)?(l.setUTCFullYear(t,o,Math.max(i,a)),l):new Date(NaN)}function h(e){return e?parseInt(e):1}function m(e){var t=e.match(c);if(!t)return NaN;var n=v(t[1]),i=v(t[2]),o=v(t[3]);return function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,i,o)?n*r+6e4*i+1e3*o:NaN}function v(e){return e&&parseFloat(e.replace(",","."))||0}function g(e){if("Z"===e)return 0;var t=e.match(l);if(!t)return 0;var n="+"===t[1]?-1:1,i=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,o)?n*(i*r+6e4*o):NaN}var y=[31,null,31,30,31,30,31,31,30,31,30,31];function b(e){return e%400===0||e%4===0&&e%100!==0}},72445:function(e){"use strict";e.exports=function(e){var t=e.uri,n=e.name,r=e.type;this.uri=t,this.name=n,this.type=r}},40804:function(e,t,n){"use strict";var r=n(51268);e.exports=function e(t,n,i){var o;void 0===n&&(n=""),void 0===i&&(i=r);var a=new Map;function s(e,t){var n=a.get(t);n?n.push.apply(n,e):a.set(t,e)}if(i(t))o=null,s([n],t);else{var u=n?n+".":"";if("undefined"!==typeof FileList&&t instanceof FileList)o=Array.prototype.map.call(t,(function(e,t){return s([""+u+t],e),null}));else if(Array.isArray(t))o=t.map((function(t,n){var r=e(t,""+u+n,i);return r.files.forEach(s),r.clone}));else if(t&&t.constructor===Object)for(var c in o={},t){var l=e(t[c],""+u+c,i);l.files.forEach(s),o[c]=l.clone}else o=t}return{clone:o,files:a}}},34823:function(e,t,n){"use strict";t.ReactNativeFile=n(72445),t.extractFiles=n(40804),t.isExtractableFile=n(51268)},51268:function(e,t,n){"use strict";var r=n(72445);e.exports=function(e){return"undefined"!==typeof File&&e instanceof File||"undefined"!==typeof Blob&&e instanceof Blob||e instanceof r}},58367:function(e,t){!function(e){"use strict";var t="function"===typeof WeakSet,n=Object.keys;function r(e,t){return e===t||e!==e&&t!==t}function i(e){return e.constructor===Object||null==e.constructor}function o(e){return!!e&&"function"===typeof e.then}function a(e){return!(!e||!e.$$typeof)}function s(){var e=[];return{add:function(t){e.push(t)},has:function(t){return-1!==e.indexOf(t)}}}var u=t?function(){return new WeakSet}:s;function c(e){return function(t){var n=e||t;return function(e,t,r){void 0===r&&(r=u());var i=!!e&&"object"===typeof e,o=!!t&&"object"===typeof t;if(i||o){var a=i&&r.has(e),s=o&&r.has(t);if(a||s)return a&&s;i&&r.add(e),o&&r.add(t)}return n(e,t,r)}}}function l(e,t,n,r){var i=e.length;if(t.length!==i)return!1;for(;i-- >0;)if(!n(e[i],t[i],r))return!1;return!0}function d(e,t,n,r){var i=e.size===t.size;if(i&&e.size){var o={};e.forEach((function(e,a){if(i){var s=!1,u=0;t.forEach((function(t,i){s||o[u]||(s=n(a,i,r)&&n(e,t,r))&&(o[u]=!0),u++})),i=s}}))}return i}var f="_owner",p=Function.prototype.bind.call(Function.prototype.call,Object.prototype.hasOwnProperty);function h(e,t,r,i){var o=n(e),s=o.length;if(n(t).length!==s)return!1;if(s)for(var u=void 0;s-- >0;){if((u=o[s])===f){var c=a(e),l=a(t);if((c||l)&&c!==l)return!1}if(!p(t,u)||!r(e[u],t[u],i))return!1}return!0}function m(e,t){return e.source===t.source&&e.global===t.global&&e.ignoreCase===t.ignoreCase&&e.multiline===t.multiline&&e.unicode===t.unicode&&e.sticky===t.sticky&&e.lastIndex===t.lastIndex}function v(e,t,n,r){var i=e.size===t.size;if(i&&e.size){var o={};e.forEach((function(e){if(i){var a=!1,s=0;t.forEach((function(t){a||o[s]||(a=n(e,t,r))&&(o[s]=!0),s++})),i=a}}))}return i}var g="function"===typeof Map,y="function"===typeof Set;function b(e){var t="function"===typeof e?e(n):n;function n(e,n,a){if(e===n)return!0;
1if(e&&n&&"object"===typeof e&&"object"===typeof n){if(i(e)&&i(n))return h(e,n,t,a);var s=Array.isArray(e),u=Array.isArray(n);return s||u?s===u&&l(e,n,t,a):(s=e instanceof Date,u=n instanceof Date,s||u?s===u&&r(e.getTime(),n.getTime()):(s=e instanceof RegExp,u=n instanceof RegExp,s||u?s===u&&m(e,n):o(e)||o(n)?e===n:g&&(s=e instanceof Map,u=n instanceof Map,s||u)?s===u&&d(e,n,t,a):y&&(s=e instanceof Set,u=n instanceof Set,s||u)?s===u&&v(e,n,t,a):h(e,n,t,a)))}return e!==e&&n!==n}return n}var x=b(),_=b((function(){return r})),w=b(c()),S=b(c(r));e.circularDeepEqual=w,e.circularShallowEqual=S,e.createCustomEqual=b,e.deepEqual=x,e.sameValueZeroEqual=r,e.shallowEqual=_,Object.defineProperty(e,"__esModule",{value:!0})}(t)},6230:function(e){e.exports="object"==typeof self?self.FormData:window.FormData},78458:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(34823),o=r(n(6230)),a=function(e){return i.isExtractableFile(e)||null!==e&&"object"===typeof e&&"function"===typeof e.pipe};t.default=function(e,t){var n=i.extractFiles({query:e,variables:t},"",a),r=n.clone,s=n.files;if(0===s.size)return JSON.stringify(r);var u=new("undefined"===typeof FormData?o.default:FormData);u.append("operations",JSON.stringify(r));var c={},l=0;return s.forEach((function(e){c[++l]=e})),u.append("map",JSON.stringify(c)),l=0,s.forEach((function(e,t){u.append(""+ ++l,t)})),u}},28687:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(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)&&i(t,e,n);return o(t,e),t},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(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())}))},u=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},c=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}
1,l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.gql=t.request=t.rawRequest=t.GraphQLClient=t.ClientError=void 0;var d=a(n(54098)),f=d,p=n(79627),h=l(n(78458)),m=n(8308),v=n(8308);Object.defineProperty(t,"ClientError",{enumerable:!0,get:function(){return v.ClientError}});var g=function(e){var t={};return e&&("undefined"!==typeof Headers&&e instanceof Headers||e instanceof f.Headers?t=function(e){var t={};return e.forEach((function(e,n){t[n]=e})),t}(e):Array.isArray(e)?e.forEach((function(e){var n=e[0],r=e[1];t[n]=r})):t=e),t},y=function(){function e(e,t){this.url=e,this.options=t||{}}return e.prototype.rawRequest=function(e,t,n){return s(this,void 0,void 0,(function(){var i,o,a,s,l,f,p,v,y,b,_;return u(this,(function(u){switch(u.label){case 0:return i=this.options,o=i.headers,a=i.fetch,s=void 0===a?d.default:a,l=c(i,["headers","fetch"]),f=h.default(e,t),[4,s(this.url,r({method:"POST",headers:r(r(r({},"string"===typeof f?{"Content-Type":"application/json"}:{}),g(o)),g(n)),body:f},l))];case 1:return[4,x(p=u.sent())];case 2:if(v=u.sent(),p.ok&&!v.errors&&v.data)return y=p.headers,b=p.status,[2,r(r({},v),{headers:y,status:b})];throw _="string"===typeof v?{error:v}:v,new m.ClientError(r(r({},_),{status:p.status,headers:p.headers}),{query:e,variables:t})}}))}))},e.prototype.request=function(e,t,n){return s(this,void 0,void 0,(function(){var i,o,a,s,l,f,v,y,b,_;return u(this,(function(u){switch(u.label){case 0:return i=this.options,o=i.headers,a=i.fetch,s=void 0===a?d.default:a,l=c(i,["headers","fetch"]),f=function(e){return"string"===typeof e?e:p.print(e)}(e),v=h.default(f,t),[4,s(this.url,r({method:"POST",headers:r(r(r({},"string"===typeof v?{"Content-Type":"application/json"}:{}),g(o)),g(n)),body:v},l))];case 1:return[4,x(y=u.sent())];case 2:if(b=u.sent(),y.ok&&!b.errors&&b.data)return[2,b.data];throw _="string"===typeof b?{error:b}:b,new m.ClientError(r(r({},_),{status:y.status}),{query:f,variables:t})}}))}))},e.prototype.setHeaders=function(e){return this.options.headers=e,this},e.prototype.setHeader=function(e,t){var n,r=this.options.headers;return r?r[e]=t:this.options.headers=((n={})[e]=t,n),this},e}();function b(e,t,n){return s(this,void 0,void 0,(function(){return u(this,(function(r){return[2,new y(e).request(t,n)]}))}))}function x(e){var t=e.headers.get("Content-Type");return t&&t.startsWith("application/json")?e.json():e.text()}t.GraphQLClient=y,t.rawRequest=function(e,t,n){return s(this,void 0,void 0,(function(){return u(this,(function(r){return[2,new y(e).rawRequest(t,n)]}))}))},t.request=b,t.default=b,t.gql=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.reduce((function(e,n,r){return""+e+n+(r in t?t[r]:"")}),"")}},8308:function(e,t){"use strict";var n=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.ClientError=void 0;var r=function(e){function t(n,r){var i=this,o=t.extractMessage(n)+": "+JSON.stringify({response:n,request:r});return i=e.call(this,o)||this,Object.setPrototypeOf(i,t.prototype),i.response=n,i.request=r,"function"===typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return n(t,e),t.extractMessage=function(e){try{return e.errors[0].message}catch(t){return"GraphQL Error (Code: "+e.status+")"}},t}(Error);t.ClientError=r},8679:function(e,t,n){"use strict";var r=n(59864),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var i=p(n);i&&i!==h&&e(t,i,r)}var a=l(n);d&&(a=a.concat(d(n)));for(var s=u(t),m=u(n),v=0;v<a.length;++v){var g=a[v];if(!o[g]&&(!r||!r[g])&&(!m||!m[g])&&(!s||!s[g])){var y=f(n,g);try{c(t,g,y)}catch(b){}}}}return t}},91400:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}
1),o=this&&this.__importStar||function(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)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.InternalEvents=void 0;var s=o(n(67294)),u=a(n(61250)),c=n(20444),l=n(84583),d=n(33564);t.InternalEvents=function(){return function(){var e,t,n=(0,l.useKBar)((function(e){return{visualState:e.visualState,showing:e.visualState!==c.VisualState.hidden}})),r=n.query,i=n.options,o=n.visualState,a=n.showing;s.useEffect((function(){var e,t=i.toggleShortcut||"$mod+k",n=(0,u.default)(window,((e={})[t]=function(e){var t,n,o,s;e.defaultPrevented||(e.preventDefault(),r.toggle(),a?null===(n=null===(t=i.callbacks)||void 0===t?void 0:t.onClose)||void 0===n||n.call(t):null===(s=null===(o=i.callbacks)||void 0===o?void 0:o.onOpen)||void 0===s||s.call(o))},e.Escape=function(e){var t,n;a&&(e.stopPropagation(),null===(n=null===(t=i.callbacks)||void 0===t?void 0:t.onClose)||void 0===n||n.call(t)),r.setVisualState((function(e){return e===c.VisualState.hidden||e===c.VisualState.animatingOut?e:c.VisualState.animatingOut}))},e));return function(){n()}}),[i.callbacks,i.toggleShortcut,r,a]);var d=s.useRef(),f=s.useCallback((function(e){var t,n,o=0;e===c.VisualState.animatingIn&&(o=(null===(t=i.animations)||void 0===t?void 0:t.enterMs)||0),e===c.VisualState.animatingOut&&(o=(null===(n=i.animations)||void 0===n?void 0:n.exitMs)||0),clearTimeout(d.current),d.current=setTimeout((function(){var t=!1;r.setVisualState((function(){var n=e===c.VisualState.animatingIn?c.VisualState.showing:c.VisualState.hidden;return n===c.VisualState.hidden&&(t=!0),n})),t&&r.setCurrentRootAction(null)}),o)}),[null===(e=i.animations)||void 0===e?void 0:e.enterMs,null===(t=i.animations)||void 0===t?void 0:t.exitMs,r]);s.useEffect((function(){switch(o){case c.VisualState.animatingIn:case c.VisualState.animatingOut:f(o)}}),[f,o])}(),function(){var e=(0,l.useKBar)((function(e){return{visualState:e.visualState}})),t=e.visualState,n=e.options;s.useEffect((function(){if(!n.disableDocumentLock)if(t===c.VisualState.animatingIn){if(document.body.style.overflow="hidden",!n.disableScrollbarManagement){var e=(0,d.getScrollbarWidth)(),r=getComputedStyle(document.body)["margin-right"];r&&(e+=Number(r.replace(/\D/g,""))),document.body.style.marginRight=e+"px"}}else t===c.VisualState.hidden&&(document.body.style.removeProperty("overflow"),n.disableScrollbarManagement||document.body.style.removeProperty("margin-right"))}),[n.disableDocumentLock,n.disableScrollbarManagement,t])}(),function(){var e=(0,l.useKBar)((function(e){return{actions:e.actions}})),t=e.actions,n=e.query,r=e.options;s.useEffect((function(){for(var e,i=Object.keys(t).map((function(e){return t[e]})),o={},a=function(t){if(!(null===(e=t.shortcut)||void 0===e?void 0:e.length))return"continue";var i=t.shortcut.join(" ");o[i]=function(e){var i,o,a,s,u,c;(0,d.shouldRejectKeystrokes)()||(e.preventDefault(),(null===(i=t.children)||void 0===i?void 0:i.length)?(n.setCurrentRootAction(t.id),n.toggle(),null===(a=null===(o=r.callbacks)||void 0===o?void 0:o.onOpen)||void 0===a||a.call(o)):(null===(s=t.command)||void 0===s||s.perform(),null===(c=null===(u=r.callbacks)||void 0===u?void 0:u.onSelectAction)||void 0===c||c.call(u,t)))}},s=0,c=i;s<c.length;s++){a(c[s])}var l=(0,u.default)(window,o,{timeout:400});return function(){l()}}),[t,r.callbacks,n])}(),function(){var e=(0,l.useKBar)((function(e){return{isShowing:e.visualState===c.VisualState.showing||e.visualState===c.VisualState.animatingIn}})).isShowing,t=s.useRef(null);s.useEffect((function(){if(e)t.current=document.activeElement;else{var n=document.activeElement;"input"===(null===n||void 0===n?void 0:n.tagName.toLowerCase())&&n.blur();var r=t.current;r&&r.focus()}}),[e])}(),null}},12954:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}
1),a=this&&this.__importStar||function(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)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.KBarAnimator=void 0;var s=a(n(67294)),u=n(20444),c=n(84583),l=n(33564),d=[{opacity:0,transform:"scale(.99)"},{opacity:1,transform:"scale(1.01)"},{opacity:1,transform:"scale(1)"}],f=[{transform:"scale(1)"},{transform:"scale(.98)"},{transform:"scale(1)"}];t.KBarAnimator=function(e){var t,n,i=e.children,o=e.style,a=e.className,p=(0,c.useKBar)((function(e){return{visualState:e.visualState,currentRootActionId:e.currentRootActionId}})),h=p.visualState,m=p.currentRootActionId,v=p.query,g=p.options,y=s.useRef(null),b=s.useRef(null),x=(null===(t=null===g||void 0===g?void 0:g.animations)||void 0===t?void 0:t.enterMs)||0,_=(null===(n=null===g||void 0===g?void 0:g.animations)||void 0===n?void 0:n.exitMs)||0;s.useEffect((function(){if(h!==u.VisualState.showing){var e=h===u.VisualState.animatingIn?x:_,t=y.current;null===t||void 0===t||t.animate(d,{duration:e,easing:h===u.VisualState.animatingOut?"ease-in":"ease-out",direction:h===u.VisualState.animatingOut?"reverse":"normal",fill:"forwards"})}}),[g,h,x,_]);var w=s.useRef();s.useEffect((function(){if(h===u.VisualState.showing){var e=y.current,t=b.current;if(!e||!t)return;var n=new ResizeObserver((function(t){for(var n=0,r=t;n<r.length;n++){var i=r[n].contentRect;w.current||(w.current=i.height),e.animate([{height:w.current+"px"},{height:i.height+"px"}],{duration:x/2,easing:"ease-out",fill:"forwards"}),w.current=i.height}}));return n.observe(t),function(){n.unobserve(t)}}}),[h,g,x,_]);var S=s.useRef(!0);return s.useEffect((function(){if(S.current)S.current=!1;else{var e=y.current;e&&e.animate(f,{duration:x,easing:"ease-out"})}}),[m,x]),(0,l.useOuterClick)(y,(function(){var e,t;v.setVisualState(u.VisualState.animatingOut),null===(t=null===(e=g.callbacks)||void 0===e?void 0:e.onClose)||void 0===t||t.call(e)})),s.createElement("div",{ref:y,style:r(r(r({},d[0]),o),{pointerEvents:"auto"}),className:a},s.createElement("div",{ref:b},i))}},12048:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(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)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.KBarProvider=t.KBarContext=void 0;var a=n(96317),s=o(n(67294)),u=n(91400);t.KBarContext=s.createContext({});t.KBarProvider=function(e){var n=(0,a.useStore)(e);return s.createElement(t.KBarContext.Provider,{value:n},s.createElement(u.InternalEvents,null),e.children)}},95585:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(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)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.KBarPortal=void 0;var s=a(n(49474)),u=o(n(67294)),c=n(20444),l=n(84583);t.KBarPortal=function(e){return(0,l.useKBar)((function(e){return{showing:e.visualState!==c.VisualState.hidden}})).showing?u.createElement(s.default,null,e.children):null}},61489:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}
1),a=this&&this.__importStar||function(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)&&i(t,e,n);return o(t,e),t},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.KBarPositioner=void 0;var u=a(n(67294)),c={position:"fixed",display:"flex",alignItems:"flex-start",justifyContent:"center",width:"100%",inset:"0px",padding:"14vh 16px 16px"};function l(e){return e?r(r({},c),e):c}t.KBarPositioner=u.forwardRef((function(e,t){var n=e.style,i=e.children,o=s(e,["style","children"]);return u.createElement("div",r({ref:t,style:l(n)},o),i)}))},70019:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(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)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.KBarResults=void 0;var s=a(n(67294)),u=n(78720),c=n(88562),l=n(84583),d=n(33564);t.KBarResults=function(e){var t=s.useRef(null),n=s.useRef(null),i=s.useRef(e.items);i.current=e.items;var o=(0,u.useVirtual)({size:i.current.length,parentRef:n}),a=(0,l.useKBar)((function(e){return{search:e.searchQuery,currentRootActionId:e.currentRootActionId,activeIndex:e.activeIndex}})),f=a.query,p=a.search,h=a.currentRootActionId,m=a.activeIndex,v=a.options;s.useEffect((function(){var e=function(e){var n;"ArrowUp"===e.key||e.ctrlKey&&"p"===e.key?(e.preventDefault(),f.setActiveIndex((function(e){var t=e>0?e-1:e;if("string"===typeof i.current[t]){if(0===t)return e;t-=1}return t}))):"ArrowDown"===e.key||e.ctrlKey&&"n"===e.key?(e.preventDefault(),f.setActiveIndex((function(e){var t=e<i.current.length-1?e+1:e;if("string"===typeof i.current[t]){if(t===i.current.length-1)return e;t+=1}return t}))):"Enter"===e.key&&(e.preventDefault(),null===(n=t.current)||void 0===n||n.click())};return window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}}),[f]);var g=o.scrollToIndex;s.useEffect((function(){g(m,{align:m<=1?"end":"auto"})}),[m,g]),s.useEffect((function(){f.setActiveIndex("string"===typeof e.items[0]?1:0)}),[p,h,e.items,f]);var y=s.useCallback((function(e){var t,n;"string"!==typeof e&&(e.command?(e.command.perform(e),f.toggle()):(f.setSearch(""),f.setCurrentRootAction(e.id)),null===(n=null===(t=v.callbacks)||void 0===t?void 0:t.onSelectAction)||void 0===n||n.call(t,e))}),[f,v]),b=(0,d.usePointerMovedSinceMount)();return s.createElement("div",{ref:n,style:{maxHeight:e.maxHeight||400,position:"relative",overflow:"auto"}},s.createElement("div",{role:"listbox",id:c.KBAR_LISTBOX,style:{height:o.totalSize+"px",width:"100%"}},o.virtualItems.map((function(n){var o=i.current[n.index],a="string"!==typeof o&&{onPointerMove:function(){return b&&m!==n.index&&f.setActiveIndex(n.index)},onPointerDown:function(){return f.setActiveIndex(n.index)},onClick:function(){return y(o)}},u=n.index===m;return s.createElement("div",r({ref:u?t:null,id:(0,c.getListboxItemId)(n.index),role:"option","aria-selected":u,key:n.index,style:{position:"absolute",top:0,left:0,width:"100%",transform:"translateY("+n.start+"px)"}},a),s.cloneElement(e.onRender({item:o,active:u}),{ref:n.measureRef}))}))))}},88562:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}
1),a=this&&this.__importStar||function(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)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.KBarSearch=t.getListboxItemId=t.KBAR_LISTBOX=void 0;var s=a(n(67294)),u=n(20444),c=n(84583);t.KBAR_LISTBOX="kbar-listbox";t.getListboxItemId=function(e){return"kbar-listbox-item-"+e},t.KBarSearch=function(e){var n=(0,c.useKBar)((function(e){return{search:e.searchQuery,currentRootActionId:e.currentRootActionId,actions:e.actions,activeIndex:e.activeIndex,showing:e.visualState===u.VisualState.showing}})),i=n.query,o=n.search,a=n.actions,l=n.currentRootActionId,d=n.activeIndex,f=n.showing,p=n.options,h=s.useRef(null);s.useEffect((function(){return i.setSearch(""),h.current.focus(),function(){return i.setSearch("")}}),[l,i]);var m=s.useMemo((function(){var t,n=null!==(t=e.defaultPlaceholder)&&void 0!==t?t:"Type a command or search\u2026";return l?a[l].name:n}),[a,l,e.defaultPlaceholder]);return s.createElement("input",r({},e,{ref:h,autoFocus:!0,autoComplete:"off",role:"combobox",spellCheck:"false","aria-expanded":f,"aria-controls":t.KBAR_LISTBOX,"aria-activedescendant":(0,t.getListboxItemId)(d),value:o,placeholder:m,onCh
1ange:function(t){var n,r,o;null===(n=e.onChange)||void 0===n||n.call(e,t),i.setSearch(t.target.value),null===(o=null===(r=null===p||void 0===p?void 0:p.callbacks)||void 0===r?void 0:r.onQueryChange)||void 0===o||o.call(r,t.target.value)},onKeyDown:function(t){var n;if(null===(n=e.onKeyDown)||void 0===n||n.call(e,t),l&&!o&&"Backspace"===t.key){var r=a[l].parent;i.setCurrentRootAction(r)}}}))}},8972:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ActionImpl=void 0;var i=r(n(2177)),o=n(98033),a=n(33564),s=function(){function e(e,t){var n,r=this;this.priority=a.Priority.NORMAL,this.ancestors=[],this.children=[],Object.assign(this,e),this.id=e.id,this.name=e.name,this.keywords=function(e){var t=e.keywords,n=void 0===t?"":t,r=e.section,i=void 0===r?"":r;return(n+" "+("string"===typeof i?i:i.name)).trim()}(e);var s=e.perform;if(this.command=s&&new o.Command({perform:function(){return s(r)}},{history:t.history}),this.perform=null===(n=this.command)||void 0===n?void 0:n.perform,e.parent){var u=t.store[e.parent];(0,i.default)(u,"attempted to create an action whos parent: "+e.parent+" does not exist in the store."),u.addChild(this)}}return e.prototype.addChild=function(e){e.ancestors.unshift(this);for(var t=this.parentActionImpl;t;)e.ancestors.unshift(t),t=t.parentActionImpl;this.children.push(e)},e.prototype.removeChild=function(e){var t=this,n=this.children.indexOf(e);-1!==n&&this.children.splice(n,1),e.children&&e.children.forEach((function(e){t.removeChild(e)}))},Object.defineProperty(e.prototype,"parentActionImpl",{get:function(){return this.ancestors[this.ancestors.length-1]},enumerable:!1,configurable:!0}),e.create=function(t,n){return new e(t,n)},e}();t.ActionImpl=s},98672:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ActionInterface=void 0;var o=i(n(2177)),a=n(8972),s=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t={}),this.actions={},this.options=t,this.add(e)}return e.prototype.add=function(e){for(var t=0;t<e.length;t++){var n=e[t];n.parent&&(0,o.default)(this.actions[n.parent],'Attempted to create action "'+n.name+'" without registering its parent "'+n.parent+'" first.'),this.actions[n.id]=a.ActionImpl.create(n,{history:this.options.historyManager,store:this.actions})}return r({},this.actions)},e.prototype.remove=function(e){var t=this;return e.forEach((function(e){var n=t.actions[e.id];if(n){for(var r=n.children;r.length;){var i=r.pop();if(!i)return;delete t.actions[i.id],i.parentActionImpl&&i.parentActionImpl.removeChild(i),i.children&&r.push.apply(r,i.children)}n.parentActionImpl&&n.parentActionImpl.removeChild(n),delete t.actions[e.id]}})),r({},this.actions)},e}();t.ActionInterface=s},98033:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Command=void 0;var n=function(e,t){var n=this;void 0===t&&(t={}),this.perform=function(){var r=e.perform();if("function"===typeof r){var i=t.history;i&&(n.historyItem&&i.remove(n.historyItem),n.historyItem=i.add({perform:e.perform,negate:r}),n.history={undo:function(){return i.undo(n.historyItem)},redo:function(){return i.redo(n.historyItem)}})}}};t.Command=n},10351:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.history=t.HistoryItemImpl=void 0;var r=n(33564),i=function(){function e(e){this.perform=e.perform,this.negate=e.negate}return e.create=function(t){return new e(t)},e}();t.HistoryItemImpl=i;var o=new(function(){function e(){return this.undoStack=[],this.redoStack=[],e.instance||(e.instance=this,this.init()),e.instance}return e.prototype.init=function(){var e=this;"undefined"!==typeof window&&window.addEventListener("keydown",(function(t){var n;if((e.redoStack.length||e.undoStack.length)&&!(0,r.shouldRejectKeystrokes)()){var i=null===(n=t.key)||void 0===n?void 0:n.toLowerCase();t.metaKey&&"z"===i&&t.shiftKey?e.redo():t.metaKey&&"z"===i&&e.undo()}}))},e.prototype.add=function(e){var t=i.create(e);return this.undoStack.push(t),t},e.prototype.remove=function(e){var t=this.undoStack.findIndex((function(t){return t===e}));if(-1===t){var n=this.redoStack.findIndex((function(t){return t===e}));
1-1!==n&&this.redoStack.splice(n,1)}else this.undoStack.splice(t,1)},e.prototype.undo=function(e){if(!e){var t=this.undoStack.pop();if(!t)return;return null===t||void 0===t||t.negate(),this.redoStack.push(t),t}var n=this.undoStack.findIndex((function(t){return t===e}));if(-1!==n)return this.undoStack.splice(n,1),e.negate(),this.redoStack.push(e),e},e.prototype.redo=function(e){if(!e){var t=this.redoStack.pop();if(!t)return;return null===t||void 0===t||t.perform(),this.undoStack.push(t),t}var n=this.redoStack.findIndex((function(t){return t===e}));if(-1!==n)return this.redoStack.splice(n,1),e.perform(),this.undoStack.push(e),e},e.prototype.reset=function(){this.undoStack.splice(0),this.redoStack.splice(0)},e}());t.history=o,Object.freeze(o)},74502:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(98672),t),i(n(8972),t)},11606:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.Priority=t.createAction=void 0;var o=n(33564);Object.defineProperty(t,"createAction",{enumerable:!0,get:function(){return o.createAction}}),Object.defineProperty(t,"Priority",{enumerable:!0,get:function(){return o.Priority}}),i(n(59835),t),i(n(95585),t),i(n(61489),t),i(n(88562),t),i(n(70019),t),i(n(84583),t),i(n(23330),t),i(n(12048),t),i(n(12954),t),i(n(20444),t),i(n(74502),t)},61250:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=["Shift","Meta","Alt","Control"],r="object"===typeof navigator&&/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"Meta":"Control";function i(e,t){return"function"===typeof e.getModifierState&&e.getModifierState(t)}t.default=function(e,t,o){var a,s;void 0===o&&(o={});var u=null!==(a=o.timeout)&&void 0!==a?a:1e3,c=null!==(s=o.event)&&void 0!==s?s:"keydown",l=Object.keys(t).map((function(e){return[(n=e,n.trim().split(" ").map((function(e){var t=e.split(/\b\+/),n=t.pop();return[t=t.map((function(e){return"$mod"===e?r:e})),n]}))),t[e]];var n})),d=new Map,f=null,p=function(e){e instanceof KeyboardEvent&&(l.forEach((function(t){var r=t[0],o=t[1],a=d.get(r),s=a||r,u=s[0],c=function(e,t){return!(!/^[^A-Za-z0-9]$/.test(e.key)||t[1]!==e.key)||!(t[1].toUpperCase()!==e.key.toUpperCase()&&t[1]!==e.code||t[0].find((function(t){return!i(e,t)}))||n.find((function(n){return!t[0].includes(n)&&t[1]!==n&&i(e,n)})))}(e,u);c?s.length>1?d.set(r,s.slice(1)):(d.delete(r),o(e)):i(e,e.key)||d.delete(r)})),f&&clearTimeout(f),f=setTimeout(d.clear.bind(d),u))};return e.addEventListener(c,p),function(){e.removeEventListener(c,p)}}},20444:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VisualState=void 0,function(e){e.animatingIn="animating-in",e.showing="showing",e.animatingOut="animating-out",e.hidden="hidden"}(t.VisualState||(t.VisualState={}))},84583:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}
1),a=this&&this.__importStar||function(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)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.useKBar=void 0;var s=a(n(67294)),u=n(12048);t.useKBar=function(e){var t=s.useContext(u.KBarContext),n=t.query,i=t.getState,o=t.subscribe,a=t.options,c=s.useRef(null===e||void 0===e?void 0:e(i())),l=s.useRef(e),d=s.useCallback((function(e){return r(r({},e),{query:n,options:a})}),[n,a]),f=s.useState(d(c.current)),p=f[0],h=f[1];return s.useEffect((function(){var e;return l.current&&(e=o((function(e){return l.current(e)}),(function(e){return h(d(e))}))),function(){e&&e()}}),[d,o]),p}},59835:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(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)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useDeepMatches=t.useMatches=t.NO_GROUP=void 0;var s=o(n(67294)),u=n(84583),c=n(33564),l=a(n(98382));function d(e,t){return t.priority-e.priority}function f(){var e=(0,u.useKBar)((function(e){return{search:e.searchQuery,actions:e.actions,rootActionId:e.currentRootActionId}})),n=e.search,r=e.actions,i=e.rootActionId,o=s.useMemo((function(){return Object.keys(r).reduce((function(e,t){var n=r[t];if(n.parent||i||e.push(n),n.id===i)for(var o=0;o<n.children.length;o++)e.push(n.children[o]);return e}),[]).sort(d)}),[r,i]),a=s.useCallback((function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return function e(n,r){void 0===r&&(r=t);for(var i=0;i<n.length;i++)if(n[i].children.length>0){for(var o=n[i].children,a=0;a<o.length;a++)r.push(o[a]);e(n[i].children,r)}return r}(e)}),[]),f=!n,p=function(e,t){var n=s.useMemo((function(){return{filtered:e,search:t}}),[e,t]),r=(0,c.useThrottledValue)(n),i=r.filtered,o=r.search;return s.useMemo((function(){if(""===o.trim())return i.map((function(e){return{score:0,action:e}}));for(var e=[],t=0;t<i.length;t++){var n=i[t],r=(0,l.default)([n.name,n.keywords,n.subtitle].join(" "),o);r>0&&e.push({score:r,action:n})}return e}),[i,o])}(s.useMemo((function(){return f?o:a(o)}),[a,o,f]),n),h=s.useMemo((function(){for(var e,n,r,i={},o=[],a=0;a<p.length;a++){var s=p[a],u=s.action,l=s.score||c.Priority.NORMAL,f={name:"string"===typeof u.section?u.section:(null===(e=u.section)||void 0===e?void 0:e.name)||t.NO_GROUP.name,priority:"string"===typeof u.section?l:(null===(n=u.section)||void 0===n?void 0:n.priority)||0+l};i[f.name]||(i[f.name]=[],o.push(f)),i[f.name].push({priority:u.priority+l,action:u})}r=o.sort(d).map((function(e){return{name:e.name,actions:i[e.name].sort(d).map((function(e){return e.action}))}}));var h=[];for(a=0;a<r.length;a++){var m=r[a];m.name!==t.NO_GROUP.name&&h.push(m.name);for(var v=0;v<m.actions.length;v++)h.push(m.actions[v])}return h}),[p]),m=s.useMemo((function(){return i}),[h]);return s.useMemo((function(){return{results:h,rootActionId:m}}),[m,h])}t.NO_GROUP={name:"none",priority:c.Priority.NORMAL},t.useMatches=f,t.useDeepMatches=f},23330:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(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)&&r(t,e,n);return i(t,e),t};
1Object.defineProperty(t,"__esModule",{value:!0}),t.useRegisterActions=void 0;var a=o(n(67294)),s=n(84583);t.useRegisterActions=function(e,t){void 0===t&&(t=[]);var n=(0,s.useKBar)().query,r=a.useMemo((function(){return e}),t);a.useEffect((function(){if(r.length){var e=n.registerActions(r);return function(){e()}}}),[n,r])}},96317:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(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)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.useStore=void 0;var s=n(58367),u=a(n(67294)),c=n(98672),l=n(10351),d=n(20444);t.useStore=function(e){var t=u.useRef(r({animations:{enterMs:200,exitMs:100}},e.options)),n=u.useMemo((function(){return new c.ActionInterface(e.actions||[],{historyManager:t.current.enableHistory?l.history:void 0})}),[]),i=u.useState({searchQuery:"",currentRootActionId:null,visualState:d.VisualState.hidden,actions:r({},n.actions),activeIndex:0}),o=i[0],a=i[1],s=u.useRef(o);s.current=o;var p=u.useCallback((function(){return s.current}),[]),h=u.useMemo((function(){return new f(p)}),[p]);u.useEffect((function(){s.current=o,h.notify()}),[o,h]);var m=u.useCallback((function(e){return a((function(t){return r(r({},t),{actions:n.add(e)})})),function(){a((function(t){return r(r({},t),{actions:n.remove(e)})}))}}),[n]);return u.useMemo((function(){return{getState:p,query:{setCurrentRootAction:function(e){a((function(t){return r(r({},t),{currentRootActionId:e})}))},setVisualState:function(e){a((function(t){return r(r({},t),{visualState:"function"===typeof e?e(t.visualState):e})}))},setSearch:function(e){return a((function(t){return r(r({},t),{searchQuery:e})}))},registerActions:m,toggle:function(){return a((function(e){return r(r({},e),{visualState:[d.VisualState.animatingOut,d.VisualState.hidden].includes(e.visualState)?d.VisualState.animatingIn:d.VisualState.animatingOut})}))},setActiveIndex:function(e){return a((function(t){return r(r({},t),{activeIndex:"number"===typeof e?e:e(t.activeIndex)})}))}},options:t.current,subscribe:function(e,t){return h.subscribe(e,t)}}}),[p,h,m])};var f=function(){function e(e){this.subscribers=[],this.getState=e}return e.prototype.subscribe=function(e,t){var n=this,r=new p((function(){return e(n.getState())}),t);return this.subscribers.push(r),this.unsubscribe.bind(this,r)},e.prototype.unsubscribe=function(e){if(this.subscribers.length){var t=this.subscribers.indexOf(e);if(t>-1)return this.subscribers.splice(t,1)}},e.prototype.notify=function(){this.subscribers.forEach((function(e){return e.collect()}))},e}(),p=function(){function e(e,t){this.collector=e,this.onChange=t}return e.prototype.collect=function(){try{var e=this.collector();(0,s.deepEqual)(e,this.collected)||(this.collected=e,this.onChange&&this.onChange(this.collected))}catch(t){console.warn(t)}},e}()},33564:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}
1),a=this&&this.__importStar||function(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)&&i(t,e,n);return o(t,e),t},s=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.Priority=t.isModKey=t.shouldRejectKeystrokes=t.useThrottledValue=t.getScrollbarWidth=t.useIsomorphicLayout=t.noop=t.createAction=t.randomId=t.usePointerMovedSinceMount=t.useOuterClick=t.swallowEvent=void 0;var u=a(n(67294));function c(){return Math.random().toString(36).substring(2,9)}function l(){}t.swallowEvent=function(e){e.stopPropagation(),e.preventDefault()},t.useOuterClick=function(e,t){var n=u.useRef(t);n.current=t,u.useEffect((function(){function t(t){var r,i;(null===(r=e.current)||void 0===r?void 0:r.contains(t.target))||t.target===(null===(i=e.current)||void 0===i?void 0:i.getRootNode().host)||(t.preventDefault(),t.stopPropagation(),n.current())}return window.addEventListener("pointerdown",t,!0),function(){return window.removeEventListener("pointerdown",t,!0)}}),[e])},t.usePointerMovedSinceMount=function(){var e=u.useState(!1),t=e[0],n=e[1];return u.useEffect((function(){function e(){n(!0)}if(!t)return window.addEventListener("pointermove",e),function(){return window.removeEventListener("pointermove",e)}}),[t]),t},t.randomId=c,t.createAction=function(e){return r({id:c()},e)},t.noop=l,t.useIsomorphicLayout="undefined"===typeof window?l:u.useLayoutEffect,t.getScrollbarWidth=function(){var e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",document.body.appendChild(e);var t=document.createElement("div");e.appendChild(t);var n=e.offsetWidth-t.offsetWidth;return e.parentNode.removeChild(e),n},t.useThrottledValue=function(e,t){void 0===t&&(t=100);var n=u.useState(e),r=n[0],i=n[1],o=u.useRef(Date.now());return u.useEffect((function(){if(0!==t){var n=setTimeout((function(){i(e),o.current=Date.now()}),o.current-(Date.now()-t));return function(){clearTimeout(n)}}}),[t,e]),0===t?e:r},t.shouldRejectKeystrokes=function(e){var t,n,r=(void 0===e?{ignoreWhenFocused:[]}:e).ignoreWhenFocused,i=s(["input","textarea"],r,!0).map((function(e){return e.toLowerCase()})),o=document.activeElement;return o&&(-1!==i.indexOf(o.tagName.toLowerCase())||"textbox"===(null===(t=o.attributes.getNamedItem("role"))||void 0===t?void 0:t.value)||"true"===(null===(n=o.attributes.getNamedItem("contenteditable"))||void 0===n?void 0:n.value))};var d=!("undefined"===typeof window)&&"MacIntel"===window.navigator.platform;t.isModKey=function(e){return d?e.metaKey:e.ctrlKey},t.Priority={HIGH:1,NORMAL:0,LOW:-1}},38554:function(e,t,n){e=n.nmd(e);var r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Function]",s="[object Object]",u=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,l={};l["[object Float32Array]"]=l["[object Float64Array]"]=l["[object Int8Array]"]=l["[object Int16Array]"]=l["[object Int32Array]"]=l["[object Uint8Array]"]=l["[object Uint8ClampedArray]"]=l["[object Uint16Array]"]=l["[object Uint32Array]"]=!0,l[o]=l["[object Array]"]=l["[object ArrayBuffer]"]=l["[object Boolean]"]=l["[object DataView]"]=l["[object Date]"]=l["[object Error]"]=l[a]=l["[object Map]"]=l["[object Number]"]=l[s]=l["[object RegExp]"]=l["[object Set]"]=l["[object String]"]=l["[object WeakMap]"]=!1;var d="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,f="object"==typeof self&&self&&self.Object===Object&&self,p=d||f||Function("return this")(),h=t&&!t.nodeType&&t,m=h&&e&&!e.nodeType&&e,v=m&&m.exports===h,g=v&&d.process,y=function(){try{var e=m&&m.require&&m.require("util").types;return e||g&&g.binding&&g.binding("util")}catch(t){}}(),b=y&&y.isTypedArray;function x(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var _,w,S=Array.prototype,k=Function.prototype,E=Object.prototype,C=p["__core-js_shared__"],j=k.toString,T=E.hasOwnProperty,R=function(){var e=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||"");
vendor: 4,321 bytes, line 1
1return e?"Symbol(src)_1."+e:""}(),O=E.toString,P=j.call(Object),A=RegExp("^"+j.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),D=v?p.Buffer:void 0,I=p.Symbol,N=p.Uint8Array,M=D?D.allocUnsafe:void 0,F=(_=Object.getPrototypeOf,w=Object,function(e){return _(w(e))}),B=Object.create,L=E.propertyIsEnumerable,z=S.splice,U=I?I.toStringTag:void 0,H=function(){try{var e=he(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),V=D?D.isBuffer:void 0,W=Math.max,G=Date.now,q=he(p,"Map"),Z=he(Object,"create"),$=function(){function e(){}return function(t){if(!Ce(t))return{};if(B)return B(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Y(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function K(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function X(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Q(e){var t=this.__data__=new K(e);this.size=t.size}function J(e,t){var n=_e(e),r=!n&&xe(e),i=!n&&!r&&Se(e),o=!n&&!r&&!i&&Te(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=s.length;for(var c in e)!t&&!T.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||me(c,u))||s.push(c);return s}function ee(e,t,n){(void 0!==n&&!be(e[t],n)||void 0===n&&!(t in e))&&re(e,t,n)}function te(e,t,n){var r=e[t];T.call(e,t)&&be(r,n)&&(void 0!==n||t in e)||re(e,t,n)}function ne(e,t){for(var n=e.length;n--;)if(be(e[n][0],t))return n;return-1}function re(e,t,n){"__proto__"==t&&H?H(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}Y.prototype.clear=function(){this.__data__=Z?Z(null):{},this.size=0},Y.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Y.prototype.get=function(e){var t=this.__data__;if(Z){var n=t[e];return n===r?void 0:n}return T.call(t,e)?t[e]:void 0},Y.prototype.has=function(e){var t=this.__data__;return Z?void 0!==t[e]:T.call(t,e)},Y.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Z&&void 0===t?r:t,this},K.prototype.clear=function(){this.__data__=[],this.size=0},K.prototype.delete=function(e){var t=this.__data__,n=ne(t,e);return!(n<0)&&(n==t.length-1?t.pop():z.call(t,n,1),--this.size,!0)},K.prototype.get=function(e){var t=this.__data__,n=ne(t,e);return n<0?void 0:t[n][1]},K.prototype.has=function(e){return ne(this.__data__,e)>-1},K.prototype.set=function(e,t){var n=this.__data__,r=ne(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},X.prototype.clear=function(){this.size=0,this.__data__={hash:new Y,map:new(q||K),string:new Y}},X.prototype.delete=function(e){var t=pe(this,e).delete(e);return this.size-=t?1:0,t},X.prototype.get=function(e){return pe(this,e).get(e)},X.prototype.has=function(e){return pe(this,e).has(e)},X.prototype.set=function(e,t){var n=pe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Q.prototype.clear=function(){this.__data__=new K,this.size=0},Q.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Q.prototype.get=function(e){return this.__data__.get(e)},Q.prototype.has=function(e){return this.__data__.has(e)},Q.prototype.set=function(e,t){var n=this.__data__;if(n instanceof K){var r=n.__data__;if(!q||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new X(r)}return n.set(e,t),this.size=n.size,this};var ie,oe=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var s=o[ie?a:++r];if(!1===t(i[s],s,i))break}return e};function ae(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":U&&U in Object(e)?function(e){var t=T.call(e,U),n=e[U];try{e[U]=void 0;var r=!0}catch(o){}var i=O.call(e);r&&(t?e[U]=n:delete e[U]);return i}(e):function(e){return O.call(e)}(e)}function se(e){return je(e)&&ae(e)==o}function ue(e){return!(!Ce(e)||function(e){return!!R&&R in e}(e))&&(ke(e)?A:u).test(function(e){if(null!=e){try{return j.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}function ce(e){if(!Ce(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ve(e),n=[];
1for(var r in e)("constructor"!=r||!t&&T.call(e,r))&&n.push(r);return n}function le(e,t,n,r,i){e!==t&&oe(t,(function(o,a){if(i||(i=new Q),Ce(o))!function(e,t,n,r,i,o,a){var u=ge(e,n),c=ge(t,n),l=a.get(c);if(l)return void ee(e,n,l);var d=o?o(u,c,n+"",e,t,a):void 0,f=void 0===d;if(f){var p=_e(c),h=!p&&Se(c),m=!p&&!h&&Te(c);d=c,p||h||m?_e(u)?d=u:je(v=u)&&we(v)?d=function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(u):h?(f=!1,d=function(e,t){if(t)return e.slice();var n=e.length,r=M?M(n):new e.constructor(n);return e.copy(r),r}(c,!0)):m?(f=!1,d=function(e,t){var n=t?function(e){var t=new e.constructor(e.byteLength);return new N(t).set(new N(e)),t}(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(c,!0)):d=[]:function(e){if(!je(e)||ae(e)!=s)return!1;var t=F(e);if(null===t)return!0;var n=T.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&j.call(n)==P}(c)||xe(c)?(d=u,xe(u)?d=function(e){return function(e,t,n,r){var i=!n;n||(n={});var o=-1,a=t.length;for(;++o<a;){var s=t[o],u=r?r(n[s],e[s],s,n,e):void 0;void 0===u&&(u=e[s]),i?re(n,s,u):te(n,s,u)}return n}(e,Re(e))}(u):Ce(u)&&!ke(u)||(d=function(e){return"function"!=typeof e.constructor||ve(e)?{}:$(F(e))}(c))):f=!1}var v;f&&(a.set(c,d),i(d,c,r,o,a),a.delete(c));ee(e,n,d)}(e,t,a,n,le,r,i);else{var u=r?r(ge(e,a),o,a+"",e,t,i):void 0;void 0===u&&(u=o),ee(e,a,u)}}),Re)}function de(e,t){return ye(function(e,t,n){return t=W(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=W(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),x(e,this,s)}}(e,t,Ae),e+"")}var fe=H?function(e,t){return H(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Ae;function pe(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function he(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return ue(n)?n:void 0}function me(e,t){var n=typeof e;return!!(t=null==t?i:t)&&("number"==n||"symbol"!=n&&c.test(e))&&e>-1&&e%1==0&&e<t}function ve(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||E)}function ge(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var ye=function(e){var t=0,n=0;return function(){var r=G(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(fe);function be(e,t){return e===t||e!==e&&t!==t}var xe=se(function(){return arguments}())?se:function(e){return je(e)&&T.call(e,"callee")&&!L.call(e,"callee")},_e=Array.isArray;function we(e){return null!=e&&Ee(e.length)&&!ke(e)}var Se=V||function(){return!1};function ke(e){if(!Ce(e))return!1;var t=ae(e);return t==a||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ee(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function Ce(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function je(e){return null!=e&&"object"==typeof e}var Te=b?function(e){return function(t){return e(t)}}(b):function(e){return je(e)&&Ee(e.length)&&!!l[ae(e)]};function Re(e){return we(e)?J(e,!0):ce(e)}var Oe,Pe=(Oe=function(e,t,n,r){le(e,t,n,r)},de((function(e,t){var n=-1,r=t.length,i=r>1?t[r-1]:void 0,o=r>2?t[2]:void 0;for(i=Oe.length>3&&"function"==typeof i?(r--,i):void 0,o&&function(e,t,n){if(!Ce(n))return!1;var r=typeof t;return!!("number"==r?we(n)&&me(t,n.length):"string"==r&&t in n)&&be(n[t],e)}(t[0],t[1],o)&&(i=r<3?void 0:i,r=1),e=Object(e);++n<r;){var a=t[n];a&&Oe(e,a,n,i)}return e})));function Ae(e){return e}e.exports=Pe},96486:function(e,t,n){var r;e=n.nmd(e),function(){var i,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",u=16,c=32,l=64,d=128,f=256,p=1/0,h=9007199254740991,m=NaN,v=4294967295,g=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",u],["flip",512],["partial",c],["partialRight",l],["rearg",f]],y="[object Arguments]",b="[object Array]",x="[object Boolean]",_="[object Date]",w="[object Error]",S="[object Function]",k="[object GeneratorFunction]",E="[object Map]",C="[object Number]",j="[object Object]",T="[object Promise]",R="[object RegExp]",O="[object Set]",P="[object String]",A="[object Symbol]",D="[object WeakMap]",I="[object ArrayBuffer]",N="[object DataView]",M="[object Float32Array]",F="[object Float64Array
vendor: 22,419 bytes, line 1
1]",B="[object Int8Array]",L="[object Int16Array]",z="[object Int32Array]",U="[object Uint8Array]",H="[object Uint8ClampedArray]",V="[object Uint16Array]",W="[object Uint32Array]",G=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,Z=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,K=RegExp($.source),X=RegExp(Y.source),Q=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(ie.source),ae=/^\s+/,se=/\s/,ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fe=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ve=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,xe=/^(?:0|[1-9]\d*)$/,_e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,Se=/['\n\r\u2028\u2029\\]/g,ke="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ee="\\u2700-\\u27bf",Ce="a-z\\xdf-\\xf6\\xf8-\\xff",je="A-Z\\xc0-\\xd6\\xd8-\\xde",Te="\\ufe0e\\ufe0f",Re="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Oe="['\u2019]",Pe="[\\ud800-\\udfff]",Ae="["+Re+"]",De="["+ke+"]",Ie="\\d+",Ne="[\\u2700-\\u27bf]",Me="["+Ce+"]",Fe="[^\\ud800-\\udfff"+Re+Ie+Ee+Ce+je+"]",Be="\\ud83c[\\udffb-\\udfff]",Le="[^\\ud800-\\udfff]",ze="(?:\\ud83c[\\udde6-\\uddff]){2}",Ue="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+je+"]",Ve="(?:"+Me+"|"+Fe+")",We="(?:"+He+"|"+Fe+")",Ge="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",qe="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ze="(?:"+De+"|"+Be+")"+"?",$e="[\\ufe0e\\ufe0f]?",Ye=$e+Ze+("(?:\\u200d(?:"+[Le,ze,Ue].join("|")+")"+$e+Ze+")*"),Ke="(?:"+[Ne,ze,Ue].join("|")+")"+Ye,Xe="(?:"+[Le+De+"?",De,ze,Ue,Pe].join("|")+")",Qe=RegExp(Oe,"g"),Je=RegExp(De,"g"),et=RegExp(Be+"(?="+Be+")|"+Xe+Ye,"g"),tt=RegExp([He+"?"+Me+"+"+Ge+"(?="+[Ae,He,"$"].join("|")+")",We+"+"+qe+"(?="+[Ae,He+Ve,"$"].join("|")+")",He+"?"+Ve+"+"+Ge,He+"+"+qe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ie,Ke].join("|"),"g"),nt=RegExp("[\\u200d\\ud800-\\udfff"+ke+Te+"]"),rt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ot=-1,at={};at[M]=at[F]=at[B]=at[L]=at[z]=at[U]=at[H]=at[V]=at[W]=!0,at[y]=at[b]=at[I]=at[x]=at[N]=at[_]=at[w]=at[S]=at[E]=at[C]=at[j]=at[R]=at[O]=at[P]=at[D]=!1;var st={};st[y]=st[b]=st[I]=st[N]=st[x]=st[_]=st[M]=st[F]=st[B]=st[L]=st[z]=st[E]=st[C]=st[j]=st[R]=st[O]=st[P]=st[A]=st[U]=st[H]=st[V]=st[W]=!0,st[w]=st[S]=st[D]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,lt=parseInt,dt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ft="object"==typeof self&&self&&self.Object===Object&&self,pt=dt||ft||Function("return this")(),ht=t&&!t.nodeType&&t,mt=ht&&e&&!e.nodeType&&e,vt=mt&&mt.exports===ht,gt=vt&&dt.process,yt=function(){try{var e=mt&&mt.require&&mt.require("util").types;return e||gt&&gt.binding&&gt.binding("util")}catch(t){}}(),bt=yt&&yt.isArrayBuffer,xt=yt&&yt.isDate,_t=yt&&yt.isMap,wt=yt&&yt.isRegExp,St=yt&&yt.isSet,kt=yt&&yt.isTypedArray;function Et(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ct(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function jt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Tt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Rt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Ot(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function Pt(e,t){return!!(null==e?0:e.length)&&Ut(e,t,0)>-1}function At(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Dt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function It(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Nt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function Mt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Ft(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Bt=Gt("length");function Lt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function zt(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Ut(e,t,n){return t===t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):zt(e,Vt,n)}function Ht(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Vt(e){return e!==e}function Wt(e,t){var n=null==e?0:e.length;return n?$t(e,t)/n:m}function Gt(e){return function(t){return null==t?i:t[e]}}function qt(e){return function(t){return null==e?i:e[t]}}function Zt(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function $t(e,t){for(var n,r=-1,o=e.length;++r<o;){var a=t(e[r]);a!==i&&(n=n===i?a:n+a)}return n}function Yt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Kt(e){return e?e.slice(0,mn(e)+1).replace(ae,""):e}function Xt(e){return function(t){return e(t)}}function Qt(e,t){return Dt(t,(function(t){return e[t]}))}function Jt(e,t){return e.has(t)}function en(e,t){for(var n=-1,r=e.length;++n<r&&Ut(t,e[n],0)>-1;);return n}function tn(e,t){for(var n=e.length;n--&&Ut(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var rn=qt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),on=qt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function an(e){return"\\"+ut[e]}function sn(e){return nt.test(e)}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cn(e,t){return function(n){return e(t(n))}}function ln(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,o[i++]=n)}return o}function dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function fn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pn(e){return sn(e)?function(e){var t=et.lastIndex=0;for(;et.test(e);)++t;return t}(e):Bt(e)}function hn(e){return sn(e)?function(e){return e.match(et)||[]}(e):function(e){return e.split("")}(e)}function mn(e){for(var t=e.length;t--&&se.test(e.charAt(t)););return t}var vn=qt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var gn=function e(t){var n=(t=null==t?pt:gn.defaults(pt.Object(),t,gn.pick(pt,it))).Array,r=t.Date,se=t.Error,ke=t.Function,Ee=t.Math,Ce=t.Object,je=t.RegExp,Te=t.String,Re=t.TypeError,Oe=n.prototype,Pe=ke.prototype,Ae=Ce.prototype,De=t["__core-js_shared__"],Ie=Pe.toString,Ne=Ae.hasOwnProperty,Me=0,Fe=function(){var e=/[^.]+$/.exec(De&&De.keys&&De.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Be=Ae.toString,Le=Ie.call(Ce),ze=pt._,Ue=je("^"+Ie.call(Ne).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=vt?t.Buffer:i,Ve=t.Symbol,We=t.Uint8Array,Ge=He?He.allocUnsafe:i,qe=cn(Ce.getPrototypeOf,Ce),Ze=Ce.create,$e=Ae.propertyIsEnumerable,Ye=Oe.splice,Ke=Ve?Ve.isConcatSpreadable:i,Xe=Ve?Ve.iterator:i,et=Ve?Ve.toStringTag:i,nt=function(){try{var e=po(Ce,"defineProperty");return e({},"",{}),e}catch(t){}}(),ut=t.clearTimeout!==pt.clearTimeout&&t.clearTimeout,dt=r&&r.now!==pt.Date.now&&r.now,ft=t.setTimeout!==pt.setTimeout&&t.setTimeout,ht=Ee.ceil,mt=Ee.floor,gt=Ce.getOwnPropertySymbols,yt=He?He.isBuffer:i,Bt=t.isFinite,qt=Oe.join,yn=cn(Ce.keys,Ce),bn=Ee.max,xn=Ee.min,_n=r.now,wn=t.parseInt,Sn=Ee.random,kn=Oe.reverse,En=po(t,"DataView"),Cn=po(t,"Map"),jn=po(t,"Promise"),Tn=po(t,"Set"),Rn=po(t,"WeakMap"),On=po(Ce,"create"),Pn=Rn&&new Rn,An={},Dn=zo(En),In=zo(Cn),Nn=zo(jn),Mn=zo(Tn),Fn=zo(Rn),Bn=Ve?Ve.prototype:i,Ln=Bn?Bn.valueOf:i,zn=Bn?Bn.toString:i;function Un(e){if(rs(e)&&!qa(e)&&!(e instanceof Gn)){if(e instanceof Wn)return e;if(Ne.call(e,"__wrapped__"))return Uo(e)}return new Wn(e)}var Hn=function(){function e(){}return function(t){if(!ns(t))return{};if(Ze)return Ze(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Vn(){}function Wn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Gn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=v,this.__views__=[]}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Zn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $n(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new $n;++t<n;)this.add(e[t])}function Kn(e){var t=this.__data__=new Zn(e);this.size=t.size}function Xn(e,t){var n=qa(e),r=!n&&Ga(e),i=!n&&!r&&Ka(e),o=!n&&!r&&!i&&ds(e),a=n||r||i||o,s=a?Yt(e.length,Te):[],u=s.length;for(var c in e)!t&&!Ne.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||xo(c,u))||s.push(c);return s}function Qn(e){var t=e.length;return t?e[Yr(0,t-1)]:i}function Jn(e,t){return Fo(Oi(e),ur(t,0,e.length))}function er(e){return Fo(Oi(e))}function tr(e,t,n){(n!==i&&!Ha(e[t],n)||n===i&&!(t in e))&&ar(e,t,n)}function nr(e,t,n){var r=e[t];Ne.call(e,t)&&Ha(r,n)&&(n!==i||t in e)||ar(e,t,n)}function rr(e,t){for(var n=e.length;n--;)if(Ha(e[n][0],t))return n;return-1}function ir(e,t,n,r){return pr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function or(e,t){return e&&Pi(t,Ds(t),e)}function ar(e,t,n){"__proto__"==t&&nt?nt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function sr(e,t){for(var r=-1,o=t.length,a=n(o),s=null==e;++r<o;)a[r]=s?i:Ts(e,t[r]);return a}function ur(e,t,n){return e===e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function cr(e,t,n,r,o,a){var s,u=1&t,c=2&t,l=4&t;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!ns(e))return e;var d=qa(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ne.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!u)return Oi(e,s)}else{var f=vo(e),p=f==S||f==k;if(Ka(e))return ki(e,u);if(f==j||f==y||p&&!o){if(s=c||p?{}:yo(e),!u)return c?function(e,t){return Pi(e,mo(e),t)}(e,function(e,t){return e&&Pi(t,Is(t),e)}(s,e)):function(e,t){return Pi(e,ho(e),t)}(e,or(s,e))}else{if(!st[f])return o?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case I:return Ei(e);case x:case _:return new r(+e);case N:return function(e,t){var n=t?Ei(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case M:case F:case B:case L:case z:case U:case H:case V:case W:return Ci(e,n);case E:return new r;case C:case P:return new r(e);case R:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case O:return new r;case A:return i=e,Ln?Ce(Ln.call(i)):{}}var i}(e,f,u)}}a||(a=new Kn);var h=a.get(e);if(h)return h;a.set(e,s),us(e)?e.forEach((function(r){s.add(cr(r,t,n,r,e,a))})):is(e)&&e.forEach((function(r,i){s.set(i,cr(r,t,n,i,e,a))}));var m=d?i:(l?c?oo:io:c?Is:Ds)(e);return jt(m||e,(function(r,i){m&&(r=e[i=r]),nr(s,i,cr(r,t,n,i,e,a))})),s}function lr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ce(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function dr(e,t,n){if("function"!=typeof e)throw new Re(o);return Do((function(){e.apply(i,n)}),t)}function fr(e,t,n,r){var i=-1,o=Pt,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=Dt(t,Xt(n))),r?(o=At,a=!1):t.length>=200&&(o=Jt,a=!1,t=new Yn(t));e:for(;++i<s;){var l=e[i],d=null==n?l:n(l);if(l=r||0!==l?l:0,a&&d===d){for(var f=c;f--;)if(t[f]===d)continue e;u.push(l)}else o(t,d,r)||u.push(l)}return u}Un.templateSettings={escape:Q,evaluate:J,interpolate:ee,variable:"",imports:{_:Un}},Un.prototype=Vn.prototype,Un.prototype.constructor=Un,Wn.prototype=Hn(Vn.prototype),Wn.prototype.constructor=Wn,Gn.prototype=Hn(Vn.prototype),Gn.prototype.constructor=Gn,qn.prototype.clear=function(){this.__data__=On?On(null):{},this.size=0},qn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},qn.prototype.get=function(e){var t=this.__data__;if(On){var n=t[e];return n===a?i:n}return Ne.call(t,e)?t[e]:i},qn.prototype.has=function(e){var t=this.__data__;return On?t[e]!==i:Ne.call(t,e)},qn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=On&&t===i?a:t,this},Zn.prototype.clear=function(){this.__data__=[],this.size=0},Zn.prototype.delete=function(e){var t=this.__data__,n=rr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ye.call(t,n,1),--this.size,!0)},Zn.prototype.get=function(e){var t=this.__data__,n=rr(t,e);return n<0?i:t[n][1]},Zn.prototype.has=function(e){return rr(this.__data__,e)>-1},Zn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},$n.prototype.clear=function(){this.size=0,this.__data__={hash:new qn,map:new(Cn||Zn),string:new qn}},$n.prototype.delete=function(e){var t=lo(this,e).delete(e);return this.size-=t?1:0,t},$n.prototype.get=function(e){return lo(this,e).get(e)},$n.prototype.has=function(e){return lo(this,e).has(e)},$n.prototype.set=function(e,t){var n=lo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,a),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.clear=function(){this.__data__=new Zn,this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Kn.prototype.get=function(e){return this.__data__.get(e)},Kn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Zn){var r=n.__data__;if(!Cn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new $n(r)}return n.set(e,t),this.size=n.size,this};var pr=Ii(_r),hr=Ii(wr,!0);function mr(e,t){var n=!0;return pr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function vr(e,t,n){for(var r=-1,o=e.length;++r<o;){var a=e[r],s=t(a);if(null!=s&&(u===i?s===s&&!ls(s):n(s,u)))var u=s,c=a}return c}function gr(e,t){var n=[];return pr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function yr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=bo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?yr(s,t-1,n,r,i):It(i,s):r||(i[i.length]=s)}return i}var br=Ni(),xr=Ni(!0);function _r(e,t){return e&&br(e,t,Ds)}function wr(e,t){return e&&xr(e,t,Ds)}function Sr(e,t){return Ot(t,(function(t){return Ja(e[t])}))}function kr(e,t){for(var n=0,r=(t=xi(t,e)).length;null!=e&&n<r;)e=e[Lo(t[n++])];return n&&n==r?e:i}function Er(e,t,n){var r=t(e);return qa(e)?r:It(r,n(e))}function Cr(e){return null==e?e===i?"[object Undefined]":"[object Null]":et&&et in Ce(e)?function(e){var t=Ne.call(e,et),n=e[et];try{e[et]=i;var r=!0}catch(a){}var o=Be.call(e);r&&(t?e[et]=n:delete e[et]);return o}(e):function(e){return Be.call(e)}(e)}function jr(e,t){return e>t}function Tr(e,t){return null!=e&&Ne.call(e,t)}function Rr(e,t){return null!=e&&t in Ce(e)}function Or(e,t,r){for(var o=r?At:Pt,a=e[0].length,s=e.length,u=s,c=n(s),l=1/0,d=[];u--;){var f=e[u];u&&t&&(f=Dt(f,Xt(t))),l=xn(f.length,l),c[u]=!r&&(t||a>=120&&f.length>=120)?new Yn(u&&f):i}f=e[0];var p=-1,h=c[0];e:for(;++p<a&&d.length<l;){var m=f[p],v=t?t(m):m;if(m=r||0!==m?m:0,!(h?Jt(h,v):o(d,v,r))){for(u=s;--u;){var g=c[u];if(!(g?Jt(g,v):o(e[u],v,r)))continue e}h&&h.push(v),d.push(m)}}return d}function Pr(e,t,n){var r=null==(e=Ro(e,t=xi(t,e)))?e:e[Lo(Qo(t))];return null==r?i:Et(r,e,n)}function Ar(e){return rs(e)&&Cr(e)==y}function Dr(e,t,n,r,o){return e===t||(null==e||null==t||!rs(e)&&!rs(t)?e!==e&&t!==t:function(e,t,n,r,o,a){var s=qa(e),u=qa(t),c=s?b:vo(e),l=u?b:vo(t),d=(c=c==y?j:c)==j,f=(l=l==y?j:l)==j,p=c==l;if(p&&Ka(e)){if(!Ka(t))return!1;s=!0,d=!1}if(p&&!d)return a||(a=new Kn),s||ds(e)?no(e,t,n,r,o,a):function(e,t,n,r,i,o,a){switch(n){case N:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case I:return!(e.byteLength!=t.byteLength||!o(new We(e),new We(t)));case x:case _:case C:return Ha(+e,+t);case w:return e.name==t.name&&e.message==t.message;case R:case P:return e==t+"";case E:var s=un;case O:var u=1&r;if(s||(s=dn),e.size!=t.size&&!u)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var l=no(s(e),s(t),r,i,o,a);return a.delete(e),l;case A:if(Ln)return Ln.call(e)==Ln.call(t)}return!1}(e,t,c,n,r,o,a);if(!(1&n)){var h=d&&Ne.call(e,"__wrapped__"),m=f&&Ne.call(t,"__wrapped__");if(h||m){var v=h?e.value():e,g=m?t.value():t;return a||(a=new Kn),o(v,g,n,r,a)}}if(!p)return!1;return a||(a=new Kn),function(e,t,n,r,o,a){var s=1&n,u=io(e),c=u.length,l=io(t).length;if(c!=l&&!s)return!1;var d=c;for(;d--;){var f=u[d];if(!(s?f in t:Ne.call(t,f)))return!1}var p=a.get(e),h=a.get(t);if(p&&h)return p==t&&h==e;var m=!0;a.set(e,t),a.set(t,e);var v=s;for(;++d<c;){var g=e[f=u[d]],y=t[f];if(r)var b=s?r(y,g,f,t,e,a):r(g,y,f,e,t,a);if(!(b===i?g===y||o(g,y,n,r,a):b)){m=!1;break}v||(v="constructor"==f)}if(m&&!v){var x=e.constructor,_=t.constructor;x==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof _&&_ instanceof _||(m=!1)}return a.delete(e),a.delete(t),m}(e,t,n,r,o,a)}(e,t,n,r,Dr,o))}function Ir(e,t,n,r){var o=n.length,a=o,s=!r;if(null==e)return!a;for(e=Ce(e);o--;){var u=n[o];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<a;){var c=(u=n[o])[0],l=e[c],d=u[1];if(s&&u[2]){if(l===i&&!(c in e))return!1}else{var f=new Kn;if(r)var p=r(l,d,c,e,t,f);if(!(p===i?Dr(d,l,3,r,f):p))return!1}}return!0}function Nr(e){return!(!ns(e)||(t=e,Fe&&Fe in t))&&(Ja(e)?Ue:ye).test(zo(e));var t}function Mr(e){return"function"==typeof e?e:null==e?ou:"object"==typeof e?qa(e)?Hr(e[0],e[1]):Ur(e):hu(e)}function Fr(e){if(!Eo(e))return yn(e);var t=[];for(var n in Ce(e))Ne.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Br(e){if(!ns(e))return function(e){var t=[];if(null!=e)for(var n in Ce(e))t.push(n);return t}(e);var t=Eo(e),n=[];for(var r in e)("constructor"!=r||!t&&Ne.call(e,r))&&n.push(r);return n}function Lr(e,t){return e<t}function zr(e,t){var r=-1,i=$a(e)?n(e.length):[];return pr(e,(function(e,n,o){i[++r]=t(e,n,o)})),i}function Ur(e){var t=fo(e);return 1==t.length&&t[0][2]?jo(t[0][0],t[0][1]):function(n){return n===e||Ir(n,e,t)}}function Hr(e,t){return wo(e)&&Co(t)?jo(Lo(e),t):function(n){var r=Ts(n,e);return r===i&&r===t?Rs(n,e):Dr(t,r,3)}}function Vr(e,t,n,r,o){e!==t&&br(t,(function(a,s){if(o||(o=new Kn),ns(a))!function(e,t,n,r,o,a,s){var u=Po(e,n),c=Po(t,n),l=s.get(c);if(l)return void tr(e,n,l);var d=a?a(u,c,n+"",e,t,s):i,f=d===i;if(f){var p=qa(c),h=!p&&Ka(c),m=!p&&!h&&ds(c);d=c,p||h||m?qa(u)?d=u:Ya(u)?d=Oi(u):h?(f=!1,d=ki(c,!0)):m?(f=!1,d=Ci(c,!0)):d=[]:as(c)||Ga(c)?(d=u,Ga(u)?d=bs(u):ns(u)&&!Ja(u)||(d=yo(c))):f=!1}f&&(s.set(c,d),o(d,c,r,a,s),s.delete(c));tr(e,n,d)}(e,t,s,n,Vr,r,o);else{var u=r?r(Po(e,s),a,s+"",e,t,o):i;u===i&&(u=a),tr(e,s,u)}}),Is)}function Wr(e,t){var n=e.length;if(n)return xo(t+=t<0?n:0,n)?e[t]:i}function Gr(e,t,n){t=t.length?Dt(t,(function(e){return qa(e)?function(t){return kr(t,1===e.length?e[0]:e)}:e})):[ou];var r=-1;
vendor: 4,758 bytes, line 1
1t=Dt(t,Xt(co()));var i=zr(e,(function(e,n,i){var o=Dt(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(i,(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;for(;++r<a;){var u=ji(i[r],o[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function qr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=kr(e,a);n(s,a)&&ei(o,xi(a,e),s)}return o}function Zr(e,t,n,r){var i=r?Ht:Ut,o=-1,a=t.length,s=e;for(e===t&&(t=Oi(t)),n&&(s=Dt(e,Xt(n)));++o<a;)for(var u=0,c=t[o],l=n?n(c):c;(u=i(s,l,u,r))>-1;)s!==e&&Ye.call(s,u,1),Ye.call(e,u,1);return e}function $r(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;xo(i)?Ye.call(e,i,1):fi(e,i)}}return e}function Yr(e,t){return e+mt(Sn()*(t-e+1))}function Kr(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=mt(t/2))&&(e+=e)}while(t);return n}function Xr(e,t){return Io(To(e,t,ou),e+"")}function Qr(e){return Qn(Hs(e))}function Jr(e,t){var n=Hs(e);return Fo(n,ur(t,0,n.length))}function ei(e,t,n,r){if(!ns(e))return e;for(var o=-1,a=(t=xi(t,e)).length,s=a-1,u=e;null!=u&&++o<a;){var c=Lo(t[o]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=s){var d=u[c];(l=r?r(d,c,u):i)===i&&(l=ns(d)?d:xo(t[o+1])?[]:{})}nr(u,c,l),u=u[c]}return e}var ti=Pn?function(e,t){return Pn.set(e,t),e}:ou,ni=nt?function(e,t){return nt(e,"toString",{configurable:!0,enumerable:!1,value:nu(t),writable:!0})}:ou;function ri(e){return Fo(Hs(e))}function ii(e,t,r){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=n(o);++i<o;)a[i]=e[i+t];return a}function oi(e,t){var n;return pr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function ai(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t===t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!ls(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return si(e,t,ou,n)}function si(e,t,n,r){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!==t,u=null===t,c=ls(t),l=t===i;o<a;){var d=mt((o+a)/2),f=n(e[d]),p=f!==i,h=null===f,m=f===f,v=ls(f);if(s)var g=r||m;else g=l?m&&(r||p):u?m&&p&&(r||!h):c?m&&p&&!h&&(r||!v):!h&&!v&&(r?f<=t:f<t);g?o=d+1:a=d}return xn(a,4294967294)}function ui(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Ha(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function ci(e){return"number"==typeof e?e:ls(e)?m:+e}function li(e){if("string"==typeof e)return e;if(qa(e))return Dt(e,li)+"";if(ls(e))return zn?zn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function di(e,t,n){var r=-1,i=Pt,o=e.length,a=!0,s=[],u=s;if(n)a=!1,i=At;else if(o>=200){var c=t?null:Ki(e);if(c)return dn(c);a=!1,i=Jt,u=new Yn}else u=t?[]:s;e:for(;++r<o;){var l=e[r],d=t?t(l):l;if(l=n||0!==l?l:0,a&&d===d){for(var f=u.length;f--;)if(u[f]===d)continue e;t&&u.push(d),s.push(l)}else i(u,d,n)||(u!==s&&u.push(d),s.push(l))}return s}function fi(e,t){return null==(e=Ro(e,t=xi(t,e)))||delete e[Lo(Qo(t))]}function pi(e,t,n,r){return ei(e,t,n(kr(e,t)),r)}function hi(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ii(e,r?0:o,r?o+1:i):ii(e,r?o+1:0,r?i:o)}function mi(e,t){var n=e;return n instanceof Gn&&(n=n.value()),Nt(t,(function(e,t){return t.func.apply(t.thisArg,It([e],t.args))}),n)}function vi(e,t,r){var i=e.length;if(i<2)return i?di(e[0]):[];for(var o=-1,a=n(i);++o<i;)for(var s=e[o],u=-1;++u<i;)u!=o&&(a[o]=fr(a[o]||s,e[u],t,r));return di(yr(a,1),t,r)}function gi(e,t,n){for(var r=-1,o=e.length,a=t.length,s={};++r<o;){var u=r<a?t[r]:i;n(s,e[r],u)}return s}function yi(e){return Ya(e)?e:[]}function bi(e){return"function"==typeof e?e:ou}function xi(e,t){return qa(e)?e:wo(e,t)?[e]:Bo(xs(e))}var _i=Xr;function wi(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ii(e,t,n)}var Si=ut||function(e){return pt.clearTimeout(e)};function ki(e,t){if(t)return e.slice();var n=e.length,r=Ge?Ge(n):new e.constructor(n);return e.copy(r),r}function Ei(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function Ci(e,t){var n=t?Ei(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ji(e,t){if(e!==t){var n=e!==i,r=null===e,o=e===e,a=ls(e),s=t!==i,u=null===t,c=t===t,l=ls(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||r&&s&&c||!n&&c||!o)return 1;if(!r&&!a&&!l&&e<t||l&&n&&o&&!r&&!a||u&&n&&o||!s&&o||!c)return-1}return 0}function Ti(e,t,r,i){for(var o=-1,a=e.length,s=r.length,u=-1,c=t.length,l=bn(a-s,0),d=n(c+l),f=!i;++u<c;)d[u]=t[u];for(;++o<s;)(f||o<a)&&(d[r[o]]=e[o]);for(;l--;)d[u++]=e[o++];return d}function Ri(e,t,r,i){for(var o=-1,a=e.length,s=-1,u=r.length,c=-1,l=t.length,d=bn(a-u,0),f=n(d+l),p=!i;++o<d;
vendor: 2,933 bytes, line 1
1)f[o]=e[o];for(var h=o;++c<l;)f[h+c]=t[c];for(;++s<u;)(p||o<a)&&(f[h+r[s]]=e[o++]);return f}function Oi(e,t){var r=-1,i=e.length;for(t||(t=n(i));++r<i;)t[r]=e[r];return t}function Pi(e,t,n,r){var o=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var u=t[a],c=r?r(n[u],e[u],u,n,e):i;c===i&&(c=e[u]),o?ar(n,u,c):nr(n,u,c)}return n}function Ai(e,t){return function(n,r){var i=qa(n)?Ct:ir,o=t?t():{};return i(n,e,co(r,2),o)}}function Di(e){return Xr((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&_o(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=Ce(t);++r<o;){var u=n[r];u&&e(t,u,r,a)}return t}))}function Ii(e,t){return function(n,r){if(null==n)return n;if(!$a(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Ce(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Ni(e){return function(t,n,r){for(var i=-1,o=Ce(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}function Mi(e){return function(t){var n=sn(t=xs(t))?hn(t):i,r=n?n[0]:t.charAt(0),o=n?wi(n,1).join(""):t.slice(1);return r[e]()+o}}function Fi(e){return function(t){return Nt(Js(Gs(t).replace(Qe,"")),e,"")}}function Bi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Hn(e.prototype),r=e.apply(n,t);return ns(r)?r:n}}function Li(e){return function(t,n,r){var o=Ce(t);if(!$a(t)){var a=co(n,3);t=Ds(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,r);return s>-1?o[a?t[s]:s]:i}}function zi(e){return ro((function(t){var n=t.length,r=n,a=Wn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Re(o);if(a&&!u&&"wrapper"==so(s))var u=new Wn([],!0)}for(r=u?r:n;++r<n;){var c=so(s=t[r]),l="wrapper"==c?ao(s):i;u=l&&So(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[so(l[0])].apply(u,l[3]):1==s.length&&So(s)?u[c]():u.thru(s)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&qa(r))return u.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function Ui(e,t,r,o,a,s,u,c,l,f){var p=t&d,h=1&t,m=2&t,v=24&t,g=512&t,y=m?i:Bi(e);return function i(){for(var d=arguments.length,b=n(d),x=d;x--;)b[x]=arguments[x];if(v)var _=uo(i),w=nn(b,_);if(o&&(b=Ti(b,o,a,v)),s&&(b=Ri(b,s,u,v)),d-=w,v&&d<f){var S=ln(b,_);return $i(e,t,Ui,i.placeholder,r,b,S,c,l,f-d)}var k=h?r:this,E=m?k[e]:e;return d=b.length,c?b=Oo(b,c):g&&d>1&&b.reverse(),p&&l<d&&(b.length=l),this&&this!==pt&&this instanceof i&&(E=y||Bi(E)),E.apply(k,b)}}function Hi(e,t){return function(n,r){return function(e,t,n,r){return _r(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Vi(e,t){return function(n,r){var o;if(n===i&&r===i)return t;
vendor: 12,115 bytes, line 1
1if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=li(n),r=li(r)):(n=ci(n),r=ci(r)),o=e(n,r)}return o}}function Wi(e){return ro((function(t){return t=Dt(t,Xt(co())),Xr((function(n){var r=this;return e(t,(function(e){return Et(e,r,n)}))}))}))}function Gi(e,t){var n=(t=t===i?" ":li(t)).length;if(n<2)return n?Kr(t,e):t;var r=Kr(t,ht(e/pn(t)));return sn(t)?wi(hn(r),0,e).join(""):r.slice(0,e)}function qi(e){return function(t,r,o){return o&&"number"!=typeof o&&_o(t,r,o)&&(r=o=i),t=ms(t),r===i?(r=t,t=0):r=ms(r),function(e,t,r,i){for(var o=-1,a=bn(ht((t-e)/(r||1)),0),s=n(a);a--;)s[i?a:++o]=e,e+=r;return s}(t,r,o=o===i?t<r?1:-1:ms(o),e)}}function Zi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ys(t),n=ys(n)),e(t,n)}}function $i(e,t,n,r,o,a,s,u,d,f){var p=8&t;t|=p?c:l,4&(t&=~(p?l:c))||(t&=-4);var h=[e,t,o,p?a:i,p?s:i,p?i:a,p?i:s,u,d,f],m=n.apply(i,h);return So(e)&&Ao(m,h),m.placeholder=r,No(m,e,t)}function Yi(e){var t=Ee[e];return function(e,n){if(e=ys(e),(n=null==n?0:xn(vs(n),292))&&Bt(e)){var r=(xs(e)+"e").split("e");return+((r=(xs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ki=Tn&&1/dn(new Tn([,-0]))[1]==p?function(e){return new Tn(e)}:lu;function Xi(e){return function(t){var n=vo(t);return n==E?un(t):n==O?fn(t):function(e,t){return Dt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Qi(e,t,r,a,p,h,m,v){var g=2&t;if(!g&&"function"!=typeof e)throw new Re(o);var y=a?a.length:0;if(y||(t&=-97,a=p=i),m=m===i?m:bn(vs(m),0),v=v===i?v:vs(v),y-=p?p.length:0,t&l){var b=a,x=p;a=p=i}var _=g?i:ao(e),w=[e,t,r,a,p,b,x,h,m,v];if(_&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,a=r==d&&8==n||r==d&&n==f&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!a)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var u=t[3];if(u){var c=e[3];e[3]=c?Ti(c,u,t[4]):u,e[4]=c?ln(e[3],s):t[4]}(u=t[5])&&(c=e[5],e[5]=c?Ri(c,u,t[6]):u,e[6]=c?ln(e[5],s):t[6]);(u=t[7])&&(e[7]=u);r&d&&(e[8]=null==e[8]?t[8]:xn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(w,_),e=w[0],t=w[1],r=w[2],a=w[3],p=w[4],!(v=w[9]=w[9]===i?g?0:e.length:bn(w[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)S=8==t||t==u?function(e,t,r){var o=Bi(e);return function a(){for(var s=arguments.length,u=n(s),c=s,l=uo(a);c--;)u[c]=arguments[c];var d=s<3&&u[0]!==l&&u[s-1]!==l?[]:ln(u,l);return(s-=d.length)<r?$i(e,t,Ui,a.placeholder,i,u,d,i,i,r-s):Et(this&&this!==pt&&this instanceof a?o:e,this,u)}}(e,t,v):t!=c&&33!=t||p.length?Ui.apply(i,w):function(e,t,r,i){var o=1&t,a=Bi(e);return function t(){for(var s=-1,u=arguments.length,c=-1,l=i.length,d=n(l+u),f=this&&this!==pt&&this instanceof t?a:e;++c<l;)d[c]=i[c];for(;u--;)d[c++]=arguments[++s];return Et(f,o?r:this,d)}}(e,t,r,a);else var S=function(e,t,n){var r=1&t,i=Bi(e);return function t(){return(this&&this!==pt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,r);return No((_?ti:Ao)(S,w),e,t)}function Ji(e,t,n,r){return e===i||Ha(e,Ae[n])&&!Ne.call(r,n)?t:e}function eo(e,t,n,r,o,a){return ns(e)&&ns(t)&&(a.set(t,e),Vr(e,t,i,eo,a),a.delete(t)),e}function to(e){return as(e)?i:e}function no(e,t,n,r,o,a){var s=1&n,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var l=a.get(e),d=a.get(t);if(l&&d)return l==t&&d==e;var f=-1,p=!0,h=2&n?new Yn:i;for(a.set(e,t),a.set(t,e);++f<u;){var m=e[f],v=t[f];if(r)var g=s?r(v,m,f,t,e,a):r(m,v,f,e,t,a);if(g!==i){if(g)continue;p=!1;break}if(h){if(!Ft(t,(function(e,t){if(!Jt(h,t)&&(m===e||o(m,e,n,r,a)))return h.push(t)}))){p=!1;break}}else if(m!==v&&!o(m,v,n,r,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function ro(e){return Io(To(e,i,Zo),e+"")}function io(e){return Er(e,Ds,ho)}function oo(e){return Er(e,Is,mo)}var ao=Pn?function(e){return Pn.get(e)}:lu;function so(e){for(var t=e.name+"",n=An[t],r=Ne.call(An,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function uo(e){return(Ne.call(Un,"placeholder")?Un:e).placeholder}function co(){var e=Un.iteratee||au;return e=e===au?Mr:e,arguments.length?e(arguments[0],arguments[1]):e}function lo(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function fo(e){for(var t=Ds(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Co(i)]}return t}function po(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Nr(n)?n:i}var ho=gt?function(e){return null==e?[]:(e=Ce(e),Ot(gt(e),(function(t){return $e.call(e,t)})))}:gu,mo=gt?function(e){for(var t=[];e;)It(t,ho(e)),e=qe(e);return t}:gu,vo=Cr;function go(e,t,n){for(var r=-1,i=(t=xi(t,e)).length,o=!1;++r<i;){var a=Lo(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&ts(i)&&xo(a,i)&&(qa(e)||Ga(e))}function yo(e){return"function"!=typeof e.constructor||Eo(e)?{}:Hn(qe(e))}function bo(e){return qa(e)||Ga(e)||!!(Ke&&e&&e[Ke])}function xo(e,t){var n=typeof e;return!!(t=null==t?h:t)&&("number"==n||"symbol"!=n&&xe.test(e))&&e>-1&&e%1==0&&e<t}function _o(e,t,n){if(!ns(n))return!1;var r=typeof t;return!!("number"==r?$a(n)&&xo(t,n.length):"string"==r&&t in n)&&Ha(n[t],e)}function wo(e,t){if(qa(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ls(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Ce(t))}function So(e){var t=so(e),n=Un[t];if("function"!=typeof n||!(t in Gn.prototype))return!1;if(e===n)return!0;var r=ao(n);return!!r&&e===r[0]}(En&&vo(new En(new ArrayBuffer(1)))!=N||Cn&&vo(new Cn)!=E||jn&&vo(jn.resolve())!=T||Tn&&vo(new Tn)!=O||Rn&&vo(new Rn)!=D)&&(vo=function(e){var t=Cr(e),n=t==j?e.constructor:i,r=n?zo(n):"";if(r)switch(r){case Dn:return N;case In:return E;case Nn:return T;case Mn:return O;case Fn:return D}return t});var ko=De?Ja:yu;function Eo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ae)}function Co(e){return e===e&&!ns(e)}function jo(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==i||e in Ce(n)))}}function To(e,t,r){return t=bn(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=bn(i.length-t,0),s=n(a);++o<a;)s[o]=i[t+o];o=-1;for(var u=n(t+1);++o<t;)u[o]=i[o];return u[t]=r(s),Et(e,this,u)}}function Ro(e,t){return t.length<2?e:kr(e,ii(t,0,-1))}function Oo(e,t){for(var n=e.length,r=xn(t.length,n),o=Oi(e);r--;){var a=t[r];e[r]=xo(a,n)?o[a]:i}return e}function Po(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Ao=Mo(ti),Do=ft||function(e,t){return pt.setTimeout(e,t)},Io=Mo(ni);function No(e,t,n){var r=t+"";return Io(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ue,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return jt(g,(function(n){var r="_."+n[0];t&n[1]&&!Pt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(le):[]}(r),n)))}function Mo(e){var t=0,n=0;return function(){var r=_n(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Fo(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var a=Yr(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Bo=function(e){var t=Ma(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,n,r,i){t.push(r?i.replace(pe,"$1"):n||e)})),t}));function Lo(e){if("string"==typeof e||ls(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function zo(e){if(null!=e){try{return Ie.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Uo(e){if(e instanceof Gn)return e.clone();var t=new Wn(e.__wrapped__,e.__chain__);return t.__actions__=Oi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ho=Xr((function(e,t){return Ya(e)?fr(e,yr(t,1,Ya,!0)):[]})),Vo=Xr((function(e,t){var n=Qo(t);return Ya(n)&&(n=i),Ya(e)?fr(e,yr(t,1,Ya,!0),co(n,2)):[]})),Wo=Xr((function(e,t){var n=Qo(t);return Ya(n)&&(n=i),Ya(e)?fr(e,yr(t,1,Ya,!0),i,n):[]}));function Go(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:vs(n);return i<0&&(i=bn(r+i,0)),zt(e,co(t,3),i)}function qo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=vs(n),o=n<0?bn(r+o,0):xn(o,r-1)),zt(e,co(t,3),o,!0)}function Zo(e){return(null==e?0:e.length)?yr(e,1):[]}function $o(e){return e&&e.length?e[0]:i}var Yo=Xr((function(e){var t=Dt(e,yi);return t.length&&t[0]===e[0]?Or(t):[]})),Ko=Xr((function(e){var t=Qo(e),n=Dt(e,yi);return t===Qo(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Or(n,co(t,2)):[]})),Xo=Xr((function(e){var t=Qo(e),n=Dt(e,yi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Or(n,i,t):[]}));function Qo(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Jo=Xr(ea);function ea(e,t){return e&&e.length&&t&&t.length?Zr(e,t):e}var ta=ro((function(e,t){var n=null==e?0:e.length,r=sr(e,t);return $r(e,Dt(t,(function(e){return xo(e,n)?+e:e})).sort(ji)),r}));function na(e){return null==e?e:kn.call(e)}var ra=Xr((function(e){return di(yr(e,1,Ya,!0))})),ia=Xr((function(e){var t=Qo(e);return Ya(t)&&(t=i),di(yr(e,1,Ya,!0),co(t,2))})),oa=Xr((function(e){var t=Qo(e);return t="function"==typeof t?t:i,di(yr(e,1,Ya,!0),i,t)}));function aa(e){if(!e||!e.length)return[];var t=0;return e=Ot(e,(function(e){if(Ya(e))return t=bn(e.length,t),!0})),Yt(t,(function(t){return Dt(e,Gt(t))}))}function sa(e,t){if(!e||!e.length)return[];var n=aa(e);return null==t?n:Dt(n,(function(e){return Et(t,i,e)}))}var ua=Xr((function(e,t){return Ya(e)?fr(e,t):[]})),ca=Xr((function(e){return vi(Ot(e,Ya))})),la=Xr((function(e){var t=Qo(e);return Ya(t)&&(t=i),vi(Ot(e,Ya),co(t,2))})),da=Xr((function(e){var t=Qo(e);return t="function"==typeof t?t:i,vi(Ot(e,Ya),i,t)})),fa=Xr(aa);var pa=Xr((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,sa(e,n)}));function ha(e){var t=Un(e);return t.__chain__=!0,t}function ma(e,t){return t(e)}var va=ro((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return sr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Gn&&xo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ma,args:[o],thisArg:i}),new Wn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)}));var ga=Ai((function(e,t,n){Ne.call(e,n)?++e[n]:ar(e,n,1)}));var ya=Li(Go),ba=Li(qo);function xa(e,t){return(qa(e)?jt:pr)(e,co(t,3))}function _a(e,t){return(qa(e)?Tt:hr)(e,co(t,3))}var wa=Ai((function(e,t,n){Ne.call(e,n)?e[n].push(t):ar(e,n,[t])}));var Sa=Xr((function(e,t,r){var i=-1,o="function"==typeof t,a=$a(e)?n(e.length):[];return pr(e,(function(e){a[++i]=o?Et(t,e,r):Pr(e,t,r)})),a})),ka=Ai((function(e,t,n){ar(e,n,t)}));function Ea(e,t){return(qa(e)?Dt:zr)(e,co(t,3))}var Ca=Ai((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ja=Xr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&_o(e,t[0],t[1])?t=[]:n>2&&_o(t[0],t[1],t[2])&&(t=[t[0]]),Gr(e,yr(t,1),[])})),Ta=dt||function(){return pt.Date.now()};function Ra(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Qi(e,d,i,i,i,i,t)}function Oa(e,t){var n;if("function"!=typeof t)throw new Re(o);return e=vs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Pa=Xr((function(e,t,n){var r=1;if(n.length){var i=ln(n,uo(Pa));r|=c}return Qi(e,r,t,n,i)})),Aa=Xr((function(e,t,n){var r=3;if(n.length){var i=ln(n,uo(Aa));r|=c}return Qi(t,r,e,n,i)}));function Da(e,t,n){var r,a,s,u,c,l,d=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new Re(o);function m(t){var n=r,o=a;return r=a=i,d=t,u=e.apply(o,n)}function v(e){return d=e,c=Do(y,t),f?m(e):u}function g(e){var n=e-l;return l===i||n>=t||n<0||p&&e-d>=s}function y(){var e=Ta();if(g(e))return b(e);c=Do(y,function(e){var n=t-(e-l);return p?xn(n,s-(e-d)):n}(e))}function b(e){return c=i,h&&r?m(e):(r=a=i,u)}function x(){var e=Ta(),n=g(e);if(r=arguments,a=this,l=e,n){if(c===i)return v(l);if(p)return Si(c),c=Do(y,t),m(l)}return c===i&&(c=Do(y,t)),u}return t=ys(t)||0,ns(n)&&(f=!!n.leading,s=(p="maxWait"in n)?bn(ys(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),x.cancel=function(){c!==i&&Si(c),d=0,r=l=a=c=i},x.flush=function(){return c===i?u:b(Ta())},x}
vendor: 1,595 bytes, line 1
1var Ia=Xr((function(e,t){return dr(e,1,t)})),Na=Xr((function(e,t,n){return dr(e,ys(t)||0,n)}));function Ma(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Re(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Ma.Cache||$n),n}function Fa(e){if("function"!=typeof e)throw new Re(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ma.Cache=$n;var Ba=_i((function(e,t){var n=(t=1==t.length&&qa(t[0])?Dt(t[0],Xt(co())):Dt(yr(t,1),Xt(co()))).length;return Xr((function(r){for(var i=-1,o=xn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return Et(e,this,r)}))})),La=Xr((function(e,t){var n=ln(t,uo(La));return Qi(e,c,i,t,n)})),za=Xr((function(e,t){var n=ln(t,uo(za));return Qi(e,l,i,t,n)})),Ua=ro((function(e,t){return Qi(e,f,i,i,i,t)}));function Ha(e,t){return e===t||e!==e&&t!==t}var Va=Zi(jr),Wa=Zi((function(e,t){return e>=t})),Ga=Ar(function(){return arguments}())?Ar:function(e){return rs(e)&&Ne.call(e,"callee")&&!$e.call(e,"callee")},qa=n.isArray,Za=bt?Xt(bt):function(e){return rs(e)&&Cr(e)==I};function $a(e){return null!=e&&ts(e.length)&&!Ja(e)}function Ya(e){return rs(e)&&$a(e)}var Ka=yt||yu,Xa=xt?Xt(xt):function(e){return rs(e)&&Cr(e)==_};function Qa(e){if(!rs(e))return!1;var t=Cr(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!
vendor: 10,097 bytes, line 1
1as(e)}function Ja(e){if(!ns(e))return!1;var t=Cr(e);return t==S||t==k||"[object AsyncFunction]"==t||"[object Proxy]"==t}function es(e){return"number"==typeof e&&e==vs(e)}function ts(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function ns(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function rs(e){return null!=e&&"object"==typeof e}var is=_t?Xt(_t):function(e){return rs(e)&&vo(e)==E};function os(e){return"number"==typeof e||rs(e)&&Cr(e)==C}function as(e){if(!rs(e)||Cr(e)!=j)return!1;var t=qe(e);if(null===t)return!0;var n=Ne.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ie.call(n)==Le}var ss=wt?Xt(wt):function(e){return rs(e)&&Cr(e)==R};var us=St?Xt(St):function(e){return rs(e)&&vo(e)==O};function cs(e){return"string"==typeof e||!qa(e)&&rs(e)&&Cr(e)==P}function ls(e){return"symbol"==typeof e||rs(e)&&Cr(e)==A}var ds=kt?Xt(kt):function(e){return rs(e)&&ts(e.length)&&!!at[Cr(e)]};var fs=Zi(Lr),ps=Zi((function(e,t){return e<=t}));function hs(e){if(!e)return[];if($a(e))return cs(e)?hn(e):Oi(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=vo(e);return(t==E?un:t==O?dn:Hs)(e)}function ms(e){return e?(e=ys(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function vs(e){var t=ms(e),n=t%1;return t===t?n?t-n:t:0}function gs(e){return e?ur(vs(e),0,v):0}function ys(e){if("number"==typeof e)return e;if(ls(e))return m;if(ns(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ns(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Kt(e);var n=ge.test(e);return n||be.test(e)?lt(e.slice(2),n?2:8):ve.test(e)?m:+e}function bs(e){return Pi(e,Is(e))}function xs(e){return null==e?"":li(e)}var _s=Di((function(e,t){if(Eo(t)||$a(t))Pi(t,Ds(t),e);else for(var n in t)Ne.call(t,n)&&nr(e,n,t[n])})),ws=Di((function(e,t){Pi(t,Is(t),e)})),Ss=Di((function(e,t,n,r){Pi(t,Is(t),e,r)})),ks=Di((function(e,t,n,r){Pi(t,Ds(t),e,r)})),Es=ro(sr);var Cs=Xr((function(e,t){e=Ce(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&_o(t[0],t[1],o)&&(r=1);++n<r;)for(var a=t[n],s=Is(a),u=-1,c=s.length;++u<c;){var l=s[u],d=e[l];(d===i||Ha(d,Ae[l])&&!Ne.call(e,l))&&(e[l]=a[l])}return e})),js=Xr((function(e){return e.push(i,eo),Et(Ms,i,e)}));function Ts(e,t,n){var r=null==e?i:kr(e,t);return r===i?n:r}function Rs(e,t){return null!=e&&go(e,t,Rr)}var Os=Hi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Be.call(t)),e[t]=n}),nu(ou)),Ps=Hi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Be.call(t)),Ne.call(e,t)?e[t].push(n):e[t]=[n]}),co),As=Xr(Pr);function Ds(e){return $a(e)?Xn(e):Fr(e)}function Is(e){return $a(e)?Xn(e,!0):Br(e)}var Ns=Di((function(e,t,n){Vr(e,t,n)})),Ms=Di((function(e,t,n,r){Vr(e,t,n,r)})),Fs=ro((function(e,t){var n={};if(null==e)return n;var r=!1;t=Dt(t,(function(t){return t=xi(t,e),r||(r=t.length>1),t})),Pi(e,oo(e),n),r&&(n=cr(n,7,to));for(var i=t.length;i--;)fi(n,t[i]);return n}));var Bs=ro((function(e,t){return null==e?{}:function(e,t){return qr(e,t,(function(t,n){return Rs(e,n)}))}(e,t)}));function Ls(e,t){if(null==e)return{};var n=Dt(oo(e),(function(e){return[e]}));return t=co(t),qr(e,n,(function(e,n){return t(e,n[0])}))}var zs=Xi(Ds),Us=Xi(Is);function Hs(e){return null==e?[]:Qt(e,Ds(e))}var Vs=Fi((function(e,t,n){return t=t.toLowerCase(),e+(n?Ws(t):t)}));function Ws(e){return Qs(xs(e).toLowerCase())}function Gs(e){return(e=xs(e))&&e.replace(_e,rn).replace(Je,"")}var qs=Fi((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Zs=Fi((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),$s=Mi("toLowerCase");var Ys=Fi((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ks=Fi((function(e,t,n){return e+(n?" ":"")+Qs(t)}));var Xs=Fi((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Qs=Mi("toUpperCase");function Js(e,t,n){return e=xs(e),(t=n?i:t)===i?function(e){return rt.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var eu=Xr((function(e,t){try{return Et(e,i,t)}catch(n){return Qa(n)?n:new se(n)}})),tu=ro((function(e,t){return jt(t,(function(t){t=Lo(t),ar(e,t,Pa(e[t],e))})),e}));function nu(e){return function(){return e}}var ru=zi(),iu=zi(!0);function ou(e){return e}function au(e){return Mr("function"==typeof e?e:cr(e,1))}var su=Xr((function(e,t){return function(n){return Pr(n,e,t)}})),uu=Xr((function(e,t){return function(n){return Pr(e,n,t)}}));function cu(e,t,n){var r=Ds(t),i=Sr(t,r);null!=n||ns(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Sr(t,Ds(t)));var o=!(ns(n)&&"chain"in n)||!!n.chain,a=Ja(e);return jt(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=Oi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,It([this.value()],arguments))})})),e}function lu(){}var du=Wi(Dt),fu=Wi(Rt),pu=Wi(Ft);function hu(e){return wo(e)?Gt(Lo(e)):function(e){return function(t){return kr(t,e)}}(e)}var mu=qi(),vu=qi(!0);function gu(){return[]}function yu(){return!1}var bu=Vi((function(e,t){return e+t}),0),xu=Yi("ceil"),_u=Vi((function(e,t){return e/t}),1),wu=Yi("floor");var Su=Vi((function(e,t){return e*t}),1),ku=Yi("round"),Eu=Vi((function(e,t){return e-t}),0);return Un.after=function(e,t){if("function"!=typeof t)throw new Re(o);return e=vs(e),function(){if(--e<1)return t.apply(this,arguments)}},Un.ary=Ra,Un.assign=_s,Un.assignIn=ws,Un.assignInWith=Ss,Un.assignWith=ks,Un.at=Es,Un.before=Oa,Un.bind=Pa,Un.bindAll=tu,Un.bindKey=Aa,Un.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qa(e)?e:[e]},Un.chain=ha,Un.chunk=function(e,t,r){t=(r?_o(e,t,r):t===i)?1:bn(vs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,u=n(ht(o/t));a<o;)u[s++]=ii(e,a,a+=t);return u},Un.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Un.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],i=e;i--;)t[i-1]=arguments[i];return It(qa(r)?Oi(r):[r],yr(t,1))},Un.cond=function(e){var t=null==e?0:e.length,n=co();return e=t?Dt(e,(function(e){if("function"!=typeof e[1])throw new Re(o);return[n(e[0]),e[1]]})):[],Xr((function(n){for(var r=-1;++r<t;){var i=e[r];if(Et(i[0],this,n))return Et(i[1],this,n)}}))},Un.conforms=function(e){return function(e){var t=Ds(e);return function(n){return lr(n,e,t)}}(cr(e,1))},Un.constant=nu,Un.countBy=ga,Un.create=function(e,t){var n=Hn(e);return null==t?n:or(n,t)},Un.curry=function e(t,n,r){var o=Qi(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Un.curryRight=function e(t,n,r){var o=Qi(t,u,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Un.debounce=Da,Un.defaults=Cs,Un.defaultsDeep=js,Un.defer=Ia,Un.delay=Na,Un.difference=Ho,Un.differenceBy=Vo,Un.differenceWith=Wo,Un.drop=function(e,t,n){var r=null==e?0:e.length;return r?ii(e,(t=n||t===i?1:vs(t))<0?0:t,r):[]},Un.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ii(e,0,(t=r-(t=n||t===i?1:vs(t)))<0?0:t):[]},Un.dropRightWhile=function(e,t){return e&&e.length?hi(e,co(t,3),!0,!0):[]},Un.dropWhile=function(e,t){return e&&e.length?hi(e,co(t,3),!0):[]},Un.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&_o(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=vs(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:vs(r))<0&&(r+=o),r=n>r?0:gs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Un.filter=function(e,t){return(qa(e)?Ot:gr)(e,co(t,3))},Un.flatMap=function(e,t){return yr(Ea(e,t),1)},Un.flatMapDeep=function(e,t){return yr(Ea(e,t),p)},Un.flatMapDepth=function(e,t,n){return n=n===i?1:vs(n),yr(Ea(e,t),n)},Un.flatten=Zo,Un.flattenDeep=function(e){return(null==e?0:e.length)?yr(e,p):[]},Un.flattenDepth=function(e,t){return(null==e?0:e.length)?yr(e,t=t===i?1:vs(t)):[]},Un.flip=function(e){return Qi(e,512)},Un.flow=ru,Un.flowRight=iu,Un.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Un.functions=function(e){return null==e?[]:Sr(e,Ds(e))},Un.functionsIn=function(e){return null==e?[]:Sr(e,Is(e))},Un.groupBy=wa,Un.initial=function(e){return(null==e?0:e.length)?ii(e,0,-1):[]},Un.intersection=Yo,Un.intersectionBy=Ko,Un.intersectionWith=Xo,Un.invert=Os,Un.invertBy=Ps,Un.invokeMap=Sa,Un.iteratee=au,Un.keyBy=ka,Un.keys=Ds,Un.keysIn=Is,Un.map=Ea,Un.mapKeys=function(e,t){var n={};return t=co(t,3),_r(e,(function(e,r,i){ar(n,t(e,r,i),e)})),n},Un.mapValues=function(e,t){var n={};return t=co(t,3),_r(e,(function(e,r,i){ar(n,r,t(e,r,i))})),n},Un.matches=function(e){return Ur(cr(e,1))},Un.matchesProperty=function(e,t){return Hr(e,cr(t,1))},Un.memoize=Ma,Un.merge=Ns,Un.mergeWith=Ms,Un.method=su,Un.methodOf=uu,Un.mixin=cu,Un.negate=Fa,Un.nthArg=function(e){return e=vs(e),Xr((function(t){return Wr(t,e)}))},Un.omit=Fs,Un.omitBy=function(e,t){return Ls(e,Fa(co(t)))},Un.once=function(e){return Oa(2,e)},Un.orderBy=function(e,t,n,r){return null==e?[]:(qa(t)||(t=null==t?[]:[t]),qa(n=r?i:n)||(n=null==n?[]:[n]),Gr(e,t,n))},Un.over=du,Un.overArgs=Ba,Un.overEvery=fu,Un.overSome=pu,Un.partial=La,Un.partialRight=za,Un.partition=Ca,Un.pick=Bs,Un.pickBy=Ls,Un.property=hu,Un.propertyOf=function(e){return function(t){return null==e?i:kr(e,t)}},Un.pull=Jo,Un.pullAll=ea,Un.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Zr(e,t,co(n,2)):e},Un.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Zr(e,t,i,n):e},Un.pullAt=ta,Un.range=mu,Un.rangeRight=vu,Un.rearg=Ua,Un.reject=function(e,t){return(qa(e)?Ot:gr)(e,Fa(co(t,3)))},Un.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=co(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return $r(e,i),n},Un.rest=function(e,t){if("function"!=typeof e)throw new Re(o);return Xr(e,t=t===i?t:vs(t))},Un.reverse=na,Un.sampleSize=function(e,t,n){return t=(n?_o(e,t,n):t===i)?1:vs(t),(qa(e)?Jn:Jr)(e,t)},Un.set=function(e,t,n){return null==e?e:ei(e,t,n)},Un.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:ei(e,t,n,r)},Un.shuffle=function(e){return(qa(e)?er:ri)(e)}
vendor: 4,691 bytes, line 1
1,Un.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&_o(e,t,n)?(t=0,n=r):(t=null==t?0:vs(t),n=n===i?r:vs(n)),ii(e,t,n)):[]},Un.sortBy=ja,Un.sortedUniq=function(e){return e&&e.length?ui(e):[]},Un.sortedUniqBy=function(e,t){return e&&e.length?ui(e,co(t,2)):[]},Un.split=function(e,t,n){return n&&"number"!=typeof n&&_o(e,t,n)&&(t=n=i),(n=n===i?v:n>>>0)?(e=xs(e))&&("string"==typeof t||null!=t&&!ss(t))&&!(t=li(t))&&sn(e)?wi(hn(e),0,n):e.split(t,n):[]},Un.spread=function(e,t){if("function"!=typeof e)throw new Re(o);return t=null==t?0:bn(vs(t),0),Xr((function(n){var r=n[t],i=wi(n,0,t);return r&&It(i,r),Et(e,this,i)}))},Un.tail=function(e){var t=null==e?0:e.length;return t?ii(e,1,t):[]},Un.take=function(e,t,n){return e&&e.length?ii(e,0,(t=n||t===i?1:vs(t))<0?0:t):[]},Un.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ii(e,(t=r-(t=n||t===i?1:vs(t)))<0?0:t,r):[]},Un.takeRightWhile=function(e,t){return e&&e.length?hi(e,co(t,3),!1,!0):[]},Un.takeWhile=function(e,t){return e&&e.length?hi(e,co(t,3)):[]},Un.tap=function(e,t){return t(e),e},Un.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Re(o);return ns(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Da(e,t,{leading:r,maxWait:t,trailing:i})},Un.thru=ma,Un.toArray=hs,Un.toPairs=zs,Un.toPairsIn=Us,Un.toPath=function(e){return qa(e)?Dt(e,Lo):ls(e)?[e]:Oi(Bo(xs(e)))},Un.toPlainObject=bs,Un.transform=function(e,t,n){var r=qa(e),i=r||Ka(e)||ds(e);if(t=co(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:ns(e)&&Ja(o)?Hn(qe(e)):{}}return(i?jt:_r)(e,(function(e,r,i){return t(n,e,r,i)})),n},Un.unary=function(e){return Ra(e,1)},Un.union=ra,Un.unionBy=ia,Un.unionWith=oa,Un.uniq=function(e){return e&&e.length?di(e):[]},Un.uniqBy=function(e,t){return e&&e.length?di(e,co(t,2)):[]},Un.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?di(e,i,t):[]},Un.unset=function(e,t){return null==e||fi(e,t)},Un.unzip=aa,Un.unzipWith=sa,Un.update=function(e,t,n){return null==e?e:pi(e,t,bi(n))},Un.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:pi(e,t,bi(n),r)},Un.values=Hs,Un.valuesIn=function(e){return null==e?[]:Qt(e,Is(e))},Un.without=ua,Un.words=Js,Un.wrap=function(e,t){return La(bi(t),e)},Un.xor=ca,Un.xorBy=la,Un.xorWith=da,Un.zip=fa,Un.zipObject=function(e,t){return gi(e||[],t||[],nr)},Un.zipObjectDeep=function(e,t){return gi(e||[],t||[],ei)},Un.zipWith=pa,Un.entries=zs,Un.entriesIn=Us,Un.extend=ws,Un.extendWith=Ss,cu(Un,Un),Un.add=bu,Un.attempt=eu,Un.camelCase=Vs,Un.capitalize=Ws,Un.ceil=xu,Un.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=ys(n))===n?n:0),t!==i&&(t=(t=ys(t))===t?t:0),ur(ys(e),t,n)},Un.clone=function(e){return cr(e,4)},Un.cloneDeep=function(e){return cr(e,5)},Un.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:i)},Un.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:i)},Un.conformsTo=function(e,t){return null==t||lr(e,t,Ds(t))},Un.deburr=Gs,Un.defaultTo=function(e,t){return null==e||e!==e?t:e},Un.divide=_u,Un.endsWith=function(e,t,n){e=xs(e),t=li(t);var r=e.length,o=n=n===i?r:ur(vs(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Un.eq=Ha,Un.escape=function(e){return(e=xs(e))&&X.test(e)?e.replace(Y,on):e},Un.escapeRegExp=function(e){return(e=xs(e))&&oe.test(e)?e.replace(ie,"\\$&"):e},Un.every=function(e,t,n){var r=qa(e)?Rt:mr;return n&&_o(e,t,n)&&(t=i),r(e,co(t,3))},Un.find=ya,Un.findIndex=Go,Un.findKey=function(e,t){return Lt(e,co(t,3),_r)},Un.findLast=ba,Un.findLastIndex=qo,Un.findLastKey=function(e,t){return Lt(e,co(t,3),wr)},Un.floor=wu,Un.forEach=xa,Un.forEachRight=_a,Un.forIn=function(e,t){return null==e?e:br(e,co(t,3),Is)},Un.forInRight=function(e,t){return null==e?e:xr(e,co(t,3),Is)},Un.forOwn=function(e,t){return e&&_r(e,co(t,3))},Un.forOwnRight=function(e,t){return e&&wr(e,co(t,3))},Un.get=Ts,Un.gt=Va,Un.gte=Wa,Un.has=function(e,t){return null!=e&&go(e,t,Tr)},Un.hasIn=Rs,Un.head=$o,Un.identity=ou,Un.includes=function(e,t,n,r){e=$a(e)?e:Hs(e),n=n&&!r?vs(n):0;var i=e.length;return n<0&&(n=bn(i+n,0)),cs(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Ut(e,t,n)>-1},Un.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:vs(n);return i<0&&(i=bn(r+i,0)),Ut(e,t,i)},Un.inRange=function(e,t,n){return t=ms(t),n===i?(n=t,t=0):n=ms(n),function(e,t,n){return e>=xn(t,n)&&e<bn(t,n)}(e=ys(e),t,n)},Un.invoke=As,Un.isArguments=Ga,Un.isArray=qa,Un.isArrayBuffer=Za,Un.isArrayLike=$a,Un.isArrayLikeObject=Ya,Un.isBoolean=function(e){return!0===e||!1===e||rs(e)&&Cr(e)==x},Un.isBuffer=Ka,Un.isDate=Xa,Un.isElement=function(e){return rs(e)&&1===e.nodeType&&!as(e)},Un.isEmpty=function(e){if(null==e)return!0;
vendor: 5,501 bytes, line 1
1if($a(e)&&(qa(e)||"string"==typeof e||"function"==typeof e.splice||Ka(e)||ds(e)||Ga(e)))return!e.length;var t=vo(e);if(t==E||t==O)return!e.size;if(Eo(e))return!Fr(e).length;for(var n in e)if(Ne.call(e,n))return!1;return!0},Un.isEqual=function(e,t){return Dr(e,t)},Un.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Dr(e,t,i,n):!!r},Un.isError=Qa,Un.isFinite=function(e){return"number"==typeof e&&Bt(e)},Un.isFunction=Ja,Un.isInteger=es,Un.isLength=ts,Un.isMap=is,Un.isMatch=function(e,t){return e===t||Ir(e,t,fo(t))},Un.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Ir(e,t,fo(t),n)},Un.isNaN=function(e){return os(e)&&e!=+e},Un.isNative=function(e){if(ko(e))throw new se("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Nr(e)},Un.isNil=function(e){return null==e},Un.isNull=function(e){return null===e},Un.isNumber=os,Un.isObject=ns,Un.isObjectLike=rs,Un.isPlainObject=as,Un.isRegExp=ss,Un.isSafeInteger=function(e){return es(e)&&e>=-9007199254740991&&e<=h},Un.isSet=us,Un.isString=cs,Un.isSymbol=ls,Un.isTypedArray=ds,Un.isUndefined=function(e){return e===i},Un.isWeakMap=function(e){return rs(e)&&vo(e)==D},Un.isWeakSet=function(e){return rs(e)&&"[object WeakSet]"==Cr(e)},Un.join=function(e,t){return null==e?"":qt.call(e,t)},Un.kebabCase=qs,Un.last=Qo,Un.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=vs(n))<0?bn(r+o,0):xn(o,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):zt(e,Vt,o,!0)},Un.lowerCase=Zs,Un.lowerFirst=$s,Un.lt=fs,Un.lte=ps,Un.max=function(e){return e&&e.length?vr(e,ou,jr):i},Un.maxBy=function(e,t){return e&&e.length?vr(e,co(t,2),jr):i},Un.mean=function(e){return Wt(e,ou)},Un.meanBy=function(e,t){return Wt(e,co(t,2))},Un.min=function(e){return e&&e.length?vr(e,ou,Lr):i},Un.minBy=function(e,t){return e&&e.length?vr(e,co(t,2),Lr):i},Un.stubArray=gu,Un.stubFalse=yu,Un.stubObject=function(){return{}},Un.stubString=function(){return""},Un.stubTrue=function(){return!0},Un.multiply=Su,Un.nth=function(e,t){return e&&e.length?Wr(e,vs(t)):i},Un.noConflict=function(){return pt._===this&&(pt._=ze),this},Un.noop=lu,Un.now=Ta,Un.pad=function(e,t,n){e=xs(e);var r=(t=vs(t))?pn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Gi(mt(i),n)+e+Gi(ht(i),n)},Un.padEnd=function(e,t,n){e=xs(e);var r=(t=vs(t))?pn(e):0;return t&&r<t?e+Gi(t-r,n):e},Un.padStart=function(e,t,n){e=xs(e);var r=(t=vs(t))?pn(e):0;return t&&r<t?Gi(t-r,n)+e:e},Un.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(xs(e).replace(ae,""),t||0)},Un.random=function(e,t,n){if(n&&"boolean"!=typeof n&&_o(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=ms(e),t===i?(t=e,e=0):t=ms(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Sn();return xn(e+o*(t-e+ct("1e-"+((o+"").length-1))),t)}return Yr(e,t)},Un.reduce=function(e,t,n){var r=qa(e)?Nt:Zt,i=arguments.length<3;return r(e,co(t,4),n,i,pr)},Un.reduceRight=function(e,t,n){var r=qa(e)?Mt:Zt,i=arguments.length<3;return r(e,co(t,4),n,i,hr)},Un.repeat=function(e,t,n){return t=(n?_o(e,t,n):t===i)?1:vs(t),Kr(xs(e),t)},Un.replace=function(){var e=arguments,t=xs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Un.result=function(e,t,n){var r=-1,o=(t=xi(t,e)).length;for(o||(o=1,e=i);++r<o;){var a=null==e?i:e[Lo(t[r])];a===i&&(r=o,a=n),e=Ja(a)?a.call(e):a}return e},Un.round=ku,Un.runInContext=e,Un.sample=function(e){return(qa(e)?Qn:Qr)(e)},Un.size=function(e){if(null==e)return 0;if($a(e))return cs(e)?pn(e):e.length;var t=vo(e);return t==E||t==O?e.size:Fr(e).length},Un.snakeCase=Ys,Un.some=function(e,t,n){var r=qa(e)?Ft:oi;return n&&_o(e,t,n)&&(t=i),r(e,co(t,3))},Un.sortedIndex=function(e,t){return ai(e,t)},Un.sortedIndexBy=function(e,t,n){return si(e,t,co(n,2))},Un.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ai(e,t);if(r<n&&Ha(e[r],t))return r}return-1},Un.sortedLastIndex=function(e,t){return ai(e,t,!0)},Un.sortedLastIndexBy=function(e,t,n){return si(e,t,co(n,2),!0)},Un.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=ai(e,t,!0)-1;if(Ha(e[n],t))return n}return-1},Un.startCase=Ks,Un.startsWith=function(e,t,n){return e=xs(e),n=null==n?0:ur(vs(n),0,e.length),t=li(t),e.slice(n,n+t.length)==t},Un.subtract=Eu,Un.sum=function(e){return e&&e.length?$t(e,ou):0},Un.sumBy=function(e,t){return e&&e.length?$t(e,co(t,2)):0},Un.template=function(e,t,n){var r=Un.templateSettings;n&&_o(e,t,n)&&(t=i),e=xs(e),t=Ss({},t,r,Ji);var o,a,s=Ss({},t.imports,r.imports,Ji),u=Ds(s),c=Qt(s,u),l=0,d=t.interpolate||we,f="__p += '",p=je((t.escape||we).source+"|"+d.source+"|"+(d===ee?he:we).source+"|"+(t.evaluate||we).source+"|$","g"),h="//# sourceURL="+(Ne.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ot+"]")+"\n";e.replace(p,(function(t,n,r,i,s,u){return r||(r=i),f+=e.slice(l,u).replace(Se,an),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),s&&(a=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+t.length,t})),f+="';\n";var m=Ne.call(t,"variable")&&t.variable;if(m){if(fe.test(m))throw new se("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(G,""):f).replace(q,"$1").replace(Z,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";
1\n")+f+"return __p\n}";var v=eu((function(){return ke(u,h+"return "+f).apply(i,c)}));if(v.source=f,Qa(v))throw v;return v},Un.times=function(e,t){if((e=vs(e))<1||e>h)return[];var n=v,r=xn(e,v);t=co(t),e-=v;for(var i=Yt(r,t);++n<e;)t(n);return i},Un.toFinite=ms,Un.toInteger=vs,Un.toLength=gs,Un.toLower=function(e){return xs(e).toLowerCase()},Un.toNumber=ys,Un.toSafeInteger=function(e){return e?ur(vs(e),-9007199254740991,h):0===e?e:0},Un.toString=xs,Un.toUpper=function(e){return xs(e).toUpperCase()},Un.trim=function(e,t,n){if((e=xs(e))&&(n||t===i))return Kt(e);if(!e||!(t=li(t)))return e;var r=hn(e),o=hn(t);return wi(r,en(r,o),tn(r,o)+1).join("")},Un.trimEnd=function(e,t,n){if((e=xs(e))&&(n||t===i))return e.slice(0,mn(e)+1);if(!e||!(t=li(t)))return e;var r=hn(e);return wi(r,0,tn(r,hn(t))+1).join("")},Un.trimStart=function(e,t,n){if((e=xs(e))&&(n||t===i))return e.replace(ae,"");if(!e||!(t=li(t)))return e;var r=hn(e);return wi(r,en(r,hn(t))).join("")},Un.truncate=function(e,t){var n=30,r="...";if(ns(t)){var o="separator"in t?t.separator:o;n="length"in t?vs(t.length):n,r="omission"in t?li(t.omission):r}var a=(e=xs(e)).length;if(sn(e)){var s=hn(e);a=s.length}if(n>=a)return e;var u=n-pn(r);if(u<1)return r;var c=s?wi(s,0,u).join(""):e.slice(0,u);if(o===i)return c+r;if(s&&(u+=c.length-u),ss(o)){if(e.slice(u).search(o)){var l,d=c;for(o.global||(o=je(o.source,xs(me.exec(o))+"g")),o.lastIndex=0;l=o.exec(d);)var f=l.index;c=c.slice(0,f===i?u:f)}}else if(e.indexOf(li(o),u)!=u){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+r},Un.unescape=function(e){return(e=xs(e))&&K.test(e)?e.replace($,vn):e},Un.uniqueId=function(e){var t=++Me;return xs(e)+t},Un.upperCase=Xs,Un.upperFirst=Qs,Un.each=xa,Un.eachRight=_a,Un.first=$o,cu(Un,function(){var e={};return _r(Un,(function(t,n){Ne.call(Un.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Un.VERSION="4.17.21",jt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Un[e].placeholder=Un})),jt(["drop","take"],(function(e,t){Gn.prototype[e]=function(n){n=n===i?1:bn(vs(n),0);var r=this.__filtered__&&!t?new Gn(this):this.clone();return r.__filtered__?r.__takeCount__=xn(n,r.__takeCount__):r.__views__.push({size:xn(n,v),type:e+(r.__dir__<0?"Right":"")}),r},Gn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),jt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Gn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:co(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),jt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Gn.prototype[e]=function(){return this[n](1).value()[0]}})),jt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Gn.prototype[e]=function(){return this.__filtered__?new Gn(this):this[n](1)}})),Gn.prototype.compact=function(){return this.filter(ou)},Gn.prototype.find=function(e){return this.filter(e).head()},Gn.prototype.findLast=function(e){return this.reverse().find(e)},Gn.prototype.invokeMap=Xr((function(e,t){return"function"==typeof e?new Gn(this):this.map((function(n){return Pr(n,e,t)}))})),Gn.prototype.reject=function(e){return this.filter(Fa(co(e)))},Gn.prototype.slice=function(e,t){e=vs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Gn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=vs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Gn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Gn.prototype.toArray=function(){return this.take(v)},_r(Gn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Un[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(Un.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof Gn,c=s[0],l=u||qa(t),d=function(e){var t=o.apply(Un,It([e],s));return r&&f?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var f=this.__chain__,p=!!this.__actions__.length,h=a&&!f,m=u&&!p;if(!a&&l){t=m?t:new Gn(this);var v=e.apply(t,s);return v.__actions__.push({func:ma,args:[d],thisArg:i}),new Wn(v,f)}return h&&m?e.apply(this,s):(v=this.thru(d),h?r?v.value()[0]:v.value():v)})})),jt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Oe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Un.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(qa(i)?i:[],e)}return this[n]((function(n){return t.apply(qa(n)?n:[],e)}))}})),_r(Gn.prototype,(function(e,t){var n=Un[t];if(n){var r=n.name+"";Ne.call(An,r)||(An[r]=[]),An[r].push({name:t,func:n})}})),An[Ui(i,2).name]=[{name:"wrapper",func:i}],Gn.prototype.clone=function(){var e=new Gn(this.__wrapped__);return e.__actions__=Oi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oi(this.__views__),e},Gn.prototype.reverse=function(){if(this.__filtered__){var e=new Gn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Gn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=qa(e),r=t
1<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=xn(t,e+a);break;case"takeRight":e=bn(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,u=s-a,c=r?s:a-1,l=this.__iteratees__,d=l.length,f=0,p=xn(u,this.__takeCount__);if(!n||!r&&i==u&&p==u)return mi(e,this.__actions__);var h=[];e:for(;u--&&f<p;){for(var m=-1,v=e[c+=t];++m<d;){var g=l[m],y=g.iteratee,b=g.type,x=y(v);if(2==b)v=x;else if(!x){if(1==b)continue e;break e}}h[f++]=v}return h},Un.prototype.at=va,Un.prototype.chain=function(){return ha(this)},Un.prototype.commit=function(){return new Wn(this.value(),this.__chain__)},Un.prototype.next=function(){this.__values__===i&&(this.__values__=hs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Un.prototype.plant=function(e){for(var t,n=this;n instanceof Vn;){var r=Uo(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Un.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Gn){var t=e;return this.__actions__.length&&(t=new Gn(this)),(t=t.reverse()).__actions__.push({func:ma,args:[na],thisArg:i}),new Wn(t,this.__chain__)}return this.thru(na)},Un.prototype.toJSON=Un.prototype.valueOf=Un.prototype.value=function(){return mi(this.__wrapped__,this.__actions__)},Un.prototype.first=Un.prototype.head,Xe&&(Un.prototype[Xe]=function(){return this}),Un}();pt._=gn,(r=function(){return gn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},2962:function(e,t,n){"use strict";n.d(t,{PB:function(){return f},gx:function(){return b}});var r=n(9008),i=n.n(r),o=n(67294);function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}function s(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function u(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var c={templateTitle:"",noindex:!1,nofollow:!1,defaultOpenGraphImageWidth:0,defaultOpenGraphImageHeight:0,defaultOpenGraphVideoWidth:0,defaultOpenGraphVideoHeight:0},l=function(e,t,n){void 0===t&&(t=[]);var r=void 0===n?{}:n,i=r.defaultWidth,a=r.defaultHeight;return t.reduce((function(t,n,r){return t.push(o.createElement("meta",{key:"og:"+e+":0"+r,property:"og:"+e,content:n.url})),n.alt&&t.push(o.createElement("meta",{key:"og:"+e+":alt0"+r,property:"og:"+e+":alt",content:n.alt})),n.secureUrl&&t.push(o.createElement("meta",{key:"og:"+e+":secure_url0"+r,property:"og:"+e+":secure_url",content:n.secureUrl.toString()})),n.type&&t.push(o.createElement("meta",{key:"og:"+e+":type0"+r,property:"og:"+e+":type",content:n.type.toString()})),n.width?t.push(o.createElement("meta",{key:"og:"+e+":width0"+r,property:"og:"+e+":width",content:n.width.toString()})):i&&t.push(o.createElement("meta",{key:"og:"+e+":width0"+r,property:"og:"+e+":width",content:i.toString()})),n.height?t.push(o.createElement("meta",{key:"og:"+e+":height"+r,property:"og:"+e+":height",content:n.height.toString()})):a&&t.push(o.createElement("meta",{key:"og:"+e+":height"+r,property:"og:"+e+":height",content:a.toString()})),t}),[])},d=function(e){var t,n,r,i=[];e.titleTemplate&&(c.templateTitle=e.titleTemplate);var s="";e.title?(s=e.title,c.templateTitle&&(s=c.templateTitle.replace(/%s/g,(function(){return s})))):e.defaultTitle&&(s=e.defaultTitle),s&&i.push(o.createElement("title",{key:"title"},s));var u,d,f=e.noindex||c.noindex||e.dangerouslySetAllPagesToNoIndex,p=e.nofollow||c.nofollow||e.dangerouslySetAllPagesToNoFollow,h="";if(e.robotsProps){var m=e.robotsProps,v=m.nosnippet,g=m.maxSnippet,y=m.maxImagePreview,b=m.maxVideoPreview,x=m.noarchive,_=m.noimageindex,w=m.n
1otranslate,S=m.unavailableAfter;h=(v?",nosnippet":"")+(g?",max-snippet:"+g:"")+(y?",max-image-preview:"+y:"")+(x?",noarchive":"")+(S?",unavailable_after:"+S:"")+(_?",noimageindex":"")+(b?",max-video-preview:"+b:"")+(w?",notranslate":"")}(f||p?(e.dangerouslySetAllPagesToNoIndex&&(c.noindex=!0),e.dangerouslySetAllPagesToNoFollow&&(c.nofollow=!0),i.push(o.createElement("meta",{key:"robots",name:"robots",content:(f?"noindex":"index")+","+(p?"nofollow":"follow")+h}))):i.push(o.createElement("meta",{key:"robots",name:"robots",content:"index,follow"+h})),e.description&&i.push(o.createElement("meta",{key:"description",name:"description",content:e.description})),e.mobileAlternate&&i.push(o.createElement("link",{rel:"alternate",key:"mobileAlternate",media:e.mobileAlternate.media,href:e.mobileAlternate.href})),e.languageAlternates&&e.languageAlternates.length>0&&e.languageAlternates.forEach((function(e){i.push(o.createElement("link",{rel:"alternate",key:"languageAlternate-"+e.hrefLang,hrefLang:e.hrefLang,href:e.href}))})),e.twitter&&(e.twitter.cardType&&i.push(o.createElement("meta",{key:"twitter:card",name:"twitter:card",content:e.twitter.cardType})),e.twitter.site&&i.push(o.createElement("meta",{key:"twitter:site",name:"twitter:site",content:e.twitter.site})),e.twitter.handle&&i.push(o.createElement("meta",{key:"twitter:creator",name:"twitter:creator",content:e.twitter.handle}))),e.facebook&&e.facebook.appId&&i.push(o.createElement("meta",{key:"fb:app_id",property:"fb:app_id",content:e.facebook.appId})),null!=(t=e.openGraph)&&t.title||s)&&i.push(o.createElement("meta",{key:"og:title",property:"og:title",content:(null==(u=e.openGraph)?void 0:u.title)||s}));(null!=(n=e.openGraph)&&n.description||e.description)&&i.push(o.createElement("meta",{key:"og:description",property:"og:description",content:(null==(d=e.openGraph)?void 0:d.description)||e.description}));if(e.openGraph){if((e.openGraph.url||e.canonical)&&i.push(o.createElement("meta",{key:"og:url",property:"og:url",content:e.openGraph.url||e.canonical})),e.openGraph.type){var k=e.openGraph.type.toLowerCase();i.push(o.createElement("meta",{key:"og:type",property:"og:type",content:k})),"profile"===k&&e.openGraph.profile?(e.openGraph.profile.firstName&&i.push(o.createElement("meta",{key:"profile:first_name",property:"profile:first_name",content:e.openGraph.profile.firstName})),e.openGraph.profile.lastName&&i.push(o.createElement("meta",{key:"profile:last_name",property:"profile:last_name",content:e.openGraph.profile.lastName})),e.openGraph.profile.username&&i.push(o.createElement("meta",{key:"profile:username",property:"profile:username",content:e.openGraph.profile.username})),e.openGraph.profile.gender&&i.push(o.createElement("meta",{key:"profile:gender",property:"profile:gender",content:e.openGraph.profile.gender}))):"book"===k&&e.openGraph.book?(e.openGraph.book.authors&&e.openGraph.book.authors.length&&e.openGraph.book.authors.forEach((function(e,t){i.push(o.createElement("meta",{key:"book:author:0"+t,property:"book:author",content:e}))})),e.openGraph.book.isbn&&i.push(o.createElement("meta",{key:"book:isbn",property:"book:isbn",content:e.openGraph.book.isbn})),e.openGraph.book.releaseDate&&i.push(o.createElement("meta",{key:"book:release_date",property:"book:release_date",content:e.openGraph.book.releaseDate})),e.openGraph.book.tags&&e.openGraph.book.tags.length&&e.openGraph.book.tags.forEac
1h((function(e,t){i.push(o.createElement("meta",{key:"book:tag:0"+t,property:"book:tag",content:e}))}))):"article"===k&&e.openGraph.article?(e.openGraph.article.publishedTime&&i.push(o.createElement("meta",{key:"article:published_time",property:"article:published_time",content:e.openGraph.article.publishedTime})),e.openGraph.article.modifiedTime&&i.push(o.createElement("meta",{key:"article:modified_time",property:"article:modified_time",content:e.openGraph.article.modifiedTime})),e.openGraph.article.expirationTime&&i.push(o.createElement("meta",{key:"article:expiration_time",property:"article:expiration_time",content:e.openGraph.article.expirationTime})),e.openGraph.article.authors&&e.openGraph.article.authors.length&&e.openGraph.article.authors.forEach((function(e,t){i.push(o.createElement("meta",{key:"article:author:0"+t,property:"article:author",content:e}))})),e.openGraph.article.section&&i.push(o.createElement("meta",{key:"article:section",property:"article:section",content:e.openGraph.article.section})),e.openGraph.article.tags&&e.openGraph.article.tags.length&&e.openGraph.article.tags.forEach((function(e,t){i.push(o.createElement("meta",{key:"article:tag:0"+t,property:"article:tag",content:e}))}))):"video.movie"!==k&&"video.episode"!==k&&"video.tv_show"!==k&&"video.other"!==k||!e.openGraph.video||(e.openGraph.video.actors&&e.openGraph.video.actors.length&&e.openGraph.video.actors.forEach((function(e,t){e.profile&&i.push(o.createElement("meta",{key:"video:actor:0"+t,property:"video:actor",content:e.profile})),e.role&&i.push(o.createElement("meta",{key:"video:actor:role:0"+t,property:"video:actor:role",content:e.role}))})),e.openGraph.video.directors&&e.openGraph.video.directors.length&&e.openGraph.video.directors.forEach((function(e,t){i.push(o.createElement("meta",{key:"video:director:0"+t,property:"video:director",content:e}))})),e.openGraph.video.writers&&e.openGraph.video.writers.length&&e.openGraph.video.writers.forEach((function(e,t){i.push(o.createElement("meta",{key:"video:writer:0"+t,property:"video:writer",content:e}))})),e.openGraph.video.duration&&i.push(o.createElement("meta",{key:"video:duration",property:"video:duration",content:e.openGraph.video.duration.toString()})),e.openGraph.video.releaseDate&&i.push(o.createElement("meta",{key:"video:release_date",property:"video:release_date",content:e.openGraph.video.releaseDate})),e.openGraph.video.tags&&e.openGraph.video.tags.length&&e.openGraph.video.tags.forEac
1h((function(e,t){i.push(o.createElement("meta",{key:"video:tag:0"+t,property:"video:tag",content:e}))})),e.openGraph.video.series&&i.push(o.createElement("meta",{key:"video:series",property:"video:series",content:e.openGraph.video.series})))}e.defaultOpenGraphImageWidth&&(c.defaultOpenGraphImageWidth=e.defaultOpenGraphImageWidth),e.defaultOpenGraphImageHeight&&(c.defaultOpenGraphImageHeight=e.defaultOpenGraphImageHeight),e.openGraph.images&&e.openGraph.images.length&&i.push.apply(i,l("image",e.openGraph.images,{defaultWidth:c.defaultOpenGraphImageWidth,defaultHeight:c.defaultOpenGraphImageHeight})),e.defaultOpenGraphVideoWidth&&(c.defaultOpenGraphVideoWidth=e.defaultOpenGraphVideoWidth),e.defaultOpenGraphVideoHeight&&(c.defaultOpenGraphVideoHeight=e.defaultOpenGraphVideoHeight),e.openGraph.videos&&e.openGraph.videos.length&&i.push.apply(i,l("video",e.openGraph.videos,{defaultWidth:c.defaultOpenGraphVideoWidth,defaultHeight:c.defaultOpenGraphVideoHeight})),e.openGraph.locale&&i.push(o.createElement("meta",{key:"og:locale",property:"og:locale",content:e.openGraph.locale})),e.openGraph.site_name&&i.push(o.createElement("meta",{key:"og:site_name",property:"og:site_name",content:e.openGraph.site_name}))}return e.canonical&&i.push(o.createElement("link",{rel:"canonical",href:e.canonical,key:"canonical"})),e.additionalMetaTags&&e.additionalMetaTags.length>0&&e.additionalMetaTags.forEach((function(e){var t,n,r;i.push(o.createElement("meta",a({key:"meta:"+(null!=(t=null!=(n=null!=(r=e.keyOverride)?r:e.name)?n:e.property)?t:e.httpEquiv)},e)))})),null!=(r=e.additionalLinkTags)&&r.length&&e.additionalLinkTags.forEach((function(e){var t;i.push(o.createElement("link",a({key:"link"+(null!=(t=e.keyOverride)?t:e.href)+e.rel},e)))})),i},f=(o.Component,function(e){function t(){return e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){var e=this.props,t=e.title,n=e.noindex,r=void 0!==n&&n,a=e.nofollow,s=e.robotsProps,u=e.description,c=e.canonical,l=e.openGraph,f=e.facebook,p=e.twitter,h=e.additionalMetaTags,m=e.titleTemplate,v=e.mobileAlternate,g=e.languageAlternates,y=e.additionalLinkTags;return o.createElement(i(),null,d({title:t,noindex:r,nofollow:a,robotsProps:s,description:u,canonical:c,facebook:f,openGraph:l,additionalMetaTags:h,twitter:p,titleTemplate:m,mobileAlternate:v,languageAlternates:g,additionalLinkTags:y}))},t}(o.Component)),p=function(e,t){var n=t.id,r=a({},(void 0===n?void 0:n)?{"@id":t.id}:{},t);return delete r.id,{__html:JSON.stringify(a({"@context":"https://schema.org","@type":e},r))}};function h(e){var t=e.type,n=void 0===t?"Thing":t,r=e.keyOverride,s=e.scriptKey,c=e.scriptId,l=void 0===c?void 0:c,d=u(e,["type","keyOverride","scriptKey","scriptId"]);return o.createElement(i(),null,o.createElement("script",{type:"application/ld+json",id:l,dangerouslySetInnerHTML:p(n,a({},d)),key:"jsonld-"+s+(r?"-"+r:"")}))}function m(e){function t(e){return a({},e,{"@type":"Clip"})}return Array.isArray(e)?e.map(t):e?t(e):void 0}function v(e){if(e)return{"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:e}}function g(e){function t(e){return a({},e,{"@type":"BroadcastEvent"})}if(e)return Array.isArray(e)?e.map(t):t(e)}function y(e,t){if(void 0===t&&(t=!1),e)return function(e,t){var n=e.thumbnailUrls,r=e.hasPart,i=e.watchCount,o=e.publication;return a({},u(e,["thumbnailUrls","hasPart","watchCount","publication"]),{"@type":"VideoObject"},t&&{"@context":"https://schema.org"},{thumbnailUrl:n,hasPart:m(r),interactionStatistic:v(i),publication:g(o)})}(e,t)}function b(e){var t=e.type,n=void 0===t?"Video":t,r=e.keyOverride,i=y(u(e,["type","keyOverride"]),!0);return o.createElement(h,a({type:n,keyOverride:r},i,{scriptKey:"Video"}))}},83454:function(e,t,n){"use strict";var r,i;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"===typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(77663)},6840:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(79336)}])},71210:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDomainLocale=function(e,t,n,r){return!1};("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},28045:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(79361).Z,i=n(94941).Z,o=n(53929).Z;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.src,n=e.sizes,s=e.unoptimized,u=void 0!==s&&s,m=e.priority,v=void 0!==m&&m,x=e.loading,E=e.lazyRoot,j=void 0===E?null:E,T=e.lazyBoundary,R=e.className,O=e.quality,P=e.width,A=e.height,D=e.style,I=e.objectFit,N=e.objectPosition,M=e.onLoadingComplete,F=e.placeholder,B=void 0===F?"empty":F,L=e.blurDataURL,z=c(e,["src","sizes","unoptimized","priority","loading","lazyRoot","lazyBoundary","className","quality","width","height","style","objectFit","objectPosition","onLoadingComplete","placeholder","blurDataURL"]),U=l.useContext(h.ImageConfigContext),H=l.useMemo((function(){var e=g||U||f.imageConfigDefault,t=o(e.deviceSizes).concat(o(e.imageSizes)).sort((function(e,t){return e-t})),n=e.deviceSizes.sort((function(e,t){return e-t}));return a({},e,{allSizes:t,deviceSizes:n})}),[U]),V=z,W=n?"responsive":"intrinsic";"layout"in V&&(V.layout&&(W=V.layout),delete V.layout);var G=k;if("loader"in V){if(V.loader){var q=V.loader;G=function(e){e.config;var t=c(e,["config"]);return q(t)}}delete V.loader}var Z="";if(function(e){return"object"===typeof e&&(_(e)||function(e){return void 0!==e.src}(e))}(t)){var $=_(t)?t.default:t;if(!$.src)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ".concat(JSON.stringify($)));if(L=L||$.blurDataURL,Z=$.src,(!W||"fill"!==W)&&(A=A||$.height,P=P||$.width,!$.height||!$.width))throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ".concat(JSON.stringify($)))}var Y=!v&&("lazy"===x||"undefined"===typeof x);((t="string"===typeof t?t:Z).startsWith("data:")||t.startsWith("blob:"))&&(u=!0,Y=!1);y.has(t)&&(Y=!1);H.unoptimized&&(u=!0);var K,X=i(l.useState(!1),2),Q=X[0],J=X[1],ee=i(p.useIntersection({rootRef:j,rootMargin:T||"200px",disabled:!Y}),3),te=ee[0],ne=ee[1],re=ee[2],ie=!Y||ne,oe={boxSizing:"border-box",display:"block",overflow:"hidden",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},ae={boxSizing:"border-box",display:"block",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},se=!1,ue={position:"absolute",top:0,left:0,bottom:0,right:0,boxSizing:"border-box",padding:0,border:"none",margin:"auto",display:"block",width:0,height:0,minWidth:"100%",maxWidth:"100%",minHeight:"100%",maxHeight:"100%",objectFit:I,objectPosition:N},ce=S(P),le=S(A),de=S(O);0;var fe=Object.assign({},D,ue),pe="blur"!==B||Q?{}:{backgroundSize:I||"cover",backgroundPosition:N||"0% 0%",filter:"blur(20px)",backgroundImage:'url("'.concat(L,'")')};if("fill"===W)oe.display="block",oe.position="absolute",oe.top=0,oe.left=0,oe.bottom=0,oe.right=0;else if("undefined"!==typeof ce&&"undefined"!==typeof le){var he=le/ce,me=isNaN(he)?"100%":"".concat(100*he,"%");"responsive"===W?(oe.display="block",oe.position="relative",se=!0,ae.paddingTop=me):"intrinsic"===W?(oe.display="inline-block",oe.position="relative",oe.maxWidth="100%",se=!0,ae.maxWidth="100%",K="data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%27".concat(ce,"%27%20height=%27").concat(le,"%27/%3e")):"fixed"===W&&(oe.display="inline-block",oe.position="relative",oe.width=ce,oe.height=le)}else 0;var ve={src:b,srcSet:void 0,sizes:void 0};ie&&(ve=w({config:H,src:t,unoptimized:u,layout:W,width:ce,quality:de,sizes:n,loader:G}));var ge=t;0;var ye;0;var be=(r(ye={},"imagesrcset",ve.srcSet),r(ye,"imagesizes",ve.sizes),r(ye,"crossOrigin",V.crossOrigin),ye),xe=l.default.useLayoutEffect,_e=l.useRef(M),we=l.useRef(t);l.useEffect((function(){_e.current=M}),[M]),xe((function(){we.current!==t&&(re(),we.current=t)}),[re,t]);var Se=a({isLazy:Y,imgAttributes:ve,heightInt:le,widthInt:ce,qualityInt:de,layout:W,className:R,imgStyle:fe,blurStyle:pe,loading:x,config:H,unoptimized:u,placeholder:B,loader:G,srcString:ge,onLoadingCompleteRef:_e,setBlurComplete:J,setIntersection:te,isVisible:ie,noscriptSizes:n},V);return l.default.createElement(l.default.Fragment,null,l.default.createElement("span",{style:oe},se?l.default.createElement("span",{style:ae},K?l.default.createElement("img",{style:{display:"block",maxWidth:"100%",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},alt:"","aria-hidden":!0,src:K}):null):null,l.default.createElement(C,Object.assign({},Se))),v?l.default.createElement(d.default,null,l.default.createElement("link",Object.assign({key:"__nimg-"+ve.src+ve.srcSet+ve.sizes,rel:"preload",as:"image",href:ve.srcSet?void 0:ve.src},be))):null)};var a=n(6495).Z,s=n(92648).Z,u=n(91598).Z,c=n(17273).Z,l=u(n(67294)),d=s(n(5443)),f=n(99309),p=n(57190),h=n(59977),m=(n(63794),n(82392));function v(e){return"/"===e[0]?e.slice(1):e}var g={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/docs/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1},y=new Set,b=(new Map,"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");var x=new Map([["default",function(e){var t=e.config,n=e.src,r=e.width,i=e.quality;return n.endsWith(".svg")&&!t.dangerouslyAllowSVG?n:"".concat(m.normalizePathTrailingSlash(t.path),"?url=").concat(encodeURIComponent(n),"&w=").concat(r,"&q=").concat(i||75)}],["imgix",function(e){var t=e.config,n=e.src,r=e.width,i=e.quality,o=new URL("".concat(t.path).concat(v(n))),a=o.searchParams;return a.set("auto",a.getAll("auto").join(",")||"format"),a.set("fit",a.get("fit")||"max"),a.set("w",a.get("w")||r.toString()),i&&a.set("q",i.toString()),o.href}],["cloudinary",function(e){var t=e.config,n=e.src,r=["f_auto","c_limit","w_"+e.width,"q_"+(e.quality||"auto")].join(",")+"/";return"".concat(t.path).concat(r).concat(v(n))}],["akamai",function(e){var t=e.config,n=e.src,r=e.width;return"".concat(t.path).concat(v(n),"?imwidth=").concat(r)}],["custom",function(e){var t=e.src;throw new Error('Image with src "'.concat(t,'" is missing "loader" prop.')+"\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader")}]]);function _(e){return void 0!==e.default}function w(e){var t=e.config,n=e.src,r=e.unoptimized,i=e.layout,a=e.width,s=e.quality,u=e.sizes,c=e.loader;if(r)return{src:n,srcSet:void 0,sizes:void 0};var l=function(e,t,n,r){var i=e.deviceSizes,a=e.allSizes;if(r&&("fill"===n||"responsive"===n)){for(var s,u=/(^|\s)(1?\d?\d)vw/g,c=[];
1s=u.exec(r);s)c.push(parseInt(s[2]));if(c.length){var l,d=.01*(l=Math).min.apply(l,o(c));return{widths:a.filter((function(e){return e>=i[0]*d})),kind:"w"}}return{widths:a,kind:"w"}}return"number"!==typeof t||"fill"===n||"responsive"===n?{widths:i,kind:"w"}:{widths:o(new Set([t,2*t].map((function(e){return a.find((function(t){return t>=e}))||a[a.length-1]})))),kind:"x"}}(t,a,i,u),d=l.widths,f=l.kind,p=d.length-1;return{sizes:u||"w"!==f?u:"100vw",srcSet:d.map((function(e,r){return"".concat(c({config:t,src:n,quality:s,width:e})," ").concat("w"===f?e:r+1).concat(f)})).join(", "),src:c({config:t,src:n,quality:s,width:d[p]})}}function S(e){return"number"===typeof e?e:"string"===typeof e?parseInt(e,10):void 0}function k(e){var t,n=(null==(t=e.config)?void 0:t.loader)||"default",r=x.get(n);if(r)return r(e);throw new Error('Unknown "loader" found in "next.config.js". Expected: '.concat(f.VALID_LOADERS.join(", "),". Received: ").concat(n))}function E(e,t,n,r,i,o){e&&e.src!==b&&e["data-loaded-src"]!==t&&(e["data-loaded-src"]=t,("decode"in e?e.decode():Promise.resolve()).catch((function(){})).then((function(){if(e.parentNode&&(y.add(t),"blur"===r&&o(!0),null==i?void 0:i.current)){var n=e.naturalWidth,a=e.naturalHeight;i.current({naturalWidth:n,naturalHeight:a})}})))}var C=function(e){var t=e.imgAttributes,n=(e.heightInt,e.widthInt),r=e.qualityInt,i=e.layout,o=e.className,s=e.imgStyle,u=e.blurStyle,d=e.isLazy,f=e.placeholder,p=e.loading,h=e.srcString,m=e.config,v=e.unoptimized,g=e.loader,y=e.onLoadingCompleteRef,b=e.setBlurComplete,x=e.setIntersection,_=e.onLoad,S=e.onError,k=(e.isVisible,e.noscriptSizes),C=c(e,["imgAttributes","heightInt","widthInt","qualityInt","layout","className","imgStyle","blurStyle","isLazy","placeholder","loading","srcString","config","unoptimized","loader","onLoadingCompleteRef","setBlurComplete","setIntersection","onLoad","onError","isVisible","noscriptSizes"]);return p=d?"lazy":p,l.default.createElement(l.default.Fragment,null,l.default.createElement("img",Object.assign({},C,t,{decoding:"async","data-nimg":i,className:o,style:a({},s,u),ref:l.useCallback((function(e){x(e),(null==e?void 0:e.complete)&&E(e,h,0,f,y,b)}),[x,h,i,f,y,b]),onLoad:function(e){E(e.currentTarget,h,0,f,y,b),_&&_(e)},onError:function(e){"blur"===f&&b(!0),S&&S(e)}})),(d||"blur"===f)&&l.default.createElement("noscript",null,l.default.createElement("img",Object.assign({},C,w({config:m,src:h,unoptimized:v,layout:i,width:n,quality:r,sizes:k,loader:g}),{decoding:"async","data-nimg":i,style:s,className:o,loading:p}))))};("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},48418:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(94941).Z;n(45753).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(92648).Z,o=n(17273).Z,a=i(n(67294)),s=n(76273),u=n(22725),c=n(63462),l=n(21018),d=n(57190),f=n(71210),p=n(98684),h={};function m(e,t,n,r){if(e&&s.isLocalURL(t)){Promise.resolve(e.prefetch(t,n,r)).catch((function(e){0}));var i=r&&"undefined"!==typeof r.locale?r.locale:e&&e.locale;h[t+"%"+n+(i?"%"+i:"")]=!0}}var v=a.default.forwardRef((function(e,t){var n,i=e.href,v=e.as,g=e.children,y=e.prefetch,b=e.passHref,x=e.replace,_=e.shallow,w=e.scroll,S=e.locale,k=e.onClick,E=e.onMouseEnter,C=e.onTouchStart,j=e.legacyBehavior,T=void 0===j?!0!==Boolean(!1):j,R=o(e,["href","as","children","prefetch","passHref","replace","shallow","scroll","locale","onClick","onMouseEnter","onTouchStart","legacyBehavior"]);n=g,!T||"string"!==typeof n&&"number"!==typeof n||(n=a.default.createElement("a",null,n));var O=!1!==y,P=a.default.useContext(c.RouterContext),A=a.default.useContext(l.AppRouterContext);A&&(P=A);var D,I=a.default.useMemo((function(){var e=r(s.resolveHref(P,i,!0),2),t=e[0],n=e[1];return{href:t,as:v?s.resolveHref(P,v):n||t}}),[P,i,v]),N=I.href,M=I.as,F=a.default.useRef(N),B=a.default.useRef(M);T&&(D=a.default.Children.only(n));var L=T?D&&"object"===typeof D&&D.ref:t,z=r(d.useIntersection({rootMargin:"200px"}),3),U=z[0],H=z[1],V=z[2],W=a.default.useCallback((function(e){B.current===M&&F.current===N||(V(),B.current=M,F.current=N),U(e),L&&("function"===typeof L?L(e):"object"===typeof L&&(L.current=e))}),[M,L,N,V,U]);a.default.useEffect((function(){var e=H&&O&&s.isLocalURL(N),t="undefined"!==typeof S?S:P&&P.locale,n=h[N+"%"+M+(t?"%"+t:"")];e&&!n&&m(P,N,M,{locale:t})}),[M,N,H,S,O,P]);var G={ref:W,onClick:function(e){T||"function"!==typeof k||k(e),T&&D.props&&"function"===typeof D.props.onClick&&D.props.onClick(e),e.defaultPrevented||function(e,t,n,r,i,o,u,c,l,d){if("A"!==e.currentTarget.nodeName.toUpperCase()||!function(e){var t=e.currentTarget.target;return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)&&s.isLocalURL(n)){e.preventDefault();var f=function(){"beforePopState"in t?t[i?"replace":"push"](n,r,{shallow:o,locale:c,scroll:u}):t[i?"replace":"push"](n,{forceOptimisticNavigation:!d})};l?a.default.startTransition(f):f()}}(e,P,N,M,x,_,w,S,Boolean(A),O)},onMouseEnter:function(e){T||"function"!==typeof E||E(e),T&&D.props&&"function"===typeof D.props.onMouseEnter&&D.props.onMouseEnter(e),!O&&A||s.isLocalURL(N)&&m(P,N,M,{priority:!0})},onTouchStart:function(e){T||"function"!==typeof C||C(e),T&&D.props&&"function"===typeof D.props.onTouchStart&&D.props.onTouchStart(e),!O&&A||s.isLocalURL(N)&&m(P,N,M,{priority:!0})}};if(!T||b||"a"===D.type&&!("href"in D.props)){var q="undefined"!==typeof S?S:P&&P.locale,Z=P&&P.isLocaleDomain&&f.getDomainLocale(M,q,P.locales,P.domainLocales);G.href=Z||p.addBasePath(u.addLocale(M,q,P&&P.defaultLocale))}return T?a.default.cloneElement(D,G):a.default.createElement("a",Object.assign({},R,G),n)}));t.default=v,("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},57190:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(94941).Z;Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersection=function(e){var t=e.rootRef,n=e.rootMargin,c=e.disabled||!a,l=r(i.useState(!1),2),d=l[0],f=l[1],p=r(i.useState(null),2),h=p[0],m=p[1];i.useEffect((function(){if(a){if(c||d)return;if(h&&h.tagName){var e=function(e,t,n){var r=function(e){var t,n={root:e.root||null,margin:e.rootMargin||""},r=u.find((function(e){return e.root===n.root&&e.margin===n.margin}));if(r&&(t=s.get(r)))return t;var i=new Map,o=new IntersectionObserver((function(e){e.forEach((function(e){var t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)}))}),e);return t={id:n,observer:o,elements:i},u.push(n),s.set(n,t),t}(n),i=r.id,o=r.observer,a=r.elements;return a.set(e,t),o.observe(e),function(){if(a.delete(e),o.unobserve(e),0===a.size){o.disconnect(),s.delete(i);var t=u.findIndex((function(e){return e.root===i.root&&e.margin===i.margin}));t>-1&&u.splice(t,1)}}}(h,(function(e){return e&&f(e)}),{root:null==t?void 0:t.current,rootMargin:n});return e}}else if(!d){var r=o.requestIdleCallback((function(){return f(!0)}));return function(){return o.cancelIdleCallback(r)}}}),[h,c,n,t,d]);var v=i.useCallback((function(){f(!1)}),[]);return[m,d,v]};var i=n(67294),o=n(9311),a="function"===typeof IntersectionObserver,s=new Map,u=[];("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},21018:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TemplateContext=t.GlobalLayoutRouterContext=t.LayoutRouterContext=t.AppRouterContext=void 0;var r=(0,n(92648).Z)(n(67294)),i=r.default.createContext(null);t.AppRouterContext=i;var o=r.default.createContext(null);t.LayoutRouterContext=o;var a=r.default.createContext(null);t.GlobalLayoutRouterContext=a;var s=r.default.createContext(null);t.TemplateContext=s},44860:function(e,t,n){"use strict";n.d(t,{C:function(){return d},k:function(){return f}});var r=n(41799),i=n(69396),o=n(99534),a=n(85893),s=n(68527),u=n(15193),c=n(19671),l=n(16770),d=function(){return(0,a.jsx)(l.rU,{href:"/changelog",fontSize:"md",fontWeight:"medium",color:"text.secondary",transition:"color 150ms ease",_hover:{color:"text.primary",textDecoration:"none"},onClick:function(){(0,c.j)("Changelog Clicked",{page:window.location.href})},children:"Changelog"})},f=function(e){var t=e.primary,n=e.primaryText,l=e.includeChangelog,f=e.hideSecondary,p=(0,o.Z)(e,["primary","primaryText","includeChangelog","hideSecondary"]),h=function(){(0,c.j)("Demo Clicked",{page:window.location.href})},m=function(){(0,c.j)("Sign Up Clicked",{page:window.location.href})};return"signup"===t?(0,a.jsxs)(s.kC,(0,i.Z)((0,r.Z)({align:"center",gap:3},p),{children:[l&&(0,a.jsx)(d,{}),(0,a.jsx)(u.zx,{as:"a",href:"https://hightouch.com/demo",display:{base:"flex",md:"none"},onClick:h,children:"Book a demo"}),(0,a.jsx)(u.zx,{as:"a",href:"https://app.hightouch.com/signup",display:{base:"none",md:"flex"},onClick:m,children:n||"Sign up"}),!f&&(0,a.jsx)(u.zx,{as:"a",variant:"secondary",href:"https://hightouch.com/demo",display:{base:"none",md:"flex"},onClick:h,children:"Book a demo"})]})):(0,a.jsxs)(s.kC,(0,i.Z)((0,r.Z)({align:"center",gap:3},p),{children:[l&&(0,a.jsx)(d,{}),(0,a.jsx)(u.zx,{as:"a",href:"https://hightouch.com/demo",onClick:h,children:n||"Book a demo"}),!f&&(0,a.jsx)(u.zx,{as:"a",href:"https://app.hightouch.com/signup",variant:"secondary",display:{base:"none",md:"flex"},onClick:m,children:"Sign up"})]}))}},81912:function(e,t,n){"use strict";n.d(t,{k:function(){return r.k}});var r=n(44860)},81258:function(e,t,n){"use strict";n.d(t,{x:function(){return y}});var r=n(85893),i=n(68527),o=n(10894),a=n(79762),s=n(5993),u=n(15031),c=n(67294);function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}var d=["className","rows"],f=(0,s.Gp)((function(e,t){var n=(0,s.mq)("Textarea",e),r=(0,s.Lr)(e),i=r.className,o=r.rows,f=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(r,d),p=(0,a.Yp)(f),h=o?(0,u.CE)(n,["h","minH","height","minHeight"]):n;return c.createElement(s.m$.textarea,l({ref:t,rows:o},p,{className:(0,u.cx)("chakra-textarea",i),__css:h}))}));u.Ts&&(f.displayName="Textarea");var p=n(15193),h=n(11163),m=n(19671),v=n(72923),g=function(e){var t=e.icon,n=e.label,o=e.onClick;return(0,r.jsxs)(i.kC,{as:"button",align:"center",gap:1.5,bg:"transparent",border:"none",padding:1,borderRadius:"md",color:"text.tertiary",cursor:"pointer",transition:"color 150ms ease-out",outline:"none",_hover:{color:"text.primary"},_focusVisible:{boxShadow:"outline"},onClick:o,"aria-label":n,children:[(0,r.jsx)(t,{boxSize:"16px",flexShrink:0}),(0,r.jsx)(i.xv,{fontSize:"md",fontWeight:"medium",lineHeight:1,children:n})]})},y=function(){var e=(0,h.useRouter)(),t=(0,c.useState)("initial"),n=t[0],a=t[1],s=(0,c.useState)(""),u=s[0],l=s[1];return(0,r.jsxs)(i.kC,{direction:"column",fontSize:"sm",color:"text.secondary",mt:4,pt:4,borderTop:"1px",borderColor:"base.divi
1der",children:[("thanked"===n||"submitted"===n)&&(0,r.jsxs)(i.kC,{align:"center",gap:2,children:[(0,r.jsx)(o.JO,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:"primary.base",boxSize:"16px",children:(0,r.jsx)("path",{d:"M20 6 9 17l-5-5"})}),(0,r.jsx)(i.xv,{fontSize:"md",color:"text.secondary",children:"thanked"===n?"Thanks for the feedback!":"Feedback submitted \u2014 thank you!"})]}),"initial"===n&&(0,r.jsxs)(i.xu,{children:[(0,r.jsx)(i.xv,{fontSize:"sm",fontWeight:"medium",color:"text.tertiary",mb:2,children:"Was this page helpful?"}),(0,r.jsxs)(i.kC,{align:"center",gap:3,children:[(0,r.jsx)(g,{icon:v.Z7,label:"Yes",onClick:function(){(0,m.j)("Page Helpful Icon Clicked",{page:e.pathname}),a("thanked")}}),(0,r.jsx)(g,{icon:v.C_,label:"No",onClick:function(){(0,m.j)("Page Not Helpful Icon Clicked",{page:e.pathname}),a("feedback")}}),(0,r.jsx)(i.xu,{h:"16px",w:"1px",bg:"base.divider",flexShrink:0}),(0,r.jsxs)(i.kC,{as:"button",align:"center",gap:1.5,fontSize:"md",fontWeight:"medium",color:"link.default",cursor:"pointer",bg:"transparent",border:"none",padding:0,borderRadius:"md",transition:"color 150ms ease-out",outline:"none",_hover:{color:"link.hover"},_focusVisible:{boxShadow:"outline"},onClick:function(){return a("feedback")},children:[(0,r.jsx)(v.kB,{boxSize:"16px",flexShrink:0}),(0,r.jsx)(i.xv,{as:"span",lineHeight:1,children:"Send feedback"})]})]})]}),"feedback"===n&&(0,r.jsxs)(i.kC,{direction:"column",gap:3,children:[(0,r.jsx)(i.xv,{fontSize:"sm",fontWeight:"medium",color:"text.tertiary",children:"What could be better?"}),(0,r.jsx)(f,{value:u,onChange:function(e){return l(e.target.value)},placeholder:"Missing info, unclear steps, outdated screenshots...",size:"sm",fontSize:"md",border:"1px solid",borderColor:"base.border",borderRadius:"lg",rows:3,px:3,py:2.5,bg:"white",_hover:{borderColor:"gray.400"},_focus:{borderColor:"primary.base",boxShadow:"outline"},autoFocus:!0}),(0,r.jsxs)(i.kC,{gap:2,align:"center",children:[(0,r.jsx)(p.zx,{size:"sm",onClick:function(){u.trim()&&(0,m.j)("Feedback Text Submitted",{page:e.pathname,feedback_text:u.trim()}),a("submitted")},children:"Submit"}),(0,r.jsx)(p.zx,{size:"sm",variant:"subtle",onClick:function(){l(""),a("initial")},children:"Cancel"})]})]})]})}},55291:function(e,t,n){"use strict";n.d(t,{$:function(){return c}});var r=n(85893),i=n(68527),o=n(81912),a=n(16770),s=n(72923),u=n(25058),c=function(e){var t=e.align,n=void 0===t?"center":t,o=e.contentWidth,s=void 0===o?"1068px":o,u=e.px,c=void 0===u?{base:4,md:6,lg:8}:u;return(0,r.jsx)(i.xu,{as:"footer",width:"100%",mt:{base:12,lg:16},borderTop:"1px solid",borderColor:"base.divider",children:(0,r.jsx)(i.kC,{width:"100%",justify:n,px:c,children:(0,r.jsx)(i.xu,{width:"100%",maxWidth:s,children:(0,r.jsxs)(i.xu,{maxWidth:"960px",pt:{base:8,lg:10},children:[(0,r.jsxs)(i.MI,{alignItems:"stretch",columns:{base:1,lg:3},gap:{base:14,lg:8},children:[(0,r.jsx)(l,{}),(0,r.jsx)(d,{}),(0,r.jsx)(f,{})]}),(0,r.jsxs)(i.kC,{color:"text.secondary",fontSize:"sm",gap:{base:10,lg:6},align:"center",justify:"flex-start",pt:16,width:"100%",children:[(0,r.jsx)(a.rU,{variant:"subtle",href:"https://hightouch.com/privacy-policy",children:"Privacy Policy"}),(0,r.jsx)(a.rU,{variant:"subtle",href:"https://hightouch.com/terms-of-service",children:"Terms of Service"})]})]})})})})},l=function(){return(0,r.jsxs)(h,{children:[(0,r.jsxs)(i.xu,{children:[(0,r.jsx)(p,{icon:(0,r.jsx)(s.r7,{boxSize:5,fill:"text.primary"}),title:"Ready to get started?"}),(0,r.jsx)(i.xv,{color:"text.secondary",children:"Jump right in or a book a demo. Your first destination is always free."})]}),(0,r.jsx)(i.xu,{mt:"auto",children:(0,r.jsx)(o.k,{primary:"signup",flex:1,flexWrap:"wrap"})})]})},d=function(){return(0,r.jsxs)(h,{children:[(0,r.jsxs)(i.xu,{children:[(0,r.jsx)(p,{icon:(0,r.jsx)(s.UO,{boxSize:5,fill:"text.primary"}),title:"Need help?"}),(0,r.jsx)(i.xv,{color:"text.secondary",children:"Our team is relentlessly focused on your success. Don't hesitate to reach out!"})]}),(0,r.jsx)(u.u,{variant:"secondary",alignSelf:"flex-start",justifySelf:"flex-end",leftIcon:(0,r.jsx)(s.kB,{boxSize:5,color:"text.primary"}),message:"Hello, I have a question!",children:"Start a chat"})]})},f=function(){return(0,r.jsxs)(h,{children:[(0,r.jsxs)(i.xu,{children:[(0,r.jsx)(p,{icon:(0,r.jsx)(s.AX,{boxSize:5,fill:"text.primary"}),title:"Feature requests?"}),(0,r.jsx)(i.xv,{color:"text.secondary",children:"We'd love to hear your suggestions for integrations and other features."})]}),(0,r.jsx)(u.u,{alignSelf:"flex-start",variant:"secondary",message:"Hello, I have a feature request!",children:"Request a feature"})]})},p=function(e){var t=e.icon,n=e.title;return(0,r.jsxs)(i.kC,{align:"center",gap:2,pb:{base:0,lg:4},mb:4,borderBottomWidth:{base:0,lg:"1px"}
1,borderBottomStyle:"solid",borderBottomColor:"base.divider",children:[(0,r.jsx)(i.kC,{align:"center",justify:"center",boxSize:5,flexShrink:0,color:"text.primary",children:t}),(0,r.jsx)(i.xv,{as:"h2",fontWeight:"semibold",fontSize:"lg",whiteSpace:"nowrap",children:n})]})},h=function(e){var t=e.children;return(0,r.jsx)(i.kC,{direction:"column",flex:1,justify:"space-between",alignSelf:"stretch",gap:4,height:"100%",fontSize:"md",children:t})}},64345:function(e,t,n){"use strict";n.d(t,{F:function(){return o}});var r=n(85893),i=n(2962),o=function(e){var t=e.title,n=e.description,o=e.noindex,a=void 0!==o&&o;return(0,r.jsx)(i.PB,{title:t?"".concat(t," | Hightouch Docs"):"Hightouch Docs",description:n,noindex:a,nofollow:a,openGraph:{title:t,description:n,images:[{url:"/docs/card.png"}],site_name:"Hightouch Docs"},twitter:{handle:"HightouchData",cardType:"summary_large_image"}})}},69468:function(e,t,n){"use strict";n.d(t,{W:function(){return j},A:function(){return Oe}});var r=n(85893),i=n(68527),o=n(34651),a=(n(36159),n(78420),["/events/identity","/events/migration-guide/segment","/events/migration-guide/rudderstack","/events/migration-guide/mparticle","/events/migration-guide/amplitude","/identity-resolution/golden-record","/identity-resolution/supercluster","/identity-resolution/identifier-rules","/identity-resolution/overview","/identity-resolution/usage","/identity-resolution/get-started","/identity-resolution/how-it-works","/identity-resolution/deterministic","/identity-resolution/prepare-data","/identity-resolution/identity-graph","/identity-resolution/monitor","/identity-resolution/troubleshooting","/identity-resolution/profile-reprocessing","/identity-resolution/permissions","/probabilistic-idr/overview","/probabilistic-idr/aws","/probabilistic-idr/gcs","/probabilistic-idr/azure","/real-time/architecture","/ai-decisioning/security","/ai-decisioning/permissions","/ai-decisioning/user-feature-matrix","/ai-decisioning/group-assignment","/ai-decisioning/smart-suppression","/ai-integrations/mcp-server","/agents/overview","/agents/chats","/agents/reports","/agents/custom-agents","/agents/settings","/agents/compare-agents","/context-hub/overview","/context-hub/setup","/context-hub/connections","/context-hub/business-context","/context-hub/creative","/context-hub/external","/ad-studio/overview","/ad-studio/prompting-guide","/ad-studio/ads","/ad-studio/refine","/ad-studio/launch","/ad-studio/figma","/ad-studio/insights","/ad-studio/assets","/workspace-management/spaces","/lifecycle-studio/overview","/lifecycle-studio/campaigns","/lifecycle-studio/messages","/lifecycle-studio/templates","/lifecycle-studio/images","/lifecycle-studio/asana","/sources/query-tags","/destinations/pubmatic","/native-delivery/overview","/native-delivery/emails","/native-delivery/sms","/native-delivery/personalization","/native-delivery/preview-and-test","/native-delivery/campaigns","/native-delivery/journeys","/native-delivery/api-triggered-sends","/native-delivery/subscriptions-and-consent","/native-delivery/reporting","/native-delivery/deliverability","/native-delivery/approvals","/native-delivery/suppression-lists","/native-delivery/migration"]),s=n(42029),u=n(81258),c=n(55291),l=n(64345),d=function(e){var t=e.date,n=new Date(t),o=n.getUTCDate(),a=n.getUTCMonth(),s=n.getUTCFullYear(),u=new Date(s,a,o).toLocaleString("en-us",{year:"numeric",month:"short",day:"numeric"});return(0,r.jsx)(i.kC,{direction:"column",pb:2,children:t&&(0,r.jsxs)(i.xv,{fontSize:"md",color:"text.tertiary",fontStyle:"italic",mb:1,children:["Last updated: ",u]})})},f=n(78481),p=n(29815),h=n(97582),m=n(67294),v=n(25364),g=(0,m.createContext)(null),y=n(6337),b=function(e){return!e.isLayoutDirty&&e.willUpdate(!1)};function x(){var e=new Set,t=new WeakMap,n=function(){return e.forEach(b)};return{add:function(r){e.add(r),t.set(r,r.addEventListener("willUpdate",n))},remove:function(r){var i;e.delete(r),null===(i=t.get(r))||void 0===i||i(),t.delete(r),n()},dirty:n}}var _=function(e){return!0===e},w=function(e){var t,n,r=e.children,i=e.id,o=e.inheritId,a=e.inherit,s=void 0===a||a;void 0!==o&&(s=o);var u=(0,m.useContext)(v.p),c=(0,m.useContext)(g),l=(0,h.__read)((0,y.N)(),2),d=l[0],f=l[1],p=(0,m.useRef)(null),b=null!==(t=u.id)&&void 0!==t?t:c;null===p.current&&(function(e){return _(!0===e)||"id"===e}(s)&&b&&(i=i?b+"-"+i:b),p.current={id:i,group:_(s)&&null!==(n=null===u||void 0===u?void 0:u.group)&&void 0!==n?n:x()});var w=(0,m.useMemo)((function(){return(0,h.__assign)((0,h.__assign)({},p.current),{forceRender:d})}),[f]);return m.createElement(v.p.Provider,{value:w},r)},S=n(19671);function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=(0,m.useState)(null),n=t[0],r=t[1],i=(0,m.useState)({top:!1,bottom:!1}),o=i[0],a=i[1];(0,m.useEffect)((function(){if(n){var e=function(){var e=n.scrollHeight>n.clientHeight+1,t=e&&n.scrollTop>1,r=e&&n.scrollTop+n.clientHeight<n.scrollHeight-1;a((function(e){return e.top===t&&e.bottom===r?e:{top:t,bottom:r}}))};e(),n.addEventListener("scroll",e,{passive:!0});var t=new ResizeObserver(e);return t.observe(n),n.firstElementChild&&t.observe(n.firstElementChild),function(){n.removeEventListener("scroll",e),t.disconnect()}}}),[n].concat((0,p.Z)(e)));var s=(0,m.useCallback)((function(e){return r(e)}),[]),u="linear-gradient(to bottom, ".concat(o.top?"transparent, black 16px":"black 0",", ").concat(o.bottom?"black calc(100% - 16px), transparent":"black 100%",")");return{ref:s,maskImage:u}}var E=n(16770);
1var C=function(e){var t,n=e.toc,o=function(e){var t,n=(0,m.useState)(null!==(t=e[0])&&void 0!==t?t:null),r=n[0],i=n[1],o=e.join("|");return(0,m.useEffect)((function(){var e=o?o.split("|"):[];if(0!==e.length){var t=(parseInt(getComputedStyle(document.documentElement).getPropertyValue("--theme-sizes-header"),10)||64)+40,n=function(){if(window.innerHeight+window.scrollY>=document.documentElement.scrollHeight-2)i(e[e.length-1]);else{var n=e[0],r=!0,o=!1,a=void 0;try{for(var s,u=e[Symbol.iterator]();!(r=(s=u.next()).done);r=!0){var c=s.value,l=document.getElementById(c);if(l){if(!(l.getBoundingClientRect().top-t<=0))break;n=c}}}catch(d){o=!0,a=d}finally{try{r||null==u.return||u.return()}finally{if(o)throw a}}i(n)}};return n(),window.addEventListener("scroll",n,{passive:!0}),window.addEventListener("resize",n),function(){window.removeEventListener("scroll",n),window.removeEventListener("resize",n)}}}),[o]),r}((null!==n&&void 0!==n?n:[]).map((function(e){return e.id}))),a=(0,m.useCallback)((function(e){(0,S.j)("TOC Link Clicked",{page_path:window.location.pathname,heading_text:e.value,heading_id:e.id,heading_depth:e.depth})}),[]),s=k([n]),u=s.ref,c=s.maskImage;if(!(null===n||void 0===n?void 0:n.length))return null;var l=(t=Math).min.apply(t,(0,p.Z)(n.map((function(e){return e.depth}))));return(0,r.jsxs)(i.kC,{as:"nav","aria-label":"On this page",direction:"column",flexGrow:0,flexShrink:1,minH:0,borderTop:"1px",borderColor:"base.divider",pt:5,children:[(0,r.jsx)(i.xv,{as:"span",textStyle:"mono",fontSize:"xs",fontWeight:"semibold",letterSpacing:"0.08em",textTransform:"uppercase",color:"text.tertiary",mb:2.5,children:"On this page"}),(0,r.jsx)(i.xu,{ref:u,as:"ul",listStyleType:"none",display:"flex",flexDirection:"column",gap:.5,overflowY:"auto",flex:"1",minH:0,mx:-2,px:2,py:1,sx:{maskImage:c,WebkitMaskImage:c,scrollPaddingBlock:"8px","&:focus-within":{maskImage:"none",WebkitMaskImage:"none"}},children:(0,r.jsx)(w,{id:"toc",children:n.map((function(e){var t=e.value,n=e.id,s=e.depth,u=n===o,c=s-l;return(0,r.jsx)(i.xu,{as:"li",children:(0,r.jsxs)(i.rU,{href:"#".concat(n),position:"relative",display:"block",py:.5,borderRadius:"none",borderRightRadius:"base",pl:"".concat(18+12*c,"px"),pr:2,fontSize:0===c?"md":"sm",lineHeight:"1.5",textDecoration:"none",outline:"none",transitionProperty:"color",transitionDuration:"150ms",color:u?"primary.text":0===c?"text.primary":"text.tertiary",fontWeight:0===c?"medium":"normal",_hover:{color:u?"primary.text":"text.primary"},_focusVisible:{boxShadow:"outline"},onClick:function(){return a({value:t,id:n,depth:s})},children:[u&&(0,r.jsx)(E.fw,{"aria-hidden":"true",layoutId:"toc-indicator",transition:{default:{ease:"easeInOut"},layout:{duration:.2}},position:"absolute",left:0,top:0,bottom:0,width:"2px",bg:"primary.base",borderRadius:"full"}),(0,r.jsx)(i.xu,{as:"span",children:t})]})},n)}))})})]})},j=function(e){var t,n,p,h,m,v,g,y=e.children,b=e.meta,x=e.destinations,_=e.sources,w=e.extensions,S=b.title,k=b.description,j=b.toc,T=b.lastUpdatedDate,R=b.icon,O=new URL(window.location.href).pathname,P=O.split("/").includes("extensions")&&!O.includes("connections")&&!O.includes("snowflake-cowork")&&!O.includes("/mcp"),A=O.split("/docs")[1],D=a.includes(A);if(b.slug&&x&&_){var I=("destination"===b.type?x:_).find((function(e){return e.slug===b.slug}));if(I){if(S="Google Sheets - User Account"===I.name?"Google Sheets":I.name,t=k=I.shortPitch||I.vendorAbout,R=I.icon,n=I.status,v=I.vendorApiDocsUrl,g=I.vendorApiStatusUrl,"to_view"===I.approvalRequirement&&(D=!0),"released"!==I.status)switch(n){case"shadow":case"coming_soon":p="We're currently gauging interest for this destination. Please ",h="Hi, I would like to request a new destination. I want to sync data to ".concat(S," in order to help the _____ team accomplish _____."),m=" if you're interested.";break;case"alpha":p="Please ",h="Hello, I am interesting in getting access to the ".concat(S," ").concat(b.type,"."),m=" for access to this destination.";break;default:p=null,h=null,m=null}"sync-logs"===S&&(p=null,h=null,m=null)}}else if(P){var N,M=O.split("/"),F=M[M.length-1],B=w.find((function(e){return e.slug===F}));R=null!==(N=null===B||void 0===B?void 0:B.icon)&&void 0!==N?N:null,v=B.vendorApiDocsUrl,g=B.vendorApiStatusUrl,t=B.vendorAbout}return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.F,{title:S,description:k,noindex:D}),(0,r.jsxs)(i.kC,{width:"100%",justify:"center",gap:{base:0,xl:12},px:{base:4,md:6,lg:8},children:[(0,r.jsx)(s.o,{children:(0,r.jsxs)(i.xu,{as:"article",children:[(0,r.jsxs)(i.kC,{align:"center",mb:6,children:[R&&(0,r.jsx)(o.Ee,{src:R,sx:{height:"40px",mr:4,objectFit:"contain",flexShrink:0}}),(0,r.jsx)(E.X6,{as:"h1",children:S})]}),t&&(0,r.jsx)(i.xv,{fontWeight:"semibold",children:t}),(v||g)&&(0,r.jsxs)(i.xv,{mt:4,children:["View ",S,"'s"," ",v&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(E.rU,{href:v,variant:"inline",children:"documentation"}),g?" and ":""]}),g&&(0,r.jsx)(E.rU,{href:g,variant:"inline",children:"status page"}),"."]}),"deprecated"===n&&(0,r.jsxs)(E.v3,{children:["This integration has been deprecated","",". New syncs cannot be created, but existing syncs will continue to run","","."]}),p&&(0,r.jsxs)(E.kI,{children:[p,h&&(0,r.jsx)(E.cu,{pylonText:h,linkText:"contact us"}),m]}),(0,r.jsx)(f.M,{children:y})]})}),(0,r.jsxs)(i.kC,{as:"aside",display:["none","none","none","none","flex","flex"],direction:"column",pos:"sticky",top:"calc(var(--theme-sizes-header) + 1.5rem)",alignSelf:"flex-start",width:"260px",flexShrink:0,maxHeight:"calc(100vh - var(--theme-sizes-header) - 3.5rem)",children:[(0,r.jsx)(d,{date:T}),(0,r.jsx)(C,{toc:j}),(0,r.jsx)(u.x,{})]})]}),(0,r.jsx)(c.$,{})]})},T=n(41799),R=n(69396),O=n(99534);var P=n(13375);var A=n(91566);function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||(0,P.Z)(e,t)||(0,A.Z)(e,t)||function(){throw new TypeError("Invalid attempt to de
1structure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var I=n(97375),N=n(10894),M=n(5993),F=n(37496),B=n(15031),L=n(26450),z=n(40242);function U(){return U=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U.apply(this,arguments)}function H(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var V=["onChange","defaultIndex","index","allowMultiple","allowToggle"],W=["isDisabled","isFocusable","id"],G=(0,z.n)(),q=G[0],Z=(G[1],G[2]),$=G[3];function Y(e){var t=e.onChange,n=e.defaultIndex,r=e.index,i=e.allowMultiple,o=e.allowToggle,a=H(e,V);!function(e){var t=e.index||e.defaultIndex,n=!(0,B.o8)(t)&&!(0,B.kJ)(t)&&e.allowMultiple;(0,B.ZK)({condition:!!n,message:"If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: "+typeof t+","})}(e),function(e){(0,B.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=Z(),u=(0,m.useState)(-1),c=u[0],l=u[1];(0,I.zq)((function(){l(-1)}));var d=(0,I.Tx)({value:r,defaultValue:function(){return i?null!=n?n:[]:null!=n?n:-1},onChange:t}),f=d[0],p=d[1];return{index:f,setIndex:p,htmlProps:a,getAccordionItemProps:function(e){var t=!1;null!==e&&(t=(0,B.kJ)(f)?f.includes(e):f===e);return{isOpen:t,onChange:function(t){if(null!==e)if(i&&(0,B.kJ)(f)){var n=t?(0,B.jX)(f,e):(0,B.cl)(f,e);p(n)}else t?p(e):o&&p(-1)}}},focusedIndex:c,setFocusedIndex:l,descendants:s}}var K=(0,L.kr)({name:"AccordionContext",errorMessage:"useAccordionContext: `context` is undefined. Seems you forgot to wrap the accordion components in `<Accordion />`"}),X=K[0],Q=K[1];function J(e){var t=e.isDisabled,n=e.isFocusable,r=e.id,i=H(e,W),o=Q(),a=o.getAccordionItemProps,s=o.setFocusedIndex,u=(0,m.useRef)(null),c=(0,I.ZS)(r,"accordion-button","accordion-panel"),l=c[0],d=c[1];!function(e){(0,B.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 f=$({disabled:t&&!n}
1),p=f.register,h=f.index,v=f.descendants,g=a(-1===h?null:h),y=g.isOpen,b=g.onChange;!function(e){(0,B.ZK)({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}({isOpen:y,isDisabled:t});var x=(0,m.useCallback)((function(){null==b||b(!y),s(h)}),[h,s,y,b]),_=(0,m.useCallback)((function(e){var t={ArrowDown:function(){var e=v.nextEnabled(h);e&&(0,B.T_)(e.node)},ArrowUp:function(){var e=v.prevEnabled(h);e&&(0,B.T_)(e.node)},Home:function(){var e=v.firstEnabled();e&&(0,B.T_)(e.node)},End:function(){var e=v.lastEnabled();e&&(0,B.T_)(e.node)}}[(0,B.uh)(e)];t&&(e.preventDefault(),t(e))}),[v,h]),w=(0,m.useCallback)((function(){s(h)}),[s,h]),S=(0,m.useCallback)((function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),U({},e,{type:"button",ref:(0,L.lq)(p,u,n),id:l,disabled:!!t,"aria-expanded":!!y,"aria-controls":d,onClick:(0,B.v0)(e.onClick,x),onFocus:(0,B.v0)(e.onFocus,w),onKeyDown:(0,B.v0)(e.onKeyDown,_)})}),[l,t,y,x,w,_,d,p]),k=(0,m.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),U({},e,{ref:t,role:"region",id:d,"aria-labelledby":l,hidden:!y})}),[l,y,d]);return{isOpen:y,isDisabled:t,isFocusable:n,onOpen:function(){null==b||b(!0)},onClose:function(){null==b||b(!1)},getButtonProps:S,getPanelProps:k,htmlProps:i}}var ee=["children","reduceMotion"],te=["htmlProps","descendants"],ne=["htmlProps"],re=(0,M.Gp)((function(e,t){var n=e.children,r=e.reduceMotion,i=H(e,ee),o=(0,M.jC)("Accordion",i),a=Y((0,M.Lr)(i)),s=a.htmlProps,u=a.descendants,c=H(a,te),l=m.useMemo((function(){return U({},c,{reduceMotion:!!r})}),[c,r]);return m.createElement(q,{value:u},m.createElement(X,{value:l},m.createElement(M.Fo,{value:o},m.createElement(M.m$.div,U({ref:t},s,{className:(0,B.cx)("chakra-accordion",i.className),__css:o.root}),n))))}));B.Ts&&(re.displayName="Accordion");var ie=(0,L.kr)({name:"AccordionItemContext",errorMessage:"useAccordionItemContext: `context` is undefined. Seems you forgot to wrap the accordion item parts in `<AccordionItem />` "}),oe=ie[0],ae=ie[1],se=(0,M.Gp)((function(e,t){var n=e.children,r=e.className,i=J(e),o=i.htmlProps,a=H(i,ne),s=U({},(0,M.yK)().container,{overflowAnchor:"none"}),u=m.useMemo((function(){return a}),[a]);return m.createElement(oe,{value:u},m.createElement(M.m$.div,U({ref:t},o,{className:(0,B.cx)("chakra-accordion__item",r),__css:s}),(0,B.Pu)(n,{isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled})))}));B.Ts&&(se.displayName="AccordionItem");var ue=(0,M.Gp)((function(e,t){var n=(0,ae().getButtonProps)(e,t),r=U({display:"flex",alignItems:"center",width:"100%",outline:0},(0,M.yK)().button);return m.createElement(M.m$.button,U({},n,{className:(0,B.cx)("chakra-accordion__button",e.className),__css:r}))}));B.Ts&&(ue.displayName="AccordionButton");var ce=(0,M.Gp)((function(e,t){var n=Q().reduceMotion,r=ae(),i=r.getPanelProps,o=r.isOpen,a=i(e,t),s=(0,B.cx)("chakra-accordion__panel",e.className),u=(0,M.yK)();n||delete a.hidden;var c=m.createElement(M.m$.div,U({},a,{__css:u.panel,className:s}));return n?c:m.createElement(F.UO,{in:o},c)}));B.Ts&&(ce.displayName="AccordionPanel");B.Ts;var le=n(96486),de=n(11163),fe=[{label:"Get started",path:"/getting-started",nav:[{label:"What is Hightouch?",path:"/welcome",href:"/"},{label:"How data activation works",path:"/concepts"},{label:"Start here",nav:[{label:"Platform admins",path:"/it"},{label:"Data teams",path:"/data"},{label:"Marketers",path:"/business"}]}]},{label:"Syncs",path:"/syncs",nav:[{label:"Overview",path:"/overview"},{label:"Set up a sync",nav:[{label:"Create your first sync",path:"/create-your-first-sync"},{label:"Choose a sync type and mode",path:"/types-and-modes"},{label:"Match records to destination records",path:"/record-matching"},{label:"Map model columns to destination fields",path:"/mapping-data"},{label:"Array expansion",path:"/array-expansion"},{label:"Sync array identifiers to audiences",path:"/array-identifier-fan-out"},{label:"Data types and casting",href:"/models/data-types-casting"},{label:"Data extraction",path:"/data-extraction"}]},{label:"Run and schedule syncs",nav:[{label:"Schedule a sync in the UI",path:"/schedule-sync-ui"},{label:"Run syncs in a sequence",path:"/schedule-sync-with-sequences"},{label:"Trigger a sync with dbt Cloud",href:"/extensions/dbt-cloud"},{label:"Trigger a sync with Fivetran",href:"/extensions/fivetran"},{label:"Trigger a sync with Airflow",href:"/extensions/airflow"},{label:"Trigger a sync with Dagster",href:"/extensions/dagster"},{label:"Trigger a sync with Prefect",href:"/extensions/prefect"},{label:"Trigger a sync with the API",href:"/developer-tools/api-guide"}]},{label:"Monitor and troubleshoot",nav:[{label:"Debug a sync run",path:"/debugger"},{label:"Sync retries",path:"/retries"},{label:"Configure sync alerts",path:"/alerting"},{label:"Warehouse Sync Logs",path:"/warehouse-sync-logs"},{label:"Sync error codes",href:"/developer-tools/error-codes"}]},{label:"Advanced sync behavior",nav:[{label:"Change data capture (CDC)",path:"/cdc"},{label:"Resync, reset CDC, or clear and fill",path:"/resync-reset-clear"},{label:"Use the Lightning Sync Engine",path:"/lightning-sync-engine"}]}]},{label:"Models",path:"/models",nav:[{label:"Overview",path:"/creating-models"},{label:"Data types and casting",path:"/data-types-casting"}
1,{label:"Choose a modeling method",nav:[{label:"SQL editor",path:"/sql-editor"},{label:"Table selector",path:"/table-selector"},{label:"dbt models and analyses",href:"/extensions/dbt-models"},{label:"Looker Looks",href:"/extensions/looker-models"},{label:"Sigma workbooks",href:"/extensions/sigma"},{label:"Resolve SQL compilation errors",path:"/sql-compilation-errors"}]}]},{label:"Hightouch Events",path:"/events",nav:[{label:"Overview",path:"/overview"},{label:"Plan your implementation",path:"/implementation-plan"},{label:"Migrate to Hightouch Events",nav:[{label:"Overview",path:"/migration-guide/overview"},{label:"1. Prepare for migration",path:"/migration-guide/preparing-for-migration"},{label:"2. Implement Hightouch Events SDKs",path:"/migration-guide/implementing-hightouch-events"},{label:"3. Validate your migration",path:"/migration-guide/validating-your-migration"},{label:"4. Unify historical and new data",path:"/migration-guide/unifying-data"},{label:"5. Update downstream applications and destinations",path:"/migration-guide/updating-downstream-applications"}]},{label:"Migrate from a specific platform",private:!0,nav:[{label:"Segment",path:"/migration-guide/segment",private:!0},{label:"RudderStack",path:"/migration-guide/rudderstack",private:!0},{label:"mParticle",path:"/migration-guide/mparticle",private:!0},{label:"Amplitude",path:"/migration-guide/amplitude",private:!0}]},{label:"Collect events",nav:[{label:"Overview",path:"/sources/overview"},{label:"Browser (JavaScript)",path:"/sdks/browser"},{label:"Node.js",path:"/sdks/nodejs"},{label:"Ruby",path:"/sdks/ruby"},{label:"Go",path:"/sdks/go"},{label:"PHP",path:"/sdks/php"},{label:"Java",path:"/sdks/java"},{label:"Python",path:"/sdks/python"},{label:"iOS",path:"/sdks/ios"},{label:"Android",path:"/sdks/android"},{label:"React Native",path:"/sdks/react-native"},{label:"Flutter",path:"/sdks/flutter"},{label:"C# (.NET)",path:"/sdks/csharp"},{label:"HTTP API",path:"/sdks/http"},{label:"Webhook",path:"/sources/webhook"},{label:"Kafka",path:"/sources/kafka"},{label:"Confluent",href:"/events/sources/kafka"},{label:"Redpanda",href:"/events/sources/kafka"},{label:"Google Pub/Sub",path:"/sources/google-pubsub"},{label:"First-party tracking",path:"/first-party-tracking"}]},{label:"Data contracts",nav:[{label:"Managing contracts",path:"/contracts/management"},{label:"Events CLI",path:"/contracts/cli"},{label:"Handling violations",path:"/contracts/violations"},{label:"Managing via Git Sync",href:"/extensions/git-sync#event-contract-schema"}]},{label:"Transform events with functions",nav:[{label:"Functions overview",path:"/functions/overview"},{label:"Create a function",path:"/functions/getting-started"},{label:"Handling webhooks",path:"/functions/handling-webhooks"}]},{label:"Send events to your warehouse",nav:[{label:"Configure warehouse destination",path:"/warehouses/warehouse"},{label:"Error handling",path:"/warehouses/error-handling"}]},{label:"Stream events to destinations",nav:[{label:"Event streaming",path:"/event-streaming"}]},{label:"Manage identity",private:!0,nav:[{label:"How identity works",path:"/identity",private:!0}]},{label:"Manage consent",nav:[{label:"Consent Manager",path:"/consent/consent-manager"},{label:"OneTrust",path:"/consent/onetrust"}]},{label:"Monitor and troubleshoot",nav:[{label:"Monitor events",path:"/monitoring"},{label:"Troubleshoot events",path:"/troubleshooting"}]},{label:"Reference",nav:[{label:"Event types and payload structure",path:"/event-spec"},{label:"Warehouse schema",path:"/warehouses/schema"}]}]},{label:"Identity Resolution",path:"/identity-resolution",private:!0,nav:[{label:"Overview",path:"/overview"},{label:"Quick start",path:"/get-started"},{label:"How Identity Resolution works",nav:[{label:"Architecture and concepts",path:"/how-it-works"},{label:"Deterministic matching",path:"/deterministic"}]},{label:"Set up your identity graph",nav:[{label:"Prepare your data",path:"/prepare-data"},{label:"Create an identity graph",path:"/identity-graph"},{label:"Identifier rules",path:"/identifier-rules"},{label:"Golden Record",path:"/golden-record"}]},{label:"Use identity data",nav:[{label:"Lookup table usage",path:"/usage"}]},{label:"Monitor identity graphs",nav:[{label:"Review match results",path:"/monitor"},{label:"Troubleshooting",path:"/troubleshooting"},{label:"Supercluster detection",path:"/supercluster"},{label:"Profile reprocessing API",path:"/profile-reprocessing"}]},{label:"Manage permissions",nav:[{label:"Permissions",path:"/permissions"}]}]},{label:"Probabilistic Identity Resolution",path:"/probabilistic-idr",private:!0,nav:[{label:"Overview",path:"/overview"},{label:"Set up storage",nav:[{label:"AWS",path:"/aws"},{label:"Google Cloud Storage",path:"/gcs"},{label:"Azure Blob Storage",path:"/azure"}]}]},{label:"Customer Studio",path:"/customer-studio",nav:[{label:"Overview",path:"/overview"},{label:"Plan and configure",nav:[{label:"Plan your data model",path:"/data-model"},{label:"Schema",path:"/schema"},{label:"General models",path:"/general-models"},{label:"Sampling",path:"/sampling"},{label:"Schema Git Sync",path:"/schema-setup"}]}
1,{label:"Build audiences",nav:[{label:"Build an audience",path:"/usage"},{label:"Agent prompting guide",path:"/agents"},{label:"Audience filters",path:"/audience-filters"},{label:"Traits",path:"/traits"},{label:"Templates",path:"/templates"}]},{label:"Understand audiences",nav:[{label:"Insights",path:"/insights"},{label:"Audience dashboards",path:"/audience-overviews"},{label:"Profiles",path:"/profiles"},{label:"Audience snapshots",path:"/audience-snapshots"}]},{label:"Activate",nav:[{label:"Sync audiences",path:"/syncs"},{label:"Priority lists",path:"/priority-lists"}]},{label:"Run workflows",nav:[{label:"Overview",path:"/journeys"},{label:"Create a journey",path:"/journeys/create"},{label:"Journey tiles",path:"/journeys/tiles"},{label:"Test and launch",path:"/journeys/activate"},{label:"Monitor and troubleshoot",path:"/journeys/monitor"},{label:"Assign coupons",path:"/coupons"}]},{label:"Personalize and test",nav:[{label:"Predictive traits",path:"/predictive-traits"},{label:"Catalog recommendations",path:"/catalog-recommendations"},{label:"Lookalike audiences",path:"/lookalike-audiences"},{label:"Experiments",path:"/experiments"}]},{label:"Govern",nav:[{label:"Destination rules",path:"/destination-rules"},{label:"Subsets",path:"/subsets"},{label:"Data masking",path:"/data-masking"},{label:"OneTrust Native Snowflake App",path:"/onetrust"}]}]},{label:"Real-time personalization",path:"/real-time",nav:[{label:"Overview",path:"/overview"},{label:"How it works",path:"/architecture",private:!0},{label:"Set up real-time audiences",path:"/setup"},{label:"Personalization API",path:"/personalization-api"}]},{label:"AI Decisioning",path:"/ai-decisioning",nav:[{label:"Overview",path:"/overview"},{label:"Set up AI Decisioning",nav:[{label:"Configuration",path:"/configuration"},{label:"Prepare data for AID",path:"/prepare-data"},{label:"Data handling and privacy",path:"/security",private:!0},{label:"User feature matrix",path:"/user-feature-matrix",private:!0},{label:"Group assignment",path:"/group-assignment",private:!0},{label:"Permissions",path:"/permissions",private:!0}]},{label:"Connect destinations",nav:[{label:"Braze",path:"/braze"},{label:"Iterable",path:"/iterable"},{label:"Salesforce Marketing Cloud",path:"/sfmc"},{label:"Custom destinations",path:"/custom-destinations"}]},{label:"Build agents and messages",nav:[{label:"Create an agent",path:"/agents"},{label:"Messages",path:"/messages"}]},{label:"Test and launch",nav:[{label:"QA guide",path:"/qa-guide"}]},{label:"Monitor agents",nav:[{label:"Insights",path:"/insights"},{label:"Inspector",path:"/inspector"},{label:"Health",path:"/agent-health"},{label:"Alerting",path:"/agent-alerting"}]},{label:"Optimize agents",nav:[{label:"Smart suppression",path:"/smart-suppression",private:!0},{label:"Tags",path:"/tags"},{label:"Content analysis and suggestions",path:"/content-analysis"}]}]},{label:"Agents",path:"/agents",private:!0,nav:[{label:"Overview",path:"/overview"},{label:"Which agent should I use?",path:"/compare-agents",dividerAfter:!0},{label:"Chats",path:"/chats"},{label:"Reports",path:"/reports"},{label:"Custom agents",path:"/custom-agents"},{label:"Settings",path:"/settings"}]},{label:"Context Hub",path:"/context-hub",private:!0,dividerAfter:!0,nav:[{label:"Overview",path:"/overview"},{label:"Set up your context",path:"/setup",dividerAfter:!0},{label:"Connections",path:"/connections"},{label:"Teach agents your business",path:"/business-context"},{label:"Set content and creative rules",path:"/creative"},{label:"Sync from external sources",path:"/external"}]},{label:"Ad Studio",path:"/ad-studio",private:!0,nav:[{label:"Overview",path:"/overview"},{label:"Prompting guide",path:"/prompting-guide"},{label:"Create ads",nav:[{label:"Create ads",path:"/ads"},{label:"Refine and collaborate",path:"/refine"}]},{label:"Launch ads",nav:[{label:"Launch to platforms",path:"/launch"},{label:"Hand off to Figma",path:"/figma",dividerAfter:!0}]},{label:"Insights",path:"/insights"},{label:"Assets",path:"/assets"}]},{label:"Lifecycle Studio",path:"/lifecycle-studio",private:!0,nav:[{label:"Overview",path:"/overview"},{label:"Add assets",nav:[{label:"Templates",path:"/templates"},{label:"Images",path:"/images"}]},{label:"Create content",nav:[{label:"Campaigns",path:"/campaigns"},{label:"Messages",path:"/messages"}]},{label:"Workflow management",nav:[{label:"Asana",path:"/asana"}]}]},{label:"Native Delivery",path:"/native-delivery",private:!0,nav:[{label:"Overview",path:"/overview"},{label:"Build a message",nav:[{label:"Build an email",path:"/emails"},{label:"Build an SMS",path:"/sms"}
1,{label:"Personalize a message",path:"/personalization"},{label:"Preview and test",path:"/preview-and-test"}]},{label:"Send a message",nav:[{label:"Send a campaign",path:"/campaigns"},{label:"Send from a journey",path:"/journeys"},{label:"Send with the API",path:"/api-triggered-sends"}]},{label:"Manage sending",nav:[{label:"Approvals",path:"/approvals"},{label:"Subscriptions and consent",path:"/subscriptions-and-consent"},{label:"Suppression lists",path:"/suppression-lists"},{label:"Reporting",path:"/reporting"},{label:"Deliverability",path:"/deliverability"},{label:"Migrate from another platform",path:"/migration"}]}]},{label:"Intelligence",path:"/campaign-intelligence",nav:[{label:"Overview",path:"/overview"},{label:"Define metrics",nav:[{label:"Metrics",path:"/metrics"}]},{label:"Build charts",nav:[{label:"Charts overview",path:"/charts"},{label:"Insights",path:"/insights"},{label:"Funnels",path:"/funnels"},{label:"Experiments",path:"/experiments"}]},{label:"Create custom dashboards",nav:[{label:"Dashboards",path:"/dashboards"}]}]},{label:"Sources",path:"/sources",nav:[{label:"Overview",path:"/overview"},{label:"Manage warehouse compute",path:"/warehouse-compute"},{label:"Query tags",path:"/query-tags",private:!0},{label:"Sample datasets",path:"/sample-data",dividerAfter:!0}]},{label:"Destinations",path:"/destinations",nav:[{label:"Overview",dividerAfter:!0,path:"/overview"}]},{label:"Match Booster",path:"/match-booster",nav:[{label:"Overview",path:"/overview"},{label:"Quick start",path:"/quick-start"},{label:"Set up Match Booster",nav:[{label:"Configure on a model",path:"/configure-model"},{label:"Enable in syncs",path:"/enable-in-syncs"}]},{label:"How Match Booster works",nav:[{label:"Offerings",path:"/offerings"},{label:"Matching methods",path:"/matching-options"},{label:"Targeting levels",path:"/targeting-levels"}]},{label:"Common questions",path:"/faqs"}]},{label:"Extensions",path:"/extensions",nav:[{label:"Add a connection",path:"/connections"},{label:"Set up alerting",nav:[{label:"Alerting overview",href:"/syncs/alerting"},{label:"PagerDuty",path:"/pagerduty"},{label:"Datadog",path:"/datadog"}]},{label:"Connect modeling tools",nav:[{label:"dbt models and analyses",path:"/dbt-models"},{label:"dbt Cloud models",path:"/dbt-cloud#dbt-cloud-model-sync"},{label:"Looker Looks",path:"/looker-models"},{label:"Sigma workbooks",path:"/sigma"}]},{label:"Schedule syncs with orchestrators",nav:[{label:"dbt Cloud",path:"/dbt-cloud"},{label:"Fivetran",path:"/fivetran"},{label:"Airflow",path:"/airflow"},{label:"Dagster",path:"/dagster"},{label:"Prefect",path:"/prefect"},{label:"Mage",path:"/mage"}]},{label:"Manage version control",nav:[{label:"Git version control",path:"/git-sync"},{label:"dbt observability layer",path:"/dbt-observability"}]}]},{label:"Workspace management",path:"/workspace-management",nav:[{label:"Overview",path:"/overview"},{label:"Governance best practices",path:"/governance"},{label:"Set up workspaces",path:"/workspaces"},{label:"Manage access",nav:[{label:"Manage users and groups",path:"/user-management"},{label:"Roles",path:"/roles"},{label:"SSO and SCIM",path:"/sso"},{label:"Spaces",path:"/spaces",private:!0}]},{label:"Manage changes",nav:[{label:"Approval flows",path:"/approval-flows"},{label:"Environments",path:"/environments"},{label:"Audit logs",path:"/audit-logs"},{label:"Usage",path:"/lineage"}]},{label:"Organize resources",nav:[{label:"Folders and labels",path:"/folders-filters"}]}]},{label:"Pricing",path:"/pricing",nav:[{label:"Self-serve pricing",path:"/ss-pricing"},{label:"Business tier pricing",path:"/bt-pricing"}]},{label:"Security and compliance",path:"/security",nav:[{label:"Overview",path:"/overview"},{label:"Storage",path:"/storage"},{label:"Regions",path:"/regions"},{label:"Networking",path:"/networking",nav:[{label:"IP addresses",path:"/networking#ip-addresses"},{label:"SSH tunneling",path:"/ssh-tunneling"}]},{label:"Amazon Web Services",nav:[{label:"Overview",path:"/aws"},{label:"AWS PrivateLink",path:"/aws/privatelink"}]},{label:"Google Cloud",nav:[{label:"Overview",path:"/gcp"},{label:"Private Service Connect",path:"/gcp/private-service-connect"}]},{label:"Microsoft Azure",nav:[{label:"Overview",path:"/azure"},{label:"Private Link",path:"/azure/private-link"}]}]},{label:"Developer tools",path:"/developer-tools",nav:[{label:"APIs",nav:[{label:"API overview",path:"/api-guide"},{label:"API reference",href:"/api-reference"},{label:"Personalization API",href:"/real-time/personalization-api"}]},{label:"CLI",nav:[{label:"CLI overview",path:"/cli-guide"},{label:"CLI reference",path:"/cli-reference"}]},{label:"AI tools",nav:[{label:"Docs for AI tools",path:"/agent-resources"}]},{label:"Reference",nav:[{label:"Error codes",path:"/error-codes"},{label:"Warehouse tables",path:"/warehouse-tables"}]}]},{label:"AI integrations",path:"/ai-integrations",nav:[{label:"MCP overview",path:"/mcp"},{label:"MCP configuration",path:"/mcp-server",private:!0},{label:"Snowflake CoWork",path:"/snowflake-cowork"}]},{label:"Changelog",path:"/changelog"}],pe=function(){var e=function(e){var t=fe.find((function(t){return t.label===e}));if(!t)throw new Error('Nav item "'.concat(e,'" not found in config'));return t};return[{heading:"Get started",items:[{label:"What is Hightouch?",path:"/getting-started/welcome",href:"/"},{label:"Start here",path:"/getting-started",nav:[{label:"Platform admins",path:"/it"},{label:"Data teams",path:"/data"},{label:"Marketers",path:"/business"}]}]},{heading:"Marketing",items:[e("Customer Studio"),e("Agents"),e("Context Hub"),e("Ad Studio"),e("Lifecycle Studio"),e("Native Delivery"),e("AI Decisioning"),e("Intelligence")]},{heading:"Data platform",items:[{label:"How data activation works",path:"/getting-started/concepts"},e("Models"),e("Syncs"),e("Hightouch Events"),e("Real-time personalization"),e("Identity Resolution"),e("Probabilistic Identity Resolution"),e("Match Booster")]},{heading:"Integrations",items:[e("Sources"),e("Destinations"),e("Extensions"),e("AI integrations")]},{heading:"Manage",items:[e("Workspace management"),e("Security and compliance")]},{heading:"Resources",items:[e("Pricing"),e("Developer tools"),e("Changelog")]}]}(),he={cursor:"pointer",userSelect:"none",fontSize:"md",fontWeight:"normal",width:"100%",py:1,_focus:{outline:"none !important"},_focusVisible:{outline:"none",boxShadow:"outline"}};function me(e){var t,n=e.item,o=e.isActive,a=e.path,s=e.subNavLeftPadding,u=e.toggle;return(0,r.jsx)(E.rU,{href:null!==(t=n.href)&&void 0!==t?t:a,display:"flex",alignItems:"center",minHeight:{base:"44px",md:"32px"},pl:s,pr:2,borderRadius:"lg",fontSize:"md",fontWeight:"normal",color:o?"primary.pressed":"text.secondary",bg:o?"primary.background":"transparent",transition:"background-color 150ms ease-out, color 150ms ease-out",sx:{touchAction:"manipulation"},outline:"none",_focusVisible:{boxShadow:"outline"},_hover:o?void 0:{bg:"base.background",color:"text.primary"},onClick:u,children:(0,r.jsx)(i.xv,{as:"span",lineHeight:"20px",children:n.label})})}var ve=n(72923);function ge(e){var t=e.isActive,n=e.item,o=e.children;return(0,r.jsx)(se,{pos:"relative",w:"100%",children:function(e){var a=e.isExpanded;return(0,r.jsxs)(m.Fragment,{children:[(0,r.jsx)(ue,{borderRadius:"md",_focusVisible:{outline:"none !important",boxShadow:"outline"},children:(0,r.jsx)(i.kC,(0,R.Z)((0,T.Z)({},he),{align:"center",borderRadius:"md",color:t?"text.primary":"text.secondary",height:{base:"44px",md:"36px"},px:2,whiteSpace:"nowrap",sx:{touchAction:"manipulation"},transition:"150ms background-color ease-out, 150ms color ease-out",_hover:{bg:"base.background"},children:(0,r.jsxs)(i.kC,{align:"center",justify:"space-between",flex:1,children:[(0,r.jsx)(i.xv,{as:"span",fontWeight:"medium",lineHeight:"20px",children:n.label}),(0,r.jsx)(ve.XC,{boxSize:4,transition:"transform 0.15s ease-out",transform:a?"rotate(90deg)":"rotate(0deg)"})]})}))}),(0,r.jsx)(ce,{children:(0,r.jsx)(i.xu,{as:"ul",listStyleType:"none",children:o})})]})}})}var ye=n(81912),be=JSON.parse('{"cZ":["/events/identity","/events/migration-guide/segment","/events/migration-guide/rudderstack","/events/migration-guide/mparticle","/events/migration-guide/amplitude","/sources/query-tags","/identity-resolution/overview","/identity-resolution/get-started","/identity-resolution/how-it-works","/identity-resolution/deterministic","/identity-resolution/prepare-data","/identity-resolution/identity-graph","/identity-resolution/identifier-rules","/identity-resolution/golden-record","/identity-resolution/usage","/identity-resolution/monitor","/identity-resolution/troubleshooting","/identity-resolution/supercluster","/identity-resolution/profile-reprocessing","/identity-resolution/permissions","/probabilistic-idr/overview","/probabilistic-idr/aws","/probabilistic-idr/gcs","/probabilistic-idr/azure","/real-time/architecture","/ai-decisioning/security","/ai-decisioning/user-feature-matrix","/ai-decisioning/group-assignment","/ai-decisioning/smart-suppression","/workspace-management/spaces","/ai-decisioning/permissions","/ai-integrations/mcp-server","/ad-studio/overview","/ad-studio/prompting-guide","/ad-studio/ads","/ad-studio/refine","/ad-studio/launch","/ad-studio/figma","/ad-studio/insights","/ad-studio/assets","/agents/overview","/agents/chats","/agents/reports","/agents/custom-agents","/agents/settings","/agents/compare-agents","/context-hub/overview","/context-hub/setup","/context-hub/connections","/context-hub/business-context","/context-hub/creative","/context-hub/external","/lifecycle-studio/
1overview","/lifecycle-studio/campaigns","/lifecycle-studio/messages","/lifecycle-studio/templates","/lifecycle-studio/images","/lifecycle-studio/asana","/destinations/pubmatic","/native-delivery/overview","/native-delivery/emails","/native-delivery/sms","/native-delivery/personalization","/native-delivery/preview-and-test","/native-delivery/campaigns","/native-delivery/journeys","/native-delivery/api-triggered-sends","/native-delivery/subscriptions-and-consent","/native-delivery/reporting","/native-delivery/deliverability","/native-delivery/approvals","/native-delivery/suppression-lists","/native-delivery/migration"]}'),xe=new Set(be.cZ),_e=function(e){var t,n,o=(0,de.useRouter)(),a=(0,m.useState)([]),s=a[0],u=a[1],c=(0,m.useMemo)((function(){var t="/".concat(o.pathname.split("/")[1]),n=pe.flatMap((function(e){return e.items})).filter((function(t){var n;return t.nav&&(!t.private||(null===(n=e.user)||void 0===n?void 0:n.private))}));return n.findIndex((function(e){return(e.path||"/".concat((0,le.kebabCase)(e.label)))===t}))}),[o.pathname,null===(t=e.user)||void 0===t?void 0:t.private]);(0,m.useEffect)((function(){-1!==c&&u([c])}),[c]);var l,d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e.map((function(e){return f(e,t,n)}))},f=function(t,n){var a,s,u,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",l="".concat(c).concat(null!==(u=t.path)&&void 0!==u?u:"/".concat((0,le.kebabCase)(t.label)));if(t.private&&!(null===(a=e.user)||void 0===a?void 0:a.private))return null;var f=2===n&&(null===(s=t.nav)||void 0===s?void 0:s.length);if(f)return(0,r.jsxs)(i.xu,{as:"li",listStyleType:"none",children:[(0,r.jsx)(i.xv,{as:"span",display:"block",textStyle:"mono",fontSize:"xs",fontWeight:"semibold",letterSpacing:"0.08em",textTransform:"uppercase",color:"text.tertiary",ml:6,mt:1,pt:4,pb:2,borderTop:"1px",borderColor:"base.divider",children:t.label}),(0,r.jsx)(i.xu,{as:"ul",listStyleType:"none",children:t.nav&&d(t.nav,n+1,c)})]},t.label);var p=o.asPath===l||"/getting-started/welcome"===o.pathname&&"/getting-started/welcome"===l;return(0,r.jsxs)(m.Fragment,{children:[(0,r.jsx)(i.xu,{as:"li",children:(0,r.jsx)(me,{item:t,isActive:p,path:l,subNavLeftPadding:6,toggle:e.toggle})}),t.dividerAfter&&(0,r.jsx)(i.xu,{as:"li",mx:6,my:1,borderTop:"1px",borderColor:"base.divider"})]},t.label)},h=function(t){if("Sources"===t.label){var n,r,i=null===(n=e.sources)||void 0===n?void 0:n.filter((function(e){var t=e.status;return"released"===t||"alpha"===t})).map((function(e){var t=e.name,n=e.slug;return{label:t,path:"/".concat(n.replace("-source",""))}})).filter((function(t){var n,r=t.path;return!xe.has("/sources".concat(r))||(null===(n=e.user)||void 0===n?void 0:n.private)}));return(0,R.Z)((0,T.Z)({},t),{nav:(0,p.Z)(null!==(r=t.nav)&&void 0!==r?r:[]).concat((0,p.Z)(null!==i&&void 0!==i?i:[]))})}if("Destinations"===t.label){var o,a,s=null===(o=e.destinations)||void 0===o?void 0:o.filter((function(e){var t=e.slug,n=e.status,r=e.approvalRequirement;return"hightouch-personalization-api"!==t&&("released"===n||"alpha"===n)&&"to_view"!==r})).map((function(e){var t=e.name,n=e.slug,r=void 0,i=void 0;return"twitter"===n&&(r="x"),"webhook-v2"===n&&(r="http-request"),"hightouch-personalization-api"===n&&(r="personalization-api"),"Google Sheets - User Account"===t&&(i="Google Sheets"),{label:i||t,path:"/".concat(r||n.replace("-destination","").replace("facebook","meta"))}})).filter((function(t){var n,r=t.path;return!xe.has("/destinations".concat(r))||(null===(n=e.user)||void 0===n?void 0:n.private)}));return(0,R.Z)((0,T.Z)({},t),{nav:(0,p.Z)(null!==(a=t.nav)&&void 0!==a?a:[]).concat((0,p.Z)(null!==s&&void 0!==s?s:[]))})}return t},v=(0,m.useMemo)((function(){return pe.map((function(t){return(0,R.Z)((0,T.Z)({},t),{items:t.items.filter((function(t){var n;return!t.private||(null===(n=e.user)||void 0===n?void 0:n.private)})).map(h)})})).filter((function(e){return e.items.length>0}))}),[e.destinations,e.sources,null===(n=e.user)||void 0===n?void 0:n.private]),g=(0,m.useMemo)((function(){var t;return v.map((function(n,a){return(0,r.jsxs)(m.Fragment,{children:[n.heading&&(0,r.jsx)(i.xu,{pt:0===a?0:7,pb:1,pl:2,children:(0,r.jsx)(i.xv,{textStyle:"mono",fontSize:"xs",fontWeight:"semibold",letterSpacing:"0.08em",textTransform:"uppercase",color:"text.tertiary",children:n.heading})}),!n.heading&&a>0&&(0,r.jsx)(i.xu,{mx:4,my:2,borderTop:"1px",borderStyle:"dashed",borderColor:"base.divi
1der"}),(0,r.jsx)(i.xu,{as:"ul",listStyleType:"none",pl:n.heading?2:0,children:n.items.map((function(t){var n,a,s=Boolean(t.nav),u=null!==(n=t.path)&&void 0!==n?n:"/".concat((0,le.kebabCase)(t.label));if(s){var c=o.pathname.startsWith(u);return(0,r.jsx)(i.xu,{as:"li",children:(0,r.jsx)(ge,{isActive:c,item:t,children:t.nav&&d(t.nav,2,u)})},t.label)}var l=null!==(a=t.href)&&void 0!==a?a:u,f=o.asPath===l||o.pathname===u;return(0,r.jsx)(i.xu,{as:"li",fontSize:"sm",opacity:.8,children:(0,r.jsx)(me,{item:t,isActive:f,path:l,subNavLeftPadding:2,toggle:e.toggle})},t.label)}))})]},"".concat(null!==(t=n.heading)&&void 0!==t?t:"ungrouped","-").concat(a))}))}),[v,o.pathname,o.asPath,d,e.toggle]);return(0,r.jsxs)(i.kC,{as:"nav","aria-label":null!==(l=e.label)&&void 0!==l?l:"Documentation",direction:"column",width:"100%",p:{base:2,md:4},children:[(0,r.jsx)(re,{allowToggle:!0,index:s,onChange:function(e){u(e)},children:g}),(0,r.jsx)(ye.k,{includeChangelog:!0,hideSecondary:!0,primary:"signup",display:{base:"flex",md:"none"},mt:8,mx:6})]})},we=n(15193),Se=n(11606),ke=function(){var e=(0,Se.useKBar)().query;return(0,r.jsx)(we.zx,{display:["inline-flex","inline-flex","none"],variant:"subtle","aria-label":"Search docs",onClick:function(){return e.toggle()},children:(0,r.jsx)(ve.W1,{boxSize:5,fill:"currentColor"})})},Ee=function(e){var t=e.children;return(0,r.jsx)(i.xu,{as:"kbd",display:"inline-flex",alignItems:"center",justifyContent:"center",minW:"18px",height:"18px",px:1,bg:"white",border:"1px solid",borderColor:"base.border",borderRadius:"md",fontSize:"11px",fontFamily:"body",fontWeight:"medium",lineHeight:1,color:"text.tertiary",children:t})},Ce=function(){var e=(0,m.useState)(null),t=e[0],n=e[1];(0,m.useEffect)((function(){"object"===typeof navigator&&n(navigator.userAgent.includes("Mac")?"mac":"windows")}),[]);var o="mac"===t,a=(0,Se.useKBar)().query;return(0,r.jsxs)(i.xu,{as:"button",type:"button","aria-label":"Search docs",display:["none","none","inline-flex"],alignItems:"center",gap:2,width:"100%",minW:0,maxWidth:{base:"220px",md:"260px"}
1,height:"32px",px:2.5,bg:"base.lightBackground",border:"1px solid",borderColor:"base.border",borderRadius:"lg",color:"text.placeholder",fontSize:"md",transitionProperty:"background, border-color",transitionDuration:"150ms",transitionTimingFunction:"ease-out",outline:"none",_focusVisible:{boxShadow:"outline"},_hover:{bg:"white",borderColor:"base.borderHover"},onClick:function(){return a.toggle()},children:[(0,r.jsx)(ve.W1,{boxSize:"15px",fill:"currentColor"}),(0,r.jsx)(i.xv,{as:"span",flex:1,textAlign:"left",fontWeight:"normal",children:"Search docs"}),t&&(0,r.jsxs)(i.xu,{as:"span",display:["none","none","inline-flex"],gap:.5,children:[(0,r.jsx)(Ee,{children:o?"\u2318":"Ctrl"}),(0,r.jsx)(Ee,{children:"K"})]})]})},je=n(44860),Te=(0,N.IU)({displayName:"Logo",viewBox:"0 0 915 106",path:[(0,r.jsx)("path",{d:"M125.29 6.90444L138.062 0.0926128C138.547 -0.166746 139.138 0.175803 139.138 0.709201V35.9624C140.884 33.8826 143.09 32.2139 145.6 31.0737C148.104 29.9335 150.845 29.3561 153.611 29.3805C165.97 29.3805 173.396 37.083 173.396 50.1488V80.3371C173.396 80.7286 173.073 81.0418 172.669 81.0418H159.548C159.145 81.0418 158.821 80.7286 158.821 80.3371V52.0377C158.821 45.1622 155.58 41.1985 149.199 41.1985C143.757 41.1985 139.259 44.854 139.259 53.3541V80.3371C139.259 80.7286 138.936 81.0418 138.532 81.0418H125.643C125.239 81.0418 124.916 80.7286 124.916 80.3371V7.51613C124.916 7.25678 125.062 7.02189 125.295 6.89955L125.29 6.90444Z",fill:"#101111"}),(0,r.jsx)("path",{d:"M278.145 6.9025L291.125 0.0857791C291.609 -0.168686 292.2 0.173863 292.2 0.70726L292.003 35.9653C293.745 33.8856 295.956 32.212 298.46 31.0718C300.964 29.9316 303.706 29.3541 306.477 29.3835C318.821 29.3835 326.247 37.0859 326.247 50.1517V80.3401C326.247 80.7315 325.924 81.0447 325.52 81.0447H312.5C312.096 81.0447 311.773 80.7315 311.773 80.3401V52.0406C311.773 45.1652 308.532 41.2014 302.151 41.2014C296.708 41.2014 292.21 44.8569 292.21 53.357V80.3401C292.21 80.7315 291.887 81.0447 291.483 81.0447H278.595C278.196 81.0447 277.868 80.7315 277.868 80.3401L277.767 7.52398C277.767 7.26462 277.913 7.02484 278.145 6.9025V6.9025Z",fill:"#101111"}),(0,r.jsx)("path",{d:"M551.903 6.90444L564.671 0.0926127C565.155 -0.166746 565.746 0.175803 565.746 0.7092V35.9624C567.493 33.8826 569.699 32.2139 572.203 31.0737C574.707 29.9335 577.453 29.3561 580.22 29.3805C592.563 29.3805 600 37.083 600 50.1488V80.3371C600 80.7286 599.682 81.0418 599.278 81.0418H586.157C585.753 81.0418 585.425 80.7286 585.425 80.3371V52.0377C585.425 45.1622 582.189 41.1985 575.792 41.1985C570.35 41.1985 565.852 44.8539 565.852 53.354V80.3371C565.852 80.7286 565.529 81.0418 565.125 81.0418H552.251C551.848 81.0418 551.524 80.7286 551.524 80.3371V7.51613C551.524 7.25677 551.671 7.02188 551.903 6.89954V6.90444Z",fill:"#101111"}),(0,r.jsx)("path",{d:"M251.077 35.7521C249.103 33.6576 246.69 31.9938 243.999 30.8781C241.308 29.7575 238.4 29.2094 235.472 29.2681C223.648 29.2681 210.048 37.6801 210.048 55.6052C210.048 73.5303 224.173 81.9374 235.27 82.0059C238.248 82.0744 241.207 81.5117 243.938 80.3617C246.669 79.2068 249.103 77.4892 251.077 75.3262V80.0877C251.127 81.7172 250.839 83.3468 250.223 84.8638C249.608 86.3857 248.679 87.7705 247.497 88.9352C246.311 90.0999 244.897 91.015 243.337 91.6364C241.772 92.253 240.101 92.5613 238.41 92.5368C235.371 92.6445 232.362 91.8811 229.767 90.3348C229.303 90.0558 228.853 89.7573 228.424 89.4343C228.192 89.2631 227.884 89.2288 227.627 89.3658L215.859 95.5904C215.429 95.8155 215.354 96.3783 215.697 96.7111C220.826 101.737 228.661 105.324 238.405 105.324C256.09 105.324 265.399 93.7847 265.399 79.5004V29.3023C265.399 28.7641 264.803 28.4264 264.319 28.6858L251.072 35.7521H251.077ZM238.092 69.175C236.234 69.2093 234.386 68.8765 232.665 68.1963C230.938 67.5161 229.373 66.508 228.066 65.2308C226.753 63.9536 225.723 62.4317 225.037 60.7581C224.35 59.0845 224.022 57.2935 224.072 55.4975C224.027 53.7016 224.36 51.9204 225.047 50.2517C225.738 48.5878 226.768 47.0757 228.081 45.8083C229.394 44.536 230.953 43.5377 232.675 42.8722C234.397 42.2067 236.239 41.8837 238.092 41.9277C245.836 41.9277 251.496 48.0055 251.496 55.4975C251.496 62.9896 245.836 69.175 238.092 69.175Z",fill:"#101111"}),(0,r.jsx)("path",{d:"M370.917 81.0422H362.768C346.129 81.0422 340.687 75.5663 340.687 59.0554V19.0066C340.687 18.7522 340.833 18.5124 341.065 18.39L353.954 11.5195C354.438 11.265 355.029 11.6027 355.029 12.141V30.4037H364.12
16C364.53 30.4037 364.853 30.7169 364.853 31.1084V42.1482C364.853 42.5348 364.53 42.8529 364.126 42.8529H355.029V58.9576C355.029 66.4936 355.978 67.947 363.692 68.0645H364.303C364.551 68.0645 364.783 68.2015 364.899 68.407L371.517 80.0733C371.76 80.5088 371.437 81.0422 370.917 81.0422V81.0422Z",fill:"#101111"}),(0,r.jsx)("path",{d:"M371.766 55.7253C371.786 50.5431 373.391 45.4783 376.385 41.1817C379.374 36.8803 383.615 33.5331 388.572 31.5659C393.525 29.5938 398.972 29.0897 404.227 30.1125C409.478 31.1353 414.299 33.6408 418.08 37.3158C421.862 40.986 424.431 45.6593 425.471 50.7486C426.506 55.833 425.966 61.1034 423.911 65.8893C421.857 70.6751 418.383 74.7662 413.925 77.6436C409.473 80.521 404.232 82.0576 398.876 82.0576C395.307 82.0624 391.773 81.3871 388.471 80.061C385.175 78.7397 382.181 76.797 379.657 74.3502C377.137 71.9034 375.143 68.9967 373.79 65.8012C372.437 62.6057 371.751 59.1802 371.766 55.7253V55.7253ZM412.058 55.7253C412.108 52.2901 410.75 48.9722 408.276 46.501C405.808 44.0298 402.425 42.6106 398.871 42.547C397.119 42.5764 395.393 42.9434 393.787 43.6236C392.182 44.3038 390.733 45.2825 389.521 46.5108C388.31 47.7342 387.361 49.1827 386.729 50.7633C386.098 52.3439 385.795 54.0322 385.846 55.7253C385.801 57.4185 386.103 59.1019 386.735 60.6825C387.366 62.2631 388.315 63.7067 389.526 64.9301C390.738 66.1535 392.187 67.1322 393.792 67.8124C395.398 68.4926 397.
1124 68.8596 398.871 68.889C402.42 68.8254 405.797 67.4063 408.271 64.9399C410.74 62.4736 412.103 59.1606 412.058 55.7253V55.7253Z",fill:"#101111"}),(0,r.jsx)("path",{d:"M435.885 61.287V31.1819C435.885 30.7904 436.208 30.4772 436.612 30.4772H449.702C450.106 30.4772 450.429 30.7904 450.429 31.1819V59.4666C450.429 66.2589 453.67 70.208 460.052 70.208C465.494 70.208 469.992 66.5525 469.992 58.0524V31.1134C469.992 30.7219 470.315 30.4087 470.719 30.4087H483.608C484.012 30.4087 484.335 30.7219 484.335 31.1134V80.3425C484.335 80.734 484.012 81.0472 483.608 81.0472H470.835C470.431 81.0472 470.108 80.734 470.108 80.3425V75.4441C468.361 77.5238 466.155 79.1925 463.651 80.3327C461.147 81.4729 458.406 82.0503 455.639 82.0259C443.311 82.0552 435.885 74.3528 435.885 61.287V61.287Z",fill:"#101111"}),(0,r.jsx)("path",{d:"M186.478 30.4087H199.367C199.771 30.4087 200.094 30.7219 200.094 31.1134V80.3425C200.094 80.734 199.771 81.0472 199.367 81.0472H186.478C186.074 81.0472 185.751 80.734 185.751 80.3425V31.1134C185.751 30.7219 186.074 30.4087 186.478 30.4087Z",fill:"#101111"}),(0,r.jsx)("path",{d:"M192.853 8.62671C194.009 8.57288 195.16 8.75394 196.241 9.15521C197.321 9.55648 198.301 10.1731 199.118 10.9658C199.936 11.7586 200.572 12.703 200.991 13.7503C201.41 14.7975 201.592 15.9132 201.537 17.0289C201.587 18.1398 201.4 19.2506 200.981 20.288C200.562 21.3255 199.921 22.265 199.103 23.048C198.285 23.831 197.306 24.4378 196.231 24.8341C195.155 25.2256 194.004 25.3969 192.853 25.3333C191.707 25.3969 190.566 25.2256 189.496 24.8293C188.426 24.4329 187.451 23.8261 186.644 23.0382C185.831 22.2552 185.205 21.3157 184.796 20.2783C184.387 19.2408 184.21 18.1349 184.276 17.0289C184.205 15.9181 184.382 14.8024 184.786 13.76C185.19 12.7177 185.821 11.7684 186.629 10.9756C187.436 10.1829 188.411 9.56627 189.481 9.1601C190.551 8.75394 191.702 8.57288 192.853 8.62671V8.62671Z",fill:"#101111"}),(0,r.jsx)("path",{d:"M544.674 67.9826C545.139 68.1 545.356 68.6139 545.119 69.02C544.149 70.6496 542.973 72.2449 541.686 73.6102C541.256 74.0604 540.817 74.5057 540.353 74.9314C540.126 75.1468 539.888 75.3523 539.651 75.5578C539.171 75.9689 538.682 76.3604 538.172 76.7372C537.919 76.928 537.662 77.1091 537.399 77.2901C533.007 80.3095 527.777 81.9684 522.395 82.0565C519.498 82.1592 516.605 81.8167 513.828 81.0435C513.455 80.9407 513.081 80.8233 512.707 80.7009C512.44 80.6178 512.177 80.5248 511.915 80.4318C511.703 80.3584 511.496 80.2801 511.289 80.2018C510.744 79.9914 510.203 79.7614 509.683 79.5167C509.375 79.3748 509.073 79.228 508.775 79.0763C508.603 78.9931 508.441 78.905 508.28 78.8218C506.336 77.7844 504.524 76.5121 502.898 75.044C501.273 73.5759 499.839 71.9219 498.637 70.1211C498.274 69.5828 497.936 69.0249 497.613 68.4573H497.607C497.289 67.8847 496.992 67.3073 496.719 66.7201C495.245 63.5735 494.422 60.1823 494.311 56.7274L494.301 56.7127C494.149 53.2628 494.705 49.8128 495.936 46.5733C496.164 45.9616 496.426 45.3597 496.699 44.7725C496.699 44.7725 496.699 44.7708 496.699 44.7676C496.976 44.1804 497.269 43.6029 497.592 43.0353C498.658 41.1513 499.96 39.3896 501.475 37.809C502.984 36.2283 504.69 34.8337 506.543 33.6641C506.695 33.5662 506.856 33.4684 507.018 33.3705C507.306 33.1943 507.593 33.0231 507.891 32.8665C508.401 32.5826 508.916 32.3184 509.441 32.0639C509.643 31.966 509.855 31.8731 510.057 31.7801C510.309 31.6675 510.562 31.5599 510.819 31.4571C511.183 31.3054 511.546 31.1684 511.91 31.0363C514.621 30.0625 517.478 29.5144 520.376 29.4116C525.753 29.1082 531.094 30.3903 535.703 33.0867C535.976 33.2482 536.253 33.4096 536.516 33.5809C537.056 33.9186 537.571 34.2758 538.081 34.6526C538.333 34.8386 538.586 35.0294 538.828 35.23C539.323 35.6166 539.798 36.0277 540.257 36.4534C541.464 37.5594 542.559 38.773 543.533 40.0747C543.781 40.4074 543.675 40.8821 543.306 41.0876L532.502 47.2731C532.195 47.4493 531.806 47.3758 531.574 47.1165C530.377 45.7659 528.898 44.6648 527.217 43.8721C524.38 42.541 521.169 42.1985 518.104 42.908C515.04 43.6176 512.329 45.3303 510.42 47.7527C508.956 49.6122 508.038 51.8143 507.745 54.1192C507.699 54.447 507.674 54.7798 507.659 55.1126C507.639 55.4894 507.639 55.8662 507.654 56.2479C507.669 56.
16296 507.699 56.9868 507.745 57.3489C507.785 57.6817 507.841 58.0046 507.906 58.3325C508.381 60.5982 509.461 62.7073 511.062 64.4592C513.152 66.7396 515.984 68.2517 519.099 68.7411C522.209 69.2256 525.389 68.653 528.11 67.1262C529.17 66.5243 530.14 65.7952 530.983 64.9584C531.165 64.7773 531.422 64.699 531.675 64.7626C533.603 65.2422 541.898 67.2975 544.664 67.9924L544.674 67.9826Z",fill:"#101111"}),(0,r.jsx)("path",{d:"M27.6013 0H82.1296C82.9474 0 83.6088 0.641056 83.6088 1.43381V54.2891C83.6088 55.0818 82.9474 55.7229 82.1296 55.7229H26.1221V1.43381C26.1221 0.645949 26.7834 0 27.6013 0Z",fill:"#101111"}),(0,r.jsx)("path",{d:"M1.4792 55.719H26.1207V79.6044C26.1207 80.3972 25.4593 81.0382 24.6415 81.0382H1.4792C0.661347 81.0382 0 80.3972 0 79.6044V57.1528C0 56.36 0.661347 55.719 1.4792 55.719Z",fill:"#101111"}),(0,r.jsx)("path",{d:"M645.4 82H667.95C692.48 82 709.75 64.73 709.75 41.85C709.75 19.08 694.46 1.7 667.29 1.7H645.4V82ZM665.53 15.89C685.22 15.89 694.46 26.67 694.46 41.85C694.46 56.59 683.57 67.81 666.19 67.81H660.69V15.89H665.53ZM742.588 83.1C758.428 83.1 771.078 70.34 771.078 54.5C771.078 38.66 758.428 25.9 742.588 25.9C726.748 25.9 714.098 38.66 714.098 54.5C714.098 70.34 726.748 83.1 742.588 83.1ZM742.588 68.8C734.778 68.8 728.838 62.31 728.838 54.5C728.838 46.69 734.778 40.2 742.588 40.2C750.288 40.2 756.448 46.69 756.448 54.5C756.448 62.31 750.288 68.8 742.588 68.8ZM804.463 83.1C817.003 83.1 826.683 75.95 830.973 65.72L817.553 60C815.463 65.17 810.403 68.8 804.573 68.8C796.653 68.8 790.493 62.42 790.493 54.5C790.493 46.58 796.653 40.2 804.573 40.2C810.403 40.2 815.463 43.83 817.553 49L830.973 43.28C826.683 33.05 817.003 25.9 804.463 25.9C788.623 25.9 775.973 38.66 775.973 54.5C775.973 70.34 788.623 83.1 804.463 83.1ZM859.565 83.1C875.405 83.32 882.885 72.76 882.885 64.73C882.885 52.85 872.215 49.55 862.975 47.68C854.725 46.03 851.535 45.15 851.535 42.73C851.535 40.31 853.735 38.22 858.685 38.22C863.635 38.22 867.375 40.64 868.805 44.27L882.115 38.66C878.155 30.96 871.115 25.9 858.795 25.9C845.155 25.68 836.245 33.93 836.245 43.17C836.245 54.94 846.145 58.35 856.045 60.11C862.425 61.32 867.815 62.2 867.815 65.17C867.815 67.81 865.175 70.12 860.225 70.12C854.835 70.12 850.655 67.7 848.675 62.64L834.265 68.25C838.225 77.93 846.255 83.1 859.565 83.1Z",fill:"#101111"})]}),Re=function(e){var t=e.user,n=e.toggleNav,o=e.navOpen;e.loadingUser;return(0,r.jsx)(i.kC,{pos:"sticky",top:0,left:0,as:"header",align:"center",justify:"center",bg:"rgba(255, 255, 255, 0.92)",sx:{backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},height:"var(--theme-sizes-header)",borderBottom:"1px",borderColor:"base.divider",zIndex:3,children:(0,r.jsxs)(i.kC,{px:{base:4,md:6},flex:1,justify:"space-between",align:"center",children:[(0,r.jsxs)(i.kC,{align:"center",flex:1,mr:4,children:[(0,r.jsx)(E.rU,{"aria-label":"Hightouch Docs Home",href:"/",mr:{base:3,md:4},flexShrink:0,display:"block",children:(0,r.jsx)(Te,{width:"auto",height:"20px"})}),(0,r.jsx)(Ce,{})]}),(0,r.jsxs)(i.kC,{display:["flex","flex","none"],ml:"auto",align:"center",gap:1,children:[(0,r.jsx)(ke,{}),(0,r.jsx)(we.zx,{variant:"subtle","aria-label":o?"Close navigation menu":"Open navigation menu","aria-expanded":o,"aria-controls":"mobile-nav",onClick:n,children:o?(0,r.jsx)(ve.Tw,{boxSize:6}):(0,r.jsx)(ve.Oq,{boxSize:6})})]}),(0,r.jsx)(i.kC,{display:{base:"none",md:"flex"},alignItems:"end",mt:"auto",gap:3,children:t?(0,r.jsxs)(i.kC,{align:"center",gap:3,children:[(0,r.jsx)(je.C,{}),(0,r.jsx)(we.zx,{onClick:function(){window.location.href="https://app.hightouch.com",(0,S.j)("Dashboard Button Clicked")},children:"Go to app"})]}):(0,r.jsx)(ye.k,{primary:"signup",includeChangelog:!0,hideSecondary:!0})})]})})},Oe=function(e){var t=e.children,n=e.loadingUser,o=(0,O.Z)(e,["children","loadingUser"]),a=D((0,I.kt)(!1),2),s=a[0],u=a[1].toggle,c=k();return o.destinations&&o.sources?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.rU,{href:"#main-content",position:"fixed",top:2,left:2,zIndex:1500,px:4,py:2,bg:"white",color:"link.default",fontWeight:"medium",borderRadius:"base",boxShadow:"sm",transform:"translateY(-200%)",transition:"transform 150ms ease-in-out",_focusVisible:{transform:"translateY(0)",boxShadow:"outline",outline:"none"},children:"Skip to content"}),(0,r.jsx)(Re,(0,R.Z)((0,T.Z)({},o),{toggleNav:u,navOpen:s,loadingUser:n})),s&&(0,r.jsx)(i.kC,{id:"mobile-nav",display:["flex","flex","none"],bg:"white",direction:"column",pos:"sticky",top:"var(--theme-sizes-header)",left:0,height:"calc(100vh - var(--theme-sizes-header))",width:"100%",pb:6,overflow:"auto",children:(0,r.jsx)(_e,(0,R.Z)((0,T.Z)({},o),{label:"Documentation (mobile)",toggle:u}))}),(0,r.jsxs)(i.kC,{width:"100%",children:[(0,r.jsx)(i.kC,{ref:c.ref,display:["none","none","flex"],id:"nav",bg:"white",direction:"column",pos:"sticky",top:"var(--theme-sizes-header)",left:0,height:"calc(100vh - var(--theme-sizes-header))",width:"300px",flexShrink:0,overflow:"auto",overscrollBehavior:"contain",borderRight:"1px",borderColor:"base.divi
1der",sx:{maskImage:c.maskImage,WebkitMaskImage:c.maskImage},children:(0,r.jsx)(_e,(0,R.Z)((0,T.Z)({},o),{label:"Documentation"}))}),(0,r.jsx)(i.kC,{direction:"column",pt:6,pb:8,flex:"1",minW:0,display:s?"none":"flex",children:t})]})]}):(0,r.jsx)(i.kC,{pt:24,pb:16,direction:"column",flex:1,width:"100%",maxWidth:"1280px",mx:"auto",children:t})}},42029:function(e,t,n){"use strict";n.d(t,{o:function(){return o}});var r=n(85893),i=n(68527),o=function(e){var t=e.children,n=e.maxWidth,o=void 0===n?"760px":n;return(0,r.jsx)(i.xu,{as:"main",id:"main-content",tabIndex:-1,outline:"none",flex:"0 1 ".concat(o),minW:0,maxWidth:o,children:t})}},78481:function(e,t,n){"use strict";n.d(t,{M:function(){return St}});var r=n(41799),i=n(69396),o=n(99534),a=n(85893),s=n(68527),u=n(11151),c=n(26450);function l(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function d(e){return e instanceof l(e).Element||e instanceof Element}function f(e){return e instanceof l(e).HTMLElement||e instanceof HTMLElement}function p(e){return"undefined"!==typeof ShadowRoot&&(e instanceof l(e).ShadowRoot||e instanceof ShadowRoot)}var h=Math.max,m=Math.min,v=Math.round;function g(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if(f(e)&&t){var o=e.offsetHeight,a=e.offsetWidth;a>0&&(r=v(n.width)/a||1),o>0&&(i=v(n.height)/o||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function y(e){var t=l(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function b(e){return e?(e.nodeName||"").toLowerCase():null}function x(e){return((d(e)?e.ownerDocument:e.document)||window.document).documentElement}function _(e){return g(x(e)).left+y(e).scrollLeft}function w(e){return l(e).getComputedStyle(e)}function S(e){var t=w(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function k(e,t,n){void 0===n&&(n=!1);var r=f(t),i=f(t)&&function(e){var t=e.getBoundingClientRect(),n=v(t.width)/e.offsetWidth||1,r=v(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),o=x(t),a=g(e,i),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==b(t)||S(o))&&(s=function(e){return e!==l(e)&&f(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:y(e);var t}(t)),f(t)?((u=g(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=_(o))),{x:a.left+s.scrollLeft-u.x,y:a.top+s.scrollTop-u.y,width:a.width,height:a.height}}function E(e){var t=g(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function C(e){return"html"===b(e)?e:e.assignedSlot||e.parentNode||(p(e)?e.host:null)||x(e)}function j(e){return["html","body","#document"].indexOf(b(e))>=0?e.ownerDocument.body:f(e)&&S(e)?e:j(C(e))}function T(e,t){var n;void 0===t&&(t=[]);var r=j(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=l(r),a=i?[o].concat(o.visualViewport||[],S(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(T(C(a)))}function R(e){return["table","td","th"].indexOf(b(e))>=0}function O(e){return f(e)&&"fixed"!==w(e).position?e.offsetParent:null}function P(e){for(var t=l(e),n=O(e);n&&R(n)&&"static"===w(n).position;)n=O(n);return n&&("html"===b(n)||"body"===b(n)&&"static"===w(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&f(e)&&"fixed"===w(e).position)return null;var n=C(e);for(p(n)&&(n=n.host);f(n)&&["html","body"].indexOf(b(n))<0;){var r=w(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var A="top",D="bottom",I="right",N="left",M="auto",F=[A,D,I,N],B="start",L="end",z="viewport",U="popper",H=F.reduce((function(e,t){return e.concat([t+"-"+B,t+"-"+L])}),[]),V=[].concat(F,[M]).reduce((function(e,t){return e.concat([t,t+"-"+B,t+"-"+L])}),[]),W=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function G(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEac
vendor: 4,938 bytes, line 1
1h((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function q(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var Z={placement:"bottom",modifiers:[],strategy:"absolute"};function $(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function Y(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,o=void 0===i?Z:i;return function(e,t,n){void 0===n&&(n=o);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},Z,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,u={state:i,setOptions:function(n){var s="function"===typeof n?n(i.options):n;c(),i.options=Object.assign({},o,i.options,s),i.scrollParents={reference:d(e)?T(e):e.contextElement?T(e.contextElement):[],popper:T(t)};var l=function(e){var t=G(e);return W.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,i.options.modifiers)));return i.orderedModifiers=l.filter((function(e){return e.enabled})),i.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"===typeof o){var s=o({state:i,name:t,instance:u,options:r}),c=function(){};a.push(s||c)}})),u.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if($(t,n)){i.rects={reference:k(t,P(n),"fixed"===i.options.strategy),popper:E(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var o=i.orderedModifiers[r],a=o.fn,c=o.options,l=void 0===c?{}:c,d=o.name;"function"===typeof a&&(i=a({state:i,options:l,name:d,instance:u})||i)}else i.reset=!1,r=-1}}},update:q((function(){return new Promise((function(e){u.forceUpdate(),e(i)}))})),destroy:function(){c(),s=!0}};if(!$(e,t))return u;function c(){a.forEach((function(e){return e()})),a=[]}return u.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var K={passive:!0};function X(e){return e.split("-")[0]}function Q(e){return e.split("-")[1]}function J(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ee(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?X(i):null,a=i?Q(i):null,s=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(o){case A:t={x:s,y:n.y-r.height};break;case D:t={x:s,y:n.y+n.height};break;case I:t={x:n.x+n.width,y:u};break;case N:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var c=o?J(o):null;if(null!=c){var l="y"===c?"height":"width";switch(a){case B:t[c]=t[c]-(n[l]/2-r[l]/2);break;case L:t[c]=t[c]+(n[l]/2-r[l]/2)}}return t}var te={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ne(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,u=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=a.x,h=void 0===p?0:p,m=a.y,g=void 0===m?0:m,y="function"===typeof d?d({x:h,y:g}):{x:h,y:g};h=y.x,g=y.y;var b=a.hasOwnProperty("x"),_=a.hasOwnProperty("y"),S=N,k=A,E=window;if(c){var C=P(n),j="clientHeight",T="clientWidth";if(C===l(n)&&"static"!==w(C=x(n)).position&&"absolute"===s&&(j="scrollHeight",T="scrollWidth"),i===A||(i===N||i===I)&&o===L)k=D,g-=(f&&C===E&&E.visualViewport?E.visualViewport.height:C[j])-r.height,g*=u?1:-1;if(i===N||(i===A||i===D)&&o===L)S=I,h-=(f&&C===E&&E.visualViewport?E.visualViewport.width:C[T])-r.width,h*=u?1:-1}var R,O=Object.assign({position:s},c&&te),M=!0===d?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:v(t*r)/r||0,y:v(n*r)/r||0}}({x:h,y:g}):{x:h,y:g};return h=M.x,g=M.y,u?Object.assign({},O,((R={})[k]=_?"0":"",R[S]=b?"0":"",R.transform=(E.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",R)):Object.assign({},O,((t={})[k]=_?g+"px":"",t[S]=b?h+"px":"",t.transform="",t))}var re={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=V.reduce((function(e,n){return e[n]=function(e,t,n){var r=X(e),i=[N,A].indexOf(r)>=0?-1:1,o="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[N,I].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),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}}
1,ie={left:"right",right:"left",bottom:"top",top:"bottom"};function oe(e){return e.replace(/left|right|bottom|top/g,(function(e){return ie[e]}))}var ae={start:"end",end:"start"};function se(e){return e.replace(/start|end/g,(function(e){return ae[e]}))}function ue(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&p(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ce(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function le(e,t){return t===z?ce(function(e){var t=l(e),n=x(e),r=t.visualViewport,i=n.clientWidth,o=n.clientHeight,a=0,s=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:i,height:o,x:a+_(e),y:s}}(e)):d(t)?function(e){var t=g(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):ce(function(e){var t,n=x(e),r=y(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=h(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=h(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+_(e),u=-r.scrollTop;return"rtl"===w(i||n).direction&&(s+=h(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:u}}(x(e)))}function de(e,t,n){var r="clippingParents"===t?function(e){var t=T(C(e)),n=["absolute","fixed"].indexOf(w(e).position)>=0&&f(e)?P(e):e;return d(n)?t.filter((function(e){return d(e)&&ue(e,n)&&"body"!==b(e)})):[]}(e):[].concat(t),i=[].concat(r,[n]),o=i[0],a=i.reduce((function(t,n){var r=le(e,n);return t.top=h(r.top,t.top),t.right=m(r.right,t.right),t.bottom=m(r.bottom,t.bottom),t.left=h(r.left,t.left),t}),le(e,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function fe(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function pe(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function he(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.boundary,a=void 0===o?"clippingParents":o,s=n.rootBoundary,u=void 0===s?z:s,c=n.elementContext,l=void 0===c?U:c,f=n.altBoundary,p=void 0!==f&&f,h=n.padding,m=void 0===h?0:h,v=fe("number"!==typeof m?m:pe(m,F)),y=l===U?"reference":U,b=e.rects.popper,_=e.elements[p?y:l],w=de(d(_)?_:_.contextElement||x(e.elements.popper),a,u),S=g(e.elements.reference),k=ee({reference:S,element:b,strategy:"absolute",placement:i}),E=ce(Object.assign({},b,k)),C=l===U?E:S,j={top:w.top-C.top+v.top,bottom:C.bottom-w.bottom+v.bottom,left:w.left-C.left+v.left,right:C.right-w.right+v.right},T=e.modifiersData.offset;if(l===U&&T){var R=T[i];Object.keys(j).forEach((function(e){var t=[I,D].indexOf(e)>=0?1:-1,n=[A,D].indexOf(e)>=0?"y":"x";j[e]+=R[n]*t}))}return j}function me(e,t,n){return h(e,m(t,n))}var ve={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,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,v=n.tetherOffset,g=void 0===v?0:v,y=he(t,{boundary:u,rootBoundary:c,padding:d,altBoundary:l}),b=X(t.placement),x=Q(t.placement),_=!x,w=J(b),S="x"===w?"y":"x",k=t.modifiersData.popperOffsets,C=t.rects.reference,j=t.rects.popper,T="function"===typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,R="number"===typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(k){if(o){var F,L="y"===w?A:N,z="y"===w?D:I,U="y"===w?"height":"width",H=k[w],V=H+y[L],W=H-y[z],G=p?-j[U]/2:0,q=x===B?C[U]:j[U],Z=x===B?-j[U]:-C[U],$=t.elements.arrow,Y=p&&$?E($):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=K[L],te=K[z],ne=me(0,C[U],Y[U]),re=_?C[U]/2-G-ne-ee-R.mainAxis:q-ne-ee-R.mainAxis,ie=_?-C[U]/2+G+ne+te+R.mainAxis:Z+ne+te+R.mainAxis,oe=t.elements.arrow&&P(t.elements.arrow),ae=oe?"y"===w?oe.clientTop||0:oe.clientLeft||0:0,se=null!=(F=null==O?void 0:O[w])?F:0,ue=H+ie-se,ce=me(p?m(V,H+re-se-ae):V,H,p?h(W,ue):W);k[w]=ce,M[w]=ce-H}
vendor: 3,988 bytes, line 1
1if(s){var le,de="x"===w?A:N,fe="x"===w?D:I,pe=k[S],ve="y"===S?"height":"width",ge=pe+y[de],ye=pe-y[fe],be=-1!==[A,N].indexOf(b),xe=null!=(le=null==O?void 0:O[S])?le:0,_e=be?ge:pe-C[ve]-j[ve]-xe+R.altAxis,we=be?pe+C[ve]+j[ve]-xe-R.altAxis:ye,Se=p&&be?function(e,t,n){var r=me(e,t,n);return r>n?n:r}(_e,pe,we):me(p?_e:ge,pe,p?we:ye);k[S]=Se,M[S]=Se-pe}t.modifiersData[r]=M}},requiresIfExists:["offset"]};var ge={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=X(n.placement),u=J(s),c=[N,I].indexOf(s)>=0?"height":"width";if(o&&a){var l=function(e,t){return fe("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:pe(e,F))}(i.padding,n),d=E(o),f="y"===u?A:N,p="y"===u?D:I,h=n.rects.reference[c]+n.rects.reference[u]-a[u]-n.rects.popper[c],m=a[u]-n.rects.reference[u],v=P(o),g=v?"y"===u?v.clientHeight||0:v.clientWidth||0:0,y=h/2-m/2,b=l[f],x=g-d[c]-l[p],_=g/2-d[c]/2+y,w=me(b,_,x),S=u;n.modifiersData[r]=((t={})[S]=w,t.centerOffset=w-_,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&ue(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ye(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 be(e){return[A,I,D,N].some((function(t){return e[t]>=0}))}var xe=Y({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,u=l(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",n.update,K)})),s&&u.addEventListener("resize",n.update,K),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",n.update,K)})),s&&u.removeEventListener("resize",n.update,K)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ee({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,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,u=void 0===s||s,c={placement:X(t.placement),variation:Q(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ne(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ne(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=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]||{},i=t.elements[e];f(i)&&b(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.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.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});
1f(r)&&b(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},re,{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 i=n.mainAxis,o=void 0===i||i,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,m=n.allowedAutoPlacements,v=t.options.placement,g=X(v),y=u||(g===v||!h?[oe(v)]:function(e){if(X(e)===M)return[];var t=oe(e);return[se(e),t,se(t)]}(v)),b=[v].concat(y).reduce((function(e,n){return e.concat(X(n)===M?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,c=void 0===u?V:u,l=Q(r),d=l?s?H:H.filter((function(e){return Q(e)===l})):F,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]=he(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[X(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:m}):n)}),[]),x=t.rects.reference,_=t.rects.popper,w=new Map,S=!0,k=b[0],E=0;E<b.length;E++){var C=b[E],j=X(C),T=Q(C)===B,R=[A,D].indexOf(j)>=0,O=R?"width":"height",P=he(t,{placement:C,boundary:l,rootBoundary:d,altBoundary:f,padding:c}),L=R?T?I:N:T?D:A;x[O]>_[O]&&(L=oe(L));var z=oe(L),U=[];if(o&&U.push(P[j]<=0),s&&U.push(P[L]<=0,P[z]<=0),U.every((function(e){return e}))){k=C,S=!1;break}w.set(C,U)}if(S)for(var W=function(e){var t=b.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},G=h?3:1;G>0;G--){if("break"===W(G))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},ve,ge,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=he(t,{elementContext:"reference"}),s=he(t,{altBoundary:!0}),u=ye(a,r),c=ye(s,i,o),l=be(u),d=be(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":d})}}]}),_e=n(67294);function we(){return we=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},we.apply(this,arguments)}var Se=function(e,t){return{var:e,varRef:t?"var("+e+", "+t+")":"var("+e+")"}},ke={arrowShadowColor:Se("--popper-arrow-shadow-color"),arrowSize:Se("--popper-arrow-size","8px"),arrowSizeHalf:Se("--popper-arrow-size-half"),arrowBg:Se("--popper-arrow-bg"),transformOrigin:Se("--popper-transform-origin"),arrowOffset:Se("--popper-arrow-offset")};var Ee={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"},Ce={scroll:!0,resize:!0};var je={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;t.styles.popper.width=t.rects.reference.width+"px"},effect:function(e){var t=e.state;return function(){var e=t.elements.reference;t.elements.popper.style.width=e.offsetWidth+"px"}}},Te={name:"transformOrigin",enabled:!0,phase:"write",fn:function(e){var t=e.state;Re(t)},effect:function(e){var t=e.state;return function(){Re(t)}}},Re=function(e){var t;e.elements.popper.style.setProperty(ke.transformOrigin.var,(t=e.placement,Ee[t]))},Oe={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:function(e){var t=e.state;Pe(t)}},Pe=function(e){var t;if(e.placement){var n=Ae(e.placement);if(null!=(t=e.elements)&&t.arrow&&n){var r,i;Object.assign(e.elements.arrow.style,((r={})[n.property]=n.value,r.width=ke.arrowSize.varRef,r.height=ke.arrowSize.varRef,r.zIndex=-1,r));var o=((i={})[ke.arrowSizeHalf.var]="calc("+ke.arrowSize.varRef+" / 2)",i[ke.arrowOffset.var]="calc("+ke.arrowSizeHalf.varRef+" * -1)",i);for(var a in o)e.elements.arrow.style.setProperty(a,o[a])}}},Ae=function(e){return e.startsWith("top")?{property:"bottom",value:ke.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:ke.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:ke.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:ke.arrowOffset.varRef}:void 0},De={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:function(e){var t=e.state;Ie(t)},effect:function(e){var t=e.state;return function(){Ie(t)}}},Ie=function(e){if(e.elements.arrow){var t,n=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(n)Object.assign(n.style,{transform:"rotate(45deg)",background:ke.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:(t=e.placement,t.includes("top")?"1px 1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("bottom")?"-1px -1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("right")?"-1px 1px 1px 0 var(--popper-arrow-shadow-color)":t.includes("left")?"1px -1px 1px 0 var(--popper-arrow-shadow-color)":void 0)})}},Ne={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}}
1,Me={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};var Fe=["size","shadowColor","bg","style"];function Be(e){void 0===e&&(e={});var t=e,n=t.enabled,r=void 0===n||n,i=t.modifiers,o=t.placement,a=void 0===o?"bottom":o,s=t.strategy,u=void 0===s?"absolute":s,l=t.arrowPadding,d=void 0===l?8:l,f=t.eventListeners,p=void 0===f||f,h=t.offset,m=t.gutter,v=void 0===m?8:m,g=t.flip,y=void 0===g||g,b=t.boundary,x=void 0===b?"clippingParents":b,_=t.preventOverflow,w=void 0===_||_,S=t.matchWidth,k=t.direction,E=void 0===k?"ltr":k,C=(0,_e.useRef)(null),j=(0,_e.useRef)(null),T=(0,_e.useRef)(null),R=function(e,t){var n,r;void 0===t&&(t="ltr");var i=(null==(n=Ne[e])?void 0:n[t])||e;return"ltr"===t?i:null!=(r=Me[e])?r:i}(a,E),O=(0,_e.useRef)((function(){})),P=(0,_e.useCallback)((function(){var e;r&&C.current&&j.current&&(null==O.current||O.current(),T.current=xe(C.current,j.current,{placement:R,modifiers:[De,Oe,Te,we({},je,{enabled:!!S}),we({name:"eventListeners"},(e=p,"object"===typeof e?{enabled:!0,options:we({},Ce,e)}:{enabled:e,options:Ce})),{name:"arrow",options:{padding:d}},{name:"offset",options:{offset:null!=h?h:[0,v]}},{name:"flip",enabled:!!y,options:{padding:8}},{name:"preventOverflow",enabled:!!w,options:{boundary:x}}].concat(null!=i?i:[]),strategy:u}),T.current.forceUpdate(),O.current=T.current.destroy)}),[R,r,i,S,p,d,h,v,y,w,x,u]);(0,_e.useEffect)((function(){return function(){var e;C.current||j.current||(null==(e=T.current)||e.destroy(),T.current=null)}}),[]);var A=(0,_e.useCallback)((function(e){C.current=e,P()}),[P]),D=(0,_e.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),we({},e,{ref:(0,c.lq)(A,t)})}),[A]),I=(0,_e.useCallback)((function(e){j.current=e,P()}),[P]),N=(0,_e.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),we({},e,{ref:(0,c.lq)(I,t),style:we({},e.style,{position:u,minWidth:"max-content",inset:"0 auto auto 0"})})}),[u,I]),M=(0,_e.useCallback)((function(e,t){void 0===e&&(e={}),void 0===t&&(t=null);var n=e;return n.size,n.shadowColor,n.bg,n.style,we({},function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(n,Fe),{ref:t,"data-popper-arrow":"",style:Le(e)})}),[]),F=(0,_e.useCallback)((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),we({},e,{ref:t,"data-popper-arrow-inner":""})}),[]);return{update:function(){var e;null==(e=T.current)||e.update()},forceUpdate:function(){var e;null==(e=T.current)||e.forceUpdate()},transformOrigin:ke.transformOrigin.varRef,referenceRef:A,popperRef:I,getPopperProps:N,getArrowProps:M,getArrowInnerProps:F,getReferenceProps:D}}function Le(e){var t=e.size,n=e.shadowColor,r=e.bg,i=we({},e.style,{position:"absolute"});return t&&(i["--popper-arrow-size"]=t),n&&(i["--popper-arrow-shadow-color"]=n),r&&(i["--popper-arrow-bg"]=r),i}var ze=n(46871),Ue=n(5993),He=n(15031),Ve=n(1358),We=n(94930),Ge=n(95421),qe=n(97375),Ze=n(71561);function $e(){return $e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$e.apply(this,arguments)}function Ye(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var Ke={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]}}}},Xe=["openDelay","closeDelay","closeOnClick","closeOnMouseDown","onOpen","onClose","placement","id","isOpen","defaultIsOpen","arrowSize","arrowShadowColor","arrowPadding","modifiers","isDisabled","gutter","offset","direction"];var Qe=["children","label","shouldWrapChildren","aria-label","hasArrow","bg","portalProps","background","backgroundColor","bgColor"],Je=(0,Ue.m$)(We.E.div),et=(0,Ue.Gp)((function(e,t){var n,r,i=(0,Ue.mq)("Tooltip",e),o=(0,Ue.Lr)(e),a=(0,Ue.Fg)(),s=o.children,u=o.label,l=o.shouldWrapChildren,d=o["aria-label"],f=o.hasArrow,p=o.bg,h=o.portalProps,m=o.background,v=o.backgroundColor,g=o.bgColor,y=Ye(o,Qe),b=null!=(n=null!=(r=null!=m?m:v)?r:p)?n:g;b&&(i.bg=b,i[ke.arrowBg.var]=(0,He.K1)(a,"colors",b));var x,_=function(e){void 0===e&&(e={});var t=e,n=t.openDelay,r=void 0===n?0:n,i=t.closeDelay,o=void 0===i?0:i,a=t.closeOnClick,s=void 0===a||a,u=t.closeOnMouseDown,l=t.onOpen,d=t.onClose,f=t.placement,p=t.id,h=t.isOpen,m=t.defaultIsOpen,v=t.arrowSize,g=void 0===v?10:v,y=t.arrowShadowColor,b=t.arrowPadding,x=t.modifiers,_=t.isDisabled,w=t.gutter,S=t.offset,k=t.direction,E=Ye(t,Xe),C=(0,qe.qY)({isOpen:h,defaultIsOpen:m,onOpen:l,onClose:d}),j=C.isOpen,T=C.onOpen,R=C.onClose,O=Be({enabled:j,placement:f,arrowPadding:b,modifiers:x,gutter:w,offset:S,direction:k}),P=O.referenceRef,A=O.getPopperProps,D=O.getArrowInnerProps,I=O.getArrowProps,N=(0,qe.Me)(p,"tooltip"),M=_e.useRef(null),F=_e.useRef(),B=_e.useRef(),L=_e.useCallback((function(){_||(F.current=window.setTimeout(T,r))}),[_,T,r]),z=_e.useCallback((function(){F.current&&clearTimeout(F.current),B.current=window.setTimeout(R,o)}),[o,R]),U=_e.useCallback((function(){s&&z()}),[s,z]),H=_e.useCallback((function(){u&&z()}),[u,z]),V=_e.useCallback((function(e){j&&"Escape"===e.key&&z()}),[j,z]);
1(0,Ze.b)("keydown",V),_e.useEffect((function(){return function(){clearTimeout(F.current),clearTimeout(B.current)}}),[]),(0,Ze.b)("mouseleave",z,(function(){return M.current}));var W=_e.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),$e({},e,{ref:(0,c.lq)(M,t,P),onMouseEnter:(0,He.v0)(e.onMouseEnter,L),onClick:(0,He.v0)(e.onClick,U),onMouseDown:(0,He.v0)(e.onMouseDown,H),onFocus:(0,He.v0)(e.onFocus,L),onBlur:(0,He.v0)(e.onBlur,z),"aria-describedby":j?N:void 0})}),[L,z,H,j,N,U,P]),G=_e.useCallback((function(e,t){var n;return void 0===e&&(e={}),void 0===t&&(t=null),A($e({},e,{style:$e({},e.style,(n={},n[ke.arrowSize.var]=g?(0,He.px)(g):void 0,n[ke.arrowShadowColor.var]=y,n))}),t)}),[A,g,y]),q=_e.useCallback((function(e,t){return void 0===e&&(e={}),void 0===t&&(t=null),$e({ref:t},E,e,{id:N,role:"tooltip",style:$e({},e.style,{position:"relative",transformOrigin:ke.transformOrigin.varRef})})}),[E,N]);return{isOpen:j,show:L,hide:z,getTriggerProps:W,getTooltipProps:q,getTooltipPositionerProps:G,getArrowProps:I,getArrowInnerProps:D}}($e({},y,{direction:a.direction}));if((0,He.HD)(s)||l)x=_e.createElement(Ue.m$.span,$e({tabIndex:0},_.getTriggerProps()),s);else{var w=_e.Children.only(s);x=_e.cloneElement(w,_.getTriggerProps(w.props,w.ref))}var S=!!d,k=_.getTooltipProps({},t),E=S?(0,He.CE)(k,["role","id"]):k,C=(0,He.ei)(k,["role","id"]);return u?_e.createElement(_e.Fragment,null,x,_e.createElement(Ge.M,null,_.isOpen&&_e.createElement(ze.h_,h,_e.createElement(Ue.m$.div,$e({},_.getTooltipPositionerProps(),{__css:{zIndex:i.zIndex,pointerEvents:"none"}}),_e.createElement(Je,$e({variants:Ke},E,{initial:"exit",animate:"enter",exit:"exit",__css:i}),u,S&&_e.createElement(Ve.TX,C,d),f&&_e.createElement(Ue.m$.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper"},_e.createElement(Ue.m$.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:i.bg}}))))))):_e.createElement(_e.Fragment,null,s)}));He.Ts&&(et.displayName="Tooltip");var tt=n(15193),nt=n(19671),rt=function(e){return(0,a.jsxs)("svg",(0,i.Z)((0,r.Z)({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:[(0,a.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),(0,a.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}))},it=function(e){return(0,a.jsx)("svg",(0,i.Z)((0,r.Z)({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:(0,a.jsx)("polyline",{points:"20 6 9 17 4 12"})}))};function ot(e){var t;if("string"===typeof e)return e;if("number"===typeof e)return String(e);if(!(0,_e.isValidElement)(e))return"";var n=null===(t=e.props)||void 0===t?void 0:t.children;return n?_e.Children.toArray(n).map(ot).join(""):""}var at=function(e){var t=e.children,n=(0,o.Z)(e,["children"]),u=(0,_e.useState)(!1),c=u[0],l=u[1],d=function(){try{return function(e){var t=_e.Children.only(e);if(!(0,_e.isValidElement)(t))return!1;var n=t.props;return"string"===typeof n.className&&n.className.includes("hljs")}(t)}catch(e){return!1}}(),f=(0,_e.useCallback)((function(){var e=ot(t);navigator.clipboard.writeText(e).then((function(){l(!0),setTimeout((function(){return l(!1)}),2e3);var n="";try{var r=_e.Children.only(t).props,i=String(r.className||"").match(/language-(\S+)/);i&&(n=i[1])}catch(o){}(0,nt.j)("Code Block Copied",{page_path:window.location.pathname,language:n,content_preview:e.slice(0,100)})}))}),[t]);return d?(0,a.jsxs)(s.xu,{position:"relative",my:6,children:[(0,a.jsx)(s.xu,(0,i.Z)((0,r.Z)({as:"pre"},n),{children:t})),(0,a.jsx)(et,{label:c?"Copied!":"Copy code",placement:"left",children:(0,a.jsx)(tt.hU,{"aria-label":"Copy code to clipboard",icon:c?(0,a.jsx)(it,{}):(0,a.jsx)(rt,{}),size:"xs",variant:"ghost",position:"absolute",top:2,right:2,color:c?"success.base":"gray.400",_hover:{color:c?"success.base":"gray.600",bg:"gray.100"},onClick:f})})]}):(0,a.jsx)(s.xu,(0,i.Z)((0,r.Z)({as:"pre"},n),{my:6,children:t}))},st=n(79714),ut=n(49609),ct=n(25675),lt=n.n(ct),dt={src:"/docs/_next/static/media/poster.65e85a42.png",height:598,width:1121,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAABlBMVEXs7Ozj5ui4PeaxAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAF0lEQVR4nGNgZGRgYAARjDAWlAFGYAAAAVkAD6GUXsQAAAAASUVORK5CYII=",blurWidth:8,blurHeight:4},ft=n(16770),pt=function(e){var t=e.title,n=e.description,r=e.demoId,i=void 0===r?"clinphnj3003g08kxhoo7dg8s":r,o=e.demoName,u=void 0===o?"Ungated master":o,c=(0,qe.qY)(),l=c.isOpen,d=c.onOpen,f=c.onClose,p=(0,_e.useState)(!1),h=p[0],m=p[1];return(0,a.jsxs)(s.xu,{display:{base:"none",lg:"block"},pos:"relative",my:8,w:"100%",children:[t&&(0,a.jsx)(ft.X6,{as:"h2",children:t}),n&&(0,a.jsx)(s.xv,{textStyle:"paragraph",children:n}),(0,a.jsxs)(s.kC,{display:{base:"none",lg:"flex"},pos:"relative",align:"start",my:8,w:"100%",maxW:"4xl",mx:"auto",children:[(0,a.jsxs)(s.kC,{w:"100%",align:"center",justify:"center",children:[(0,a.jsx)(s.oM,{pos:"relative",ratio:15/8,w:"100%",borderRadius:"md",children:(0,a.jsx)(lt(),{src:dt,alt:"Hightouch Audiences user interface.",layout:"fill"})}),(0,a.jsx)(tt.zx,{pos:"absolute",onClick:function(){m(!0),(0,nt.j)("Demo Embed Opened",{Demo:i,Name:u,page:window.location.href}),d()},children:"Start exploring"})]}),(0,a.jsx)(st.u_,{isOpen:l,onClose:f,size:"full",isCentered:!0,children:(0,a.jsxs)(s.xu,{pos:"relative",zIndex:10,children:[(0,a.jsx)(st.ZA,{bg:"white"}),(0,a.jsxs)(st.hz,{children:[(0,a.jsx)(st.xB,{display:"flex",py:3,px:5,justifyContent:"end",children:(0,a.jsx)(st.ol,{onClick:function(){(0,nt.j)("Demo Embed Closed",{Demo:i,Name:u,page:window.location.href}),f()}})}),(0,a.jsxs)(s.kC,{pos:"relative",align:"center",justify:"center",w:"100%",h:"90vh",px:12,children:[h&&(0,a.jsx)(ut.$,{boxSize:9,thickness:"base",emptyColor:"base.border",color:"forest.600",speed:"0.65s",pos:"absolute",zIndex:11}
1),(0,a.jsx)(s.xu,{as:"iframe",src:"https://capture.navattic.com/".concat(i),allow:"fullscreen",borderRadius:"md",w:"100%",h:"100%",objectFit:"contain",onLoad:function(){return m(!1)}})]})]})]})})]})]})},ht=n(90907),mt=function(e){var t=e.fileName,n=e.href,r=e.children;return(0,a.jsx)(ht.r,{href:n,newTab:!0,variant:"inline",onClick:function(){return function(e){(0,nt.j)("File Downloaded",{page:window.location.href,name:e,file:n})}(t)},children:r})},vt=n(62130),gt=n(28551),yt=n(16294),bt=n(2962),xt=n(72923),_t=function(e){var t=e.source,n=e.poster,u=e.title,c=e.description,l=e.uploadDate,d=e.duration,f=e.hideTitle,p=e.size,h=void 0===p?"base":p,m=(0,o.Z)(e,["source","poster","title","description","uploadDate","duration","hideTitle","size"]),v=(0,_e.useRef)(null),g=(0,_e.useState)(!1),y=g[0],b=g[1],x=(0,_e.useCallback)((function(){var e,t;null===(e=v.current)||void 0===e||e.play(),null===(t=v.current)||void 0===t||t.setAttribute("controls","true"),b(!0)}),[]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(s.xu,(0,i.Z)((0,r.Z)({position:"relative",borderRadius:"xl",overflow:"hidden",mt:8,mb:8},m),{children:[!y&&(0,a.jsxs)(tt.zx,{"aria-label":"Play video",variant:"unstyled",position:"absolute",w:"100%",h:"100%",pt:u&&d?[0,0,12]:0,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",zIndex:2,role:"group",transition:".15s all ease",_hover:{transform:"scale(1.1)"},onClick:x,children:[(0,a.jsx)(xt.o1,{boxSize:"base"===h?20:12,color:"white"}),u&&!f&&(0,a.jsxs)(s.kC,{flexDir:"column",gap:3,display:["none","none","flex"],bg:"white",borderRadius:"sm",opacity:0,mt:-2,p:4,boxShadow:"sm",zIndex:-1,transition:".15s opacity ease",_groupHover:{opacity:1,h:"auto"},children:[(0,a.jsx)(s.xv,{as:"span",fontSize:"sm",children:u}),d&&(0,a.jsx)(s.xv,{as:"span",fontSize:"sm",color:"text.secondary",pt:2,children:d})]})]}),(0,a.jsx)(s.xu,{_before:{position:"absolute",content:y?"none":"''",top:0,right:0,bottom:0,left:0,bg:"rgba(0, 0, 0, 0.4)",zIndex:1},children:(0,a.jsx)("video",{ref:v,width:"100%",poster:n,preload:"metadata",onPlay:function(){(0,nt.j)("Video Played",{name:u,page:window.location.href})},onEnded:function(){(0,nt.j)("Video Ended",{Name:u,page:window.location.href})},children:(0,a.jsx)("source",{src:t,type:"video/mp4"})})})]})),(0,a.jsx)(bt.gx,{name:u,description:c,contentUrl:t,embedUrl:t,thumbnailUrls:[n],uploadDate:l||"2022-09-14T08:00:00+08:00"})]})},wt={h1:function(e){return(0,a.jsx)(ft.X6,(0,r.Z)({as:"h2"},e))},h2:function(e){return(0,a.jsx)(ft.X6,(0,r.Z)({as:"h2"},e))},h3:function(e){return(0,a.jsx)(ft.X6,(0,r.Z)({as:"h3"},e))},h4:function(e){return(0,a.jsx)(ft.X6,(0,r.Z)({as:"h4"},e))},p:function(e){return(0,a.jsx)(s.xv,(0,r.Z)({textStyle:"paragraph"},e))},span:function(e){return(0,a.jsx)(s.xv,(0,r.Z)({as:"span",textStyle:"paragraph"},e))},strong:function(e){return(0,a.jsx)(ft.cK,(0,r.Z)({},e))},a:function(e){return(0,a.jsx)(ft.rU,(0,i.Z)((0,r.Z)({},e),{variant:"inline"}))},img:function(e){return(0,a.jsx)(vt.E,(0,i.Z)((0,r.Z)({},e),{my:6}))},li:gt.HC,ol:gt.GS,ul:gt.QI,table:yt.i,td:yt.TD,th:yt.TH,tr:yt.TR,Heading:ft.X6,PylonLink:ft.cu,BtOnly:ft.TI,FeatureFlag:ft.TT,PremiumDestination:ft.GL,EventSyncWarning:ft.Yz,StreamingCutoverWarning:ft.V7,WIPStub:ft.C_,CreateAPIKeySnippet:ft.v2,APIKeyWarning:ft.tx,SetSyncSchedule:ft.Y9,SyncEngineSnippet:ft.kc,SourceTestSnippet:ft.Sl,SyncLogsSnippet:ft.t4,ConnectionTypeSnippet:ft.HF,EngineComparisonTable:ft.Tx,NoCommonErrors:ft.CT,MatchRatesExplanation:ft.o4,CommonErrorsPreface:ft.vR,SyncAlerts:ft.sO,LiveDebugger:ft.pp,MatchBoosterDestination:ft.kh,ArrayFanOutTip:ft.Nx,TimestampTemplateMapping:ft.yB,RowAndColumnOrderingInfo:ft.zG,UseCaseCard:ft.t3,UseCaseGrid:ft.S,ProductFinder:ft.rf,WhatsNew:ft.a_,WhatsNewItem:ft.UN,pre:function(e){return(0,a.jsx)(at,(0,r.Z)({},e))},code:function(e){var t;return(null===(t=e.className)||void 0===t?void 0:t.includes("hljs"))?(0,a.jsx)(s.xu,(0,r.Z)({as:"code",bg:"base.lightBackgroun
1d",border:"1px solid",borderColor:"base.border",borderRadius:"md",color:"text.primary",fontFamily:"mono",fontSize:"md",paddingX:1,whiteSpace:"pre",sx:{span:{fontSize:"13px"}}},e)):(0,a.jsx)(s.xu,(0,r.Z)({as:"code",display:"inline",bg:"base.background",borderRadius:"sm",color:"text.primary",fontFamily:"mono",fontSize:"md",paddingX:1,paddingY:.5,whiteSpace:"pre-wrap"},e))},CodeNoWrap:function(e){return(0,a.jsx)(s.xu,(0,r.Z)({as:"code",bg:"base.lightBackground",border:"1px solid",borderColor:"base.border",borderRadius:"md",color:"text.primary",fontFamily:"mono",fontSize:"sm",paddingX:1,whiteSpace:"pre-wrap"},e))},Video:function(e){var t=e.poster,n=e.source,r=e.duration,i=e.title,o=e.publishedAt;return(0,a.jsx)(_t,{poster:t,source:n,duration:r,title:i,description:i+". Get started quickly with this video tutorial from Hightouch Docs.",uploadDate:null!==o&&void 0!==o?o:(new Date).toISOString(),mb:12,transition:"150ms all"})},DemoEmbed:function(e){var t=e.title,n=e.description,r=e.demoId,i=e.demoName;return(0,a.jsx)(pt,{title:t,description:n,demoId:r,demoName:i})},DownloadLink:function(e){var t=e.href,n=e.fileName,i=(0,o.Z)(e,["href","fileName"]);return(0,a.jsx)(mt,(0,r.Z)({href:t,fileName:n},i))},IntegrationsCount:function(){return(0,a.jsxs)(s.xv,{as:"span",children:["250","+"]})},SourcesCount:function(){return(0,a.jsxs)(s.xv,{as:"span",children:["35","+"]})}},St=function(e){var t=e.children;return(0,a.jsx)(u.Zo,{components:wt,children:t})}},17182:function(e,t,n){"use strict";n.d(t,{Y:function(){return a},x:function(){return s}});var r=n(29815),i=n(67294),o=n(19671),a=function(e){return!(!window.Pylon||!window.pylon)&&((0,o.j)("Pylon Pop-up Opened",{page:window.location.pathname}),window.Pylon("showNewMessage",e),!0)},s=function(e){var t=e.user,n="b0c8b88e-467f-4657-b56a-00ed3e451a01";return(0,i.useEffect)((function(){!function(){var e=window;if(!e.Pylon){var t=document,i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o;(o=i).e.apply(o,(0,r.Z)(t))};i.q=[],i.e=function(e){i.q.push(e)},e.Pylon=i;var o=function(){var e,r=t.createElement("script");r.setAttribute("type","text/javascript"),r.setAttribute("async","true"),r.setAttribute("src","https://widget.usepylon.com/widget/".concat(n));var i=t.getElementsByTagName("script")[0];null===(e=i.parentNode)||void 0===e||e.insertBefore(r,i)};"complete"===t.readyState?o():e.addEventListener&&e.addEventListener("load",o,!1)}}()}),[]),(0,i.useEffect)((function(){t&&t.pylon_email_hash&&(window.pylon={chat_settings:{app_id:n,name:t.name,email:t.email,user_id:t.id,email_hash:t.pylon_email_hash||""}})}),[Boolean(t)]),null}},19671:function(e,t,n){"use strict";n.d(t,{j:function(){return i},y:function(){return o}});var r=n(29815),i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i;"object"===typeof window.htevents&&"function"===typeof window.htevents.track&&(i=window.htevents).track.apply(i,(0,r.Z)(t))},o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i;"object"===typeof window.htevents&&"function"===typeof window.htevents.identify&&(i=window.htevents).identify.apply(i,(0,r.Z)(t))}},79336:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Xc}});var r={};n.r(r),n.d(r,{Button:function(){return oo},Heading:function(){return ao},Input:function(){return so},Kbd:function(){return uo},Link:function(){return po},Modal:function(){return fo},Tabs:function(){return lo}});var i=n(41799),o=n(69396),a=n(85893),s=n(70917),u=n(67294),c=function(){return u.createElement(s.xB,{styles:'\n      html {\n        line-height: 1.5;\n        -webkit-text-size-adjust: 100%;\n        font-family: system-ui, sans-serif;\n        -webkit-font-smoothing: antialiased;\n        text-rendering: optimizeLegibility;\n        -moz-osx-font-smoothing: grayscale;\n        touch-action: manipulation;\n      }\n\n      body {\n        position: relative;\n        min-height: 100%;\n        font-feature-settings: \'kern\';\n      }\n\n      *,\n      *::before,\n      *::after {\n        border-width: 0;\n        border-style: solid;\n        box-sizing: border-box;\n      }\n\n      main {\n        display: block;\n      }\n\n      hr {\n        border-top-width: 1px;\n        box-sizing: content-box;\n        height: 0;\n        overflow: visible;\n      }\n\n      pre,\n      code,\n      kbd,\n      samp {\n        font-family: SFMono-Regular,  Menlo, Monaco, Consolas, monospace;\n        font-size: 1em;\n      }\n\n      a {\n        background-color: transparent;\n        color: inherit;\n        text-decoration: inherit;\n      }\n\n      abbr[title] {\n        border-bottom: none;\n        text-decoration: underline;\n        -webkit-text-decoration: underline dotted;\n        text-decoration: underline dotted;\n      }\n\n      b,\n      strong {\n        font-weight: bold;\n      }\n\n      small {\n        font-size: 80%;\n      }\n\n      sub,\n      sup {\n        font-size: 75%;\n        line-height: 0;\n        position: relative;\n        vertical-align: baseline;\n      }\n\n      sub {\n        bottom: -0.25em;
1\n      }\n\n      sup {\n        top: -0.5em;\n      }\n\n      img {\n        border-style: none;\n      }\n\n      button,\n      input,\n      optgroup,\n      select,\n      textarea {\n        font-family: inherit;\n        font-size: 100%;\n        line-height: 1.15;\n        margin: 0;\n      }\n\n      button,\n      input {\n        overflow: visible;\n      }\n\n      button,\n      select {\n        text-transform: none;\n      }\n\n      button::-moz-focus-inner,\n      [type="button"]::-moz-focus-inner,\n      [type="reset"]::-moz-focus-inner,\n      [type="submit"]::-moz-focus-inner {\n        border-style: none;\n        padding: 0;\n      }\n\n      fieldset {\n        padding: 0.35em 0.75em 0.625em;\n      }\n\n      legend {\n        box-sizing: border-box;\n        color: inherit;\n        display: table;\n        max-width: 100%;\n        padding: 0;\n        white-space: normal;\n      }\n\n      progress {\n        vertical-align: baseline;\n      }\n\n      textarea {\n        overflow: auto;\n      }\n\n      [type="checkbox"],\n      [type="radio"] {\n        box-sizing: border-box;\n        padding: 0;\n      }\n\n      [type="number"]::-webkit-inner-spin-button,\n      [type="number"]::-webkit-outer-spin-button {\n        -webkit-appearance: none !important;\n      }\n\n      input[type="number"] {\n        -moz-appearance: textfield;\n      }\n\n      [type="search"] {\n        -webkit-appearance: textfield;\n        outline-offset: -2px;\n      }\n\n      [type="search"]::-webkit-search-decoration {\n        -webkit-appearance: none !important;\n      }\n\n      ::-webkit-file-upload-button {\n        -webkit-appearance: button;\n        font: inherit;\n      }\n\n      details {\n        display: block;\n      }\n\n      summary {\n        display: list-item;\n      }\n\n      template {\n        display: none;\n      }\n\n      [hidden] {\n        display: none !important;\n      }\n\n      body,\n      blockquote,\n      dl,\n      dd,\n      h1,\n      h2,\n      h3,\n      h4,\n      h5,\n      h6,\n      hr,\n      figure,\n      p,\n      pre {\n        margin: 0;\n      }\n\n      button {\n        background: transparent;\n        padding: 0;\n      }\n\n      fieldset {\n        margin: 0;\n        padding: 0;\n      }\n\n      ol,\n      ul {\n        margin: 0;\n        padding: 0;\n      }\n\n      textarea {\n        resize: vertical;\n      }\n\n      button,\n      [role="button"] {\n        cursor: pointer;\n      }\n\n      button::-moz-focus-inner {\n        border: 0 !important;\n      }\n\n      table {\n        border-collapse: collapse;\n      }\n\n      h1,\n      h2,\n      h3,\n      h4,\n      h5,\n      h6 {\n        font-size: inherit;\n        font-weight: inherit;\n      }\n\n      button,\n      input,\n      optgroup,\n      select,\n      textarea {\n        padding: 0;\n        line-height: inherit;\n        color: inherit;\n      }\n\n      img,\n      svg,\n      video,\n      canvas,\n      audio,\n      iframe,\n      embed,\n      object {\n        display: block;\n      }\n\n      img,\n      video {\n        max-width: 100%;\n        height: auto;\n      }\n\n      [data-js-focus-visible] :focus:not([data-focus-visible-added]) {\n        outline: none;\n        box-shadow: none;\n      }\n\n      select::-ms-expand {\n        display: none;\n      }\n    '})},l=n(46871),d=n(5993),f=n(20949),p=n(85393),h=n(97375),m={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"};function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}var g=v({},m,{max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem"},{container:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}});function y(e,t){(function(e){return"string"===typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"===typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function b(e){return Math.min(1,Math.max(0,e))}function x(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function _(e){return e<=1?100*Number(e)+"%":e}function w(e){return 1===e.length?"0"+e:String(e)}function S(e,t,n){e=y(e,255),t=y(t,255),n=y(n,255);
1var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=0,s=(r+i)/2;if(r===i)a=0,o=0;else{var u=r-i;switch(a=s>.5?u/(2-r-i):u/(r+i),r){case e:o=(t-n)/u+(t<n?6:0);break;case t:o=(n-e)/u+2;break;case n:o=(e-t)/u+4}o/=6}return{h:o,s:a,l:s}}function k(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function E(e,t,n){e=y(e,255),t=y(t,255),n=y(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=r,s=r-i,u=0===r?0:s/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/s+(t<n?6:0);break;case t:o=(n-e)/s+2;break;case n:o=(e-t)/s+4}o/=6}return{h:o,s:u,v:a}}function C(e,t,n,r){var i=[w(Math.round(e).toString(16)),w(Math.round(t).toString(16)),w(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function j(e){return Math.round(255*parseFloat(e)).toString(16)}function T(e){return R(e)/255}function R(e){return parseInt(e,16)}var O={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",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",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",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:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",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:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function P(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return"string"===typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(O[e])e=O[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=N.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=N.rgba.exec(e))return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=N.hsl.exec(e))return{h:n[1],s:n[2],l:n[3]};if(n=N.hsla.exec(e))return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=N.hsv.exec(e))return{h:n[1],s:n[2],v:n[3]};if(n=N.hsva.exec(e))return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=N.hex8.exec(e))return{r:R(n[1]),g:R(n[2]),b:R(n[3]),a:T(n[4]),format:t?"name":"hex8"};if(n=N.hex6.exec(e))return{r:R(n[1]),g:R(n[2]),b:R(n[3]),format:t?"name":"hex"};if(n=N.hex4.exec(e))return{r:R(n[1]+n[1]),g:R(n[2]+n[2]),b:R(n[3]+n[3]),a:T(n[4]+n[4]),format:t?"name":"hex8"};if(n=N.hex3.exec(e))return{r:R(n[1]+n[1]),g:R(n[2]+n[2]),b:R(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"===typeof e&&(M(e.r)&&M(e.g)&&M(e.b)?(t=function(e,t,n){return{r:255*y(e,255),g:255*y(t,255),b:255*y(n,255)}}(e.r,e.g,e.b),a=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):M(e.h)&&M(e.s)&&M(e.v)?(r=_(e.s),i=_(e.v),t=function(e,t,n){e=6*y(e,360),t=y(t,100),n=y(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),u=r%6;return{r:255*[n,a,o,o,s,n][u],g:255*[s,n,n,a,o,o][u],b:255*[o,o,s,n,n,a][u]}}(e.h,r,i),a=!0,s="hsv"):M(e.h)&&M(e.s)&&M(e.l)&&(r=_(e.s),o=_(e.l),t=function(e,t,n){var r,i,o;if(e=y(e,360),t=y(t,100),n=y(n,100),0===t)i=n,o=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=k(s,a,e+1/3),i=k(s,a,e),o=k(s,a,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,r,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=x(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var A="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",D="[\\s|\\(]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")\\s*\\)?",I="[\\s|\\(]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")\\s*\\)?",N={CSS_UNIT:new RegExp(A),rgb:new RegExp("rgb"+D),rgba:new RegExp("rgba"+I),hsl:new RegExp("hsl"+D),hsla:new RegExp("hsla"
1+I),hsv:new RegExp("hsv"+D),hsva:new RegExp("hsva"+I),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function M(e){return Boolean(N.CSS_UNIT.exec(String(e)))}var F=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"===typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var i=P(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=x(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var e=E(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=E(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this.roundA+")"},e.prototype.toHsl=function(){var e=S(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=S(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this.roundA+")"},e.prototype.toHex=function(e){return void 0===e&&(e=!1),C(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,i){var o=[w(Math.round(e).toString(16)),w(Math.round(t).toString(16)),w(Math.round(n).toString(16)),w(j(r))];return i&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb("+e+", "+t+", "+n+")":"rgba("+e+", "+t+", "+n+", "+this.roundA+")"},e.prototype.toPercentageRgb=function(){var e=function(e){return Math.round(100*y(e,255))+"%"};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*y(e,255))};return 1===this.a?"rgb("+e(this.r)+"%, "+e(this.g)+"%, "+e(this.b)+"%)":"rgba("+e(this.r)+"%, "+e(this.g)+"%, "+e(this.b)+"%, "+this.roundA+")"},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+C(this.r,this.g,this.b,!1),t=0,n=Object.entries(O);t<n.length;t++){var r=n[t],i=r[0];if(e===r[1])return i}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!==e&&void 0!==e?e:this.format;var n=!1,r=this.a<1&&this.a>=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=b(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=b(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=b(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=b(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),o=n/100;return new e({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),i=360/n,o=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:i,v:o})),o=(o+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]}
1,e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb();return new e({r:r.r+(n.r-r.r)*n.a,g:r.g+(n.g-r.g)*n.a,b:r.b+(n.b-r.b)*n.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],o=360/t,a=1;a<t;a++)i.push(new e({h:(r+a*o)%360,s:n.s,l:n.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function B(e){if(void 0===e&&(e={}),void 0!==e.count&&null!==e.count){var t=e.count,n=[];for(e.count=void 0;t>n.length;)e.count=null,e.seed&&(e.seed+=1),n.push(B(e));return e.count=t,n}var r=function(e,t){var n=z(function(e){var t=parseInt(e,10);if(!Number.isNaN(t)&&t<360&&t>0)return[t,t];if("string"===typeof e){var n=H.find((function(t){return t.name===e}));if(n){var r=U(n);if(r.hueRange)return r.hueRange}var i=new F(e);if(i.isValid){var o=i.toHsv().h;return[o,o]}}return[0,360]}(e),t);n<0&&(n=360+n);return n}(e.hue,e.seed),i=function(e,t){if("monochrome"===t.hue)return 0;if("random"===t.luminosity)return z([0,100],t.seed);var n=L(e).saturationRange,r=n[0],i=n[1];switch(t.luminosity){case"bright":r=55;break;case"dark":r=i-10;break;case"light":i=55}return z([r,i],t.seed)}(r,e),o=function(e,t,n){var r=function(e,t){for(var n=L(e).lowerBounds,r=0;r<n.length-1;r++){var i=n[r][0],o=n[r][1],a=n[r+1][0],s=n[r+1][1];if(t>=i&&t<=a){var u=(s-o)/(a-i);return u*t+(o-u*i)}}return 0}(e,t),i=100;switch(n.luminosity){case"dark":i=r+20;break;case"light":r=(i+r)/2;break;case"random":r=0,i=100}return z([r,i],n.seed)}(r,i,e),a={h:r,s:i,v:o};return void 0!==e.alpha&&(a.a=e.alpha),new F(a)}function L(e){e>=334&&e<=360&&(e-=360);for(var t=0,n=H;t<n.length;t++){var r=U(n[t]);if(r.hueRange&&e>=r.hueRange[0]&&e<=r.hueRange[1])return r}throw Error("Color not found")}function z(e,t){if(void 0===t)return Math.floor(e[0]+Math.random()*(e[1]+1-e[0]));var n=e[1]||1,r=e[0]||0,i=(t=(9301*t+49297)%233280)/233280;return Math.floor(r+i*(n-r))}function U(e){var t=e.lowerBounds[0][0],n=e.lowerBounds[e.lowerBounds.length-1][0],r=e.lowerBounds[e.lowerBounds.length-1][1],i=e.lowerBounds[0][1];return{name:e.name,hueRange:e.hueRange,lowerBounds:e.lowerBounds,saturationRange:[t,n],brightnessRange:[r,i]}}var H=[{name:"monochrome",hueRange:null,lowerBounds:[[0,0],[100,0]]},{name:"red",hueRange:[-26,18],lowerBounds:[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]},{name:"orange",hueRange:[19,46],lowerBounds:[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]},{name:"yellow",hueRange:[47,62],lowerBounds:[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]},{name:"green",hueRange:[63,178],lowerBounds:[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]},{name:"blue",hueRange:[179,257],lowerBounds:[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]},{name:"purple",hueRange:[258,282],lowerBounds:[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]},{name:"pink",hueRange:[283,334],lowerBounds:[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]}],V=n(15031),W=function(e,t,n){var r=(0,V.Wf)(e,"colors."+t,t);return new F(r).isValid?r:n},G=function(e){return function(t){var n=W(t,e);return new F(n).isDark()?"dark":"light"}},q=function(e,t){return function(n){var r=W(n,e);return new F(r).setAlpha(t).toRgbString()}};function Z(e,t){return void 0===e&&(e="1rem"),void 0===t&&(t="rgba(255, 255, 255, 0.15)"),{backgroundImage:"linear-gradient(\n    45deg,\n    "+t+" 25%,\n    transparent 25%,\n    transparent 50%,\n    "+t+" 50%,\n    "+t+" 75%,\n    transparent 75%,\n    transparent\n  )",backgroundSize:e+" "+e}}function $(e){var t=B().toHexString();return!e||(0,V.Qr)(e)?t:e.string&&e.colors?function(e,t){var n=0;if(0===e.length)return t[0];for(var r=0;r<e.length;r+=1)n=e.charCodeAt(r)+((n<<5)-n),n&=n;return n=(n%t.length+t.length)%t.length,t[n]}(e.string,e.colors):e.string&&!e.colors?function(e){var t=0;if(0===e.length)return t.toString();for(var n=0;n<e.length;n+=1)t=e.charCodeAt(n)+((t<<5)-t),t&=t;for(var r="#",i=0;i<3;i+=1){r+=("00"+(t>>8*i&255).toString(16)).substr(-2)}return r}(e.string):e.colors&&!e.string?function(e){return e[Math.floor(Math.random()*e.length)]}(e.colors):t}function Y(e,t){return function(n){return"dark"===n.colorMode?t:e}}function K(e){var t=e.orientation,n=e.vertical,r=e.horizontal;return t?"vertical"===t?n:r:{}}function X(){return X=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X.apply(this,arguments)}function Q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var J=function(){function e(e){var t=this;this.map={},this.called=!1,this.assert=function(){if(t.called)throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?");t.called=!0},this.parts=function(){t.assert();for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];t.map[a]=t.toPart(a)}return t},this.extend=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];a in t.map||(t.map[a]=t.toPart(a))}return t},this.toPart=function(e){var n="chakra-"+(["container","root"].includes(null!=e?e:"")?[t.name]:[t.name,e]).filter(
1Boolean).join("__");return{className:n,selector:"."+n,toString:function(){return e}}},this.__type={}}var t,n,r;return t=e,(n=[{key:"selectors",get:function(){return(0,V.sq)(Object.entries(this.map).map((function(e){return[e[0],e[1].selector]})))}},{key:"classNames",get:function(){return(0,V.sq)(Object.entries(this.map).map((function(e){return[e[0],e[1].className]})))}},{key:"keys",get:function(){return Object.keys(this.map)}}])&&Q(t.prototype,n),r&&Q(t,r),e}();function ee(e){return new J(e)}function te(e){return(0,V.Kn)(e)&&e.reference?e.reference:String(e)}var ne=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.map(te).join(" "+e+" ").replace(/calc/g,"")},re=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+ne.apply(void 0,["+"].concat(t))+")"},ie=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+ne.apply(void 0,["-"].concat(t))+")"},oe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+ne.apply(void 0,["*"].concat(t))+")"},ae=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc("+ne.apply(void 0,["/"].concat(t))+")"},se=function(e){var t=te(e);return null==t||Number.isNaN(parseFloat(t))?oe(t,-1):String(t).startsWith("-")?String(t).slice(1):"-"+t},ue=Object.assign((function(e){return{add:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ue(re.apply(void 0,[e].concat(n)))},subtract:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ue(ie.apply(void 0,[e].concat(n)))},multiply:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ue(oe.apply(void 0,[e].concat(n)))},divide:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ue(ae.apply(void 0,[e].concat(n)))},negate:function(){return ue(se(e))},toString:function(){return e.toString()}}}),{add:re,subtract:ie,multiply:oe,divide:ae,negate:se});function ce(e){var t=function(e,t){return void 0===t&&(t="-"),e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:function(e){return!Number.isInteger(parseFloat(e.toString()))}(e)?t.replace(".","\\."):e}function le(e,t){return"var("+ce(e)+(t?", "+t:"")+")"}function de(e,t){return void 0===t&&(t=""),"--"+function(e,t){return void 0===t&&(t=""),[t,ce(e)].filter(Boolean).join("-")}(e,t)}function fe(e,t){var n=de(e,null==t?void 0:t.prefix);return{variable:n,reference:le(n,pe(null==t?void 0:t.fallback))}}function pe(e){return"string"===typeof e?e:null==e?void 0:e.reference}var he=ee("accordion").parts("root","container","button","panel").extend("icon"),me=ee("alert").parts("title","description","container").extend("icon"),ve=ee("avatar").parts("label","badge","container").extend("excessLabel","group"),ge=ee("breadcrumb").parts("link","item","container").extend("separator"),ye=(ee("button").parts(),ee("checkbox").parts("control","icon","container").extend("label")),be=(ee("progress").parts("track","filledTrack").extend("label"),ee("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer")),xe=ee("editable").parts("preview","input","textarea"),_e=ee("form").parts("container","requiredIndicator","helperText"),we=ee("formError").parts("text","icon"),Se=ee("input").parts("addon","field","element"),ke=ee("list").parts("container","item","icon"),Ee=ee("menu").parts("button","list","item").extend("groupTitle","command","divider"),Ce=ee("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),je=ee("numberinput").parts("root","field","stepperGroup","stepper"),Te=(ee("pininput").parts("field"),ee("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton")),Re=ee("progress").parts("label","filledTrack","track"),Oe=ee("radio").parts("container","control","label"),Pe=ee("select").parts("field","icon"),Ae=ee("slider").parts("container","track","thumb","filledTrack"),De=ee("stat").parts("container","label","helpText","number","icon"),Ie=ee("switch").parts("container","track","thumb"),Ne=ee("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),Me=ee("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),Fe=ee("tag").parts("container","label","closeButton"),Be={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},Le=n(38554),ze=n.n(Le),Ue={root:{},container:{borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},button:{transitionProperty:"common",transitionDuration:"normal",fontSize:"1rem",_focus:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:4,py:2},panel:{pt:2,px:4,pb:5},icon:{fontSize:"1.25em"}},He={parts:he.keys,baseStyle:Ue};function Ve(e){var t=e.theme,n=e.colorScheme;
1return Y(W(t,n+".100",n),q(n+".200",.16)(t))(e)}var We={subtle:function(e){var t=e.colorScheme;return{container:{bg:Ve(e)},icon:{color:Y(t+".500",t+".200")(e)}}},"left-accent":function(e){var t=e.colorScheme;return{container:{paddingStart:3,borderStartWidth:"4px",borderStartColor:Y(t+".500",t+".200")(e),bg:Ve(e)},icon:{color:Y(t+".500",t+".200")(e)}}},"top-accent":function(e){var t=e.colorScheme;return{container:{pt:2,borderTopWidth:"4px",borderTopColor:Y(t+".500",t+".200")(e),bg:Ve(e)},icon:{color:Y(t+".500",t+".200")(e)}}},solid:function(e){var t=e.colorScheme;return{container:{bg:Y(t+".500",t+".200")(e),color:Y("white","gray.900")(e)}}}},Ge={parts:me.keys,baseStyle:{container:{px:4,py:3},title:{fontWeight:"bold",lineHeight:6,marginEnd:2},description:{lineHeight:6},icon:{flexShrink:0,marginEnd:3,w:5,h:6}},variants:We,defaultProps:{variant:"subtle",colorScheme:"blue"}},qe=function(e){return{transform:"translate(25%, 25%)",borderRadius:"full",border:"0.2em solid",borderColor:Y("white","gray.800")(e)}},Ze=function(e){return{bg:Y("gray.200","whiteAlpha.400")(e)}},$e=function(e){var t=e.name,n=e.theme,r=t?$({string:t}):"gray.400",i=function(e){return function(t){return"dark"===G(e)(t)}}(r)(n),o="white";return i||(o="gray.800"),{bg:r,color:o,borderColor:Y("white","gray.800")(e),verticalAlign:"top"}};function Ye(e){var t=g[e];return{container:{width:e,height:e,fontSize:"calc("+(null!=t?t:e)+" / 2.5)"},excessLabel:{width:e,height:e},label:{fontSize:"calc("+(null!=t?t:e)+" / 2.5)",lineHeight:"100%"!==e?null!=t?t:e:void 0}}}var Ke,Xe,Qe,Je={"2xs":Ye("4"),xs:Ye("6"),sm:Ye("8"),md:Ye("12"),lg:Ye("16"),xl:Ye("24"),"2xl":Ye("32"),full:Ye("100%")},et={parts:ve.keys,baseStyle:function(e){return{badge:qe(e),excessLabel:Ze(e),container:$e(e)}},sizes:Je,defaultProps:{size:"md"}},tt={solid:function(e){var t=e.colorScheme,n=e.theme;return{bg:Y(t+".500",q(t+".500",.6)(n))(e),color:Y("white","whiteAlpha.800")(e)}},subtle:function(e){var t=e.colorScheme,n=e.theme;return{bg:Y(t+".100",q(t+".200",.16)(n))(e),color:Y(t+".800",t+".200")(e)}},outline:function(e){var t=e.colorScheme,n=e.theme,r=q(t+".200",.8)(n),i=Y(W(n,t+".500"),r)(e);return{color:i,boxShadow:"inset 0 0 0px 1px "+i}}},nt={baseStyle:{px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold"},variants:tt,defaultProps:{variant:"subtle",colorScheme:"gray"}},rt={link:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focus:{boxShadow:"outline"}}},it={parts:ge.keys,baseStyle:rt},ot=function(e){var t=e.colorScheme,n=e.theme;if("gray"===t)return{color:Y("inherit","whiteAlpha.900")(e),_hover:{bg:Y("gray.100","whiteAlpha.200")(e)},_active:{bg:Y("gray.200","whiteAlpha.300")(e)}};var r=q(t+".200",.12)(n),i=q(t+".200",.24)(n);return{color:Y(t+".600",t+".200")(e),bg:"transparent",_hover:{bg:Y(t+".50",r)(e)},_active:{bg:Y(t+".100",i)(e)}}},at={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},st={ghost:ot,outline:function(e){var t=e.colorScheme,n=Y("gray.200","whiteAlpha.300")(e);return v({border:"1px solid",borderColor:"gray"===t?n:"currentColor"},ot(e))},solid:function(e){var t,n=e.colorScheme;if("gray"===n){var r=Y("gray.100","whiteAlpha.200")(e);return{bg:r,_hover:{bg:Y("gray.200","whiteAlpha.300")(e),_disabled:{bg:r}},_active:{bg:Y("gray.300","whiteAlpha.400")(e)}}}var i=null!=(t=at[n])?t:{},o=i.bg,a=void 0===o?n+".500":o,s=i.color,u=void 0===s?"white":s,c=i.hoverBg,l=void 0===c?n+".600":c,d=i.activeBg,f=void 0===d?n+".700":d,p=Y(a,n+".200")(e);return{bg:p,color:Y(u,"gray.800")(e),_hover:{bg:Y(l,n+".300")(e),_disabled:{bg:p}},_active:{bg:Y(f,n+".400")(e)}}},link:function(e){var t=e.colorScheme;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:Y(t+".500",t+".200")(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:Y(t+".700",t+".500")(e)}}},unstyled:{bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:0,p:0}},ut={baseStyle:{lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focus:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},variants:st,sizes:{lg:{h:12,minW:12,fontSize:"lg",px:6},md:{h:10,minW:10,fontSize:"md",px:4},sm:{h:8,minW:8,fontSize:"sm",px:3},xs:{h:6,minW:6,fontSize:"xs",px:2}},defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},ct=function(e){var t=e.colorScheme;return{w:"100%",transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px s
1olid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:Y(t+".500",t+".200")(e),borderColor:Y(t+".500",t+".200")(e),color:Y("white","gray.900")(e),_hover:{bg:Y(t+".600",t+".300")(e),borderColor:Y(t+".600",t+".300")(e)},_disabled:{borderColor:Y("gray.200","transparent")(e),bg:Y("gray.200","whiteAlpha.300")(e),color:Y("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:Y(t+".500",t+".200")(e),borderColor:Y(t+".500",t+".200")(e),color:Y("white","gray.900")(e)},_disabled:{bg:Y("gray.100","whiteAlpha.100")(e),borderColor:Y("gray.100","transparent")(e)},_focus:{boxShadow:"outline"},_invalid:{borderColor:Y("red.500","red.300")(e)}}},lt={userSelect:"none",_disabled:{opacity:.4}},dt={transitionProperty:"transform",transitionDuration:"normal"},ft={parts:ye.keys,baseStyle:function(e){return{icon:dt,control:ct(e),label:lt}},sizes:{sm:{control:{h:3,w:3},label:{fontSize:"sm"},icon:{fontSize:"0.45rem"}},md:{control:{w:4,h:4},label:{fontSize:"md"},icon:{fontSize:"0.625rem"}},lg:{control:{w:5,h:5},label:{fontSize:"lg"},icon:{fontSize:"0.625rem"}}},defaultProps:{size:"md",colorScheme:"blue"}},pt=fe("close-button-size"),ht={baseStyle:function(e){var t=Y("blackAlpha.100","whiteAlpha.100")(e),n=Y("blackAlpha.200","whiteAlpha.200")(e);return{w:[pt.reference],h:[pt.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{bg:t},_active:{bg:n},_focus:{boxShadow:"outline"}}},sizes:{lg:(Ke={},Ke[pt.variable]="40px",Ke.fontSize="16px",Ke),md:(Xe={},Xe[pt.variable]="32px",Xe.fontSize="12px",Xe),sm:(Qe={},Qe[pt.variable]="24px",Qe.fontSize="10px",Qe)},defaultProps:{size:"md"}},mt={baseStyle:{fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm"},variants:nt.variants,defaultProps:nt.defaultProps},vt={baseStyle:{w:"100%",mx:"auto",maxW:"60ch",px:"1rem"}},gt={baseStyle:{opacity:.6,borderColor:"inherit"},variants:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"}},defaultProps:{variant:"solid"}};function yt(e){return"full"===e?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}}}var bt={bg:"blackAlpha.600",zIndex:"overlay"},xt={display:"flex",zIndex:"modal",justifyContent:"center"},_t=function(e){return v({},e.isFullHeight&&{height:"100vh"},{zIndex:"modal",maxH:"100vh",bg:Y("white","gray.700")(e),color:"inherit",boxShadow:Y("lg","dark-lg")(e)})},wt={px:6,py:4,fontSize:"xl",fontWeight:"semibold"},St={position:"absolute",top:2,insetEnd:3},kt={px:6,py:2,flex:1,overflow:"auto"},Et={px:6,py:4},Ct={xs:yt("xs"),sm:yt("md"),md:yt("lg"),lg:yt("2xl"),xl:yt("4xl"),full:yt("full")},jt={parts:be.keys,baseStyle:function(e){return{overlay:bt,dialogContainer:xt,dialog:_t(e),header:wt,closeButton:St,body:kt,footer:Et}},sizes:Ct,defaultProps:{size:"xs"}},Tt={preview:{borderRadius:"md",py:"3px",transitionProperty:"common",transitionDuration:"normal"},input:{borderRadius:"md",py:"3px",transitionProperty:"common",transitionDuration:"normal",width:"full",_focus:{boxShadow:"outline"},_placeholder:{opacity:.6}},textarea:{borderRadius:"md",py:"3px",transitionProperty:"common",transitionDuration:"normal",width:"full",_focus:{boxShadow:"outline"},_placeholder:{opacity:.6}}},Rt={parts:xe.keys,baseStyle:Tt},Ot=function(e){return{marginStart:1,color:Y("red.500","red.300")(e)}},Pt=function(e){return{mt:2,color:Y("gray.500","whiteAlpha.600")(e),lineHeight:"normal",fontSize:"sm"}},At={parts:_e.keys,baseStyle:function(e){return{container:{width:"100%",position:"relative"},requiredIndicator:Ot(e),helperText:Pt(e)}}},Dt=function(e){return{color:Y("red.500","red.300")(e),mt:2,fontSize:"sm",lineHeight:"normal"}},It=function(e){return{marginEnd:"0.5em",color:Y("red.500","red.300")(e)}},Nt={parts:we.keys,baseStyle:function(e){return{text:Dt(e),icon:It(e)}}},Mt={baseStyle:{fontSize:"md",marginEnd:3,mb:2,fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}},Ft={baseStyle:{fontFamily:"heading",fontWeight:"bold"},sizes:{"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},defaultProps:{size:"xl"}},Bt={lg:{fontSize:"lg",px:4,h:12,borderRadius:"md"},md:{fontSize:"md",px:4,h:10,borderRadius:"md"},sm:{fontSize:"sm",px:3,h:8,borderRadius:"sm"},xs:{fontSize:"xs",px:2,h:6,borderRadius:"sm"}},Lt={lg:{field:Bt.lg,addon:Bt.lg},md:{field:Bt.md,addon:Bt.md}
1,sm:{field:Bt.sm,addon:Bt.sm},xs:{field:Bt.xs,addon:Bt.xs}};function zt(e){var t=e.focusBorderColor,n=e.errorBorderColor;return{focusBorderColor:t||Y("blue.500","blue.300")(e),errorBorderColor:n||Y("red.500","red.300")(e)}}var Ut={outline:function(e){var t=e.theme,n=zt(e),r=n.focusBorderColor,i=n.errorBorderColor;return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:Y("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_disabled:{opacity:.4,cursor:"not-allowed"},_invalid:{borderColor:W(t,i),boxShadow:"0 0 0 1px "+W(t,i)},_focus:{zIndex:1,borderColor:W(t,r),boxShadow:"0 0 0 1px "+W(t,r)}},addon:{border:"1px solid",borderColor:Y("inherit","whiteAlpha.50")(e),bg:Y("gray.100","whiteAlpha.300")(e)}}},filled:function(e){var t=e.theme,n=zt(e),r=n.focusBorderColor,i=n.errorBorderColor;return{field:{border:"2px solid",borderColor:"transparent",bg:Y("gray.100","whiteAlpha.50")(e),_hover:{bg:Y("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_disabled:{opacity:.4,cursor:"not-allowed"},_invalid:{borderColor:W(t,i)},_focus:{bg:"transparent",borderColor:W(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:Y("gray.100","whiteAlpha.50")(e)}}},flushed:function(e){var t=e.theme,n=zt(e),r=n.focusBorderColor,i=n.errorBorderColor;return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:0,px:0,bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:W(t,i),boxShadow:"0px 1px 0px 0px "+W(t,i)},_focus:{borderColor:W(t,r),boxShadow:"0px 1px 0px 0px "+W(t,r)}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:0,px:0,bg:"transparent"}}},unstyled:{field:{bg:"transparent",px:0,height:"auto"},addon:{bg:"transparent",px:0,height:"auto"}}},Ht={parts:Se.keys,baseStyle:{field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal"}},sizes:Lt,variants:Ut,defaultProps:{size:"md",variant:"outline"}},Vt={baseStyle:function(e){return{bg:Y("gray.100","whiteAlpha")(e),borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}}},Wt={baseStyle:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focus:{boxShadow:"outline"}}},Gt={container:{},item:{},icon:{marginEnd:"0.5rem",display:"inline",verticalAlign:"text-bottom"}},qt={parts:ke.keys,baseStyle:Gt},Zt=function(e){return{bg:Y("#fff","gray.700")(e),boxShadow:Y("sm","dark-lg")(e),color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px"}},$t=function(e){return{py:"0.4rem",px:"0.8rem",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{bg:Y("gray.100","whiteAlpha.100")(e)},_active:{bg:Y("gray.200","whiteAlpha.200")(e)},_expanded:{bg:Y("gray.100","whiteAlpha.100")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}},Yt={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},Kt={opacity:.6},Xt={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"0.5rem",opacity:.6},Qt={transitionProperty:"common",transitionDuration:"normal"},Jt={parts:Ee.keys,baseStyle:function(e){return{button:Qt,list:Zt(e),item:$t(e),groupTitle:Yt,command:Kt,divider:Xt}}},en={bg:"blackAlpha.600",zIndex:"modal"},tn=function(e){return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:e.isCentered?"center":"flex-start",overflow:"inside"===e.scrollBehavior?"hidden":"auto"}},nn=function(e){var t=e.scrollBehavior;return{borderRadius:"md",bg:Y("white","gray.700")(e),color:"inherit",my:"3.75rem",zIndex:"modal",maxH:"inside"===t?"calc(100% - 7.5rem)":void 0,boxShadow:Y("lg","dark-lg")(e)}},rn={px:6,py:4,fontSize:"xl",fontWeight:"semibold"},on={position:"absolute",top:2,insetEnd:3},an=function(e){return{px:6,py:2,flex:1,overflow:"inside"===e.scrollBehavior?"auto":void 0}},sn={px:6,py:4};function un(e){return"full"===e?{dialog:{maxW:"100vw",minH:"100vh","@supports(min-height: -webkit-fill-available)":{minH:"-webkit-fill-available"},my:0}}:{dialog:{maxW:e}}}var cn,ln,dn,fn={xs:un("xs"),sm:un("sm"),md:un("md"),lg:un("lg"),xl:un("xl"),"2xl":un("2xl"),"3xl":un("3xl"),"4xl":un("4xl"),"5xl":un("5xl"),"6xl":un("6xl"),full:un("full")},pn={parts:Ce.keys,baseStyle:function(e){return{overlay:en,dialogContainer:tn(e),dialog:nn(e),header:rn,closeButton:on,body:an(e),footer:sn}},sizes:fn,defaultProps:{size:"md"}},hn=Ht.variants,mn=Ht.defaultProps,vn=fe("number-input-stepper-width"),gn=fe("number-input-input-padding"),yn=ue(vn).add("0.5rem").toString(),bn=((cn={})[vn.variable]="24px",cn[gn.variable]=yn,cn),xn=null!=(ln=null==(dn=Ht.baseStyle)?void 0:dn.field)?ln:{},_n={width:[vn.reference]},wn=function(e){return{borderStart:"1px solid",borderStartColor:Y("inherit","whiteAlpha.300")(e),color:Y("inherit","whiteAlpha.800")(e),_active:{bg:Y("gray.200","whiteAlpha.300")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}};function Sn(e){var t,n,r=Ht.sizes[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},o=null!=(t=null==(n=r.field)?void 0:n.fontSize)?t:"md",a=Be.fontSizes[o.toString()];return{field:v({},r.field,{paddingInlineEnd:gn.reference,verticalAlign:"top"}),stepper:{fontSize:ue(a).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}}}var kn,En={xs:Sn("xs"),sm:Sn("sm"),md:Sn("md"),lg:Sn("lg")},Cn={parts:je.keys,baseStyle:function(e){return{root:bn,field:xn,stepperGroup:_n,stepper:wn(e)}},sizes:En,variants:hn,defaultProps:mn},jn={baseStyle:v({},Ht.baseStyle.field,{textAlign:"center"}),sizes:{lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},variants:{outline:function(e){var t;return null!=(t=Ht.variants.outline(e).field)?t:{}},flushed:function(e){var t;return null!=(t=Ht.variants.flushed(e).field)?t:{}},filled:function(e){var t;return null!=(t=Ht.variants.filled(e).field)?t:{}},unstyled:null!=(kn=Ht.variants.unstyled.field)?kn:{}},defaultProps:Ht.defaultProps},Tn=fe("popper-bg"),Rn=fe("popper-arrow-bg"),On=fe("popper-arrow-shadow-color"),Pn={zIndex:10},An=function(e){var t,n=Y("white","gray.700")(e),r=Y("gray.200","whiteAlpha.300")(e);return(t={})[Tn.variable]="colors."+n,t.bg=Tn.reference,t[Rn.variable]=Tn.reference,t[On.variable]="colors."+r,t.width="xs",t.border="1px solid",t.borderColor="inherit",t.borderRadius="md",t.boxShadow="sm",t.zIndex="inherit",t._focus={outline:0,boxShadow:"outline"},t},Dn={px:3,py:2,borderBottomWidth:"1px"},In={px:3,py:2},Nn={px:3,py:2,borderTopWidth:"1px"},Mn={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},Fn={parts:Te.keys,baseStyle:function(e){return{popper:Pn,content:An(e),header:Dn,body:In,footer:Nn,arrow:{},closeButton:Mn}}};var Bn={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},Ln=function(e){return{bg:Y("gray.100","whiteAlpha.300")(e)}},zn=function(e){return v({transitionProperty:"common",transitionDuration:"slow"},function(e){var t=e.colorScheme,n=e.theme,r=e.isIndeterminate,i=e.hasStripe,o=Y(Z(),Z("1rem","rgba(0,0,0,0.1)"))(e),a=Y(t+".500",t+".200")(e),s="linear-gradient(\n    to right,\n    transparent 0%,\n    "+W(n,a)+" 50%,\n    transparent 100%\n  )";return v({},!r&&i&&o,r?{bgImage:s}:{bgColor:a})}(e))},Un={parts:Re.keys,sizes:{xs:{track:{h:"0.25rem"}},sm:{track:{h:"0.5rem"}},md:{track:{h:"0.75rem"}},lg:{track:{h:"1rem"}}},baseStyle:function(e){return{label:Bn,filledTrack:zn(e),track:Ln(e)}},defaultProps:{size:"md",colorScheme:"blue"}},Hn=function(e){var t=ft.baseStyle(e).control,n=void 0===t?{}:t;return v({},n,{borderRadius:"full",_checked:v({}
1,n._checked,{_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}})})},Vn={parts:Oe.keys,baseStyle:function(e){return{label:ft.baseStyle(e).label,control:Hn(e)}},sizes:{md:{control:{w:4,h:4},label:{fontSize:"md"}},lg:{control:{w:5,h:5},label:{fontSize:"lg"}},sm:{control:{width:3,height:3},label:{fontSize:"sm"}}},defaultProps:{size:"md",colorScheme:"blue"}},Wn=function(e){return v({},Ht.baseStyle.field,{bg:Y("white","gray.700")(e),appearance:"none",paddingBottom:"1px",lineHeight:"normal","> option, > optgroup":{bg:Y("white","gray.700")(e)}})},Gn={width:"1.5rem",height:"100%",insetEnd:"0.5rem",position:"relative",color:"currentColor",fontSize:"1.25rem",_disabled:{opacity:.5}},qn={paddingInlineEnd:"2rem"},Zn=ze()({},Ht.sizes,{lg:{field:qn},md:{field:qn},sm:{field:qn},xs:{field:qn,icon:{insetEnd:"0.25rem"}}}),$n={parts:Pe.keys,baseStyle:function(e){return{field:Wn(e),icon:Gn}},sizes:Zn,variants:Ht.variants,defaultProps:Ht.defaultProps},Yn=function(e,t){return(0,s.F4)({from:{borderColor:e,background:e},to:{borderColor:t,background:t}})},Kn={baseStyle:function(e){var t=Y("gray.100","gray.800")(e),n=Y("gray.400","gray.600")(e),r=e.startColor,i=void 0===r?t:r,o=e.endColor,a=void 0===o?n:o,s=e.speed,u=e.theme,c=W(u,i),l=W(u,a);return{opacity:.7,borderRadius:"2px",borderColor:c,background:l,animation:s+"s linear infinite alternate "+Yn(c,l)}}},Xn={baseStyle:function(e){return{borderRadius:"md",fontWeight:"semibold",_focus:{boxShadow:"outline",padding:"1rem",position:"fixed",top:"1.5rem",insetStart:"1.5rem",bg:Y("white","gray.700")(e)}}}};var Qn,Jn,er,tr,nr,rr,ir,or,ar,sr,ur,cr,lr,dr=function(e){return v({display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"}},K({orientation:e.orientation,vertical:{h:"100%"},horizontal:{w:"100%"}}))},fr=function(e){return{overflow:"hidden",borderRadius:"sm",bg:Y("gray.200","whiteAlpha.200")(e),_disabled:{bg:Y("gray.300","whiteAlpha.300")(e)}}},pr=function(e){return v({display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focus:{boxShadow:"outline"},_disabled:{bg:"gray.300"}},function(e){return K({orientation:e.orientation,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}})}(e))},hr=function(e){var t=e.colorScheme;return{width:"inherit",height:"inherit",bg:Y(t+".500",t+".200")(e)}},mr={lg:function(e){return{thumb:{w:"16px",h:"16px"},track:K({orientation:e.orientation,horizontal:{h:"4px"},vertical:{w:"4px"}})}},md:function(e){return{thumb:{w:"14px",h:"14px"},track:K({orientation:e.orientation,horizontal:{h:"4px"},vertical:{w:"4px"}})}},sm:function(e){return{thumb:{w:"10px",h:"10px"},track:K({orientation:e.orientation,horizontal:{h:"2px"},vertical:{w:"2px"}})}}},vr={parts:Ae.keys,sizes:mr,baseStyle:function(e){return{container:dr(e),track:fr(e),thumb:pr(e),filledTrack:hr(e)}},defaultProps:{size:"md",colorScheme:"blue"}},gr=fe("spinner-size"),yr={baseStyle:{width:[gr.reference],height:[gr.reference]},sizes:{xs:(Qn={},Qn[gr.variable]="0.75rem",Qn),sm:(Jn={},Jn[gr.variable]="1rem",Jn),md:(er={},er[gr.variable]="1.5rem",er),lg:(tr={},tr[gr.variable]="2rem",tr),xl:(nr={},nr[gr.variable]="3rem",nr)},defaultProps:{size:"md"}},br={container:{},label:{fontWeight:"medium"},helpText:{opacity:.8,marginBottom:2},number:{verticalAlign:"baseline",fontWeight:"semibold"},icon:{marginEnd:1,w:"14px",h:"14px",verticalAlign:"middle"}},xr={parts:De.keys,baseStyle:br,sizes:{md:{label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}}},defaultProps:{size:"md"}},_r=fe("switch-track-width"),wr=fe("switch-track-height"),Sr=fe("switch-track-diff"),kr=ue.subtract(_r,wr),Er=fe("switch-thumb-x"),Cr=function(e){var t=e.colorScheme;return{borderRadius:"full",p:"2px",width:[_r.reference],height:[wr.reference],transitionProperty:"common",transitionDuration:"fast",bg:Y("gray.300","whiteAlpha.400")(e),_focus:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{bg:Y(t+".500",t+".200")(e)}}},jr={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[wr.reference],height:[wr.reference],_checked:{transform:"translateX("+Er.reference+")"}},Tr={sm:{container:(rr={},rr[_r.variable]="1.375rem",rr[wr.variable]="0.75rem",rr)},md:{container:(ir={},ir[_r.variable]="1.875rem",ir[wr.variable]="1rem",ir)},lg:{container:(or={},or[_r.variable]="2.875rem",or[wr.variable]="1.5rem",or)}},Rr={parts:Ie.keys,baseStyle:function(e){var t,n;return{container:(n={},n[Sr.variable]=kr,n[Er.variable]=Sr.reference,n._rtl=(t={},t[Er.variable]=ue(Sr).negate().toString(),t),n),track:Cr(e),thumb:jr}},sizes:Tr,defaultProps:{size:"md",colorScheme:"blue"}},Or={"&[data-is-numeric=true]":{textAlign:"end"}},Pr={simple:function(e){var t=e.colorScheme;return{th:v({color:Y("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Y(t+".100",t+".700")(e)},Or),td:v({borderBottom:"1px",borderColor:Y(t+".100",t+".700")(e)},Or),caption:{color:Y("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}},striped:function(e){var t=e.colorScheme;return{th:v({color:Y("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Y(t+".100",t+".700")(e)},Or),td:v({borderBottom:"1px",borderColor:Y(t+".100",t+".700")(e)},Or),caption:{color:Y("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:Y(t+".100",t+".700")(e)},td:{background:Y(t+".100",t+".700")(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}},unstyled:{}}
1,Ar={parts:Ne.keys,baseStyle:{table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}},variants:Pr,sizes:{sm:{th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}},md:{th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}},lg:{th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}}},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}},Dr=function(e){return{display:"vertical"===e.orientation?"flex":"block"}},Ir=function(e){return{flex:e.isFitted?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focus:{zIndex:1,boxShadow:"outline"}}},Nr=function(e){var t=e.align,n=void 0===t?"start":t,r=e.orientation;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[n],flexDirection:"vertical"===r?"column":"row"}},Mr={p:4},Fr={line:function(e){var t,n,r=e.colorScheme,i=e.orientation,o="vertical"===i?"borderStart":"borderBottom",a="vertical"===i?"marginStart":"marginBottom";return{tablist:(t={},t[o]="2px solid",t.borderColor="inherit",t),tab:(n={},n[o]="2px solid",n.borderColor="transparent",n[a]="-2px",n._selected={color:Y(r+".600",r+".300")(e),borderColor:"currentColor"},n._active={bg:Y("gray.200","whiteAlpha.300")(e)},n._disabled={opacity:.4,cursor:"not-allowed"},n)}},enclosed:function(e){var t=e.colorScheme;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",_selected:{color:Y(t+".600",t+".300")(e),borderColor:"inherit",borderBottomColor:Y("white","gray.800")(e)}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}},"enclosed-colored":function(e){var t=e.colorScheme;return{tab:{border:"1px solid",borderColor:"inherit",bg:Y("gray.50","whiteAlpha.50")(e),mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{bg:Y("#fff","gray.800")(e),color:Y(t+".600",t+".300")(e),borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}},"soft-rounded":function(e){var t=e.colorScheme,n=e.theme;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:W(n,t+".700"),bg:W(n,t+".100")}}}},"solid-rounded":function(e){var t=e.colorScheme;return{tab:{borderRadius:"full",fontWeight:"semibold",color:Y("gray.600","inherit")(e),_selected:{color:Y("#fff","gray.800")(e),bg:Y(t+".600",t+".300")(e)}}}},unstyled:{}},Br={parts:Me.keys,baseStyle:function(e){return{root:Dr(e),tab:Ir(e),tablist:Nr(e),tabpanel:Mr}},sizes:{sm:{tab:{py:1,px:4,fontSize:"sm"}},md:{tab:{fontSize:"md",py:2,px:4}},lg:{tab:{fontSize:"lg",py:3,px:4}}},variants:Fr,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}},Lr={container:{fontWeight:"medium",lineHeight:1.2,outline:0,_focus:{boxShadow:"outline"}},label:{lineHeight:1.2,overflow:"visible"},closeButton:{fontSize:"18px",w:"1.25rem",h:"1.25rem",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"0.375rem",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focus:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}}},zr={subtle:function(e){return{container:nt.variants.subtle(e)}},solid:function(e){return{container:nt.variants.solid(e)}},outline:function(e){return{container:nt.variants.outline(e)}}},Ur={parts:Fe.keys,variants:zr,baseStyle:Lr,sizes:{sm:{container:{minH:"1.25rem",minW:"1.25rem",fontSize:"xs",px:2,borderRadius:"md"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}},md:{container:{minH:"1.5rem",minW:"1.5rem",fontSize:"sm",borderRadius:"md",px:2}},lg:{container:{minH:8,minW:8,fontSize:"md",borderRadius:"md",px:3}}},defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}},Hr=v({},Ht.baseStyle.field,{paddingY:"8px",minHeight:"80px",lineHeight:"short",verticalAlign:"top"}),Vr={outline:function(e){var t;return null!=(t=Ht.variants.outline(e).field)?t:{}},flushed:function(e){var t;return null!=(t=Ht.variants.flushed(e).field)?t:{}},filled:function(e){var t;return null!=(t=Ht.variants.filled(e).field)?t:{}},unstyled:null!=(ar=Ht.variants.unstyled.field)?ar:{}},Wr={baseStyle:Hr,sizes:{xs:null!=(sr=Ht.sizes.xs.field)?sr:{},sm:null!=(ur=Ht.sizes.sm.field)?ur:{},md:null!=(cr=Ht.sizes.md.field)?cr:{},lg:null!=(lr=Ht.sizes.lg.field)?lr:{}},variants:Vr,defaultProps:{size:"md",variant:"outline"}},Gr=fe("tooltip-bg"),qr=fe("popper-arrow-bg"),Zr={baseStyle:function(e){var t,n=Y("gray.700","gray.300")(e);return(t={})[Gr.variable]="colors."+n,t.px="8px",t.py="2px",t.bg=[Gr.reference],t[qr.variable]=[Gr.reference],t.color=Y("whiteAlpha.900","gray.900")(e),t.borderRadius="sm",t.fontWeight="medium",t.fontSize="sm",t.boxShadow="md",t.maxW="320px",t.zIndex="tooltip",t}},$r=Object.freeze({__proto__:null,Accordion:He,Alert:Ge,Avatar:et,Badge:nt,Breadcrumb:it,Button:ut,Checkbox:ft,CloseButton:ht,Code:mt,Container:vt,Divider:gt,Drawer:jt,Editable:Rt,Form:At,FormError:Nt,FormLabel:Mt,Heading:Ft,Input:Ht,Kbd:Vt,Link:Wt,List:qt,Menu:Jt,Modal:pn,NumberInput:Cn,PinInput:jn,Popover:Fn,Progress:Un,Radio:Vn,Select:$n,Skeleton:Kn,SkipLink:Xn,Slider:vr,Spinner:yr,Stat:xr,Switch:Rr,Table:Ar,Tabs:Br,Tag:Ur,Textarea:Wr,Tooltip:Zr}),Yr=function(e){return(0,V.ZK)({condition:!0,message:["[chakra-ui]: createBreakpoints(...) will be deprecated pretty soon","
1simply pass the breakpoints as an object. Remove the createBreakpoint(..) call"].join("")}),X({base:"0em"},e)}({sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"}),Kr=v({breakpoints:Yr,zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},radii:{none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},blur:{none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},colors:{transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}}},Be,{sizes:g,shadows:{xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dar
1k-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},space:m,borders:{none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},transition:{property:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},easing:{"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}}}),Xr=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function Qr(e){return!!(0,V.Kn)(e)&&Xr.every((function(t){return Object.prototype.hasOwnProperty.call(e,t)}))}var Jr=v({direction:"ltr"},Kr,{components:$r,styles:{global:function(e){return{body:{fontFamily:"body",color:Y("gray.800","whiteAlpha.900")(e),bg:Y("white","gray.800")(e),transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:Y("gray.400","whiteAlpha.400")(e)},"*, *::before, &::after":{borderColor:Y("gray.200","whiteAlpha.300")(e),wordWrap:"break-word"}}}},config:{useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"}}),ei=function(e){var t=e.children,n=e.colorModeManager,r=e.portalZIndex,i=e.resetCSS,o=void 0===i||i,a=e.theme,s=void 0===a?{}:a,m=e.environment,v=e.cssVarsRoot,g=u.createElement(p.u,{environment:m},t);return u.createElement(h.vc,null,u.createElement(d.f6,{theme:s,cssVarsRoot:v},u.createElement(f.SG,{colorModeManager:n,options:s.config},o&&u.createElement(c,null),u.createElement(d.ZL,null),r?u.createElement(l.hE,{zIndex:r},g):g)))};function ti(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ze().apply(void 0,[{}].concat(t,[ni]))}function ni(e,t,n,r){if(((0,V.mf)(e)||(0,V.mf)(t))&&Object.prototype.hasOwnProperty.call(r,n))return function(){var n=(0,V.mf)(e)?e.apply(void 0,arguments):e,r=(0,V.mf)(t)?t.apply(void 0,arguments):t;return ze()({},n,r,ni)}}ei.defaultProps={theme:Jr};var ri=n(11606),ii=n(4298),oi=n.n(ii);function ai(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(_o){o(_o)}}function s(e){try{u(r.throw(e))}catch(_o){o(_o)}}function u(e){var t;e.done?i(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 si(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(_o){o=[6,_o],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var ui,ci=function(){},li=ci(),di=Object,fi=function(e){return e===li},pi=function(e){return"function"==typeof e},hi=function(e,t){return di.assign({},e,t)},mi="undefined",vi=function(){return typeof window!=mi},gi=new WeakMap,yi=0,bi=function(e){var t,n,r=typeof e,i=e&&e.constructor,o=i==Date;if(di(e)!==e||o||i==RegExp)t=o?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=gi.get(e))return t;if(t=++yi+"~",gi.set(e,t),i==Array){for(t="@",n=0;n<e.length;n++)t+=bi(e[n])+",";gi.set(e,t)}if(i==di){t="#";for(var a=di.keys(e).sort();!fi(n=a.pop());
1)fi(e[n])||(t+=n+":"+bi(e[n])+",");gi.set(e,t)}}return t},xi=!0,_i=vi(),wi=typeof document!=mi,Si=_i&&window.addEventListener?window.addEventListener.bind(window):ci,ki=wi?document.addEventListener.bind(document):ci,Ei=_i&&window.removeEventListener?window.removeEventListener.bind(window):ci,Ci=wi?document.removeEventListener.bind(document):ci,ji={isOnline:function(){return xi},isVisible:function(){var e=wi&&document.visibilityState;return fi(e)||"hidden"!==e}},Ti={initFocus:function(e){return ki("visibilitychange",e),Si("focus",e),function(){Ci("visibilitychange",e),Ei("focus",e)}},initReconnect:function(e){var t=function(){xi=!0,e()},n=function(){xi=!1};return Si("online",t),Si("offline",n),function(){Ei("online",t),Ei("offline",n)}}},Ri=!vi()||"Deno"in window,Oi=function(e){return vi()&&typeof window.requestAnimationFrame!=mi?window.requestAnimationFrame(e):setTimeout(e,1)},Pi=Ri?u.useEffect:u.useLayoutEffect,Ai="undefined"!==typeof navigator&&navigator.connection,Di=!Ri&&Ai&&(["slow-2g","2g"].includes(Ai.effectiveType)||Ai.saveData),Ii=function(e){if(pi(e))try{e=e()}catch(n){e=""}var t=[].concat(e);return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?bi(e):"",t,e?"$swr$"+e:""]},Ni=new WeakMap,Mi=function(e,t,n,r,i,o,a){void 0===a&&(a=!0);var s=Ni.get(e),u=s[0],c=s[1],l=s[3],d=u[t],f=c[t];if(a&&f)for(var p=0;p<f.length;++p)f[p](n,r,i);return o&&(delete l[t],d&&d[0])?d[0](2).then((function(){return e.get(t)})):e.get(t)},Fi=0,Bi=function(){return++Fi},Li=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ai(void 0,void 0,void 0,(function(){var t,n,r,i,o,a,s,u,c,l,d,f,p,h,m,v,g,y,b,x;return si(this,(function(_){switch(_.label){case 0:if(t=e[0],n=e[1],r=e[2],i=e[3],a=!!fi((o="boolean"===typeof i?{revalidate:i}:i||{}).populateCache)||o.populateCache,s=!1!==o.revalidate,u=!1!==o.rollbackOnError,c=o.optimisticData,l=Ii(n),d=l[0],f=l[2],!d)return[2];if(p=Ni.get(t),h=p[2],e.length<3)return[2,Mi(t,d,t.get(d),li,li,s,!0)];if(m=r,g=Bi(),h[d]=[g,0],y=!fi(c),b=t.get(d),y&&(t.set(d,c),Mi(t,d,c)),pi(m))try{m=m(t.get(d))}catch(w){v=w}return m&&pi(m.then)?[4,m.catch((function(e){v=e}))]:[3,2];case 1:if(m=_.sent(),g!==h[d][0]){if(v)throw v;return[2,m]}v&&y&&u&&(a=!0,m=b,t.set(d,b)),_.label=2;case 2:return a&&(v||(pi(a)&&(m=a(m,b)),t.set(d,m)),t.set(f,hi(t.get(f),{error:v}))),h[d][1]=Bi(),[4,Mi(t,d,m,v,li,s,!!a)];case 3:if(x=_.sent(),v)throw v;return[2,a?x:m]}}))}))},zi=function(e,t){for(var n in e)e[n][0]&&e[n][0](t)},Ui=function(e,t){if(!Ni.has(e)){var n=hi(Ti,t),r={},i=Li.bind(li,e),o=ci;if(Ni.set(e,[r,{},{},{},i]),!Ri){var a=n.initFocus(setTimeout.bind(li,zi.bind(li,r,0))),s=n.initReconnect(setTimeout.bind(li,zi.bind(li,r,1)));o=function(){a&&a(),s&&s(),Ni.delete(e)}}return[e,i,o]}return[e,Ni.get(e)[4]]},Hi=Ui(new Map),Vi=Hi[0],Wi=Hi[1],Gi=hi({onLoadingSlow:ci,onSuccess:ci,onError:ci,onErrorRetry:function(e,t,n,r,i){var o=n.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!fi(o)&&a>o||setTimeout(r,s,i)},onDiscarded:ci,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Di?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:Di?5e3:3e3,compare:function(e,t){return bi(e)==bi(t)},isPaused:function(){return!1},cache:Vi,mutate:Wi,fallback:{}},ji),qi=function(e,t){var n=hi(e,t);if(t){var r=e.use,i=e.fallback,o=t.use,a=t.fallback;r&&o&&(n.use=r.concat(o)),i&&a&&(n.fallback=hi(i,a))}return n},Zi=(0,u.createContext)({}),$i=function(e){return pi(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},Yi=function(){return hi(Gi,(0,u.useContext)(Zi))},Ki=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},Xi={dedupe:!0},Qi=di.defineProperty((function(e){var t=e.value,n=qi((0,u.useContext)(Zi),t),r=t&&t.provider,i=(0,u.useState)((function(){return r?Ui(r(n.cache||Vi),t):li}))[0];return i&&(n.cache=i[0],n.mutate=i[1]),Pi((function(){return i?i[2]:li}),[]),(0,u.createElement)(Zi.Provider,hi(e,{value:n}))}),"default",{value:Gi}),Ji=(ui=function(e,t,n){var r=n.cache,i=n.compare,o=n.fallbackData,a=n.suspense,s=n.revalidateOnMount,c=n.refreshInterval,l=n.refreshWhenHidden,d=n.refreshWhenOffline,f=Ni.get(r),p=f[0],h=f[1],m=f[2],v=f[3],g=Ii(e),y=g[0],b=g[1],x=g[2],_=(0,u.useRef)(!1),w=(0,u.useRef)(!1),S=(0,u.useRef)(y),
1k=(0,u.useRef)(t),E=(0,u.useRef)(n),C=function(){return E.current},j=function(){return C().isVisible()&&C().isOnline()},T=function(e){return r.set(x,hi(r.get(x),e))},R=r.get(y),O=fi(o)?n.fallback[y]:o,P=fi(R)?O:R,A=r.get(x)||{},D=A.error,I=!_.current,N=function(){return I&&!fi(s)?s:!C().isPaused()&&(a?!fi(P):fi(P)||n.revalidateIfStale)},M=!(!y||!t)&&(!!A.isValidating||I&&N()),F=function(e,t){var n=(0,u.useState)({})[1],r=(0,u.useRef)(e),i=(0,u.useRef)({data:!1,error:!1,isValidating:!1}),o=(0,u.useCallback)((function(e){var o=!1,a=r.current;for(var s in e){var u=s;a[u]!==e[u]&&(a[u]=e[u],i.current[u]&&(o=!0))}o&&!t.current&&n({})}),[]);return Pi((function(){r.current=e})),[r,i.current,o]}({data:P,error:D,isValidating:M},w),B=F[0],L=F[1],z=F[2],U=(0,u.useCallback)((function(e){return ai(void 0,void 0,void 0,(function(){var t,o,a,s,u,c,l,d,f,p,h,g,x;return si(this,(function(E){switch(E.label){case 0:if(t=k.current,!y||!t||w.current||C().isPaused())return[2,!1];s=!0,u=e||{},c=!v[y]||!u.dedupe,l=function(){return!w.current&&y===S.current&&_.current},d=function(){var e=v[y];e&&e[1]===a&&delete v[y]},f={isValidating:!1},p=function(){T({isValidating:!1}),l()&&z(f)},T({isValidating:!0}),z({isValidating:!0}),E.label=1;case 1:return E.trys.push([1,3,,4]),c&&(Mi(r,y,B.current.data,B.current.error,!0),n.loadingTimeout&&!r.get(y)&&setTimeout((function(){s&&l()&&C().onLoadingSlow(y,n)}),n.loadingTimeout),v[y]=[t.apply(void 0,b),Bi()]),x=v[y],o=x[0],a=x[1],[4,o];case 2:return o=E.sent(),c&&setTimeout(d,n.dedupingInterval),v[y]&&v[y][1]===a?(T({error:li}),f.error=li,h=m[y],!fi(h)&&(a<=h[0]||a<=h[1]||0===h[1])?(p(),c&&l()&&C().onDiscarded(y),[2,!1]):(i(B.current.data,o)?f.data=B.current.data:f.data=o,i(r.get(y),o)||r.set(y,o),c&&l()&&C().onSuccess(o,y,n),[3,4])):(c&&l()&&C().onDiscarded(y),[2,!1]);case 3:return g=E.sent(),d(),C().isPaused()||(T({error:g}),f.error=g,c&&l()&&(C().onError(g,y,n),("boolean"===typeof n.shouldRetryOnError&&n.shouldRetryOnError||pi(n.shouldRetryOnError)&&n.shouldRetryOnError(g))&&j()&&C().onErrorRetry(g,y,n,U,{retryCount:(u.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return s=!1,p(),l()&&c&&Mi(r,y,f.data,f.error,!1),[2,!0]}}))}))}),[y]),H=(0,u.useCallback)(Li.bind(li,r,(function(){return S.current})),[]);if(Pi((function(){k.current=t,E.current=n})),Pi((function(){if(y){var e=y!==S.current,t=U.bind(li,Xi),n=0,r=Ki(y,h,(function(e,t,n){z(hi({error:t,isValidating:n},i(B.current.data,e)?li:{data:e}))})),o=Ki(y,p,(function(e){if(0==e){var r=Date.now();C().revalidateOnFocus&&r>n&&j()&&(n=r+C().focusThrottleInterval,t())}else if(1==e)C().revalidateOnReconnect&&j()&&t();else if(2==e)return U()}));return w.current=!1,S.current=y,_.current=!0,e&&z({data:P,error:D,isValidating:M}),N()&&(fi(P)||Ri?t():Oi(t)),function(){w.current=!0,r(),o()}}}),[y,U]),Pi((function(){var e;function t(){var t=pi(c)?c(P):c;t&&-1!==e&&(e=setTimeout(n,t))}function n(){B.current.error||!l&&!C().isVisible()||!d&&!C().isOnline()?t():U(Xi).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[c,l,d,U]),(0,u.useDebugValue)(P),a&&fi(P)&&y)throw k.current=t,E.current=n,w.current=!1,fi(D)?U(Xi):D;return{mutate:H,get data(){return L.data=!0,P},get error(){return L.error=!0,D},get isValidating(){return L.isValidating=!0,M}}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Yi(),r=$i(e),i=r[0],o=r[1],a=r[2],s=qi(n,a),u=ui,c=s.use;if(c)for(var l=c.length;l-- >0;)u=c[l](u);return u(i,o||s.fetcher,s)}),eo={teal:{50:"oklch(0.98 0.0174 209.43)",100:"oklch(0.9637 0.0326 212.04)",200:"oklch(0.9125 0.0507 210.29)",300:"oklch(0.8419 0.0658 213.26)",400:"oklch(0.7487 0.1036 211.39)",500:"oklch(0.5972 0.131 213.44)",600:"oklch(0.5243 0.1143 214.28)",700:"oklch(0.4668 0.0943 213.73)",800:"oklch(0.4025 0.0826 212)",900:"oklch(0.3427 0.071 210.27)"},yellow:{50:"oklch(0.9871 0.0239 94.52)",100:"oklch(0.9639 0.0686 97)",200:"oklch(0.9249 0.1183 97.1)",300:"oklch(0.8788 0.148 92.73)",400:"oklch(0.8266 0.1731 86.1)",500:"oklch(0.7659 0.1668 71.73)",600:"oklch(0.6392 0.1581 60.07)",700:"oklch(0.548 0.148 50.76)",800:"oklch(0.4672 0.1315 48.45)",900:"oklch(0.3748 0.1115 47.49)"},red:{50:"oklch(96.91% 0.015 17.42)",100:"oklch(90.23% 0.050764487400613734 18.134245085608146)",200:"oklch(83.48% 0.09155694161436399 18.345986095067442)",300:"oklch(76.76% 0.1379562554882739 18.596481624165502)",400:"oklch(70.13% 0.19088395210545106 18.65430749379855)",500:"oklch(63.33% 0.213 18.7)",600:"oklch(54.91% 0.22 18.59)",700:"oklch(43.46% 0.174 18.79)",800:"oklch(31.64% 0.12686925279130523 18.9842584108985)",900:"oklch(21.08% 0.08451422681622453 18.772611548125568)"},gray:{50:"oklch(98.51% 0 355)",100:"oklch(97.02% 0 355)",200:"oklch(94.01% 0 0)",300:"oklch(90.24% 0.0025 345.22)",400:"oklch(81.84% 0.0057 3.37)",500:"oklch(63.8% 0.0061 3.44)",600:"oklch(50.59% 0.0082 355.05)",700:"oklch(40.7
17% 0.0031 345.34)",800:"oklch(30.18% 0.004 355)",900:"oklch(23.34% 0.004 355)"},green:{50:"oklch(0.96 0.0148 158.25)",100:"oklch(0.9298 0.0478 156.56)",200:"oklch(0.856 0.0977 154.31)",300:"oklch(0.7761 0.1295 152.9)",400:"oklch(0.6717 0.1422 153.17)",500:"oklch(0.5904 0.1616 152.22)",600:"oklch(0.4551 0.1329 155.25)",700:"oklch(0.3832 0.1031 156.41)",800:"oklch(0.3277 0.0924 157.43)",900:"oklch(0.3034 0.0685 169.68)"},blue:{50:"oklch(0.9709 0.0125 255.5)",100:"oklch(0.9338 0.0348 259.59)",200:"oklch(0.883 0.0625 259.03)",300:"oklch(0.8115 0.0996 256.56)",400:"oklch(0.707 0.158 259.16)",500:"oklch(0.6199 0.2108 263.3)",600:"oklch(0.5178 0.2286 265.2)",700:"oklch(0.4803 0.2313 266.03)",800:"oklch(0.4043 0.2004 267.27)",900:"oklch(0.321 0.1378 267.64)"},purple:{50:"oklch(0.9575 0.0114 308.33)",100:"oklch(0.8997 0.0245 306.94)",200:"oklch(0.8076 0.0506 307.77)",300:"oklch(0.727 0.0731 307.34)",400:"oklch(0.6511 0.0936 307.59)",500:"oklch(0.5972 0.1079 307.75)",600:"oklch(0.524 0.1061 307.91)",700:"oklch(0.4362 0.0889 307.9)",800:"oklch(0.3393 0.0694 308.56)",900:"oklch(0.2977 0.0622 308.08)"},pink:{50:"oklch(97.18% 0.011 339.33)",100:"oklch(94.76% 0.023 338.62)",200:"oklch(89.55% 0.051 340.45)",300:"oklch(81.57% 0.1 343.67)",400:"oklch(70.56% 0.171 347.84)",500:"oklch(64.07% 0.205 352.56)",600:"oklch(57.55% 0.214 359.48)",700:"oklch(51.08% 0.191 2.82)",800:"oklch(44.62% 0.16 2.77)",900:"oklch(39.84% 0.13 1.02)"},orange:{50:"oklch(98.1% 0.015 80.71)",100:"oklch(95.42% 0.034 80.31)",200:"oklch(89.96% 0.083 73.51)",300:"oklch(83.26% 0.134 68.84)",400:"oklch(74.21% 0.173 57.75)",500:"oklch(69.47% 0.196 49.2)",600:"oklch(63.37% 0.196 42.09)",700:"oklch(54.13% 0.178 39.62)",800:"oklch(46.06% 0.155 38.44)",900:"oklch(36.7% 0.123 39.51)"},indigo:{50:"oklch(94.96% 0.023 291.37)",100:"oklch(91.63% 0.042 291.47)",200:"oklch(84.1% 0.075 290.63)",300:"oklch(78.42% 0.091 290.6)",400:"oklch(67.89% 0.122 289.83)",500:"oklch(57.6% 0.135 289.1)",600:"oklch(46.86% 0.135 287.37)",700:"oklch(38.9% 0.124 288.18)",800:"oklch(31.66% 0.099 289.01)",900:"oklch(20.7% 0.108 289.18)"}},to=(0,i.Z)({},eo.teal),no=(0,i.Z)({},eo.indigo),ro=(0,i.Z)({},eo.green),io=(0,o.Z)((0,i.Z)({},eo),{forest:to,space:no,text:{primary:eo.gray[800],secondary:eo.gray[700],tertiary:eo.gray[600],placeholder:eo.gray[600],danger:eo.red[600],disabled:eo.gray[500],upsell:eo.purple[700],warning:eo.yellow[700],success:eo.green[700]},base:{border:eo.gray[300],borderDisabled:eo.gray[200],borderHover:eo.gray[400],divider:eo.gray[200],background:eo.gray[100],backgroundHover:eo.gray[200],lightBackgroun
1d:eo.gray[50],backgroundDisabled:eo.gray[200]},primary:{pressed:eo.teal[800],hover:eo.teal[700],base:eo.teal[600],border:eo.teal[300],background:eo.teal[50],backgroundHover:eo.teal[100],text:eo.teal[700]},teal:(0,o.Z)((0,i.Z)({},eo.teal),{dark:eo.teal[800],hover:eo.teal[700],base:eo.teal[600],border:eo.teal[300],background:eo.teal[50],backgroundHover:eo.teal[100],text:eo.teal[700],pressed:eo.teal[800]}),green:(0,o.Z)((0,i.Z)({},eo.green),{base:eo.green[600],border:eo.green[300],background:eo.green[50],backgroundHover:eo.green[100],text:eo.green[700],pressed:eo.green[800]}),grass:(0,o.Z)((0,i.Z)({},ro),{base:eo.green[600],border:eo.green[300],background:eo.green[50]}),success:{base:eo.green[600],hover:eo.green[700],border:eo.green[300],background:eo.green[50],backgroundHover:eo.green[100],text:eo.green[700],pressed:eo.green[800]},warning:(0,o.Z)((0,i.Z)({},eo.yellow),{base:eo.yellow[600],hover:eo.yellow[700],border:eo.yellow[300],background:eo.yellow[50],backgroundHover:eo.yellow[100],text:eo.yellow[700],pressed:eo.yellow[800]}),danger:(0,o.Z)((0,i.Z)({},eo.red),{dark:eo.red[800],hover:eo.red[700],base:eo.red[600],border:eo.red[200],background:eo.red[50],backgroundHover:eo.red[100],text:eo.red[700],pressed:eo.red[800]}),upsell:{dark:eo.purple[800],hover:eo.purple[700],base:eo.purple[600],border:eo.purple[300],background:eo.purple[50],backgroundHover:eo.purple[100],text:eo.purple[700],disabled:eo.purple[200]},link:{pressed:eo.teal[800],hover:eo.teal[700],default:eo.teal[600]},brand:{black:"#101111",accent:"#40DE9E"}}),oo={baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"lg",boxShadow:"buttonShadowLight",fontWeight:"semibold",lineHeight:"0",transition:"color 150ms ease-in-out, background-color 150ms ease-in-out, border-color 150ms ease-in-out",_focus:{outline:"none !important"},_focusVisible:{outline:"none !important",boxShadow:"outline"},_disabled:{pointerEvents:"none"}},sizes:{sm:{px:3,fontSize:"sm",height:"24px"},md:{px:4,height:"32px",fontSize:"md"},lg:{fontSize:"lg",px:6,height:"40px"}},variants:{primary:{color:"white",bg:"primary.base",boxShadow:"buttonShadow",_hover:{bg:"primary.hover"},_active:{bg:"primary.pressed"}},secondary:{bg:"white",border:"1px",color:"text.primary",boxShadow:"buttonShadowLight",borderColor:"base.border",svg:{color:"text.secondary",transition:"color 150ms ease-in-out"},_hover:{color:"text.primary",borderColor:"gray.400",bg:"white",svg:{color:"text.primary"}},_active:{color:"text.primary",borderColor:"gray.500",bg:"white",svg:{color:"text.primary"}},_disabled:{color:"text.disabled",bg:"white",filter:"none",svg:{color:"text.disabled"}}},subtle:{p:0,boxShadow:"none",color:"text.tertiary",_hover:{color:"text.primary"}},inlineLink:{p:0,boxShadow:"none",fontSize:"inherit",lineHeight:"inherit",display:"inline-block",textDecoration:"underline",textUnderlineOffset:"4px",color:"link.default",_hover:{color:"link.hover"}}},defaultProps:{size:"md",variant:"primary"}},ao={baseStyle:{scrollMarginTop:"96px"},sizes:{},variants:{},defaultProps:{textStyle:"h2"}},so={baseStyle:{field:{border:"1px solid",borderColor:"gray.300",fontWeight:"medium",borderRadius:"base",transition:"150ms color border-color background-color",_placeholder:{opacity:1,color:"text.placeholder"}}},sizes:{md:{field:{height:"32px",px:2,fontSize:"sm"}}},variants:{},defaultProps:{size:"md"}},uo={baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",gap:.5,flexShrink:0,height:"20px",px:1,py:.5,borderRadius:"sm",fontWeight:"medium",fontSize:"sm",lineHeight:"normal",border:"0.5px solid",borderColor:"base.border",bg:"gray.50",boxShadow:"xs",color:"text.tertiary",whiteSpace:"nowrap"},sizes:{},variants:{},defaultProps:{}},co=Jr.components.Tabs.baseStyle,lo=(0,o.Z)((0,i.Z)({},Jr.components.Tabs),{baseStyle:function(e){var t="function"===typeof co?co(e):null!==co&&void 0!==co?co:{};return(0,o.Z)((0,i.Z)({},t),{tab:(0,o.Z)((0,i.Z)({},t.tab),{_focus:{outline:"none !important"},_focusVisible:{outline:"none",boxShadow:"outline"}})})}}),fo=Jr.components.Modal,po={baseStyle:{borderRadius:"base",transition:"color 150ms ease-in-out",_focus:{outline:"none !important"},_focusVisible:{outline:"none !important",boxShadow:"outline"},_disabled:{pointerEvents:"none"}},variants:{primary:{color:"link.default",fontWeight:"semibold",_hover:{color:"link.hover"},_active:{color:"link.pressed"}},secondary:{color:"inherit",_hover:{color:"link.default"}},inline:{color:"link.default",fontSize:"inherit",lineHeight:"inherit",textDecoration:"underline",textUnderlineOffset:"4px",_hover:{color:"link.hover"},_active:{color:"link.pressed"}},subtle:{color:"text.tertiary",fontWeight:"medium",_hover:{color:"text.primary"}}},defaultProps:{variant:"primary"}},ho={.5:"2px",1:"4px",1.5:"6px",2:"8px",2.5:"10px",3:"12px",3.5:"14px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px",12:"48px",14:"56px",16:"64px",20:"80px",24:"96px",28:"112px",32:"128px",36:"144px",40:"160px",44:"176px",48:"192px",52:"208px",56:"224px",60:"240px",64:"256px",72:"288px",80:"320px",96:"384px"},mo={fontSizes:{"2xs":"10px",xs:"11px",sm:"12px",md:"13px",lg:"15px",xl:"18px","2xl":"21px","3xl":"24px","4xl":"32px"},fonts:{body:'"Inter", "Inter Fallback", sans-serif;',heading:'"Nuckle", "Nuckle Fallback", sans-serif;',mono:'"DM Mono", "DM Mono Fallback", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'},lineHeights:{normal:"normal"},letterSpacings:{normal:"0"},textStyles:{paragraph:{fontSize:"lg",my:6,lineHeight:1.6},mono:{fontFamily:"mono",fontFeatureSettings:"'salt' on, 'ss01' on, 'ss02' on, 'ss03' on, 'ss04' on, 'ss05' on"},uppercase:{fontSize:"2xs",fontWeight:"medium",textTransform:"uppercase",letterSpacing:"0.08em"},h1:{fontFamily:"heading",fontSize:{base:"3xl",md:"4xl"},fontWeight:"semibold",lineHeight:"110%",m:0},h2:{fontFamily:"heading",fontSize:{base:"2xl",md:"3xl"},fontWeight:"semibold",lineHeight:"113%",mt:12,mb:6},h3:{fontFamily:"heading",fontSize:{base:"xl",md:"2xl"},fontWeight:"semibold",lineHeight:"113%",mt:12,mb:6},h4:{fontFamily:"heading",fontSize:{base:"lg",md:"xl"},fontWeight:"semibold",lineHeight:"113%",mt:8,mb:6}}},vo=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];
1var r=[].concat(t),i=t[t.length-1];return Qr(i)&&r.length>1?r=r.slice(0,r.length-1):i=Jr,V.zG.apply(void 0,r.map((function(e){return function(t){return(0,V.mf)(e)?e(t):ti(t,e)}})))(i)}((0,i.Z)({config:{cssVarPrefix:"theme"},styles:{global:{html:{fontSize:"lg"},body:{fontFamily:"body",color:"text.primary",width:"100%",height:"100%",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},"*":{scrollbarWidth:"thin",scrollbarColor:"var(--theme-colors-gray-300) transparent"},"*::-webkit-scrollbar":{width:"8px",height:"8px"},"*::-webkit-scrollbar-thumb":{backgroundColor:"var(--theme-colors-gray-300)",borderRadius:"9999px"},"*::-webkit-scrollbar-track":{backgroundColor:"transparent"}}},space:(0,i.Z)({},ho),sizes:(0,o.Z)((0,i.Z)({},ho),{header:"64px",max:"max-content",min:"min-content",full:"100%",container:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}}),radii:{xs:"2px",sm:"4px",md:"6px",lg:"8px",xl:"12px",base:"6px",full:"9999px"},shadows:{none:"none",xs:"0 0 0 1px rgba(0, 0, 0, 0.08) inset, lch(0 0 0 / 0.020) 0px 3px 6px -2px, lch(0 0 0 / 0.040) 0px 2px 1px -1px",sm:"0px 4px 8px 0px rgba(0, 0, 0, 0.04), 0px 0px 2px 0px rgba(0, 0, 0, 0.06), 0px 0px 1px 0px rgba(0, 0, 0, 0.12)",md:"0px 0px 1px 0px rgba(0, 0, 0, 0.20), 0px 1px 6px 0px rgba(0, 0, 0, 0.04), 0px 12px 20px -2px rgba(0, 0, 0, 0.06)",lg:"0px 24px 32px 0px rgba(0, 0, 0, 0.04), 0px 16px 24px 0px rgba(0, 0, 0, 0.04), 0px 4px 8px 0px rgba(0, 0, 0, 0.04), 0px 0px 1px 0px rgba(0, 0, 0, 0.20)",buttonShadow:"0px 0px 0px 1px rgba(0, 0, 0, 0.32) inset, 0px 0px 0px 1.5px rgba(255, 255, 255, 0.16) inset, lch(0 0 0 / 0.022) 0px 3px 6px -2px, lch(0 0 0 / 0.044) 0px 1px 1px",buttonShadowLight:"lch(0 0 0 / 0.022) 0px 3px 6px -2px, lch(0 0 0 / 0.044) 0px 1px 1px",outline:"0px 0px 0px 1px #ffffff, 0px 0px 0px 2px var(--theme-colors-primary-background), 0px 0px 0px 3px var(--theme-colors-primary-border)",outlineRed:"0px 0px 0px 2px #ffffff, 0px 0px 0px 3px var(--theme-colors-danger-base)"},colors:io,components:r},mo)),go=n(47568),yo=n(97582),bo=n(64487),xo=n(28687);function _o(e){function t(e,t){Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.message=e,this.code=t}return t.prototype=new Error,t.prototype.name=e,t.prototype.constructor=t,t}const wo=_o("LaunchDarklyUnexpectedResponseError"),So=_o("LaunchDarklyInvalidEnvironmentIdError"),ko=_o("LaunchDarklyInvalidUserError"),Eo=_o("LaunchDarklyInvalidEventKeyError"),Co=_o("LaunchDarklyInvalidArgumentError"),jo=_o("LaunchDarklyFlagFetchError");for(var To={LDUnexpectedResponseError:wo,LDInvalidEnvironmentIdError:So,LDInvalidUserError:ko,LDInvalidEventKeyError:Eo,LDInvalidArgumentError:Co,LDInvalidDataError:_o("LaunchDarklyInvalidDataError"),LDFlagFetchError:jo,isHttpErrorRecoverable:function(e){return!(e>=400&&e<500)||400===e||408===e||429===e}},Ro=[],Oo=[],Po=("undefined"!=typeof Uint8Array&&Uint8Array,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),Ao=0,Do=Po.length;Ao<Do;++Ao)Ro[Ao]=Po[Ao],Oo[Po.charCodeAt(Ao)]=Ao;function Io(e,t,n){for(var r,i,o=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(Ro[(i=r)>>18&63]+Ro[i>>12&63]+Ro[i>>6&63]+Ro[63&i]);return o.join("")}Oo["-".charCodeAt(0)]=62,Oo["_".charCodeAt(0)]=63;var No=function(e){for(var t,n=e.length,r=n%3,i=[],o=16383,a=0,s=n-r;a<s;a+=o)i.push(Io(e,a,a+o>s?s:a+o));return 1===r?(t=e[n-1],i.push(Ro[t>>2]+Ro[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],i.push(Ro[t>>10]+Ro[t>>4&63]+Ro[t<<2&63]+"=")),i.join("")},Mo=Array.isArray,Fo=Object.keys,Bo=Object.prototype.hasOwnProperty,Lo=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,i,o,a=Mo(t),s=Mo(n);if(a&&s){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(a!=s)return!1;var u=t instanceof Date,c=n instanceof Date;if(u!=c)return!1;if(u&&c)return t.getTime()==n.getTime();var l=t instanceof RegExp,d=n instanceof RegExp;if(l!=d)return!1;if(l&&d)return t.toString()==n.toString();var f=Fo(t);if((i=f.length)!==Fo(n).length)return!1;for(r=i;0!=r--;)if(!Bo.call(n,f[r]))return!1;for(r=i;0!=r--;)if(!e(t[o=f[r]],n[o]))return!1;return!0}return t!=t&&n!=n};const zo=["key","ip","country","email","firstName","lastName","avatar","name"];function Uo(e){const t=unescape(encodeURIComponent(e));return No(function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e.charCodeAt(n));return t}(t))}function Ho(e){return Uo(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Vo(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Wo,Go={appendUrlPath:function(e,t){return(e.endsWith("/")?e.substring(0,e.length-1):e)+(t.startsWith("/")?"":"/")+t},base64URLEncode:Ho,btoa:Uo,chunkEventsForUrl:function(e,t){const n=t.slice(0),r=[];let i,o=e;for(;n.length>0;){for(i=[];o>0;){const e=n.shift();if(!e)break;o-=Ho(JSON.stringify(e)).length,o<0&&i.length>0?n.unshift(e):i.push(e)}o=e,r.push(i)}return r},clone:function(e){return JSON.parse(JSON.stringify(e))},deepEquals:function(e,t){return Lo(e,t)},extend:function(...e){return e.reduce(((e,t)=>({...e,...t})),{})},getLDUserAgentString:function(e){const t=e.version||"?";return e.userAgent+"/"+t},objectHasOwnProperty:Vo,onNextTick:function(e){setTimeout(e,0)},sanitizeContext:function(e){if(!e)return e;let t;return null!==e.kind&&void 0!==e.kind||zo.forEach((n=>{const r=e[n];void 0!==r&&"string"!=typeof r&&(t=t||{...e},t[n]=String(r))})),t||e},transformValuesToVersionedValues:function(e){const t={};for(const n in e)Vo(e,n)&&(t[n]={value:e[n],version:0});return t},transformVersionedValuesToValues:function(e){const t={};for(const n in e)Vo(e,n)&&(t[n]=e[n].value);return t},wrapPromiseCallback:function(e,t){const n=e.then((e=>(t&&setTimeout((()=>{t(null,e)}),0),e)),(e=>{if(!t)return Promise.reject(e);setTimeout((()=>{t(e,null)}),0)}));return t?void 0:n}},qo=new Uint8Array(16);function Zo(){if(!Wo&&!(Wo="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Wo(qo)}var $o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Yo(e){return"string"==typeof e&&$o.test(e)}for(var Ko,Xo,Qo=[],Jo=0;Jo<256;++Jo)Qo.push((Jo+256).toString(16).substr(1));function ea(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Qo[e[t+0]]+Qo[e[t+1]]+Qo[e[t+2]]+Qo[e[t+3]]+"-"+Qo[e[t+4]]+Qo[e[t+5]]+"-"+Qo[e[t+6]]+Q
vendor: 5,938 bytes, line 1
1o[e[t+7]]+"-"+Qo[e[t+8]]+Qo[e[t+9]]+"-"+Qo[e[t+10]]+Qo[e[t+11]]+Qo[e[t+12]]+Qo[e[t+13]]+Qo[e[t+14]]+Qo[e[t+15]]).toLowerCase();if(!Yo(n))throw TypeError("Stringified UUID is invalid");return n}var ta=0,na=0;function ra(e){if(!Yo(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}function ia(e,t,n){function r(e,r,i,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=ra(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(r),a.set(e,r.length),(a=n(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,i){o=o||0;for(var s=0;s<16;++s)i[o+s]=a[s];return i}return ea(a)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function oa(e){return 14+(e+64>>>9<<4)+1}function aa(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function sa(e,t,n,r,i,o){return aa((a=aa(aa(t,e),aa(r,o)))<<(s=i)|a>>>32-s,n);var a,s}function ua(e,t,n,r,i,o,a){return sa(t&n|~t&r,e,t,i,o,a)}function ca(e,t,n,r,i,o,a){return sa(t&r|n&~r,e,t,i,o,a)}function la(e,t,n,r,i,o,a){return sa(t^n^r,e,t,i,o,a)}function da(e,t,n,r,i,o,a){return sa(n^(t|~r),e,t,i,o,a)}var fa=ia("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r="0123456789abcdef",i=0;i<n;i+=8){var o=e[i>>5]>>>i%32&255,a=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[oa(t)-1]=t;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=n,u=r,c=i,l=o;n=ua(n,r,i,o,e[a],7,-680876936),o=ua(o,n,r,i,e[a+1],12,-389564586),i=ua(i,o,n,r,e[a+2],17,606105819),r=ua(r,i,o,n,e[a+3],22,-1044525330),n=ua(n,r,i,o,e[a+4],7,-176418897),o=ua(o,n,r,i,e[a+5],12,1200080426),i=ua(i,o,n,r,e[a+6],17,-1473231341),r=ua(r,i,o,n,e[a+7],22,-45705983),n=ua(n,r,i,o,e[a+8],7,1770035416),o=ua(o,n,r,i,e[a+9],12,-1958414417),i=ua(i,o,n,r,e[a+10],17,-42063),r=ua(r,i,o,n,e[a+11],22,-1990404162),n=ua(n,r,i,o,e[a+12],7,1804603682),o=ua(o,n,r,i,e[a+13],12,-40341101),i=ua(i,o,n,r,e[a+14],17,-1502002290),n=ca(n,r=ua(r,i,o,n,e[a+15],22,1236535329),i,o,e[a+1],5,-165796510),o=ca(o,n,r,i,e[a+6],9,-1069501632),i=ca(i,o,n,r,e[a+11],14,643717713),r=ca(r,i,o,n,e[a],20,-373897302),n=ca(n,r,i,o,e[a+5],5,-701558691),o=ca(o,n,r,i,e[a+10],9,38016083),i=ca(i,o,n,r,e[a+15],14,-660478335),r=ca(r,i,o,n,e[a+4],20,-405537848),n=ca(n,r,i,o,e[a+9],5,568446438),o=ca(o,n,r,i,e[a+14],9,-1019803690),i=ca(i,o,n,r,e[a+3],14,-187363961),r=ca(r,i,o,n,e[a+8],20,1163531501),n=ca(n,r,i,o,e[a+13],5,-1444681467),o=ca(o,n,r,i,e[a+2],9,-51403784),i=ca(i,o,n,r,e[a+7],14,1735328473),n=la(n,r=ca(r,i,o,n,e[a+12],20,-1926607734),i,o,e[a+5],4,-378558),o=la(o,n,r,i,e[a+8],11,-2022574463),i=la(i,o,n,r,e[a+11],16,1839030562),r=la(r,i,o,n,e[a+14],23,-35309556),n=la(n,r,i,o,e[a+1],4,-1530992060),o=la(o,n,r,i,e[a+4],11,1272893353),i=la(i,o,n,r,e[a+7],16,-155497632),r=la(r,i,o,n,e[a+10],23,-1094730640),n=la(n,r,i,o,e[a+13],4,681279174),o=la(o,n,r,i,e[a],11,-358537222),i=la(i,o,n,r,e[a+3],16,-722521979),r=la(r,i,o,n,e[a+6],23,76029189),n=la(n,r,i,o,e[a+9],4,-640364487),o=la(o,n,r,i,e[a+12],11,-421815835),i=la(i,o,n,r,e[a+15],16,530742520),n=da(n,r=la(r,i,o,n,e[a+2],23,-995338651),i,o,e[a],6,-198630844),o=da(o,n,r,i,e[a+7],10,1126891415),i=da(i,o,n,r,e[a+14],15,-1416354905),r=da(r,i,o,n,e[a+5],21,-57434055),n=da(n,r,i,o,e[a+12],6,1700485571),o=da(o,n,r,i,e[a+3],10,-1894986606),i=da(i,o,n,r,e[a+10],15,-1051523),r=da(r,i,o,n,e[a+1],21,-2054922799),n=da(n,r,i,o,e[a+8],6,1873313359),o=da(o,n,r,i,e[a+15],10,-30611744),i=da(i,o,n,r,e[a+6],15,-1560198380),r=da(r,i,o,n,e[a+13],21,1309151649),n=da(n,r,i,o,e[a+4],6,-145523070),o=da(o,n,r,i,e[a+11],10,-1120210379),i=da(i,o,n,r,e[a+2],15,718787259),r=da(r,i,o,n,e[a+9],21,-343485551),n=aa(n,s),r=aa(r,u),i=aa(i,c),o=aa(o,l)}return[n,r,i,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(oa(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))})),pa=fa;function ha(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function ma(e,t){return e<<t|e>>>32-t}var va=ia("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i<r.length;++i)e.push(r.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,a=Math.ceil(o/16),s=new Array(a),u=0;u<a;++u){for(var c=new Uint32Array(16),l=0;l<16;++l)c[l]=e[64*u+4*l]<<24|e[64*u+4*l+1]<<16|e[64*u+4*l+2]<<8|e[64*u+4*l+3];s[u]=c}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<a;++d){for(var f=new Uint32Array(80),p=0;p<16;++p)f[p]=s[d][p];for(var h=16;h<80;++h)f[h]=ma(f[h-3]^f[h-8]^f[h-14]^f[h-16],1);for(var m=n[0],v=n[1],g=n[2],y=n[3],b=n[4],x=0;x<80;++x){var _=Math.floor(x/20),w=ma(m,5)+ha(_,v,g,y)+b+t[_]+f[x]>>>0;b=y,y=g,g=ma(v,30)>>>0,v=m,m=w}n[0]=n[0]+m>>>0,n[1]=n[1]+v>>>0,n[2]=n[2]+g>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>
1>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]})),ga=va,ya=Object.freeze({__proto__:null,v1:function(e,t,n){var r=t&&n||0,i=t||new Array(16),o=(e=e||{}).node||Ko,a=void 0!==e.clockseq?e.clockseq:Xo;if(null==o||null==a){var s=e.random||(e.rng||Zo)();null==o&&(o=Ko=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==a&&(a=Xo=16383&(s[6]<<8|s[7]))}var u=void 0!==e.msecs?e.msecs:Date.now(),c=void 0!==e.nsecs?e.nsecs:na+1,l=u-ta+(c-na)/1e4;if(l<0&&void 0===e.clockseq&&(a=a+1&16383),(l<0||u>ta)&&void 0===e.nsecs&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");ta=u,na=c,Xo=a;var d=(1e4*(268435455&(u+=122192928e5))+c)%4294967296;i[r++]=d>>>24&255,i[r++]=d>>>16&255,i[r++]=d>>>8&255,i[r++]=255&d;var f=u/4294967296*1e4&268435455;i[r++]=f>>>8&255,i[r++]=255&f,i[r++]=f>>>24&15|16,i[r++]=f>>>16&255,i[r++]=a>>>8|128,i[r++]=255&a;for(var p=0;p<6;++p)i[r+p]=o[p];return t||ea(i)},v3:pa,v4:function(e,t,n){var r=(e=e||{}).random||(e.rng||Zo)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return ea(r)},v5:ga,NIL:"00000000-0000-0000-0000-000000000000",version:function(e){if(!Yo(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)},validate:Yo,stringify:ea,parse:ra});const ba=["debug","info","warn","error","none"];var xa={commonBasicLogger:function(e,t){if(e&&e.destination&&"function"!=typeof e.destination)throw new Error("destination for basicLogger was set to a non-function");function n(e){return function(t){console&&console[e]&&console[e].call(console,t)}}const r=e&&e.destination?[e.destination,e.destination,e.destination,e.destination]:[n("log"),n("info"),n("warn"),n("error")],i=!(!e||!e.destination),o=e&&void 0!==e.prefix&&null!==e.prefix?e.prefix:"[LaunchDarkly] ";let a=1;if(e&&e.level)for(let c=0;c<ba.length;c++)ba[c]===e.level&&(a=c);function s(e,n,a){if(a.length<1)return;let s;const u=i?n+": "+o:o;if(1!==a.length&&t){const e=[...a];e[0]=u+e[0],s=t(...e)}else s=u+a[0];try{r[e](s)}catch(e){console&&console.log&&console.log("[LaunchDarkly] Configured logger's "+n+" method threw an exception: "+e)}}const u={};for(let c=0;c<ba.length;c++){const e=ba[c];if("none"!==e)if(c<a)u[e]=()=>{};else{const t=c;u[e]=function(){s(t,e,arguments)}}}return u},validateLogger:function(e){ba.forEach((t=>{if("none"!==t&&(!e[t]||"function"!=typeof e[t]))throw new Error("Provided logger instance must support logger."+t+"(...) method")}))}};function _a(e){return e&&e.message?e.message:"string"==typeof e||e instanceof String?e:JSON.stringify(e)}const wa=" Please see https://docs.launchdarkly.com/sdk/client-side/javascript#initializing-the-client for instructions on SDK initialization.";var Sa={bootstrapInvalid:function(){return"LaunchDarkly bootstrap data is not available because the back end could not read the flags."},bootstrapOldFormat:function(){return"LaunchDarkly client was initialized with bootstrap data that did not include flag metadata. Events may not be sent correctly."+wa},clientInitialized:function(){return"LaunchDarkly client initialized"},clientNotReady:function(){return"LaunchDarkly client is not ready"},debugEnqueueingEvent:function(e){return'enqueueing "'+e+'" event'},debugPostingDiagnosticEvent:function(e){return"sending diagnostic event ("+e.kind+")"},debugPostingEvents:function(e){return"sending "+e+" events"},debugStreamDelete:function(e){return'received streaming deletion for flag "'+e+'"'},debugStreamDeleteIgnored:function(e){return'received streaming deletion for flag "'+e+'" but ignored due to version check'},debugStreamPatch:function(e){return'received streaming update for flag "'+e+'"'},debugStreamPatchIgnored:function(e){return'received streaming update for flag "'+e+'" but ignored due to version check'},debugStreamPing:function(){return"received ping message from stream"},debugPolling:function(e){return"polling for feature flags at "+e},debugStreamPut:function(){return"received streaming update for all flags"},deprecated:function(e,t){return t?'"'+e+'" is deprecated, please use "'+t+'"':'"'+e+'" is deprecated'},environmentNotFound:function(){return"Environment not found. Double check that you specified a valid environment/client-side ID."+wa},environmentNotSpecified:function(){return"No environment/client-side ID was specified."+wa},errorFetchingFlags:function(e){return"Error fetching flag settings: "+_a(e)},eventCapacityExceeded:function(){return"Exceeded event queue capacity. Increase capacity to avoid dropping events."},eventWithoutContext:function(){return"Be sure to call `identify` in the LaunchDarkly client: https://docs.lau
1nchdarkly.com/sdk/features/identify#javascript"},httpErrorMessage:function(e,t,n){return"Received error "+e+(401===e?" (invalid SDK key)":"")+" for "+t+" - "+(To.isHttpErrorRecoverable(e)?n:"giving up permanently")},httpUnavailable:function(){return"Cannot make HTTP requests in this environment."+wa},identifyDisabled:function(){return"identify() has no effect here; it must be called on the main client instance"},inspectorMethodError:(e,t)=>`an inspector: "${t}" of type: "${e}" generated an exception`,invalidContentType:function(e){return'Expected application/json content type but got "'+e+'"'},invalidData:function(){return"Invalid data received from LaunchDarkly; connection may have been interrupted"},invalidInspector:(e,t)=>`an inspector: "${t}" of an invalid type (${e}) was configured`,invalidKey:function(){return"Event key must be a string"},invalidContext:function(){return"Invalid context specified."+wa},invalidTagValue:e=>`Config option "${e}" must only contain letters, numbers, ., _ or -.`,localStorageUnavailable:function(e){return"local storage is unavailable: "+_a(e)},networkError:e=>"network error"+(e?" ("+e+")":""),optionBelowMinimum:(e,t,n)=>'Config option "'+e+'" was set to '+t+", changing to minimum value of "+n,streamClosing:function(){return"Closing stream connection"},streamConnecting:function(e){return"Opening stream connection to "+e},streamError:function(e,t){return"Error on stream connection: "+_a(e)+", will continue retrying after "+t+" milliseconds."},tagValueTooLong:e=>`Value of "${e}" was longer than 64 characters and was discarded.`,unknownCustomEventKey:function(e){return'Custom event "'+e+'" does not exist'},unknownOption:e=>'Ignoring unknown config option "'+e+'"',contextNotSpecified:function(){return"No context specified."+wa},unrecoverableStreamError:e=>`Error on stream connection ${_a(e)}, giving up permanently`,wrongOptionType:(e,t,n)=>'Config option "'+e+'" should be of type '+t+", got "+n+", using default value",wrongOptionTypeBoolean:(e,t)=>'Config option "'+e+'" should be a boolean, got '+t+", converting to boolean"};const{validateLogger:ka}=xa,Ea={baseUrl:{default:"https://app.launchdarkly.com"},streamUrl:{default:"https://clientstream.launchdarkly.com"},eventsUrl:{default:"https://events.launchdarkly.com"},sendEvents:{default:!0},streaming:{type:"boolean"},sendLDHeaders:{default:!0},requestHeaderTransform:{type:"function"},sendEventsOnlyForVariation:{default:!1},useReport:{default:!1},evaluationReasons:{default:!1},eventCapacity:{default:100,minimum:1},flushInterval:{default:2e3,minimum:2e3},samplingInterval:{default:0,minimum:0},streamReconnectDelay:{default:1e3,minimum:0},allAttributesPrivate:{default:!1},privateAttributes:{default:[]},bootstrap:{type:"string|object"},diagnosticRecordingInterval:{default:9e5,minimum:2e3},diagnosticOptOut:{default:!1},wrapperName:{type:"string"},wrapperVersion:{type:"string"},stateProvider:{type:"object"},application:{validator:function(e,t,n){const r={};return t.id&&(r.id=Ta(`${e}.id`,t.id,n)),t.version&&(r.version=Ta(`${e}.version`,t.version,n)),r}},inspectors:{default:[]}},Ca=/^(\w|\.|-)+$/;function ja(e){return e&&e.replace(/\/+$/,"")}function Ta(e,t,n){if("string"==typeof t&&t.match(Ca)){if(!(t.length>64))return t;n.warn(Sa.tagValueTooLong(e))}else n.warn(Sa.invalidTagValue(e))}var Ra={baseOptionDefs:Ea,validate:function(e,t,n,r){const i=Go.extend({logger:{default:r}},Ea,n),o={};function a(e){Go.onNextTick((()=>{t&&t.maybeReportError(new To.LDInvalidArgumentError(e))}))}let s=Go.extend({},e||{});return function(e){const t=e;Object.keys(o).forEach((e=>{if(void 0!==t[e]){const n=o[e];r&&r.warn(Sa.deprecated(e,n)),n&&(void 0===t[n]&&(t[n]=t[e]),delete t[e])}}))}(s),s=function(e){const t=Go.extend({},e);
1return Object.keys(i).forEach((e=>{void 0!==t[e]&&null!==t[e]||(t[e]=i[e]&&i[e].default)})),t}(s),s=function(e){const t=Go.extend({},e),n=e=>{if(null===e)return"any";if(void 0===e)return;if(Array.isArray(e))return"array";const t=typeof e;return"boolean"===t||"string"===t||"number"===t||"function"===t?t:"object"};return Object.keys(e).forEach((o=>{const s=e[o];if(null!=s){const u=i[o];if(void 0===u)a(Sa.unknownOption(o));else{const i=u.type||n(u.default),c=u.validator;if(c){const n=c(o,e[o],r);void 0!==n?t[o]=n:delete t[o]}else if("any"!==i){const e=i.split("|"),r=n(s);e.indexOf(r)<0?"boolean"===i?(t[o]=!!s,a(Sa.wrongOptionTypeBoolean(o,r))):(a(Sa.wrongOptionType(o,i,r)),t[o]=u.default):"number"===r&&void 0!==u.minimum&&s<u.minimum&&(a(Sa.optionBelowMinimum(o,s,u.minimum)),t[o]=u.minimum)}}}})),t.baseUrl=ja(t.baseUrl),t.streamUrl=ja(t.streamUrl),t.eventsUrl=ja(t.eventsUrl),t}(s),ka(s.logger),s},getTags:function(e){const t={};return e&&(e.application&&void 0!==e.application.id&&null!==e.application.id&&(t["application-id"]=[e.application.id]),e.application&&void 0!==e.application.version&&null!==e.application.id&&(t["application-version"]=[e.application.version])),t}};const{getLDUserAgentString:Oa}=Go;var Pa={getLDHeaders:function(e,t){if(t&&!t.sendLDHeaders)return{};const n={};n[e.userAgentHeaderName||"User-Agent"]=Oa(e),t&&t.wrapperName&&(n["X-LaunchDarkly-Wrapper"]=t.wrapperVersion?t.wrapperName+"/"+t.wrapperVersion:t.wrapperName);const r=Ra.getTags(t),i=Object.keys(r);return i.length&&(n["x-launchdarkly-tags"]=i.sort().map((e=>Array.isArray(r[e])?r[e].sort().map((t=>`${e}/${t}`)):[`${e}/${r[e]}`])).reduce(((e,t)=>e.concat(t)),[]).join(" ")),n},transformHeaders:function(e,t){return t&&t.requestHeaderTransform?t.requestHeaderTransform({...e}):e}};const{v1:Aa}=ya,{getLDHeaders:Da,transformHeaders:Ia}=Pa;var Na=function(e,t,n){const r="/a/"+t+".gif",i=Go.extend({"Content-Type":"application/json"},Da(e,n)),o=e.httpFallbackPing,a={sendChunk:(t,a,s,u)=>{const c=JSON.stringify(t),l=s?null:Aa();return u?function t(r){const o=s?i:Go.extend({},i,{"X-LaunchDarkly-Event-Schema":"4","X-LaunchDarkly-Payload-ID":l});return e.httpRequest("POST",a,Ia(o,n),c).promise.then((e=>{if(e)return e.status>=400&&To.isHttpErrorRecoverable(e.status)&&r?t(!1):function(e){const t={status:e.status},n=e.header("date");if(n){const e=Date.parse(n);e&&(t.serverTime=e)}return t}(e)})).catch((()=>r?t(!1):Promise.reject()))}(!0).catch((()=>{})):(o&&o(a+r+"?d="+Go.base64URLEncode(c)),Promise.resolve())},sendEvents:function(t,n,r){if(!e.httpRequest)return Promise.resolve();const i=e.httpAllowsPost();let o;o=i?[t]:Go.chunkEventsForUrl(2e3-n.length,t);const s=[];for(let e=0;e<o.length;e++)s.push(a.sendChunk(o[e],n,r,i));return Promise.all(s)}};return a};const{commonBasicLogger:Ma}=xa;function Fa(e){return"string"==typeof e&&"kind"!==e&&e.match(/^(\w|\.|-)+$/)}function Ba(e){return e.includes("%")||e.includes(":")?e.replace(/%/g,"%25").replace(/:/g,"%3A"):e}var La={checkContext:function(e,t){if(e){if(t&&(void 0===e.kind||null===e.kind))return void 0!==e.ke
1y&&null!==e.key;const n=e.key,r=void 0===e.kind?"user":e.kind,i=Fa(r),o="multi"===r||null!=n&&""!==n;if("multi"===r){const t=Object.keys(e).filter((e=>"kind"!==e));return o&&t.every((e=>Fa(e)))&&t.every((t=>{const n=e[t].key;return null!=n&&""!==n}))}return o&&i}return!1},getContextKeys:function(e,t=Ma()){if(!e)return;const n={},{kind:r,key:i}=e;switch(r){case void 0:n.user=`${i}`;break;case"multi":Object.entries(e).filter((([e])=>"kind"!==e)).forEach((([e,t])=>{t&&t.key&&(n[e]=t.key)}));break;case null:t.warn(`null is not a valid context kind: ${e}`);break;case"":t.warn(`'' is not a valid context kind: ${e}`);break;default:n[r]=`${i}`}return n},getContextKinds:function(e){return e?null===e.kind||void 0===e.kind?["user"]:"multi"!==e.kind?[e.kind]:Object.keys(e).filter((e=>"kind"!==e)):[]},getCanonicalKey:function(e){if(e){if((void 0===e.kind||null===e.kind||"user"===e.kind)&&e.key)return e.key;if("multi"!==e.kind&&e.key)return`${e.kind}:${Ba(e.key)}`;if("multi"===e.kind)return Object.keys(e).sort().filter((e=>"kind"!==e)).map((t=>`${t}:${Ba(e[t].key)}`)).join(":")}}};const{getContextKinds:za}=La;function Ua(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function Ha(e){return(e.startsWith("/")?e.substring(1):e).split("/").map((e=>e.indexOf("~")>=0?e.replace(/~1/g,"/").replace(/~0/g,"~"):e))}function Va(e){return!e.startsWith("/")}function Wa(e,t){const n=Va(e),r=Va(t);if(n&&r)return e===t;if(n){const n=Ha(t);return 1===n.length&&e===n[0]}if(r){const n=Ha(e);return 1===n.length&&t===n[0]}return e===t}function Ga(e){return`/${Ua(e)}`}var qa={cloneExcluding:function(e,t){const n=[],r={},i=[];for(n.push(...Object.keys(e).map((t=>({key:t,ptr:Ga(t),source:e,parent:r,visited:[e]}))));n.length;){const e=n.pop();if(t.some((t=>Wa(t,e.ptr))))i.push(e.ptr);else{const t=e.source[e.key];if(null===t)e.parent[e.key]=t;else if(Array.isArray(t))e.parent[e.key]=[...t];else if("object"==typeof t){if(e.visited.includes(t))continue;e.parent[e.key]={},n.push(...Object.keys(t).map((n=>{return{key:n,ptr:(r=e.ptr,i=Ua(n),`${r}/${i}`),source:t,parent:e.parent[e.key],visited:[...e.visited,t]};var r,i})))}else e.parent[e.key]=t}}return{cloned:r,excluded:i.sort()}},compare:Wa,literalToReference:Ga};const{getContextKeys:Za}=La;var $a=function(e,t,n,r=null,i=null,o=null){const a={},s=o||Na(e,n,t),u=Go.appendUrlPath(t.eventsUrl,"/events/bulk/"+n),c=function(){const e={};let t=0,n=0,r={},i={};return e.summarizeEvent=e=>{if("feature"===e.kind){const o=e.key+":"+(null!==e.variation&&void 0!==e.variation?e.variation:"")+":"+(null!==e.version&&void 0!==e.version?e.version:""),a=r[o];let s=i[e.key];s||(s=new Set,i[e.key]=s),function(e){return e.context?za(e.context):e.contextKeys?Object.keys(e.contextKeys):[]}(e).forEach((e=>s.add(e))),a?a.count=a.count+1:r[o]={count:1,key:e.key,version:e.version,variation:e.variation,value:e.value,default:e.default},(0===t||e.creationDate<t)&&(t=e.creationDate),e.creationDate>n&&(n=e.creationDate)}},e.getSummary=()=>{const e={};let o=!0;for(const t of Object.values(r)){let n=e[t.key];n||(n={default:t.default,counters:[],contextKinds:[...i[t.key]]},e[t.key]=n);const r={value:t.value,count:t.count};void 0!==t.variation&&null!==t.variation&&(r.variation=t.variation),void 0!==t.version&&null!==t.version?r.version=t.version:r.unknown=!0,n.counters.push(r),o=!1}return o?null:{startDate:t,endDate:n,features:e}},e.clearSummary=()=>{t=0,n=0,r={},i={}},e}(),l=function(e){const t={},n=e.allAttributesPrivate,r=e.privateAttributes||[],i=["key","kind","_meta","anonymous"],o=["name","ip","firstName","lastName","email","avatar","country"],a=e=>{if("object"!=typeof e||null===e||Array.isArray(e))return;const{cloned:t,excluded:o}=qa.cloneExcluding(e,(e=>(n?Object.keys(e):[...r,...e._meta&&e._meta.privateAttributes||[]]).filter((e=>!i.some((t=>qa.compare(e,t))))))(e));return t.key=String(t.key),o.length&&(t._meta||(t._meta={}),t._meta.redactedAttributes=o),t._meta&&(delete t._meta.privateAttributes,0===Object.keys(t._meta).length&&delete t._meta),void 0!==t.anonymous&&(t.anonymous=!!t.anonymous),t};return t.filter=e=>void 0===e.kind||null===e.kind?a((e=>{const t={...e.custom||{},kind:"user",key:e.key};void 0!==e.anonymous&&(t.anonymous=!!e.anonymous);for(const n of o)delete t[n],void 0!==e[n]&&null!==e[n]&&(t[n]=String(e[n]));return void 0!==e.privateAttributeNames&&null!==e.privateAttributeNames&&(t._meta=t._meta||{},t._meta.privateAttributes=e.privateAttributeNames.map((e=>e.startsWith("/")?qa.literalToReference(e):e))),t})(e)):"multi"===e.kind?(e=>{const t={kind:e.kind},n=Object.keys(e);for(const r of n)if("kind"!==r){const n=a(e[r]);n&&(t[r]=n)}return t})(e):a(e),t}(t),d=t.samplingInterval,f=t.eventCapacity,p=t.flushInterval,h=t.logger;let m,v=[],g=0,y=!1,b=!1;function x(){return 0===d||0===Math.floor(Math.random()*d)}function _(e){v.length<f?(v.push(e),b=!1):(b||(b=!0,h.warn(Sa.eventCapacityExceeded())),r&&r.incrementDroppedEvents())}return a.enqueue=function(e){if(y)return;let t=!1,n=!1;var r;if(c.summarizeEvent(e),"feature"===e.kind?x()&&(t=!!e.trackEvents,n=!!(r=e).debugEventsUntilDate&&r.debugEventsUntilDate>g&&r.debugEventsUntilDate>(new Date).getTime()):t=x(),t&&_(function(e){const t=Go.extend({},e);return"identify"===e.kind?t.context=l.filter(e.context):(t.contextKeys=Za(e.context,h),delete t.context),"feature"===e.kind&&(delete t.trackEvents,delete t.debugEventsUntilDate),t}(e)),n){const t=Go.extend({},e,{kind:"debug"});t.context=l.filter(t.context),delete t.trackEvents,delete t.debugEventsUntilDate,_(t)}},a.flush=function(){if(y)return Promise.resolve();
1const e=v,t=c.getSummary();return c.clearSummary(),t&&(t.kind="summary",e.push(t)),r&&r.setEventsInLastBatch(e.length),0===e.length?Promise.resolve():(v=[],h.debug(Sa.debugPostingEvents(e.length)),s.sendEvents(e,u).then((e=>{const t=e&&e[0];t&&(t.serverTime&&(g=t.serverTime),To.isHttpErrorRecoverable(t.status)||(y=!0),t.status>=400&&Go.onNextTick((()=>{i.maybeReportError(new To.LDUnexpectedResponseError(Sa.httpErrorMessage(t.status,"event posting","some events were dropped")))})))})))},a.start=function(){const e=()=>{a.flush(),m=setTimeout(e,p)};m=setTimeout(e,p)},a.stop=function(){clearTimeout(m)},a};const Ya="ready",Ka="initialized",Xa="failed";const{appendUrlPath:Qa,base64URLEncode:Ja,objectHasOwnProperty:es}=Go,{getLDHeaders:ts,transformHeaders:ns}=Pa,{isHttpErrorRecoverable:rs}=To;var is=function(e,t,n,r){const i=t.streamUrl,o=t.logger,a={},s=Qa(i,"/eval/"+n),u=t.useReport,c=t.evaluationReasons,l=t.streamReconnectDelay,d=ts(e,t);let f,p=!1,h=null,m=null,v=null,g=null,y=null,b=0;function x(e){if(e.status&&"number"==typeof e.status&&!rs(e.status))return S(),o.error(Sa.unrecoverableStreamError(e)),void(m&&(clearTimeout(m),m=null));const t=function(){const e=(t=function(){const e=l*Math.pow(2,b);return e>3e4?3e4:e}(),t-Math.trunc(.5*Math.random()*t));var t;return b+=1,e}();p||(o.warn(Sa.streamError(e,t)),p=!0),k(!1),S(),_(t)}function _(e){m||(e?m=setTimeout(w,e):w())}function w(){let r;m=null;let a="";const l={headers:d,readTimeoutMillis:3e5};if(e.eventSourceFactory){null!=g&&(a="h="+g),u?e.eventSourceAllowsReport?(r=s,l.method="REPORT",l.headers["Content-Type"]="application/json",l.body=JSON.stringify(v)):(r=Qa(i,"/ping/"+n),a=""):r=s+"/"+Ja(JSON.stringify(v)),l.headers=ns(l.headers,t),c&&(a=a+(a?"&":"")+"withReasons=true"),r=r+(a?"?":"")+a,S(),o.info(Sa.streamConnecting(r)),f=(new Date).getTime(),h=e.eventSourceFactory(r,l);for(const e in y)es(y,e)&&h.addEventListener(e,y[e]);h.onerror=x,h.onopen=()=>{b=0}}}function S(){h&&(o.info(Sa.streamClosing()),h.close(),h=null)}function k(e){f&&r&&r.recordStreamInit(f,!e,(new Date).getTime()-f),f=null}return a.connect=function(e,t,n){v=e,g=t,y={};for(const r in n||{})y[r]=function(e){p=!1,k(!0),n[r]&&n[r](e)};_()},a.disconnect=function(){clearTimeout(m),m=null,S()},a.isConnected=function(){return!!(h&&e.eventSourceIsActive&&e.eventSourceIsActive(h))},a};const{transformHeaders:os,getLDHeaders:as}=Pa,ss="application/json";var us=function(e,t,n){const r=t.baseUrl,i=t.useReport,o=t.evaluationReasons,a=t.logger,s={},u={};function c(n,r){if(!e.httpRequest)return new Promise(((e,t)=>{t(new To.LDFlagFetchError(Sa.httpUnavailable()))}));const i=r?"REPORT":"GET",o=as(e,t);r&&(o["Content-Type"]=ss);let a=u[n];a||(a=function(e){let t,n,r,i;const o={addPromise:(o,a)=>{t=o,n&&n(),n=a,o.then((n=>{t===o&&(r(n),e&&e())}),(n=>{t===o&&(i(n),e&&e())}))}};return o.resultPromise=new Promise(((e,t)=>{r=e,i=t})),o}((()=>{delete u[n]})),u[n]=a);const s=e.httpRequest(i,n,os(o,t),r),c=s.promise.then((e=>{if(200===e.status){if(e.header("content-type")&&e.header("content-type").substring(0,ss.length)===ss)return JSON.parse(e.body);{const t=Sa.invalidContentType(e.header("content-type")||"");return Promise.reject(new To.LDFlagFetchError(t))}}return Promise.reject(function(e){return 404===e.status?new To.LDInvalidEnvironmentIdError(Sa.environmentNotFound()):new To.LDFlagFetchError(Sa.errorFetchingFlags(e.statusText||String(e.status)))}(e))}),(e=>Promise.reject(new To.LDFlagFetchError(Sa.networkError(e)))));return a.addPromise(c,(()=>{s.cancel&&s.cancel()})),a.resultPromise}return s.fetchJSON=function(e){return c(Go.appendUrlPath(r,e),null)},s.fetchFlagSettings=function(e,t){let s,u,l,d="";return i?(u=[r,"/sdk/evalx/",n,"/context"].join(""),l=JSON.stringify(e)):(s=Go.base64URLEncode(JSON.stringify(e)),u=[r,"/sdk/evalx/",n,"/contexts/",s].join("")),t&&(d="h="+t),o&&(d=d+(d?"&":"")+"withReasons=true"),u=u+(d?"?":"")+d,a.debug(Sa.debugPolling(u)),c(u,l)},s};const{v1:cs}=ya,{getContextKinds:ls}=La;var ds=function(e){function t(e){return null==e||"user"===e?"ld:$anonUserId":`ld:$contextKey:${e}`}function n(n,r){return null!==r.key&&void 0!==r.key?(r.key=r.key.toString(),Promise.resolve(r)):r.anonymous?function(n){return e.get(t(n))}(n).then((i=>{if(i)return r.key=i,r;{const i=cs();
1return r.key=i,function(n,r){return e.set(t(r),n)}(i,n).then((()=>r))}})):Promise.reject(new To.LDInvalidUserError(Sa.invalidContext()))}this.processContext=e=>{if(!e)return Promise.reject(new To.LDInvalidUserError(Sa.contextNotSpecified()));const t=Go.clone(e);if("multi"===e.kind){const e=ls(t);return Promise.all(e.map((e=>n(e,t[e])))).then((()=>t))}return n(e.kind,t)}};const{v1:fs}=ya,{baseOptionDefs:ps}=Ra,{appendUrlPath:hs}=Go;var ms=function(e){const t={diagnosticId:fs()};return e&&(t.sdkKeySuffix=e.length>6?e.substring(e.length-6):e),t},vs=function(e){let t,n,r,i;function o(e){t=e,n=0,r=0,i=[]}return o(e),{getProps:()=>({dataSinceDate:t,droppedEvents:n,eventsInLastBatch:r,streamInits:i}),setProps:e=>{t=e.dataSinceDate,n=e.droppedEvents||0,r=e.eventsInLastBatch||0,i=e.streamInits||[]},incrementDroppedEvents:()=>{n++},setEventsInLastBatch:e=>{r=e},recordStreamInit:(e,t,n)=>{const r={timestamp:e,failed:t,durationMillis:n};i.push(r)},reset:o}},gs=function(e,t,n,r,i,o,a){const s=!!e.diagnosticUseCombinedEvent,u="ld:"+i+":$diagnostics",c=hs(o.eventsUrl,"/events/diagnostic/"+i),l=o.diagnosticRecordingInterval,d=n;let f,p,h=!!o.streaming;const m={};function v(){return{sdk:b(),configuration:{customBaseURI:o.baseUrl!==ps.baseUrl.default,customStreamURI:o.streamUrl!==ps.streamUrl.default,customEventsURI:o.eventsUrl!==ps.eventsUrl.default,eventsCapacity:o.eventCapacity,eventsFlushIntervalMillis:o.flushInterval,reconnectTimeMillis:o.streamReconnectDelay,streamingDisabled:!h,allAttributesPrivate:!!o.allAttributesPrivate,diagnosticRecordingIntervalMillis:o.diagnosticRecordingInterval,usingSecureMode:!!o.hash,bootstrapMode:!!o.bootstrap,fetchGoalsDisabled:!o.fetchGoals,sendEventsOnlyForVariation:!!o.sendEventsOnlyForVariation},platform:e.diagnosticPlatformData}}function g(e){o.logger&&o.logger.debug(Sa.debugPostingDiagnosticEvent(e)),r.sendEvents(e,c,!0).then((()=>{})).catch((()=>{}))}function y(){g(function(){const e=(new Date).getTime();let t={kind:s?"diagnostic-combined":"diagnostic",id:a,creationDate:e,...d.getProps()};return s&&(t={...t,...v()}),d.reset(e),t}()),p=setTimeout(y,l),f=(new Date).getTime(),s&&function(){if(t.isEnabled()){const e={...d.getProps()};t.set(u,JSON.stringify(e))}}()}function b(){const t={...e.diagnosticSdkData};return o.wrapperName&&(t.wrapperName=o.wrapperName),o.wrapperVersion&&(t.wrapperVersion=o.wrapperVersion),t}return m.start=()=>{s?function(e){if(!t.isEnabled())return e(!1);t.get(u).then((t=>{if(t)try{const e=JSON.parse(t);d.setProps(e),f=e.dataSinceDate}catch(e){}e(!0)})).catch((()=>{e(!1)}))}((e=>{if(e){const e=(f||0)+l,t=(new Date).getTime();t>=e?y():p=setTimeout(y,e-t)}else 0===Math.floor(4*Math.random())?y():p=setTimeout(y,l)})):(g({kind:"diagnostic-init",id:a,creationDate:d.getProps().dataSinceDate,...v()}),p=setTimeout(y,l))},m.stop=()=>{p&&clearTimeout(p)},m.setStreaming=e=>{h=e},m};const{onNextTick:ys}=Go,bs={flagUsed:"flag-used",flagDetailsChanged:"flag-details-changed",flagDetailChanged:"flag-detail-changed",clientIdentityChanged:"client-identity-changed"};Object.freeze(bs);var xs={InspectorTypes:bs,InspectorManager:function(e,t){const n={},r={[bs.flagUsed]:[],[bs.flagDetailsChanged]:[],[bs.flagDetailChanged]:[],[bs.clientIdentityChanged]:[]},i=e&&e.map((e=>function(e,t){let n=!1;const r={type:e.type,name:e.name,method:(...i)=>{try{e.method(...i)}catch{n||(n=!0,t.warn(Sa.inspectorMethodError(r.type,r.name)))}}};return r}(e,t)));return i&&i.forEach((e=>{Object.prototype.hasOwnProperty.call(r,e.type)?r[e.type].push(e):t.warn(Sa.invalidInspector(e.type,e.name))})),n.hasListeners=e=>r[e]&&r[e].length,n.onFlagUsed=(e,t,n)=>{r[bs.flagUsed].length&&ys((()=>{r[bs.flagUsed].forEach((r=>r.method(e,t,n)))}))},n.onFlags=e=>{r[bs.flagDetailsChanged].length&&ys((()=>{r[bs.flagDetailsChanged].forEach((t=>t.method(e)))}))},n.onFlagChanged=(e,t)=>{r[bs.flagDetailChanged].length&&ys((()=>{r[bs.flagDetailChanged].forEach((n=>n.method(e,t)))}))},n.onIdentityChanged=e=>{r[bs.clientIdentityChanged].length&&ys((()=>{r[bs.clientIdentityChanged].forEach((t=>t.method(e)))}))},n}};const{commonBasicLogger:_s}=xa,{checkContext:ws,getContextKeys:Ss}=La,{InspectorTypes:ks,InspectorManager:Es}=xs,Cs="change",js="internal-change";var Ts={initialize:function(e,t,n,r,i){const o=n&&n.logger?n.logger:i&&i.logger&&i.logger.default||_s("warn"),a=function(e){const t={},n={};return t.on=function(e,t,r){n[e]=n[e]||[],n[e]=n[e].concat({handler:t,context:r})},t.off=function(e,t,r){if(n[e])for(let i=0;i<n[e].length;i++)n[e][i].handler===t&&n[e][i].context===r&&(n[e]=n[e].slice(0,i).concat(n[e].slice(i+1)))},t.emit=function(e){if(!n[e])return;const t=n[e].slice(0);for(let n=0;n<t.length;n++)t[n].handler.apply(t[n].context,Array.prototype.slice.call(arguments,1
1))},t.getEvents=function(){return Object.keys(n)},t.getEventListenerCount=function(e){return n[e]?n[e].length:0},t.maybeReportError=function(t){t&&(n.error?this.emit("error",t):(e||console).error(t.message))},t}(o),s=function(e){let t=!1,n=!1,r=null,i=null;const o=new Promise((t=>{const n=()=>{e.off(Ya,n),t()};e.on(Ya,n)})).catch((()=>{}));return{getInitializationPromise:()=>i||(t?Promise.resolve():n?Promise.reject(r):(i=new Promise(((t,n)=>{const r=()=>{e.off(Ka,r),t()},i=t=>{e.off(Xa,i),n(t)};e.on(Ka,r),e.on(Xa,i)})),i)),getReadyPromise:()=>o,signalSuccess:()=>{t||n||(t=!0,e.emit(Ka),e.emit(Ya))},signalFailure:i=>{t||n||(n=!0,r=i,e.emit(Xa,i),e.emit(Ya)),e.maybeReportError(i)}}}(a),u=Ra.validate(n,a,i,o),c=Es(u.inspectors,o),l=u.sendEvents;let d=e,f=u.hash;const p=function(e,t){const n={};let r=!1;const i=e=>{r||(r=!0,t.warn(Sa.localStorageUnavailable(e)))};return n.isEnabled=()=>!!e,n.get=t=>new Promise((n=>{e?e.get(t).then(n).catch((e=>{i(e),n(void 0)})):n(void 0)})),n.set=(t,n)=>new Promise((r=>{e?e.set(t,n).then((()=>r(!0))).catch((e=>{i(e),r(!1)})):r(!1)})),n.clear=t=>new Promise((n=>{e?e.clear(t).then((()=>n(!0))).catch((e=>{i(e),n(!1)})):n(!1)})),n}(r.localStorage,o),h=Na(r,d,u),m=u.sendEvents&&!u.diagnosticOptOut,v=m?ms(d):null,g=m?vs((new Date).getTime()):null,y=m?gs(r,p,g,h,d,u,v):null,b=is(r,u,d,g),x=u.eventProcessor||$a(r,u,d,g,a,h),_=us(r,u,d);let w,S,k,E={},C=u.streaming,j=!1,T=!1,R=!0;const O=u.stateProvider,P=function(e,t){const n={};let r;return n.setContext=function(e){r=Go.sanitizeContext(e),r&&t&&t(Go.clone(r))},n.getContext=function(){return r?Go.clone(r):null},e&&n.setContext(e),n}(null,(function(e){(function(e){O||e&&I({kind:"identify",context:e,creationDate:(new Date).getTime()})})(e),c.hasListeners(ks.clientIdentityChanged)&&c.onIdentityChanged(P.getContext())})),A=new ds(p),D=p.isEnabled()?function(e,t,n,r){const i={};function o(){let e="";const i=r.getContext();return i&&(e=n||Go.btoa(JSON.stringify(i))),"ld:"+t+":"+e}return i.loadFlags=()=>e.get(o()).then((e=>{if(null==e)return null;try{let t=JSON.parse(e);if(t){const e=t.$schema;void 0===e||e<1?t=Go.transformValuesToVersionedValues(t):delete t.$schema}return t}catch(e){return i.clearFlags().then((()=>null))}})),i.saveFlags=t=>{const n=Go.extend({},t,{$schema:1});return e.set(o(),JSON.stringify(n))},i.clearFlags=()=>e.clear(o()),i}(p,d,f,P):null;function I(e){d&&(O&&O.enqueueEvent&&O.enqueueEvent(e)||(e.context?(R=!1,!l||T||r.isDoNotTrack()||(o.debug(Sa.debugEnqueueingEvent(e.kind)),x.enqueue(e))):R&&(o.warn(Sa.eventWithoutContext()),R=!1)))}function N(e,t){c.hasListeners(ks.flagDetailChanged)&&c.onFlagChanged(e.key,z(t))}function M(){c.hasListeners(ks.flagDetailsChanged)&&c.onFlags(Object.entries(E).map((([e,t])=>({key:e,detail:z(t)}))).reduce(((e,t)=>(e[t.key]=t.detail,e)),{}))}function F(e,t,n,r){const i=P.getContext(),o=new Date,a={kind:"feature",key:e,context:i,value:t?t.value:null,variation:t?t.variationIndex:null,default:n,creationDate:o.getTime()},s=E[e];s&&(a.version=s.flagVersion?s.flagVersion:s.version,a.trackEvents=s.trackEvents,a.debugEventsUntilDate=s.debugEventsUntilDate),(r||s&&s.trackReason)&&t&&(a.reason=t.reason),I(a)}function B(e){return ws(e,!1)?Promise.resolve(e):Promise.reject(new To.LDInvalidUserError(Sa.invalidContext()))}function L(e,t,n,r,i){let o;if(E&&Go.objectHasOwnProperty(E,e)&&E[e]&&!E[e].deleted){const n=E[e];o=z(n),null!==n.value&&void 0!==n.value||(o.value=t)}else o={value:t,variationIndex:null,reason:{kind:"ERROR",errorKind:"FLAG_NOT_FOUND"}};return n&&F(e,o,t,r),i||function(e,t){c.hasListeners(ks.flagUsed)&&c.onFlagUsed(e,t,P.getContext())}(e,o),o}function z(e){return{value:e.value,variationIndex:void 0===e.variation?null:e.variation,reason:e.reason||null}}function U(){if(S=!0,!P.getContext())return;const e=e=>{try{return JSON.parse(e)}catch(e){return void a.maybeReportError(new To.LDInvalidDataError(Sa.invalidData()))}};b.connect(P.getContext(),f,{ping:function(){o.debug(Sa.debugStreamPing());const e=P.getContext();_.fetchFlagSettings(e,f).then((t=>{Go.deepEquals(e,P.getContext())&&V(t||{})})).catch((e=>{a.maybeReportError(new To.LDFlagFetchError(Sa.errorFetchingFlags(e)))}))},put:function(t){const n=e(t.data);n&&(o.debug(Sa.debugStreamPut()),V(n))},patch:function(t){const n=e(t.data);if(!n)return;const r=E[n.key];if(!r||!r.version||!n.version||r.version<n.version){o.debug(Sa.debugStreamPatch(n.key));const e={},t=Go.extend({},n);delete t.key,E[n.key]=t;const i=z(t);e[n.key]=r?{previous:r.value,current:i}:{current:i},W(e),N(n,t)}else o.debug(Sa.debugStreamPatchIgnored(n.key))},delete:function(t){const n=e(t.data);if(n)if(!E[n.key]||E[n.key].version<n.version){o.debug(Sa.debugStreamDelete(n.key));const e={};E[n.key]&&!E[n.key].deleted&&(e[n.key]={previous:E[n.key].value}),E[n.key]={version:n.version,deleted:!0}
1,N(n,E[n.key]),W(e)}else o.debug(Sa.debugStreamDeleteIgnored(n.key))}})}function H(){S&&(b.disconnect(),S=!1)}function V(e){const t={};if(!e)return Promise.resolve();for(const n in E)Go.objectHasOwnProperty(E,n)&&E[n]&&(e[n]&&!Go.deepEquals(e[n].value,E[n].value)?t[n]={previous:E[n].value,current:z(e[n])}:e[n]&&!e[n].deleted||(t[n]={previous:E[n].value}));for(const n in e)Go.objectHasOwnProperty(e,n)&&e[n]&&(!E[n]||E[n].deleted)&&(t[n]={current:z(e[n])});return E={...e},M(),W(t).catch((()=>{}))}function W(e){const t=Object.keys(e);if(t.length>0){const n={};t.forEach((t=>{const r=e[t].current,i=r?r.value:void 0,o=e[t].previous;a.emit(Cs+":"+t,i,o),n[t]=r?{current:i,previous:o}:{previous:o}})),a.emit(Cs,n),a.emit(js,E),u.sendEventsOnlyForVariation||O||t.forEach((t=>{F(t,e[t].current)}))}return w&&D?D.saveFlags(E):Promise.resolve()}function G(){const e=C||k&&void 0===C;e&&!S?U():!e&&S&&H(),y&&y.setStreaming(e)}function q(e){return e===Cs||e.substr(0,Cs.length+1)===Cs+":"}if("string"==typeof u.bootstrap&&"LOCALSTORAGE"===u.bootstrap.toUpperCase()&&(D?w=!0:o.warn(Sa.localStorageUnavailable())),"object"==typeof u.bootstrap&&(E=function(e){const t=Object.keys(e),n="$flagsState",r="$valid",i=e[n];!i&&t.length&&o.warn(Sa.bootstrapOldFormat()),!1===e[r]&&o.warn(Sa.bootstrapInvalid());const a={};return t.forEach((t=>{if(t!==n&&t!==r){let n={value:e[t]};i&&i[t]?n=Go.extend(n,i[t]):n.version=0,a[t]=n}})),a}(u.bootstrap)),O){const e=O.getInitialState();e?Z(e):O.on("init",Z),O.on("update",(function(e){e.context&&P.setContext(e.context),e.flags&&V(e.flags)}))}else(e?A.processContext(t).then(B).then((e=>(P.setContext(e),"object"==typeof u.bootstrap?$():w?D.loadFlags().then((e=>null==e?(E={},_.fetchFlagSettings(P.getContext(),f).then((e=>V(e||{}))).then($).catch((e=>{Y(new To.LDFlagFetchError(Sa.errorFetchingFlags(e)))}))):(E=e,Go.onNextTick($),_.fetchFlagSettings(P.getContext(),f).then((e=>V(e))).catch((e=>a.maybeReportError(e)))))):_.fetchFlagSettings(P.getContext(),f).then((e=>{E=e||{},M(),$()})).catch((e=>{E={},Y(e)}))))):Promise.reject(new To.LDInvalidEnvironmentIdError(Sa.environmentNotSpecified()))).catch(Y);function Z(e){d=e.environment,P.setContext(e.context),E={...e.flags},Go.onNextTick($)}function $(){o.info(Sa.clientInitialized()),j=!0,G(),s.signalSuccess()}function Y(e){s.signalFailure(e)}const K={waitForInitialization:()=>s.getInitializationPromise(),waitUntilReady:()=>s.getReadyPromise(),identify:function(e,t,n){if(T)return Go.wrapPromiseCallback(Promise.resolve({}),n);if(O)return o.warn(Sa.identifyDisabled()),Go.wrapPromiseCallback(Promise.resolve(Go.transformVersionedValuesToValues(E)),n);const r=w&&D?D.clearFlags():Promise.resolve();return Go.wrapPromiseCallback(r.then((()=>A.processContext(e))).then(B).then((e=>_.fetchFlagSettings(e,t).then((n=>{const r=Go.transformVersionedValuesToValues(n);return P.setContext(e),f=t,n?V(n).then((()=>r)):r})))).then((e=>(S&&U(),e))).catch((e=>(a.maybeReportError(e),Promise.reject(e)))),n)},getContext:function(){return P.getContext()},variation:function(e,t){return L(e,t,!0,!1,!1).value},variationDetail:function(e,t){return L(e,t,!0,!0,!1)},track:function(e,t,n){if("string"!=typeof e)return void a.maybeReportError(new To.LDInvalidEventKeyError(Sa.unknownCustomEventKey(e)));r.customEventFilter&&!r.customEventFilter(e)&&o.warn(Sa.unknownCustomEventKey(e));const i=P.getContext(),s={kind:"custom",key:e,context:i,url:r.getCurrentUrl(),creationDate:(new Date).getTime()};i&&i.anonymous&&(s.contextKind=i.anonymous?"anonymousUser":"user"),null!=t&&(s.data=t),null!=n&&(s.metricValue=n),I(s)},on:function(e,t,n){q(e)?(k=!0,j&&G(),a.on(e,t,n)):a.on(...arguments)},off:function(e){if(a.off(...arguments),q(e)){let e=!1;a.getEvents().forEach((t=>{q(t)&&a.getEventListenerCount(t)>0&&(e=!0)})),e||(k=!1,S&&void 0===C&&H())}},setStreaming:function(e){const t=null===e?void 0:e;t!==C&&(C=t,G())},flush:function(e){return Go.wrapPromiseCallback(l?x.flush():Promise.resolve(),e)},allFlags:function(){const e={};if(!E)return e;for(const t in E)Go.objectHasOwnProperty(E,t)&&!E[t].deleted&&(e[t]=L(t,null,!u.sendEventsOnlyForVariation,!1,!0).value);return e},close:function(e){if(T)return Go.wrapPromiseCallback(Promise.resolve(),e);const t=()=>{T=!0,E={}},n=Promise.resolve().then((()=>
1{if(H(),y&&y.stop(),l)return x.stop(),x.flush()})).then(t).catch(t);return Go.wrapPromiseCallback(n,e)}};return{client:K,options:u,emitter:a,ident:P,logger:o,requestor:_,start:function(){l&&(y&&y.start(),x.start())},enqueueEvent:I,getFlagsInternal:function(){return E},getEnvironmentId:()=>d,internalChangeEventName:js}},commonBasicLogger:_s,errors:To,messages:Sa,utils:Go,getContextKeys:Ss},Rs=Ts.initialize,Os=Ts.errors,Ps=Ts.messages;function As(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 Ds(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?As(Object(n),!0).forEach((function(t){Is(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):As(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Is(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ns={promise:Promise.resolve({status:200,header:function(){return null},body:null})};function Ms(e,t,n,r,i){if(i&&!function(){var e=window.navigator&&window.navigator.userAgent;if(e){var t=e.match(/Chrom(e|ium)\/([0-9]+)\./);if(t)return parseInt(t[2],10)<73}return!0}())return Ns;var o=new window.XMLHttpRequest;for(var a in o.open(e,t,!i),n||{})Object.prototype.hasOwnProperty.call(n,a)&&o.setRequestHeader(a,n[a]);if(i)return o.send(r),Ns;var s,u=new Promise((function(e,t){o.addEventListener("load",(function(){s||e({status:o.status,header:function(e){return o.getResponseHeader(e)},body:o.responseText})})),o.addEventListener("error",(function(){s||t(new Error)})),o.send(r)}));return{promise:u,cancel:function(){s=!0,o.abort()}}}var Fs=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};function Bs(e,t,n,r){var i,o,a=("substring"!==e.kind&&"regex"!==e.kind||!r.includes("/")?t.replace(r,""):t).replace(n,"");switch(e.kind){case"exact":o=t,i=new RegExp("^"+Fs(e.url)+"/?$");break;case"canonical":o=a,i=new RegExp("^"+Fs(e.url)+"/?$");break;case"substring":o=a,i=new RegExp(".*"+Fs(e.substring)+".*$");break;case"regex":o=a,i=new RegExp(e.pattern);break;default:return!1}return i.test(o)}function Ls(e,t){for(var n={},r=null,i=[],o=0;o<e.length;o++)for(var a=e[o],s=a.urls||[],u=0;u<s.length;u++)if(Bs(s[u],window.location.href,window.location.search,window.location.hash)){"pageview"===a.kind?t("pageview",a):(i.push(a),t("click_pageview",a));break}return i.length>0&&(r=function(e){for(var n=function(e,t){for(var n=[],r=0;r<t.length;r++)for(var i=e.target,o=t[r],a=o.selector,s=document.querySelectorAll(a);i&&s.length>0;){for(var u=0;u<s.length;u++)i===s[u]&&n.push(o);i=i.parentNode}return n}(e,i),r=0;r<n.length;r++)t("click",n[r])},document.addEventListener("click",r)),n.dispose=function(){document.removeEventListener("click",r)},n}function zs(e,t){var n,r;function i(){r&&r.dispose(),n&&n.length&&(r=Ls(n,o))}function o(t,n){var r=e.ident.getContext(),i={kind:t,key:n.key,data:null,url:window.location.href,creationDate:(new Date).getTime(),context:r};return"click"===t&&(i.selector=n.selector),e.enqueueEvent(i)}return e.requestor.fetchJSON("/sdk/goals/"+e.getEnvironmentId()).then((function(e){e&&e.length>0&&(r=Ls(n=e,o),function(e,t){var n,r=window.location.href;function i(){(n=window.location.href)!==r&&(r=n,t())}!function e(t,n){t(),setTimeout((function(){e(t,n)}),n)}(i,300),window.history&&window.history.pushState?window.addEventListener("popstate",i):window.addEventListener("hashchange",i)}(0,i)),t()})).catch((function(n){e.emitter.maybeReportError(new Os.LDUnexpectedResponseError((n&&n.message,n.message))),t()})),{}}var Us="goalsReady",Hs={fetchGoals:{default:!0},hash:{type:"string"},eventProcessor:{type:"object"},eventUrlTransformer:{type:"function"},disableSyncEventPost:{default:!1}};function Vs(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=function(e){var t,n={userAgentHeaderName:"X-LaunchDarkly-User-Agent",synchronousFlush:!1};if(window.XMLHttpRequest){var r=e&&e.disableSyncEventPost;n.httpRequest=function(e,t,i,o){var a=n.synchronousFlush&!r;return n.synchronousFlush=!1,Ms(e,t,i,o,a)}}n.httpAllowsPost=function(){return void 0===t&&(t=!!window.XMLHttpRequest&&"withCredentials"in new window.XMLHttpRequest),t},n.httpFallbackPing=function(e){(new window.Image).src=e};var i,o=e&&e.eventUrlTransformer;n.getCurrentUrl=function(){return o?o(window.location.href):window.location.href},n.isDoNotTrack=function(){var e;return 1===(e=window.navigator&&void 0!==window.navigator.doNotTrack?window.navigator.doNotTrack:window.navigator&&void 0!==window.navigator.msDoNotTrack?window.navigator.msDoNotTrack:window.doNotTrack)||!0===e||"1"===e||"
1yes"===e};try{window.localStorage&&(n.localStorage={get:function(e){return new Promise((function(t){t(window.localStorage.getItem(e))}))},set:function(e,t){return new Promise((function(n){window.localStorage.setItem(e,t),n()}))},clear:function(e){return new Promise((function(t){window.localStorage.removeItem(e),t()}))}})}catch(e){n.localStorage=null}if(e&&e.useReport&&"function"==typeof window.EventSourcePolyfill&&window.EventSourcePolyfill.supportedOptions&&window.EventSourcePolyfill.supportedOptions.method?(n.eventSourceAllowsReport=!0,i=window.EventSourcePolyfill):(n.eventSourceAllowsReport=!1,i=window.EventSource),window.EventSource){var a=3e5;n.eventSourceFactory=function(e,t){var n=Ds(Ds({},{heartbeatTimeout:a,silentTimeout:a,skipDefaultHeaders:!0}),t);return new i(e,n)},n.eventSourceIsActive=function(e){return e.readyState===window.EventSource.OPEN||e.readyState===window.EventSource.CONNECTING}}return n.userAgent="JSClient",n.version="3.1.3",n.diagnosticSdkData={name:"js-client-sdk",version:"3.1.3"},n.diagnosticPlatformData={name:"JS"},n.diagnosticUseCombinedEvent=!0,n}(n),i=Rs(e,t,n,r,Hs),o=i.client,a=i.options,s=i.emitter,u=new Promise((function(e){var t=s.on(Us,(function(){s.off(Us,t),e()}))}));o.waitUntilGoalsReady=function(){return u},a.fetchGoals?zs(i,(function(){return s.emit(Us)})):s.emit(Us),"complete"!==document.readyState?window.addEventListener("load",i.start):i.start();var c=function(){r.synchronousFlush=!0,o.flush().catch((function(){})),r.synchronousFlush=!1};return document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&c()})),window.addEventListener("pagehide",c),o}var Ws=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return console&&console.warn&&console.warn(Ps.deprecated("default export","named LDClient export")),Vs(e,t,n)},Gs=new xo.GraphQLClient("https://api.hightouch.com/api/v1/graphql",{method:"POST",credentials:"include",headers:{"x-hasura-role":"user"}}),qs=function(){var e=(0,go.Z)((function(){var e,t,n,r,o,a,s;return(0,yo.__generator)(this,(function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),[4,Gs.request("{\n  getCurrentUserV2 {\n    email\n    id\n    name\n    avatar_json\n    current_workspace_id\n    pylon_email_hash\n  }\n}")];case 1:return e=u.sent(),(t=null===e||void 0===e?void 0:e.getCurrentUserV2)?(n=t.current_workspace_id?Number(t.current_workspace_id):void 0,r=(0,i.Z)({kind:"multi",user:{key:"user-".concat(t.id.toString()),name:t.name,email:t.email,workspaceId:n}},n&&{workspace:{key:"workspace-".concat(n),id:n}}),[4,(o=Ws("61f349d48eda47179a415676",r)).waitUntilReady()]):[2,null];case 2:return u.sent(),a=o.variation("docs-show-private-pages",!1),t.private=a,[2,t];case 3:return s=u.sent(),bo.Tb(s),[3,4];case 4:return[2,null]}}))}));return function(){return e.apply(this,arguments)}}(),Zs=n(68527),$s=n(99534),Ys=n(96486),Ks=n(87462),Xs=n(63366);function Qs(e,t){if(null==e)return{};var n,r,i=(0,Xs.Z)(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Js(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tu(e,t,n){return t&&eu(e.prototype,t),n&&eu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var nu=n(97326),ru=n(89611);function iu(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,ru.Z)(e,t)}function ou(e){return ou="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ou(e)}function au(e,t){if(t&&("object"===ou(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,nu.Z)(e)}var su=n(61120),uu=n(4942),cu=n(69590),lu=n.n(cu);var du=function(e,t){if(e===t)return!0;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=Object.prototype.hasOwnProperty,o=0;o<n.length;o++)if(!i.call(t,n[o])||e[n[o]]!==t[n[o]])return!1;return!0},fu=Promise.resolve(),pu=function e(t){return Object.keys(t).forEach((function(n){var r,i=t[n];(function(e){return"object"===ou(e)&&null!==e&&!Array.isArray(e)})(i)&&((r=i)&&Object.keys(r).length>0?e(i):delete t[n])})),t};function hu(e,t){if(null===e||void 0===e)return{};for(var n={},r=Object.keys(e),i=0;i<r.length;i++){var o=r[i];t.indexOf(o)>=0||(n[o]=e[o])}return n}var mu=(0,u.createContext)({onInternalStateUpdate:function(){},createHrefForState:function(){return"#"},onSearchForFacetValues:function(){},onSearchStateChange:function(){},onSearchParameters:function(){},store:{},widgetsManager:{},mainTargetedIndex:""}),vu=mu.Consumer,gu=mu.Provider,yu=(0,u.createContext)(void 0),bu=yu.Consumer,xu=(yu.Provider,["contextValue"]);function _u(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 wu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?_u(Object(n),!0).forEach((function(t){(0,uu.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Su(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(_o){return!1}}();return function(){var n,r=(0,su.Z)(e);if(t){var i=(0,su.Z)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return au(this,n)}}var ku=function(e){return function(t){var n=function(e){if(!e.displayName)throw new Error("`createConnector` requires you to provide a `displayName` property.");var t="function"===typeof e.getSearchParameters||"function"===typeof e.getMetadata||"function"===typeof e.transitionState;return function(n){var r,i=function(r){iu(o,r);var i=Su(o);function o(t){var n;return Js(this,o),n=i.call(this,t),(0,uu.Z)((0,nu.Z)(n),"unsubscribe",void 0),(0,uu.Z)((0,nu.Z)(n),"unregisterWidget",void 0),(0,uu.Z)((0,nu.Z)(n),"isUnmounting",!1),(0,uu.Z)((0,nu.Z)(n),"state",{providedProps:n.getProvidedProps(n.props)}),(0,uu.Z)((0,nu.Z)(n),"refine",(function(){for(var t,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];n.props.contextValue.onInternalStateUpdate((t=e.refine).call.apply(t,[(0,nu.Z)(n),n.props,n.props.contextValue.store.getState().widgets].concat(i)))})),(0,uu.Z)((0,nu.Z)(n),"createURL",(function(){for(var t,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n.props.contextValue.createHrefForState((t=e.refine).call.apply(t,[(0,nu.Z)(n),n.props,n.props.contextValue.store.getState().widgets].concat(i)))})),(0,uu.Z)((0,nu.Z)(n),"searchForFacetValues",(function(){for(var t,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];n.props.contextValue.onSearchForFacetValues((t=e.searchForFacetValues).call.apply(t,[(0,nu.Z)(n),n.props,n.props.contextValue.store.getState().widgets].concat(i)))})),e.getSearchParameters&&n.props.contextValue.onSearchParameters(e.getSearchParameters.bind((0,nu.Z)(n)),{ais:n.props.contextValue,multiIndexContext:n.props.indexContextValue},n.props,e.getMetadata&&e.getMetadata.bind((0,nu.Z)(n)),e.displayName),n}return tu(o,[{key:"componentDidMount",value:function(){var e=this;this.unsubscribe=this.props.contextValue.store.subscribe((function(){e.isUnmounting||e.setState({providedProps:e.getProvidedProps(e.props)})})),t&&(this.unregisterWidget=this.props.contextValue.widgetsManager.registerWidget(this))}},{key:"shouldComponentUpdate",value:function(t,n){if("function"===typeof e.shouldComponentUpdate)return e.shouldComponentUpdate.call(this,this.props,t,this.state,n);var r=du(this.props,t);return null===this.state.providedProps||null===n.providedProps?this.state.providedProps!==n.providedProps||!r:!r||!du(this.state.providedProps,n.providedProps)}},{key:"componentDidUpdate",value:function(n){lu()(n,this.props)||(this.setState({providedProps:this.getProvidedProps(this.props)}),t&&(this.props.contextValue.widgetsManager.update(),"function"===typeof e.transitionState&&this.props.contextValue.onSearchStateChange(e.transitionState.call(this,this.props,this.props.contextValue.store.getState().widgets,this.props.contextValue.store.getState().widgets))))}},{key:"componentWillUnmount",value:function(){if(this.isUnmounting=!0,this.unsubscribe&&this.unsubscribe(),this.unregisterWidget&&(this.unregisterWidget(),"function"===typeof e.cleanUp)){var t=e.cleanUp.call(this,this.props,this.props.contextValue.store.getState().widgets);this.props.contextValue.store.setState(wu(wu({},this.props.contextValue.store.getState()),{},{widgets:t})),this.props.contextValue.onSearchStateChange(pu(t))}}},{key:"getProvidedProps",value:function(t){var n=this.props.contextValue.store.getState(),r=n.widgets,i=n.results,o=n.resultsFacetValues,a=n.searching,s=n.searchingForFacetValues,u=n.isSearchStalled,c=n.metadata,l={results:i,searching:a,searchingForFacetValues:s,isSearchStalled:u,error:n.error};return e.getProvidedProps.call(this,t,r,l,c,o)}},{key:"getSearchParameters",value:function(t){return"function"===typeof e.getSearchParameters?e.getSearchParameters.call(this,t,this.props,this.props.contextValue.store.getState().widgets):null}},{key:"getMetadata",value:function(t){return"function"===typeof e.getMetadata?e.getMetadata.call(this,this.props,t):{}}},{key:"transitionState",value:function(t,n){return"function"===typeof e.transitionState?e.transitionState.call(this,this.props,t,n):n}},{key:"render",value:function(){var t=this.props,r=(t.contextValue,Qs(t,xu)),i=this.state.providedProps;if(null===i)return null;var o="function"===typeof e.refine?{refine:this.refine,createURL:this.createURL}:{},a="function"===typeof e.searchForFacetValues?{searchForItems:this.searchForFacetValues}:{};return u.createElement(n,(0,Ks.Z)({},r,i,o,a))}}]),o}(u.Component);return(0,uu.Z)(i,"displayName","".concat(e.displayName,"(").concat((r=n).displayName||r.name||"UnknownComponent",")")),(0,uu.Z)(i,"propT
1ypes",e.propTypes),(0,uu.Z)(i,"defaultProps",e.defaultProps),(0,uu.Z)(i,"_connectorDesc",e),i}}(e)(t);return function(e){return u.createElement(vu,null,(function(t){return u.createElement(bu,null,(function(r){return u.createElement(n,(0,Ks.Z)({contextValue:t,indexContextValue:r},e))}))}))}}};function Eu(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 Cu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Eu(Object(n),!0).forEach((function(t){(0,uu.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ju(e){return Tu(e)?e.multiIndexContext.targetedIndex:e.ais.mainTargetedIndex}function Tu(e){return e&&e.multiIndexContext}function Ru(e,t,n,r,i){if(Tu(n)){var o=ju(n);return i?function(e,t,n,r,i){var o,a=r?{page:1}:void 0,s=e.indices&&e.indices[n]?Cu(Cu({},e.indices),{},(0,uu.Z)({},n,Cu(Cu({},e.indices[n]),{},(o={},(0,uu.Z)(o,i,Cu(Cu({},e.indices[n][i]),t)),(0,uu.Z)(o,"page",1),o)))):Cu(Cu({},e.indices),{},(0,uu.Z)({},n,Cu((0,uu.Z)({},i,t),a)));return Cu(Cu({},e),{},{indices:s})}(e,t,o,r,i):function(e,t,n,r){var i=r?{page:1}:void 0,o=e.indices&&e.indices[n]?Cu(Cu({},e.indices),{},(0,uu.Z)({},n,Cu(Cu(Cu({},e.indices[n]),t),i))):Cu(Cu({},e.indices),{},(0,uu.Z)({},n,Cu(Cu({},t),i)));return Cu(Cu({},e),{},{indices:o})}(e,t,o,r)}return e.indices&&r&&Object.keys(e.indices).forEach((function(t){e=Ru(e,{page:1},{multiIndexContext:{targetedIndex:t}},!0,i)})),i?function(e,t,n,r){var i=n?{page:1}:void 0;return Cu(Cu({},e),{},(0,uu.Z)({},r,Cu(Cu({},e[r]),t)),i)}(e,t,r,i):function(e,t,n){var r=n?{page:1}:void 0;return Cu(Cu(Cu({},e),t),r)}(e,t,r)}function Ou(e){var t=e.match(/^([^.]*)\.(.*)/);return{namespace:t&&t[1],attributeName:t&&t[2]}}function Pu(e,t,n,r,i){var o=ju(n),a=Ou(r),s=a.namespace,u=a.attributeName,c={multiIndex:Tu(n),indexId:o,namespace:s,attributeName:u,id:r,searchState:t},l=function(e){var t=e.multiIndex,n=e.indexId,r=e.namespace,i=e.attributeName,o=e.id,a=e.searchState;return t&&r?a.indices&&a.indices[n]&&a.indices[n][r]&&Object.hasOwnProperty.call(a.indices[n][r],i):t?a.indices&&a.indices[n]&&Object.hasOwnProperty.call(a.indices[n],o):r?a[r]&&Object.hasOwnProperty.call(a[r],i):Object.hasOwnProperty.call(a,o)}(c);return l?function(e){var t=e.multiIndex,n=e.indexId,r=e.namespace,i=e.attributeName,o=e.id,a=e.searchState;return t&&r?a.indices[n][r][i]:t?a.indices[n][o]:r?a[r][i]:a[o]}(c):e.defaultRefinement?e.defaultRefinement:i}function Au(e,t,n){var r=ju(t),i=Ou(n),o=i.namespace,a=i.attributeName;return Tu(t)&&Boolean(e.indices)?function(e){var t=e.searchState,n=e.indexId,r=e.id,i=e.namespace,o=e.attribute,a=t.indices[n];if(i&&a)return Cu(Cu({},t),{},{indices:Cu(Cu({},t.indices),{},(0,uu.Z)({},n,Cu(Cu({},a),{},(0,uu.Z)({},i,hu(a[i],[o])))))});if(a)return Cu(Cu({},t),{},{indices:Cu(Cu({},t.indices),{},(0,uu.Z)({},n,hu(a,[r])))});return t}({attribute:a,searchState:e,indexId:r,id:n,namespace:o}):function(e){var t=e.searchState,n=e.id,r=e.namespace,i=e.attribute;if(r)return Cu(Cu({},t),{},(0,uu.Z)({},r,hu(t[r],[i])));return hu(t,[n])}({attribute:a,searchState:e,id:n,namespace:o})}var Du=ku({displayName:"AlgoliaStateResults",getProvidedProps:function(e,t,n){var r=function(e,t){if(e.results){if(e.results.hits)return e.results;var n=ju(t);if(e.results[n])return e.results[n]}return null}(n,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return{searchState:t,searchResults:r,allSearchResults:n.results,searching:n.searching,isSearchStalled:n.isSearchStalled,error:n.error,searchingForFacetValues:n.searchingForFacetValues,props:e}}});function Iu(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function Nu(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function Mu(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return Nu(n.overflowY,t)||Nu(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function Fu(e,t,n,r,i,o,a,s){return o<e&&a>t||o>e&&a<t?0:o<=e&&s<=n||a>=t&&s>=n?o-e-r:a>t&&s<n||o<e&&s>n?a-t+i:0}function Bu(e,t){var n=window,r=t.scrollMode,i=t.block,o=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,u="function"==typeof a?a:function(e){return e!==a};if(!Iu(e))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,l=[],d=e;Iu(d)&&u(d);){if((d=d.parentElement)===c){l.push(d);break}null!=d&&d===document.body&&Mu(d)&&!Mu(document.documentElement)||null!=d&&Mu(d,s)&&l.push(d)}
1for(var f=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,m=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),g=v.height,y=v.width,b=v.top,x=v.right,_=v.bottom,w=v.left,S="start"===i||"nearest"===i?b:"end"===i?_:b+g/2,k="center"===o?w+y/2:"end"===o?x:w,E=[],C=0;C<l.length;C++){var j=l[C],T=j.getBoundingClientRect(),R=T.height,O=T.width,P=T.top,A=T.right,D=T.bottom,I=T.left;if("if-needed"===r&&b>=0&&w>=0&&_<=p&&x<=f&&b>=P&&_<=D&&w>=I&&x<=A)return E;var N=getComputedStyle(j),M=parseInt(N.borderLeftWidth,10),F=parseInt(N.borderTopWidth,10),B=parseInt(N.borderRightWidth,10),L=parseInt(N.borderBottomWidth,10),z=0,U=0,H="offsetWidth"in j?j.offsetWidth-j.clientWidth-M-B:0,V="offsetHeight"in j?j.offsetHeight-j.clientHeight-F-L:0;if(c===j)z="start"===i?S:"end"===i?S-p:"nearest"===i?Fu(m,m+p,p,F,L,m+S,m+S+g,g):S-p/2,U="start"===o?k:"center"===o?k-f/2:"end"===o?k-f:Fu(h,h+f,f,M,B,h+k,h+k+y,y),z=Math.max(0,z+m),U=Math.max(0,U+h);else{z="start"===i?S-P-F:"end"===i?S-D+L+V:"nearest"===i?Fu(P,D,R,F,L+V,S,S+g,g):S-(P+R/2)+V/2,U="start"===o?k-I-M:"center"===o?k-(I+O/2)+H/2:"end"===o?k-A+B+H:Fu(I,A,O,M,B+H,k,k+y,y);var W=j.scrollLeft,G=j.scrollTop;S+=G-(z=Math.max(0,Math.min(G+z,j.scrollHeight-R+V))),k+=W-(U=Math.max(0,Math.min(W+U,j.scrollWidth-O+H)))}E.push({el:j,top:z,left:U})}return E}function Lu(e){return e===Object(e)&&0!==Object.keys(e).length}var zu=function(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(Lu(t)&&"function"===typeof t.behavior)return t.behavior(n?Bu(e,t):[]);if(n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:Lu(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,i=e.top,o=e.left;r.scroll&&n?r.scroll({top:i,left:o,behavior:t}):(r.scrollTop=i,r.scrollLeft=o)}))}(Bu(e,r),r.behavior)}},Uu=function(e){var t=e.items,n=e.onRender,r=(0,u.useRef)(null),i=(0,u.useRef)(null),o=(0,u.useRef)(t);o.current=t;var s=(0,ri.useKBar)((function(e){return{search:e.searchQuery,currentRootActionId:e.currentRootActionId,activeIndex:e.activeIndex}})),c=s.query,l=s.search,d=s.activeIndex,f=s.options;(0,u.useEffect)((function(){var e=function(e){if("ArrowUp"===e.key||e.ctrlKey&&"p"===e.key)e.preventDefault(),c.setActiveIndex((function(e){var t=e>0?e-1:e;if("string"===typeof o.current[t]){if(0===t)return e;t-=1}return t}));else if("ArrowDown"===e.key||e.ctrlKey&&"n"===e.key)e.preventDefault(),c.setActiveIndex((function(e){var t=e<o.current.length-1?e+1:e;if("string"===typeof o.current[t]){if(t===o.current.length-1)return e;t+=1}return t}));else if("Enter"===e.key){var t;e.preventDefault(),null===(t=r.current)||void 0===t||t.click()}};return window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}}),[c]),(0,u.useEffect)((function(){c.setActiveIndex(0)}),[l,t,c]),(0,u.useEffect)((function(){r.current&&zu(r.current,{scrollMode:"if-needed",behavior:"smooth",block:"nearest"})}),[r.current]);var p=(0,u.useCallback)((function(e){var t,n;c.toggle(),c.setSearch(""),null===(t=f.callbacks)||void 0===t||null===(n=t.onSelectAction)||void 0===n||n.call(t,e)}),[c,f]);return(0,a.jsx)(Zs.xu,{overflow:"auto",p:3,maxHeight:"60vh",ref:i,children:t.map((function(e,t){var i=t===d;return(0,a.jsx)(Zs.xu,{role:"option","aria-selected":i,children:(0,u.cloneElement)(n({item:e,active:i,onMouseMove:function(){c.setActiveIndex(t)},onClick:function(){return p(e)}}),{ref:i?r:null})},e.objectID)}))})},Hu={highlightPreTag:"<ais-highlight-0000000000>",highlightPostTag:"</ais-highlight-0000000000>"};function Vu(e){var t=e.preTag,n=e.postTag,r=e.highlightedValue,i=(void 0===r?"":r).split(t),o=i.shift(),a=""===o?[]:[{value:o,isHighlighted:!1}];if(n===t){var s=!0;i.forEach((function(e){a.push({value:e,isHighlighted:s}),s=!s}))}else i.forEach((function(e){var t=e.split(n);a.push({value:t[0],isHighlighted:!0}),""!==t[1]&&a.push({value:t[1],isHighlighted:!1})}));return a}function Wu(e){var t=e.preTag,n=void 0===t?"<em>":t,r=e.postTag,i=void 0===r?"</em>":r,o=e.highlightProperty,a=e.attribute,s=e.hit;if(!s)throw new Error("`hit`, the matching record, must be provided");var u,c,l=(u=s[o],c=a,(Array.isArray(c)?c:c.replace(/\[(\d+)]/g,".$1").split(".")).reduce((function(e,t){return e?e[t]:void 0}),u)||{});return Array.isArray(l)?l.map((function(e){return Vu({preTag:n,postTag:i,highlightedValue:e.value})})):Vu({preTag:n,postTag:i,highlightedValue:l.value})}var Gu=function(e){var t=e.attribute,n=e.hit,r=e.highlightProperty,i=e.preTag,o=void 0===i?Hu.highlightPreTag:i,a=e.postTag;return Wu({attribute:t,highlightProperty:r,hit:n,preTag:o,postTag:void 0===a?Hu.highlightPostTag:a})}
1,qu=ku({displayName:"AlgoliaHighlighter",propTypes:{},getProvidedProps:function(){return{highlight:Gu}}})((function(e){var t=(0,e.highlight)({highlightProperty:"_highlightResult",attribute:e.attribute,hit:e.hit});return(0,a.jsx)(a.Fragment,{children:t.map((function(e,t){return(0,a.jsx)(a.Fragment,{children:e.isHighlighted?(0,a.jsx)(Zs.xv,{as:"mark",bg:"primary.background",color:"teal.base",children:e.value},t):(0,a.jsx)(Zs.xv,{as:"span",children:e.value},t)})}))})})),Zu=n(90907),$u=Du((function(e){var t,n=e.searchResults,r=Ji("user",qs).data;if((null===n||void 0===n||null===(t=n.query)||void 0===t?void 0:t.length)<1||!(null===n||void 0===n?void 0:n.hits))return null;var o=(null===r||void 0===r?void 0:r.private)?n.hits:n.hits.filter((function(e){return!e.isPrivate}));if(0===o.length)return(0,a.jsx)(Zs.xv,{textAlign:"center",py:8,color:"text.secondary",fontSize:"md",fontWeight:"medium",children:"No results match your search"});var s=(0,Ys.sortBy)(o,["rank","heirarchy"]);return(0,a.jsx)(Uu,{items:s,onRender:function(e){var t=e.item,n=(0,$s.Z)(e,["item"]);return(0,a.jsx)(Yu,(0,i.Z)({hit:t},n))}})})),Yu=(0,u.forwardRef)((function(e,t){var n=e.hit,r=e.active,i=e.onClick,o=e.onMouseMove,s=n.heirarchy,u=n.path,c=n.title,l=n.type;return(0,a.jsx)(Zu.r,{ref:t,href:u,boxSize:"100%",borderRadius:"none",display:"flex",alignItems:"start",color:"text.primary",bg:r?"base.background":"white",lineHeight:"1.625rem",fontWeight:"semibold",fontSize:"md",p:4,_hover:{color:"inherit"},onClick:i,onMouseMove:o,children:(0,a.jsxs)(Zs.xu,{display:"inline-block",lineHeight:"1.625rem",children:[s.map((function(e,t){return(0,a.jsxs)(Zs.xu,{as:"span",display:"inline-block",children:[(0,a.jsx)(Zs.xv,{as:"span",children:e}),(0,a.jsxs)(Zs.xv,{as:"span",fontSize:"lg",children:["\xa0","\u203a","\xa0"]})]},"".concat(e,"-").concat(t))})),"description"!==l?(0,a.jsx)(qu,{hit:n,attribute:"value"}):c]})})}));Yu.displayName="Hit";var Ku=n(4612),Xu=n(15193),Qu=n(45697),Ju=n.n(Qu);function ec(e,t,n){var r=Pu(e,t,n,"query","");return r||""}function tc(e,t,n,r){return Ru(t,(0,uu.Z)({},"query",n),r,!0)}var nc=ku({displayName:"AlgoliaSearchBox",propTypes:{defaultRefinement:Ju().string},getProvidedProps:function(e,t,n){return{currentRefinement:ec(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),isSearchStalled:n.isSearchStalled}},refine:function(e,t,n){return tc(0,t,n,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){return function(e,t,n){return Au(t,n,"query")}(0,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue})}
1,getSearchParameters:function(e,t,n){return e.setQuery(ec(t,n,{ais:t.contextValue,multiIndexContext:t.indexContextValue}))},getMetadata:function(e,t){var n="query",r=ec(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return{id:n,index:ju({ais:e.contextValue,multiIndexContext:e.indexContextValue}),items:null===r?[]:[{label:"".concat(n,": ").concat(r),value:function(t){return tc(0,t,"",{ais:e.contextValue,multiIndexContext:e.indexContextValue})},currentRefinement:r}]}}}),rc=n(72923),ic=nc((function(e){var t=e.refine,n=e.currentRefinement;return(0,a.jsxs)(Zs.kC,{width:"100%",px:4,height:"60px",align:"center",borderBottom:"1px",borderColor:"base.divider",children:[(0,a.jsx)(rc.W1,{fill:"text.secondary",boxSize:6}),(0,a.jsx)(Ku.II,{autoFocus:!0,value:n,spellCheck:!1,"aria-label":"Search docs",border:"none",outline:"none",fontWeight:"normal",fontSize:"xl",flex:1,placeholder:"Search docs...",sx:{caretColor:"var(--theme-colors-text-secondary)","::placeholder":{color:"var(--theme-colors-text-tertiary)"}},onChange:function(e){t(e.currentTarget.value)}}),(0,a.jsx)(Zs.xu,{as:Xu.zx,variant:"subtle","aria-label":"Clear search",visibility:n?"visible":"hidden",pointerEvents:n?"all":"none",onClick:function(){t("")},children:(0,a.jsx)(rc.Tw,{cursor:"pointer",ml:"auto",boxSize:5,color:"text.tertiary"})})]})})),oc=function(){return(0,a.jsx)(ri.KBarPortal,{children:(0,a.jsx)(Zs.M5,{position:"fixed",width:"100%",height:"100%",top:0,left:0,bg:"blackAlpha.500",backdropFilter:"blur(10px)",zIndex:10,children:(0,a.jsx)(ri.KBarPositioner,{children:(0,a.jsx)(ri.KBarAnimator,{style:{maxWidth:"600px",width:"100%"},children:(0,a.jsxs)(Zs.kC,{direction:"column",bg:"white",borderRadius:"base",overflow:"hidden",boxShadow:"lg",children:[(0,a.jsx)(ic,{}),(0,a.jsx)($u,{})]})})})})})},ac=n(70290),sc=n.n(ac),uc=n(8131),cc=n.n(uc);function lc(e){var t=[],n=!1;function r(){n||(n=!0,function(e){fu.then(e)}((function(){n=!1,e()})))}return{registerWidget:function(e){return t.push(e),r(),function(){t.splice(t.indexOf(e),1),r()}},update:r,getWidgets:function(){return t}}}var dc=["resultsFacetValues"],fc=["resultsFacetValues"],pc=["resultsFacetValues"];function hc(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 mc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hc(Object(n),!0).forEach((function(t){(0,uu.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vc(e){"function"===typeof e.addAlgoliaAgent&&(e.addAlgoliaAgent("react (".concat(u.version,")")),e.addAlgoliaAgent("react-instantsearch (".concat("6.23.3",")")))}var gc=function(e){return Tu({ais:e.props.contextValue,multiIndexContext:e.props.indexContextValue})},yc=function(e,t){return e.props.indexContextValue.targetedIndex===t},bc=function(e){return Boolean(e.props.indexId)},xc=function(e,t){return e.props.indexId===t},_c=function(e,t){var n=bc(e),r=bc(t);return n&&!r?-1:!n&&r?1:0};function wc(e){return Object.keys(e).map((function(t){return function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0;return e.replace(/%s/g,(function(){return encodeURIComponent(n[i++])}))}("%s=%s",t,(n=e[t],"[object Object]"===Object.prototype.toString.call(n)||"[object Array]"===Object.prototype.toString.call(n)?JSON.stringify(e[t]):e[t]));var n})).join("&")}function Sc(e){var t=e.indexName,n=e.initialState,r=void 0===n?{}:n,i=e.searchClient,o=e.resultsState,a=e.stalledSearchDelay,s=cc()(i,t,mc({},Hu));vc(i),s.on("search",(function(){l||(l=setTimeout((function(){var e=p.getState(),t=(e.resultsFacetValues,Qs(e,pc));p.setState(mc(mc({},t),{},{isSearchStalled:!0}))}),a))})).on("result",g({indexId:t})).on("error",y);var u,c=!1,l=null,d=s.state,f=lc((function(){var e=h(p.getState().widgets);p.setState(mc(mc({},p.getState()),{},{metadata:e,searching:!0})),v()}));!function(e,t){if(!t)return;if((!e.transporter||e._cacheHydrated)&&(!e._useCache||"function"!==typeof e.addAlgoliaAgent))return;if(e.transporter&&!e._cacheHydrated){e._cacheHydrated=!0;var n=e.search;e.search=function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];var a=t.map((function(e){return mc(mc({},e),{},{params:wc(e.params)})}));return e.transporter.responsesCache.get({method:"search",args:[a].concat(i)},(function(){return n.apply(void 0,[t].concat(i))}))}}if(Array.isArray(t.results))return void function(e,t){if(e.transporter)return void e.transporter.responsesCache.set({method:"search",args:[t.reduce((function(e,t){return e.concat(t.rawResults.map((function(e){return{indexName:e.index,params:e.params}})))}),[])]},{results:t.reduce((function(e,t){return e.concat(t.rawResults)}),[])});var n="/1/indexes/*/queries_body_".concat(JSON.stringify({requests:t.reduce((function(e,t){return e.concat(t.rawResults.map((function(e){return{indexName:e.index,params:e.params}})))}),[])}));e.cache=mc(mc({},e.cache),{},(0,uu.Z)({},n,JSON.stringify({results:t.reduce((function(e,t){return e.concat(t.rawResults)}),[])})))}(e,t.results);!function(e,t){if(e.transporter)return void e.transporter.responsesCache.set({method:"search",args:[t.rawResults.map((function(e){return{indexName:e.index,params:e.params}}))]},{results:t.rawResults});var n="/1/indexes/*/queries_body_".concat(JSON.stringify({requests:t.rawResults.map((function(e){return{indexName:e.index,params:e.params}}))}));e.cache=mc(mc({},e.cache),{},(0,uu.Z)({},n,JSON.stringify({results:t.rawResults})))}(e,t)}(i,o);var p=function(e){var t=e,n=[];return{getState:function(){return t}
1,setState:function(e){t=e,n.forEach((function(e){return e()}))},subscribe:function(e){return n.push(e),function(){n.splice(n.indexOf(e),1)}}}}({widgets:r,metadata:kc(o),results:function(e){if(!e)return null;if(Array.isArray(e.results))return e.results.reduce((function(e,t){return mc(mc({},e),{},(0,uu.Z)({},t._internalIndexId,new(cc().SearchResults)(new(cc().SearchParameters)(t.state),t.rawResults)))}),{});return new(cc().SearchResults)(new(cc().SearchParameters)(e.state),e.rawResults)}(o),error:null,searching:!1,isSearchStalled:!0,searchingForFacetValues:!1});function h(e){return f.getWidgets().filter((function(e){return Boolean(e.getMetadata)})).map((function(t){return t.getMetadata(e)}))}function m(){var e=f.getWidgets().filter((function(e){return Boolean(e.getSearchParameters)})).filter((function(e){return!gc(e)&&!bc(e)})).reduce((function(e,t){return t.getSearchParameters(e)}),d),n=f.getWidgets().filter((function(e){return Boolean(e.getSearchParameters)})).filter((function(e){var n=gc(e)&&yc(e,t),r=bc(e)&&xc(e,t);return n||r})).sort(_c).reduce((function(e,t){return t.getSearchParameters(e)}),e),r=f.getWidgets().filter((function(e){return Boolean(e.getSearchParameters)})).filter((function(e){var n=gc(e)&&!yc(e,t),r=bc(e)&&!xc(e,t);return n||r})).sort(_c).reduce((function(e,t){var n=gc(t)?t.props.indexContextValue.targetedIndex:t.props.indexId,r=e[n]||[];return mc(mc({},e),{},(0,uu.Z)({},n,r.concat(t)))}),{});return{mainParameters:n,derivedParameters:Object.keys(r).map((function(t){return{parameters:r[t].reduce((function(e,t){return t.getSearchParameters(e)}),e),indexId:t}}))}}function v(){if(!c){var e=m(s.state),t=e.mainParameters,n=e.derivedParameters;u=n.length+1,s.derivedHelpers.slice().forEach((function(e){e.detach()})),n.forEach((function(e){var t=e.indexId,n=e.parameters;s.derive((function(){return n})).on("result",g({indexId:t})).on("error",y)})),s.setState(t),s.search()}}function g(e){var t=e.indexId;return function(e){u--;var n=p.getState(),r=!s.derivedHelpers.length,i=n.results?n.results:{};i=!r&&i.getFacetByName?{}:i,i=r?e.results:mc(mc({},i),{},(0,uu.Z)({},t,e.results));var o=p.getState(),a=o.isSearchStalled;s.hasPendingRequests()||(clearTimeout(l),l=null,a=!1);o.resultsFacetValues;var c=Qs(o,dc);p.setState(mc(mc({},c),{},{results:i,isSearchStalled:a,searching:u>0,error:null}))}}function y(e){var t=e.error,n=p.getState(),r=n.isSearchStalled;s.hasPendingRequests()||(clearTimeout(l),r=!1);n.resultsFacetValues;var i=Qs(n,fc);p.setState(mc(mc({},i),{},{isSearchStalled:r,error:t,searching:!1}))}return{store:p,widgetsManager:f,getWidgetsIds:function(){return p.getState().metadata.reduce((function(e,t){return"undefined"!==typeof t.id?e.concat(t.id):e}),[])},getSearchParameters:m,onSearchForFacetValues:function(e){var t=e.facetName,n=e.query,r=e.maxFacetHits,i=void 0===r?10:r,o=Math.max(1,Math.min(i,100));p.setState(mc(mc({},p.getState()),{},{searchingForFacetValues:!0})),s.searchForFacetValues(t,n,o).then((function(e){var r;p.setState(mc(mc({},p.getState()),{},{error:null,searchingForFacetValues:!1,resultsFacetValues:mc(mc({},p.getState().resultsFacetValues),{},(r={},(0,uu.Z)(r,t,e.facetHits),(0,uu.Z)(r,"query",n),r))}))}),(function(e){p.setState(mc(mc({},p.getState()),{},{searchingForFacetValues:!1,error:e}))})).catch((function(e){setTimeout((function(){throw e}))}))},onExternalStateUpdate:function(e){var t=h(e);p.setState(mc(mc({},p.getState()),{},{widgets:e,metadata:t,searching:!0})),v()},transitionState:function(e){var t=p.getState().widgets;return f.getWidgets().filter((function(e){return Boolean(e.transitionState)})).reduce((function(e,n){return n.transitionState(t,e)}),e)},updateClient:function(e){vc(e),s.setClient(e),v()},updateIndex:function(e){d=d.setIndex(e)},clearCache:function(){s.clearCache(),v()},skipSearch:function(){c=!0}}}function kc(e){return e?e.metadata.map((function(e){return mc(mc({value:function(){return{}}},e),{},{items:e.items&&e.items.map((function(e){return mc(mc({value:function(){return{}}},e),{},{items:e.items&&e.items.map((function(e){return mc({value:function(){return{}}},e)}))})}))})})):[]}function Ec(e,t){var n=document.createElement("meta"),r=document.querySelector("head");n.name="algolia:metadata";var i=function(e,t){var n=["contextValue","indexContextValue"],r=e.map((function(e){var t=e.props,r=e.constructor,i=r._connectorDesc||{},o=i.defaultProps,a=void 0===o?{}:o,s=i.displayName;
1return{displayName:void 0===s?r.displayName:s,params:Object.keys(t).filter((function(e){return!n.includes(e)&&a[e]!==t[e]&&void 0!==t[e]}))}})),i=t;return{ua:i.transporter&&i.transporter.userAgent?i.transporter.userAgent.value:i._ua,widgets:r}}(e,t);n.content=JSON.stringify(i),r.appendChild(n)}function Cc(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 jc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cc(Object(n),!0).forEach((function(t){(0,uu.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tc(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(_o){return!1}}();return function(){var n,r=(0,su.Z)(e);if(t){var i=(0,su.Z)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return au(this,n)}}function Rc(e){return Boolean(e.searchState)}var Oc=function(e){iu(n,e);var t=Tc(n);function n(e){var r;Js(this,n),r=t.call(this,e),(0,uu.Z)((0,nu.Z)(r),"isUnmounting",!1);var i=Sc({indexName:r.props.indexName,searchClient:r.props.searchClient,initialState:r.props.searchState||{},resultsState:r.props.resultsState,stalledSearchDelay:r.props.stalledSearchDelay}),o={store:i.store,widgetsManager:i.widgetsManager,mainTargetedIndex:r.props.indexName,onInternalStateUpdate:r.onWidgetsInternalStateUpdate.bind((0,nu.Z)(r)),createHrefForState:r.createHrefForState.bind((0,nu.Z)(r)),onSearchForFacetValues:r.onSearchForFacetValues.bind((0,nu.Z)(r)),onSearchStateChange:r.onSearchStateChange.bind((0,nu.Z)(r)),onSearchParameters:r.onSearchParameters.bind((0,nu.Z)(r))};return r.state={isControlled:Rc(r.props),instantSearchManager:i,contextValue:o},r}return tu(n,[{key:"componentDidUpdate",value:function(e){var t=Rc(e);if(t&&!this.state.isControlled)throw new Error("You can't switch <InstantSearch> from being controlled to uncontrolled");if(!t&&this.state.isControlled)throw new Error("You can't switch <InstantSearch> from being uncontrolled to controlled");this.props.refresh!==e.refresh&&this.props.refresh&&this.state.instantSearchManager.clearCache(),e.indexName!==this.props.indexName&&this.state.instantSearchManager.updateIndex(this.props.indexName),e.searchClient!==this.props.searchClient&&this.state.instantSearchManager.updateClient(this.props.searchClient)}},{key:"componentDidMount",value:function(){"object"===("undefined"===typeof window?"undefined":ou(window))&&"object"===ou(window.navigator)&&"string"===typeof window.navigator.userAgent&&window.navigator.userAgent.includes("Algolia Crawler")&&"object"===ou(window.document)&&Ec(this.state.instantSearchManager.widgetsManager.getWidgets(),this.props.searchClient)}},{key:"componentWillUnmount",value:function(){this.isUnmounting=!0,this.state.instantSearchManager.skipSearch()}},{key:"createHrefForState",value:function(e){return e=this.state.instantSearchManager.transitionState(e),this.state.isControlled&&this.props.createURL?this.props.createURL(e,this.getKnownKeys()):"#"}},{key:"onWidgetsInternalStateUpdate",value:function(e){e=this.state.instantSearchManager.transitionState(e),this.onSearchStateChange(e),this.state.isControlled||this.state.instantSearchManager.onExternalStateUpdate(e)}},{key:"onSearchStateChange",value:function(e){this.props.onSearchStateChange&&!this.isUnmounting&&this.props.onSearchStateChange(e)}},{key:"onSearchParameters",value:function(e,t,n,r,i){if(this.props.onSearchParameters){var o=this.props.searchState?this.props.searchState:{};this.props.onSearchParameters(e,t,n,o)}if(this.props.widgetsCollector){var a=this.props.searchState?this.props.searchState:{};this.props.widgetsCollector({getSearchParameters:e,getMetadata:r,context:t,props:n,searchState:a,displayName:i})}}},{key:"onSearchForFacetValues",value:function(e){this.state.instantSearchManager.onSearchForFacetValues(e)}},{key:"getKnownKeys",value:function(){return this.state.instantSearchManager.getWidgetsIds()}},{key:"render",value:function(){return 0===u.Children.count(this.props.children)?null:u.createElement(gu,{value:this.state.contextValue},this.props.children)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=Rc(e),r=t.instantSearchManager.store.getState().widgets,i=e.searchState;return n&&!lu()(r,i)&&t.instantSearchManager.onExternalStateUpdate(e.searchState),{isControlled:n,contextValue:jc(jc({},t.contextValue),{},{mainTargetedIndex:e.indexName})}}}]),n}(u.Component);(0,uu.Z)(Oc,"defaultProps",{stalledSearchDelay:200,refresh:!1}),(0,uu.Z)(Oc,"propTypes",{indexName:Ju().string.isRequired,searchClient:Ju().shape({search:Ju().func.isRequired,searchForFacetValues:Ju().func,addAlgoliaAgent:Ju().func,clearCache:Ju().func}).isRequired,createURL:Ju().func,refresh:Ju().bool,searchState:Ju().object,onSearchStateChange:Ju().func,onSearchParameters:Ju().func,widgetsCollector:Ju().func,resultsState:Ju().oneOfType([Ju().object,Ju().array]),children:Ju().node,stalledSearchDelay:Ju().number});var Pc=Oc,Ac=["children","contextValue","indexContextValue"],Dc=["children","contextValue","indexContextValue"];function Ic(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 Nc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?Ic(Object(n),!0).forEach((function(t){(0,uu.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ic(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Mc=ku({displayName:"AlgoliaConfigure",getProvidedProps:function(){return{}},getSearchParameters:function(e,t){t.children,t.contextValue,t.indexContextValue;var n=Qs(t,Ac);return e.setQueryParameters(n)},transitionState:function(e,t,n){var r="configure",i=(e.children,e.contextValue,e.indexContextValue,Qs(e,Dc)),o=Object.keys(e),a=this._props?Object.keys(this._props).filter((function(e){return-1===o.indexOf(e)})):[];return this._props=e,Ru(n,(0,uu.Z)({},r,Nc(Nc({},hu(n[r],a)),i)),{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){var n="configure",r=ju({ais:e.contextValue,multiIndexContext:e.indexContextValue}),i=Tu({ais:e.contextValue,multiIndexContext:e.indexContextValue})&&t.indices?t.indices[r]:t,o=(i&&i[n]?Object.keys(i[n]):[]).reduce((function(t,r){return e[r]||(t[r]=i[n][r]),t}),{});return Ru(t,(0,uu.Z)({},n,o),{ais:e.contextValue,multiIndexContext:e.indexContextValue})}})((function(){return null})),Fc=sc()("6J12913CLC","70d9d153e221855e6867a373d94f86a1"),Bc=function(e){var t=e.children;return(0,a.jsxs)(Pc,{searchClient:Fc,indexName:"docs_production",children:[(0,a.jsx)(Mc,{distinct:!0,hitsPerPage:25,page:0,exactOnSingleWordQuery:"word"}),t]})},Lc=function(){return(0,a.jsx)(s.xB,{styles:'\n      @font-face {\n        font-family: "Inter";\n        font-style: normal;\n        font-weight: 400;\n        font-display: swap;\n        src: url(/docs/fonts/Inter-Regular.woff2) format("woff2");\n      }\n      @font-face {\n        font-family: "Inter";\n        font-style: italic;\n        font-weight: 400;\n        font-display: swap;\n        src: url(/docs/fonts/Inter-Italic.woff2) format("woff2");\n      }\n      @font-face {\n        font-family: "Inter";\n        font-style: normal;\n        font-weight: 500;\n        font-display: swap;\n        src: url(/docs/fonts/Inter-Medium.woff2) format("woff2");\n      }\n      @font-face {\n        font-family: "Inter";\n        font-style: italic;\n        font-weight: 500;\n        font-display: swap;\n        src: url(/docs/fonts/Inter-MediumItalic.woff2) format("woff2");\n      }\n      @font-face {\n        font-family: "Inter";\n        font-style: normal;\n        font-weight: 600;\n        font-display: swap;\n        src: url(/docs/fonts/Inter-SemiBold.woff2) format("woff2");\n      }\n      @font-face {\n        font-family: "Inter";\n        font-style: italic;\n        font-weight: 600;\n        font-display: swap;\n        src: url(/docs/fonts/Inter-SemiBoldItalic.woff2) format("woff2");\n      }\n      @font-face {\n        font-family: "Inter";\n        font-style: normal;\n        font-weight: 700;\n        font-display: swap;\n        src: url(/docs/fonts/Inter-Bold.woff2) format("woff2");\n      }\n      @font-face {\n        font-family: "Inter";\n        font-style: italic;\n        font-weight: 700;\n        font-display: swap;\n        src: url(/docs/fonts/Inter-BoldItalic.woff2) format("woff2");\n      }\n      @font-face {\n        font-family: "Nuckle";\n        font-style: normal;\n        font-weight: 400;\n        font-display: swap;\n        src: url(/docs/fonts/Nuckle-Regular.woff2) format("woff2");\n      }\n      @font-face {\n        font-family: "Nuckle";\n        font-style: normal;\n        font-weight: 600;\n        font-display: swap;\n        src: url(/docs/fonts/Nuckle-SemiBold.woff2) format("woff2");\n      }\n      @font-face {\n        font-family: "Nuckle";\n        font-style: normal;\n        font-weight: 700;\n        font-display: swap;\n        src: url(/docs/fonts/Nuckle-Bold.woff2) format("woff2");\n      }\n      @font-face {\n        font-family: "DM Mono";\n        font-style: normal;\n        font-weight: 400;\n        font-display: swap;\n        src: url(/docs/fonts/DMMono-Regular.woff2) format("woff2");\n      }\n      @font-face {\n        font-family: "DM Mono";\n        font-style: italic;\n        font-weight: 400;\n        font-display: swap;\n        src: url(/docs/fonts/DMMono-Italic.woff2) format("woff2");\n      }\n      @font-face {\n        font-family: "DM Mono";\n        font-style: normal;\n        font-weight: 500;\n        font-display: swap;\n        src: url(/docs/fonts/DMMono-Medium.woff2) format("woff2");\n      }\n      /* Metric-matched fallbacks (capsize, from the woff2 metrics) so the\n         swap barely moves text. Regenerate if the font files change. */\n      @font-face {\n        font-family: "Inter Fallback";\n        src: local("Arial"), local("ArialMT");\n        ascent-override: 90.4365%;\n        descent-override: 22.518%;\n        line-gap-override: 0%;\n        size-adjust: 107.1194%;\n      }\n      @font-face {\n        font-family: "Nuckle Fallback";\n        src: local("Arial"), local("ArialMT");\n        ascent-override: 86.2547%;\n        descent-override: 22.6986%;\n        line-gap-override: 0%;\n        size-adjust: 110.1389%;\n      }\n      @font-face {\n        font-family: "DM Mono Fallback";\n        src: local("Courier New"), local("CourierNewPSMT");\n        ascent-override: 99.2161%;\n        descent-override: 31.005%;\n        size-adjust: 99.9837%;\n      }\n    '})},zc=function(){return(0,a.jsx)(s.xB,{styles:"\n    .hljs-comment {\n      color: var(--theme-colors-text-secondary)\n    }\n    .hljs-addition {\n      color: var(--theme-colors-success-700);\n      background: var(--theme-colors-success-100);\n    }\n    .hljs-deletion {\n      color: var(--theme-colors-danger-700);\n      background: var(--theme-colors-danger-100);\n    }\n  "})},Uc=function(){return(0,a.jsx)(s.xB,{styles:"\n      button.chakra-button {\n        border-radius: var(--theme-radii-lg) !important;\n      }\n    "})},Hc=function(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(zc,{}),(0,a.jsx)(Lc,{}),(0,a.jsx)(Uc,{})]})},Vc=n(69468),Wc=n(11163),Gc=n(19671),qc=[50,75,100],Zc=[3e4,6e4,12e4,3e5],$c=function(){var e=(0,Wc.useRouter)(),t=(0,u.useRef)(new Set),n=(0,u.useRef)(new Set),r=(0,u.useRef)([]);return(0,u.useEffect)((function(){var e=t.current;e.clear();var n=function(){var t=window.scrollY,n=document.documentElement.scrollHeight-window.innerHeight;if(!(n<=0)){var r=Math.round(t/n*100),i=!0,o=!1,a=void 0;try{for(var s,u=qc[Symbol.iterator]();!(i=(s=u.next()).done);i=!0){var c=s.value;r>=c&&!e.has(c)&&(e.add(c),(0,Gc.j)("Scroll Depth Reached",{page_path:window.location.pathname,page_title:document.title,scroll_depth:c}))}}catch(l){o=!0,a=l}finally{try{i||null==u.return||u.return()}finally{if(o)throw a}}}};return window.addEventListener("scroll",n,{passive:!0}),n(),function(){window.removeEventListener("scroll",n)}}),[e.asPath]),(0,u.useEffect)((function(){var e=n.current;e.clear(),r.current.forEach(clearTimeout),r.current=[];Date.now();var t=Zc.map((function(t){return setTimeout((function(){e.has(t)||(e.add(t),(0,Gc.j)("Time on Page Milestone",{page_path:window.location.pathname,page_title:document.title,time_on_page_seconds:t/1e3}))}),t)}));return r.current=t,function(){t.forEach(clearTimeout)}}),[e.asPath]),null};var Yc=function(){var e=(0,Wc.useRouter)(),t=(0,u.useRef)(!0),r=function(){var e=(0,go.Z)((function(){var e;return(0,yo.__generator)(this,(function(t){switch(t.label){case 0:return[4,n.e(26976).then(n.bind(n,26976))];case 1:return e=t.sent().HtEventsBrowser,window.htevents=e.load({writeKey:"82d7171b98a012dea713e91b9360714
1161ae37b567f840e8157d631dc4fe88bf"},{apiHost:"events.hightouch.com",batching:!1}),[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,u.useEffect)((function(){r()}),[]),(0,u.useEffect)((function(){var n=function(){if(window.htevents){var e=(0,i.Z)({product_area:window.location.pathname.replace(/^\/docs\/?/,"").split("/")[0]||"home"},function(){var e=new URLSearchParams(window.location.search),t={},n=!0,r=!1,i=void 0;try{for(var o,a=["utm_source","utm_medium","utm_campaign","utm_content","utm_term"][Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value,u=e.get(s);u&&(t[s]=u)}}catch(c){r=!0,i=c}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}return t}()),n=function(){try{if(!document.referrer)return"";var e=new URL(document.referrer);return e.hostname===window.location.hostname?"":e.hostname}catch(_o){return""}}();n&&(e.referrer_domain=n),t.current&&(e.is_entry_page=!0,t.current=!1),window.htevents.page(void 0,void 0,e)}};return n(),e.events.on("routeChangeComplete",n),function(){e.events.off("routeChangeComplete",n)}}),[e]),null},Kc=n(17182);function Xc(e){return e.Component.getLayout?e.Component.getLayout((0,a.jsx)(e.Component,(0,i.Z)({},e.pageProps))):(0,a.jsx)(Qi,{value:{refreshInterval:0,fetcher:function(e,t){return fetch(e,t).then((function(e){return e.json()}))}},children:(0,a.jsx)(Qc,(0,i.Z)({},e))})}var Qc=function(e){var t=e.Component,n=e.pageProps,r=Ji("user",qs),s=r.data,c=r.error,l=(0,u.useRef)(!1),d=!c&&!s;return(0,u.useEffect)((function(){(null===s||void 0===s?void 0:s.id)&&!l.current&&((0,Gc.y)(s.id,{email:s.email,name:s.name,workspace_id:s.current_workspace_id}),l.current=!0)}),[s]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ei,{theme:vo,children:(0,a.jsx)(Bc,{children:(0,a.jsxs)(ri.KBarProvider,{actions:[],options:{animations:{enterMs:250,exitMs:250}},children:[(0,a.jsx)(Vc.A,(0,o.Z)((0,i.Z)({},n),{user:s,loadingUser:d,children:(0,a.jsx)(t,(0,o.Z)((0,i.Z)({},n),{user:s}))})),(0,a.jsx)(oc,{})]})})}),(0,a.jsx)(Kc.x,{user:s}),(0,a.jsx)(Yc,{}),(0,a.jsx)($c,{}),(0,a.jsx)(oi(),{src:"/third-party-scripts/google-tag-manager.js",strategy:"lazyOnload"}),(0,a.jsx)(Hc,{})]})}},72923:function(e,t,n){"use strict";n.d(t,{AX:function(){return s},kB:function(){return u},XC:function(){return c},Tw:function(){return l},sz:function(){return d},xP:function(){return f},Oq:function(){return p},o1:function(){return h},UO:function(){return m},W1:function(){return v},QM:function(){return g},r7:function(){return y},C_:function(){return b},Z7:function(){return x},aN:function(){return _}});var r=n(41799),i=n(69396),o=n(85893),a=n(10894),s=function(e){return(0,o.jsxs)(a.JO,(0,i.Z)((0,r.Z)({viewBox:"0 0 24 24",fill:"currentColor"},e),{children:[(0,o.jsx)("path",{d:"M11 8a1 1 0 1 1 2 0v3h3a1 1 0 1 1 0 2h-3v3a1 1 0 1 1-2 0v-3H8a1 1 0 1 1 0-2h3V8Z"}),(0,o.jsx)("path",{fillRule:"evenodd",d:"M6 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3H6ZM5 6a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V6Z",clipRule:"evenodd"})]}))};var u=function(e){return(0,o.jsxs)(a.JO,(0,i.Z)((0,r.Z)({viewBox:"0 0 24 24",fill:"currentColor"},e),{children:[(0,o.jsx)("path",{fillRule:"evenodd",d:"M8 12a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm3 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm3 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0Z",clipRule:"evenodd"}),(0,o.jsx)("path",{fillRule:"evenodd",d:"M12 7c-3.464 0-6 2.378-6 5 0 .91.292 1.77.818 2.517.228.324.248.678.245.873a3.124 3.124 0 0 1-.085.623c-.075.327-.197.701-.301 1.022a46.742 46.742 0 0 0-.16.503c.242-.06.523-.145.841-.246l.227-.073c.375-.12.786-.253 1.158-.347.402-.1.986-.221 1.504-.09A7.092 7.092 0 0 0 12 17c3.464 0 6-2.378 6-5s-2.536-5-6-5ZM5.938 17.623ZM4 12c0-4.005 3.732-7 8-7s8 2.995 8 7-3.732 7-8 7a9.088 9.088 0 0 1-2.247-.28c.006.002.003.002-.01.003a2.551 2.551 0 0 0-.513.09c-.302.075-.636.182-1.009.302l-.255.082c-.448.143-.96.3-1.42.377a3.135 3.135 0 0 1-.757.043 1.685 1.685 0 0 1-.892-.32 1.334 1.334 0 0 1-.506-.913 2.35 2.35 0 0 1 .027-.681c.065-.382.204-.815.319-1.17l.035-.108c.111-.342.203-.624.256-.857.009-.038.015-.07.02-.098A6.323 6.323 0 0 1 4 12Zm1.063 3.357a.15.15 0 0 1 0 .004v-.004Z",clipRule:"evenodd"})]}))};function c(e){return(0,o.jsx)(a.JO,(0,i.Z)((0,r.Z)({viewBox:"0 0 24 24",fill:"
1currentColor"},e),{children:(0,o.jsx)("path",{fillRule:"evenodd",d:"M8.293 6.293a1 1 0 0 1 1.414 0l5 5a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414-1.414L12.586 12 8.293 7.707a1 1 0 0 1 0-1.414Z",clipRule:"evenodd"})}))}function l(e){return(0,o.jsx)(a.JO,(0,i.Z)((0,r.Z)({viewBox:"0 0 24 24",fill:"currentColor"},e),{children:(0,o.jsx)("path",{fillRule:"evenodd",d:"M5.293 5.293a1 1 0 0 1 1.414 0L12 10.586l5.293-5.293a1 1 0 1 1 1.414 1.414L13.414 12l5.293 5.293a1 1 0 0 1-1.414 1.414L12 13.414l-5.293 5.293a1 1 0 0 1-1.414-1.414L10.586 12 5.293 6.707a1 1 0 0 1 0-1.414Z",clipRule:"evenodd"})}))}function d(e){return(0,o.jsx)(a.JO,(0,i.Z)((0,r.Z)({viewBox:"0 0 24 24",fill:"currentColor"},e),{children:(0,o.jsx)("path",{fillRule:"evenodd",d:"M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16ZM2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm9-4a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H12a1 1 0 0 1-1-1Zm-1 4a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1v3a1 1 0 1 1 0 2h-1a1 1 0 0 1-1-1v-3a1 1 0 0 1-1-1Z",clipRule:"evenodd"})}))}function f(e){return(0,o.jsxs)(a.JO,(0,i.Z)((0,r.Z)({viewBox:"0 0 24 24",fill:"currentColor"},e),{children:[(0,o.jsx)("path",{d:"M11.293 5.293a5.243 5.243 0 0 1 7.414 7.414l-1.25 1.25a1 1 0 0 1-1.414-1.414l1.25-1.25a3.243 3.243 0 1 0-4.586-4.586l-1.25 1.25a1 1 0 1 1-1.414-1.414l1.25-1.25Zm-3.336 4.75a1 1 0 0 1 0 1.414l-1.25 1.25a3.243 3.243 0 0 0 4.586 4.586l1.25-1.25a1 1 0 0 1 1.414 1.414l-1.25 1.25a5.243 5.243 0 1 1-7.414-7.414l1.25-1.25a1 1 0 0 1 1.414 0Z"}),(0,o.jsx)("path",{d:"M14.957 10.457a1 1 0 0 0-1.414-1.414l-4.5 4.5a1 1 0 1 0 1.414 1.414l4.5-4.5Z"})]}))}var p=function(e){return(0,o.jsx)(a.JO,(0,i.Z)((0,r.Z)({viewBox:"0 0 20 20",fill:"none"},e),{children:(0,o.jsx)("path",{d:"M2.5 10h15M2.5 5h15M2.5 15h15",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})}))};var h=function(e){return(0,o.jsx)(a.JO,(0,i.Z)((0,r.Z)({viewBox:"0 0 60 60",fill:"currentColor"},e),{children:(0,o.jsx)("path",{fillRule:"evenodd",d:"M30 60c16.569 0 30-13.431 30-30C60 13.431 46.569 0 30 0 13.431 0 0 13.431 0 30c0 16.569 13.431 30 30 30Zm14.604-29.316a.79.79 0 0 0 0-1.368L23.288 17.01a.79.79 0 0 0-1.184.683v24.614a.79.79 0 0 0 1.184.683l21.316-12.306Z",clipRule:"evenodd"})}))};function m(e){return(0,o.jsx)(a.JO,(0,i.Z)((0,r.Z)({viewBox:"0 0 24 24",fill:"currentColor"},e),{children:(0,o.jsx)("path",{d:"M11.95 18c.35 0 .646-.12.888-.363.241-.241.362-.537.362-.887s-.12-.646-.362-.887a1.207 1.207 0 0 0-.888-.363 1.2 1.2 0 0 0-.887.363 1.207 1.207 0 0 0-.363.887c0 .35.12.646.363.887.241.242.537.363.887.363Zm-.9-3.85h1.85c0-.55.063-.983.188-1.3.125-.317.479-.75 1.062-1.3a7.494 7.494 0 0 0 1.025-1.238c.25-.391.375-.862.375-1.412 0-.933-.342-1.65-1.025-2.15-.683-.5-1.492-.75-2.425-.75-.95 0-1.72.25-2.313.75a3.97 3.97 0 0 0-1.237 1.8l1.65.65c.083-.3.27-.625.563-.975.291-.35.737-.525 1.337-.525.533 0 .933.146 1.2.437.267.292.4.613.4.963 0 .333-.1.646-.3.938-.2.291-.45.562-.75.812-.733.65-1.183 1.142-1.35 1.475-.167.333-.25.942-.25 1.825ZM12 22a9.738 9.738 0 0 1-3.9-.788 10.099 10.099 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.738 9.738 0 0 1 2 12a9.74 9.74 0 0 1 .788-3.9 10.099 10.099 0 0 1 2.137-3.175c.9-.9 1.958-1.612 3.175-2.137A9.738 9.738 0 0 1 12 2a9.74 9.74 0 0 1 3.9.788 10.098 10.098 0 0 1 3.175 2.137c.9.9 1.613 1.958 2.137 3.175A9.738 9.738 0 0 1 22 12a9.738 9.738 0 0 1-.788 3.9 10.098 10.098 0 0 1-2.137 3.175c-.9.9-1.958 1.613-3.175 2.137A9.738 9.738 0 0 1 12 22Zm0-2c2.233 0 4.125-.775 5.675-2.325C19.225 16.125 20 14.233 20 12c0-2.233-.775-4.125-2.325-5.675C16.125 4.775 14.233 4 12 4c-2.233 0-4.125.775-5.675 2.325C4.775 7.875 4 9.767 4 12c0 2.233.775 4.125 2.325 5.675C7.875 19.225 9.767 20 12 20Z"})}))}function v(e){return(0,o.jsx)(a.JO,(0,i.Z)((0,r.Z)({viewBox:"0 0 24 24",fill:"currentColor"},e),{children:(0,o.jsx)("path",{fillRule:"evenodd",d:"M10 6a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm-6 4a6 6 0 1 1 10.89 3.476l4.817 4.817a1 1 0 0 1-1.414 1.414l-4.816-4.816A6 6 0 0 1 4 10Z",clipRule:"evenodd"})}))}function g(e){return(0,o.jsx)(a.JO,(0,i.Z)((0,r.Z)({viewBox:"0 0 24 25",fill:"currentColor"},e),{children:(0,o.jsx)("path",{fillRule:"evenodd",d:"M17 3.75a1 1 0 0 1 1 1c0 .257.13.577.402.848.271.271.59.402.848.402a1 1 0 1 1 0 2c-.257 0-.577.13-.848.402-.271.271-.402.59-.402.848a1 1 0 1 1-2 0c0-.257-.13-.577-.402-.848-.271-.271-.59-.402-.848-.402a1 1 0 1 1 0-2c.257 0 .577-.13.848-.402.271-.271.402-.59.402-.848a1 1 0 0 1 1-1Zm0 10a1 1 0 0 1 1 1c0 .257.13.577.402.848.271.271.59.402.848.402a1 1 0 1 1 0 2c-.257 0-.577.13-.848.402-.271.271-.402.59-.402.848a1 1 0 1 1-2 0c0-.257-.13-.577-.402-.848-.271-.271-.59-.402-.848-.402a1 1 0 1 1 0-2c.257 0 .577-.13.848-.402.271-.271.402-.59.402-.848a1 1 0 0 1 1-1Zm-8-7a1 1 0 0 1 1 1c0 .767.376 1.587 1.02 2.23.643.644 1.463 1.02 2.23 1.02a1 1 0 1 1 0 2c-.767 0-1.587.376-2.23 1.02-.644.643-1.02 1.463-1.02 2.23a1 1 0 1 1-2 0c0-.767-.376-1.587-1.02-2.23C6.337 13.376 5.517 13 4.75 13a1 1 0 1 1 0-2c.767 0 1.587-.376 2.23-1.02C7.624 9.337 8 8.517 8 7.75a1 1 0 0 1 1-1Zm0 3.934A5.859 5.859 0 0 1 7.684 12 5.86 5.86 0 0 1 9 13.316 5.867 5.867 0 0 1 10.316 12 5.871 5.871 0 0 1 9 10.684Z",clipRule:"evenodd"})}))}function y(e){return(0,o.jsx)(a.JO,(0,i.Z)((0,r.Z)({viewBox:"0 0 24 24",fill:"
1currentColor"},e),{children:(0,o.jsx)("path",{fillRule:"evenodd",d:"M11.057 3.658c.323-.877 1.563-.877 1.886 0l1.893 5.139 5.216.305c.903.053 1.282 1.18.595 1.768l-4.086 3.505 1.35 5.37c.225.896-.775 1.597-1.54 1.078L12 17.857l-4.372 2.966c-.764.519-1.764-.182-1.539-1.078l1.35-5.37-4.086-3.505c-.687-.589-.308-1.715.595-1.768l5.216-.305 1.893-5.139ZM12 6.385l-1.308 3.55a1.005 1.005 0 0 1-.884.656l-3.718.218 2.925 2.509c.29.248.414.639.32 1.009l-.947 3.771 3.048-2.068c.34-.23.787-.23 1.128 0l3.048 2.068-.948-3.771a1.01 1.01 0 0 1 .32-1.01l2.926-2.508-3.718-.218a1.005 1.005 0 0 1-.884-.656L12 6.385Z",clipRule:"evenodd"})}))}function b(e){return(0,o.jsx)(a.JO,(0,i.Z)((0,r.Z)({viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:(0,o.jsx)("path",{d:"M17 2v11l4 1V3a1 1 0 0 0-1-1h-3Zm0 11-2 7a2 2 0 0 1-2 2h-.5a1 1 0 0 1-1-1v-3.5a.5.5 0 0 0-.5-.5H6a2 2 0 0 1-2-2.24l1.14-8A2 2 0 0 1 7.13 4H17"})}))}function x(e){return(0,o.jsx)(a.JO,(0,i.Z)((0,r.Z)({viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:(0,o.jsx)("path",{d:"M7 22V11l-4-1v11a1 1 0 0 0 1 1h3Zm0-11 2-7a2 2 0 0 1 2-2h.5a1 1 0 0 1 1 1v3.5a.5.5 0 0 0 .5.5H18a2 2 0 0 1 2 2.24l-1.14 8A2 2 0 0 1 16.87 20H7"})}))}function _(e){return(0,o.jsx)(a.JO,(0,i.Z)((0,r.Z)({viewBox:"0 0 24 24",fill:"currentColor"},e),{children:(0,o.jsx)("path",{fillRule:"evenodd",d:"M9.402 3.5c1.155-2 4.041-2 5.196 0l6.928 12c1.155 2-.288 4.5-2.598 4.5H5.072c-2.31 0-3.753-2.5-2.598-4.5l6.928-12Zm3.464 1a1 1 0 0 0-1.732 0l-6.928 12a1 1 0 0 0 .866 1.5h13.856a1 1 0 0 0 .866-1.5l-6.928-12ZM12 8a1 1 0 0 1 1 1v2a1 1 0 0 1-2 0V9a1 1 0 0 1 1-1Zm-1 7a1 1 0 0 1 1-1h.01a1 1 0 0 1 0 2H12a1 1 0 0 1-1-1Z",clipRule:"evenodd"})}))}},62130:function(e,t,n){"use strict";n.d(t,{E:function(){return d}});var r=n(41799),i=n(69396),o=n(99534),a=n(85893),s=n(97375),u=n(68527),c=n(34651),l=n(79714),d=function(e){var t=e.src,n=e.alt,d=e.title,f=(0,o.Z)(e,["src","alt","title"]),p=(0,s.qY)(),h=p.isOpen,m=p.onOpen,v=p.onClose,g=t.startsWith("/")?t.slice(1):t;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(u.xu,(0,i.Z)((0,r.Z)({as:"figure",width:"100%",bg:"base.background",borderRadius:"xl",p:{base:1,md:3,xl:5},cursor:"zoom-in",pointerEvents:["none","none","auto"],onClick:m},f),{children:[(0,a.jsx)(u.kC,{width:"100%",height:"100%",zIndex:0,justify:"center",children:(0,a.jsx)(c.Ee,{alt:n,src:"/docs/images/".concat(g),objectFit:"contain",width:"auto",height:"auto",maxHeight:"76vh"})}),d&&(0,a.jsx)(u.xu,{as:"figcaption",textAlign:"center",mt:4,color:"gray.600",fontWeight:"medium",fontSize:"sm",children:d})]})),(0,a.jsxs)(l.u_,{isOpen:h,onClose:v,isCentered:!0,size:"full",children:[(0,a.jsx)(l.ZA,{bg:"blackAlpha.500",backdropFilter:"auto",backdropBlur:"10px",zIndex:3,width:"100%",height:"100%"}),(0,a.jsx)(l.hz,{zIndex:3,width:"max-content",height:"max-content",m:"auto",containerProps:{zIndex:3},children:(0,a.jsx)(l.fe,{children:(0,a.jsx)(u.kC,{align:"center",justify:"center",zIndex:0,children:(0,a.jsx)(c.Ee,{src:"/docs/images/".concat(t),objectFit:"contain",width:"max-content",height:"auto",maxHeight:"92vh",maxWidth:{base:"90vw",lg:"75vw"}})})})})]})]})}},16770:function(e,t,n){"use strict";n.d(t,{tx:function(){return j},fw:function(){return h},Nx:function(){return C},TI:function(){return x},vR:function(){return z},HF:function(){return q},v2:function(){return b},Tx:function(){return $},Yz:function(){return T},TT:function(){return _},X6:function(){return A},kI:function(){return f},rU:function(){return m.r},pp:function(){return H},kh:function(){return E},o4:function(){return L},CT:function(){return B},GL:function(){return w},rf:function(){return he},cu:function(){return v.c},zG:function(){return Y},Y9:function(){return F},Sl:function(){return W},V7:function(){return R},cK:function(){return y},sO:function(){return U},kc:function(){return V},t4:function(){return G},yB:function(){return k},Ch:function(){return d},t3:function(){return te},S:function(){return ne},C_:function(){return M},v3:function(){return p},a_:function(){return ge},UN:function(){return ve},QR:function(){return D}});var r=n(41799),i=n(69396),o=n(85893),a=n(68527),s=n(72923),u={info:{borderColor:"gray.200",bg
1:"base.lightBackground",color:"text.secondary"},tip:{borderColor:"teal.200",bg:"teal.background",color:"teal.text"},warning:{borderColor:"warning.200",bg:"warning.background",color:"warning.text"},sample:{borderColor:"gray.200",bg:"base.lightBackground",color:"text.secondary"}},c={info:(0,o.jsx)(s.sz,{mr:3,boxSize:6,flexShrink:0,color:"text.secondary"}),warning:(0,o.jsx)(s.aN,{mr:3,boxSize:6,flexShrink:0,color:"warning.base"}),tip:(0,o.jsx)(s.r7,{mr:3,boxSize:6,flexShrink:0,color:"teal.base"}),sample:(0,o.jsx)(s.QM,{mr:3,boxSize:6,flexShrink:0,color:"teal.base"})},l=function(e){var t=e.children,n=e.variant,s=void 0===n?"info":n,l=c[s];return(0,o.jsxs)(a.kC,(0,i.Z)((0,r.Z)({border:"1px",borderRadius:"xl",padding:5,my:12,fontSize:"lg",alignItems:"start",sx:{a:{color:"var(--theme-colors-link-hover)"}}},u[s]),{children:[l,(0,o.jsx)(a.xu,{sx:{p:{margin:0}},children:t})]}))},d=function(e){return(0,o.jsx)(l,(0,r.Z)({variant:"tip"},e))},f=function(e){return(0,o.jsx)(l,(0,r.Z)({variant:"info"},e))},p=function(e){return(0,o.jsx)(l,(0,r.Z)({variant:"warning"},e))},h=(0,n(94930).E)(a.xu),m=n(90907),v=n(25058),g=n(28551);function y(e){var t=e.children;return(0,o.jsx)(a.xv,{as:"span",fontWeight:"semibold",children:t})}var b=function(){return(0,o.jsxs)(g.GS,{children:[(0,o.jsxs)(g.HC,{children:["From the"," ",(0,o.jsxs)(m.r,{href:"https://app.hightouch.com/settings/api-keys?from=docs",variant:"inline",children:[(0,o.jsx)(y,{children:"API keys"})," tab"]})," ","on the ",(0,o.jsx)(y,{children:"Settings"})," page, click ",(0,o.jsx)(y,{children:"Add API key"}),"."]}),(0,o.jsxs)(g.HC,{children:["Enter a descriptive ",(0,o.jsx)(y,{children:"Name"})," for your key."]}),(0,o.jsxs)(g.HC,{children:["Under ",(0,o.jsx)(y,{children:"User group"}),", select the group whose permissions the key should have in this workspace, or select"," ",(0,o.jsx)(y,{children:"All of the creator's groups"})," to give the key the same permissions as you."]}),(0,o.jsxs)(g.HC,{children:["Copy your ",(0,o.jsx)(y,{children:"API key"})," and store it in a safe location. The key is only displayed once."]}),(0,o.jsxs)(g.HC,{children:["Click ",(0,o.jsx)(y,{children:"Create API key"}),"."]})]})},x=function(e){var t=e.featureName,n=void 0===t?"This feature":t,r=e.plural,i=void 0!==r&&r,a=e.extraText,s=void 0===a?"":a;return(0,o.jsxs)(f,{children:[n," ",i?"are":"is"," only available on"," ",(0,o.jsx)(m.r,{variant:"inline",href:"https://hightouch.com/pricing",children:"Business tier plans"}),s||"."]})},_=function(e){var t=e.featureName,n=void 0===t?"This feature":t,r=e.plural,i=void 0!==r&&r,a=e.contactMessage,s=void 0===a?"":a;return(0,o.jsxs)(f,{children:[n," must be enabled by Hightouch."," ",(0,o.jsx)(v.c,{pylonText:s||"Hi, I'd like to enable ".concat(n.toLowerCase()," in my workspace."),children:"Contact us"})," ","to ",i?"turn them on":"turn it on","."]})},w=function(e){var t=e.destinationName,n=void 0===t?"This destination":t;return(0,o.jsxs)(f,{children:[n," is a"," ",(0,o.jsxs)(m.r,{variant:"inline",href:"/pricing/ss-pricing#premium-destinations",children:["premium destination"," "]}),"and is only available on"," ",(0,o.jsx)(m.r,{variant:"inline",href:"/security/networking/#ip-addresses",children:"Business tier plans"}),"."]})},S=n(62130),k=function(e){var t=e.alternateImageSrc;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(a.xv,{textStyle:"paragraph",children:["A convenient way to convert your date values to Unix millisecond timestamps is to use the ",(0,o.jsx)("code",{children:"to_unix"})," function in the"," ",(0,o.jsx)(m.r,{variant:"inline",href:"/syncs/mapping-data#template-mapping",children:"template mapper"}),"."]}),(0,o.jsx)(S.E,{alt:"Field mapping in the Hightouch UI",src:t?"/".concat(t):"mapping-data/mapping-data-template-map-to-unix.png",title:"",objectFit:"contain",width:"auto",height:"auto",my:6}),(0,o.jsxs)(a.xv,{textStyle:"paragraph",children:["The ",(0,o.jsx)("code",{children:"to_unix"})," function throws an error if the input row's value is ",(0,o.jsx)("code",{children:"null"}),". To avoid this, you can enter this"," ",(0,o.jsx)(m.r,{variant:"inline",href:"https://shopify.dev/docs/api/liquid",children:"Liquid"}
1)," ","into the template mapper:"]}),(0,o.jsxs)(a.xu,{as:"code",bg:"base.lightBackground",border:"1px solid",borderColor:"base.border",borderRadius:"md",color:"text.primary",display:"block",fontFamily:"mono",fontSize:"sm",padding:"1em",overflowX:"auto",whiteSpace:"pre-wrap",children:[(0,o.jsx)("span",{children:"{%- if row['column_name'] == null -%}\n"}),(0,o.jsx)("span",{children:"{{null}}\n"}),(0,o.jsx)("span",{children:"{%- else -%}\n"}),(0,o.jsx)("span",{children:"{{row['column_name'] | to_unix}}\n"}),(0,o.jsx)("span",{children:"{%- endif -%}"})]}),(0,o.jsxs)(a.xv,{textStyle:"paragraph",children:["Be sure to replace ",(0,o.jsx)("code",{children:"column_name"})," with the name of your model column."]})]})},E=function(e){var t=e.destinationName,n=void 0===t?"This destination":t;return(0,o.jsxs)(d,{children:["Increase match rates in ",n," by enabling"," ",(0,o.jsx)(m.r,{variant:"inline",href:"/match-booster/overview",children:"Match Booster"}),"."]})},C=function(e){var t=e.destinationName,n=void 0===t?"this destination":t;return(0,o.jsxs)(f,{children:["If you map an identifier field that contains an array of values, Hightouch automatically fans out each element into a separate record when syncing to ",n,". Learn more about"," ",(0,o.jsx)(m.r,{variant:"inline",href:"/syncs/array-identifier-fan-out",children:"array identifier fan-out"}),"."]})},j=function(){return(0,o.jsxs)(p,{children:["Your API key provides read/write access to sensitive Hightouch resources and should be kept secure. If you believe your API key may have been compromised,"," ",(0,o.jsx)(m.r,{variant:"inline",href:"/developer-tools/api-guide#revoke-an-api-key",children:"revoke it"})," ","immediately."]})},T=function(e){e.featureName,e.plural,e.extraText;var t=e.type,n=void 0===t?"event":t;return(0,o.jsxs)(p,{children:["To ensure syncs send each ",n,", your event model must use a truly unique"," ",(0,o.jsx)(m.r,{variant:"inline",href:"/getting-started/concepts#unique-primary-key-requirement",children:"primary key"}),". See the"," ",(0,o.jsx)(m.r,{variant:"inline",href:"/syncs/types-and-modes#event-syncs",children:"events syncs"})," ","documentation for more information."]})},R=function(){return(0,o.jsxs)(p,{children:[(0,o.jsx)(m.r,{variant:"inline",href:"/events/event-streaming",children:"Event streaming"})," ","destinations don't dual-run. Because streaming events bypass the warehouse and go straight to the destination, running both your previous tool and Hightouch streaming at the same time sends duplicate events. Turn on the Hightouch streaming destination and turn off your previous tool's streaming destination at the same time."]})},O=n(97375),P=n(11163),A=function(e){var t=e.children,n=e.as,r=void 0===n?"h2":n,i=e.id,u=(0,P.useRouter)(),c=(0,O.VP)("".concat(window.location.href).concat(i?"#".concat(i):"")).onCopy;return(0,o.jsx)(a.X6,{as:r,textStyle:r,id:i,className:"group",onClick:c,children:(0,o.jsxs)(m.r,{variant:"secondary",href:i?"#".concat(i):u.asPath,display:"flex",alignItems:"center",children:[t,(0,o.jsx)(s.xP,{boxSize:5,ml:3,color:"primary.base",opacity:0,transition:"150ms opacity",_groupHover:{opacity:1}})]})})},D=function(e){var t,n,r=e.target,i=void 0===r?"warehouse":r,a=((null===e||void 0===e||null===(t=e.privatelink)||void 0===t?void 0:t.supportedIntegrations)||[]).map((function(e){switch(e){case"aws-privatelink":return{name:"AWS PrivateLink",href:"/security/aws/privatelink"};case"gcp-psc":return{name:"GCP Private Service Connect",href:"/security/gcp/private-service-connect"};case"azure-privatelink":return{name:"Azure Private Link",href:"/security/azure/private-link"};default:return void console.error("Unsupported integration: ",e)}})).filter((function(e){return void 0!==e}));return(0,o.jsxs)(f,{children:[(0,o.jsxs)("p",{children:["You may need to allowlist Hightouch's IP addresses to let our systems connect to your ",i,". Reference our"," ",(0,o.jsx)(m.r,{variant:"inline",href:"/security/networking/#ip-addresses",children:"networking docs"})," ","to determine which IP addresses you need to allowlist."]}),a.length>0&&(0,o.jsxs)("p",{children:[(0,o.jsx)("br",{}),"You can also securely connect to your"," ",null!==(n=e.privatelink.target)&&void 0!==n?n:i," using"," ",I(a,e.privatelink.anch
1or),"."," ",N(a.map((function(e){return e.name})))]})]})},I=function(e,t){var n=function(e){var n=e.name,r=e.href;return(0,o.jsx)(m.r,{variant:"inline",href:t?"".concat(r,"#").concat(t):r,children:n})};return 1===e.length?(0,o.jsx)(o.Fragment,{children:n(e[0])}):2===e.length?(0,o.jsxs)(o.Fragment,{children:[n(e[0])," or ",n(e[1])]}):(0,o.jsxs)(o.Fragment,{children:[e.slice(0,-1).map((function(e){return(0,o.jsxs)(o.Fragment,{children:[n(e),", "]})}))," or ",n(e.slice(-1)[0])]})},N=function(e){return 1===e.length?(0,o.jsxs)(o.Fragment,{children:[e[0]," is a"," ",(0,o.jsx)(m.r,{variant:"inline",href:"https://hightouch.com/pricing",children:"Business Tier"})," ","feature."]}):2===e.length?(0,o.jsxs)(o.Fragment,{children:[e[0]," and ",e[1]," are"," ",(0,o.jsx)(m.r,{variant:"inline",href:"https://hightouch.com/pricing",children:"Business Tier"})," ","features."]}):(0,o.jsxs)(o.Fragment,{children:[e.slice(0,-1).join(", ")+", and "+e.slice(-1)," are"," ",(0,o.jsx)(m.r,{variant:"inline",href:"https://hightouch.com/pricing",children:"Business Tier"})," ","features."]})},M=function(e){var t=e.featureName,n=void 0===t?"":t,r=e.featureType,i=n;return(n&&"destination"==r||"source"==r)&&(i="connecting to ".concat(n)),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(A,{children:"Under construction"}),(0,o.jsx)(a.xv,{textStyle:"paragraph",children:"Looks like you're as excited about this feature as we are!"}),(0,o.jsx)(a.xv,{textStyle:"paragraph",children:"We're still working on the docs. Please check back in a day or two."}),(0,o.jsxs)(a.xv,{textStyle:"paragraph",children:["In the meantime, don't hesitate to\xa0",(0,o.jsx)(v.c,{pylonText:"",linkText:"get in touch"}),"\xa0if you have any questions about ",i,"."]})]})},F=function(e){var t=e.extension,n=void 0===t?"":t;return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(a.xu,{children:[(0,o.jsxs)(a.xv,{textStyle:"paragraph",children:["For the ",n," extension to trigger syncs via the Hightouch API, you must set the syncs'"," ",(0,o.jsx)(m.r,{href:"/syncs/schedule-sync-ui",variant:"inline",children:"schedules"})," ","to ",(0,o.jsx)(y,{children:"Manual"}),"."]}),(0,o.jsxs)(a.xv,{textStyle:"paragraph",children:["You can do this by going to the"," ",(0,o.jsxs)(m.r,{href:"https://app.hightouch.com/syncs",variant:"inline",children:[(0,o.jsx)(y,{children:"Syncs "}),"overview page"]}),", selecting the particular sync you want to trigger with ",n,", and opening the ",(0,o.jsx)(y,{children:"Schedule"})," tab. Here, make sure the"," ",(0,o.jsx)(y,{children:"Schedule type"})," is set to ",(0,o.jsx)(y,{children:"Manual"}),". You should do this for each sync you want to trigger with ",n,"."]}),(0,o.jsx)(S.E,{alt:"Manual sync Hightouch UI",src:"/syncs/manual-schedule.png",title:"",objectFit:"contain",width:"auto",height:"auto",my:6}),(0,o.jsx)(a.xv,{textStyle:"paragraph",children:"You can also find the sync ID on this page, which you need for scheduling syncs in the next step."}),(0,o.jsx)(S.E,{alt:"A sync ID in the Hightouch UI",src:"/syncs/sync-id.png",title:"",objectFit:"contain",width:"auto",height:"auto",my:6})]})})},B=function(e){var t=e.source,n=void 0!==t&&t;return(0,o.jsxs)(a.xv,{textStyle:"paragraph",children:["To date, our customers haven't experienced any errors while using this ",n?"source":"destination",". If you run into any issues, please don't hesitate to"," ",(0,o.jsx)(v.c,{pylonText:"",linkText:"reach out"}),". We're here to help."]})},L=function(e){var t=e.destination;return(0,o.jsxs)(a.gC,{textStyle:"paragraph",spacing:4,children:[(0,o.jsxs)(a.xv,{children:["Hightouch retrieves the audience metadata from ",t," in real-time. The matched number displayed in Hightouch should reflect what you see in"," ",t,". Note that the matched numbers are approximated to maintain privacy thresholds. Hightouch takes the matched count to calculate a match rate for your sync, where applicable. The calculation breakdown:"]}),(0,o.jsx)(a.EK,{children:"matched_user_count / # of rows queried in the latest sync run"}),(0,o.jsxs)(a.xv,{children:["The match rate is ",(0,o.jsx)(y,{children:"not"})," calculated when:",(0,o.jsxs)(a.QI,{children:[(0,o.jsx)(a.HC,{children:"syncing to an existing segment because the total number of records to ever be uploaded to the segment is unknown"}),(0,o.jsxs)(a.HC,{children:["removed users from your model is not removed in ",t," because the matched user count would be inflated in the calculation"]})]})]}),(0,o.jsxs)(a.xv,{children:["Common causes for low match rates:",(0,o.jsxs)(a.QI,{children:[(0,o.jsx)(a.HC,{children:"Your audience model is too small. Most ad platforms do not display the matched number unless there's at least one thousand matched users to maintain privacy thresholds."}),(0,o.jsxs)(a.HC,{children:["The upload is still processing. We recommend waiting at least"," ",(0,o.jsx)(y,{children:"72 hours"}
1)," from the first sync run for numbers to settle."]}),(0,o.jsxs)(a.HC,{children:["Your data isn\u2019t cleaned or hashed properly. Hightouch normalizes and hashes your data according to destination requirements, but it\u2019s still good to make sure that the data is as clean as possible. Note that Hightouch cannot clean your data if you opt to hash it yourself. In that case, ensure you follow the data cleaning requirements for",t,"."]})]})]})]})},z=function(){return(0,o.jsxs)(a.xv,{textStyle:"paragraph",children:["If you encounter an error or question not listed below and need assistance, don't hesitate to"," ",(0,o.jsx)(v.c,{pylonText:"",linkText:"reach out"}),". We're here to help."]})},U=function(){return(0,o.jsxs)(a.xv,{textStyle:"paragraph",children:["Hightouch can alert you of sync issues via Slack, PagerDuty, SMS, or email. For details, please visit our"," ",(0,o.jsx)(m.r,{variant:"inline",href:"/syncs/alerting",children:"article on alerting"}),"."]})},H=function(){return(0,o.jsxs)(a.xv,{textStyle:"paragraph",children:["Hightouch provides complete visibility into the API calls made during each of your sync runs. We recommend reading our"," ",(0,o.jsx)(a.rU,{variant:"inline",href:"/docs/syncs/debugger",children:"article on debugging tips and tricks"})," ","to learn more."]})},V=function(e){var t=e.source,n=void 0===t?"your data warehouse":t,r=e.supportLightningEngineMigration,i=void 0===r||r;return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(a.xu,{children:[(0,o.jsxs)(a.xv,{textStyle:"paragraph",children:["For optimal performance, Hightouch"," ",(0,o.jsx)(m.r,{variant:"inline",href:"/getting-started/concepts#change-data-capture",children:"tracks incremental changes"})," ","in your data model\u2014such as added, changed, or removed rows\u2014and only syncs those records. You can choose between two different sync engines for this work."]}),(0,o.jsxs)(a.xv,{children:["The ",(0,o.jsx)(y,{children:" Basic engine "})," requires read-only access to"," ",n,". Hightouch executes a query in your database, reads all query results, and then determines incremental changes using Hightouch's infrastructure. This engine is easier to set up since it requires read\u2014not write\u2014access to ",n,"."]}),(0,o.jsxs)(a.xv,{textStyle:"paragraph",children:["The ",(0,o.jsx)(y,{children:"Lightning engine "})," requires read and write access to"," ",n,". The engine stores previously synced data in a separate schema in ",n," managed by Hightouch. In other words, the engine uses"," ",n," to track incremental changes to your data rather than performing these calculations in Hightouch. Therefore, these computations are completed more quickly."]}),(0,o.jsx)(S.E,{alt:"Standard vs Lightning engine comparison",src:"get-started/sync-engine-comparison.png",title:"",objectFit:"contain",width:"auto",height:"auto",my:6}),(0,o.jsx)(d,{children:"Hightouch recommends using the Lightning sync engine when syncing more than 100,000 rows of data."}),(0,o.jsxs)(a.xv,{textStyle:"paragraph",children:["If you select the Basic engine, you"," ",!0===i?"can":"cannot"," switch to the Lightning engine later. Once you've configured the Lightning engine, you can't move back to the Basic engine without recreating ",n," as a source."]}),(0,o.jsxs)(a.xv,{textStyle:"paragraph",children:["To learn more,"," ",!0===i?"including migration steps and tips, ":"","check out the"," ",(0,o.jsx)(m.r,{variant:"inline",href:"/syncs/lightning-sync-engine",children:"Lightning sync engine docs"}),"."]})]})})},W=function(e){var t=e.source,n=void 0===t?"your data warehouse":t;return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(a.xu,{children:[(0,o.jsxs)(a.xv,{textStyle:"paragraph",children:["When setting up a source for the first time, Hightouch validates the following:",(0,o.jsxs)(g.QI,{children:[(0,o.jsx)(g.HC,{children:"Network connectivity"}),(0,o.jsxs)(g.HC,{children:[n," credentials"]}),(0,o.jsx)(g.HC,{children:"Permission to list schemas and tables"}),(0,o.jsxs)(g.HC,{children:["Permission to write to ",(0,o.jsx)("code",{children:"hightouch_planner"})," schema"]}),(0,o.jsxs)(g.HC,{children:["Permission to write to ",(0,o.jsx)("code",{children:"hightouch_audit"})," schema"]})]})]}),(0,o.jsx)(a.xv,{textStyle:"paragraph",children:"All configurations must pass the first three, while those with the Lightning engine must pass all of them."}),(0,o.jsxs)(a.xv,{textStyle:"paragraph",children:["Some sources may initially fail connection tests due to timeouts. Once a connection is established, subsequent API requests should happen more quickly, so it's best to retry tests if they first fail. You can do this by clicking ",(0,o.jsx)(y,{children:"Test again"}),"."]}),(0,o.jsxs)(a.xv,{textStyle:"paragraph",children:["If you've retried the tests and verified your credentials are correct but the tests are still failing, don't hesitate to"," ",(0,o.jsx)(v.c,{pylonText:"Hello, I'm having an issue setting up ".concat(n,"."),linkText:"reach out to our Customer Success team"}),"."]})]})})},G=function(e){var t=e.source,n=void 0===t?"your data warehouse":t;return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(a.xu,{children:[(0,o.jsxs)(a.xv,{textStyle:"paragraph",children:["You may also want to consider"," ",(0,o.jsx)(m.r,{variant:"inline",href:"/syncs/warehouse-sync-logs",children:"storing sync logs"}
1)," ","in ",n,". Like using the Lightning sync engine versus the standard one, this feature lets you use ",n," instead of Hightouch infrastructure. Rather than performance gains, it makes your sync log data available for more complex analysis. Refer to the"," ",(0,o.jsx)(m.r,{variant:"inline",href:"/syncs/warehouse-sync-logs",children:"warehouse sync logs docs"})," ","to learn more."]}),(0,o.jsx)(f,{children:(0,o.jsxs)("p",{children:["You must enable the"," ",(0,o.jsx)(m.r,{variant:"inline",href:"#choose-your-sync-engine",children:"Lightning sync engine"})," ","to store sync logs in your warehouse."]})})]})})},q=function(e){var t=e.source,n=void 0===t?"data warehouse":t;return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(a.xu,{children:[(0,o.jsxs)(a.xv,{textStyle:"paragraph",children:["Hightouch can connect directly to ",n," over the public internet or via an SSH tunnel. Since data is encrypted in transit via TLS, a direct connection is suitable for most use cases. You may need to set up a tunnel if your ",n," instance is on a private network or virtual private cloud (VPC)."]}),(0,o.jsx)(S.E,{alt:"Direct connection vs. SSH tunnel",src:"get-started/connection-types-comparison.png",title:"",objectFit:"contain",width:"auto",height:"auto",my:6}),(0,o.jsxs)(a.xv,{children:[" ","Hightouch supports both standard and reverse SSH tunnels. To learn more about SSH tunneling, refer to Hightouch's"," ",(0,o.jsx)(m.r,{variant:"inline",href:"/security/ssh-tunneling",children:"tunneling documentation"}),"."]})]})})},Z=n(16294),$=function(e){var t=e.source,n=void 0===t?"your data warehouse":t,r=e.supportLightningEngineMigration,i=void 0===r||r;return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(Z.i,{children:[(0,o.jsxs)(Z.TR,{children:[(0,o.jsx)(Z.TH,{children:"Criteria"}),(0,o.jsx)(Z.TH,{children:"Basic sync engine"}),(0,o.jsx)(Z.TH,{children:"Lightning sync engine"})]}),(0,o.jsxs)(Z.TR,{children:[(0,o.jsx)(Z.TD,{children:"Performance"}),(0,o.jsx)(Z.TD,{children:"Slower"}),(0,o.jsx)(Z.TD,{children:"Quicker"})]}),(0,o.jsxs)(Z.TR,{children:[(0,o.jsx)(Z.TD,{children:"Ideal for large data models (over 100 thous
1and rows)"}),(0,o.jsx)(Z.TD,{children:"No"}),(0,o.jsx)(Z.TD,{children:"Yes"})]}),(0,o.jsxs)(Z.TR,{children:[(0,o.jsx)(Z.TD,{children:"Reliability"}),(0,o.jsx)(Z.TD,{children:"Normal"}),(0,o.jsx)(Z.TD,{children:"High"})]}),(0,o.jsxs)(Z.TR,{children:[(0,o.jsx)(Z.TD,{children:"Resilience to sync interruptions"}),(0,o.jsx)(Z.TD,{children:"Normal"}),(0,o.jsx)(Z.TD,{children:"High"})]}),(0,o.jsxs)(Z.TR,{children:[(0,o.jsx)(Z.TD,{children:"Extra features"}),(0,o.jsx)(Z.TD,{children:"None"}),(0,o.jsx)(Z.TD,{children:"Warehouse Sync Logs, Match Booster, Identity Resolution"})]}),(0,o.jsxs)(Z.TR,{children:[(0,o.jsx)(Z.TD,{children:"Ease of setup"}),(0,o.jsx)(Z.TD,{children:"Simpler"}),(0,o.jsx)(Z.TD,{children:"More involved"})]}),(0,o.jsxs)(Z.TR,{children:[(0,o.jsx)(Z.TD,{children:"Location of change data capture"}),(0,o.jsx)(Z.TD,{children:"Hightouch infrastructure"}),(0,o.jsxs)(Z.TD,{children:[n," schemas managed by Hightouch"]})]}),(0,o.jsxs)(Z.TR,{children:[(0,o.jsxs)(Z.TD,{children:["Required permissions in ",n]}),(0,o.jsx)(Z.TD,{children:"Read-only"}),(0,o.jsx)(Z.TD,{children:"Read and write"})]}),(0,o.jsxs)(Z.TR,{children:[(0,o.jsx)(Z.TD,{children:"Ability to switch"}),(0,o.jsx)(Z.TD,{children:!0===i?"You can move to the Lightning engine at any time":"You can't move to the Lightning engine once Basic is configured"}),(0,o.jsx)(Z.TD,{children:"You can't move to the Basic engine once Lightning is configured"})]})]})})},Y=function(e){var t={file:"uploaded files",spreadsheet:"synced spreadsheets",message:"messages",generic:"synced data"}[e.variant];return(0,o.jsx)(f,{children:(0,o.jsxs)(a.xv,{textStyle:"paragraph",children:["The order of rows and columns in ",t," may differ from how they appear in your model. This is expected behavior and applies to all sync modes."," ",(0,o.jsx)(m.r,{variant:"inline",href:"/models/creating-models#row-and-column-ordering",children:"Learn more about row and column ordering \u2192"})]})})},K=n(10894),X=n(41664),Q=n.n(X),J={audiences:["M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2","M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z","M22 21v-2a4 4 0 0 0-3-3.87","M16 3.13a4 4 0 0 1 0 7.75"],lifecycle:["M3 17h4v4H3z","M10 13h4v8h-4z","M17 7h4v14h-4z","M5 13l5-4","M12 9l5-4"],sync:["M5 12H3l4-4 4 4H9a3 3 0 0 0 6 0","M19 12h2l-4 4-4-4h2a3 3 0 0 0-6 0","M7 8a3 3 0 0 1 3-3h4a3 3 0 0 1 3 3","M7 16a3 3 0 0 0 3 3h4a3 3 0 0 0 3-3"],realtime:["M13 2 3 14h9l-1 8 10-12h-9l1-8Z"],identity:["M8 7a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z","M16 7a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z","M12 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z","M8 7v2a4 4 0 0 0 4 4","M16 7v2a4 4 0 0 1-4 4","M12 15v-2"],ai:["M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .962 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.582a.5.5 0 0 1 0 .962L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.962 0L9.937 15.5Z","M20 3v4","M22 5h-4"],governance:["M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z","M9 12l2 2 4-4"],matchbooster:["M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2","M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z","M19 8l3-3","M22 5h-4","M22 5v4"]},ee=function(e){var t=e.name,n=e.size,r=e.color,i=J[t];return i?(0,o.jsx)(K.JO,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",color:r,boxSize:"".concat(n,"px"),children:i.map((function(e,t){return(0,o.jsx)("path",{d:e},t)}))}):null},te=function(e){var t=e.title,n=e.href,r=e.variant,i=void 0===r?"primary":r,s=e.icon,u=e.destination,c=e.children,l="primary"===i;return(0,o.jsx)(Q(),{passHref:!0,href:n,children:(0,o.jsxs)(a.kC,{as:"a",direction:"column",border:"1px solid",borderColor:l?"primary.border":"base.border",borderRadius:"xl",padding:l?6:5,height:"100%",bg:l?"primary.background":"base.lightBackgroun
1d",boxShadow:"none",textDecoration:"none",cursor:"pointer",outline:"none",_hover:{textDecoration:"none",bg:l?"primary.backgroundHover":"base.background"},_focusVisible:{boxShadow:"outline"},transition:"background-color 150ms ease-out",children:[s&&(0,o.jsx)(a.xu,{mb:l?3:2,children:(0,o.jsx)(ee,{name:s,size:l?24:20,color:l?"primary.base":"text.tertiary"})}),(0,o.jsx)(a.xv,{fontFamily:"heading",fontWeight:"semibold",fontSize:l?"lg":"md",color:"text.primary",mb:l?2:1,children:t}),(0,o.jsx)(a.xv,{fontSize:l?"md":"sm",color:"text.secondary",lineHeight:"1.6",flex:"1",mb:u?l?4:3:0,children:c}),u&&(0,o.jsxs)(a.xv,{fontSize:"sm",fontWeight:"semibold",color:"primary.base",mt:"auto",display:"flex",alignItems:"center",gap:1,transition:"color 150ms ease-out",sx:{"a:hover &":{color:"primary.hover"}},children:[u,(0,o.jsx)(a.xu,{as:"span",fontSize:"sm",transition:"transform 150ms ease-out",sx:{"a:hover &":{transform:"translateX(4px)"}},children:"\u2192"})]})]})})},ne=function(e){var t=e.columns,n=e.children,r=null!==t&&void 0!==t?t:3;return(0,o.jsx)(a.MI,{columns:{base:1,md:Math.min(r,2),lg:r},spacing:5,my:6,children:n})};var re=n(70917),ie=n(67294);function oe(){var e,t,n=(e=["\n  from { opacity: 0; transform: translateY(4px); }\n  to { opacity: 1; transform: translateY(0); }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return oe=function(){return n},n}var ae=(0,re.F4)(oe()),se=["Choose your goal","Narrow it down","Your results"],ue=function(e){var t=e.current;return(0,o.jsx)(a.kC,{align:"center",gap:2,mb:4,children:se.map((function(e,n){return(0,o.jsxs)(a.kC,{align:"center",gap:2,children:[n>0&&(0,o.jsx)(a.xu,{width:"16px",height:"1px",bg:n<=t?"primary.border":"base.border"}),(0,o.jsxs)(a.kC,{align:"center",gap:1.5,children:[(0,o.jsx)(a.xu,{width:"6px",height:"6px",borderRadius:"full",bg:n<=t?"primary.base":"base.border",transition:"background 200ms ease-out"}),(0,o.jsx)(a.xv,{fontSize:"xs",fontWeight:n===t?"semibold":"normal",color:n===t?"primary.base":"text.tertiary",transition:"color 200ms ease-out",children:e})]})]},e)}))})},ce={sync:{question:"What kind of data are you sending?",options:[{label:"Warehouse data",result:{recommended:{name:"Reverse ETL",description:"Send modeled warehouse data to sales, support, marketing, and operational tools.",href:"/getting-started/concepts",family:"cdp",status:"public",docsReady:!0},alsoRelevant:[{name:"Customer Studio",description:"Build audiences on top of your warehouse data.",href:"/customer-studio/overview",family:"cdp",status:"public",docsReady:!0}],startHere:[{label:"How data activation works",href:"/getting-started/concepts"},{label:"Destinations overview",href:"/destinations/overview"},{label:"Getting started for data teams",href:"/getting-started/data"}]}},{label:"App or website events",result:{recommended:{name:"Hightouch Events",description:"Collect behavioral data from your app or website and send it to your tools.",href:"/events/overview",family:"cdp",status:"public",docsReady:!0},alsoRelevant:[{name:"Real-Time Personalization",description:"Act on behavioral data immediately.",href:"/real-time/overview",family:"cdp",status:"public",docsReady:!0}],startHere:[{label:"Events overview",href:"/events/overview"},{label:"Getting started for data teams",href:"/getting-started/data"}]}},{label:"Both",result:{recommended:{name:"Reverse ETL",description:"Start by syncing warehouse data to your tools, then add behavioral data collection.",href:"/getting-started/concepts",family:"cdp",status:"public",docsReady:!0},alsoRelevant:[{name:"Hightouch Events",description:"Collect behavioral data from your app or website.",href:"/events/overview",family:"cdp",status:"public",docsReady:!0}],startHere:[{label:"How data activation works",href:"/getting-started/concepts"},{label:"Events overview",href:"/events/overview"}]}}]},audiences:{question:"Where will you use these audiences?",options:[{label:"Ad platforms",result:{recommended:{name:"Customer Studio",description:"Build audiences from warehouse data and send them to ad platforms.",href:"/customer-studio/
1overview",family:"cdp",status:"public",docsReady:!0},alsoRelevant:[{name:"Match Booster",description:"Improve match rates in ad platforms.",href:"/match-booster/overview",family:"cdp",status:"public",docsReady:!0}],startHere:[{label:"Customer Studio overview",href:"/customer-studio/overview"},{label:"Match Booster overview",href:"/match-booster/overview"},{label:"Getting started for business users",href:"/getting-started/business"}]}},{label:"CRM and messaging tools",result:{recommended:{name:"Customer Studio",description:"Build audiences and send them to CRM, lifecycle, and messaging tools.",href:"/customer-studio/overview",family:"cdp",status:"public",docsReady:!0},startHere:[{label:"Customer Studio overview",href:"/customer-studio/overview"},{label:"Getting started for business users",href:"/getting-started/business"}]}},{label:"Both",result:{recommended:{name:"Customer Studio",description:"Build audiences once and send them to both ad platforms and messaging tools.",href:"/customer-studio/overview",family:"cdp",status:"public",docsReady:!0},alsoRelevant:[{name:"Match Booster",description:"Improve match rates in ad platforms.",href:"/match-booster/overview",family:"cdp",status:"public",docsReady:!0}],startHere:[{label:"Customer Studio overview",href:"/customer-studio/overview"},{label:"Match Booster overview",href:"/match-booster/overview"}]}}]},engage:{question:"How do you want to manage your campaigns?",options:[{label:"I want to design the campaign flow myself",result:{recommended:{name:"Customer Studio",description:"Build audiences, design multi-step journeys, trigger messages from customer behavior, and measure results.",href:"/customer-studio/overview",family:"cdp",status:"public",docsReady:!0},alsoRelevant:[{name:"Intelligence",description:"Run experiments, compare audiences, and measure campaign lift.",href:"/campaign-intelligence/overview",family:"cdp",status:"public",docsReady:!0}],startHere:[{label:"Customer Studio overview",href:"/customer-studio/overview"},{label:"Intelligence overview",href:"/campaign-intelligence/overview"},{label:"Getting started for business users",href:"/getting-started/business"}]}},{label:"I want AI to choose what each person gets",result:{recommended:{name:"AI Decisioning",description:"AI picks the best message, channel, and timing for each customer using reinforcement learning, then measures what worked.",href:"/ai-decisioning/overview",family:"aid",status:"public",docsReady:!0},alsoRelevant:[{name:"Customer Studio",description:"Build the audiences that AI Decisioning optimizes.",href:"/customer-studio/overview",family:"cdp",status:"public",docsReady:!0}],startHere:[{label:"AI Decisioning overview",href:"/ai-decisioning/overview"},{label:"Customer Studio overview",href:"/customer-studio/overview"}]}},{label:"I'm not sure yet",result:{recommended:{name:"Customer Studio",description:"Start by building audiences and campaigns. You can layer in AI Decisioning later to automate per-customer decisions.",href:"/customer-studio/overview",family:"cdp",status:"public",docsReady:!0},alsoRelevant:[{name:"AI Decisioning",description:"Add AI-driven per-customer optimization when you're ready.",href:"/ai-decisioning/overview",family:"aid",status:"public",docsReady:!0}],startHere:[{label:"Customer Studio overview",href:"/customer-studio/overview"},{label:"AI Decisioning overview",href:"/ai-decisioning/overview"},{label:"Getting started for business users",href:"/getting-started/business"}]}}]},personalize:{question:"Where should personalization happen?",options:[{label:"On your website or in your app",result:{recommended:{name:"Real-Time Personalization",description:"Power onsite and in-app experiences with customer context and behavior.",href:"/real-time/overview",family:"cdp",status:"public",docsReady:!0},alsoRelevant:[{name:"Hightouch Events",description:"Collect the behavioral data that drives personalization.",href:"/events/overview",family:"cdp",status:"public",docsReady:!0}],startHere:[{label:"Real-Time overview",href:"/real-time/overview"},{label:"Events overview",href:"/events/overview"}]}}
1,{label:"In emails, SMS, or push notifications",result:{recommended:{name:"AI Decisioning",description:"Let AI pick the best message, channel, and timing for each customer.",href:"/ai-decisioning/overview",family:"aid",status:"public",docsReady:!0},alsoRelevant:[{name:"Customer Studio",description:"Build audiences to target with optimized messaging.",href:"/customer-studio/overview",family:"cdp",status:"public",docsReady:!0}],startHere:[{label:"AI Decisioning overview",href:"/ai-decisioning/overview"},{label:"Customer Studio overview",href:"/customer-studio/overview"}]}},{label:"Both",result:{recommended:{name:"Real-Time Personalization",description:"Start with onsite and in-app personalization, then add AI-driven messaging optimization.",href:"/real-time/overview",family:"cdp",status:"public",docsReady:!0},alsoRelevant:[{name:"AI Decisioning",description:"Let AI choose the best message, channel, and timing per customer.",href:"/ai-decisioning/overview",family:"aid",status:"public",docsReady:!0}],startHere:[{label:"Real-Time overview",href:"/real-time/overview"},{label:"AI Decisioning overview",href:"/ai-decisioning/overview"}]}}]},ai:{question:"What should AI help you with?",options:[{label:"Choosing what each customer gets",result:{recommended:{name:"AI Decisioning",description:"AI picks the best message, channel, and timing for each customer using reinforcement learning.",href:"/ai-decisioning/overview",family:"aid",status:"public",docsReady:!0},startHere:[{label:"AI Decisioning overview",href:"/ai-decisioning/overview"}]}},{label:"Picking the right audience to target",result:{recommended:{name:"Customer Studio",description:"Build and refine audiences using an AI agent or visual builder, then run experiments to see which audiences perform best.",href:"/customer-studio/overview",family:"cdp",status:"public",docsReady:!0},alsoRelevant:[{name:"Intelligence",description:"Run experiments and measure which audiences perform best.",href:"/campaign-intelligence/overview",family:"cdp",status:"public",docsReady:!0}],startHere:[{label:"Customer Studio overview",href:"/customer-studio/overview"},{label:"Intelligence overview",href:"/campaign-intelligence/overview"}]}},{label:"Both \u2014 audiences and what each person gets",result:{recommended:{name:"AI Decisioning",description:"Use AI to choose per-customer messaging, and Customer Studio to build and refine the audiences AI acts on.",href:"/ai-decisioning/overview",family:"aid",status:"public",docsReady:!0},alsoRelevant:[{name:"Customer Studio",description:"Use an AI agent or visual builder to create the audiences that AI Decisioning acts on.",href:"/customer-studio/overview",family:"cdp",status:"public",docsReady:!0}],startHere:[{label:"AI Decisioning overview",href:"/ai-decisioning/overview"},{label:"Customer Studio overview",href:"/customer-studio/overview"}]}}]}},le=[{label:"Sync data to my business tools",key:"sync"},{label:"Build audiences and send them to tools",key:"audiences"},{label:"Engage customers across channels",key:"engage"},{label:"Personalize website and app experiences",key:"personalize"},{label:"Let AI decide what each customer gets",key:"ai"}],de=function(e){var t=e.children,n=e.onClick;return(0,o.jsxs)(a.kC,{as:"button",onClick:n,align:"center",width:"100%",textAlign:"left",border:"1px solid",borderColor:"base.border",borderRadius:"xl",padding:4,bg:"white",cursor:"pointer",boxShadow:"none",transition:"background-color 150ms ease-out",_hover:{bg:"base.lightBackgroun
1d"},_focusVisible:{boxShadow:"outline",outline:"none"},children:[(0,o.jsx)(a.xv,{fontSize:"md",color:"text.primary",fontWeight:"medium",flex:"1",children:t}),(0,o.jsx)(K.JO,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:"text.tertiary",boxSize:"16px",flexShrink:0,ml:3,transition:"color 150ms ease-out, transform 150ms ease-out",sx:{"button:hover &":{color:"primary.base",transform:"translateX(2px)"}},children:(0,o.jsx)("path",{d:"M9 18l6-6-6-6"})})]})},fe=function(e){var t=e.children,n=e.onClick;return(0,o.jsx)(a.xu,{as:"button",onClick:n,color:"text.tertiary",fontSize:"sm",cursor:"pointer",borderRadius:"base",outline:"none",_hover:{color:"primary.base"},_focusVisible:{boxShadow:"outline"},bg:"transparent",border:"none",padding:0,children:t})},pe=function(e){var t=e.product,n=e.isPrimary,r=void 0!==n&&n;return(0,o.jsx)(Q(),{passHref:!0,href:t.href,children:(0,o.jsxs)(a.kC,{as:"a",direction:"column",border:"1px solid",borderColor:r?"primary.border":"base.border",borderRadius:"xl",padding:r?5:4,bg:r?"primary.background":"white",boxShadow:"none",textDecoration:"none",cursor:"pointer",_hover:{textDecoration:"none",bg:r?"primary.backgroundHover":"base.lightBackgroun
1d"},_focusVisible:{boxShadow:"outline",outline:"none"},transition:"background-color 150ms ease-out",children:[(0,o.jsxs)(a.xv,{fontFamily:"heading",fontWeight:"semibold",fontSize:r?"lg":"md",color:"text.primary",mb:1,children:[t.name,t.badge&&(0,o.jsx)(a.xv,{as:"span",fontSize:"xs",fontWeight:"medium",color:"text.tertiary",ml:2,children:t.badge})]}),(0,o.jsx)(a.xv,{fontSize:"sm",color:"text.secondary",lineHeight:"1.6",flex:"1",children:t.description}),(0,o.jsxs)(a.xv,{fontSize:"sm",fontWeight:"semibold",color:"primary.base",mt:2,display:"flex",alignItems:"center",gap:1,transition:"color 150ms ease-out",sx:{"a:hover &":{color:"primary.hover"}},children:[r?"Get started":"Learn more",(0,o.jsx)(a.xu,{as:"span",transition:"transform 150ms ease-out",sx:{"a:hover &":{transform:"translateX(4px)"}},children:"\u2192"})]})]})})},he=function(){var e=(0,ie.useState)({phase:"q1"}),t=e[0],n=e[1],r=(0,ie.useCallback)((function(e){n({phase:"q2",branchKey:e})}),[]),i=(0,ie.useCallback)((function(e,t){n({phase:"result",branchKey:e,result:t})}),[]),s=(0,ie.useCallback)((function(){"q2"===t.phase?n({phase:"q1"}):"result"===t.phase&&n({phase:"q2",branchKey:t.branchKey})}),[t]),u=(0,ie.useCallback)((function(){n({phase:"q1"})}),[]);return(0,o.jsxs)(a.xu,{id:"product-finder",border:"1px solid",borderColor:"base.border",borderRadius:"xl",padding:6,bg:"base.lightBackgroun
1d",boxShadow:"none",my:8,children:["q1"===t.phase&&(0,o.jsxs)(a.xu,{animation:"".concat(ae," 200ms ease-out"),children:[(0,o.jsx)(ue,{current:0}),(0,o.jsx)(a.xv,{fontFamily:"heading",fontWeight:"semibold",fontSize:"lg",color:"text.primary",mb:1,children:"Which product should I start with?"}),(0,o.jsx)(a.xv,{fontSize:"sm",color:"text.secondary",mb:5,children:"Answer two quick questions and we will point you to the right starting point."}),(0,o.jsx)(a.kC,{direction:"column",gap:3,children:le.map((function(e){return(0,o.jsx)(de,{onClick:function(){return r(e.key)},children:e.label},e.key)}))}),(0,o.jsxs)(a.kC,{mt:4,pt:4,borderTop:"1px solid",borderTopColor:"base.border",align:"center",gap:2,children:[(0,o.jsxs)(K.JO,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",color:"text.tertiary",boxSize:"14px",flexShrink:0,children:[(0,o.jsx)("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z"}),(0,o.jsx)("path",{d:"M9 12l2 2 4-4"})]}),(0,o.jsx)(Q(),{passHref:!0,href:"/workspace-management/governance",children:(0,o.jsx)(a.xv,{as:"a",fontSize:"sm",color:"text.secondary",borderRadius:"base",outline:"none",_hover:{color:"primary.base",textDecoration:"underline"},_focusVisible:{boxShadow:"outline"},children:"Need help with setup, permissions, or approvals? Start with governance and admin docs."})})]})]}),"q2"===t.phase&&(0,o.jsxs)(a.xu,{animation:"".concat(ae," 200ms ease-out"),children:[(0,o.jsx)(ue,{current:1}),(0,o.jsx)(a.kC,{align:"center",gap:2,mb:1,children:(0,o.jsx)(fe,{onClick:s,children:"\u2190 Back"})}),(0,o.jsx)(a.xv,{fontFamily:"heading",fontWeight:"semibold",fontSize:"lg",color:"text.primary",mb:1,children:ce[t.branchKey].question}),(0,o.jsx)(a.xv,{fontSize:"sm",color:"text.secondary",mb:5,children:"This helps us narrow down the best starting point."}),(0,o.jsx)(a.kC,{direction:"column",gap:3,children:ce[t.branchKey].options.map((function(e){return(0,o.jsx)(de,{onClick:function(){return i(t.branchKey,e.result)},children:e.label},e.label)}))})]}),"result"===t.phase&&(0,o.jsxs)(a.xu,{animation:"".concat(ae," 200ms ease-out"),children:[(0,o.jsx)(ue,{current:2}),(0,o.jsxs)(a.kC,{align:"center",gap:3,mb:4,children:[(0,o.jsx)(fe,{onClick:s,children:"\u2190 Back"}),(0,o.jsx)(a.xv,{fontSize:"sm",color:"text.tertiary",children:"\xb7"}),(0,o.jsx)(fe,{onClick:u,children:"Start over"})]}),(0,o.jsx)(a.xv,{fontFamily:"heading",fontWeight:"semibold",fontSize:"lg",color:"text.primary",mb:4,children:"Recommended for you"}),(0,o.jsx)(pe,{product:t.result.recommended,isPrimary:!0}),t.result.alsoRelevant&&t.result.alsoRelevant.length>0&&(0,o.jsxs)(a.xu,{mt:4,children:[(0,o.jsx)(a.xv,{fontSize:"sm",fontWeight:"semibold",color:"text.secondary",mb:2,children:"Also relevant"}),(0,o.jsx)(a.kC,{direction:"column",gap:2,children:t.result.alsoRelevant.map((function(e){return(0,o.jsx)(pe,{product:e},e.name)}))})]}),(0,o.jsxs)(a.xu,{mt:5,children:[(0,o.jsx)(a.xv,{fontSize:"sm",fontWeight:"semibold",color:"text.secondary",mb:2,children:"Start here"}),(0,o.jsx)(a.kC,{direction:"column",gap:2,children:t.result.startHere.map((function(e){return(0,o.jsx)(Q(),{passHref:!0,href:e.href,children:(0,o.jsxs)(a.kC,{as:"a",align:"center",gap:1.5,fontSize:"sm",color:"primary.base",textDecoration:"none",borderRadius:"base",outline:"none",_hover:{color:"primary.hover",textDecoration:"underline"},_focusVisible:{boxShadow:"outline"},children:[(0,o.jsx)(a.xu,{as:"span",fontSize:"xs",children:"\u2192"}),e.label]})},e.href)}))})]})]})]})},me=function(e){var t=e.size;return(0,o.jsxs)(K.JO,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round",boxSize:"".concat(t,"px"),color:"upsell.base",flexShrink:0,children:[(0,o.jsx)("path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .962 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.582a.5.5 0 0 1 0 .962L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.962 0L9.937 15.5Z"}),(0,o.jsx)("path",{d:"M20 3v4"}),(0,o.jsx)("path",{d:"M22 5h-4"})]})},ve=function(e){var t=e.href,n=e.children,r=(0,o.jsxs)(a.kC,{align:"start",ga
1p:2,fontSize:"md",color:"text.secondary",lineHeight:"1.6",sx:{p:{margin:0}},children:[(0,o.jsx)(a.xu,{as:"span",color:"upsell.base",flexShrink:0,lineHeight:"1.6",fontSize:"md",children:"\u2022"}),(0,o.jsx)(a.xu,{sx:{p:{margin:0,fontSize:"md",lineHeight:"1.6"}},children:n})]});return t?(0,o.jsx)(Q(),{passHref:!0,href:t,children:(0,o.jsx)(a.xu,{as:"a",display:"block",borderRadius:"base",outline:"none",textDecoration:"none",_hover:{textDecoration:"none","& > div":{color:"text.primary"}},_focusVisible:{boxShadow:"outline"},children:r})}):r},ge=function(e){var t=e.children;return(0,o.jsxs)(a.kC,{border:"1px solid",borderColor:"purple.200",borderRadius:"xl",bg:"upsell.background",padding:5,mb:8,gap:3,align:"start",sx:{a:{color:"var(--theme-colors-link-hover)"}},children:[(0,o.jsx)(me,{size:20}),(0,o.jsxs)(a.xu,{flex:"1",children:[(0,o.jsx)(a.xv,{fontFamily:"heading",fontWeight:"semibold",fontSize:"sm",color:"upsell.text",textTransform:"uppercase",letterSpacing:"wider",mb:2,children:"New in the docs"}),(0,o.jsx)(a.kC,{direction:"column",gap:1.5,children:t})]})]})}},90907:function(e,t,n){"use strict";n.d(t,{r:function(){return p}});var r=n(41799),i=n(69396),o=n(99534),a=n(85893),s=n(68527),u=n(41664),c=n.n(u),l=n(67294),d=n(19671);function f(e){return"string"===typeof e?e:"number"===typeof e?String(e):""}var p=(0,l.forwardRef)((function(e,t){var n=e.href,u=e.newTab,p=e.children,h=e.variant,m=void 0===h?"primary":h,v=e.onClick,g=(0,o.Z)(e,["href","newTab","children","variant","onClick"]),y=(0,l.useCallback)((function(e){!function(e){return!!e&&/^https?:\/\//.test(e)&&!e.includes("hightouch.com")}(n)?(null===n||void 0===n?void 0:n.startsWith("/"))&&!(null===n||void 0===n?void 0:n.startsWith("#"))&&(0,d.j)("Internal Link Clicked",{page_path:window.location.pathname,link_url:n,link_text:f(p)}):(0,d.j)("Outbound Link Clicked",{page_path:window.location.pathname,link_url:n,link_text:f(p)}),null===v||void 0===v||v(e)}),[n,p,v]),b=u||function(e){return!!e&&e.includes("app.hightouch.com")}(n),x=(0,a.jsx)(s.rU,(0,i.Z)((0,r.Z)({ref:t,href:n,target:b?"_blank":void 0,rel:b?"noreferrer noopener":void 0,variant:m,onClick:y},g),{children:p}));return(null===n||void 0===n?void 0:n.startsWith("/"))?(0,a.jsx)(c(),{passHref:!0,href:n,children:x}):x}));p.displayName="Link"},28551:function(e,t,n){"use strict";n.d(t,{HC:function(){return l},GS:function(){return u},QI:function(){return c}});var r=n(41799),i=n(69396),o=n(99534),a=n(85893),s=n(68527),u=function(e){var t=e.children,n=(0,o.Z)(e,["children"]);return(0,a.jsx)(s.xu,(0,i.Z)((0,r.Z)({as:"ol",py:0,px:5,my:6,sx:{"& li > ul, & li > ol":{my:0},"ol ul, ol ol":{my:0}}},n),{children:t}))},c=function(e){var t=e.children,n=(0,o.Z)(e,["children"]);return(0,a.jsx)(s.xu,(0,i.Z)((0,r.Z)({as:"ul",py:0,px:5,my:6,listStyleType:"disc",sx:{"& li > ul, & li > ol":{my:0},"ul ul, ul ol":{my:0}}},n),{children:t}))},l=function(e){var t=e.children,n=(0,o.Z)(e,["children"]);return(0,a.jsx)(s.xu,(0,i.Z)((0,r.Z)({as:"li",my:2},n),{children:t}))}},25058:function(e,t,n){"use strict";n.d(t,{c:function(){return h},u:function(){return p}});var r=n(41799),i=n(69396),o=n(99534),a=n(85893),s=n(97375),u=n(15193),c=n(79714),l=n(17182),d=n(19671),f=n(90907),p=function(e){var t=e.message,n=e.onClick,p=e.children,h=(0,o.Z)(e,["message","onClick","children"]),m=(0,s.qY)(),v=m.isOpen,g=m.onOpen,y=m.onClose;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.zx,(0,i.Z)((0,r.Z)({variant:"inlineLink"},h),{onClick:function(e){null===n||void 0===n||n(e),(0,d.j)("Open Pylon",{page:window.location.pathname}),(0,l.Y)("".concat(t))||g()},children:p})),(0,a.jsxs)(c.u_,{isCentered:!0,isOpen:v,onClose:y,children:[(0,a.jsx)(c.ZA,{bg:"blackAlpha.500",backdropFilter:"blur(10px)"}),(0,a.jsxs)(c.hz,{children:[(0,a.jsx)(c.xB,{children:"Get in touch!"}),(0,a.jsxs)(c.fe,{children:[(0,a.jsx)(f.r,{href:"https://app.hightouch.com/login",children:"Sign in"})," to chat with a member of our team, or reach out to us via email at"," ",(0,a.jsx)(f.r,{href:"mailto:[email protected]",children:"[email protected]"}),"."]}),(0,a.jsx)(c.mz,{children:(0,a.jsx)(u.zx,{onClick:y,children:"Close"})})]})]})]})},h=function(e){var t=e.pylonText,n=e.linkText,r=e.children;return(0,a.jsx)(p,{fontWeight:"medium",verticalAlign:"unset",message:t,children:r||n})}},16294:function(e,t,n){"use strict";n.d(t,{TD:function(){return _},TH:function(){return S},TR:function(){return w},i:function(){return x}});var r=n(85893),i=n(5993),o=n(15031),a=n(67294);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var c=["overflow","overflowX","className"],l=["className"],d=["placement"],f=["isNumeric"],p=["isNumeric"],h=(0,i.Gp)((function(e,t){var n,r=e.overflow,l=e.overflowX,d=e.className,f=u(e,c);
1return a.createElement(i.m$.div,s({ref:t,className:(0,o.cx)("chakra-table__container",d)},f,{__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:null!=(n=null!=r?r:l)?n:"auto",overflowY:"hidden",maxWidth:"100%"}}))})),m=(0,i.Gp)((function(e,t){var n=(0,i.jC)("Table",e),r=(0,i.Lr)(e),c=r.className,d=u(r,l);return a.createElement(i.Fo,{value:n},a.createElement(i.m$.table,s({role:"table",ref:t,__css:n.table,className:(0,o.cx)("chakra-table",c)},d)))}));o.Ts&&(m.displayName="Table");var v=(0,i.Gp)((function(e,t){var n=e.placement,r=void 0===n?"bottom":n,o=u(e,d),c=(0,i.yK)();return a.createElement(i.m$.caption,s({},o,{ref:t,__css:s({},c.caption,{captionSide:r})}))}));o.Ts&&(v.displayName="TableCaption");var g=(0,i.Gp)((function(e,t){var n=e.isNumeric,r=u(e,f),o=(0,i.yK)();return a.createElement(i.m$.th,s({},r,{ref:t,__css:o.th,"data-is-numeric":n}))})),y=(0,i.Gp)((function(e,t){var n=(0,i.yK)();return a.createElement(i.m$.tr,s({role:"row"},e,{ref:t,__css:n.tr}))})),b=(0,i.Gp)((function(e,t){var n=e.isNumeric,r=u(e,p),o=(0,i.yK)();return a.createElement(i.m$.td,s({role:"gridcell"},r,{ref:t,__css:o.td,"data-is-numeric":n}))})),x=function(e){var t=e.children;return(0,r.jsx)(h,{my:12,width:"100%",mx:"auto",overflow:{base:"auto",md:void 0},whiteSpace:{base:"pre",md:"unset"},sx:{tableLayout:"auto",borderCollapse:"collapse"},children:(0,r.jsx)(m,{children:t})})},_=function(e){var t=e.children;return(0,r.jsx)(b,{px:4,py:2,textAlign:"left",borderBottom:"1px solid",borderColor:"base.border",children:t})},w=function(e){var t=e.children;return(0,r.jsx)(y,{children:t})},S=function(e){var t=e.children;return(0,r.jsx)(g,{as:"th",px:4,py:2,textAlign:"left",fontWeight:"semibold",fontSize:"sm",textTransform:"uppercase",bg:"base.background",color:"text.primary",children:t})}},77663:function(e){!function(){var t={229:function(e){var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"===typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"===typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();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=[];++l<t;)s&&s[l].run();l=-1,t=u.length}s=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||c||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,r),a=!1}finally{a&&delete n[e]}return o.exports}r.ab="//";var i=r(229);e.exports=i}()},9008:function(e,t,n){e.exports=n(5443)},25675:function(e,t,n){e.exports=n(28045)},41664:function(e,t,n){e.exports=n(48418)},11163:function(e,t,n){e.exports=n(90387)},4298:function(e,t,n){e.exports=n(20699)},92703:function(e,t,n){"use strict";
1var r=n(50414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},45697:function(e,t,n){e.exports=n(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},69590:function(e){var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(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(!o(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(!o(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(i&&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)&&!o(e[c[u]],a[c[u]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return o(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},69921:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function _(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case d:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case v:case m:case u:return e;default:return t}}case i:return t}}}function w(e){return _(e)===d}t.AsyncMode=l,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=u,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=v,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return w(e)||_(e)===l},t.isConcurrentMode=w,t.isContextConsumer=function(e){return _(e)===c},t.isContextProvider=function(e){return _(e)===u},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===f},t.isFragment=function(e){return _(e)===o},t.isLazy=function(e){return _(e)===v},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===i},t.isProfiler=function(e){return _(e)===s},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===d||e===s||e===a||e===p||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===u||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===g)},t.typeOf=_},59864:function(e,t,n){"use strict";e.exports=n(69921)},2177:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r="Invariant failed";function i(e,t){if(!e)throw new Error(r)}},11742:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEac
1h((function(t){e.addRange(t)})),t&&t.focus()}}},97326:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},4942:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},87462:function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:function(){return r}})},61120:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:function(){return r}})},94578:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(89611);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},63366:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,{Z:function(){return r}})},89611:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},11151:function(e,t,n){"use strict";n.d(t,{Zo:function(){return s},ah:function(){return o}});var r=n(67294);const i=r.createContext({});function o(e){const t=r.useContext(i);return r.useMemo((()=>"function"===typeof e?e(t):{...t,...e}),[t,e])}const a={};function s({components:e,children:t,disableParentContext:n}){let s=o(e);return n&&(s=e||a),r.createElement(i.Provider,{value:s},t)}},20943: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<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},47568:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,u,"next",e)}function u(e){r(a,i,o,s,u,"throw",e)}s(void 0)}))}}n.d(t,{Z:function(){return i}})},13375:function(e,t,n){"use strict";function r(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:function(){return r}})},41799:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){r(e,t,n[t])}))}return e}n.d(t,{Z:function(){return i}})},69396:function(e,t,n){"use strict";function r(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(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}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}n.d(t,{Z:function(){return r}})},99534:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{Z:function(){return r}})},29815:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(20943);var i=n(13375);var o=n(91566);function a(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,i.Z)(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.")}()}},91566:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(20943);function i(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(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},95421:function(e,t,n){"use strict";n.d(t,{M:function(){return v}});var r=n(97582),i=n(67294),o=n(6337),a=n(4454),s=n(240),u=n(96681),c=n(76316),l=function(e){var t=e.children,n=e.initial,o=e.isPresent,a=e.onExitComplete,l=e.custom,f=e.presenceAffectsLayout,p=(0,u.h)(d),h=(0,c.M)(),m=(0,i.useMemo)((function(){return{id:h,initial:n,isPresent:o,custom:l,onExitComplete:function(e){var t,n;p.set(e,!0);try{for(var i=(0,r.__values)(p.values()),o=i.next();!o.done;o=i.next()){if(!o.value)return}}catch(s){t={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}null===a||void 0===a||a()},register:function(e){return p.set(e,!1),function(){return p.delete(e)}}}}),f?void 0:[o]);return(0,i.useMemo)((function(){p.forEach((function(e,t){return p.set(t,!1)}))}),[o]),i.useEffect((function(){!o&&!p.size&&(null===a||void 0===a||a())}),[o]),i.createElement(s.O.Provider,{value:m},t)};function d(){return new Map}var f=n(25364),p=n(58868),h=n(65411),m=function(e){return e.key||""};var v=function(e){var t=e.children,n=e.custom,s=e.initial,u=void 0===s||s,c=e.onExitComplete,d=e.exitBeforeEnter,v=e.presenceAffectsLayout,g=void 0===v||v,y=(0,r.__read)((0,o.N)(),1)[0],b=(0,i.useContext)(f.p).forceRender;b&&(y=b);var x=(0,a.t)(),_=function(e){var t=[];
1return i.Children.forEach(e,(function(e){(0,i.isValidElement)(e)&&t.push(e)})),t}(t),w=_,S=new Set,k=(0,i.useRef)(w),E=(0,i.useRef)(new Map).current,C=(0,i.useRef)(!0);if((0,p.L)((function(){C.current=!1,function(e,t){e.forEach((function(e){var n=m(e);t.set(n,e)}))}(_,E),k.current=w})),(0,h.z)((function(){C.current=!0,E.clear(),S.clear()})),C.current)return i.createElement(i.Fragment,null,w.map((function(e){return i.createElement(l,{key:m(e),isPresent:!0,initial:!!u&&void 0,presenceAffectsLayout:g},e)})));w=(0,r.__spreadArray)([],(0,r.__read)(w),!1);for(var j=k.current.map(m),T=_.map(m),R=j.length,O=0;O<R;O++){var P=j[O];-1===T.indexOf(P)&&S.add(P)}return d&&S.size&&(w=[]),S.forEach((function(e){if(-1===T.indexOf(e)){var t=E.get(e);if(t){var r=j.indexOf(e);w.splice(r,0,i.createElement(l,{key:m(t),isPresent:!1,onExitComplete:function(){E.delete(e),S.delete(e);var t=k.current.findIndex((function(t){return t.key===e}));if(k.current.splice(t,1),!S.size){if(k.current=_,!1===x.current)return;y(),c&&c()}},custom:n,presenceAffectsLayout:g},t))}}})),w=w.map((function(e){var t=e.key;return S.has(t)?e:i.createElement(l,{key:m(e),isPresent:!0,presenceAffectsLayout:g},e)})),i.createElement(i.Fragment,null,S.size?w:w.map((function(e){return(0,i.cloneElement)(e)})))}},15947:function(e,t,n){"use strict";n.d(t,{oO:function(){return a}});var r=n(67294),i=n(240),o=n(76316);function a(){var e=(0,r.useContext)(i.O);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,a=e.register,s=(0,o.M)();(0,r.useEffect)((function(){return a(s)}),[]);return!t&&n?[!1,function(){return null===n||void 0===n?void 0:n(s)}]:[!0]}},25364:function(e,t,n){"use strict";n.d(t,{p:function(){return r}});var r=(0,n(67294).createContext)({})},240:function(e,t,n){"use strict";n.d(t,{O:function(){return r}});var r=(0,n(67294).createContext)(null)},94930:function(e,t,n){"use strict";n.d(t,{E:function(){return ya}});var r=n(97582),i=n(67294),o=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},a={measureLayout:o(["layout","layoutId","drag"]),animation:o(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:o(["exit"]),drag:o(["drag","dragControls"]),focus:o(["whileFocus"]),hover:o(["whileHover","onHoverStart","onHoverEnd"]),tap:o(["whileTap","onTap","onTapStart","onTapCancel"]),pan:o(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:o(["whileInView","onViewportEnter","onViewportLeave"])};var s=(0,i.createContext)({strict:!1}),u=Object.keys(a),c=u.length;var l=(0,i.createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),d=(0,i.createContext)({});var f=n(240),p=n(58868),h={current:null},m=!1;function v(){return!m&&function(){if(m=!0,"undefined"!==typeof window)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return h.current=e.matches};e.addListener(t),t()}else h.current=!1}(),(0,r.__read)((0,i.useState)(h.current),1)[0]}function g(e,t,n,r){var o=(0,i.useContext)(s),a=(0,i.useContext)(d).visualElement,u=(0,i.useContext)(f.O),c=function(){var e=v(),t=(0,i.useContext)(l).reducedMotion;return"never"!==t&&("always"===t||e)}(),h=(0,i.useRef)(void 0);r||(r=o.renderer),!h.current&&r&&(h.current=r(e,{visualState:t,parent:a,props:n,presenceId:null===u||void 0===u?void 0:u.id,blockInitialAnimation:!1===(null===u||void 0===u?void 0:u.initial),shouldReduceMotion:c}));var m=h.current;return(0,p.L)((function(){null===m||void 0===m||m.syncRender()})),(0,i.useEffect)((function(){var e;null===(e=null===m||void 0===m?void 0:m.animationState)||void 0===e||e.animateChanges()})),(0,p.L)((function(){return function(){return null===m||void 0===m?void 0:m.notifyUnmount()}}),[]),m}function y(e){return"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function b(e){return Array.isArray(e)}function x(e){return"string"===typeof e||b(e)}function _(e,t,n,r,i){var o;return void 0===r&&(r={}),void 0===i&&(i={}),"function"===typeof t&&(t=t(null!==n&&void 0!==n?n:e.custom,r,i)),"string"===typeof t&&(t=null===(o=e.variants)||void 0===o?void 0:o[t]),"function"===typeof t&&(t=t(null!==n&&void 0!==n?n:e.custom,r,i
1)),t}function w(e,t,n){var r=e.getProps();return _(r,t,null!==n&&void 0!==n?n:r.custom,function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.get()})),t}(e),function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.getVelocity()})),t}(e))}function S(e){var t;return"function"===typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||x(e.initial)||x(e.animate)||x(e.whileHover)||x(e.whileDrag)||x(e.whileTap)||x(e.whileFocus)||x(e.exit)}function k(e){return Boolean(S(e)||e.variants)}function E(e){var t=function(e,t){if(S(e)){var n=e.initial,r=e.animate;return{initial:!1===n||x(n)?n:void 0,animate:x(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,i.useContext)(d)),n=t.initial,r=t.animate;return(0,i.useMemo)((function(){return{initial:n,animate:r}}),[C(n),C(r)])}function C(e){return Array.isArray(e)?e.join(" "):e}var j=n(11741),T=n(96681),R=n(89073);const O=(e,t,n)=>-n*e+n*t+e;function P(e,t){return t?e*(1e3/t):0}function A(e,t){-1===e.indexOf(t)&&e.push(t)}function D(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var I=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return A(this.subscriptions,e),function(){return D(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 i=0;i<r;i++){var o=this.subscriptions[i];o&&o(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),N=function(){function e(e){var t,n=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new I,this.velocityUpdateSubscribers=new I,this.renderSubscribers=new I,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),n.prev=n.current,n.current=e;var r=(0,R.$B)(),i=r.delta,o=r.timestamp;n.lastUpdated!==o&&(n.timeDelta=i,n.lastUpdated=o,R.ZP.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),t&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return R.ZP.postRender(n.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t)))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?P(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.hasAnimated=!0,t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function M(e){return new N(e)}var F=function(e){return Boolean(null!==e&&"object"===typeof e&&e.getVelocity)};const B=(e,t,n)=>Math.min(Math.max(n,e),t),L=.001;function z({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o,a=1-t;a=B(.05,1,a),e=B(.01,10,e/1e3),a<1?(i=t=>{const r=t*a,i=r*e,o=r-n,s=U(t,a),u=Math.exp(-i);return L-o/s*u},o=t=>{const r=t*a*e,o=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,u=Math.exp(-r),c=U(Math.pow(t,2),a);return(-i(t)+L>0?-1:1)*((o-s)*u)/c}):(i=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,o=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let i=1;i<12;i++)r-=e(r)/t(r);return r}(i,o,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;
1return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}function U(e,t){return e*Math.sqrt(1-t*t)}const H=["duration","bounce"],V=["stiffness","damping","mass"];function W(e,t){return t.some((t=>void 0!==e[t]))}function G(e){var{from:t=0,to:n=1,restSpeed:i=2,restDelta:o}=e,a=(0,r.__rest)(e,["from","to","restSpeed","restDelta"]);const s={done:!1,value:t};let{stiffness:u,damping:c,mass:l,velocity:d,duration:f,isResolvedFromDuration:p}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!W(e,V)&&W(e,H)){const n=z(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(a),h=q,m=q;function v(){const e=d?-d/1e3:0,r=n-t,i=c/(2*Math.sqrt(u*l)),a=Math.sqrt(u/l)/1e3;if(void 0===o&&(o=Math.min(Math.abs(n-t)/100,.4)),i<1){const t=U(a,i);h=o=>{const s=Math.exp(-i*a*o);return n-s*((e+i*a*r)/t*Math.sin(t*o)+r*Math.cos(t*o))},m=n=>{const o=Math.exp(-i*a*n);return i*a*o*(Math.sin(t*n)*(e+i*a*r)/t+r*Math.cos(t*n))-o*(Math.cos(t*n)*(e+i*a*r)-t*r*Math.sin(t*n))}}else if(1===i)h=t=>n-Math.exp(-a*t)*(r+(e+a*r)*t);else{const t=a*Math.sqrt(i*i-1);h=o=>{const s=Math.exp(-i*a*o),u=Math.min(t*o,300);return n-s*((e+i*a*r)*Math.sinh(u)+t*r*Math.cosh(u))/t}}}return v(),{next:e=>{const t=h(e);if(p)s.done=e>=f;else{const r=1e3*m(e),a=Math.abs(r)<=i,u=Math.abs(n-t)<=o;s.done=a&&u}return s.value=s.done?n:t,s},flipTarget:()=>{d=-d,[t,n]=[n,t],v()}}}G.needsInterpolation=(e,t)=>"string"===typeof e||"string"===typeof t;const q=e=>0,Z=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},$=(e,t)=>n=>Math.max(Math.min(n,t),e),Y=e=>e%1?Number(e.toFixed(5)):e,K=/(-)?([\d]*\.?[\d])+/g,X=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,Q=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function J(e){return"string"===typeof e}const ee={test:e=>"number"===typeof e,parse:parseFloat,transform:e=>e},te=Object.assign(Object.assign({},ee),{transform:$(0,1)}),ne=Object.assign(Object.assign({},ee),{default:1}),re=(e,t)=>n=>Boolean(J(n)&&Q.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),ie=(e,t,n)=>r=>{if(!J(r))return r;const[i,o,a,s]=r.match(K);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},oe=$(0,255),ae=Object.assign(Object.assign({},ee),{transform:e=>Math.round(oe(e))}),se={test:re("rgb","red"),parse:ie("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ae.transform(e)+", "+ae.transform(t)+", "+ae.transform(n)+", "+Y(te.transform(r))+")"};const ue={test:re("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:se.transform},ce=e=>({test:t=>J(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),le=ce("deg"),de=ce("%"),fe=ce("px"),pe=ce("vh"),he=ce("vw"),me=Object.assign(Object.assign({},de),{parse:e=>de.parse(e)/100,transform:e=>de.transform(100*e)}),ve={test:re("hsl","hue"),parse:ie("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+de.transform(Y(t))+", "+de.transform(Y(n))+", "+Y(te.transform(r))+")"};function ge(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ye({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=ge(s,r,e+1/3),o=ge(s,r,e),a=ge(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}const be=(e,t,n)=>{const r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},xe=[ue,se,ve],_e=e=>xe.find((t=>t.test(e))),we=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,Se=(e,t)=>{let n=_e(e),r=_e(t);we(e),we(t);let i=n.parse(e),o=r.parse(t);n===ve&&(i=ye(i),n=se),r===ve&&(o=ye(o),r=se);const a=Object.assign({},i);return e=>{for(const t in a)"alpha"!==t&&(a[t]=be(i[t],o[t],e));return a.alpha=O(i.alpha,o.alpha,e),n.transform(a)}},ke={test:e=>se.test(e)||ue.test(e)||ve.test(e),parse:e=>se.test(e)?se.parse(e):ve.test(e)?ve.parse(e):ue.parse(e),transform:e=>J(e)?e:e.hasOwnProperty("red")?se.transform(e):ve.transform(e)},Ee="${c}",Ce="${n}";function je(e){"number"===typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(X);
1r&&(n=r.length,e=e.replace(X,Ee),t.push(...r.map(ke.parse)));const i=e.match(K);return i&&(e=e.replace(K,Ce),t.push(...i.map(ee.parse))),{values:t,numColors:n,tokenised:e}}function Te(e){return je(e).values}function Re(e){const{values:t,numColors:n,tokenised:r}=je(e),i=t.length;return e=>{let t=r;for(let r=0;r<i;r++)t=t.replace(r<n?Ee:Ce,r<n?ke.transform(e[r]):Y(e[r]));return t}}const Oe=e=>"number"===typeof e?0:e;const Pe={test:function(e){var t,n,r,i;return isNaN(e)&&J(e)&&(null!==(n=null===(t=e.match(K))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(X))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:Te,createTransformer:Re,getAnimatableNone:function(e){const t=Te(e);return Re(e)(t.map(Oe))}},Ae=e=>"number"===typeof e,De=(e,t)=>n=>t(e(n)),Ie=(...e)=>e.reduce(De);function Ne(e,t){return Ae(e)?n=>O(e,t,n):ke.test(e)?Se(e,t):Le(e,t)}const Me=(e,t)=>{const n=[...e],r=n.length,i=e.map(((e,n)=>Ne(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}},Fe=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=Ne(e[i],t[i]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function Be(e){const t=Pe.parse(e),n=t.length;let r=0,i=0,o=0;for(let a=0;a<n;a++)r||"number"===typeof t[a]?r++:void 0!==t[a].hue?o++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:o}}const Le=(e,t)=>{const n=Pe.createTransformer(t),r=Be(e),i=Be(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?Ie(Me(r.parsed,i.parsed),n):n=>`${n>0?t:e}`},ze=(e,t)=>n=>O(e,t,n);function Ue(e,t,n){const r=[],i=n||("number"===typeof(o=e[0])?ze:"string"===typeof o?ke.test(o)?Se:Le:Array.isArray(o)?Me:"object"===typeof o?Fe:void 0);var o;const a=e.length-1;for(let s=0;s<a;s++){let n=i(e[s],e[s+1]);if(t){const e=Array.isArray(t)?t[s]:t;n=Ie(e,n)}r.push(n)}return r}function He(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;t.length,!r||!Array.isArray(r)||r.length,e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=Ue(t,r,i),s=2===o?function([e,t],[n]){return r=>n(Z(e,t,r))}(e,a):function(e,t){const n=e.length,r=n-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[r]&&(o=r-1,a=!0),!a){let t=1;for(;t<n&&!(e[t]>i||t===r);t++);o=t-1}const s=Z(e[o],e[o+1],i);return t[o](s)}}(e,a);return n?t=>s(B(e[0],e[o-1],t)):s}const Ve=e=>t=>1-e(1-t),We=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ge=e=>t=>t*t*((e+1)*t-e),qe=e=>e,Ze=($e=2,e=>Math.pow(e,$e));var $e;const Ye=Ve(Ze),Ke=We(Ze),Xe=e=>1-Math.sin(Math.acos(e)),Qe=Ve(Xe),Je=We(Qe),et=Ge(1.525),tt=Ve(et),nt=We(et),rt=(e=>{const t=Ge(e);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(1.525),it=e=>{if(1===e||0===e)return e;const 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},ot=Ve(it);function at(e,t){return e.map((()=>t||Ke)).splice(0,e.length-1)}function st({from:e=0,to:t=1,ease:n,offset:r,duration:i=300}){const o={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=function(e,t){return e.map((e=>e*t))}(r&&r.length===a.length?r:function(e){const t=e.length;return e.map(((e,n)=>0!==n?n/(t-1):0))}(a),i);function u(){return He(s,a,{ease:Array.isArray(n)?n:at(a,n)})}let c=u();return{next:e=>(o.value=c(e),o.done=e>=i,o),flipTarget:()=>{a.reverse(),c=u()}}}const ut={keyframes:st,spring:G,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){const a={done:!1,value:t};let s=n*e;const u=t+s,c=void 0===o?u:o(u);return c!==u&&(s=c-t),{next:e=>{const t=-s*Math.exp(-e/r);return a.done=!(t>i||t<-i),a.value=a.done?c:c+t,a},flipTarget:()=>{}}}};const ct=1/60*1e3,lt="undefined"!==typeof performance?()=>performance.now():()=>Date.now(),dt="undefined"!==typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout((()=>e(lt())),ct);let ft=!0,pt=!1,ht=!1;const mt={delta:0,timestamp:0},vt=["read","update","preRender","render","postRender"],gt=vt.reduce(((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{const u=s&&i,c=u?t:n;return o&&a.add(e),-1===c.indexOf(e)&&(c.push(e),u&&i&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:u=>{if(i)o=!0;else{if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(u),a.has(r)&&(s.schedule(r),e())}i=!1,o&&(o=!1,s.process(u))}}};return s}((()=>pt=!0)),e)),{}),yt=vt.reduce(((e,t)=>{const n=gt[t];return e[t]=(e,t=!1,r=!1)=>(pt||wt(),n.schedule(e,t,r)),e}),{}),bt=vt.reduce(((e,t)=>(e[t]=gt[t].cancel,e)),{}),xt=(vt.reduce(((e,t)=>(e[t]=()=>gt[t].process(mt),e)),{}),e=>gt[e].process(mt)),_t=e=>{pt=!1,mt.delta=ft?ct:Math.max(Math.min(e-mt.timestamp,40),1),mt.timestamp=e,ht=!0,vt.forEach(xt),ht=!1,pt&&(ft=!1,dt(_t))},wt=()=>{pt=!0,ft=!0,ht||dt(_t)};var St=yt;function kt(e,t,n=0){return e-t-n}const Et=e=>{const t=({delta:t})=>e(t);return{start:()=>St.update(t,!0),stop:()=>bt.update(t)}};function Ct(e){var t,n,{from:i,autoplay:o=!0,driver:a=Et,elapsed:s=0,repeat:u=0,repeatType:c="loop",repeatDelay:l=0,onPlay:d,onStop:f,onComplete:p,onRepeat:h,onUpdate:m}=e,v=(0,r.__rest)(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let g,y,b,{to:x}=v,_=0,w=v.duration,S=!1,k=!0;const E=function(e){if(Array.isArray(e.to))return st;if(ut[e.type])return ut[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?st:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?G:st}(v);(null===(n=(t=E).needsInterpolation)||void 0===n?void 0:n.call(t,i,x))&&(b=He([0,100],[i,x],{clamp:!1}),i=0,x=100);const C=E(Object.assign(Object.assign({},v),{from:i,to:x}));function j(){_++,"reverse"===c?(k=_%2===0,s=function(e,t,n=0,r=!0){return r?kt(t+-e,t,n):t-(e-t)+n}(s,w,l,k)):(s=kt(s,w,l),"mirror"===c&&C.flipTarget()),S=!1,h&&h()}function T(e){if(k||(e=-e),s+=e,!S){const e=C.next(Math.max(0,s));y=e.value,b&&(y=b(y)),S=k?e.done:s<=0}null===m||void 0===m||m(y),S&&(0===_&&(null!==w&&void 0!==w||(w=s)),_<u?function(e,t,n,r){return r?e>=t+n:e<=-n}(s,w,l,k)&&j():(g.stop(),p&&p()))}return o&&(null===d||void 0===d||d(),g=a(T),g.start()),{stop:()=>{null===f||void 0===f||f(),g.stop()}}}function jt({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:a=
1500,bounceDamping:s=10,restDelta:u=1,modifyTarget:c,driver:l,onUpdate:d,onComplete:f,onStop:p}){let h;function m(e){return void 0!==n&&e<n||void 0!==r&&e>r}function v(e){return void 0===n?r:void 0===r||Math.abs(n-e)<Math.abs(r-e)?n:r}function g(e){null===h||void 0===h||h.stop(),h=Ct(Object.assign(Object.assign({},e),{driver:l,onUpdate:t=>{var n;null===d||void 0===d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:f,onStop:p}))}function y(e){g(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:u},e))}if(m(e))y({from:e,velocity:t,to:v(e)});else{let r=i*t+e;"undefined"!==typeof c&&(r=c(r));const a=v(r),s=a===n?-1:1;let l,d;const f=e=>{l=d,d=e,t=P(e-l,mt.delta),(1===s&&e>a||-1===s&&e<a)&&y({from:e,to:a,velocity:t})};g({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:u,modifyTarget:c,onUpdate:m(r)?f:void 0})}return{stop:()=>null===h||void 0===h?void 0:h.stop()}}var Tt=function(e){return 1e3*e};const Rt=(e,t)=>1-3*t+3*e,Ot=(e,t)=>3*t-6*e,Pt=e=>3*e,At=(e,t,n)=>((Rt(t,n)*e+Ot(t,n))*e+Pt(t))*e,Dt=(e,t,n)=>3*Rt(t,n)*e*e+2*Ot(t,n)*e+Pt(t);const It=.1;function Nt(e,t,n,r){if(e===t&&n===r)return qe;const i=new Float32Array(11);for(let a=0;a<11;++a)i[a]=At(a*It,e,n);function o(t){let r=0,o=1;for(;10!==o&&i[o]<=t;++o)r+=It;--o;const a=r+(t-i[o])/(i[o+1]-i[o])*It,s=Dt(a,e,n);return s>=.001?function(e,t,n,r){for(let i=0;i<8;++i){const i=Dt(t,n,r);if(0===i)return t;t-=(At(t,n,r)-e)/i}return t}(t,a,e,n):0===s?a:function(e,t,n,r,i){let o,a,s=0;do{a=t+(n-t)/2,o=At(a,r,i)-e,o>0?n=a:t=a}while(Math.abs(o)>1e-7&&++s<10);return a}(t,r,r+It,e,n)}return e=>0===e||1===e?e:At(o(e),t,r)}var Mt={linear:qe,easeIn:Ze,easeInOut:Ke,easeOut:Ye,circIn:Xe,circInOut:Je,circOut:Qe,backIn:et,backInOut:nt,backOut:tt,anticipate:rt,bounceIn:ot,bounceInOut:e=>e<.5?.5*(1-it(1-2*e)):.5*it(2*e-1)+.5,bounceOut:it},Ft=function(e){if(Array.isArray(e)){e.length;var t=(0,r.__read)(e,4);return Nt(t[0],t[1],t[2],t[3])}return"string"===typeof e?("Invalid easing type '".concat(e,"'"),Mt[e]):e},Bt=function(e,t){return"zIndex"!==e&&(!("number"!==typeof t&&!Array.isArray(t))||!("string"!==typeof t||!Pe.test(t)||t.startsWith("url(")))},Lt=function(e){return Array.isArray(e)},zt=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},Ut=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},Ht=function(){return{type:"keyframes",ease:"linear",duration:.3}},Vt=function(e){return{type:"keyframes",duration:.8,values:e}},Wt={x:zt,y:zt,z:zt,rotate:zt,rotateX:zt,rotateY:zt,rotateZ:zt,scaleX:Ut,scaleY:Ut,scale:Ut,opacity:Ht,backgroundColor:Ht,color:Ht,default:Ut};const Gt=new Set(["brightness","contrast","saturate","opacity"]);function qt(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(K)||[];if(!r)return e;const i=n.replace(r,"");let o=Gt.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const Zt=/([a-z-]*)\(.*?\)/g,$t=Object.assign(Object.assign({},Pe),{getAnimatableNone:e=>{const t=e.match(Zt);return t?t.map(qt).join(" "):e}});var Yt=(0,r.__assign)((0,r.__assign)({},ee),{transform:Math.round}),Kt={borderWidth:fe,borderTopWidth:fe,borderRightWidth:fe,borderBottomWidth:fe,borderLeftWidth:fe,borderRadius:fe,radius:fe,borderTopLeftRadius:fe,borderTopRightRadius:fe,borderBottomRightRadius:fe,borderBottomLeftRadius:fe,width:fe,maxWidth:fe,height:fe,maxHeight:fe,size:fe,top:fe,right:fe,bottom:fe,left:fe,padding:fe,paddingTop:fe,paddingRight:fe,paddingBottom:fe,paddingLeft:fe,margin:fe,marginTop:fe,marginRight:fe,marginBottom:fe,marginLeft:fe,rotate:le,rotateX:le,rotateY:le,rotateZ:le,scale:ne,scaleX:ne,scaleY:ne,scaleZ:ne,skew:le,skewX:le,skewY:le,distance:fe,translateX:fe,translateY:fe,translateZ:fe,x:fe,y:fe,z:fe,perspective:fe,transformPerspective:fe,opacity:te,originX:me,originY:me,originZ:fe,zIndex:Yt,fillOpacity:te,strokeOpacity:te,numOctaves:Yt},Xt=(0,r.__assign)((0,r.__assign)({},Kt),{color:ke,backgroundColor:ke,outlineColor:ke,fill:ke,stroke:ke,borderColor:ke,borderTopColor:ke,borderRightColor:ke,borderBottomColor:ke,borderLeftColor:ke,filter:$t,WebkitFilter:$t}),Qt=function(e){return Xt[e]};
1function Jt(e,t){var n,r=Qt(e);return r!==$t&&(r=Pe),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var en=!1,tn=function(e){return Lt(e)?e[e.length-1]||0:e};function nn(e){var t=e.ease,n=e.times,i=e.yoyo,o=e.flip,a=e.loop,s=(0,r.__rest)(e,["ease","times","yoyo","flip","loop"]),u=(0,r.__assign)({},s);return n&&(u.offset=n),s.duration&&(u.duration=Tt(s.duration)),s.repeatDelay&&(u.repeatDelay=Tt(s.repeatDelay)),t&&(u.ease=function(e){return Array.isArray(e)&&"number"!==typeof e[0]}(t)?t.map(Ft):Ft(t)),"tween"===s.type&&(u.type="keyframes"),(i||a||o)&&(!0,i?u.repeatType="reverse":a?u.repeatType="loop":o&&(u.repeatType="mirror"),u.repeat=a||i||o||s.repeat),"spring"!==s.type&&(u.type="keyframes"),u}function rn(e,t,n){var i;return Array.isArray(t.to)&&(null!==(i=e.duration)&&void 0!==i||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=(0,r.__spreadArray)([],(0,r.__read)(e.to),!1),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.__rest)(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=(0,r.__assign)((0,r.__assign)({},e),function(e,t){var n;return n=Lt(t)?Vt:Wt[e]||Wt.default,(0,r.__assign)({to:t},n(t))}(n,t.to))),(0,r.__assign)((0,r.__assign)({},t),nn(e))}function on(e){return 0===e||"string"===typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function an(e){return"number"===typeof e?0:Jt("",e)}function sn(e,t){return e[t]||e.default||e}function un(e,t,n,i){return void 0===i&&(i={}),en&&(i={type:!1}),t.start((function(o){var a,s,u=function(e,t,n,i,o){var a,s=sn(i,e),u=null!==(a=s.from)&&void 0!==a?a:t.get(),c=Bt(e,n);"none"===u&&c&&"string"===typeof n?u=Jt(e,n):on(u)&&"string"===typeof n?u=an(n):!Array.isArray(n)&&on(n)&&"string"===typeof u&&(n=an(u));var l=Bt(e,u);return"You are trying to animate ".concat(e,' from "').concat(u,'" to "').concat(n,'". ').concat(u," is not an animatable value - to enable this animation set ").concat(u," to a value animatable to ").concat(n," via the `style` property."),l&&c&&!1!==s.type?function(){var i={from:u,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:function(e){return t.set(e)}};return"inertia"===s.type||"decay"===s.type?jt((0,r.__assign)((0,r.__assign)({},i),s)):Ct((0,r.__assign)((0,r.__assign)({},rn(s,i,e)),{onUpdate:function(e){var t;i.onUpdate(e),null===(t=s.onUpdate)||void 0===t||t.call(s,e)},onComplete:function(){var e;i.onComplete(),null===(e=s.onComplete)||void 0===e||e.call(s)}}))}:function(){var e,r,i=tn(n);return t.set(i),o(),null===(e=null===s||void 0===s?void 0:s.onUpdate)||void 0===e||e.call(s,i),null===(r=null===s||void 0===s?void 0:s.onComplete)||void 0===r||r.call(s),{stop:function(){}}}}(e,t,n,i,o),c=function(e,t){var n,r;return null!==(r=null!==(n=(sn(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(i,e),l=function(){return s=u()};return c?a=window.setTimeout(l,Tt(c)):l(),function(){clearTimeout(a),null===s||void 0===s||s.stop()}}))}var cn=["TopLeft","TopRight","BottomLeft","BottomRight"],ln=cn.length,dn=function(e){return"string"===typeof e?parseFloat(e):e},fn=function(e){return"number"===typeof e||fe.test(e)};function pn(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var hn=vn(0,.5,Qe),mn=vn(.5,.95,qe);
1function vn(e,t,n){return function(r){return r<e?0:r>t?1:n(Z(e,t,r))}}function gn(e,t){e.min=t.min,e.max=t.max}function yn(e,t){gn(e.x,t.x),gn(e.y,t.y)}function bn(e){return void 0===e||1===e}function xn(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!bn(t)||!bn(n)||!bn(r)}function _n(e){return xn(e)||wn(e.x)||wn(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function wn(e){return e&&"0%"!==e}function Sn(e,t,n){return n+t*(e-n)}function kn(e,t,n,r,i){return void 0!==i&&(e=Sn(e,i,r)),Sn(e,n,r)+t}function En(e,t,n,r,i){void 0===t&&(t=0),void 0===n&&(n=1),e.min=kn(e.min,t,n,r,i),e.max=kn(e.max,t,n,r,i)}function Cn(e,t){var n=t.x,r=t.y;En(e.x,n.translate,n.scale,n.originPoint),En(e.y,r.translate,r.scale,r.originPoint)}function jn(e,t){e.min=e.min+t,e.max=e.max+t}function Tn(e,t,n){var i=(0,r.__read)(n,3),o=i[0],a=i[1],s=i[2],u=void 0!==t[s]?t[s]:.5,c=O(e.min,e.max,u);En(e,t[o],t[a],c,t.scale)}var Rn=["x","scaleX","originX"],On=["y","scaleY","originY"];function Pn(e,t){Tn(e.x,t,Rn),Tn(e.y,t,On)}const An=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),Dn=e=>An(e)&&e.hasOwnProperty("z"),In=(e,t)=>Math.abs(e-t);function Nn(e,t){if(Ae(e)&&Ae(t))return In(e,t);if(An(e)&&An(t)){const n=In(e.x,t.x),r=In(e.y,t.y),i=Dn(e)&&Dn(t)?In(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}function Mn(e){return e.max-e.min}function Fn(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),Nn(e,t)<n}function Bn(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=O(t.min,t.max,e.origin),e.scale=Mn(n)/Mn(t),(Fn(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=O(n.min,n.max,e.origin)-e.originPoint,(Fn(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Ln(e,t,n,r){Bn(e.x,t.x,n.x,null===r||void 0===r?void 0:r.originX),Bn(e.y,t.y,n.y,null===r||void 0===r?void 0:r.originY)}function zn(e,t,n){e.min=n.min+t.min,e.max=e.min+Mn(t)}function Un(e,t,n){e.min=t.min-n.min,e.max=e.min+Mn(t)}function Hn(e,t,n){Un(e.x,t.x,n.x),Un(e.y,t.y,n.y)}function Vn(e,t,n,r,i){return e=Sn(e-=t,1/n,r),void 0!==i&&(e=Sn(e,1/i,r)),e}function Wn(e,t,n,i,o){var a=(0,r.__read)(n,3),s=a[0],u=a[1],c=a[2];!function(e,t,n,r,i,o,a){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===o&&(o=e),void 0===a&&(a=e),de.test(t)&&(t=parseFloat(t),t=O(a.min,a.max,t/100)-a.min),"number"===typeof t){var s=O(o.min,o.max,r);e===o&&(s-=t),e.min=Vn(e.min,t,n,s,i),e.max=Vn(e.max,t,n,s,i)}}(e,t[s],t[u],t[c],t.scale,i,o)}var Gn=["x","scaleX","originX"],qn=["y","scaleY","originY"];function Zn(e,t,n,r){Wn(e.x,t,Gn,null===n||void 0===n?void 0:n.x,null===r||void 0===r?void 0:r.x),Wn(e.y,t,qn,null===n||void 0===n?void 0:n.y,null===r||void 0===r?void 0:r.y)}function $n(e){return 0===e.translate&&1===e.scale}function Yn(e){return $n(e.x)&&$n(e.y)}function Kn(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var Xn=function(){function e(){this.members=[]}return e.prototype.add=function(e){A(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(D(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex((function(t){return e===t}));if(0===n)return!1;for(var r=n;r>=0;r--){var i=this.members[r];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;e!==r&&(this.prevLead=r,this.lead=e,e.show(),r&&(r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach((function(e){var t,n,r,i,o;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(o=null===(r=e.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===o||o.call(i)}))}
1,e.prototype.scheduleRender=function(){this.members.forEach((function(e){e.instance&&e.scheduleRender(!1)}))},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}(),Qn={};function Jn(e,t,n){var r=e.x.translate/t.x,i=e.y.translate/t.y,o="translate3d(".concat(r,"px, ").concat(i,"px, 0) ");if(n){var a=n.rotate,s=n.rotateX,u=n.rotateY;a&&(o+="rotate(".concat(a,"deg) ")),s&&(o+="rotateX(".concat(s,"deg) ")),u&&(o+="rotateY(".concat(u,"deg) "))}return"translate3d(0px, 0px, 0) scale(1, 1)"===(o+="scale(".concat(e.x.scale,", ").concat(e.y.scale,")"))?"none":o}function er(e){return[e("x"),e("y")]}var tr=["","X","Y","Z"],nr=["transformPerspective","x","y","z"];function rr(e,t){return nr.indexOf(e)-nr.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return tr.forEach((function(t){return nr.push(e+t)}))}));var ir=new Set(nr);function or(e){return ir.has(e)}var ar=new Set(["originX","originY","originZ"]);function sr(e){return ar.has(e)}var ur=function(e,t){return e.depth-t.depth},cr=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){A(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){D(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(ur),this.isDirty=!1,this.children.forEach(e)},e}();function lr(e){var t,n=F(e)?e.get():e;return t=n,Boolean(t&&"object"===typeof t&&t.mix&&t.toValue)?n.toValue():n}var dr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function fr(e){var t=e.attachResizeListener,n=e.defaultParent,i=e.measureScroll,o=e.resetTransform;return function(){function e(e,t,i){var o=this;void 0===t&&(t={}),void 0===i&&(i=null===n||void 0===n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){o.isUpdating&&(o.isUpdating=!1,o.clearAllSnapshots())},this.updateProjection=function(){o.nodes.forEach(br),o.nodes.forEach(xr)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?(0,r.__spreadArray)((0,r.__spreadArray)([],(0,r.__read)(i.path),!1),[i],!1):[],this.parent=i,this.depth=i?i.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new cr)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new I),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=this.eventHandlers.get(e);null===i||void 0===i||i.notify.apply(i,(0,r.__spreadArray)([],(0,r.__read)(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,n){var i,o=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var a=this.options,s=a.layoutId,u=a.layout,c=a.visualElement;if(c&&!c.getInstance()&&c.mount(e),this.root.nodes.add(this),null===(i=this.parent)||void 0===i||i.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(u||s)&&(this.isLayoutDirty=!0),t){var l,d=function(){return o.root.updateBlockedByResize=!1};t(e,(function(){o.root.updateBlockedByResize=!0,clearTimeout(l),l=window.setTimeout(d,250),dr.hasAnimatedSinceResize&&(dr.hasAnimatedSinceResize=!1,o.nodes.forEach(yr))}))}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&c&&(s||u)&&this.addEventListener("didUpdate",(function(e){var t,n,i,a,s,u=e.delta,l=e.hasLayoutChanged,d=e.hasRelativeTargetChanged,f=e.layout;if(o.isTreeAnimationBlocked())return o.target=void 0,void(o.relativeTarget=void 0);var p=null!==(n=null!==(t=o.options.transition)&&void 0!==t?t:c.getDefaultTransition())&&void 0!==n?n:Cr,h=c.getProps().onLayoutAnimationComplete,m=!o.targetLayout||!Kn(o.targetLayout,f)||d,v=!l&&d;if((null===(i=o.resumeFrom)||void 0===i?void 0:i.instance)||v||l&&(m||!o.currentAnimation)){o.resumeFrom&&(o.resumingFrom=o.resumeFrom,o.resumingFrom.resumingFrom=void 0),o.setAnimationOrigin(u,v);var g=(0,r.__assign)((0,r.__assign)({},sn(p,"layout")),{onComplete:h});c.shouldReduceMotion&&(g.delay=0,g.type=!1),o.startAnimation(g)}else l||0!==o.animationProgress||o.finishAnimation(),o.isLead()&&(null===(s=(a=o.options).onExitComplete)||void 0===s||s.call(a));o.targetLayout=f}))}},e.prototype.unmount=function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,R.qY.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1}
1,e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(_r))},e.prototype.willUpdate=function(e){var t,n,r;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var i=0;i<this.path.length;i++){var o=this.path[i];o.shouldResetTransform=!0,o.updateScroll()}var a=this.options,s=a.layoutId,u=a.layout;if(void 0!==s||u){var c=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null===c||void 0===c?void 0:c(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(vr);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(jr),this.potentialNodes.clear()),this.nodes.forEach(gr),this.nodes.forEach(pr),this.nodes.forEach(hr),this.clearAllSnapshots(),R.iW.update(),R.iW.preRender(),R.iW.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(mr),this.sharedNodes.forEach(wr)},e.prototype.scheduleUpdateProjection=function(){R.ZP.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;R.ZP.postRender((function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()}))},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));Rr(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){var e;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++){this.path[t].updateScroll()}var n=this.measure();Rr(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null===r||void 0===r?void 0:r.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.scroll=i(this.instance))},e.prototype.resetTransform=function(){var e;if(o){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!Yn(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,i=null===r||void 0===r?void 0:r(this.latestValues,""),a=i!==this.prevTransformTemplateValue;t&&(n||_n(this.latestValues)||a)&&(o(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};var t=e.measureViewportBox(),n=this.root.scroll;return n&&(jn(t.x,n.x),jn(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};yn(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],i=r.scroll,o=r.options;r!==this.root&&i&&o.layoutScroll&&(jn(t.x,i.x),jn(t.y,i.y))}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var n={x:{min:0,max:0},y:{min:0,max:0}};yn(n,e);for(var r=0;r<this.path.length;r++){var i=this.path[r];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Pn(n,{x:-i.scroll.x,y:-i.scroll.y}),_n(i.latestValues)&&Pn(n,i.latestValues)}return _n(this.latestValues)&&Pn(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};yn(n,e);for(var r=0;r<this.path.length;r++){var i=this.path[r];if(i.instance&&_n(i.latestValues)){xn(i.latestValues)&&i.updateSnapshot();var o={x:{min:0,max:0},y:{min:0,max:0}};yn(o,i.measure()),Zn(n,i.latestValues,null===(t=i.snapshot)||void 0===t?void 0:t.layout,o)}}return _n(this.latestValues)&&Zn(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},e.prototype.resolveTargetDelta=function(){var e,t,n,r,i=this.options,o=i.layout,a=i.layoutId;this.layout&&(o||a)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Hn(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),yn(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(e=this.relativeParent)||void 0===e?void 0:e.target)?(t=this.target,n=this.relativeTarget,r=this.relativeParent.target,zn(t.x,n.x,r.x),zn(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):yn(this.target,this.layout.actual),Cn(this.target,this.targetDelta)):yn(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Hn(this.relativeTargetOrigin,this.target,this.relativeParent.target),yn(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!_n(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,n=t.layout,r=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(n||r)){var i=this.getLead();yn(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var i,o;void 0===r&&(r=!1);var a=n.length;if(a){var s,u;t.x=t.y=1;for(var c=0;c<a;c++)u=(s=n[c]).projectionDelta,"contents"!==(null===(o=null===(i=s.instance)||void 0===i?void 0:i.style)||void 0===o?void 0:o.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Pn(e,{x:-s.scroll.x,y:-s.scroll.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,Cn(e,u)),r&&_n(s.latestValues)&&Pn(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==i);var o=i.target;if(o){this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});var a=this.treeScale.x,s=this.treeScale.y,u=this.projectionTransform;Ln(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.projectionTransform=Jn(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,n,r;void 0===e&&(e=!0),null===(n=(t=this.options).scheduleRender)||void 0===n||n.call(t),e&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var n,i=this;void 0===t&&(t=!1);var o=this.snapshot,a=(null===o||void 0===o?void 0:o.latestValues)||{},s=(0,r.__assign)({},this.latestValues),u={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var c={x:{min:0,max:0},y:{min:0,max:0}},l=null===o||void 0===o?void 0:o.isShared,d=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,f=Boolean(l&&!d&&!0===this.options.crossfade&&!this.path.some(Er));this.animationProgress=0,this.mixTargetDelta=function(t){var n,r=t/1e3;Sr(u.x,e.x,r),Sr(u.y,e.y,r),i.setTargetDelta(u),i.relativeTarget&&i.relativeTargetOrigin&&i.layout&&(null===(n=i.relativeParent)||void 0===n?void 0:n.layout)&&(Hn(c,i.layout.actual,i.relativeParent.layout.actual),function(e,t,n,r){kr(e.x,t.x,n.x,r),kr(e.y,t.y,n.y,r)}(i.relativeTarget,i.relativeTargetOrigin,c,r)),l&&(i.animationValues=s,function(e,t,n,r,i,o){var a,s,u,c;i?(e.opacity=O(0,null!==(a=n.opacity)&&void 0!==a?a:1,hn(r)),e.opacityExit=O(null!==(s=t.opacity)&&void 0!==s?s:1,0,mn(r))):o&&(e.opacity=O(null!==(u=t.opacity)&&void 0!==u?u:1,null!==(c=n.opacity)&&void 0!==c?c:1,r));for(var l=0;l<ln;l++){var d="border".concat(cn[l],"Radius"),f=pn(t,d),p=pn(n,d);void 0===f&&void 0===p||(f||(f=0),p||(p=0),0===f||0===p||fn(f)===fn(p)?(e[d]=Math.max(O(dn(f),dn(p),r),0),(de.test(p)||de.test(f))&&(e[d]+="%")):e[d]=p)}(t.rotate||n.rotate)&&(e.rotate=O(t.rotate||0,n.rotate||0,r))}(s,a,i.latestValues,r,f,d)),i.root.scheduleUpdateProjection(),i.scheduleRender(),i.animationProgress=r},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,n,i=this;null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(
1R.qY.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=R.ZP.update((function(){dr.hasAnimatedSinceResize=!0,i.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=F(e)?e:M(e);return un("",r,t,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,1e3,(0,r.__assign)((0,r.__assign)({},e),{onUpdate:function(t){var n;i.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),i.completeAnimation()}})),i.resumingFrom&&(i.resumingFrom.currentAnimation=i.currentAnimation),i.pendingAnimation=void 0}))},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,n=e.target,r=e.layout,i=e.latestValues;t&&n&&r&&(yn(t,n),Pn(t,i),Ln(this.projectionDeltaWithTransform,this.layoutCorrected,t,i))},e.prototype.registerSharedNode=function(e,t){var n,r,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new Xn),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(i=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(r,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,n=t.needsReset,r=t.transition,i=t.preserveFollowOpacity,o=this.getStack();o&&o.promote(this,i),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,n={},r=0;r<tr.length;r++){var i="rotate"+tr[r];e.getStaticValue(i)&&(t=!0,n[i]=e.getStaticValue(i),e.setStaticValue(i,0))}if(t){for(var i in null===e||void 0===e||e.syncRender(),n)e.setStaticValue(i,n[i]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,i,o,a;void 0===e&&(e={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var u=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=lr(e.pointerEvents)||"",s.transform=u?u(this.latestValues,""):"none",s;var c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){var l={};return this.options.layoutId&&(l.opacity=null!==(n=this.latestValues.opacity)&&void 0!==n?n:1,l.pointerEvents=lr(e.pointerEvents)||""),this.hasProjected&&!_n(this.latestValues)&&(l.transform=u?u({},""):"none",this.hasProjected=!1),l}var d=c.animationValues||c.latestValues;this.applyTransformsToTarget(),s.transform=Jn(this.projectionDeltaWithTransform,this.treeScale,d),u&&(s.transform=u(d,s.transform));var f=this.projectionDelta,p=f.x,h=f.y;for(var m in s.transformOrigin="".concat(100*p.origin,"% ").concat(100*h.origin,"% 0"),c.animationValues?s.opacity=c===this?null!==(i=null!==(r=d.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:s.opacity=c===this?null!==(o=d.opacity)&&void 0!==o?o:"":null!==(a=d.opacityExit)&&void 0!==a?a:0,Qn)if(void 0!==d[m]){var v=Qn[m],g=v.correct,y=v.applyTo,b=g(d[m],c);if(y)for(var x=y.length,_=0;_<x;_++)s[y[_]]=b;else s[m]=b}return this.options.layoutId&&(s.pointerEvents=c===this?lr(e.pointerEvents)||"":"none"),s},e.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0}
1,e.prototype.resetTree=function(){this.root.nodes.forEach((function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(vr),this.root.sharedNodes.clear()},e}()}function pr(e){e.updateLayout()}function hr(e){var t,n,r,i,o=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){var a=e.layout,s=a.actual,u=a.measured;"size"===e.options.animationType?er((function(e){var t=o.isShared?o.measured[e]:o.layout[e],n=Mn(t);t.min=s[e].min,t.max=t.min+n})):"position"===e.options.animationType&&er((function(e){var t=o.isShared?o.measured[e]:o.layout[e],n=Mn(s[e]);t.max=t.min+n}));var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Ln(c,s,o.layout);var l={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o.isShared?Ln(l,e.applyTransform(u,!0),o.measured):Ln(l,s,o.layout);var d=!Yn(c),f=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var p=e.relativeParent,h=p.snapshot,m=p.layout;if(h&&m){var v={x:{min:0,max:0},y:{min:0,max:0}};Hn(v,o.layout,h.layout);var g={x:{min:0,max:0},y:{min:0,max:0}};Hn(g,s,m.actual),Kn(v,g)||(f=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:o,delta:l,layoutDelta:c,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else e.isLead()&&(null===(i=(r=e.options).onExitComplete)||void 0===i||i.call(r));e.options.transition=void 0}function mr(e){e.clearSnapshot()}function vr(e){e.clearMeasurements()}function gr(e){var t=e.options.visualElement;(null===t||void 0===t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function yr(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function br(e){e.resolveTargetDelta()}function xr(e){e.calcProjection()}function _r(e){e.resetRotation()}function wr(e){e.removeLeadSnapshot()}function Sr(e,t,n){e.translate=O(t.translate,0,n),e.scale=O(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function kr(e,t,n,r){e.min=O(t.min,n.min,r),e.max=O(t.max,n.max,r)}function Er(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var Cr={duration:.45,ease:[.4,0,.1,1]};function jr(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var i=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));i&&e.mount(i,!0)}function Tr(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Rr(e){Tr(e.x),Tr(e.y)}var Or=1;var Pr=n(25364),Ar=(0,i.createContext)({});var Dr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement,n=e.props;t&&t.setProps(n)},t.prototype.render=function(){return this.props.children},t}(i.Component);function Ir(e){var t=e.preloadedFeatures,n=e.createVisualElement,o=e.projectionNodeConstructor,f=e.useRender,p=e.useVisualState,h=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?a.projectionNodeConstructor=e[t]:a[t].Component=e[t])}(t),(0,i.forwardRef)((function(e,t){var m=function(e){var t,n=e.layoutId,r=null===(t=(0,i.useContext)(Pr.p))||void 0===t?void 0:t.id;return r&&void 0!==n?r+"-"+n:n}(e);e=(0,r.__assign)((0,r.__assign)({},e),{layoutId:m});var v=(0,i.useContext)(l),b=null,x=E(e),_=v.isStatic?void 0:(0,T.h)((function(){if(dr.hasEverUpdated)return Or++})),w=p(e,v.isStatic);return!v.isStatic&&j.j&&(x.visualElement=g(h,w,(0,r.__assign)((0,r.__assign)({},v),e),n),function(e,t,n,r){var o,a=t.layoutId,s=t.layout,u=t.drag,c=t.dragConstraints,l=t.layoutScroll,d=(0,i.useContext)(Ar);r&&n&&!(null===n||void 0===n?void 0:n.projection)&&(n.projection=new r(e,n.getLatestValues(),null===(o=n.parent)||void 0===o?void 0:o.projection),n.projection.setOptions({layoutId:a,layout:s,alwaysMeasureLayout:Boolean(u)||c&&y(c),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"===typeof s?s:"both",initialPromotionConfig:d,layoutScroll:l}))}(_,e,x.visualElement,o||a.projectionNodeConstructor),b=function(e,t,n){var o=[];if((0,i.useContext)(s),!t)return null;for(var l=0;l<c;l++){var d=u[l],f=a[d],p=f.isEnabled,h=f.Component;p(e)&&h&&o.push(i.createElement(h,(0,r.__assign)({key:d},e,{visualElement:t})))}return o}(e,x.visualElement)),i.createElement(Dr,{visualElement:x.visualElement,props:(0,r.__assign)((0,r.__assign)({},v),e)},b,i.createElement(d.Provider,{value:x},f(h,e,_,function(e,t,n){return(0,i.useCallback)((function(r){var i;r&&(null===(i=e.mount)||void 0===i||i.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&("function"===typeof n?n(r):y(n)&&(n.current=r))}),[t])}(w,x.visualElement,t),w,v.isStatic,x.visualElement)))}))}function Nr(e){function t(t,n){return void 0===n&&(n={}),Ir(e(t,n))}if("undefined"===typeof Proxy)return t;var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}var Mr=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function Fr(e){return"string"===typeof e&&!e.includes("-")&&!!(Mr.indexOf(e)>-1||/[A-Z]/.test(e))}function Br(e,t){var n=t.layout,r=t.layoutId;return or(e)||sr(e)||(n||void 0!==r)&&(!!Qn[e]||"opacity"===e)}var Lr={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function zr(e){return e.startsWith("--")}var Ur=function(e,t){return t&&"number"===typeof e?t.transform(e):e};function Hr(e,t,n,r){var i,o=e.style,a=e.vars,s=e.transform,u=e.transformKeys,c=e.transformOrigin;u.length=0;var l=!1,d=!1,f=!0;for(var p in t){var h=t[p];if(zr(p))a[p]=h;else{var m=Kt[p],v=Ur(h,m);if(or(p)){if(l=!0,s[p]=v,u.push(p),!f)continue;h!==(null!==(i=m.default)&&void 0!==i?i:0)&&(f=!1)}else sr(p)?(c[p]=v,d=!0):o[p]=v}}l?o.transform=function(e,t,n,r){var i=e.transform,o=e.transformKeys,a=t.enableHardwareAcceleration,s=void 0===a||a,u=t.allowTransformNone,c=void 0===u||u,l="";o.sort(rr);for(var d=!1,f=o.length,p=0;p<f;p++){var h=o[p];l+="".concat(Lr[h]||h,"(").concat(i[h],") "),"z"===h&&(d=!0)}return!d&&s?l+="translateZ(0)":l=l.trim(),r?l=r(i,n?"":l):c&&n&&(l="none"),l}(e,n,f,r):r?o.transform=r({},""):!t.transform&&o.transform&&(o.transform="none"),d&&(o.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,i=void 0===r?"50%":r,o=e.originZ,a=void 0===o?0:o;return"".concat(n," ").concat(i," ").concat(a)}(c))}var Vr=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function Wr(e,t,n){for(var r in t)F(t[r])||Br(r,n)||(e[r]=t[r])}function Gr(e,t,n){var o={};return Wr(o,e.style||{},e),Object.assign(o,function(e,t,n){var o=e.transformTemplate;return(0,i.useMemo)((function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};Hr(e,t,{enableHardwareAcceleration:!n},o);var i=e.vars,a=e.style;return(0,r.__assign)((0,r.__assign)({},i),a)}),[t])}
1(e,t,n)),e.transformValues&&(o=e.transformValues(o)),o}function qr(e,t,n){var r={},i=Gr(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=i,r}var Zr=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function $r(e){return Zr.has(e)}var Yr,Kr=function(e){return!$r(e)};try{(Yr=require("@emotion/is-prop-valid").default)&&(Kr=function(e){return e.startsWith("on")?!$r(e):Yr(e)})}catch(ba){}function Xr(e,t,n){return"string"===typeof e?e:fe.transform(t+n*e)}var Qr={offset:"stroke-dashoffset",array:"stroke-dasharray"},Jr={offset:"strokeDashoffset",array:"strokeDasharray"};function ei(e,t,n,i){var o=t.attrX,a=t.attrY,s=t.originX,u=t.originY,c=t.pathLength,l=t.pathSpacing,d=void 0===l?1:l,f=t.pathOffset,p=void 0===f?0:f;Hr(e,(0,r.__rest)(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,i),e.attrs=e.style,e.style={};var h=e.attrs,m=e.style,v=e.dimensions;h.transform&&(v&&(m.transform=h.transform),delete h.transform),v&&(void 0!==s||void 0!==u||m.transform)&&(m.transformOrigin=function(e,t,n){var r=Xr(t,e.x,e.width),i=Xr(n,e.y,e.height);return"".concat(r," ").concat(i)}(v,void 0!==s?s:.5,void 0!==u?u:.5)),void 0!==o&&(h.x=o),void 0!==a&&(h.y=a),void 0!==c&&function(e,t,n,r,i){void 0===n&&(n=1),void 0===r&&(r=0),void 0===i&&(i=!0),e.pathLength=1;var o=i?Qr:Jr;e[o.offset]=fe.transform(-r);var a=fe.transform(t),s=fe.transform(n);e[o.array]="".concat(a," ").concat(s)}(h,c,d,p,!1)}var ti=function(){return(0,r.__assign)((0,r.__assign)({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function ni(e,t){var n=(0,i.useMemo)((function(){var n=ti();return ei(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),(0,r.__assign)((0,r.__assign)({},n.attrs),{style:(0,r.__assign)({},n.style)})}),[t]);if(e.style){var o={};Wr(o,e.style,e),n.style=(0,r.__assign)((0,r.__assign)({},o),n.style)}return n}function ri(e){void 0===e&&(e=!1);return function(t,n,o,a,s,u){var c=s.latestValues,l=(Fr(t)?ni:qr)(n,c,u),d=function(e,t,n){var r={};for(var i in e)(Kr(i)||!0===n&&$r(i)||!t&&!$r(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"===typeof t,e),f=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},d),l),{ref:a});return o&&(f["data-projection-id"]=o),(0,i.createElement)(t,f)}}var ii=/([a-z])([A-Z])/g,oi=function(e){return e.replace(ii,"$1-$2").toLowerCase()};function ai(e,t,n,r){var i=t.style,o=t.vars;for(var a in Object.assign(e.style,i,r&&r.getProjectionStyles(n)),o)e.style.setProperty(a,o[a])}var si=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function ui(e,t){for(var n in ai(e,t),t.attrs)e.setAttribute(si.has(n)?n:oi(n),t.attrs[n])}function ci(e){var t=e.style,n={};for(var r in t)(F(t[r])||Br(r,e))&&(n[r]=t[r]);return n}function li(e){var t=ci(e);for(var n in e){if(F(e[n]))t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]}return t}function di(e){return"object"===typeof e&&"function"===typeof e.start}function fi(e,t,n,r){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,a=e.onMount,s={latestValues:hi(t,n,r,i),renderState:o()};return a&&(s.mount=function(e){return a(t,e,s)}),s}var pi=function(e){return function(t,n){var r=(0,i.useContext)(d),o=(0,i.useContext)(f.O);return n?fi(e,t,r,o):(0,T.h)((function(){return fi(e,t,r,o)}))}};function hi(e,t,n,i){var o={},a=!1===(null===n||void 0===n?void 0:n.initial),s=i(e);for(var u in s)o[u]=lr(s[u]);var c=e.initial,l=e.animate,d=S(e),f=k(e);t&&f&&!d&&!1!==e.inherit&&(null!==c&&void 0!==c||(c=t.initial),null!==l&&void 0!==l||(l=t.animate));var p=a||!1===c,h=p?l:c;h&&"boolean"!==typeof h&&!di(h)&&(Array.isArray(h)?h:[h]).forEac
1h((function(t){var n=_(e,t);if(n){var i=n.transitionEnd;n.transition;var a=(0,r.__rest)(n,["transitionEnd","transition"]);for(var s in a){var u=a[s];if(Array.isArray(u))u=u[p?u.length-1:0];null!==u&&(o[s]=u)}for(var s in i)o[s]=i[s]}}));return o}var mi,vi={useVisualState:pi({scrapeMotionValuesFromProps:li,createRenderState:ti,onMount:function(e,t,n){var r=n.renderState,i=n.latestValues;try{r.dimensions="function"===typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(o){r.dimensions={x:0,y:0,width:0,height:0}}ei(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),ui(t,r)}})},gi={useVisualState:pi({scrapeMotionValuesFromProps:ci,createRenderState:Vr})};function yi(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function bi(e,t,n,r){(0,i.useEffect)((function(){var i=e.current;if(n&&i)return yi(i,t,n,r)}),[e,t,n,r])}function xi(e){return"undefined"!==typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function _i(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"}(mi||(mi={}));var wi={pageX:0,pageY:0};function Si(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||wi;return{x:n[t+"X"],y:n[t+"Y"]}}function ki(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Ei(e,t){return void 0===t&&(t="page"),{point:_i(e)?Si(e,t):ki(e,t)}}var Ci=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,Ei(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},ji={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Ti={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Ri(e){return j.j&&null===window.onpointerdown?e:j.j&&null===window.ontouchstart?Ti[e]:j.j&&null===window.onmousedown?ji[e]:e}function Oi(e,t,n,r){return yi(e,Ri(t),Ci(n,"pointerdown"===t),r)}function Pi(e,t,n,r){return bi(e,Ri(t),n&&Ci(n,"pointerdown"===t),r)}function Ai(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var Di=Ai("dragHorizontal"),Ii=Ai("dragVertical");function Ni(e){var t=!1;if("y"===e)t=Ii();else if("x"===e)t=Di();else{var n=Di(),r=Ii();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function Mi(){var e=Ni(!0);return!e||(e(),!1)}function Fi(e,t,n){return function(r,i){var o;xi(r)&&!Mi()&&(null===(o=e.animationState)||void 0===o||o.setActive(mi.Hover,t),null===n||void 0===n||n(r,i))}}var Bi=function(e,t){return!!t&&(e===t||Bi(e,t.parentElement))},Li=n(65411);var zi=new WeakMap,Ui=new WeakMap,Hi=function(e){var t;null===(t=zi.get(e.target))||void 0===t||t(e)},Vi=function(e){e.forEach(Hi)};function Wi(e,t,n){var i=function(e){var t=e.root,n=(0,r.__rest)(e,["root"]),i=t||document;Ui.has(i)||Ui.set(i,{});var o=Ui.get(i),a=JSON.stringify(n);return o[a]||(o[a]=new IntersectionObserver(Vi,(0,r.__assign)({root:t},n))),o[a]}(t);return zi.set(e,n),i.observe(e),function(){zi.delete(e),i.unobserve(e)}}var Gi={some:0,all:1};function qi(e,t,n,r){var o=r.root,a=r.margin,s=r.amount,u=void 0===s?"some":s,c=r.once;(0,i.useEffect)((function(){if(e){var r={root:null===o||void 0===o?void 0:o.current,rootMargin:a,threshold:"number"===typeof u?u:Gi[u]};return Wi(n.getInstance(),r,(function(e){var r,i=e.isIntersecting;if(t.isInView!==i&&(t.isInView=i,!c||i||!t.hasEnteredView)){i&&(t.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(mi.InView,i);var o=n.getProps(),a=i?o.onViewportEnter:o.onViewportLeave;null===a||void 0===a||a(e)}}))}}),[e,o,a,u])}function Zi(e,t,n,r){var o=r.fallback,a=void 0===o||o;(0,i.useEffect)((function(){e&&a&&requestAnimationFrame((function(){var e;t.hasEnteredView=!0;var r=n.getProps().onViewportEnter;null===r||void 0===r||r(null),null===(e=n.animationState)||void 0===e||e.setActive(mi.InView,!0)}))}),[e])}var $i=function(e){return function(t){return e(t),null}},Yi={inView:$i((function(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,o=e.onViewportLeave,a=e.viewport,s=void 0===a?{}:a,u=(0,i.useRef)({hasEnteredView:!1,isInView:!1}),c=Boolean(n||r||o);
1s.once&&u.current.hasEnteredView&&(c=!1),("undefined"===typeof IntersectionObserver?Zi:qi)(c,u.current,t,s)})),tap:$i((function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,o=e.whileTap,a=e.visualElement,s=t||n||r||o,u=(0,i.useRef)(!1),c=(0,i.useRef)(null);function l(){var e;null===(e=c.current)||void 0===e||e.call(c),c.current=null}function d(){var e;return l(),u.current=!1,null===(e=a.animationState)||void 0===e||e.setActive(mi.Tap,!1),!Mi()}function f(e,n){d()&&(Bi(a.getInstance(),e.target)?null===t||void 0===t||t(e,n):null===r||void 0===r||r(e,n))}function p(e,t){d()&&(null===r||void 0===r||r(e,t))}Pi(a,"pointerdown",s?function(e,t){var r;l(),u.current||(u.current=!0,c.current=Ie(Oi(window,"pointerup",f),Oi(window,"pointercancel",p)),null===(r=a.animationState)||void 0===r||r.setActive(mi.Tap,!0),null===n||void 0===n||n(e,t))}:void 0),(0,Li.z)(l)})),focus:$i((function(e){var t=e.whileFocus,n=e.visualElement;bi(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(mi.Focus,!0)}:void 0),bi(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(mi.Focus,!1)}:void 0)})),hover:$i((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;Pi(i,"pointerenter",t||r?Fi(i,!0,t):void 0),Pi(i,"pointerleave",n||r?Fi(i,!1,n):void 0)}))},Ki=n(15947);function Xi(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Qi=function(e){return/^0[^.\s]+$/.test(e)},Ji=function(e){return function(t){return t.test(e)}},eo=[ee,fe,de,le,he,pe,{test:function(e){return"auto"===e},parse:function(e){return e}}],to=function(e){return eo.find(Ji(e))},no=(0,r.__spreadArray)((0,r.__spreadArray)([],(0,r.__read)(eo),!1),[ke,Pe],!1),ro=function(e){return no.find(Ji(e))};function io(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,M(n))}function oo(e,t){var n=w(e,t),i=n?e.makeTargetAnimatable(n,!1):{},o=i.transitionEnd,a=void 0===o?{}:o;i.transition;var s=(0,r.__rest)(i,["transitionEnd","transition"]);for(var u in s=(0,r.__assign)((0,r.__assign)({},s),a)){io(e,u,tn(s[u]))}}function ao(e,t){if(t)return(t[e]||t.default||t).from}function so(e,t,n){var i;void 0===n&&(n={});var o=w(e,t,n.custom),a=(o||{}).transition,s=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(s=n.transitionOverride);var u=o?function(){return uo(e,o,n)}:function(){return Promise.resolve()},c=(null===(i=e.variantChildren)||void 0===i?void 0:i.size)?function(i){void 0===i&&(i=0);var o=s.delayChildren,a=void 0===o?0:o,u=s.staggerChildren,c=s.staggerDirection;return function(e,t,n,i,o,a){void 0===n&&(n=0);void 0===i&&(i=0);void 0===o&&(o=1);var s=[],u=(e.variantChildren.size-1)*i,c=1===o?function(e){return void 0===e&&(e=0),e*i}:function(e){return void 0===e&&(e=0),u-e*i};return Array.from(e.variantChildren).sort(co).forEach((function(e,i){s.push(so(e,t,(0,r.__assign)((0,r.__assign)({},a),{delay:n+c(i)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(s)}(e,t,a+i,u,c,n)}:function(){return Promise.resolve()},l=s.when;if(l){var d=(0,r.__read)("beforeChildren"===l?[u,c]:[c,u],2),f=d[0],p=d[1];return f().then(p)}return Promise.all([u(),c(n.delay)])}function uo(e,t,n){var i,o=void 0===n?{}:n,a=o.delay,s=void 0===a?0:a,u=o.transitionOverride,c=o.type,l=e.makeTargetAnimatable(t),d=l.transition,f=void 0===d?e.getDefaultTransition():d,p=l.transitionEnd,h=(0,r.__rest)(l,["transition","transitionEnd"]);u&&(f=u);var m=[],v=c&&(null===(i=e.animationState)||void 0===i?void 0:i.getState()[c]);for(var g in h){var y=e.getValue(g),b=h[g];if(!(!y||void 0===b||v&&lo(v,g))){var x=(0,r.__assign)({delay:s},f);e.shouldReduceMotion&&or(g)&&(x=(0,r.__assign)((0,r.__assign)({},x),{type:!1,delay:0}));var _=un(g,y,b,x);m.push(_)}}return Promise.all(m).then((function(){p&&oo(e,p)}))}function co(e,t){return e.sortNodePosition(t)}function lo(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,i}var fo=[mi.Animate,mi.InView,mi.Focus,mi.Hover,mi.Tap,mi.Drag,mi.Exit],po=(0,r.__spreadArray)([],(0,r.__read)(fo),!1).reverse(),ho=fo.length;function mo(e){return function(t){return Promise.all(t.map((function(t){var n=t.animation,r=t.options;return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(t),Array.isArray(t)){var i=t.map((function(t){return so(e,t,n)}));r=Promise.all(i)}
1else if("string"===typeof t)r=so(e,t,n);else{var o="function"===typeof t?w(e,t,n.custom):t;r=uo(e,o,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}function vo(e){var t=mo(e),n=function(){var e;return(e={})[mi.Animate]=go(!0),e[mi.InView]=go(),e[mi.Hover]=go(),e[mi.Tap]=go(),e[mi.Drag]=go(),e[mi.Focus]=go(),e[mi.Exit]=go(),e}(),i={},o=!0,a=function(t,n){var i=w(e,n);if(i){i.transition;var o=i.transitionEnd,a=(0,r.__rest)(i,["transition","transitionEnd"]);t=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},t),a),o)}return t};function s(s,u){for(var c,l=e.getProps(),d=e.getVariantContext(!0)||{},f=[],p=new Set,h={},m=1/0,v=function(t){var i=po[t],v=n[i],g=null!==(c=l[i])&&void 0!==c?c:d[i],y=x(g),_=i===u?v.isActive:null;!1===_&&(m=t);var w=g===d[i]&&g!==l[i]&&y;if(w&&o&&e.manuallyAnimateOnMount&&(w=!1),v.protectedKeys=(0,r.__assign)({},h),!v.isActive&&null===_||!g&&!v.prevProp||di(g)||"boolean"===typeof g)return"continue";var S=function(e,t){if("string"===typeof t)return t!==e;if(b(t))return!Xi(t,e);return!1}(v.prevProp,g),k=S||i===u&&v.isActive&&!w&&y||t>m&&y,E=Array.isArray(g)?g:[g],C=E.reduce(a,{});!1===_&&(C={});var j=v.prevResolvedValues,T=void 0===j?{}:j,R=(0,r.__assign)((0,r.__assign)({},T),C),O=function(e){k=!0,p.delete(e),v.needsAnimating[e]=!0};for(var P in R){var A=C[P],D=T[P];h.hasOwnProperty(P)||(A!==D?Lt(A)&&Lt(D)?!Xi(A,D)||S?O(P):v.protectedKeys[P]=!0:void 0!==A?O(P):p.add(P):void 0!==A&&p.has(P)?O(P):v.protectedKeys[P]=!0)}v.prevProp=g,v.prevResolvedValues=C,v.isActive&&(h=(0,r.__assign)((0,r.__assign)({},h),C)),o&&e.blockInitialAnimation&&(k=!1),k&&!w&&f.push.apply(f,(0,r.__spreadArray)([],(0,r.__read)(E.map((function(e){return{animation:e,options:(0,r.__assign)({type:i},s)}}))),!1))},g=0;g<ho;g++)v(g);if(i=(0,r.__assign)({},h),p.size){var y={};p.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(y[t]=n)})),f.push({animation:y})}var _=Boolean(f.length);return o&&!1===l.initial&&!e.manuallyAnimateOnMount&&(_=!1),o=!1,_?t(f):Prom
1ise.resolve()}return{isAnimated:function(e){return void 0!==i[e]},animateChanges:s,setActive:function(t,r,i){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach((function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;var a=s(i,t);for(var u in n)n[u].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:function(){return n}}}function go(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var yo={animation:$i((function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=vo(t)),di(n)&&(0,i.useEffect)((function(){return n.subscribe(t)}),[n])})),exit:$i((function(e){var t=e.custom,n=e.visualElement,o=(0,r.__read)((0,Ki.oO)(),2),a=o[0],s=o[1],u=(0,i.useContext)(f.O);(0,i.useEffect)((function(){var e,r;n.isPresent=a;var i=null===(e=n.animationState)||void 0===e?void 0:e.setActive(mi.Exit,!a,{custom:null!==(r=null===u||void 0===u?void 0:u.custom)&&void 0!==r?r:t});!a&&(null===i||void 0===i||i.then(s))}),[a])}))},bo=function(){function e(e,t,n){var i=this,o=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(i.lastMoveEvent&&i.lastMoveEventInfo){var e=wo(i.lastMoveEventInfo,i.history),t=null!==i.startEvent,n=Nn(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,a=(0,R.$B)().timestamp;i.history.push((0,r.__assign)((0,r.__assign)({},o),{timestamp:a}));var s=i.handlers,u=s.onStart,c=s.onMove;t||(u&&u(i.lastMoveEvent,e),i.startEvent=i.lastMoveEvent),c&&c(i.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){i.lastMoveEvent=e,i.lastMoveEventInfo=xo(t,i.transformPagePoint),xi(e)&&0===e.buttons?i.handlePointerUp(e,t):R.ZP.update(i.updatePoint,!0)},this.handlePointerUp=function(e,t){i.end();var n=i.handlers,r=n.onEnd,o=n.onSessionEnd,a=wo(xo(t,i.transformPagePoint),i.history);i.startEvent&&r&&r(e,a),o&&o(e,a)},!(_i(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var a=xo(Ei(e),this.transformPagePoint),s=a.point,u=(0,R.$B)().timestamp;this.history=[(0,r.__assign)((0,r.__assign)({},s),{timestamp:u})];var c=t.onSessionStart;c&&c(e,wo(a,this.history)),this.removeListeners=Ie(Oi(window,"pointermove",this.handlePointerMove),Oi(window,"pointerup",this.handlePointerUp),Oi(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),R.qY.update(this.updatePoint)},e}();function xo(e,t){return t?{point:t(e.point)}:e}function _o(e,t){return{x:e.x-t.x,y:e.y-t.y}}function wo(e,t){var n=e.point;return{point:n,delta:_o(n,ko(t)),offset:_o(n,So(t)),velocity:Eo(t,.1)}}function So(e){return e[0]}function ko(e){return e[e.length-1]}function Eo(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=ko(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Tt(t)));)n--;if(!r)return{x:0,y:0};var o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};var a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Co(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 jo(e,t){var n,i=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&(i=(n=(0,r.__read)([o,i],2))[0],o=n[1]),{min:i,max:o}}var To=.35;function Ro(e,t,n){return{min:Oo(e,t),max:Oo(e,n)}}function Oo(e,t){var n;return"number"===typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function Po(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function Ao(e,t){return Po(function(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}var Do=new WeakMap,Io=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}return e.prototype.start=function(e,t){var n=this,r=(void 0===t?{}:t).snapToCursor,i=void 0!==r&&r;if(!1!==this.visualElement.isPresent){this.panSession=new bo(e,{onSessionStart:function(e){n.stopAnimation(),i&&n.snapToCursor(Ei(e,"page").point)},onStart:function(e,t){var r,i=n.getProps(),o=i.drag,a=i.dragPropagation,s=i.onDragStart;(!o||a||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=Ni(o),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),er((function(e){var t,r,i=n.getAxisMotionValue(e).get()||0;if(de.test(i)){var o=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];
1if(o)i=Mn(o)*(parseFloat(i)/100)}n.originPoint[e]=i})),null===s||void 0===s||s(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(mi.Drag,!0))},onMove:function(e,t){var r=n.getProps(),i=r.dragPropagation,o=r.dragDirectionLock,a=r.onDirectionLock,s=r.onDrag;if(i||n.openGlobalLock){var u=t.offset;if(o&&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}(u),void(null!==n.currentDirection&&(null===a||void 0===a||a(n.currentDirection)));n.updateAxis("x",t.point,u),n.updateAxis("y",t.point,u),n.visualElement.syncRender(),null===s||void 0===s||s(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){var r=t.velocity;this.startAnimation(r);var i=this.getProps().onDragEnd;null===i||void 0===i||i(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(mi.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&No(e,r,this.currentDirection)){var i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,t,n){var r=t.min,i=t.max;return void 0!==r&&e<r?e=n?O(r,e,n.min):Math.max(e,r):void 0!==i&&e>i&&(e=n?O(i,e,n.max):Math.min(e,i)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,i=(this.visualElement.projection||{}).layout,o=this.constraints;n&&y(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!i)&&function(e,t){var n=t.top,r=t.left,i=t.bottom,o=t.right;return{x:Co(e.x,r,o),y:Co(e.y,n,i)}}(i.actual,n),this.elastic=function(e){return void 0===e&&(e=To),!1===e?e=0:!0===e&&(e=To),{x:Ro(e,"left","right"),y:Ro(e,"top","bottom")}}(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&er((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}(i.actual[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!y(t))return!1;var r=t.current,i=this.visualElement.projection;if(!i||!i.layout)return!1;var o=function(e,t,n){var r=Ao(e,n),i=t.scroll;return i&&(jn(r.x,i.x),jn(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a=function(e,t){return{x:jo(e.x,t.x),y:jo(e.y,t.y)}}(i.layout.actual,o);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(a));this.hasMutatedConstraints=!!s,s&&(a=Po(s))}return a},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),i=n.drag,o=n.dragMomentum,a=n.dragElastic,s=n.dragTransition,u=n.dragSnapToOrigin,c=n.onDragTransitionEnd,l=this.constraints||{},d=er((function(n){var c;if(No(n,i,t.currentDirection)){var d=null!==(c=null===l||void 0===l?void 0:l[n])&&void 0!==c?c:{};u&&(d={min:0,max:0});var f=a?200:1e6,p=a?40:1e7,h=(0,r.__assign)((0,r.__assign)({type:"inertia",velocity:o?e[n]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10},s),d);return t.startAxisValueAnimation(n,h)}}));return Promise.all(d).then(c)},e.prototype.startAxisValueAnimation=function(e,t){return un(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;er((function(t){return e.getAxisMotionValue(t).stop()}))},e.prototype.getAxisMotionValue=function(e){var t,n,r="_drag"+e.toUpperCase(),i=this.visualElement.getProps()[r];return i||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(e){var t=this;er((function(n){if(No(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,i=t.getAxisMotionValue(n);if(r&&r.layout){var o=r.layout.actual[n],a=o.min,s=o.max;i.set(e[n]-O(a,s,.5))}}}))},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,i=n.dragConstraints,o=this.visualElement.projection;if(y(i)&&o&&this.constraints){this.stopAnimation();var a={x:0,y:0};er((function(e){var n=t.getAxisMotionValue(e);if(n){var r=n.get();a[e]=function(e,t){var n=.5,r=Mn(e),i=Mn(t);return i>r?n=Z(t.min,t.max-r,e.min):r>i&&(n=Z(e.min,e.max-i,t.min)),B(0,1,n)}({min:r,max:r},t.constraints[e])}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout(),this.resolveConstraints(),er((function(e){if(No(e,r,null)){var n=t.getAxisMotionValue(e),i=t.constraints[e],o=i.min,s=i.max;n.set(O(o,s,a[e]))}}))}},e.prototype.addListeners=function(){var e,t=this;Do.set(this.visualElement,this);var n=Oi(this.visualElement.getInstance(),"pointerdown",(function(e){var n=t.getProps(),r=n.drag,i=n.dragListener;r&&(void 0===i||i)&&t.start(e)})),r=function(){y(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},i=this.visualElement.projection,o=i.addEventListener("measure",r);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),r();var a=yi(window,"resize",(function(){t.scalePositionWithinConstraints()}));return i.addEventListener("didUpdate",(function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(er((function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))})),t.visualElement.syncRender())})),function(){a(),n(),o()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,i=e.dragDirectionLock,o=void 0!==i&&i,a=e.dragPropagation,s=void 0!==a&&a,u=e.dragConstraints,c=void 0!==u&&u,l=e.dragElastic,d=void 0===l?To:l,f=e.dragMomentum,p=void 0===f||f;return(0,r.__assign)((0,r.__assign)({},e),{drag:n,dragDirectionLock:o,dragPropagation:s,dragConstraints:c,dragElastic:d,dragMomentum:p})},e}();function No(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}var Mo={pan:$i((function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,o=e.onPanSessionStart,a=e.visualElement,s=t||n||r||o,u=(0,i.useRef)(null),c=(0,i.useContext)(l).transformPagePoint,d={onSessionStart:o,onStart:n,onMove:t,onEnd:function(e,t){u.current=null,r&&r(e,t)}};(0,i.useEffect)((function(){null!==u.current&&u.current.updateHandlers(d)}
1)),Pi(a,"pointerdown",s&&function(e){u.current=new bo(e,d,{transformPagePoint:c})}),(0,Li.z)((function(){return u.current&&u.current.end()}))})),drag:$i((function(e){var t=e.dragControls,n=e.visualElement,r=(0,T.h)((function(){return new Io(n)}));(0,i.useEffect)((function(){return t&&t.subscribe(r)}),[r,t]),(0,i.useEffect)((function(){return r.addListeners()}),[r])}))},Fo=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"];var Bo=function(e){var t=e.treeType,n=void 0===t?"":t,i=e.build,o=e.getBaseTarget,a=e.makeTargetAnimatable,s=e.measureViewportBox,u=e.render,c=e.readValueFromInstance,l=e.removeValueFromRenderState,d=e.sortNodePosition,f=e.scrapeMotionValuesFromProps;return function(e,t){var p=e.parent,h=e.props,m=e.presenceId,v=e.blockInitialAnimation,g=e.visualState,y=e.shouldReduceMotion;void 0===t&&(t={});var b,_,w=!1,E=g.latestValues,C=g.renderState,j=function(){var e=Fo.map((function(){return new I})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){Fo.forEach((function(r){var i,o="on"+r,a=e[o];null===(i=t[r])||void 0===i||i.call(t),a&&(t[r]=n[o](a))}))}};return e.forEach((function(e,t){n["on"+Fo[t]]=function(t){return e.add(t)},n["notify"+Fo[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,(0,r.__spreadArray)([],(0,r.__read)(t),!1))}})),n}(),T=new Map,O=new Map,P={},A=(0,r.__assign)({},E);function D(){b&&w&&(N(),u(b,C,h.style,G.projection))}function N(){i(G,C,E,t,h)}function B(){j.notifyUpdate(E)}function L(e,t){var n=t.onChange((function(t){E[e]=t,h.onUpdate&&R.ZP.update(B,!1,!0)})),r=t.onRenderRequest(G.scheduleRender);O.set(e,(function(){n(),r()}))}var z=f(h);for(var U in z){var H=z[U];void 0!==E[U]&&F(H)&&H.set(E[U],!1)}var V=S(h),W=k(h),G=(0,r.__assign)((0,r.__assign)({treeType:n,current:null,depth:p?p.depth+1:0,parent:p,children:new Set,presenceId:m,shouldReduceMotion:y,variantChildren:W?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null===p||void 0===p?void 0:p.isMounted()),blockInitialAnimation:v,isMounted:function(){return Boolean(b)},mount:function(e){w=!0,b=G.current=e,G.projection&&G.projection.mount(e),W&&p&&!V&&(_=null===p||void 0===p?void 0:p.addVariantChild(G)),T.forEach((function(e,t){return L(t,e)})),null===p||void 0===p||p.children.add(G),G.setProps(h)},unmount:function(){var e;null===(e=G.projection)||void 0===e||e.unmount(),R.qY.update(B),R.qY.render(D),O.forEach((function(e){return e()})),null===_||void 0===_||_(),null===p||void 0===p||p.children.delete(G),j.clearAllListeners(),b=void 0,w=!1},addVariantChild:function(e){var t,n=G.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return d&&n===e.treeType?d(G.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return W?G:null===p||void 0===p?void 0:p.getClosestVariantNode()},getLayoutId:function(){return h.layoutId},getInstance:function(){return b},getStaticValue:function(e){return E[e]},setStaticValue:function(e,t){return E[e]=t},getLatestValues:function(){return E},setVisibility:function(e){G.isVisible!==e&&(G.isVisible=e,G.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(G,e,h,t)},measureViewportBox:function(){return s(b,h)},addValue:function(e,t){G.hasValue(e)&&G.removeValue(e),T.set(e,t),E[e]=t.get(),L(e,t)},removeValue:function(e){var t;T.delete(e),null===(t=O.get(e))||void 0===t||t(),O.delete(e),delete E[e],l(e,C)},hasValue:function(e){return T.has(e)},getValue:function(e,t){var n=T.get(e);return void 0===n&&void 0!==t&&(n=M(t),G.addValue(e,n)),n},forEachValue:function(e){return T.forEach(e)},readValue:function(e){var n;return null!==(n=E[e])&&void 0!==n?n:c(b,e,t)},setBaseTarget:function(e,t){A[e]=t},getBaseTarget:function(e){if(o){var t=o(h,e);if(void 0!==t&&!F(t))return t}return A[e]}},j),{build:function(){return N(),C},scheduleRender:function(){R.ZP.render(D,!1,!0)},syncRender:D,setProps:function(e){(e.transformTemplate||h.transformTemplate)&&G.scheduleRender(),h=e,j.updatePropListeners(e),P=function(e,t,n){var r;for(var i in t){var o=t[i],a=n[i];if(F(o))e.addValue(i,o);else if(F(a))e.addValue(i,M(o));else if(a!==o)if(e.hasValue(i)){var s=e.getValue(i);!s.hasAnimated&&s.set(o)}else e.addValue(i,M(null!==(r=e.getStaticValue(i))&&void 0!==r?r:o))}for(var i in n)void 0===t[i]&&e.removeValue(i);return t}(G,f(h),P)},getProps:function(){return h},getVariant:function(e){var t;return null===(t=h.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return h.transition},getTransformPagePoint:function(){return h.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null===p||void 0===p?void 0:p.getVariantContext();if(!V){var t=(null===p||void 0===p?void 0:p.getVariantContext())||{};return void 0!==h.initial&&(t.initial=h.initial),t}for(var n={},r=0;r<zo;r++){var i=Lo[r],o=h[i];(x(o)||!1===o)&&(n[i]=o)}return n}});return G}},Lo=(0,r.__spreadArray)(["initial"],(0,r.__read)(fo),!1),zo=Lo.length;function Uo(e){return"string"===typeof e&&e.startsWith("var(--")}var Ho=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Vo(e,t,n){void 0===n&&(n=1),'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.');var i=(0,r.__read)(function(e){var t=Ho.exec(e);if(!t)return[,];var n=(0,r.__read)(t,3);return[n[1],n[2]]}(e),2),o=i[0],a=i[1];if(o){var s=window.getComputedStyle(t).getPropertyValue(o);return s?s.trim():Uo(a)?Vo(a,t,n+1):a}}var Wo,Go=new Set(["width","height","top","left","right","bottom","x","y"]),qo=function(e){return Go.has(e)},Zo=function(e,t){e.set(t,!1),e.set(t)},$o=function(e){return e===ee||e===fe};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Wo||(Wo={}));var Yo=function(e,t){return parseFloat(e.split(", ")[t])},Ko=function(e,t){return function(n,r){var i=r.transform;if("none"===i||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return Yo(o[1],t);var a=i.match(/^matrix\((.+)\)$/);return a?Yo(a[1],e):0}},Xo=new Set(["x","y","z"]),Qo=nr.filter((function(e){return!Xo.has(e)}));var Jo={width:function(e,t){var n=e.x,r=t.paddingLeft,i=void 0===r?"0":r,o=t.paddingRight,a=void 0===o?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(a)},height:function(e,t){var n=e.y,r=t.paddingTop,i=void 0===r?"0":r,o=t.paddingBottom,a=void 0===o?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(a)},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:Ko(4,13),y:Ko(5,14)},ea=function(e,t,n,i){void 0===n&&(n={}),void 0===i&&(i={}),t=(0,r.__assign)({},t),i=(0,r.__assign)({},i);var o=Object.keys(t).filter(qo),a=[],s=!1,u=[];
1if(o.forEach((function(r){var o=e.getValue(r);if(e.hasValue(r)){var c,l=n[r],d=to(l),f=t[r];if(Lt(f)){var p=f.length,h=null===f[0]?1:0;l=f[h],d=to(l);for(var m=h;m<p;m++)c?to(f[m]):(c=to(f[m]))===d||$o(d)&&$o(c)}else c=to(f);if(d!==c)if($o(d)&&$o(c)){var v=o.get();"string"===typeof v&&o.set(parseFloat(v)),"string"===typeof f?t[r]=parseFloat(f):Array.isArray(f)&&c===fe&&(t[r]=f.map(parseFloat))}else(null===d||void 0===d?void 0:d.transform)&&(null===c||void 0===c?void 0:c.transform)&&(0===l||0===f)?0===l?o.set(c.transform(l)):t[r]=d.transform(f):(s||(a=function(e){var t=[];return Qo.forEach((function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.syncRender(),t}(e),s=!0),u.push(r),i[r]=void 0!==i[r]?i[r]:t[r],Zo(o,f))}})),u.length){var c=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),o=getComputedStyle(i),a=o.display,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach((function(e){s[e]=Jo[e](r,o)})),t.syncRender();var u=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);Zo(r,s[n]),e[n]=Jo[n](u,o)})),e}(t,e,u);return a.length&&a.forEach((function(t){var n=(0,r.__read)(t,2),i=n[0],o=n[1];e.getValue(i).set(o)})),e.syncRender(),{target:c,transitionEnd:i}}return{target:t,transitionEnd:i}};function ta(e,t,n,r){return function(e){return Object.keys(e).some(qo)}(t)?ea(e,t,n,r):{target:t,transitionEnd:r}}var na=function(e,t,n,i){var o=function(e,t,n){var i,o=(0,r.__rest)(t,[]),a=e.getInstance();if(!(a instanceof Element))return{target:o,transitionEnd:n};for(var s in n&&(n=(0,r.__assign)({},n)),e.forEachValue((function(e){var t=e.get();if(Uo(t)){var n=Vo(t,a);n&&e.set(n)}})),o){var u=o[s];if(Uo(u)){var c=Vo(u,a);c&&(o[s]=c,n&&(null!==(i=n[s])&&void 0!==i||(n[s]=u)))}}return{target:o,transitionEnd:n}}(e,t,i);return ta(e,t=o.target,n,i=o.transitionEnd)};var ra={treeType:"dom",readValueFromInstance:function(e,t){if(or(t)){var n=Qt(t);return n&&n.default||0}var r,i=(r=e,window.getComputedStyle(r));return(zr(t)?i.getPropertyValue(t):i[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return Ao(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,i){var o=n.transformValues;void 0===i&&(i=!0);var a=t.transition,s=t.transitionEnd,u=(0,r.__rest)(t,["transition","transitionEnd"]),c=function(e,t,n){var r,i,o={};for(var a in e)o[a]=null!==(r=ao(a,t))&&void 0!==r?r:null===(i=n.getValue(a))||void 0===i?void 0:i.get();return o}(u,a||{},e);if(o&&(s&&(s=o(s)),u&&(u=o(u)),c&&(c=o(c))),i){!function(e,t,n){var r,i,o,a,s=Object.keys(t).filter((function(t){return!e.hasValue(t)})),u=s.length;if(u)for(var c=0;c<u;c++){var l=s[c],d=t[l],f=null;Array.isArray(d)&&(f=d[0]),null===f&&(f=null!==(i=null!==(r=n[l])&&void 0!==r?r:e.readValue(l))&&void 0!==i?i:t[l]),void 0!==f&&null!==f&&("string"===typeof f&&(/^\-?\d*\.?\d+$/.test(f)||Qi(f))?f=parseFloat(f):!ro(f)&&Pe.test(d)&&(f=Jt(l,d)),e.addValue(l,M(f)),null!==(o=(a=n)[l])&&void 0!==o||(a[l]=f),e.setBaseTarget(l,f))}}(e,u,c);var l=na(e,u,c,s);s=l.transitionEnd,u=l.target}return(0,r.__assign)({transition:a,transitionEnd:s},u)},scrapeMotionValuesFromProps:ci,build:function(e,t,n,r,i){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),Hr(t,n,r,i.transformTemplate)},render:ai},ia=Bo(ra),oa=Bo((0,r.__assign)((0,r.__assign)({},ra),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return or(t)?(null===(n=Qt(t))||void 0===n?void 0:n.default)||0:(t=si.has(t)?t:oi(t),e.getAttribute(t))},scrapeMotionValuesFromProps:li,build:function(e,t,n,r,i){ei(t,n,r,i.transformTemplate)},render:ui})),aa=function(e,t){return Fr(e)?oa(t,{enableHardwareAcceleration:!1}):ia(t,{enableHardwareAcceleration:!0})};function sa(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var ua={correct:function(e,t){if(!t.target)return e;if("string"===typeof e){if(!fe.test(e))return e;e=parseFloat(e)}var n=sa(e,t.target.x),r=sa(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},ca="_$css",la={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,i=e,o=e.includes("var("),a=[];o&&(e=e.replace(Ho,(function(e){return a.push(e),ca})));var s=Pe.parse(e);if(s.length>5)return i;var u=Pe.createTransformer(e),c="number"!==typeof s[0]?1:0,l=r.x.scale*n.x,d=r.y.scale*n.y;s[0+c]/=l,s[1+c]/=d;var f=O(l,d,.5);"number"===typeof s[2+c]&&(s[2+c]/=f),"number"===typeof s[3+c]&&
1(s[3+c]/=f);var p=u(s);if(o){var h=0;p=p.replace(ca,(function(){var e=a[h];return h++,e}))}return p}},da=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.componentDidMount=function(){var e,t=this,n=this.props,i=n.visualElement,o=n.layoutGroup,a=n.switchLayoutGroup,s=n.layoutId,u=i.projection;e=fa,Object.assign(Qn,e),u&&((null===o||void 0===o?void 0:o.group)&&o.group.add(u),(null===a||void 0===a?void 0:a.register)&&s&&a.register(u),u.root.didUpdate(),u.addEventListener("animationComplete",(function(){t.safeToRemove()})),u.setOptions((0,r.__assign)((0,r.__assign)({},u.options),{onExitComplete:function(){return t.safeToRemove()}}))),dr.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,i=n.visualElement,o=n.drag,a=n.isPresent,s=i.projection;return s?(s.isPresent=a,o||e.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?s.promote():s.relegate()||R.ZP.postRender((function(){var e;(null===(e=s.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()}))),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visualElement,n=e.layoutGroup,r=e.switchLayoutGroup,i=t.projection;i&&(i.scheduleCheckAfterUnmount(),(null===n||void 0===n?void 0:n.group)&&n.group.remove(i),(null===r||void 0===r?void 0:r.deregister)&&r.deregister(i))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null===e||void 0===e||e()},t.prototype.render=function(){return null},t}(i.Component);var fa={borderRadius:(0,r.__assign)((0,r.__assign)({},ua),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:ua,borderTopRightRadius:ua,borderBottomLeftRadius:ua,borderBottomRightRadius:ua,boxShadow:la},pa={measureLayout:function(e){var t=(0,r.__read)((0,Ki.oO)(),2),n=t[0],o=t[1],a=(0,i.useContext)(Pr.p);return i.createElement(da,(0,r.__assign)({},e,{layoutGroup:a,switchLayoutGroup:(0,i.useContext)(Ar),isPresent:n,safeToRemove:o}))}},ha=fr({attachResizeListener:function(e,t){return e.addEventListener("resize",t,{passive:!0}),function(){return e.removeEventListener("resize",t)}},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}}}),ma={current:void 0},va=fr({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!ma.current){var e=new ha(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),ma.current=e}return ma.current},resetTransform:function(e,t){e.style.transform=null!==t&&void 0!==t?t:"none"}}),ga=(0,r.__assign)((0,r.__assign)((0,r.__assign)((0,r.__assign)({},yo),Yi),Mo),pa),ya=Nr((function(e,t){return function(e,t,n,i,o){var a=t.forwardMotionProps,s=void 0!==a&&a,u=Fr(e)?vi:gi;return(0,r.__assign)((0,r.__assign)({},u),{preloadedFeatures:n,useRender:ri(s),createVisualElement:i,projectionNodeConstructor:o,Component:e})}(e,t,ga,aa,va)}))},11741:function(e,t,n){"use strict";n.d(t,{j:function(){return r}});var r="undefined"!==typeof window},96681:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var r=n(67294);function i(e){var t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},6337:function(e,t,n){"use strict";n.d(t,{N:function(){return s}});var r=n(97582),i=n(89073),o=n(67294),a=n(4454);function s(){var e=(0,a.t)(),t=(0,r.__read)((0,o.useState)(0),2),n=t[0],s=t[1],u=(0,o.useCallback)((function(){e.current&&s(n+1)}),[n]);return[(0,o.useCallback)((function(){return i.ZP.postRender(u)}),[u]),n]}},76316:function(e,t,n){"use strict";n.d(t,{M:function(){return a}});var r=n(96681),i=0,o=function(){return i++},a=function(){return(0,r.h)(o)}},4454:function(e,t,n){"use strict";n.d(t,{t:function(){return o}});var r=n(67294),i=n(58868);function o(){var e=(0,r.useRef)(!1);return(0,i.L)((function(){return e.current=!0,function(){e.current=!1}}),[]),e}},58868:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});
1var r=n(67294),i=n(11741).j?r.useLayoutEffect:r.useEffect},65411:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var r=n(67294);function i(e){return(0,r.useEffect)((function(){return function(){return e()}}),[])}},89073:function(e,t,n){"use strict";n.d(t,{qY:function(){return p},ZP:function(){return b},iW:function(){return h},$B:function(){return y}});const r=1/60*1e3,i="undefined"!==typeof performance?()=>performance.now():()=>Date.now(),o="undefined"!==typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout((()=>e(i())),r);let a=!0,s=!1,u=!1;const c={delta:0,timestamp:0},l=["read","update","preRender","render","postRender"],d=l.reduce(((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{const u=s&&i,c=u?t:n;return o&&a.add(e),-1===c.indexOf(e)&&(c.push(e),u&&i&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:u=>{if(i)o=!0;else{if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(u),a.has(r)&&(s.schedule(r),e())}i=!1,o&&(o=!1,s.process(u))}}};return s}((()=>s=!0)),e)),{}),f=l.reduce(((e,t)=>{const n=d[t];return e[t]=(e,t=!1,r=!1)=>(s||g(),n.schedule(e,t,r)),e}),{}),p=l.reduce(((e,t)=>(e[t]=d[t].cancel,e)),{}),h=l.reduce(((e,t)=>(e[t]=()=>d[t].process(c),e)),{}),m=e=>d[e].process(c),v=e=>{s=!1,c.delta=a?r:Math.max(Math.min(e-c.timestamp,40),1),c.timestamp=e,u=!0,l.forEach(m),u=!1,s&&(a=!1,o(v))},g=()=>{s=!0,a=!0,u||o(v)},y=()=>c;var b=f},79627:function(e,t,n){"use strict";n.r(t),n.d(t,{print:function(){return f}});var r="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function i(e){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e){return a(e,[])}function a(e,t){switch(i(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),i=function(e){var t=e[String(r)];if("function"===typeof t)return t;if("function"===typeof e.inspect)return e.inspect}(e);if(void 0!==i){var o=i.call(e);if(o!==e)return"string"===typeof o?o:a(o,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],o=0;o<n;++o)i.push(a(e[o],t));1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"===typeof e.constructor){var n=e.constructor.name;if("string"===typeof n&&""!==n)return n}return t}(e)+"]";var r=n.map((function(n){return n+": "+a(e[n],t)}));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}function s(e){var t=e.prototype.toJSON;"function"===typeof t||function(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}(0),e.prototype.inspect=t,r&&(e.prototype[r]=t)}function u(e){return null!=e&&"string"===typeof e.kind}s(function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}()),s(function(){function e(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}());var c={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],Float
1Value:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},l=Object.freeze({});function d(e,t,n){var r=e[t];if(r){if(!n&&"function"===typeof r)return r;var i=n?r.leave:r.enter;if("function"===typeof i)return i}else{var o=n?e.leave:e.enter;if(o){if("function"===typeof o)return o;var a=o[t];if("function"===typeof a)return a}}}function f(e){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c,r=void 0,i=Array.isArray(e),a=[e],s=-1,f=[],p=void 0,h=void 0,m=void 0,v=[],g=[],y=e;do{var b=++s===a.length,x=b&&0!==f.length;if(b){if(h=0===g.length?void 0:v[v.length-1],p=m,m=g.pop(),x){if(i)p=p.slice();else{for(var _={},w=0,S=Object.keys(p);w<S.length;w++){var k=S[w];_[k]=p[k]}p=_}for(var E=0,C=0;C<f.length;C++){var j=f[C][0],T=f[C][1];i&&(j-=E),i&&null===T?(p.splice(j,1),E++):p[j]=T}}s=r.index,a=r.keys,f=r.edits,i=r.inArray,r=r.prev}else{if(h=m?i?s:a[s]:void 0,null===(p=m?m[h]:y)||void 0===p)continue;m&&v.push(h)}var R,O=void 0;if(!Array.isArray(p)){if(!u(p))throw new Error("Invalid AST Node: ".concat(o(p),"."));var P=d(t,p.kind,b);if(P){if((O=P.call(t,p,h,m,v,g))===l)break;if(!1===O){if(!b){v.pop();continue}}else if(void 0!==O&&(f.push([h,O]),!b)){if(!u(O)){v.pop();continue}p=O}}}void 0===O&&x&&f.push([h,p]),b?v.pop():(r={inArray:i,index:s,keys:a,edits:f,prev:r},a=(i=Array.isArray(p))?p:null!==(R=n[p.kind])&&void 0!==R?R:[],s=-1,f=[],m&&g.push(m),m=p)}while(void 0!==r);return 0!==f.length&&(y=f[f.length-1][1]),y}(e,{leave:p})}var p={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return m(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=g("(",m(e.variableDefinitions,", "),")"),i=m(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?m([t,m([n,r]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+g(" = ",r)+g(" ",m(i," "))},SelectionSet:function(e){return v(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet,a=g("",t,": ")+n,s=a+g("(",m(r,", "),")");return s.length>80&&(s=a+g("(\n",y(m(r,"\n")),"\n)")),m([s,m(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+g(" ",m(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return m(["...",g("on ",t),m(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(g("(",m(r,", "),")")," ")+"on ".concat(n," ").concat(g("",m(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"
1===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],s=!r||o||a||n,u="";return!s||r&&i||(u+="\n"+t),u+=t?e.replace(/\n/g,"\n"+t):e,s&&(u+="\n"),'"""'+u.replace(/"""/g,'\\"""')+'"""'}(n,"description"===t?"":"  "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+m(e.values,", ")+"]"},ObjectValue:function(e){return"{"+m(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+g("(",m(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:h((function(e){var t=e.directives,n=e.operationTypes;return m(["schema",m(t," "),v(n)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:h((function(e){return m(["scalar",e.name,m(e.directives," ")]," ")})),ObjectTypeDefinition:h((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return m(["type",t,g("implements ",m(n," & ")),m(r," "),v(i)]," ")})),FieldDefinition:h((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(x(n)?g("(\n",y(m(n,"\n")),"\n)"):g("(",m(n,", "),")"))+": "+r+g(" ",m(i," "))})),InputValueDefinition:h((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return m([t+": "+n,g("= ",r),m(i," ")]," ")})),InterfaceTypeDefinition:h((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return m(["interface",t,g("implements ",m(n," & ")),m(r," "),v(i)]," ")})),UnionTypeDefinition:h((function(e){var t=e.name,n=e.directives,r=e.types;return m(["union",t,m(n," "),r&&0!==r.length?"= "+m(r," | "):""]," ")})),EnumTypeDefinition:h((function(e){var t=e.name,n=e.directives,r=e.values;return m(["enum",t,m(n," "),v(r)]," ")})),EnumValueDefinition:h((function(e){return m([e.name,m(e.directives," ")]," ")})),InputObjectTypeDefinition:h((function(e){var t=e.name,n=e.directives,r=e.fields;return m(["input",t,m(n," "),v(r)]," ")})),DirectiveDefinition:h((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(x(n)?g("(\n",y(m(n,"\n")),"\n)"):g("(",m(n,", "),")"))+(r?" repeatable":"")+" on "+m(i," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return m(["extend schema",m(t," "),v(n)]," ")},ScalarTypeExtension:function(e){return m(["extend scalar",e.name,m(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return m(["extend type",t,g("implements ",m(n," & ")),m(r," "),v(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return m(["extend interface",t,g("implements ",m(n," & ")),m(r," "),v(i)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return m(["extend union",t,m(n," "),r&&0!==r.length?"= "+m(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return m(["extend enum",t,m(n," "),v(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return m(["extend input",t,m(n," "),v(r)]," ")}};function h(e){return function(t){return m([t.description,e(t)],"\n")}}function m(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null===e||void 0===e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function v(e){return g("{\n",y(m(e,"\n")),"\n}")}function g(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function y(e){return g("  ",e.replace(/\n/g,"\n  "))}function b(e){return-1!==e.indexOf("\n")}function x(e){return null!=e&&e.some(b)}},39497:function(e,t,n){"use strict";var r=n(95659);function i(e){if("boolean"===typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=(0,r.Gd)().getClient(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function o(e,t){let n=0;for(let r=e.length-1;r>=0;r--){const t=e[r];"."===t?e.splice(r,1):".."===t?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}const a=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^/]+?|)(\.[^./]*|))(?:[/]*)$/;function s(e){const t=a.exec(e);return t?t.slice(1):[]}function u(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const i=r>=0?e[r]:"/";i&&(t=`${i}/${t}`,n="/"===i.charAt(0))}return t=o(t.split("/").filter((e=>!!e)),!n).join("/"),(n?"/":"")+t||"."}function c(e){let t=0;for(;t<e.length&&""===e[t];t++);let n=e.length-1;for(;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}class l{static __initStatic(){this.id="RewriteFrames"}__init(){this.name=l.id}__init2(){this._prefix="app:///"}constructor(e={}){l.prototype.__init.call(this),l.prototype.__init2.call(this),l.prototype.__init3.call(this),e.root&&(this._root=e.root),e.prefix&&(this._prefix=e.prefix),e.iteratee&&(this._iteratee=e.iteratee)}setupOnce(e,t){e((e=>{const n=t().getIntegration(l);return n?n.process(e):e}))}process(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=this._processExceptionsEvent(t)),t}__init3(){this._iteratee=e=>{if(!e.filename)return e;const t=/^[a-zA-Z]:\\/.test(e.filename)||e.filename.includes("\\")&&!e.filename.includes("/"),n=/^\//.test(e.filename);if(t||n){const n=t?e.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):e.filename,r=this._root?function(e,t){e=u(e).slice(1),t=u(t).slice(1);const n=c(e.split("/")),r=c(t.split("/")),i=Math.min(n.length,r.length);let o=i;for(let s=0;s<i;s++)if(n[s]!==r[s]){o=s;break}let a=[];for(let s=o;s<n.length;s++)a.push("..");return a=a.concat(r.slice(o)),a.join("/")}(this._root,n):function(e,t){let n=s(e)[2];return t&&n.slice(-1*t.length)===t&&(n=n.slice(0,n.length-t.length)),n}(n);e.filename=`${this._prefix}${r}`}return e}}_processExceptionsEvent(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map((e=>({...e,...e.stacktrace&&{stacktrace:this._processStacktrace(e.stacktrace)}})))}}}catch(t){return e}}_processStacktrace(e){return{...e,frames:e&&e.frames&&e.frames.map((e=>this._iteratee(e)))}}}l.__initStatic();var d=n(40105),f=n(11507);var p=n(64487),h=n(21170),m=n(12343),v=n(62844),g=n(20535);class y{__init(){this.spans=[]}constructor(e=1e3){y.prototype.__init.call(this),this._maxlen=e}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class b{__init2(){this.traceId=(0,v.DM)()}__init3(){this.spanId=(0,v.DM)().substring(16)}__init4(){this.startTimestamp=(0,h.ph)()}__init5(){this.tags={}}__init6(){this.data={}}__init7(){this.instrumenter="sentry"}constructor(e){if(b.prototype.__init2.call(this),b.prototype.__init3.call(this),b.prototype.__init4.call(this),b.prototype.__init5.call(this),b.prototype.__init6.call(this),b.prototype.__init7.call(this),!e)return this;e.traceId&&(this.traceId=e.traceId),e.spanId&&(this.spanId=e.spanId),e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.data&&(this.data=e.data),e.tags&&(this.tags=e.tags),e.status&&(this.status=e.status),e.startTimestamp&&(this.startTimestamp=e.startTimestamp),e.endTimestamp&&(this.endTimestamp=e.endTimestamp),e.instrumenter&&(this.instrumenter=e.instrumenter)}startChild(e){const t=new b({...e,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t),t.transaction=this.transaction,("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&t.transaction){const n=`[Tracing] Starting '${e&&e.op||"< unknown op >"}' span on transaction '${t.transaction.name||"< unknown name >"}' (${t.transaction.spanId}).`;t.transaction.metadata.spanMetadata[t.spanId]={logMessage:n},m.kg.log(n)}return t}setTag(e,t){return this.tags={...this.tags,[e]:t},this}setData(e,t){return this.data={...this.data,[e]:t},this}setStatus(e){return this.status=e,this}setHttpStatus(e){this.setTag("http.status_code",String(e));const t=function(e){if(e<400&&e>=100)return"ok";if(e>
1=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(e);return"unknown_error"!==t&&this.setStatus(t),this}isSuccess(){return"ok"===this.status}finish(e){if(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){const{logMessage:e}=this.transaction.metadata.spanMetadata[this.spanId];e&&m.kg.log(e.replace("Starting","Finishing"))}this.endTimestamp="number"===typeof e?e:(0,h.ph)()}toTraceparent(){let e="";return void 0!==this.sampled&&(e=this.sampled?"-1":"-0"),`${this.traceId}-${this.spanId}${e}`}toContext(){return(0,g.Jr)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(e){return this.data=e.data||{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=e.spanId||this.spanId,this.startTimestamp=e.startTimestamp||this.startTimestamp,this.status=e.status,this.tags=e.tags||{},this.traceId=e.traceId||this.traceId,this}getTraceContext(){return(0,g.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return(0,g.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})}}var x=n(51131);class _ extends b{__init(){this._measurements={}}__init2(){this._contexts={}}__init3(){this._frozenDynamicSamplingContext=void 0}constructor(e,t){super(e),_.prototype.__init.call(this),_.prototype.__init2.call(this),_.prototype.__init3.call(this),this._hub=t||(0,r.Gd)(),this._name=e.name||"",this.metadata={source:"custom",...e.metadata,spanMetadata:{}},this._trimEnd=e.trimEnd,this.transaction=this;const n=this.metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(e){this.setName(e)}setName(e,t="custom"){this._name=e,this.metadata.source=t}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new y(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,n=""){this._measurements[e]={value:t,unit:n}}setMetadata(e){this.metadata={...this.metadata,...e}}finish(e){if(void 0!==this.endTimestamp)return;this.name||(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),super.finish(e);const t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this.sampled)return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(t&&t.recordDroppedEvent("sample_rate","transaction"));const n=this.spanRecorder?this.spanRecorder.spans.filter((e=>e!==this&&e.endTimestamp)):[];this._trimEnd&&n.length>0&&(this.endTimestamp=n.reduce(((e,t)=>e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e)).endTimestamp);const r=this.metadata,i={contexts:{...this._contexts,trace:this.getTraceContext()},spans:n,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...r,dynamicSamplingContext:this.getDynamicSamplingContext()},...r.source&&{transaction_info:{source:r.source}}};return Object.keys(this._measurements).length>0&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),i.measurements=this._measurements),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),this._hub.captureEvent(i)}toContext(){const e=super.toContext();return(0,g.Jr)({...e,name:this.name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this.name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;const e=this._hub||(0,r.Gd)(),t=e&&e.getClient();if(!t)return{};const{environment:n,release:i}=t.getOptions()||{},{publicKey:o}=t.getDsn()||{},a=this.metadata.sampleRate,s=void 0!==a?a.toString():void 0,{segment:u}=e.getScope().getUser()||{},c=this.metadata.source,l=c&&"url"!==c?this.name:void 0,d=(0,g.Jr)({environment:n||x.J,release:i,transaction:l,user_segment:u,public_key:o,trace_id:this.traceId,sample_rate:s});return t.emit&&t.emit("createDsc",d),d}setHub(e){this._hub=e}}const w={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},S=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class k extends y{constructor(e,t,n,r){super(r),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){e.spanId!==this.transactionSpanId&&(e.finish=t=>{e.endTimestamp="number"===typeof t?t:(0,h.ph)(),this._popActivity(e.spanId)},void 0===e.endTimestamp&&this._pushActivity(e.spanId)),super.add(e)}}class E extends _{__init(){this.activities={}}__init2(){this._heartbeatCounter=0}__init3(){this._finished=!1}__init4(){this._idleTimeoutCanceledPermanently=!1}__init5(){this._beforeFinishCallbacks=[]}__init6(){this._finishReason=S[4]}constructor(e,t,n=w.idleTimeout,r=w.finalTimeout,i=w.heartbeatInterval,o=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=r,this._heartbeatInterval=i,this._onScope=o,E.prototype.__init.call(this),E.prototype.__init2.call(this),E.prototype.__init3.call(this),E.prototype.__init4.call(this),E.prototype.__init5.call(this),E.prototype.__init6.call(this),o&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),t.configureScope((e=>e.setSpan(this)))),this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=S[3],this.finish())}),this._finalTimeout)}finish(e=(0,h.ph)()){if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setTag("finishReason",this._finishReason),this.spanRecorder){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op);
1for(const t of this._beforeFinishCallbacks)t(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter((t=>{if(t.spanId===this.spanId)return!0;t.endTimestamp||(t.endTimestamp=e,t.setStatus("cancelled"),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));const n=t.startTimestamp<e;return n||("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(t,void 0,2)),n})),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.log("[Tracing] flushing IdleTransaction")}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.log("[Tracing] No active IdleTransaction");if(this._onScope){const e=this._idleHub.getScope();e.getTransaction()===this&&e.setSpan(void 0)}return super.finish(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){const t=e=>{this._finished||this._pushActivity(e)},n=e=>{this._finished||this._popActivity(e)};this.spanRecorder=new k(t,n,this.spanId,e),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:t}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=S[5],this.finish(e)))}setFinishReason(e){this._finishReason=e}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=S[1],this.finish(e))}),this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.log(`[Tracing] popActivity ${e}`),delete this.activities[e],("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const e=(0,h.ph)();this._idleTimeoutCanceledPermanently?(this._finishReason=S[5],this.finish(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=S[0],this.finish()):this._pingHeartbeat()}_pingHeartbeat(){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}var C=n(67597),j=n(35648);function T(e){return(e||(0,r.Gd)()).getScope().getTransaction()}let R=!1;function O(){const e=T();if(e){const t="internal_error";("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}function P(){const e=this.getScope().getSpan();return e?{"sentry-trace":e.toTraceparent()}:{}}function A(e,t,n){if(!i(t))return e.sampled=!1,e;if(void 0!==e.sampled)return e.setMetadata({sampleRate:Number(e.sampled)}),e;let r;return"function"===typeof t.tracesSampler?(r=t.tracesSampler(n),e.setMetadata({sampleRate:Number(r)})):void 0!==n.parentSampled?r=n.parentSampled:"undefined"!==typeof t.tracesSampleRate?(r=t.tracesSampleRate,e.setMetadata({sampleRate:Number(r)})):(r=1,e.setMetadata({sampleRate:r})),function(e){if((0,C.i2)(e)||"number"!==typeof e&&"boolean"!==typeof e)return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.warn(`[Tracing] Given sample rate is invali
1d. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1;if(e<0||e>1)return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1;return!0}(r)?r?(e.sampled=Math.random()<r,e.sampled?(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.log(`[Tracing] starting ${e.op} transaction - ${e.name}`),e):(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),e)):(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.log("[Tracing] Discarding transaction because "+("function"===typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),e.sampled=!1,e):(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function D(e,t){const n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",o=e.instrumenter||"sentry";i!==o&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.error(`A transaction was started with instrumenter=\`${o}\`, but the SDK is configured with the \`${i}\` instrumenter.\nThe transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),e.sampled=!1);let a=new _(e,this);return a=A(a,r,{parentSampled:e.parentSampled,transactionContext:e,...t}),a.sampled&&a.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",a),a}function I(e,t,n,r,i,o,a){const s=e.getClient(),u=s&&s.getOptions()||{};let c=new E(t,e,n,r,a,i);return c=A(c,u,{parentSampled:t.parentSampled,transactionContext:t,...o}),c.sampled&&c.initSpanRecorder(u._experiments&&u._experiments.maxSpans),s&&s.emit&&s.emit("startTransaction",c),c}function N(){const e=(0,r.cu)();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=D),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=P),R||(R=!0,(0,j.oq)("error",O),(0,j.oq)("unhandledrejection",O)))}O.tag="sentry_tracingErrorCallback";const M=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function F(e){const t=e.match(M);if(!e||!t)return;let n;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}const B="baggage",L="sentry-",z=/^sentry-/;function U(e){if(!(0,C.HD)(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce(((e,t)=>({...e,...V(t)})),{});else{if(!e)return;t=V(e)}const n=Object.entries(t).reduce(((e,[t,n])=>{if(t.match(z)){e[t.slice(L.length)]=n}return e}),{});return Object.keys(n).length>0?n:void 0}function H(e){return function(e){if(0===Object.keys(e).length)return;return Object.entries(e).reduce(((e,[t,n],r)=>{const i=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,o=0===r?i:`${e},${i}`;return o.length>8192?(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):o}),"")}(Object.entries(e).reduce(((e,[t,n])=>(n&&(e[`sentry-${t}`]=n),e)),{}))}function V(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(e[t]=n,e)),{})}var W=n(58464);const G=n(71235).n2;const q=(e,t,n)=>{let r,i;return o=>{t.value>=0&&(o||n)&&(i=t.value-(r||0),(i||void 0===r)&&(r=t.value,t.delta=i,e(t)))}},Z=()=>G.__WEB_VITALS_POLYFILL__?G.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const e=G.performance.timing,t=G.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(const r in e)"navigationStart"!==r&&"toJSON"!==r&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n})()):G.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],$=()=>{const e=Z();return e&&e.activationStart||0},Y=(e,t)=>
1{const n=Z();let r="navigate";return n&&(r=G.document.prerendering||$()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:"undefined"===typeof t?-1:t,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},K=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{t(e.getEntries())}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(r){}},X=(e,t)=>{const n=r=>{"pagehide"!==r.type&&"hidden"!==G.document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)};let Q=-1;const J=()=>(Q<0&&(Q="hidden"!==G.document.visibilityState||G.document.prerendering?1/0:0,X((({timeStamp:e})=>{Q=e}),!0)),{get firstHiddenTime(){return Q}}),ee={};function te(e){return"number"===typeof e&&isFinite(e)}function ne(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}function re(e){return e/1e3}function ie(){return G&&G.addEventListener&&G.performance}let oe,ae,se=0,ue={};function ce(){const e=ie();if(e&&h.Z1){e.mark&&G.performance.mark("sentry-tracing-init"),(e=>{const t=J(),n=Y("FID");let r;const i=e=>{e.startTime<t.firstHiddenTime&&(n.value=e.processingStart-e.startTime,n.entries.push(e),r(!0))},o=e=>{e.forEach(i)},a=K("first-input",o);r=q(e,n),a&&X((()=>{o(a.takeRecords()),a.disconnect()}),!0)})((e=>{const t=e.entries.pop();if(!t)return;const n=re(h.Z1),r=re(t.startTime);("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.log("[Measurements] Adding FID"),ue.fid={value:e.value,unit:"millisecond"},ue["mark.fid"]={value:n+r,unit:"second"}}));const t=(e=>{const t=Y("CLS",0);let n,r=0,i=[];const o=e=>{e.forEach((e=>{if(!e.hadRecentInput){const o=i[0],a=i[i.length-1];r&&0!==i.length&&e.startTime-a.startTime<1e3&&e.startTime-o.startTime<5e3?(r+=e.value,i.push(e)):(r=e.value,i=[e]),r>t.value&&(t.value=r,t.entries=i,n&&n())}}))},a=K("layout-shift",o);if(a){n=q(e,t);const r=()=>{o(a.takeRecords()),n(!0)};return X(r),r}})((e=>{const t=e.entries.pop();t&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.log("[Measurements] Adding CLS"),ue.cls={value:e.value,unit:""},ae=t)})),n=(e=>{const t=J(),n=Y("LCP");let r;const i=e=>{const i=e[e.length-1];if(i){const e=Math.max(i.startTime-$(),0);e<t.firstHiddenTime&&(n.value=e,n.entries=[i],r())}},o=K("largest-contentful-paint",i);if(o){r=q(e,n);const t=()=>{ee[n.id]||(i(o.takeRecords()),o.disconnect(),ee[n.id]=!0,r(!0))};return["keydown","click"].forEach((e=>{addEventListener(e,t,{once:!0,capture:!0})})),X(t,!0),t}})((e=>{const t=e.entries.pop();t&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.log("[Measurements] Adding LCP"),ue.lcp={value:e.value,unit:"millisecond"},oe=t)}));return()=>{t&&t(),n&&n()}}return()=>{}}function le(e){const t=ie();if(!t||!G.performance.getEntries||!h.Z1)return;("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.log("[Tracing] Adding & adjusting spans using Performance API");const n=re(h.Z1),r=t.getEntries();let i,o;if(r.slice(se).forEach((t=>{const r=re(t.startTime),a=re(t.duration);if(!("navigation"===e.op&&n+r<e.startTimestamp))switch(t.entryType){case"navigation":!function(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((r=>{de(e,t,r,n)})),de(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),de(e,t,"fetch",n,"cache","domainLookupStart"),de(e,t,"domainLookup",n,"DNS"),function(e,t,n){ne(e,{op:"browser",description:"request",startTimestamp:n+re(t.requestStart),endTimestamp:n+re(t.responseEnd)}),ne(e,{op:"browser",description:"response",startTimestamp:n+re(t.responseStart),endTimestamp:n+re(t.responseEnd)})}(e,t,n)}(e,t,n),i=n+re(t.responseStart),o=n+re(t.requestStart);break;case"mark":case"paint":case"measure":{!function(e,t,n,r,i){const o=i+n,a=o+r;ne(e,{description:t.name,endTimestamp:a,op:t.entryType,startTimestamp:o})}(e,t,r,a,n);const i=J(),o=t.startTime<i.firstHiddenTime;"first-paint"===t.name&&o&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.log("[Measurements] Adding FP"),ue.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&o&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.log("[Measurements] Adding FCP"),ue.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":{const i=t.name.replace(G.location.origin,"");!function(e,t,n,r,i,o){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const a={};"transferSize"in t&&(a["http.response_transfer_size"]=t.transferSize);"encodedBodySize"in t&&(a["http.response_content_length"]=t.encodedBodySize);"decodedBodySize"in t&&(a["http.decoded_response_content_length"]=t.decodedBodySize);"renderBlockingStatus"in t&&(a["resource.render_blocking_status"]=t.renderBlockingStatus);const s=o+r;ne(e,{description:n,endTimestamp:s+i,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",startTimestamp:s,data:a})}(e,t,i,r,a,n);break}}})),se=Math.max(r.length-1,0),function(e){const t=G.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),te(n.rtt)&&(ue["connection.rtt"]={value:n.rtt,unit:"millisecond"}));te(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`);te(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===e.op){"number"===typeof i&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.log("[Measurements] Adding TTFB"),ue.ttfb={value:1e3*(i-e.startTimestamp),unit:"millisecond"},"number"===typeof o&&o<=i&&(ue["ttfb.requestTime"]={value:1e3*(i-o),unit:"millisecond"})),["fcp","fp","lcp"].forEach((t=>{if(!ue[t]||n>=e.startTimestamp)return;const r=ue[t].value,i=n+re(r),o=Math.abs(1e3*(i-e.startTimestamp)),a=o-r;("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.log(`[Measurements] Normalized ${t} from ${r} to ${o} (${a})`),ue[t].value=o}));const t=ue["mark.fid"];t&&ue.fid&&(ne(e,{description:"first input delay",endTimestamp:t.value+re(ue.fid.value),op:"ui.action",startTimestamp:t.value}),delete ue["mark.fid"]),"fcp"in ue||delete ue.cls,Object.keys(ue).forEach((t=>
1{e.setMeasurement(t,ue[t].value,ue[t].unit)})),function(e){oe&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.log("[Measurements] Adding LCP Data"),oe.element&&e.setTag("lcp.element",(0,W.Rt)(oe.element)),oe.id&&e.setTag("lcp.id",oe.id),oe.url&&e.setTag("lcp.url",oe.url.trim().slice(0,200)),e.setTag("lcp.size",oe.size));ae&&ae.sources&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.log("[Measurements] Adding CLS Data"),ae.sources.forEach(((t,n)=>e.setTag(`cls.source.${n+1}`,(0,W.Rt)(t.node)))))}(e)}oe=void 0,ae=void 0,ue={}}function de(e,t,n,r,i,o){const a=o?t[o]:t[`${n}End`],s=t[`${n}Start`];s&&a&&ne(e,{op:"browser",description:i||n,startTimestamp:r+re(s),endTimestamp:r+re(a)})}var fe=n(57321);const pe=["localhost",/^\/(?!\/)/],he={traceFetch:!0,traceXHR:!0,tracingOrigins:pe,tracePropagationTargets:pe};function me(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:o,tracingOrigins:a,shouldCreateSpanForRequest:s}={traceFetch:he.traceFetch,traceXHR:he.traceXHR,...e},u="function"===typeof s?s:e=>!0,c=e=>function(e,t){return(0,fe.U0)(e,t||pe)}(e,o||a),l={};t&&(0,j.oq)("fetch",(e=>{!function(e,t,n,o){if(!i()||!e.fetchData||!t(e.fetchData.url))return;if(e.endTimestamp){const t=e.fetchData.__span;if(!t)return;const n=o[t];return void(n&&(e.response?n.setHttpStatus(e.response.status):e.error&&n.setStatus("internal_error"),n.finish(),delete o[t]))}const a=e.response&&e.response.headers&&e.response.headers.get("content-length"),s=(0,r.Gd)().getScope(),u=s&&s.getSpan(),c=u&&u.transaction;if(u&&c){const{method:t,url:r}=e.fetchData,i=u.startChild({data:{url:r,type:"fetch",...a?{"http.response_content_length":a}:{},"http.method":t},description:`${t} ${r}`,op:"http.client"});e.fetchData.__span=i.spanId,o[i.spanId]=i;const s=e.args[0];e.args[1]=e.args[1]||{};const l=e.args[1];n(e.fetchData.url)&&(l.headers=function(e,t,n,r){const i=H(t),o=n.toTraceparent(),a="undefined"!==typeof Request&&(0,C.V9)(e,Request)?e.headers:r.headers;if(a){if("undefined"!==typeof Headers&&(0,C.V9)(a,Headers)){const e=new Headers(a);return e.append("sentry-trace",o),i&&e.append(B,i),e}if(Array.isArray(a)){const e=[...a,["sentry-trace",o]];return i&&e.push([B,i]),e}{const e="baggage"in a?a.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),i&&t.push(i),{...a,"sentry-trace":o,baggage:t.length>0?t.join(","):void 0}}}return{"sentry-trace":o,baggage:i}}(s,c.getDynamicSamplingContext(),i,l))}}(e,u,c,l)})),n&&(0,j.oq)("xhr",(e=>{!function(e,t,n,o){const a=e.xhr,s=a&&a[j.xU];if(!i()||a&&a.__sentry_own_request__||!(a&&s&&t(s.url)))return;if(e.endTimestamp){const e=a.__sentry_xhr_span_id__;if(!e)return;const t=o[e];return void(t&&(t.setHttpStatus(s.status_code),t.finish(),delete o[e]))}const u=(0,r.Gd)().getScope(),c=u&&u.getSpan(),l=c&&c.transaction;if(c&&l){const e=c.startChild({data:{...s.data,type:"xhr","http.method":s.method,url:s.url},description:`${s.method} ${s.url}`,op:"http.client"});if(a.__sentry_xhr_span_id__=e.spanId,o[a.__sentry_xhr_span_id__]=e,a.setRequestHeader&&n(s.url))try{a.setRequestHeader("sentry-trace",e.toTraceparent());const t=H(l.getDynamicSamplingContext());t&&a.setRequestHeader(B,t)}catch(d){}}}(e,u,c,l)}))}const ve={...w,markBackgroundTransactions:!0,routingInstrumentation:function(e,t=!0,n=!0){if(!G||!G.location)return void(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.warn("Could not initialize routing instrumentation due to invalid location"));let r,i=G.location.href;t&&(r=e({name:G.location.pathname,startTimestamp:h.Z1?h.Z1/1e3:void 0,op:"pageload",metadata:{source:"url"}})),n&&(0,j.oq)("history",(({to:t,from:n})=>{void 0===n&&i&&-1!==i.indexOf(t)?i=void 0:n!==t&&(i=void 0,r&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.log(`[Tracing] Finishing current transaction with op: ${r.op}`),r.finish()),r=e({name:G.location.pathname,op:"navigation",metadata:{source:"url"}}))}))},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...he};class ge{__init(){this.name="BrowserTracing"}constructor(e){ge.prototype.__init.call(this),N(),this.options={...ve,...e},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=ce(),this.options.enableLongTask&&K("longtask",(e=>{for(const t of e){const e=T();if(!e)return;const n=re(h.Z1+t.startTime),r=re(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",startTimestamp:n,endTimestamp:n+r})}})),this.options._experiments.enableInteractions&&K("event",(e=>{for(const t of e){const e=T();if(!e)return;if("click"===t.name){const n=re(h.Z1+t.startTime),r=re(t.duration);e.startChild({description:(0,W.Rt)(t.target),op:`ui.interaction.${t.name}`,startTimestamp:n,endTimestamp:n+r})}}}),{durationThreshold:0})}setupOnce(e,t){this._getCurrentHub=t;const{routingInstrumentation:n,startTransactionOnLocationChange:r,startTransactionOnPageLoad:i,markBackgroun
1dTransactions:o,traceFetch:a,traceXHR:s,tracePropagationTargets:u,shouldCreateSpanForRequest:c,_experiments:l}=this.options;n((e=>{const n=this._createRouteTransaction(e);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,e,t),n}),i,r),o&&(G&&G.document?G.document.addEventListener("visibilitychange",(()=>{const e=T();if(G.document.hidden&&e){const t="cancelled";("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${e.op}`),e.status||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.finish()}})):("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")),l.enableInteractions&&this._registerInteractionListener(),me({traceFetch:a,traceXHR:s,tracePropagationTargets:u,shouldCreateSpanForRequest:c})}_createRouteTransaction(e){if(!this._getCurrentHub)return void(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`));const{beforeNavigate:t,idleTimeout:n,finalTimeout:r,heartbeatInterval:i}=this.options,o="pageload"===e.op,a=o?ye("sentry-trace"):null,s=o?ye("baggage"):null,u=a?F(a):void 0,c=s?U(s):void 0,l={...e,...u,metadata:{...e.metadata,dynamicSamplingContext:u&&!c?{}:c},trimEnd:!0},d="function"===typeof t?t(l):l,f=void 0===d?{...l,sampled:!1}:d;f.metadata=f.name!==l.name?{...f.metadata,source:"custom"}:f.metadata,this._latestRouteName=f.name,this._latestRouteSource=f.metadata&&f.metadata.source,!1===f.sampled&&("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.log(`[Tracing] Will not send ${f.op} transaction because of beforeNavigate.`),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.log(`[Tracing] Starting ${f.op} transaction on scope`);const p=this._getCurrentHub(),{location:h}=G,v=I(p,f,n,r,!0,{location:h},i);return v.registerBeforeFinishCallback((e=>{this._collectWebVitals(),le(e)})),v}_registerInteractionListener(){let e;const t=()=>{const{idleTimeout:t,finalTimeout:n,heartbeatInterval:r}=this.options,i="ui.action.click",o=T();if(o&&o.op&&["navigation","pageload"].includes(o.op))return void(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.warn(`[Tracing] Did not create ${i} transaction because a pageload or navigation transaction is in progress.`));if(e&&(e.setFinishReason("interactionInterrupted"),e.finish(),e=void 0),!this._getCurrentHub)return void(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.warn(`[Tracing] Did not create ${i} transaction because _getCurrentHub is invalid.`));if(!this._latestRouteName)return void(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`));const a=this._getCurrentHub(),{location:s}=G,u={name:this._latestRouteName,op:i,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};e=I(a,u,t,n,!0,{location:s},r)};["click"].forEach((e=>{addEventListener(e,t,{once:!1,capture:!0})}))}}function ye(e){const t=(0,W.qT)(`meta[name=${e}]`);return t?t.getAttribute("content"):null}function be(e,t,n){const r=t.match(/([a-z_]+)\.(.*)/i);if(null===r)e[t]=n;else{be(e[r[1]],r[2],n)}}function xe(e,t,n={}){return Array.isArray(t)?_e(e,t,n):function(e,t,n){return r=>{const i=t(r);if(e.allowExclusionByUser){if(!i.find((t=>t.name===e.name)))return i}return _e(e,i,n)}}(e,t,n)}function _e(e,t,n){const r=t.find((t=>t.name===e.name));if(r){for(const[e,t]of Object.entries(n))be(r,e,t);return t}return[...t,e]}var we=n(83454);var Se=n(86891),ke=n(26956),Ee=n(11163),Ce=n.n(Ee);const je=Se.m9;const Te={"routing.instrumentation":"next-router"};let Re,Oe;const Pe=(0,r.Gd)().getClient();function Ae(e,t=!0,n=!0){const{route:r,traceParentData:i,baggage:o,params:a}=function(){let e;const t=je.document.getElementById("__NEXT_DATA__");if(t&&t.innerHTML)try{e=JSON.parse(t.innerHTML)}catch(a){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.warn("Could not extract __NEXT_DATA__")}if(!e)return{};const n={},{page:r,query:i,props:o}=e;return n.route=r,n.params=i,o&&o.pageProps&&(o.pageProps._sentryBaggage&&(n.baggage=o.pageProps._sentryBaggage),o.pageProps._sentryTraceData&&(n.traceParentData=F(o.pageProps._sentryTraceData))),n}();if(Oe=r||je.location.pathname,t){const t=r?"route":"url",n=U(o);Re=e({name:Oe,op:"pageload",tags:Te,...a&&Pe&&Pe.getOptions().sendDefaultPii&&{data:a},...i,metadata:{source:t,dynamicSamplingContext:i&&!n?{}:n}})}n&&Ce().events.on("routeChangeStart",(t=>{const n=function(e){const t=(je.__BUILD_MANIFEST||{}).sortedPages;if(!t)return;return t.find((t=>{const n=function(e){const t=e.split("/");let n="";t[t.length-1].match(/^\[\[\.\.\..+\]\]$/)&&(t.pop(),n="(?:/(.+?))?");const r=t.map((e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)"))).join("/");return new RegExp(`^${r}${n}(?:/)?$`)}(t);return e.match(n)}))}((0,ke.rt)(t));let r,i;n?(r=n,i="route"):(r=t,i="url");const o={...Te,from:Oe};Oe=r,Re&&Re.finish();const a=e({name:r,op:"navigation",tags:o,metadata:{source:i}});if(a){const e=a.startChild({op:"ui.nextjs.route-change",description:"Next.js Route Change"}),t=()=>{e.finish(),Ce().events.off("routeChangeComplete",t)};Ce().events.on("routeChangeComplete",t)}}))}var De=n(30292);const Ie=n.g;const Ne=n.g;var Me,Fe=window;Fe.__sentryRewritesTunnelPath__=void 0,Fe.SENTRY_RELEASE={id:"e931b87483ed2c88348fd71eb82b7e1db6531947"},Fe.__rewriteFramesAssetPrefixPath__="/docs",function(e){const t=Ie.__sentryRewritesTunnelPath__;if(t&&e.dsn){const n=(0,De.U4)(e.dsn),r=n.host.match(/^o(\d+)\.ingest\.sentry\.io$/);if(r){const i=`${t}?o=${r[1]}&p=${n.projectId}`;e.tunnel=i,("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.info(`Tunneling events to "${i}"`)}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&m.kg.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(Me={dsn:"https://[email protected]/6509917",tracesSampleRate:0,beforeSend:function(e){try{if("<anonymous>"===e.exception.values[0].stacktrace.frames[0].filename)return null}catch(t){}return e}}),function(e,t){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.nextjs",packages:t.map((e=>({name:`npm:@sentry/${e}`,version:d.J}))),version:d.J}}(Me,["nextjs","react"]),Me.environment=Me.environment||function(e){const t=e?"production":we.env.VERCEL_ENV;return t?`vercel-${t}`:void 0}(!0)||"production",function(e){let t=e.integrations||[];const n=Ne.__rewriteFramesAssetPrefixPath__||"",r=new l({iteratee:e=>{try{const{origin:t}=new URL(e.filename);e.filename=function(e){let t,n=e[0],r=1;for(;r<e.length;){const i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):"call"!==i&&"optionalCall"!==i||(n=o(((...e)=>n.call(t,...e))),t=void 0)}return n}([e,"access",e=>e.filename,"optionalAccess",e=>e.replace,"call",e=>e(t,"app://"),"access",e=>e.replace,"call",e=>e(n,"")])}catch(t){}return e.filename&&e.filename.startsWith("app:///_next")&&(e.filename=decodeURI(e.filename)),e.filename&&e.filename.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(e.in_app=!1),e}});t=xe(r,t),("undefined"===typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&i(e)&&(t=xe(new ge({tracingOrigins:[...he.tracingOrigins,/^(api\/)/],routingInstrumentation:Ae}),t,{"options.routingInstrumentation":Ae})),e.integrations=t}(Me),function(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:d.J}],version:d.J},(0,f.S1)(e)}(Me),(0,p.e)((e=>{e.setTag("runtime","browser");const t=e=>"transaction"===e.type&&"/404"===e.transaction?null:e;t.id="NextClient404Filter",e.addEventProcessor(t)}))},78720:function(e,t,n){"use strict";n.r(t),n.d(t,{defaultRangeExtractor:function(){return m},useVirtual:function(){return v}});var r=n(67294);function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}var o,a=["bottom","height","left","right","top","width"],s=new Map,u=function e(){var t=[];
1s.forEach((function(e,n){var r,i,o=n.getBoundingClientRect();r=o,i=e.rect,void 0===r&&(r={}),void 0===i&&(i={}),a.some((function(e){return r[e]!==i[e]}))&&(e.rect=o,t.push(e))})),t.forEach((function(e){e.callbacks.forEach((function(t){return t(e.rect)}))})),o=window.requestAnimationFrame(e)};var c="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;function l(e,t){void 0===t&&(t={width:0,height:0});var n=r.useState(e.current),i=n[0],a=n[1],l=r.useReducer(d,t),f=l[0],p=l[1],h=r.useRef(!1);return c((function(){e.current!==i&&a(e.current)})),c((function(){if(i&&!h.current){h.current=!0;var e=i.getBoundingClientRect();p({rect:e})}}),[i]),r.useEffect((function(){if(i){var e=function(e,t){return{observe:function(){var n=0===s.size;s.has(e)?s.get(e).callbacks.push(t):s.set(e,{rect:void 0,hasRectChanged:!1,callbacks:[t]}),n&&u()},unobserve:function(){var n=s.get(e);if(n){var r=n.callbacks.indexOf(t);r>=0&&n.callbacks.splice(r,1),n.callbacks.length||s.delete(e),s.size||cancelAnimationFrame(o)}}}}(i,(function(e){p({rect:e})}));return e.observe(),function(){e.unobserve()}}}),[i]),f}function d(e,t){var n=t.rect;return e.height!==n.height||e.width!==n.width?n:e}var f=function(){return 50},p=function(e){return e},h=function(e,t){return e[t?"offsetWidth":"offsetHeight"]},m=function(e){for(var t=Math.max(e.start-e.overscan,0),n=Math.min(e.end+e.overscan,e.size-1),r=[],i=t;i<=n;i++)r.push(i);return r};function v(e){var t,n=e.size,o=void 0===n?0:n,a=e.estimateSize,s=void 0===a?f:a,u=e.overscan,d=void 0===u?1:u,v=e.paddingStart,g=void 0===v?0:v,y=e.paddingEnd,b=void 0===y?0:y,x=e.parentRef,_=e.horizontal,w=e.scrollToFn,S=e.useObserver,k=e.initialRect,E=e.onScrollElement,C=e.scrollOffsetFn,j=e.keyExtractor,T=void 0===j?p:j,R=e.measureSize,O=void 0===R?h:R,P=e.rangeExtractor,A=void 0===P?m:P,D=_?"width":"height",I=_?"scrollLeft":"scrollTop",N=r.useRef({scrollOffset:0,measurements:[]}),M=r.useState(0),F=M[0],B=M[1];N.current.scrollOffset=F;var L=(S||l)(x,k)[D];N.current.outerSize=L;var z=r.useCallback((function(e){x.current&&(x.current[I]=e)}),[x,I]),U=w||z;w=r.useCallback((function(e){U(e,z)}),[z,U]);var H=r.useState({}),V=H[0],W=H[1],G=r.useCallback((function(){return W({})}),[]),q=r.useRef([]),Z=r.useMemo((function(){var e=q.current.length>0?Math.min.apply(Math,q.current):0;q.current=[];for(var t=N.current.measurements.slice(0,e),n=e;n<o;n++){var r=T(n),i=V[r],a=t[n-1]?t[n-1].end:g,u="number"===typeof i?i:s(n),c=a+u;t[n]={index:n,start:a,size:u,end:c,key:r}}return t}),[s,V,g,o,T]),$=((null==(t=Z[o-1])?void 0:t.end)||g)+b;N.current.measurements=Z,N.current.totalSize=$;var Y=E?E.current:x.current,K=r.useRef(C);K.current=C,c((function(){if(Y){var e=function(e){var t=K.current?K.current(e):Y[I];B(t)};return e(),Y.addEventListener("scroll",e,{capture:!1,passive:!0}),function(){Y.removeEventListener("scroll",e)}}B(0)}),[Y,I]);var X=function(e){var t=e.measurements,n=e.outerSize,r=e.scrollOffset,i=t.length-1,o=function(e,t,n,r){for(;e<=t;){var i=(e+t)/2|0,o=n(i);if(o<r)e=i+1;else{if(!(o>r))return i;t=i-1}}return e>0?e-1:0}(0,i,(function(e){return t[e].start}),r),a=o;for(;a<i&&t[a].end<r+n;)a++;return{start:o,end:a}}(N.current),Q=X.start,J=X.end,ee=r.useMemo((function(){return A({start:Q,end:J,overscan:d,size:Z.length})}),[Q,J,d,Z.length,A]),te=r.useRef(O);te.current=O;var ne=r.useMemo((function(){for(var e=[],t=function(t,n){var r=ee[t],o=i(i({},Z[r]),{},{measureRef:function(e){if(e){var t=te.current(e,_);if(t!==o.size){var n=N.current.scrollOffset;o.start<n&&z(n+(t-o.size)),q.current.push(r),W((function(e){var n;return i(i({},e),{},((n={})[o.key]=t,n))}))}}}});e.push(o)},n=0,r=ee.length;n<r;n++)t(n);return e}),[ee,z,_,Z]),re=r.useRef(!1);c((function(){re.current&&W({}),re.current=!0}),[s]);var ie=r.useCallback((function(e,t){var n=(void 0===t?{}:t).align,r=void 0===n?"start":n,i=N.current,o=i.scrollOffset,a=i.outerSize;"auto"===r&&(r=e<=o?"start":e>=o+a?"end":"start"),"start"===r?w(e):"end"===r?w(e-a):"center"===r&&w(e-a/2)}),[w]),oe=r.useCallback((function(e,t){var n=void 0===t?{}:t,r=n.align,a=void 0===r?"auto":r,s=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(n,["align"]),u=N.current,c=u.measurements,l=u.scrollOffset,d=u.outerSize,f=c[Math.max(0,Math.min(e,o-1))];if(f){if("auto"===a)if(f.end>=l+d)a="end";else{if(!(f.start<=l))return;a="start"}var p="center"===a?f.start+f.size/2:"end"===a?f.end:f.start;ie(p,i({align:a},s))}}),[ie,o]),ae=r.useCallback((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];oe.apply(void 0,t),requestAnimationFrame((function(){oe.apply(void 0,t)}))}),[oe]);return{virtualItems:ne,totalSize:$,scrollToOffset:ie,scrollToIndex:ae,measure:G}}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[49774,40179],(function(){return t(39497),t(6840),t(90387)}));var n=e.O();_N_E=n}]);
2//# sourceMappingURL=_app-128f89bf7ecf9863.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.