@airporting/integrations-app 0.4.30 → 0.4.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +74 -2
- package/dist/mf/{18.js → 1018.js} +3 -3
- package/dist/mf/{235.js → 1330.js} +2 -2
- package/dist/mf/1600.js +1 -0
- package/dist/mf/1857.js +1 -0
- package/dist/mf/{70.js → 2070.js} +3 -3
- package/dist/mf/3.js +1 -0
- package/dist/mf/{134.js → 3134.js} +2 -2
- package/dist/mf/{330.js → 3235.js} +2 -2
- package/dist/mf/{473.js → 3711.js} +2 -2
- package/dist/mf/4447.js +1 -0
- package/dist/mf/4756.js +18 -0
- package/dist/mf/4810.js +1 -0
- package/dist/mf/5475.js +1 -0
- package/dist/mf/{616.js → 5616.js} +2 -2
- package/dist/mf/5625.js +1 -0
- package/dist/mf/5741.js +1 -0
- package/dist/mf/6082.js +1 -0
- package/dist/mf/6092.js +10 -0
- package/dist/mf/6124.js +1 -0
- package/dist/mf/6702.js +1 -0
- package/dist/mf/7285.js +1 -0
- package/dist/mf/7286.js +10 -0
- package/dist/mf/7286.js.LICENSE.txt +9 -0
- package/dist/mf/7476.js +1 -0
- package/dist/mf/7493.js +6 -0
- package/dist/mf/7493.js.LICENSE.txt +13 -0
- package/dist/mf/8170.js +18 -0
- package/dist/mf/8473.js +10 -0
- package/dist/mf/{637.js → 8637.js} +3 -3
- package/dist/mf/8949.js +10 -0
- package/dist/mf/8978.js +33 -0
- package/dist/mf/{37.js → 9037.js} +3 -3
- package/dist/mf/9110.js +1 -0
- package/dist/mf/{755.js → 9430.js} +2 -2
- package/dist/mf/9666.js +10 -0
- package/dist/mf/9666.js.LICENSE.txt +9 -0
- package/dist/mf/9758.js +1 -0
- package/dist/mf/@mf-types/compiled-types/api/connectors/connectorAddMutation.d.ts +1 -0
- package/dist/mf/@mf-types/compiled-types/api/connectors/connectorCatalogQuery.d.ts +1 -0
- package/dist/mf/@mf-types/compiled-types/api/connectors/connectorDeleteMutation.d.ts +1 -0
- package/dist/mf/@mf-types/compiled-types/api/synchro/synchroDetailQuery.d.ts +2 -0
- package/dist/mf/@mf-types/compiled-types/api/synchro/synchroJobConfigQuery.d.ts +1 -0
- package/dist/mf/@mf-types/compiled-types/api/synchro/synchroJobRunMutation.d.ts +4 -0
- package/dist/mf/@mf-types/compiled-types/api/synchro/synchroJobSaveMutation.d.ts +5 -0
- package/dist/mf/@mf-types/compiled-types/api/synchro/synchroListQuery.d.ts +2 -0
- package/dist/mf/@mf-types/compiled-types/api/synchro/synchroRunMutation.d.ts +1 -0
- package/dist/mf/@mf-types/compiled-types/api/synchro/synchroScheduleMutations.d.ts +21 -0
- package/dist/mf/@mf-types/compiled-types/api/synchro/synchroSpreadsheetsQuery.d.ts +4 -0
- package/dist/mf/@mf-types/compiled-types/api/synchro/synchroToggleMutation.d.ts +4 -0
- package/dist/mf/@mf-types/compiled-types/api/synchro/types.d.ts +67 -0
- package/dist/mf/@mf-types/compiled-types/api/useApiSynchro.d.ts +6 -0
- package/dist/mf/@mf-types/compiled-types/components/InlineLoader.d.ts +4 -0
- package/dist/mf/@mf-types/compiled-types/components/connectors/connector-menu.component.d.ts +7 -0
- package/dist/mf/@mf-types/compiled-types/components/connectors/delete-active-connector-modal.d.ts +1 -0
- package/dist/mf/@mf-types/compiled-types/components/connectors/is-delete-confirm-input.d.ts +6 -0
- package/dist/mf/@mf-types/compiled-types/components/connectors/list.catalog.component.d.ts +1 -0
- package/dist/mf/@mf-types/compiled-types/components/synchro/inputs/InputDateBoundary.d.ts +12 -0
- package/dist/mf/@mf-types/compiled-types/components/synchro/inputs/InputGsheetsSelector.d.ts +11 -0
- package/dist/mf/@mf-types/compiled-types/components/synchro/synchro.dynamic-form.d.ts +29 -0
- package/dist/mf/@mf-types/compiled-types/components/synchro/synchro.functions.d.ts +7 -0
- package/dist/mf/@mf-types/compiled-types/components/synchro/synchro.history.d.ts +6 -0
- package/dist/mf/@mf-types/compiled-types/components/synchro/synchro.job-config-modal.d.ts +9 -0
- package/dist/mf/@mf-types/compiled-types/components/synchro/synchro.list.d.ts +8 -0
- package/dist/mf/@mf-types/compiled-types/components/synchro/synchro.schedule.d.ts +8 -0
- package/dist/mf/@mf-types/compiled-types/gen/IntegrationsApi.d.ts +120 -4
- package/dist/mf/@mf-types/compiled-types/hooks/useAppConfigConnectorSingle.d.ts +1 -1
- package/dist/mf/@mf-types/compiled-types/hooks/useAppConfigSynchro.d.ts +9 -0
- package/dist/mf/@mf-types/compiled-types/providersSynchro.d.ts +15 -0
- package/dist/mf/@mf-types/compiled-types/synchro.app.d.ts +1 -0
- package/dist/mf/@mf-types/compiled-types/synchro.d.ts +2 -0
- package/dist/mf/__federation_expose_connectors.js +2 -2
- package/dist/mf/__federation_expose_single_connector.js +2 -2
- package/dist/mf/__federation_expose_synchronisation.js +10 -0
- package/dist/mf/__federation_expose_synchronisation.js.LICENSE.txt +9 -0
- package/dist/mf/index.js +4 -5
- package/dist/mf/integrations_app.js +4 -5
- package/dist/mf/mf-manifest.json +155 -33
- package/dist/mf/mf-stats.json +212 -41
- package/package.json +13 -11
- package/dist/mf/124.js +0 -1
- package/dist/mf/170.js +0 -18
- package/dist/mf/285.js +0 -1
- package/dist/mf/447.js +0 -1
- package/dist/mf/475.js +0 -1
- package/dist/mf/476.js +0 -1
- package/dist/mf/49.js +0 -1
- package/dist/mf/625.js +0 -1
- package/dist/mf/666.js +0 -10
- package/dist/mf/702.js +0 -1
- package/dist/mf/711.js +0 -10
- package/dist/mf/741.js +0 -1
- package/dist/mf/756.js +0 -18
- package/dist/mf/857.js +0 -1
- package/dist/mf/949.js +0 -10
- package/dist/mf/978.js +0 -33
- package/dist/mf/@mf-types/connectors.d.ts +0 -2
- package/dist/mf/@mf-types/single-connector.d.ts +0 -2
- package/dist/mf/@mf-types.d.ts +0 -3
- package/dist/mf/@mf-types.zip +0 -0
- /package/dist/mf/{18.js.LICENSE.txt → 1018.js.LICENSE.txt} +0 -0
- /package/dist/mf/{235.js.LICENSE.txt → 1330.js.LICENSE.txt} +0 -0
- /package/dist/mf/{70.css → 2070.css} +0 -0
- /package/dist/mf/{70.js.LICENSE.txt → 2070.js.LICENSE.txt} +0 -0
- /package/dist/mf/{134.js.LICENSE.txt → 3134.js.LICENSE.txt} +0 -0
- /package/dist/mf/{330.js.LICENSE.txt → 3235.js.LICENSE.txt} +0 -0
- /package/dist/mf/{473.js.LICENSE.txt → 3711.js.LICENSE.txt} +0 -0
- /package/dist/mf/{756.js.LICENSE.txt → 4756.js.LICENSE.txt} +0 -0
- /package/dist/mf/{616.js.LICENSE.txt → 5616.js.LICENSE.txt} +0 -0
- /package/dist/mf/{666.js.LICENSE.txt → 6092.js.LICENSE.txt} +0 -0
- /package/dist/mf/{170.js.LICENSE.txt → 8170.js.LICENSE.txt} +0 -0
- /package/dist/mf/{711.js.LICENSE.txt → 8473.js.LICENSE.txt} +0 -0
- /package/dist/mf/{637.js.LICENSE.txt → 8637.js.LICENSE.txt} +0 -0
- /package/dist/mf/{949.js.LICENSE.txt → 8949.js.LICENSE.txt} +0 -0
- /package/dist/mf/{978.js.LICENSE.txt → 8978.js.LICENSE.txt} +0 -0
- /package/dist/mf/{37.js.LICENSE.txt → 9037.js.LICENSE.txt} +0 -0
package/dist/mf/49.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis["chunk_integrations_app"]=globalThis["chunk_integrations_app"]||[]).push([["49"],{4915:function(module){module.exports={area:true,base:true,br:true,col:true,embed:true,hr:true,img:true,input:true,link:true,meta:true,param:true,source:true,track:true,wbr:true}},2776:function(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{withSSR:()=>withSSR,I18nextProvider:()=>I18nextProvider,selectOrdinal:()=>selectOrdinal,getI18n:()=>getI18n,date:()=>date,initReactI18next:()=>initReactI18next,useTranslation:()=>useTranslation,select:()=>es_select,Translation:()=>Translation,setI18n:()=>setI18n,withTranslation:()=>withTranslation,TransWithoutContext:()=>Trans,setDefaults:()=>setDefaults,getDefaults:()=>getDefaults,time:()=>time,I18nContext:()=>I18nContext,number:()=>number,plural:()=>plural,Trans:()=>Trans_Trans,getInitialProps:()=>getInitialProps,composeInitialProps:()=>composeInitialProps,useSSR:()=>useSSR});var index_js_=__webpack_require__(3620);var void_elements=__webpack_require__(4915);var void_elements_default=/*#__PURE__*/__webpack_require__.n(void_elements);var html_parse_stringify_module_t=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function html_parse_stringify_module_n(n){var r={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},i=n.match(/<\/?([^\s]+?)[/\s>]/);if(i&&(r.name=i[1],(void_elements_default()[i[1]]||"/"===n.charAt(n.length-2))&&(r.voidElement=!0),r.name.startsWith("!--"))){var s=n.indexOf("--\x3e");return{type:"comment",comment:-1!==s?n.slice(4,s):""}}for(var a=new RegExp(html_parse_stringify_module_t),c=null;null!==(c=a.exec(n));)if(c[0].trim())if(c[1]){var o=c[1].trim(),l=[o,""];o.indexOf("=")>-1&&(l=o.split("=")),r.attrs[l[0]]=l[1],a.lastIndex--}else c[2]&&(r.attrs[c[2]]=c[3].trim().substring(1,c[3].length-1));return r}var html_parse_stringify_module_r=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,html_parse_stringify_module_i=/^\s*$/,html_parse_stringify_module_s=Object.create(null);function html_parse_stringify_module_a(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(html_parse_stringify_module_a,"")+"</"+t.name+">";case"comment":return e+"\x3c!--"+t.comment+"--\x3e"}}var html_parse_stringify_module_c={parse:function(e,t){t||(t={}),t.components||(t.components=html_parse_stringify_module_s);var a,c=[],o=[],l=-1,m=!1;if(0!==e.indexOf("<")){var u=e.indexOf("<");c.push({type:"text",content:-1===u?e:e.substring(0,u)})}return e.replace(html_parse_stringify_module_r,function(r,s){if(m){if(r!=="</"+a.name+">")return;m=!1}var u,f="/"!==r.charAt(1),h=r.startsWith("\x3c!--"),p=s+r.length,d=e.charAt(p);if(h){var v=html_parse_stringify_module_n(r);return l<0?(c.push(v),c):((u=o[l]).children.push(v),c)}if(f&&(l++,"tag"===(a=html_parse_stringify_module_n(r)).type&&t.components[a.name]&&(a.type="component",m=!0),a.voidElement||m||!d||"<"===d||a.children.push({type:"text",content:e.slice(p,e.indexOf("<",p))}),0===l&&c.push(a),(u=o[l-1])&&u.children.push(a),o[l]=a),(!f||a.voidElement)&&(l>-1&&(a.voidElement||a.name===r.slice(2,-1))&&(l--,a=-1===l?c:o[l]),!m&&"<"!==d&&d)){u=-1===l?c:o[l].children;var x=e.indexOf("<",p),g=e.slice(p,-1===x?void 0:x);html_parse_stringify_module_i.test(g)&&(g=" "),(x>-1&&l+u.length>=0||" "!==g)&&u.push({type:"text",content:g})}}),c},stringify:function(e){return e.reduce(function(e,t){return e+html_parse_stringify_module_a("",t)},"")}};const html_parse_stringify_module=html_parse_stringify_module_c;const warn=(i18n,code,msg,rest)=>{const args=[msg,{code,...rest||{}}];if(i18n?.services?.logger?.forward)return i18n.services.logger.forward(args,"warn","react-i18next::",true);if(isString(args[0]))args[0]=`react-i18next:: ${args[0]}`;if(i18n?.services?.logger?.warn)i18n.services.logger.warn(...args);else if(console?.warn)console.warn(...args)};const alreadyWarned={};const warnOnce=(i18n,code,msg,rest)=>{if(isString(msg)&&alreadyWarned[msg])return;if(isString(msg))alreadyWarned[msg]=new Date;warn(i18n,code,msg,rest)};const loadedClb=(i18n,cb)=>()=>{if(i18n.isInitialized)cb();else{const initialized=()=>{setTimeout(()=>{i18n.off("initialized",initialized)},0);cb()};i18n.on("initialized",initialized)}};const loadNamespaces=(i18n,ns,cb)=>{i18n.loadNamespaces(ns,loadedClb(i18n,cb))};const loadLanguages=(i18n,lng,ns,cb)=>{if(isString(ns))ns=[ns];if(i18n.options.preload&&i18n.options.preload.indexOf(lng)>-1)return loadNamespaces(i18n,ns,cb);ns.forEach(n=>{if(i18n.options.ns.indexOf(n)<0)i18n.options.ns.push(n)});i18n.loadLanguages(lng,loadedClb(i18n,cb))};const hasLoadedNamespace=(ns,i18n,options={})=>{if(!i18n.languages||!i18n.languages.length){warnOnce(i18n,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:i18n.languages});return true}return i18n.hasLoadedNamespace(ns,{lng:options.lng,precheck:(i18nInstance,loadNotPending)=>{if(options.bindI18n&&options.bindI18n.indexOf("languageChanging")>-1&&i18nInstance.services.backendConnector.backend&&i18nInstance.isLanguageChangingTo&&!loadNotPending(i18nInstance.isLanguageChangingTo,ns))return false}})};const getDisplayName=Component=>Component.displayName||Component.name||(isString(Component)&&Component.length>0?Component:"Unknown");const isString=obj=>"string"==typeof obj;const isObject=obj=>"object"==typeof obj&&null!==obj;const matchHtmlEntity=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;const htmlEntities={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xa9","©":"\xa9","®":"\xae","®":"\xae","…":"…","…":"…","/":"/","/":"/"};const unescapeHtmlEntity=m=>htmlEntities[m];const unescape_unescape=text=>text.replace(matchHtmlEntity,unescapeHtmlEntity);let defaultOptions={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:true,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:true,unescape:unescape_unescape};const setDefaults=(options={})=>{defaultOptions={...defaultOptions,...options}};const getDefaults=()=>defaultOptions;let i18nInstance_i18nInstance;const setI18n=instance=>{i18nInstance_i18nInstance=instance};const getI18n=()=>i18nInstance_i18nInstance;const hasChildren=(node,checkLength)=>{if(!node)return false;const base=node.props?.children??node.children;if(checkLength)return base.length>0;return!!base};const getChildren=node=>{if(!node)return[];const children=node.props?.children??node.children;return node.props?.i18nIsDynamicList?getAsArray(children):children};const hasValidReactChildren=children=>Array.isArray(children)&&children.every(index_js_.isValidElement);const getAsArray=data=>Array.isArray(data)?data:[data];const mergeProps=(source,target)=>{const newTarget={...target};newTarget.props=Object.assign(source.props,target.props);return newTarget};const nodesToString=(children,i18nOptions,i18n,i18nKey)=>{if(!children)return"";let stringNode="";const childrenArray=getAsArray(children);const keepArray=i18nOptions?.transSupportBasicHtmlNodes?i18nOptions.transKeepBasicHtmlNodesFor??[]:[];childrenArray.forEach((child,childIndex)=>{if(isString(child)){stringNode+=`${child}`;return}if((0,index_js_.isValidElement)(child)){const{props,type}=child;const childPropsCount=Object.keys(props).length;const shouldKeepChild=keepArray.indexOf(type)>-1;const childChildren=props.children;if(!childChildren&&shouldKeepChild&&!childPropsCount){stringNode+=`<${type}/>`;return}if(!childChildren&&(!shouldKeepChild||childPropsCount)||props.i18nIsDynamicList){stringNode+=`<${childIndex}></${childIndex}>`;return}if(shouldKeepChild&&1===childPropsCount&&isString(childChildren)){stringNode+=`<${type}>${childChildren}</${type}>`;return}const content=nodesToString(childChildren,i18nOptions,i18n,i18nKey);stringNode+=`<${childIndex}>${content}</${childIndex}>`;return}if(null===child)return void warn(i18n,"TRANS_NULL_VALUE","Passed in a null value as child",{i18nKey});if(isObject(child)){const{format,...clone}=child;const keys=Object.keys(clone);if(1===keys.length){const value=format?`${keys[0]}, ${format}`:keys[0];stringNode+=`{{${value}}}`;return}warn(i18n,"TRANS_INVALID_OBJ","Invalid child - Object should only have keys {{ value, format }} (format is optional).",{i18nKey,child});return}warn(i18n,"TRANS_INVALID_VAR","Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.",{i18nKey,child})});return stringNode};const renderNodes=(children,knownComponentsMap,targetString,i18n,i18nOptions,combinedTOpts,shouldUnescape)=>{if(""===targetString)return[];const keepArray=i18nOptions.transKeepBasicHtmlNodesFor||[];const emptyChildrenButNeedsHandling=targetString&&new RegExp(keepArray.map(keep=>`<${keep}`).join("|")).test(targetString);if(!children&&!knownComponentsMap&&!emptyChildrenButNeedsHandling&&!shouldUnescape)return[targetString];const data=knownComponentsMap??{};const getData=childs=>{const childrenArray=getAsArray(childs);childrenArray.forEach(child=>{if(isString(child))return;if(hasChildren(child))getData(getChildren(child));else if(isObject(child)&&!(0,index_js_.isValidElement)(child))Object.assign(data,child)})};getData(children);const ast=html_parse_stringify_module.parse(`<0>${targetString}</0>`);const opts={...data,...combinedTOpts};const renderInner=(child,node,rootReactNode)=>{const childs=getChildren(child);const mappedChildren=mapAST(childs,node.children,rootReactNode);return hasValidReactChildren(childs)&&0===mappedChildren.length||child.props?.i18nIsDynamicList?childs:mappedChildren};const pushTranslatedJSX=(child,inner,mem,i,isVoid)=>{if(child.dummy){child.children=inner;mem.push((0,index_js_.cloneElement)(child,{key:i},isVoid?void 0:inner))}else mem.push(...index_js_.Children.map([child],c=>{const props={...c.props};delete props.i18nIsDynamicList;return(0,index_js_.createElement)(c.type,{...props,key:i,ref:c.props.ref??c.ref},isVoid?null:inner)}))};const mapAST=(reactNode,astNode,rootReactNode)=>{const reactNodes=getAsArray(reactNode);const astNodes=getAsArray(astNode);return astNodes.reduce((mem,node,i)=>{const translationContent=node.children?.[0]?.content&&i18n.services.interpolator.interpolate(node.children[0].content,opts,i18n.language);if("tag"===node.type){let tmp=reactNodes[parseInt(node.name,10)];if(!tmp&&knownComponentsMap)tmp=knownComponentsMap[node.name];if(1===rootReactNode.length&&!tmp)tmp=rootReactNode[0][node.name];if(!tmp)tmp={};const child=0!==Object.keys(node.attrs).length?mergeProps({props:node.attrs},tmp):tmp;const isElement=(0,index_js_.isValidElement)(child);const isValidTranslationWithChildren=isElement&&hasChildren(node,true)&&!node.voidElement;const isEmptyTransWithHTML=emptyChildrenButNeedsHandling&&isObject(child)&&child.dummy&&!isElement;const isKnownComponent=isObject(knownComponentsMap)&&Object.hasOwnProperty.call(knownComponentsMap,node.name);if(isString(child)){const value=i18n.services.interpolator.interpolate(child,opts,i18n.language);mem.push(value)}else if(hasChildren(child)||isValidTranslationWithChildren){const inner=renderInner(child,node,rootReactNode);pushTranslatedJSX(child,inner,mem,i)}else if(isEmptyTransWithHTML){const inner=mapAST(reactNodes,node.children,rootReactNode);pushTranslatedJSX(child,inner,mem,i)}else if(Number.isNaN(parseFloat(node.name)))if(isKnownComponent){const inner=renderInner(child,node,rootReactNode);pushTranslatedJSX(child,inner,mem,i,node.voidElement)}else if(i18nOptions.transSupportBasicHtmlNodes&&keepArray.indexOf(node.name)>-1)if(node.voidElement)mem.push((0,index_js_.createElement)(node.name,{key:`${node.name}-${i}`}));else{const inner=mapAST(reactNodes,node.children,rootReactNode);mem.push((0,index_js_.createElement)(node.name,{key:`${node.name}-${i}`},inner))}else if(node.voidElement)mem.push(`<${node.name} />`);else{const inner=mapAST(reactNodes,node.children,rootReactNode);mem.push(`<${node.name}>${inner}</${node.name}>`)}else if(isObject(child)&&!isElement){const content=node.children[0]?translationContent:null;if(content)mem.push(content)}else pushTranslatedJSX(child,translationContent,mem,i,1!==node.children.length||!translationContent)}else if("text"===node.type){const wrapTextNodes=i18nOptions.transWrapTextNodes;const content=shouldUnescape?i18nOptions.unescape(i18n.services.interpolator.interpolate(node.content,opts,i18n.language)):i18n.services.interpolator.interpolate(node.content,opts,i18n.language);if(wrapTextNodes)mem.push((0,index_js_.createElement)(wrapTextNodes,{key:`${node.name}-${i}`},content));else mem.push(content)}return mem},[])};const result=mapAST([{dummy:true,children:children||[]}],ast,getAsArray(children||[]));return getChildren(result[0])};const fixComponentProps=(component,index,translation)=>{const componentKey=component.key||index;const comp=(0,index_js_.cloneElement)(component,{key:componentKey});if(!comp.props||!comp.props.children||translation.indexOf(`${index}/>`)<0&&translation.indexOf(`${index} />`)<0)return comp;function Componentized(){return(0,index_js_.createElement)(index_js_.Fragment,null,comp)}return(0,index_js_.createElement)(Componentized,{key:componentKey})};const generateArrayComponents=(components,translation)=>components.map((c,index)=>fixComponentProps(c,index,translation));const generateObjectComponents=(components,translation)=>{const componentMap={};Object.keys(components).forEach(c=>{Object.assign(componentMap,{[c]:fixComponentProps(components[c],c,translation)})});return componentMap};const generateComponents=(components,translation,i18n,i18nKey)=>{if(!components)return null;if(Array.isArray(components))return generateArrayComponents(components,translation);if(isObject(components))return generateObjectComponents(components,translation);warnOnce(i18n,"TRANS_INVALID_COMPONENTS",'<Trans /> "components" prop expects an object or array',{i18nKey});return null};const isComponentsMap=object=>{if(!isObject(object))return false;if(Array.isArray(object))return false;return Object.keys(object).reduce((acc,key)=>acc&&Number.isNaN(Number.parseFloat(key)),true)};function Trans({children,count,parent,i18nKey,context,tOptions={},values,defaults,components,ns,i18n:i18nFromProps,t:tFromProps,shouldUnescape,...additionalProps}){const i18n=i18nFromProps||getI18n();if(!i18n){warnOnce(i18n,"NO_I18NEXT_INSTANCE","Trans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey});return children}const t=tFromProps||i18n.t.bind(i18n)||(k=>k);const reactI18nextOptions={...getDefaults(),...i18n.options?.react};let namespaces=ns||t.ns||i18n.options?.defaultNS;namespaces=isString(namespaces)?[namespaces]:namespaces||["translation"];const nodeAsString=nodesToString(children,reactI18nextOptions,i18n,i18nKey);const defaultValue=defaults||nodeAsString||reactI18nextOptions.transEmptyNodeValue||i18nKey;const{hashTransKey}=reactI18nextOptions;const key=i18nKey||(hashTransKey?hashTransKey(nodeAsString||defaultValue):nodeAsString||defaultValue);if(i18n.options?.interpolation?.defaultVariables)values=values&&Object.keys(values).length>0?{...values,...i18n.options.interpolation.defaultVariables}:{...i18n.options.interpolation.defaultVariables};const interpolationOverride=!values&&(void 0===count||i18n.options?.interpolation?.alwaysFormat)&&children?{interpolation:{...tOptions.interpolation,prefix:"#$?",suffix:"?$#"}}:tOptions.interpolation;const combinedTOpts={...tOptions,context:context||tOptions.context,count,...values,...interpolationOverride,defaultValue,ns:namespaces};const translation=key?t(key,combinedTOpts):defaultValue;const generatedComponents=generateComponents(components,translation,i18n,i18nKey);let indexedChildren=generatedComponents||children;let componentsMap=null;if(isComponentsMap(generatedComponents)){componentsMap=generatedComponents;indexedChildren=children}const content=renderNodes(indexedChildren,componentsMap,translation,i18n,reactI18nextOptions,combinedTOpts,shouldUnescape);const useAsParent=parent??reactI18nextOptions.defaultTransParent;return useAsParent?(0,index_js_.createElement)(useAsParent,additionalProps,content):content}const initReactI18next={type:"3rdParty",init(instance){setDefaults(instance.options.react);setI18n(instance)}};const I18nContext=(0,index_js_.createContext)();class ReportNamespaces{constructor(){this.usedNamespaces={}}addUsedNamespaces(namespaces){namespaces.forEach(ns=>{if(!this.usedNamespaces[ns])this.usedNamespaces[ns]=true})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const composeInitialProps=ForComponent=>async ctx=>{const componentsInitialProps=await ForComponent.getInitialProps?.(ctx)??{};const i18nInitialProps=getInitialProps();return{...componentsInitialProps,...i18nInitialProps}};const getInitialProps=()=>{const i18n=getI18n();const namespaces=i18n.reportNamespaces?.getUsedNamespaces()??[];const ret={};const initialI18nStore={};i18n.languages.forEach(l=>{initialI18nStore[l]={};namespaces.forEach(ns=>{initialI18nStore[l][ns]=i18n.getResourceBundle(l,ns)||{}})});ret.initialI18nStore=initialI18nStore;ret.initialLanguage=i18n.language;return ret};function Trans_Trans({children,count,parent,i18nKey,context,tOptions={},values,defaults,components,ns,i18n:i18nFromProps,t:tFromProps,shouldUnescape,...additionalProps}){const{i18n:i18nFromContext,defaultNS:defaultNSFromContext}=(0,index_js_.useContext)(I18nContext)||{};const i18n=i18nFromProps||i18nFromContext||getI18n();const t=tFromProps||i18n?.t.bind(i18n);return Trans({children,count,parent,i18nKey,context,tOptions,values,defaults,components,ns:ns||t?.ns||defaultNSFromContext||i18n?.options?.defaultNS,i18n,t:tFromProps,shouldUnescape,...additionalProps})}const usePrevious=(value,ignore)=>{const ref=(0,index_js_.useRef)();(0,index_js_.useEffect)(()=>{ref.current=ignore?ref.current:value},[value,ignore]);return ref.current};const alwaysNewT=(i18n,language,namespace,keyPrefix)=>i18n.getFixedT(language,namespace,keyPrefix);const useMemoizedT=(i18n,language,namespace,keyPrefix)=>(0,index_js_.useCallback)(alwaysNewT(i18n,language,namespace,keyPrefix),[i18n,language,namespace,keyPrefix]);const useTranslation=(ns,props={})=>{const{i18n:i18nFromProps}=props;const{i18n:i18nFromContext,defaultNS:defaultNSFromContext}=(0,index_js_.useContext)(I18nContext)||{};const i18n=i18nFromProps||i18nFromContext||getI18n();if(i18n&&!i18n.reportNamespaces)i18n.reportNamespaces=new ReportNamespaces;if(!i18n){warnOnce(i18n,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const notReadyT=(k,optsOrDefaultValue)=>{if(isString(optsOrDefaultValue))return optsOrDefaultValue;if(isObject(optsOrDefaultValue)&&isString(optsOrDefaultValue.defaultValue))return optsOrDefaultValue.defaultValue;return Array.isArray(k)?k[k.length-1]:k};const retNotReady=[notReadyT,{},false];retNotReady.t=notReadyT;retNotReady.i18n={};retNotReady.ready=false;return retNotReady}if(i18n.options.react?.wait)warnOnce(i18n,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const i18nOptions={...getDefaults(),...i18n.options.react,...props};const{useSuspense,keyPrefix}=i18nOptions;let namespaces=ns||defaultNSFromContext||i18n.options?.defaultNS;namespaces=isString(namespaces)?[namespaces]:namespaces||["translation"];i18n.reportNamespaces.addUsedNamespaces?.(namespaces);const ready=(i18n.isInitialized||i18n.initializedStoreOnce)&&namespaces.every(n=>hasLoadedNamespace(n,i18n,i18nOptions));const memoGetT=useMemoizedT(i18n,props.lng||null,"fallback"===i18nOptions.nsMode?namespaces:namespaces[0],keyPrefix);const getT=()=>memoGetT;const getNewT=()=>alwaysNewT(i18n,props.lng||null,"fallback"===i18nOptions.nsMode?namespaces:namespaces[0],keyPrefix);const[t,setT]=(0,index_js_.useState)(getT);let joinedNS=namespaces.join();if(props.lng)joinedNS=`${props.lng}${joinedNS}`;const previousJoinedNS=usePrevious(joinedNS);const isMounted=(0,index_js_.useRef)(true);(0,index_js_.useEffect)(()=>{const{bindI18n,bindI18nStore}=i18nOptions;isMounted.current=true;if(!ready&&!useSuspense)if(props.lng)loadLanguages(i18n,props.lng,namespaces,()=>{if(isMounted.current)setT(getNewT)});else loadNamespaces(i18n,namespaces,()=>{if(isMounted.current)setT(getNewT)});if(ready&&previousJoinedNS&&previousJoinedNS!==joinedNS&&isMounted.current)setT(getNewT);const boundReset=()=>{if(isMounted.current)setT(getNewT)};if(bindI18n)i18n?.on(bindI18n,boundReset);if(bindI18nStore)i18n?.store.on(bindI18nStore,boundReset);return()=>{isMounted.current=false;if(i18n&&bindI18n)bindI18n?.split(" ").forEach(e=>i18n.off(e,boundReset));if(bindI18nStore&&i18n)bindI18nStore.split(" ").forEach(e=>i18n.store.off(e,boundReset))}},[i18n,joinedNS]);(0,index_js_.useEffect)(()=>{if(isMounted.current&&ready)setT(getT)},[i18n,keyPrefix,ready]);const ret=[t,i18n,ready];ret.t=t;ret.i18n=i18n;ret.ready=ready;if(ready)return ret;if(!ready&&!useSuspense)return ret;throw new Promise(resolve=>{if(props.lng)loadLanguages(i18n,props.lng,namespaces,()=>resolve());else loadNamespaces(i18n,namespaces,()=>resolve())})};const withTranslation=(ns,options={})=>function(WrappedComponent){function I18nextWithTranslation({forwardedRef,...rest}){const[t,i18n,ready]=useTranslation(ns,{...rest,keyPrefix:options.keyPrefix});const passDownProps={...rest,t,i18n,tReady:ready};if(options.withRef&&forwardedRef)passDownProps.ref=forwardedRef;else if(!options.withRef&&forwardedRef)passDownProps.forwardedRef=forwardedRef;return(0,index_js_.createElement)(WrappedComponent,passDownProps)}I18nextWithTranslation.displayName=`withI18nextTranslation(${getDisplayName(WrappedComponent)})`;I18nextWithTranslation.WrappedComponent=WrappedComponent;const forwardRef=(props,ref)=>(0,index_js_.createElement)(I18nextWithTranslation,Object.assign({},props,{forwardedRef:ref}));return options.withRef?(0,index_js_.forwardRef)(forwardRef):I18nextWithTranslation};const Translation=({ns,children,...options})=>{const[t,i18n,ready]=useTranslation(ns,options);return children(t,{i18n,lng:i18n.language},ready)};function I18nextProvider({i18n,defaultNS,children}){const value=(0,index_js_.useMemo)(()=>({i18n,defaultNS}),[i18n,defaultNS]);return(0,index_js_.createElement)(I18nContext.Provider,{value},children)}const useSSR=(initialI18nStore,initialLanguage,props={})=>{const{i18n:i18nFromProps}=props;const{i18n:i18nFromContext}=(0,index_js_.useContext)(I18nContext)||{};const i18n=i18nFromProps||i18nFromContext||getI18n();if(i18n.options?.isClone)return;if(initialI18nStore&&!i18n.initializedStoreOnce){i18n.services.resourceStore.data=initialI18nStore;i18n.options.ns=Object.values(initialI18nStore).reduce((mem,lngResources)=>{Object.keys(lngResources).forEach(ns=>{if(mem.indexOf(ns)<0)mem.push(ns)});return mem},i18n.options.ns);i18n.initializedStoreOnce=true;i18n.isInitialized=true}if(initialLanguage&&!i18n.initializedLanguageOnce){i18n.changeLanguage(initialLanguage);i18n.initializedLanguageOnce=true}};const withSSR=()=>function(WrappedComponent){function I18nextWithSSR({initialI18nStore,initialLanguage,...rest}){useSSR(initialI18nStore,initialLanguage);return(0,index_js_.createElement)(WrappedComponent,{...rest})}I18nextWithSSR.getInitialProps=composeInitialProps(WrappedComponent);I18nextWithSSR.displayName=`withI18nextSSR(${getDisplayName(WrappedComponent)})`;I18nextWithSSR.WrappedComponent=WrappedComponent;return I18nextWithSSR};const date=()=>"";const time=()=>"";const number=()=>"";const es_select=()=>"";const plural=()=>"";const selectOrdinal=()=>""}}]);
|
package/dist/mf/625.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis["chunk_integrations_app"]=globalThis["chunk_integrations_app"]||[]).push([["625"],{7216:function(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{useOrientation:()=>useOrientation,clamp:()=>clamp,useDebouncedValue:()=>useDebouncedValue,useMutationObserver:()=>useMutationObserver,useResizeObserver:()=>useResizeObserver,useSet:()=>useSet,randomId:()=>randomId,useShallowEffect:()=>useShallowEffect,useThrottledState:()=>useThrottledState,mergeRefs:()=>mergeRefs,usePrevious:()=>usePrevious,useLongPress:()=>useLongPress,useReducedMotion:()=>useReducedMotion,useSetState:()=>useSetState,readLocalStorageValue:()=>readLocalStorageValue,useCounter:()=>useCounter,useValidatedState:()=>useValidatedState,useDebouncedState:()=>useDebouncedState,useMove:()=>useMove,useFileDialog:()=>useFileDialog,useClipboard:()=>useClipboard,useIsomorphicEffect:()=>useIsomorphicEffect,useLogger:()=>useLogger,useIdle:()=>useIdle,useElementSize:()=>useElementSize,useClickOutside:()=>useClickOutside,shallowEqual:()=>shallowEqual,useNetwork:()=>useNetwork,useEyeDropper:()=>useEyeDropper,useId:()=>useId,range:()=>range,useMediaQuery:()=>useMediaQuery,useRadialMove:()=>useRadialMove,useHotkeys:()=>useHotkeys,useSelection:()=>useSelection,useWindowEvent:()=>useWindowEvent,useInterval:()=>useInterval,useHeadroom:()=>useHeadroom,useSessionStorage:()=>useSessionStorage,useDebouncedCallback:()=>useDebouncedCallback,useDocumentTitle:()=>useDocumentTitle,useFocusTrap:()=>useFocusTrap,useHash:()=>useHash,upperFirst:()=>upperFirst,useThrottledValue:()=>useThrottledValue,useOs:()=>useOs,normalizeRadialValue:()=>normalizeRadialValue,useDocumentVisibility:()=>useDocumentVisibility,useHover:()=>useHover,useMap:()=>useMap,useScrollIntoView:()=>useScrollIntoView,useFocusReturn:()=>useFocusReturn,usePageLeave:()=>usePageLeave,useMergedRef:()=>useMergedRef,useDidUpdate:()=>useDidUpdate,useInViewport:()=>useInViewport,useIsFirstRender:()=>useIsFirstRender,usePagination:()=>usePagination,useMouse:()=>useMouse,useFavicon:()=>useFavicon,useQueue:()=>useQueue,useTimeout:()=>useTimeout,useToggle:()=>useToggle,useColorScheme:()=>useColorScheme,useEventListener:()=>useEventListener,useFullscreen:()=>useFullscreen,useIntersection:()=>useIntersection,useLocalStorage:()=>useLocalStorage,useFocusWithin:()=>useFocusWithin,useMounted:()=>useMounted,assignRef:()=>assignRef,useThrottledCallback:()=>useThrottledCallback,useStateHistory:()=>useStateHistory,useViewportSize:()=>useViewportSize,getHotkeyHandler:()=>getHotkeyHandler,useCallbackRef:()=>useCallbackRef,useTextSelection:()=>useTextSelection,useWindowScroll:()=>useWindowScroll,useDisclosure:()=>useDisclosure,readSessionStorageValue:()=>readSessionStorageValue,clampUseMovePosition:()=>clampUseMovePosition,useInputState:()=>useInputState,useForceUpdate:()=>useForceUpdate,useFetch:()=>useFetch,useListState:()=>useListState,lowerFirst:()=>lowerFirst,useScrollSpy:()=>useScrollSpy,useUncontrolled:()=>useUncontrolled});"use client";function clamp(value,min,max){if(void 0===min&&void 0===max)return value;if(void 0!==min&&void 0===max)return Math.max(value,min);if(void 0===min&&void 0!==max)return Math.min(value,max);return Math.min(Math.max(value,min),max)}"use client";function lowerFirst(value){return"string"!=typeof value?"":value.charAt(0).toLowerCase()+value.slice(1)}"use client";function randomId(prefix="mantine-"){return`${prefix}${Math.random().toString(36).slice(2,11)}`}"use client";function range(start,end){const length=Math.abs(end-start)+1;const reversed=start>end;if(!reversed)return Array.from({length},(_,index)=>index+start);return Array.from({length},(_,index)=>start-index)}"use client";function shallowEqual(a,b){if(a===b)return true;if(Number.isNaN(a)&&Number.isNaN(b))return true;if(!(a instanceof Object)||!(b instanceof Object))return false;const keys=Object.keys(a);const{length}=keys;if(length!==Object.keys(b).length)return false;for(let i=0;i<length;i+=1){const key=keys[i];if(!(key in b))return false;if(a[key]!==b[key]&&!(Number.isNaN(a[key])&&Number.isNaN(b[key])))return false}return true}"use client";function upperFirst(value){return"string"!=typeof value?"":value.charAt(0).toUpperCase()+value.slice(1)}var index_js_=__webpack_require__(3620);"use client";function useCallbackRef(callback){const callbackRef=(0,index_js_.useRef)(callback);(0,index_js_.useEffect)(()=>{callbackRef.current=callback});return(0,index_js_.useMemo)(()=>(...args)=>callbackRef.current?.(...args),[])}"use client";function useDebouncedCallback(callback,options){const{delay,flushOnUnmount,leading}="number"==typeof options?{delay:options,flushOnUnmount:false,leading:false}:options;const handleCallback=useCallbackRef(callback);const debounceTimerRef=(0,index_js_.useRef)(0);const lastCallback=(0,index_js_.useMemo)(()=>{const currentCallback=Object.assign((...args)=>{window.clearTimeout(debounceTimerRef.current);const isFirstCall=currentCallback._isFirstCall;currentCallback._isFirstCall=false;function clearTimeoutAndLeadingRef(){window.clearTimeout(debounceTimerRef.current);debounceTimerRef.current=0;currentCallback._isFirstCall=true}if(leading&&isFirstCall){handleCallback(...args);const resetLeadingState=()=>{clearTimeoutAndLeadingRef()};const flush2=()=>{if(0!==debounceTimerRef.current){clearTimeoutAndLeadingRef();handleCallback(...args)}};const cancel2=()=>{clearTimeoutAndLeadingRef()};currentCallback.flush=flush2;currentCallback.cancel=cancel2;debounceTimerRef.current=window.setTimeout(resetLeadingState,delay);return}if(leading&&!isFirstCall){const flush2=()=>{if(0!==debounceTimerRef.current){clearTimeoutAndLeadingRef();handleCallback(...args)}};const cancel2=()=>{clearTimeoutAndLeadingRef()};currentCallback.flush=flush2;currentCallback.cancel=cancel2;const resetLeadingState=()=>{clearTimeoutAndLeadingRef()};debounceTimerRef.current=window.setTimeout(resetLeadingState,delay);return}const flush=()=>{if(0!==debounceTimerRef.current){clearTimeoutAndLeadingRef();handleCallback(...args)}};const cancel=()=>{clearTimeoutAndLeadingRef()};currentCallback.flush=flush;currentCallback.cancel=cancel;debounceTimerRef.current=window.setTimeout(flush,delay)},{flush:()=>{},cancel:()=>{},_isFirstCall:true});return currentCallback},[handleCallback,delay,leading]);(0,index_js_.useEffect)(()=>()=>{if(flushOnUnmount)lastCallback.flush();else lastCallback.cancel()},[lastCallback,flushOnUnmount]);return lastCallback}"use client";const DEFAULT_EVENTS=["mousedown","touchstart"];function useClickOutside(callback,events,nodes){const ref=(0,index_js_.useRef)(null);const eventsList=events||DEFAULT_EVENTS;(0,index_js_.useEffect)(()=>{const listener=event=>{const{target}=event??{};if(Array.isArray(nodes)){const shouldIgnore=!document.body.contains(target)&&target?.tagName!=="HTML";const shouldTrigger=nodes.every(node=>!!node&&!event.composedPath().includes(node));shouldTrigger&&!shouldIgnore&&callback(event)}else if(ref.current&&!ref.current.contains(target))callback(event)};eventsList.forEach(fn=>document.addEventListener(fn,listener));return()=>{eventsList.forEach(fn=>document.removeEventListener(fn,listener))}},[ref,callback,nodes]);return ref}"use client";function useClipboard(options={timeout:2e3}){const[error,setError]=(0,index_js_.useState)(null);const[copied,setCopied]=(0,index_js_.useState)(false);const[copyTimeout,setCopyTimeout]=(0,index_js_.useState)(null);const handleCopyResult=value=>{window.clearTimeout(copyTimeout);setCopyTimeout(window.setTimeout(()=>setCopied(false),options.timeout));setCopied(value)};const copy=value=>{if("clipboard"in navigator)navigator.clipboard.writeText(value).then(()=>handleCopyResult(true)).catch(err=>setError(err));else setError(new Error("useClipboard: navigator.clipboard is not supported"))};const reset=()=>{setCopied(false);setError(null);window.clearTimeout(copyTimeout)};return{copy,reset,error,copied}}"use client";function attachMediaListener(query,callback){try{query.addEventListener("change",callback);return()=>query.removeEventListener("change",callback)}catch(e){query.addListener(callback);return()=>query.removeListener(callback)}}function getInitialValue(query,initialValue){if("undefined"!=typeof window&&"matchMedia"in window)return window.matchMedia(query).matches;return false}function useMediaQuery(query,initialValue,{getInitialValueInEffect}={getInitialValueInEffect:true}){const[matches,setMatches]=(0,index_js_.useState)(getInitialValueInEffect?initialValue:getInitialValue(query));(0,index_js_.useEffect)(()=>{try{const mediaQuery=window.matchMedia(query);setMatches(mediaQuery.matches);return attachMediaListener(mediaQuery,event=>setMatches(event.matches))}catch(e){return}},[query]);return matches||false}"use client";function useColorScheme(initialValue,options){return useMediaQuery("(prefers-color-scheme: dark)","dark"===initialValue,options)?"dark":"light"}"use client";const DEFAULT_OPTIONS={min:-1/0,max:1/0};function useCounter(initialValue=0,options){const{min,max}={...DEFAULT_OPTIONS,...options};const[count,setCount]=(0,index_js_.useState)(clamp(initialValue,min,max));const increment=(0,index_js_.useCallback)(()=>setCount(current=>clamp(current+1,min,max)),[min,max]);const decrement=(0,index_js_.useCallback)(()=>setCount(current=>clamp(current-1,min,max)),[min,max]);const set=(0,index_js_.useCallback)(value=>setCount(clamp(value,min,max)),[min,max]);const reset=(0,index_js_.useCallback)(()=>setCount(clamp(initialValue,min,max)),[initialValue,min,max]);return[count,{increment,decrement,set,reset}]}"use client";function useDebouncedState(defaultValue,wait,options={leading:false}){const[value,setValue]=(0,index_js_.useState)(defaultValue);const timeoutRef=(0,index_js_.useRef)(null);const leadingRef=(0,index_js_.useRef)(true);const clearTimeout1=()=>window.clearTimeout(timeoutRef.current);(0,index_js_.useEffect)(()=>clearTimeout1,[]);const debouncedSetValue=(0,index_js_.useCallback)(newValue=>{clearTimeout1();if(leadingRef.current&&options.leading)setValue(newValue);else timeoutRef.current=window.setTimeout(()=>{leadingRef.current=true;setValue(newValue)},wait);leadingRef.current=false},[options.leading]);return[value,debouncedSetValue]}"use client";function useDebouncedValue(value,wait,options={leading:false}){const[_value,setValue]=(0,index_js_.useState)(value);const mountedRef=(0,index_js_.useRef)(false);const timeoutRef=(0,index_js_.useRef)(null);const cooldownRef=(0,index_js_.useRef)(false);const cancel=(0,index_js_.useCallback)(()=>window.clearTimeout(timeoutRef.current),[]);(0,index_js_.useEffect)(()=>{if(mountedRef.current)if(!cooldownRef.current&&options.leading){cooldownRef.current=true;setValue(value)}else{cancel();timeoutRef.current=window.setTimeout(()=>{cooldownRef.current=false;setValue(value)},wait)}},[value,options.leading,wait]);(0,index_js_.useEffect)(()=>{mountedRef.current=true;return cancel},[]);return[_value,cancel]}"use client";const useIsomorphicEffect="undefined"!=typeof document?index_js_.useLayoutEffect:index_js_.useEffect;"use client";function useDocumentTitle(title){useIsomorphicEffect(()=>{if("string"==typeof title&&title.trim().length>0)document.title=title.trim()},[title])}"use client";function useDocumentVisibility(){const[documentVisibility,setDocumentVisibility]=(0,index_js_.useState)("visible");(0,index_js_.useEffect)(()=>{setDocumentVisibility(document.visibilityState);const listener=()=>setDocumentVisibility(document.visibilityState);document.addEventListener("visibilitychange",listener);return()=>document.removeEventListener("visibilitychange",listener)},[]);return documentVisibility}"use client";function useDidUpdate(fn,dependencies){const mounted=(0,index_js_.useRef)(false);(0,index_js_.useEffect)(()=>()=>{mounted.current=false},[]);(0,index_js_.useEffect)(()=>{if(mounted.current)return fn();mounted.current=true},dependencies)}"use client";function useFocusReturn({opened,shouldReturnFocus=true}){const lastActiveElement=(0,index_js_.useRef)(null);const returnFocus=()=>{if(lastActiveElement.current&&"focus"in lastActiveElement.current&&"function"==typeof lastActiveElement.current.focus)lastActiveElement.current?.focus({preventScroll:true})};useDidUpdate(()=>{let timeout=-1;const clearFocusTimeout=event=>{if("Tab"===event.key)window.clearTimeout(timeout)};document.addEventListener("keydown",clearFocusTimeout);if(opened)lastActiveElement.current=document.activeElement;else if(shouldReturnFocus)timeout=window.setTimeout(returnFocus,10);return()=>{window.clearTimeout(timeout);document.removeEventListener("keydown",clearFocusTimeout)}},[opened,shouldReturnFocus]);return returnFocus}"use client";const TABBABLE_NODES=/input|select|textarea|button|object/;const FOCUS_SELECTOR="a, input, select, textarea, button, object, [tabindex]";function tabbable_hidden(element){return"none"===element.style.display}function visible(element){const isHidden=element.getAttribute("aria-hidden")||element.getAttribute("hidden")||"hidden"===element.getAttribute("type");if(isHidden)return false;let parentElement=element;while(parentElement){if(parentElement===document.body||11===parentElement.nodeType)break;if(tabbable_hidden(parentElement))return false;parentElement=parentElement.parentNode}return true}function getElementTabIndex(element){let tabIndex=element.getAttribute("tabindex");if(null===tabIndex)tabIndex=void 0;return parseInt(tabIndex,10)}function focusable(element){const nodeName=element.nodeName.toLowerCase();const isTabIndexNotNaN=!Number.isNaN(getElementTabIndex(element));const res=TABBABLE_NODES.test(nodeName)&&!element.disabled||(element instanceof HTMLAnchorElement?element.href||isTabIndexNotNaN:isTabIndexNotNaN);return res&&visible(element)}function tabbable_tabbable(element){const tabIndex=getElementTabIndex(element);const isTabIndexNaN=Number.isNaN(tabIndex);return(isTabIndexNaN||tabIndex>=0)&&focusable(element)}function findTabbableDescendants(element){return Array.from(element.querySelectorAll(FOCUS_SELECTOR)).filter(tabbable_tabbable)}"use client";function scopeTab(node,event){const tabbable=findTabbableDescendants(node);if(!tabbable.length)return void event.preventDefault();const finalTabbable=tabbable[event.shiftKey?0:tabbable.length-1];const root=node.getRootNode();let leavingFinalTabbable=finalTabbable===root.activeElement||node===root.activeElement;const activeElement=root.activeElement;const activeElementIsRadio="INPUT"===activeElement.tagName&&"radio"===activeElement.getAttribute("type");if(activeElementIsRadio){const activeRadioGroup=tabbable.filter(element=>"radio"===element.getAttribute("type")&&element.getAttribute("name")===activeElement.getAttribute("name"));leavingFinalTabbable=activeRadioGroup.includes(finalTabbable)}if(!leavingFinalTabbable)return;event.preventDefault();const target=tabbable[event.shiftKey?tabbable.length-1:0];if(target)target.focus()}"use client";function useFocusTrap(active=true){const ref=(0,index_js_.useRef)(null);const focusNode=node=>{let focusElement=node.querySelector("[data-autofocus]");if(!focusElement){const children=Array.from(node.querySelectorAll(FOCUS_SELECTOR));focusElement=children.find(tabbable_tabbable)||children.find(focusable)||null;if(!focusElement&&focusable(node))focusElement=node}if(focusElement)focusElement.focus({preventScroll:true})};const setRef=(0,index_js_.useCallback)(node=>{if(!active)return;if(null===node)return;if(ref.current===node)return;if(node){setTimeout(()=>{if(node.getRootNode())focusNode(node)});ref.current=node}else ref.current=null},[active]);(0,index_js_.useEffect)(()=>{if(!active)return;ref.current&&setTimeout(()=>focusNode(ref.current));const handleKeyDown=event=>{if("Tab"===event.key&&ref.current)scopeTab(ref.current,event)};document.addEventListener("keydown",handleKeyDown);return()=>document.removeEventListener("keydown",handleKeyDown)},[active]);return setRef}"use client";const reducer=value=>(value+1)%1e6;function useForceUpdate(){const[,update]=(0,index_js_.useReducer)(reducer,0);return update}"use client";const __useId=index_js_["useId".toString()]||(()=>void 0);function useReactId(){const id=__useId();return id?`mantine-${id.replace(/:/g,"")}`:""}"use client";function useId(staticId){const reactId=useReactId();const[uuid,setUuid]=(0,index_js_.useState)(reactId);useIsomorphicEffect(()=>{setUuid(randomId())},[]);if("string"==typeof staticId)return staticId;if("undefined"==typeof window)return reactId;return uuid}"use client";const use_idle_DEFAULT_OPTIONS={events:["keydown","mousemove","touchmove","click","scroll","wheel"],initialState:true};function useIdle(timeout,options){const{events,initialState}={...use_idle_DEFAULT_OPTIONS,...options};const[idle,setIdle]=(0,index_js_.useState)(initialState);const timer=(0,index_js_.useRef)(-1);(0,index_js_.useEffect)(()=>{const handleEvents=()=>{setIdle(false);if(timer.current)window.clearTimeout(timer.current);timer.current=window.setTimeout(()=>{setIdle(true)},timeout)};events.forEach(event=>document.addEventListener(event,handleEvents));timer.current=window.setTimeout(()=>{setIdle(true)},timeout);return()=>{events.forEach(event=>document.removeEventListener(event,handleEvents));window.clearTimeout(timer.current);timer.current=-1}},[timeout]);return idle}"use client";function useInterval(fn,interval,{autoInvoke=false}={}){const[active,setActive]=(0,index_js_.useState)(false);const intervalRef=(0,index_js_.useRef)(null);const fnRef=(0,index_js_.useRef)(null);const start=(0,index_js_.useCallback)(()=>{setActive(old=>{if(!old&&(!intervalRef.current||-1===intervalRef.current))intervalRef.current=window.setInterval(fnRef.current,interval);return true})},[]);const stop=(0,index_js_.useCallback)(()=>{setActive(false);window.clearInterval(intervalRef.current||-1);intervalRef.current=-1},[]);const toggle=(0,index_js_.useCallback)(()=>{if(active)stop();else start()},[active]);(0,index_js_.useEffect)(()=>{fnRef.current=fn;active&&start();return stop},[fn,active,interval]);(0,index_js_.useEffect)(()=>{if(autoInvoke)start()},[]);return{start,stop,toggle,active}}"use client";function useListState(initialValue=[]){const[state,setState]=(0,index_js_.useState)(initialValue);const append=(...items)=>setState(current=>[...current,...items]);const prepend=(...items)=>setState(current=>[...items,...current]);const insert=(index,...items)=>setState(current=>[...current.slice(0,index),...items,...current.slice(index)]);const apply=fn=>setState(current=>current.map((item,index)=>fn(item,index)));const remove=(...indices)=>setState(current=>current.filter((_,index)=>!indices.includes(index)));const pop=()=>setState(current=>{const cloned=[...current];cloned.pop();return cloned});const shift=()=>setState(current=>{const cloned=[...current];cloned.shift();return cloned});const reorder=({from,to})=>setState(current=>{const cloned=[...current];const item=current[from];cloned.splice(from,1);cloned.splice(to,0,item);return cloned});const swap=({from,to})=>setState(current=>{const cloned=[...current];const fromItem=cloned[from];const toItem=cloned[to];cloned.splice(to,1,fromItem);cloned.splice(from,1,toItem);return cloned});const setItem=(index,item)=>setState(current=>{const cloned=[...current];cloned[index]=item;return cloned});const setItemProp=(index,prop,value)=>setState(current=>{const cloned=[...current];cloned[index]={...cloned[index],[prop]:value};return cloned});const applyWhere=(condition,fn)=>setState(current=>current.map((item,index)=>condition(item,index)?fn(item,index):item));const filter=fn=>{setState(current=>current.filter(fn))};return[state,{setState,append,prepend,insert,pop,shift,apply,applyWhere,remove,reorder,swap,setItem,setItemProp,filter}]}"use client";function useWindowEvent(type,listener,options){(0,index_js_.useEffect)(()=>{window.addEventListener(type,listener,options);return()=>window.removeEventListener(type,listener,options)},[type,listener])}"use client";function serializeJSON(value,hookName="use-local-storage"){try{return JSON.stringify(value)}catch(error){throw new Error(`@mantine/hooks ${hookName}: Failed to serialize the value`)}}function deserializeJSON(value){try{return value&&JSON.parse(value)}catch{return value}}function createStorageHandler(type){const getItem=key=>{try{return window[type].getItem(key)}catch(error){console.warn("use-local-storage: Failed to get value from storage, localStorage is blocked");return null}};const setItem=(key,value)=>{try{window[type].setItem(key,value)}catch(error){console.warn("use-local-storage: Failed to set value to storage, localStorage is blocked")}};const removeItem=key=>{try{window[type].removeItem(key)}catch(error){console.warn("use-local-storage: Failed to remove value from storage, localStorage is blocked")}};return{getItem,setItem,removeItem}}function createStorage(type,hookName){const eventName="localStorage"===type?"mantine-local-storage":"mantine-session-storage";const{getItem,setItem,removeItem}=createStorageHandler(type);return function({key,defaultValue,getInitialValueInEffect=true,sync=true,deserialize=deserializeJSON,serialize=value=>serializeJSON(value,hookName)}){const readStorageValue=(0,index_js_.useCallback)(skipStorage=>{let storageBlockedOrSkipped;try{storageBlockedOrSkipped="undefined"==typeof window||!(type in window)||null===window[type]||!!skipStorage}catch(_e){storageBlockedOrSkipped=true}if(storageBlockedOrSkipped)return defaultValue;const storageValue=getItem(key);return null!==storageValue?deserialize(storageValue):defaultValue},[key,defaultValue]);const[value,setValue]=(0,index_js_.useState)(readStorageValue(getInitialValueInEffect));const setStorageValue=(0,index_js_.useCallback)(val=>{if(val instanceof Function)setValue(current=>{const result=val(current);setItem(key,serialize(result));queueMicrotask(()=>{window.dispatchEvent(new CustomEvent(eventName,{detail:{key,value:val(current)}}))});return result});else{setItem(key,serialize(val));window.dispatchEvent(new CustomEvent(eventName,{detail:{key,value:val}}));setValue(val)}},[key]);const removeStorageValue=(0,index_js_.useCallback)(()=>{removeItem(key);setValue(defaultValue);window.dispatchEvent(new CustomEvent(eventName,{detail:{key,value:defaultValue}}))},[key,defaultValue]);useWindowEvent("storage",event=>{if(sync){if(event.storageArea===window[type]&&event.key===key)setValue(deserialize(event.newValue??void 0))}});useWindowEvent(eventName,event=>{if(sync){if(event.detail.key===key)setValue(event.detail.value)}});(0,index_js_.useEffect)(()=>{if(void 0!==defaultValue&&void 0===value)setStorageValue(defaultValue)},[defaultValue,value,setStorageValue]);(0,index_js_.useEffect)(()=>{const val=readStorageValue();void 0!==val&&setStorageValue(val)},[key]);return[void 0===value?defaultValue:value,setStorageValue,removeStorageValue]}}function readValue(type){const{getItem}=createStorageHandler(type);return function({key,defaultValue,deserialize=deserializeJSON}){let storageBlockedOrSkipped;try{storageBlockedOrSkipped="undefined"==typeof window||!(type in window)||null===window[type]}catch(_e){storageBlockedOrSkipped=true}if(storageBlockedOrSkipped)return defaultValue;const storageValue=getItem(key);return null!==storageValue?deserialize(storageValue):defaultValue}}"use client";function useLocalStorage(props){return createStorage("localStorage","use-local-storage")(props)}const readLocalStorageValue=readValue("localStorage");"use client";function useSessionStorage(props){return createStorage("sessionStorage","use-session-storage")(props)}const readSessionStorageValue=readValue("sessionStorage");"use client";function assignRef(ref,value){if("function"==typeof ref)return ref(value);if("object"==typeof ref&&null!==ref&&"current"in ref)ref.current=value}function mergeRefs(...refs){const cleanupMap=/* @__PURE__ */new Map;return node=>{refs.forEach(ref=>{const cleanup=assignRef(ref,node);if(cleanup)cleanupMap.set(ref,cleanup)});if(cleanupMap.size>0)return()=>{refs.forEach(ref=>{const cleanup=cleanupMap.get(ref);if(cleanup&&"function"==typeof cleanup)cleanup();else assignRef(ref,null)});cleanupMap.clear()}}}function useMergedRef(...refs){return(0,index_js_.useCallback)(mergeRefs(...refs),refs)}"use client";function useMouse(options={resetOnExit:false}){const[position,setPosition]=(0,index_js_.useState)({x:0,y:0});const ref=(0,index_js_.useRef)(null);const setMousePosition=event=>{if(ref.current){const rect=event.currentTarget.getBoundingClientRect();const x=Math.max(0,Math.round(event.pageX-rect.left-(window.scrollX||window.scrollX)));const y=Math.max(0,Math.round(event.pageY-rect.top-(window.scrollY||window.scrollY)));setPosition({x,y})}else setPosition({x:event.clientX,y:event.clientY})};const resetMousePosition=()=>setPosition({x:0,y:0});(0,index_js_.useEffect)(()=>{const element=ref?.current?ref.current:document;element.addEventListener("mousemove",setMousePosition);if(options.resetOnExit)element.addEventListener("mouseleave",resetMousePosition);return()=>{element.removeEventListener("mousemove",setMousePosition);if(options.resetOnExit)element.removeEventListener("mouseleave",resetMousePosition)}},[ref.current]);return{ref,...position}}"use client";function clampUseMovePosition(position){return{x:clamp(position.x,0,1),y:clamp(position.y,0,1)}}function useMove(onChange,handlers,dir="ltr"){const mounted=(0,index_js_.useRef)(false);const isSliding=(0,index_js_.useRef)(false);const frame=(0,index_js_.useRef)(0);const[active,setActive]=(0,index_js_.useState)(false);const cleanupRef=(0,index_js_.useRef)(null);(0,index_js_.useEffect)(()=>{mounted.current=true},[]);const refCallback=(0,index_js_.useCallback)(node=>{if(cleanupRef.current){cleanupRef.current();cleanupRef.current=null}if(!node)return;const onScrub=({x,y})=>{cancelAnimationFrame(frame.current);frame.current=requestAnimationFrame(()=>{if(mounted.current&&node){node.style.userSelect="none";const rect=node.getBoundingClientRect();if(rect.width&&rect.height){const _x=clamp((x-rect.left)/rect.width,0,1);onChange({x:"ltr"===dir?_x:1-_x,y:clamp((y-rect.top)/rect.height,0,1)})}}})};const bindEvents=()=>{document.addEventListener("mousemove",onMouseMove);document.addEventListener("mouseup",stopScrubbing);document.addEventListener("touchmove",onTouchMove,{passive:false});document.addEventListener("touchend",stopScrubbing)};const unbindEvents=()=>{document.removeEventListener("mousemove",onMouseMove);document.removeEventListener("mouseup",stopScrubbing);document.removeEventListener("touchmove",onTouchMove);document.removeEventListener("touchend",stopScrubbing)};const startScrubbing=()=>{if(!isSliding.current&&mounted.current){isSliding.current=true;"function"==typeof handlers?.onScrubStart&&handlers.onScrubStart();setActive(true);bindEvents()}};const stopScrubbing=()=>{if(isSliding.current&&mounted.current){isSliding.current=false;setActive(false);unbindEvents();setTimeout(()=>{"function"==typeof handlers?.onScrubEnd&&handlers.onScrubEnd()},0)}};const onMouseDown=event=>{startScrubbing();event.preventDefault();onMouseMove(event)};const onMouseMove=event=>onScrub({x:event.clientX,y:event.clientY});const onTouchStart=event=>{if(event.cancelable)event.preventDefault();startScrubbing();onTouchMove(event)};const onTouchMove=event=>{if(event.cancelable)event.preventDefault();onScrub({x:event.changedTouches[0].clientX,y:event.changedTouches[0].clientY})};node.addEventListener("mousedown",onMouseDown);node.addEventListener("touchstart",onTouchStart,{passive:false});cleanupRef.current=()=>{node.removeEventListener("mousedown",onMouseDown);node.removeEventListener("touchstart",onTouchStart)}},[dir,onChange]);return{ref:refCallback,active}}"use client";function useUncontrolled({value,defaultValue,finalValue,onChange=()=>{}}){const[uncontrolledValue,setUncontrolledValue]=(0,index_js_.useState)(void 0!==defaultValue?defaultValue:finalValue);const handleUncontrolledChange=(val,...payload)=>{setUncontrolledValue(val);onChange?.(val,...payload)};if(void 0!==value)return[value,onChange,true];return[uncontrolledValue,handleUncontrolledChange,false]}"use client";function use_pagination_range(start,end){const length=end-start+1;return Array.from({length},(_,index)=>index+start)}const DOTS="dots";function usePagination({total,siblings=1,boundaries=1,page,initialPage=1,onChange}){const _total=Math.max(Math.trunc(total),0);const[activePage,setActivePage]=useUncontrolled({value:page,onChange,defaultValue:initialPage,finalValue:initialPage});const setPage=pageNumber=>{if(pageNumber<=0)setActivePage(1);else pageNumber>_total?setActivePage(_total):setActivePage(pageNumber)};const next=()=>setPage(activePage+1);const previous=()=>setPage(activePage-1);const first=()=>setPage(1);const last=()=>setPage(_total);const paginationRange=(0,index_js_.useMemo)(()=>{const totalPageNumbers=2*siblings+3+2*boundaries;if(totalPageNumbers>=_total)return use_pagination_range(1,_total);const leftSiblingIndex=Math.max(activePage-siblings,boundaries);const rightSiblingIndex=Math.min(activePage+siblings,_total-boundaries);const shouldShowLeftDots=leftSiblingIndex>boundaries+2;const shouldShowRightDots=rightSiblingIndex<_total-(boundaries+1);if(!shouldShowLeftDots&&shouldShowRightDots){const leftItemCount=2*siblings+boundaries+2;return[...use_pagination_range(1,leftItemCount),DOTS,...use_pagination_range(_total-(boundaries-1),_total)]}if(shouldShowLeftDots&&!shouldShowRightDots){const rightItemCount=boundaries+1+2*siblings;return[...use_pagination_range(1,boundaries),DOTS,...use_pagination_range(_total-rightItemCount,_total)]}return[...use_pagination_range(1,boundaries),DOTS,...use_pagination_range(leftSiblingIndex,rightSiblingIndex),DOTS,...use_pagination_range(_total-boundaries+1,_total)]},[_total,siblings,activePage]);return{range:paginationRange,active:activePage,setPage,next,previous,first,last}}"use client";function useQueue({initialValues=[],limit}){const[state,setState]=(0,index_js_.useState)({state:initialValues.slice(0,limit),queue:initialValues.slice(limit)});const add=(...items)=>setState(current=>{const results=[...current.state,...current.queue,...items];return{state:results.slice(0,limit),queue:results.slice(limit)}});const update=fn=>setState(current=>{const results=fn([...current.state,...current.queue]);return{state:results.slice(0,limit),queue:results.slice(limit)}});const cleanQueue=()=>setState(current=>({state:current.state,queue:[]}));return{state:state.state,queue:state.queue,add,update,cleanQueue}}"use client";function usePageLeave(onPageLeave){(0,index_js_.useEffect)(()=>{document.documentElement.addEventListener("mouseleave",onPageLeave);return()=>document.documentElement.removeEventListener("mouseleave",onPageLeave)},[])}"use client";function useReducedMotion(initialValue,options){return useMediaQuery("(prefers-reduced-motion: reduce)",initialValue,options)}"use client";function useScrollIntoView({duration=1250,axis="y",onScrollFinish,easing=easeInOutQuad,offset=0,cancelable=true,isList=false}={}){const frameID=(0,index_js_.useRef)(0);const startTime=(0,index_js_.useRef)(0);const shouldStop=(0,index_js_.useRef)(false);const scrollableRef=(0,index_js_.useRef)(null);const targetRef=(0,index_js_.useRef)(null);const reducedMotion=useReducedMotion();const cancel=()=>{if(frameID.current)cancelAnimationFrame(frameID.current)};const scrollIntoView=(0,index_js_.useCallback)(({alignment="start"}={})=>{shouldStop.current=false;if(frameID.current)cancel();const start=getScrollStart({parent:scrollableRef.current,axis})??0;const change=getRelativePosition({parent:scrollableRef.current,target:targetRef.current,axis,alignment,offset,isList})-(scrollableRef.current?0:start);function animateScroll(){if(0===startTime.current)startTime.current=performance.now();const now=performance.now();const elapsed=now-startTime.current;const t=reducedMotion||0===duration?1:elapsed/duration;const distance=start+change*easing(t);setScrollParam({parent:scrollableRef.current,axis,distance});if(!shouldStop.current&&t<1)frameID.current=requestAnimationFrame(animateScroll);else{"function"==typeof onScrollFinish&&onScrollFinish();startTime.current=0;frameID.current=0;cancel()}}animateScroll()},[axis,duration,easing,isList,offset,onScrollFinish,reducedMotion]);const handleStop=()=>{if(cancelable)shouldStop.current=true};useWindowEvent("wheel",handleStop,{passive:true});useWindowEvent("touchmove",handleStop,{passive:true});(0,index_js_.useEffect)(()=>cancel,[]);return{scrollableRef,targetRef,scrollIntoView,cancel}}function easeInOutQuad(t){return t<.5?2*t*t:-1+(4-2*t)*t}function getRelativePosition({axis,target,parent,alignment,offset,isList}){if(!target||!parent&&"undefined"==typeof document)return 0;const isCustomParent=!!parent;const parentElement=parent||document.body;const parentPosition=parentElement.getBoundingClientRect();const targetPosition=target.getBoundingClientRect();const getDiff=property=>targetPosition[property]-parentPosition[property];if("y"===axis){const diff=getDiff("top");if(0===diff)return 0;if("start"===alignment){const distance=diff-offset;const shouldScroll=distance<=targetPosition.height*(isList?0:1)||!isList;return shouldScroll?distance:0}const parentHeight=isCustomParent?parentPosition.height:window.innerHeight;if("end"===alignment){const distance=diff+offset-parentHeight+targetPosition.height;const shouldScroll=distance>=-targetPosition.height*(isList?0:1)||!isList;return shouldScroll?distance:0}if("center"===alignment)return diff-parentHeight/2+targetPosition.height/2;return 0}if("x"===axis){const diff=getDiff("left");if(0===diff)return 0;if("start"===alignment){const distance=diff-offset;const shouldScroll=distance<=targetPosition.width||!isList;return shouldScroll?distance:0}const parentWidth=isCustomParent?parentPosition.width:window.innerWidth;if("end"===alignment){const distance=diff+offset-parentWidth+targetPosition.width;const shouldScroll=distance>=-targetPosition.width||!isList;return shouldScroll?distance:0}if("center"===alignment)return diff-parentWidth/2+targetPosition.width/2}return 0}function getScrollStart({axis,parent}){if(!parent&&"undefined"==typeof document)return 0;const method="y"===axis?"scrollTop":"scrollLeft";if(parent)return parent[method];const{body,documentElement}=document;return body[method]+documentElement[method]}function setScrollParam({axis,parent,distance}){if(!parent&&"undefined"==typeof document)return;const method="y"===axis?"scrollTop":"scrollLeft";if(parent)parent[method]=distance;else{const{body,documentElement}=document;body[method]=distance;documentElement[method]=distance}}"use client";const defaultState={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function useResizeObserver(options){const frameID=(0,index_js_.useRef)(0);const ref=(0,index_js_.useRef)(null);const[rect,setRect]=(0,index_js_.useState)(defaultState);const observer=(0,index_js_.useMemo)(()=>"undefined"!=typeof window?new ResizeObserver(entries=>{const entry=entries[0];if(entry){cancelAnimationFrame(frameID.current);frameID.current=requestAnimationFrame(()=>{if(ref.current){const boxSize=entry.borderBoxSize?.[0]||entry.contentBoxSize?.[0];if(boxSize){const width=boxSize.inlineSize;const height=boxSize.blockSize;setRect({width,height,x:entry.contentRect.x,y:entry.contentRect.y,top:entry.contentRect.top,left:entry.contentRect.left,bottom:entry.contentRect.bottom,right:entry.contentRect.right})}else setRect(entry.contentRect)}})}}):null,[]);(0,index_js_.useEffect)(()=>{if(ref.current)observer?.observe(ref.current,options);return()=>{observer?.disconnect();if(frameID.current)cancelAnimationFrame(frameID.current)}},[ref.current]);return[ref,rect]}function useElementSize(options){const[ref,{width,height}]=useResizeObserver(options);return{ref,width,height}}"use client";function shallowCompare(prevValue,currValue){if(!prevValue||!currValue)return false;if(prevValue===currValue)return true;if(prevValue.length!==currValue.length)return false;for(let i=0;i<prevValue.length;i+=1)if(!shallowEqual(prevValue[i],currValue[i]))return false;return true}function useShallowCompare(dependencies){const ref=(0,index_js_.useRef)([]);const updateRef=(0,index_js_.useRef)(0);if(!shallowCompare(ref.current,dependencies)){ref.current=dependencies;updateRef.current+=1}return[updateRef.current]}function useShallowEffect(cb,dependencies){(0,index_js_.useEffect)(cb,useShallowCompare(dependencies))}"use client";function useToggle(options=[false,true]){const[[option],toggle]=(0,index_js_.useReducer)((state,action)=>{const value=action instanceof Function?action(state[0]):action;const index=Math.abs(state.indexOf(value));return state.slice(index).concat(state.slice(0,index))},options);return[option,toggle]}"use client";const eventListerOptions={passive:true};function useViewportSize(){const[windowSize,setWindowSize]=(0,index_js_.useState)({width:0,height:0});const setSize=(0,index_js_.useCallback)(()=>{setWindowSize({width:window.innerWidth||0,height:window.innerHeight||0})},[]);useWindowEvent("resize",setSize,eventListerOptions);useWindowEvent("orientationchange",setSize,eventListerOptions);(0,index_js_.useEffect)(setSize,[]);return windowSize}"use client";function getScrollPosition(){return"undefined"!=typeof window?{x:window.scrollX,y:window.scrollY}:{x:0,y:0}}function scrollTo({x,y}){if("undefined"!=typeof window){const scrollOptions={behavior:"smooth"};if("number"==typeof x)scrollOptions.left=x;if("number"==typeof y)scrollOptions.top=y;window.scrollTo(scrollOptions)}}function useWindowScroll(){const[position,setPosition]=(0,index_js_.useState)({x:0,y:0});useWindowEvent("scroll",()=>setPosition(getScrollPosition()));useWindowEvent("resize",()=>setPosition(getScrollPosition()));(0,index_js_.useEffect)(()=>{setPosition(getScrollPosition())},[]);return[position,scrollTo]}"use client";function useIntersection(options){const[entry,setEntry]=(0,index_js_.useState)(null);const observer=(0,index_js_.useRef)(null);const ref=(0,index_js_.useCallback)(element=>{if(observer.current){observer.current.disconnect();observer.current=null}if(null===element)return void setEntry(null);observer.current=new IntersectionObserver(([_entry])=>{setEntry(_entry)},options);observer.current.observe(element)},[options?.rootMargin,options?.root,options?.threshold]);return{ref,entry}}"use client";function useHash({getInitialValueInEffect=true}={}){const[hash,setHash]=(0,index_js_.useState)(getInitialValueInEffect?"":window.location.hash||"");const setHashHandler=value=>{const valueWithHash=value.startsWith("#")?value:`#${value}`;window.location.hash=valueWithHash;setHash(valueWithHash)};useWindowEvent("hashchange",()=>{const newHash=window.location.hash;if(hash!==newHash)setHash(newHash)});(0,index_js_.useEffect)(()=>{if(getInitialValueInEffect)setHash(window.location.hash)},[]);return[hash,setHashHandler]}"use client";const keyNameMap={" ":"space",ArrowLeft:"arrowleft",ArrowRight:"arrowright",ArrowUp:"arrowup",ArrowDown:"arrowdown",Escape:"escape",Esc:"escape",esc:"escape",Enter:"enter",Tab:"tab",Backspace:"backspace",Delete:"delete",Insert:"insert",Home:"home",End:"end",PageUp:"pageup",PageDown:"pagedown","+":"plus","-":"minus","*":"asterisk","/":"slash"};function normalizeKey(key){const lowerKey=key.replace("Key","").toLowerCase();return keyNameMap[key]||lowerKey}function parseHotkey(hotkey){const keys=hotkey.toLowerCase().split("+").map(part=>part.trim());const modifiers={alt:keys.includes("alt"),ctrl:keys.includes("ctrl"),meta:keys.includes("meta"),mod:keys.includes("mod"),shift:keys.includes("shift"),plus:keys.includes("[plus]")};const reservedKeys=["alt","ctrl","meta","shift","mod"];const freeKey=keys.find(key=>!reservedKeys.includes(key));return{...modifiers,key:"[plus]"===freeKey?"+":freeKey}}function isExactHotkey(hotkey,event,usePhysicalKeys){const{alt,ctrl,meta,mod,shift,key}=hotkey;const{altKey,ctrlKey,metaKey,shiftKey,key:pressedKey,code:pressedCode}=event;if(alt!==altKey)return false;if(mod){if(!ctrlKey&&!metaKey)return false}else{if(ctrl!==ctrlKey)return false;if(meta!==metaKey)return false}if(shift!==shiftKey)return false;if(key&&(usePhysicalKeys?normalizeKey(pressedCode)===normalizeKey(key):normalizeKey(pressedKey??pressedCode)===normalizeKey(key)))return true;return false}function getHotkeyMatcher(hotkey,usePhysicalKeys){return event=>isExactHotkey(parseHotkey(hotkey),event,usePhysicalKeys)}function getHotkeyHandler(hotkeys){return event=>{const _event="nativeEvent"in event?event.nativeEvent:event;hotkeys.forEach(([hotkey,handler,options={preventDefault:true,usePhysicalKeys:false}])=>{if(getHotkeyMatcher(hotkey,options.usePhysicalKeys)(_event)){if(options.preventDefault)event.preventDefault();handler(_event)}})}}"use client";function shouldFireEvent(event,tagsToIgnore,triggerOnContentEditable=false){if(event.target instanceof HTMLElement){if(triggerOnContentEditable)return!tagsToIgnore.includes(event.target.tagName);return!event.target.isContentEditable&&!tagsToIgnore.includes(event.target.tagName)}return true}function useHotkeys(hotkeys,tagsToIgnore=["INPUT","TEXTAREA","SELECT"],triggerOnContentEditable=false){(0,index_js_.useEffect)(()=>{const keydownListener=event=>{hotkeys.forEach(([hotkey,handler,options={preventDefault:true,usePhysicalKeys:false}])=>{if(getHotkeyMatcher(hotkey,options.usePhysicalKeys)(event)&&shouldFireEvent(event,tagsToIgnore,triggerOnContentEditable)){if(options.preventDefault)event.preventDefault();handler(event)}})};document.documentElement.addEventListener("keydown",keydownListener);return()=>document.documentElement.removeEventListener("keydown",keydownListener)},[hotkeys])}"use client";function getFullscreenElement(){const _document=window.document;const fullscreenElement=_document.fullscreenElement||_document.webkitFullscreenElement||_document.mozFullScreenElement||_document.msFullscreenElement;return fullscreenElement}function exitFullscreen(){const _document=window.document;if("function"==typeof _document.exitFullscreen)return _document.exitFullscreen();if("function"==typeof _document.msExitFullscreen)return _document.msExitFullscreen();if("function"==typeof _document.webkitExitFullscreen)return _document.webkitExitFullscreen();if("function"==typeof _document.mozCancelFullScreen)return _document.mozCancelFullScreen();return null}function enterFullScreen(element){const _element=element;return _element.requestFullscreen?.()||_element.msRequestFullscreen?.()||_element.webkitEnterFullscreen?.()||_element.webkitRequestFullscreen?.()||_element.mozRequestFullscreen?.()}const prefixes=["","webkit","moz","ms"];function addEvents(element,{onFullScreen,onError}){prefixes.forEach(prefix=>{element.addEventListener(`${prefix}fullscreenchange`,onFullScreen);element.addEventListener(`${prefix}fullscreenerror`,onError)});return()=>{prefixes.forEach(prefix=>{element.removeEventListener(`${prefix}fullscreenchange`,onFullScreen);element.removeEventListener(`${prefix}fullscreenerror`,onError)})}}function useFullscreen(){const[fullscreen,setFullscreen]=(0,index_js_.useState)(false);const _ref=(0,index_js_.useRef)(null);const handleFullscreenChange=(0,index_js_.useCallback)(event=>{setFullscreen(event.target===getFullscreenElement())},[setFullscreen]);const handleFullscreenError=(0,index_js_.useCallback)(event=>{setFullscreen(false);console.error(`[@mantine/hooks] use-fullscreen: Error attempting full-screen mode method: ${event} (${event.target})`)},[setFullscreen]);const toggle=(0,index_js_.useCallback)(async()=>{if(getFullscreenElement())await exitFullscreen();else await enterFullScreen(_ref.current)},[]);const ref=(0,index_js_.useCallback)(element=>{if(null===element)_ref.current=window.document.documentElement;else _ref.current=element},[]);(0,index_js_.useEffect)(()=>{if(!_ref.current&&window.document){_ref.current=window.document.documentElement;return addEvents(_ref.current,{onFullScreen:handleFullscreenChange,onError:handleFullscreenError})}if(_ref.current)return addEvents(_ref.current,{onFullScreen:handleFullscreenChange,onError:handleFullscreenError})},[_ref.current]);return{ref,toggle,fullscreen}}"use client";function useLogger(componentName,props){(0,index_js_.useEffect)(()=>{console.log(`${componentName} mounted`,...props);return()=>console.log(`${componentName} unmounted`)},[]);useDidUpdate(()=>{console.log(`${componentName} updated`,...props)},props);return null}"use client";function useHover(){const[hovered,setHovered]=(0,index_js_.useState)(false);const previousNode=(0,index_js_.useRef)(null);const handleMouseEnter=(0,index_js_.useCallback)(()=>{setHovered(true)},[]);const handleMouseLeave=(0,index_js_.useCallback)(()=>{setHovered(false)},[]);const ref=(0,index_js_.useCallback)(node=>{if(previousNode.current){previousNode.current.removeEventListener("mouseenter",handleMouseEnter);previousNode.current.removeEventListener("mouseleave",handleMouseLeave)}if(node){node.addEventListener("mouseenter",handleMouseEnter);node.addEventListener("mouseleave",handleMouseLeave)}previousNode.current=node},[handleMouseEnter,handleMouseLeave]);return{ref,hovered}}"use client";function useValidatedState(initialValue,validate,initialValidationState){const[value,setValue]=(0,index_js_.useState)(initialValue);const[lastValidValue,setLastValidValue]=(0,index_js_.useState)(validate(initialValue)?initialValue:void 0);const[valid,setValid]=(0,index_js_.useState)("boolean"==typeof initialValidationState?initialValidationState:validate(initialValue));const onChange=val=>{if(validate(val)){setLastValidValue(val);setValid(true)}else setValid(false);setValue(val)};return[{value,lastValidValue,valid},onChange]}"use client";function isMacOS(userAgent){const macosPattern=/(Macintosh)|(MacIntel)|(MacPPC)|(Mac68K)/i;return macosPattern.test(userAgent)}function isIOS(userAgent){const iosPattern=/(iPhone)|(iPad)|(iPod)/i;return iosPattern.test(userAgent)}function isWindows(userAgent){const windowsPattern=/(Win32)|(Win64)|(Windows)|(WinCE)/i;return windowsPattern.test(userAgent)}function isAndroid(userAgent){const androidPattern=/Android/i;return androidPattern.test(userAgent)}function isLinux(userAgent){const linuxPattern=/Linux/i;return linuxPattern.test(userAgent)}function isChromeOS(userAgent){const chromePattern=/CrOS/i;return chromePattern.test(userAgent)}function getOS(){if("undefined"==typeof window)return"undetermined";const{userAgent}=window.navigator;if(isIOS(userAgent)||isMacOS(userAgent)&&"ontouchend"in document)return"ios";if(isMacOS(userAgent))return"macos";if(isWindows(userAgent))return"windows";if(isAndroid(userAgent))return"android";if(isLinux(userAgent))return"linux";if(isChromeOS(userAgent))return"chromeos";return"undetermined"}function useOs(options={getValueInEffect:true}){const[value,setValue]=(0,index_js_.useState)(options.getValueInEffect?"undetermined":getOS());useIsomorphicEffect(()=>{if(options.getValueInEffect)setValue(getOS)},[]);return value}"use client";function useSetState(initialState){const[state,setState]=(0,index_js_.useState)(initialState);const _setState=(0,index_js_.useCallback)(statePartial=>setState(current=>({...current,..."function"==typeof statePartial?statePartial(current):statePartial})),[]);return[state,_setState]}"use client";function getInputOnChange(setValue){return val=>{if(val)if("function"==typeof val)setValue(val);else if("object"==typeof val&&"nativeEvent"in val){const{currentTarget}=val;"checkbox"===currentTarget.type?setValue(currentTarget.checked):setValue(currentTarget.value)}else setValue(val);else setValue(val)}}function useInputState(initialState){const[value,setValue]=(0,index_js_.useState)(initialState);return[value,getInputOnChange(setValue)]}"use client";function useEventListener(type,listener,options){const previousListener=(0,index_js_.useRef)(null);const previousNode=(0,index_js_.useRef)(null);const callbackRef=(0,index_js_.useCallback)(node=>{if(!node)return;if(previousNode.current&&previousListener.current)previousNode.current.removeEventListener(type,previousListener.current,options);node.addEventListener(type,listener,options);previousNode.current=node;previousListener.current=listener},[type,listener,options]);(0,index_js_.useEffect)(()=>()=>{if(previousNode.current&&previousListener.current)previousNode.current.removeEventListener(type,previousListener.current,options)},[type,options]);return callbackRef}"use client";function useDisclosure(initialState=false,options={}){const[opened,setOpened]=(0,index_js_.useState)(initialState);const open=(0,index_js_.useCallback)(()=>{setOpened(isOpened=>{if(!isOpened){options.onOpen?.();return true}return isOpened})},[options.onOpen]);const close=(0,index_js_.useCallback)(()=>{setOpened(isOpened=>{if(isOpened){options.onClose?.();return false}return isOpened})},[options.onClose]);const toggle=(0,index_js_.useCallback)(()=>{opened?close():open()},[close,open,opened]);return[opened,{open,close,toggle}]}"use client";function containsRelatedTarget(event){if(event.currentTarget instanceof HTMLElement&&event.relatedTarget instanceof HTMLElement)return event.currentTarget.contains(event.relatedTarget);return false}function useFocusWithin({onBlur,onFocus}={}){const[focused,setFocused]=(0,index_js_.useState)(false);const focusedRef=(0,index_js_.useRef)(false);const previousNode=(0,index_js_.useRef)(null);const _setFocused=(0,index_js_.useCallback)(value=>{setFocused(value);focusedRef.current=value},[]);const handleFocusIn=(0,index_js_.useCallback)(event=>{if(!focusedRef.current){_setFocused(true);onFocus?.(event)}},[onFocus]);const handleFocusOut=(0,index_js_.useCallback)(event=>{if(focusedRef.current&&!containsRelatedTarget(event)){_setFocused(false);onBlur?.(event)}},[onBlur]);const callbackRef=(0,index_js_.useCallback)(node=>{if(!node)return;if(previousNode.current){previousNode.current.removeEventListener("focusin",handleFocusIn);previousNode.current.removeEventListener("focusout",handleFocusOut)}node.addEventListener("focusin",handleFocusIn);node.addEventListener("focusout",handleFocusOut)},[handleFocusIn,handleFocusOut]);(0,index_js_.useEffect)(()=>()=>{if(previousNode.current){previousNode.current.removeEventListener("focusin",handleFocusIn);previousNode.current.removeEventListener("focusout",handleFocusOut)}},[]);return{ref:callbackRef,focused}}"use client";function getConnection(){if("undefined"==typeof navigator)return{};const _navigator=navigator;const connection=_navigator.connection||_navigator.mozConnection||_navigator.webkitConnection;if(!connection)return{};return{downlink:connection?.downlink,downlinkMax:connection?.downlinkMax,effectiveType:connection?.effectiveType,rtt:connection?.rtt,saveData:connection?.saveData,type:connection?.type}}function useNetwork(){const[status,setStatus]=(0,index_js_.useState)({online:true});const handleConnectionChange=(0,index_js_.useCallback)(()=>setStatus(current=>({...current,...getConnection()})),[]);useWindowEvent("online",()=>setStatus({online:true,...getConnection()}));useWindowEvent("offline",()=>setStatus({online:false,...getConnection()}));(0,index_js_.useEffect)(()=>{const _navigator=navigator;if(_navigator.connection){setStatus({online:_navigator.onLine,...getConnection()});_navigator.connection.addEventListener("change",handleConnectionChange);return()=>_navigator.connection.removeEventListener("change",handleConnectionChange)}if("boolean"==typeof _navigator.onLine)setStatus(current=>({...current,online:_navigator.onLine}))},[]);return status}"use client";function useTimeout(callback,delay,options={autoInvoke:false}){const timeoutRef=(0,index_js_.useRef)(null);const start=(0,index_js_.useCallback)((...args)=>{if(!timeoutRef.current)timeoutRef.current=window.setTimeout(()=>{callback(args);timeoutRef.current=null},delay)},[delay]);const clear=(0,index_js_.useCallback)(()=>{if(timeoutRef.current){window.clearTimeout(timeoutRef.current);timeoutRef.current=null}},[]);(0,index_js_.useEffect)(()=>{if(options.autoInvoke)start();return clear},[clear,start]);return{start,clear}}"use client";function useTextSelection(){const forceUpdate=useForceUpdate();const[selection,setSelection]=(0,index_js_.useState)(null);const handleSelectionChange=()=>{setSelection(document.getSelection());forceUpdate()};(0,index_js_.useEffect)(()=>{setSelection(document.getSelection());document.addEventListener("selectionchange",handleSelectionChange);return()=>document.removeEventListener("selectionchange",handleSelectionChange)},[]);return selection}"use client";function usePrevious(value){const ref=(0,index_js_.useRef)(void 0);(0,index_js_.useEffect)(()=>{ref.current=value},[value]);return ref.current}"use client";const MIME_TYPES={ico:"image/x-icon",png:"image/png",svg:"image/svg+xml",gif:"image/gif"};function useFavicon(url){const link=(0,index_js_.useRef)(null);useIsomorphicEffect(()=>{if(!url)return;if(!link.current){const existingElements=document.querySelectorAll('link[rel*="icon"]');existingElements.forEach(element2=>document.head.removeChild(element2));const element=document.createElement("link");element.rel="shortcut icon";link.current=element;document.querySelector("head").appendChild(element)}const splittedUrl=url.split(".");link.current.setAttribute("type",MIME_TYPES[splittedUrl[splittedUrl.length-1].toLowerCase()]);link.current.setAttribute("href",url)},[url])}"use client";const isFixed=(current,fixedAt)=>current<=fixedAt;const isPinnedOrReleased=(current,fixedAt,isCurrentlyPinnedRef,isScrollingUp,onPin,onRelease)=>{const isInFixedPosition=isFixed(current,fixedAt);if(isInFixedPosition&&!isCurrentlyPinnedRef.current){isCurrentlyPinnedRef.current=true;onPin?.()}else if(isInFixedPosition||!isScrollingUp||isCurrentlyPinnedRef.current){if(!isInFixedPosition&&isCurrentlyPinnedRef.current){isCurrentlyPinnedRef.current=false;onRelease?.()}}else{isCurrentlyPinnedRef.current=true;onPin?.()}};const useScrollDirection=()=>{const[lastScrollTop,setLastScrollTop]=(0,index_js_.useState)(0);const[isScrollingUp,setIsScrollingUp]=(0,index_js_.useState)(false);const[isResizing,setIsResizing]=(0,index_js_.useState)(false);(0,index_js_.useEffect)(()=>{let resizeTimer;const onResize=()=>{setIsResizing(true);clearTimeout(resizeTimer);resizeTimer=setTimeout(()=>{setIsResizing(false)},300)};const onScroll=()=>{if(isResizing)return;const currentScrollTop=window.scrollY||document.documentElement.scrollTop;setIsScrollingUp(currentScrollTop<lastScrollTop);setLastScrollTop(currentScrollTop)};window.addEventListener("scroll",onScroll);window.addEventListener("resize",onResize);return()=>{window.removeEventListener("scroll",onScroll);window.removeEventListener("resize",onResize)}},[lastScrollTop,isResizing]);return isScrollingUp};function useHeadroom({fixedAt=0,onPin,onFix,onRelease}={}){const isCurrentlyPinnedRef=(0,index_js_.useRef)(false);const isScrollingUp=useScrollDirection();const[{y:scrollPosition}]=useWindowScroll();useIsomorphicEffect(()=>{isPinnedOrReleased(scrollPosition,fixedAt,isCurrentlyPinnedRef,isScrollingUp,onPin,onRelease)},[scrollPosition]);useIsomorphicEffect(()=>{if(isFixed(scrollPosition,fixedAt))onFix?.()},[scrollPosition,fixedAt,onFix]);if(isFixed(scrollPosition,fixedAt)||isScrollingUp)return true;return false}"use client";function useEyeDropper(){const[supported,setSupported]=(0,index_js_.useState)(false);useIsomorphicEffect(()=>{setSupported("undefined"!=typeof window&&!isOpera()&&"EyeDropper"in window)},[]);const open=(0,index_js_.useCallback)((options={})=>{if(supported){const eyeDropper=new window.EyeDropper;return eyeDropper.open(options)}return Promise.resolve(void 0)},[supported]);return{supported,open}}function isOpera(){return navigator.userAgent.includes("OPR")}"use client";function useInViewport(){const observer=(0,index_js_.useRef)(null);const[inViewport,setInViewport]=(0,index_js_.useState)(false);const ref=(0,index_js_.useCallback)(node=>{if("undefined"!=typeof IntersectionObserver){if(node&&!observer.current)observer.current=new IntersectionObserver(entries=>setInViewport(entries.some(entry=>entry.isIntersecting)));else observer.current?.disconnect();if(node)observer.current?.observe(node);else setInViewport(false)}},[]);return{ref,inViewport}}"use client";function useMutationObserver(callback,options,target){const observer=(0,index_js_.useRef)(null);const ref=(0,index_js_.useRef)(null);(0,index_js_.useEffect)(()=>{const targetElement="function"==typeof target?target():target;if(targetElement||ref.current){observer.current=new MutationObserver(callback);observer.current.observe(targetElement||ref.current,options)}return()=>{observer.current?.disconnect()}},[callback,options]);return ref}"use client";function useMounted(){const[mounted,setMounted]=(0,index_js_.useState)(false);(0,index_js_.useEffect)(()=>setMounted(true),[]);return mounted}"use client";function useStateHistory(initialValue){const[state,setState]=(0,index_js_.useState)({history:[initialValue],current:0});const set=(0,index_js_.useCallback)(val=>setState(currentState=>{const nextState=[...currentState.history.slice(0,currentState.current+1),val];return{history:nextState,current:nextState.length-1}}),[]);const back=(0,index_js_.useCallback)((steps=1)=>setState(currentState=>({history:currentState.history,current:Math.max(0,currentState.current-steps)})),[]);const forward=(0,index_js_.useCallback)((steps=1)=>setState(currentState=>({history:currentState.history,current:Math.min(currentState.history.length-1,currentState.current+steps)})),[]);const reset=(0,index_js_.useCallback)(()=>{setState({history:[initialValue],current:0})},[initialValue]);const handlers=(0,index_js_.useMemo)(()=>({back,forward,reset,set}),[back,forward,reset,set]);return[state.history[state.current],handlers,state]}"use client";function useMap(initialState){const mapRef=(0,index_js_.useRef)(new Map(initialState));const forceUpdate=useForceUpdate();mapRef.current.set=(...args)=>{Map.prototype.set.apply(mapRef.current,args);forceUpdate();return mapRef.current};mapRef.current.clear=(...args)=>{Map.prototype.clear.apply(mapRef.current,args);forceUpdate()};mapRef.current.delete=(...args)=>{const res=Map.prototype.delete.apply(mapRef.current,args);forceUpdate();return res};return mapRef.current}"use client";function readonlySetLikeToSet(input){if(input instanceof Set)return input;const result=/* @__PURE__ */new Set;for(const item of input)result.add(item);return result}function useSet(values){const setRef=(0,index_js_.useRef)(new Set(values));const forceUpdate=useForceUpdate();setRef.current.add=(...args)=>{const res=Set.prototype.add.apply(setRef.current,args);forceUpdate();return res};setRef.current.clear=(...args)=>{Set.prototype.clear.apply(setRef.current,args);forceUpdate()};setRef.current.delete=(...args)=>{const res=Set.prototype.delete.apply(setRef.current,args);forceUpdate();return res};setRef.current.union=other=>{const result=new Set(setRef.current);readonlySetLikeToSet(other).forEach(item=>result.add(item));return result};setRef.current.intersection=other=>{const result=/* @__PURE__ */new Set;const otherSet=readonlySetLikeToSet(other);setRef.current.forEach(item=>{if(otherSet.has(item))result.add(item)});return result};setRef.current.difference=other=>{const result=/* @__PURE__ */new Set;const otherSet=readonlySetLikeToSet(other);setRef.current.forEach(item=>{if(!otherSet.has(item))result.add(item)});return result};setRef.current.symmetricDifference=other=>{const result=/* @__PURE__ */new Set;const otherSet=readonlySetLikeToSet(other);setRef.current.forEach(item=>{if(!otherSet.has(item))result.add(item)});otherSet.forEach(item=>{if(!setRef.current.has(item))result.add(item)});return result};return setRef.current}"use client";function useThrottledCallbackWithClearTimeout(callback,wait){const handleCallback=useCallbackRef(callback);const latestInArgsRef=(0,index_js_.useRef)(null);const latestOutArgsRef=(0,index_js_.useRef)(null);const active=(0,index_js_.useRef)(true);const waitRef=(0,index_js_.useRef)(wait);const timeoutRef=(0,index_js_.useRef)(-1);const clearTimeout1=()=>window.clearTimeout(timeoutRef.current);const callThrottledCallback=(0,index_js_.useCallback)((...args)=>{handleCallback(...args);latestInArgsRef.current=args;latestOutArgsRef.current=args;active.current=false},[handleCallback]);const timerCallback=(0,index_js_.useCallback)(()=>{if(latestInArgsRef.current&&latestInArgsRef.current!==latestOutArgsRef.current){callThrottledCallback(...latestInArgsRef.current);timeoutRef.current=window.setTimeout(timerCallback,waitRef.current)}else active.current=true},[callThrottledCallback]);const throttled=(0,index_js_.useCallback)((...args)=>{if(active.current){callThrottledCallback(...args);timeoutRef.current=window.setTimeout(timerCallback,waitRef.current)}else latestInArgsRef.current=args},[callThrottledCallback,timerCallback]);(0,index_js_.useEffect)(()=>{waitRef.current=wait},[wait]);return[throttled,clearTimeout1]}function useThrottledCallback(callback,wait){return useThrottledCallbackWithClearTimeout(callback,wait)[0]}"use client";function useThrottledState(defaultValue,wait){const[value,setValue]=(0,index_js_.useState)(defaultValue);const[setThrottledValue,clearTimeout1]=useThrottledCallbackWithClearTimeout(setValue,wait);(0,index_js_.useEffect)(()=>clearTimeout1,[]);return[value,setThrottledValue]}"use client";function useThrottledValue(value,wait){const[throttledValue,setThrottledValue]=(0,index_js_.useState)(value);const valueRef=(0,index_js_.useRef)(value);const[throttledSetValue,clearTimeout1]=useThrottledCallbackWithClearTimeout(setThrottledValue,wait);(0,index_js_.useEffect)(()=>{if(value!==valueRef.current){valueRef.current=value;throttledSetValue(value)}},[throttledSetValue,value]);(0,index_js_.useEffect)(()=>clearTimeout1,[]);return throttledValue}"use client";function useIsFirstRender(){const renderRef=(0,index_js_.useRef)(true);if(true===renderRef.current){renderRef.current=false;return true}return renderRef.current}"use client";function use_orientation_getInitialValue(initialValue,getInitialValueInEffect){if(getInitialValueInEffect)return initialValue;if("undefined"!=typeof window&&"screen"in window)return{angle:window.screen.orientation?.angle??initialValue.angle,type:window.screen.orientation?.type??initialValue.type};return initialValue}function useOrientation({defaultAngle=0,defaultType="landscape-primary",getInitialValueInEffect=true}={}){const[orientation,setOrientation]=(0,index_js_.useState)(use_orientation_getInitialValue({angle:defaultAngle,type:defaultType},getInitialValueInEffect));const handleOrientationChange=event=>{const target=event.currentTarget;setOrientation({angle:target?.angle||0,type:target?.type||"landscape-primary"})};useIsomorphicEffect(()=>{window.screen.orientation?.addEventListener("change",handleOrientationChange);return()=>window.screen.orientation?.removeEventListener("change",handleOrientationChange)},[]);return orientation}"use client";function useFetch(url,{autoInvoke=true,...options}={}){const[data,setData]=(0,index_js_.useState)(null);const[loading,setLoading]=(0,index_js_.useState)(false);const[error,setError]=(0,index_js_.useState)(null);const controller=(0,index_js_.useRef)(null);const refetch=(0,index_js_.useCallback)(()=>{if(controller.current)controller.current.abort();controller.current=new AbortController;setLoading(true);return fetch(url,{signal:controller.current.signal,...options}).then(res=>res.json()).then(res=>{setData(res);setLoading(false);return res}).catch(err=>{setLoading(false);if("AbortError"!==err.name)setError(err);return err})},[url]);const abort=(0,index_js_.useCallback)(()=>{if(controller.current)controller.current?.abort("")},[]);(0,index_js_.useEffect)(()=>{if(autoInvoke)refetch();return()=>{if(controller.current)controller.current.abort("")}},[refetch,autoInvoke]);return{data,loading,error,refetch,abort}}"use client";function radiansToDegrees(radians){return 180/Math.PI*radians}function getElementCenter(element){const rect=element.getBoundingClientRect();return[rect.left+rect.width/2,rect.top+rect.height/2]}function getAngle(coordinates,element){const center=getElementCenter(element);const x=coordinates[0]-center[0];const y=coordinates[1]-center[1];const deg=radiansToDegrees(Math.atan2(x,y))+180;return 360-deg}function toFixed(value,digits){return parseFloat(value.toFixed(digits))}function getDigitsAfterDot(value){return value.toString().split(".")[1]?.length||0}function normalizeRadialValue(degree,step){const clamped=clamp(degree,0,360);const high=Math.ceil(clamped/step);const low=Math.round(clamped/step);return toFixed(high>=clamped/step?high*step===360?0:high*step:low*step,getDigitsAfterDot(step))}function useRadialMove(onChange,{step=.01,onChangeEnd,onScrubStart,onScrubEnd}={}){const mounted=(0,index_js_.useRef)(false);const[active,setActive]=(0,index_js_.useState)(false);(0,index_js_.useEffect)(()=>{mounted.current=true},[]);const refCallback=(0,index_js_.useCallback)(node=>{const update=(event,done=false)=>{if(node){node.style.userSelect="none";const deg=getAngle([event.clientX,event.clientY],node);const newValue=normalizeRadialValue(deg,step||1);onChange(newValue);done&&onChangeEnd?.(newValue)}};const beginTracking=()=>{onScrubStart?.();setActive(true);document.addEventListener("mousemove",handleMouseMove,false);document.addEventListener("mouseup",handleMouseUp,false);document.addEventListener("touchmove",handleTouchMove,{passive:false});document.addEventListener("touchend",handleTouchEnd,false)};const endTracking=()=>{onScrubEnd?.();setActive(false);document.removeEventListener("mousemove",handleMouseMove,false);document.removeEventListener("mouseup",handleMouseUp,false);document.removeEventListener("touchmove",handleTouchMove,false);document.removeEventListener("touchend",handleTouchEnd,false)};const onMouseDown=event=>{beginTracking();update(event)};const handleMouseMove=event=>{update(event)};const handleMouseUp=event=>{update(event,true);endTracking()};const handleTouchMove=event=>{event.preventDefault();update(event.touches[0])};const handleTouchEnd=event=>{update(event.changedTouches[0],true);endTracking()};const handleTouchStart=event=>{event.preventDefault();beginTracking();update(event.touches[0])};node?.addEventListener("mousedown",onMouseDown);node?.addEventListener("touchstart",handleTouchStart,{passive:false});return()=>{if(node){node.removeEventListener("mousedown",onMouseDown);node.removeEventListener("touchstart",handleTouchStart)}}},[onChange]);return{ref:refCallback,active}}"use client";function getHeadingsData(headings,getDepth,getValue){const result=[];for(let i=0;i<headings.length;i+=1){const heading=headings[i];result.push({depth:getDepth(heading),value:getValue(heading),id:heading.id||randomId(),getNode:()=>heading.id?document.getElementById(heading.id):heading})}return result}function getActiveElement(rects,offset=0){if(0===rects.length)return -1;const closest=rects.reduce((acc,item,index)=>{if(Math.abs(acc.position-offset)<Math.abs(item.y-offset))return acc;return{index,position:item.y}},{index:0,position:rects[0].y});return closest.index}function getDefaultDepth(element){return Number(element.tagName[1])}function getDefaultValue(element){return element.textContent||""}function useScrollSpy({selector="h1, h2, h3, h4, h5, h6",getDepth=getDefaultDepth,getValue=getDefaultValue,offset=0,scrollHost}={}){const[active,setActive]=(0,index_js_.useState)(-1);const[initialized,setInitialized]=(0,index_js_.useState)(false);const[data,setData]=(0,index_js_.useState)([]);const headingsRef=(0,index_js_.useRef)([]);const handleScroll=()=>{setActive(getActiveElement(headingsRef.current.map(d=>d.getNode().getBoundingClientRect()),offset))};const initialize=()=>{const headings=getHeadingsData(Array.from(document.querySelectorAll(selector)),getDepth,getValue);headingsRef.current=headings;setInitialized(true);setData(headings);setActive(getActiveElement(headings.map(d=>d.getNode().getBoundingClientRect()),offset))};(0,index_js_.useEffect)(()=>{initialize();const _scrollHost=scrollHost||window;_scrollHost.addEventListener("scroll",handleScroll);return()=>_scrollHost.removeEventListener("scroll",handleScroll)},[scrollHost]);return{reinitialize:initialize,active,initialized,data}}"use client";const defaultOptions={multiple:true,accept:"*"};function getInitialFilesList(files){if(!files)return null;if(files instanceof FileList)return files;const result=new DataTransfer;for(const file of files)result.items.add(file);return result.files}function createInput(options){if("undefined"==typeof document)return null;const input=document.createElement("input");input.type="file";if(options.accept)input.accept=options.accept;if(options.multiple)input.multiple=options.multiple;if(options.capture)input.capture=options.capture;if(options.directory)input.webkitdirectory=options.directory;input.style.display="none";return input}function useFileDialog(input={}){const options={...defaultOptions,...input};const[files,setFiles]=(0,index_js_.useState)(getInitialFilesList(options.initialFiles));const inputRef=(0,index_js_.useRef)(null);const handleChange=(0,index_js_.useCallback)(event=>{const target=event.target;if(target?.files){setFiles(target.files);options.onChange?.(target.files)}},[options.onChange]);const createAndSetupInput=(0,index_js_.useCallback)(()=>{inputRef.current?.remove();inputRef.current=createInput(options);if(inputRef.current){inputRef.current.addEventListener("change",handleChange,{once:true});document.body.appendChild(inputRef.current)}},[options,handleChange]);useIsomorphicEffect(()=>{createAndSetupInput();return()=>inputRef.current?.remove()},[]);const reset=(0,index_js_.useCallback)(()=>{setFiles(null);options.onChange?.(null)},[options.onChange]);const open=(0,index_js_.useCallback)(()=>{if(options.resetOnOpen)reset();createAndSetupInput();inputRef.current?.click()},[options.resetOnOpen,reset,createAndSetupInput]);return{files,open,reset}}"use client";function useLongPress(onLongPress,options={}){const{threshold=400,onStart,onFinish,onCancel}=options;const isLongPressActive=(0,index_js_.useRef)(false);const isPressed=(0,index_js_.useRef)(false);const timeout=(0,index_js_.useRef)(-1);(0,index_js_.useEffect)(()=>()=>window.clearTimeout(timeout.current),[]);return(0,index_js_.useMemo)(()=>{if("function"!=typeof onLongPress)return{};const start=event=>{if(!isMouseEvent(event)&&!isTouchEvent(event))return;if(onStart)onStart(event);isPressed.current=true;timeout.current=window.setTimeout(()=>{onLongPress(event);isLongPressActive.current=true},threshold)};const cancel=event=>{if(!isMouseEvent(event)&&!isTouchEvent(event))return;if(isLongPressActive.current){if(onFinish)onFinish(event)}else if(isPressed.current){if(onCancel)onCancel(event)}isLongPressActive.current=false;isPressed.current=false;if(timeout.current)window.clearTimeout(timeout.current)};return{onMouseDown:start,onMouseUp:cancel,onMouseLeave:cancel,onTouchStart:start,onTouchEnd:cancel}},[onLongPress,threshold,onCancel,onFinish,onStart])}function isTouchEvent(event){return window.TouchEvent?event.nativeEvent instanceof TouchEvent:"touches"in event.nativeEvent}function isMouseEvent(event){return event.nativeEvent instanceof MouseEvent}"use client";function useSelection(input){const[selectionSet,setSelectionSet]=(0,index_js_.useState)(new Set(input.defaultSelection||[]));useDidUpdate(()=>{if(input.resetSelectionOnDataChange)setSelectionSet(/* @__PURE__ */new Set)},[input.data,input.resetSelectionOnDataChange]);const select=(0,index_js_.useCallback)(selected=>{setSelectionSet(state=>{if(!state.has(selected)){const newSet=new Set(state);newSet.add(selected);return newSet}return state})},[]);const deselect=(0,index_js_.useCallback)(deselected=>{setSelectionSet(state=>{if(state.has(deselected)){const newSet=new Set(state);newSet.delete(deselected);return newSet}return state})},[]);const toggle=(0,index_js_.useCallback)(toggled=>{setSelectionSet(state=>{const newSet=new Set(state);if(state.has(toggled))newSet.delete(toggled);else newSet.add(toggled);return newSet})},[]);const resetSelection=(0,index_js_.useCallback)(()=>{setSelectionSet(/* @__PURE__ */new Set)},[]);const setSelection=(0,index_js_.useCallback)(selection=>{setSelectionSet(new Set(selection))},[]);const isAllSelected=(0,index_js_.useCallback)(()=>{if(0===input.data.length)return false;return input.data.every(item=>selectionSet.has(item))},[selectionSet,input.data]);const isSomeSelected=(0,index_js_.useCallback)(()=>input.data.some(item=>selectionSet.has(item)),[selectionSet,input.data]);return[Array.from(selectionSet),{select,deselect,toggle,isAllSelected,isSomeSelected,setSelection,resetSelection}]}}}]);
|
package/dist/mf/666.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 666.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis["chunk_integrations_app"]=globalThis["chunk_integrations_app"]||[]).push([["666"],{9698:function(__unused_webpack_module,exports){/**
|
|
3
|
-
* @license React
|
|
4
|
-
* react-jsx-runtime.production.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var REACT_ELEMENT_TYPE=Symbol.for("react.transitional.element"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment");function jsxProd(type,config,maybeKey){var key=null;void 0!==maybeKey&&(key=""+maybeKey);void 0!==config.key&&(key=""+config.key);if("key"in config){maybeKey={};for(var propName in config)"key"!==propName&&(maybeKey[propName]=config[propName])}else maybeKey=config;config=maybeKey.ref;return{$$typeof:REACT_ELEMENT_TYPE,type:type,key:key,ref:void 0!==config?config:null,props:maybeKey}}exports.Fragment=REACT_FRAGMENT_TYPE;exports.jsx=jsxProd;exports.jsxs=jsxProd},4848:function(module,__unused_webpack_exports,__webpack_require__){module.exports=__webpack_require__(9698)},2004:function(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{updateContextModal:()=>events_updateContextModal,closeAllModals:()=>closeAllModals,updateModal:()=>events_updateModal,ModalsProvider:()=>ModalsProvider,openContextModal:()=>events_openContextModal,openConfirmModal:()=>events_openConfirmModal,closeModal:()=>events_closeModal,modals:()=>events_modals,openModal:()=>events_openModal,useModals:()=>useModals});var jsx_runtime=__webpack_require__(4848);var index_js_=__webpack_require__(3620);var index_mjs_=__webpack_require__(9389);var esm_index_mjs_=__webpack_require__(207);"use client";const ModalsContext=(0,index_js_.createContext)(null);ModalsContext.displayName="@mantine/modals/ModalsContext";"use client";function useModals(){const ctx=(0,index_js_.useContext)(ModalsContext);if(!ctx)throw new Error("[@mantine/modals] useModals hook was called outside of context, wrap your app with ModalsProvider component");return ctx}"use client";function ConfirmModal({id,cancelProps,confirmProps,labels={cancel:"",confirm:""},closeOnConfirm=true,closeOnCancel=true,groupProps,onCancel,onConfirm,children}){const{cancel:cancelLabel,confirm:confirmLabel}=labels;const ctx=useModals();const handleCancel=event=>{"function"==typeof cancelProps?.onClick&&cancelProps?.onClick(event);"function"==typeof onCancel&&onCancel();closeOnCancel&&ctx.closeModal(id)};const handleConfirm=event=>{"function"==typeof confirmProps?.onClick&&confirmProps?.onClick(event);"function"==typeof onConfirm&&onConfirm();closeOnConfirm&&ctx.closeModal(id)};return/* @__PURE__ */(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[children&&/* @__PURE__ */(0,jsx_runtime.jsx)(index_mjs_.Box,{mb:"md",children}),/* @__PURE__ */(0,jsx_runtime.jsxs)(index_mjs_.Group,{mt:children?0:"md",justify:"flex-end",...groupProps,children:[/* @__PURE__ */(0,jsx_runtime.jsx)(index_mjs_.Button,{variant:"default",...cancelProps,onClick:handleCancel,children:cancelProps?.children||cancelLabel}),/* @__PURE__ */(0,jsx_runtime.jsx)(index_mjs_.Button,{...confirmProps,onClick:handleConfirm,children:confirmProps?.children||confirmLabel})]})]})}"use client";const[useModalsEvents,createEvent]=(0,index_mjs_.createUseExternalEvents)("mantine-modals");const events_openModal=payload=>{const id=payload.modalId||(0,esm_index_mjs_.randomId)();createEvent("openModal")({...payload,modalId:id});return id};const events_openConfirmModal=payload=>{const id=payload.modalId||(0,esm_index_mjs_.randomId)();createEvent("openConfirmModal")({...payload,modalId:id});return id};const events_openContextModal=payload=>{const id=payload.modalId||(0,esm_index_mjs_.randomId)();createEvent("openContextModal")({...payload,modalId:id});return id};const events_closeModal=createEvent("closeModal");const closeAllModals=createEvent("closeAllModals");const events_updateModal=payload=>createEvent("updateModal")(payload);const events_updateContextModal=payload=>createEvent("updateContextModal")(payload);const events_modals={open:events_openModal,close:events_closeModal,closeAll:closeAllModals,openConfirmModal:events_openConfirmModal,openContextModal:events_openContextModal,updateModal:events_updateModal,updateContextModal:events_updateContextModal};"use client";function handleCloseModal(modal,canceled){if(canceled&&"confirm"===modal.type)modal.props.onCancel?.();modal.props.onClose?.()}function modalsReducer(state,action){switch(action.type){case"OPEN":return{current:action.modal,modals:[...state.modals,action.modal]};case"CLOSE":{const modal=state.modals.find(m=>m.id===action.modalId);if(!modal)return state;handleCloseModal(modal,action.canceled);const remainingModals=state.modals.filter(m=>m.id!==action.modalId);return{current:remainingModals[remainingModals.length-1]||state.current,modals:remainingModals}}case"CLOSE_ALL":if(!state.modals.length)return state;state.modals.concat().reverse().forEach(modal=>{handleCloseModal(modal,action.canceled)});return{current:state.current,modals:[]};case"UPDATE":{const{modalId,newProps}=action;const updatedModals=state.modals.map(modal=>{if(modal.id!==modalId)return modal;if("content"===modal.type||"confirm"===modal.type)return{...modal,props:{...modal.props,...newProps}};if("context"===modal.type)return{...modal,props:{...modal.props,...newProps,innerProps:{...modal.props.innerProps,...newProps.innerProps}}};return modal});const currentModal=state.current?.id===modalId?updatedModals.find(modal=>modal.id===modalId)||state.current:state.current;return{...state,modals:updatedModals,current:currentModal}}default:return state}}"use client";function separateConfirmModalProps(props){if(!props)return{confirmProps:{},modalProps:{}};const{id,children,onCancel,onConfirm,closeOnConfirm,closeOnCancel,cancelProps,confirmProps,groupProps,labels,...others}=props;return{confirmProps:{id,children,onCancel,onConfirm,closeOnConfirm,closeOnCancel,cancelProps,confirmProps,groupProps,labels},modalProps:{id,...others}}}function ModalsProvider({children,modalProps,labels,modals}){const[state,dispatch]=(0,index_js_.useReducer)(modalsReducer,{modals:[],current:null});const stateRef=(0,index_js_.useRef)(state);stateRef.current=state;const closeAll=(0,index_js_.useCallback)(canceled=>{dispatch({type:"CLOSE_ALL",canceled})},[stateRef,dispatch]);const openModal=(0,index_js_.useCallback)(({modalId,...props})=>{const id=modalId||(0,esm_index_mjs_.randomId)();dispatch({type:"OPEN",modal:{id,type:"content",props}});return id},[dispatch]);const openConfirmModal=(0,index_js_.useCallback)(({modalId,...props})=>{const id=modalId||(0,esm_index_mjs_.randomId)();dispatch({type:"OPEN",modal:{id,type:"confirm",props}});return id},[dispatch]);const openContextModal=(0,index_js_.useCallback)((modal,{modalId,...props})=>{const id=modalId||(0,esm_index_mjs_.randomId)();dispatch({type:"OPEN",modal:{id,type:"context",props,ctx:modal}});return id},[dispatch]);const closeModal=(0,index_js_.useCallback)((id,canceled)=>{dispatch({type:"CLOSE",modalId:id,canceled})},[stateRef,dispatch]);const updateModal=(0,index_js_.useCallback)(({modalId,...newProps})=>{dispatch({type:"UPDATE",modalId,newProps})},[dispatch]);const updateContextModal=(0,index_js_.useCallback)(({modalId,...newProps})=>{dispatch({type:"UPDATE",modalId,newProps})},[dispatch]);useModalsEvents({openModal,openConfirmModal,openContextModal:({modal,...payload})=>openContextModal(modal,payload),closeModal,closeContextModal:closeModal,closeAllModals:closeAll,updateModal,updateContextModal});const ctx={modalProps:modalProps||{},modals:state.modals,openModal,openConfirmModal,openContextModal,closeModal,closeContextModal:closeModal,closeAll,updateModal,updateContextModal};const getCurrentModal=()=>{const currentModal=stateRef.current.current;switch(currentModal?.type){case"context":{const{innerProps,...rest}=currentModal.props;const ContextModal=modals[currentModal.ctx];return{modalProps:rest,content:/* @__PURE__ */(0,jsx_runtime.jsx)(ContextModal,{innerProps,context:ctx,id:currentModal.id})}}case"confirm":{const{modalProps:separatedModalProps,confirmProps:separatedConfirmProps}=separateConfirmModalProps(currentModal.props);return{modalProps:separatedModalProps,content:/* @__PURE__ */(0,jsx_runtime.jsx)(ConfirmModal,{...separatedConfirmProps,id:currentModal.id,labels:currentModal.props.labels||labels})}}case"content":{const{children:currentModalChildren,...rest}=currentModal.props;return{modalProps:rest,content:currentModalChildren}}default:return{modalProps:{},content:null}}};const{modalProps:currentModalProps,content}=getCurrentModal();return/* @__PURE__ */(0,jsx_runtime.jsxs)(ModalsContext.Provider,{value:ctx,children:[/* @__PURE__ */(0,jsx_runtime.jsx)(index_mjs_.Modal,{zIndex:(0,index_mjs_.getDefaultZIndex)("modal")+1,...modalProps,...currentModalProps,opened:state.modals.length>0,onClose:()=>closeModal(state.current?.id),children:content}),children]})}}}]);
|
package/dist/mf/702.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis["chunk_integrations_app"]=globalThis["chunk_integrations_app"]||[]).push([["702"],{8861:function(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{AreaChart:()=>AreaChart,BubbleChart:()=>BubbleChart,FunnelChart:()=>FunnelChart,RadialBarChart:()=>RadialBarChart,AreaGradient:()=>AreaGradient,CompositeChart:()=>CompositeChart,ChartTooltip:()=>ChartTooltip,DonutChart:()=>DonutChart,LineChart:()=>LineChart,RadarChart:()=>RadarChart,ChartLegend:()=>ChartLegend,Heatmap:()=>Heatmap,ScatterChart:()=>ScatterChart,PieChart:()=>PieChart,getSplitOffset:()=>getSplitOffset,getFilteredChartLegendPayload:()=>getFilteredChartLegendPayload,BarChart:()=>BarChart,Sparkline:()=>Sparkline,getFilteredChartTooltipPayload:()=>getFilteredChartTooltipPayload});var jsx_runtime=__webpack_require__(4848);var index_mjs_=__webpack_require__(9389);"use client";function getSeriesLabels(series){if(!series)return{};return series.reduce((acc,item)=>{const matchFound=item.name.search(/\./);if(matchFound>=0){const key=item.name.substring(matchFound+1);acc[key]=item.label;return acc}acc[item.name]=item.label;return acc},{})}"use client";var classes={tooltip:"m_e4d36c9b",tooltipLabel:"m_7f4bcb19",tooltipBody:"m_3de554dd",tooltipItemColor:"m_b30369b5",tooltipItem:"m_3de8964e",tooltipItemBody:"m_50186d10",tooltipItemName:"m_501dadf9",tooltipItemData:"m_50192318"};"use client";function updateChartTooltipPayload(payload){return payload.map(item=>{if(!item.payload||item.payload[item.name])return item;const matchFound=item.name.search(/\./);if(matchFound>=0){const newDataKey=item.name.substring(0,matchFound);const nestedPayload={...item.payload[newDataKey]};const shallowPayload=Object.entries(item.payload).reduce((acc,current)=>{const[k,v]=current;return k===newDataKey?acc:{...acc,[k]:v}},{});return{...item,name:item.name.substring(matchFound+1),payload:{...shallowPayload,...nestedPayload}}}return item})}function getFilteredChartTooltipPayload(payload,segmentId){const duplicatesFilter=updateChartTooltipPayload(payload.filter(item=>"none"!==item.fill||!item.color));if(!segmentId)return duplicatesFilter;return duplicatesFilter.filter(item=>item.name===segmentId)}function getData(item,type){if("radial"===type||"scatter"===type){if(Array.isArray(item.value))return item.value[1]-item.value[0];return item.value}if(Array.isArray(item.payload[item.dataKey]))return item.payload[item.dataKey][1]-item.payload[item.dataKey][0];return item.payload[item.name]}const defaultProps={type:"area",showColor:true};const ChartTooltip=(0,index_mjs_.factory)((_props,ref)=>{const props=(0,index_mjs_.useProps)("ChartTooltip",defaultProps,_props);const{classNames,className,style,styles,unstyled,vars,payload,label,unit,type,segmentId,mod,series,valueFormatter,showColor,attributes,...others}=props;const theme=(0,index_mjs_.useMantineTheme)();const getStyles=(0,index_mjs_.useStyles)({name:"ChartTooltip",classes:classes,props,className,style,classNames,styles,unstyled,attributes});if(!payload)return null;const filteredPayload=getFilteredChartTooltipPayload(payload,segmentId);const scatterLabel="scatter"===type?payload[0]?.payload?.name:null;const labels=getSeriesLabels(series);const _label=label||scatterLabel;const items=filteredPayload.map(item=>/* @__PURE__ */(0,jsx_runtime.jsxs)("div",{"data-type":type,...getStyles("tooltipItem"),children:[/* @__PURE__ */(0,jsx_runtime.jsxs)("div",{...getStyles("tooltipItemBody"),children:[showColor&&/* @__PURE__ */(0,jsx_runtime.jsx)("svg",{...getStyles("tooltipItemColor"),children:/* @__PURE__ */(0,jsx_runtime.jsx)("circle",{r:6,fill:(0,index_mjs_.getThemeColor)(item.color,theme),width:12,height:12,cx:6,cy:6})}),/* @__PURE__ */(0,jsx_runtime.jsx)("div",{...getStyles("tooltipItemName"),children:labels[item.name]||item.name})]}),/* @__PURE__ */(0,jsx_runtime.jsxs)("div",{...getStyles("tooltipItemData"),children:["function"==typeof valueFormatter?valueFormatter(getData(item,type)):getData(item,type),unit||item.unit]})]},item?.key??item.name));return/* @__PURE__ */(0,jsx_runtime.jsxs)(index_mjs_.Box,{...getStyles("tooltip"),mod:[{type},mod],ref,...others,children:[_label&&/* @__PURE__ */(0,jsx_runtime.jsx)("div",{...getStyles("tooltipLabel"),children:_label}),/* @__PURE__ */(0,jsx_runtime.jsx)("div",{...getStyles("tooltipBody"),children:items})]})});ChartTooltip.displayName="@mantine/charts/ChartTooltip";"use client";var ChartLegend_module_css_classes={legend:"m_847eaf",legendItem:"m_17da7e62",legendItemColor:"m_6e236e21",legendItemName:"m_8ff56c0d"};"use client";function updateChartLegendPayload(payload){return payload.map(item=>{const newDataKey=item.dataKey?.split(".").pop();return{...item,dataKey:newDataKey,payload:{...item.payload,name:newDataKey,dataKey:newDataKey}}})}function getFilteredChartLegendPayload(payload){return updateChartLegendPayload(payload.filter(item=>"none"!==item.color))}const ChartLegend=(0,index_mjs_.factory)((_props,ref)=>{const props=(0,index_mjs_.useProps)("ChartLegend",null,_props);const{classNames,className,style,styles,unstyled,vars,payload,onHighlight,legendPosition,mod,series,showColor,centered,attributes,...others}=props;const getStyles=(0,index_mjs_.useStyles)({name:"ChartLegend",classes:ChartLegend_module_css_classes,props,className,style,classNames,styles,unstyled,attributes});if(!payload)return null;const filteredPayload=getFilteredChartLegendPayload(payload);const labels=getSeriesLabels(series);const items=filteredPayload.map((item,index)=>/* @__PURE__ */(0,jsx_runtime.jsxs)("div",{...getStyles("legendItem"),onMouseEnter:()=>onHighlight(item.dataKey),onMouseLeave:()=>onHighlight(null),"data-without-color":false===showColor||void 0,children:[/* @__PURE__ */(0,jsx_runtime.jsx)(index_mjs_.ColorSwatch,{color:item.color,size:12,...getStyles("legendItemColor"),withShadow:false}),/* @__PURE__ */(0,jsx_runtime.jsx)("p",{...getStyles("legendItemName"),children:labels[item.dataKey]||item.dataKey})]},index));return/* @__PURE__ */(0,jsx_runtime.jsx)(index_mjs_.Box,{ref,mod:[{position:legendPosition,centered},mod],...getStyles("legend"),...others,children:items})});ChartLegend.displayName="@mantine/charts/ChartLegend";var index_js_=__webpack_require__(3620);var es6_index_js_=__webpack_require__(1301);"use client";function PointLabel({x,y,value,valueFormatter}){return/* @__PURE__ */(0,jsx_runtime.jsx)("g",{transform:`translate(${x},${y})`,children:/* @__PURE__ */(0,jsx_runtime.jsx)("text",{x:0,y:0,dy:-8,dx:-10,textAnchor:"top",fill:"var(--chart-text-color, var(--mantine-color-dimmed))",fontSize:8,children:valueFormatter?valueFormatter(value):value})})}"use client";function AreaGradient({color,id,withGradient,fillOpacity}){return/* @__PURE__ */(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:withGradient?/* @__PURE__ */(0,jsx_runtime.jsxs)("linearGradient",{id,x1:"0",y1:"0",x2:"0",y2:"1",children:[/* @__PURE__ */(0,jsx_runtime.jsx)("stop",{offset:"0%",stopColor:color,stopOpacity:fillOpacity}),/* @__PURE__ */(0,jsx_runtime.jsx)("stop",{offset:"100%",stopColor:color,stopOpacity:.01})]}):/* @__PURE__ */(0,jsx_runtime.jsx)("linearGradient",{id,x1:"0",y1:"0",x2:"0",y2:"1",children:/* @__PURE__ */(0,jsx_runtime.jsx)("stop",{stopColor:color,stopOpacity:fillOpacity??.2})})})}AreaGradient.displayName="@mantine/charts/AreaGradient";"use client";function AreaSplit({offset,id,colors,fillOpacity}){const theme=(0,index_mjs_.useMantineTheme)();return/* @__PURE__ */(0,jsx_runtime.jsxs)("linearGradient",{id,x1:"0",y1:"0",x2:"0",y2:"1",children:[/* @__PURE__ */(0,jsx_runtime.jsx)("stop",{offset,stopColor:(0,index_mjs_.getThemeColor)(colors[0],theme),stopOpacity:fillOpacity??.2}),/* @__PURE__ */(0,jsx_runtime.jsx)("stop",{offset,stopColor:(0,index_mjs_.getThemeColor)(colors[1],theme),stopOpacity:fillOpacity??.2})]})}AreaSplit.displayName="@mantine/charts/AreaSplit";"use client";function getSplitOffset({data,dataKey}){const dataMax=Math.max(...data.map(item=>item[dataKey]));const dataMin=Math.min(...data.map(item=>item[dataKey]));if(dataMax<=0)return 0;if(dataMin>=0)return 1;return dataMax/(dataMax-dataMin)}function getDefaultSplitOffset({data,series}){if(1===series.length){const dataKey=series[0].name;return getSplitOffset({data,dataKey})}return .5}"use client";var grid_chart_module_css_classes={root:"m_a50f3e58",container:"m_af9188cb",grid:"m_a50a48bc",axis:"m_a507a517",axisLabel:"m_2293801d",tooltip:"m_92b296cd"};"use client";function valueToPercent(value){return`${(100*value).toFixed(0)}%`}const AreaChart_defaultProps={withXAxis:true,withYAxis:true,withDots:true,withTooltip:true,connectNulls:true,strokeWidth:2,tooltipAnimationDuration:0,fillOpacity:.2,tickLine:"y",strokeDasharray:"5 5",curveType:"monotone",gridAxis:"x",type:"default",splitColors:["green.7","red.7"],orientation:"horizontal"};const varsResolver=(0,index_mjs_.createVarsResolver)((theme,{textColor,gridColor})=>({root:{"--chart-text-color":textColor?(0,index_mjs_.getThemeColor)(textColor,theme):void 0,"--chart-grid-color":gridColor?(0,index_mjs_.getThemeColor)(gridColor,theme):void 0}}));const AreaChart=(0,index_mjs_.factory)((_props,ref)=>{const props=(0,index_mjs_.useProps)("AreaChart",AreaChart_defaultProps,_props);const{classNames,className,style,styles,unstyled,vars,data,series,withGradient,dataKey,withXAxis,withYAxis,curveType,gridProps,withDots,tickLine,strokeDasharray,gridAxis,unit,yAxisProps,xAxisProps,dotProps,activeDotProps,strokeWidth,tooltipAnimationDuration,type,legendProps,tooltipProps,withLegend,withTooltip,areaChartProps,fillOpacity,splitColors,splitOffset,connectNulls,onMouseLeave,orientation,referenceLines,dir,valueFormatter,children,areaProps,xAxisLabel,yAxisLabel,withRightYAxis,rightYAxisLabel,rightYAxisProps,withPointLabels,gridColor,textColor,attributes,...others}=props;const theme=(0,index_mjs_.useMantineTheme)();const baseId=(0,index_js_.useId)();const splitId=`${baseId}-split`;const withXTickLine="none"!==gridAxis&&("x"===tickLine||"xy"===tickLine);const withYTickLine="none"!==gridAxis&&("y"===tickLine||"xy"===tickLine);const isAnimationActive=(tooltipAnimationDuration||0)>0;const _withGradient="boolean"==typeof withGradient?withGradient:"default"===type;const stacked="stacked"===type||"percent"===type;const[highlightedArea,setHighlightedArea]=(0,index_js_.useState)(null);const shouldHighlight=null!==highlightedArea;const handleMouseLeave=event=>{setHighlightedArea(null);onMouseLeave?.(event)};const{resolvedClassNames,resolvedStyles}=(0,index_mjs_.useResolvedStylesApi)({classNames,styles,props});const getStyles=(0,index_mjs_.useStyles)({name:"AreaChart",classes:grid_chart_module_css_classes,props,className,style,classNames,styles,unstyled,attributes,vars,varsResolver});const dotsAreas=series.map(item=>{const color=(0,index_mjs_.getThemeColor)(item.color,theme);const dimmed=shouldHighlight&&highlightedArea!==item.name;return/* @__PURE__ */(0,index_js_.createElement)(es6_index_js_.Area,{...getStyles("area"),activeDot:{fill:theme.white,stroke:color,strokeWidth:2,r:4,...activeDotProps},dot:{fill:color,fillOpacity:dimmed?0:1,strokeWidth:2,r:4,...dotProps},key:item.name,name:item.name,type:curveType,dataKey:item.name,fill:"none",strokeWidth,stroke:"none",isAnimationActive:false,connectNulls,stackId:stacked?"stack-dots":void 0,yAxisId:item.yAxisId||"left",..."function"==typeof areaProps?areaProps(item):areaProps})});const areas=series.map(item=>{const id=`${baseId}-${item.color.replace(/[^a-zA-Z0-9]/g,"")}`;const color=(0,index_mjs_.getThemeColor)(item.color,theme);const dimmed=shouldHighlight&&highlightedArea!==item.name;return/* @__PURE__ */(0,jsx_runtime.jsxs)(index_js_.Fragment,{children:[/* @__PURE__ */(0,jsx_runtime.jsx)("defs",{children:/* @__PURE__ */(0,jsx_runtime.jsx)(AreaGradient,{color,withGradient:_withGradient,id,fillOpacity})}),/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Area,{...getStyles("area"),activeDot:false,dot:false,name:item.name,type:curveType,dataKey:item.name,fill:"split"===type?`url(#${splitId})`:`url(#${id})`,strokeWidth,stroke:color,isAnimationActive:false,connectNulls,stackId:stacked?"stack":void 0,fillOpacity:dimmed?0:1,strokeOpacity:dimmed?.5:1,strokeDasharray:item.strokeDasharray,yAxisId:item.yAxisId||"left",label:withPointLabels?/* @__PURE__ */(0,jsx_runtime.jsx)(PointLabel,{valueFormatter}):void 0,..."function"==typeof areaProps?areaProps(item):areaProps})]},item.name)});const referenceLinesItems=referenceLines?.map((line,index)=>{const color=(0,index_mjs_.getThemeColor)(line.color,theme);return/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.ReferenceLine,{stroke:line.color?color:"var(--chart-grid-color)",strokeWidth:1,yAxisId:line.yAxisId||"left",...line,label:{value:line.label,fill:line.color?color:"currentColor",fontSize:12,position:line.labelPosition??"insideBottomLeft"},...getStyles("referenceLine")},index)});const tickFormatter="percent"===type?valueToPercent:valueFormatter;const sharedYAxisProps={axisLine:false,..."vertical"===orientation?{dataKey,type:"category"}:{type:"number"},tickLine:withYTickLine?{stroke:"currentColor"}:false,allowDecimals:true,unit,tickFormatter:"vertical"===orientation?void 0:tickFormatter,...getStyles("axis")};return/* @__PURE__ */(0,jsx_runtime.jsx)(index_mjs_.Box,{ref,...getStyles("root"),onMouseLeave:handleMouseLeave,dir:dir||"ltr",...others,children:/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.ResponsiveContainer,{...getStyles("container"),children:/* @__PURE__ */(0,jsx_runtime.jsxs)(es6_index_js_.AreaChart,{data,stackOffset:"percent"===type?"expand":void 0,layout:orientation,margin:{bottom:xAxisLabel?30:void 0,left:yAxisLabel?10:void 0,right:yAxisLabel?5:void 0},...areaChartProps,children:[referenceLinesItems,withLegend&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Legend,{verticalAlign:"top",content:payload=>/* @__PURE__ */(0,jsx_runtime.jsx)(ChartLegend,{payload:payload.payload,onHighlight:setHighlightedArea,legendPosition:legendProps?.verticalAlign||"top",classNames:resolvedClassNames,styles:resolvedStyles,series,attributes}),...legendProps}),/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.CartesianGrid,{strokeDasharray,vertical:"y"===gridAxis||"xy"===gridAxis,horizontal:"x"===gridAxis||"xy"===gridAxis,...getStyles("grid"),...gridProps}),/* @__PURE__ */(0,jsx_runtime.jsxs)(es6_index_js_.XAxis,{hide:!withXAxis,..."vertical"===orientation?{type:"number"}:{dataKey},tick:{transform:"translate(0, 10)",fontSize:12,fill:"currentColor"},stroke:"",interval:"preserveStartEnd",tickLine:withXTickLine?{stroke:"currentColor"}:false,minTickGap:5,tickFormatter:"vertical"===orientation?tickFormatter:void 0,...getStyles("axis"),...xAxisProps,children:[xAxisLabel&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Label,{position:"insideBottom",offset:-20,fontSize:12,...getStyles("axisLabel"),children:xAxisLabel}),xAxisProps?.children]}),/* @__PURE__ */(0,jsx_runtime.jsxs)(es6_index_js_.YAxis,{yAxisId:"left",orientation:"left",tick:{transform:"translate(-10, 0)",fontSize:12,fill:"currentColor"},hide:!withYAxis,...sharedYAxisProps,...yAxisProps,children:[yAxisLabel&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Label,{position:"insideLeft",angle:-90,textAnchor:"middle",fontSize:12,offset:-5,...getStyles("axisLabel"),children:yAxisLabel}),yAxisProps?.children]}),/* @__PURE__ */(0,jsx_runtime.jsxs)(es6_index_js_.YAxis,{yAxisId:"right",orientation:"right",tick:{transform:"translate(10, 0)",fontSize:12,fill:"currentColor"},hide:!withRightYAxis,...sharedYAxisProps,...rightYAxisProps,children:[rightYAxisLabel&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Label,{position:"insideRight",angle:90,textAnchor:"middle",fontSize:12,offset:-5,...getStyles("axisLabel"),children:rightYAxisLabel}),yAxisProps?.children]}),withTooltip&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Tooltip,{animationDuration:tooltipAnimationDuration,isAnimationActive,position:"vertical"===orientation?{}:{y:0},cursor:{stroke:"var(--chart-grid-color)",strokeWidth:1,strokeDasharray},content:({label,payload})=>/* @__PURE__ */(0,jsx_runtime.jsx)(ChartTooltip,{label,payload,unit,classNames:resolvedClassNames,styles:resolvedStyles,series,valueFormatter,attributes}),...tooltipProps}),"split"===type&&/* @__PURE__ */(0,jsx_runtime.jsx)("defs",{children:/* @__PURE__ */(0,jsx_runtime.jsx)(AreaSplit,{colors:splitColors,id:splitId,offset:splitOffset??getDefaultSplitOffset({data,series}),fillOpacity})}),areas,withDots&&dotsAreas,children]})})})});AreaChart.classes=grid_chart_module_css_classes;AreaChart.displayName="@mantine/charts/AreaChart";"use client";function BarChart_valueToPercent(value){return`${(100*value).toFixed(0)}%`}const BarChart_defaultProps={withXAxis:true,withYAxis:true,withTooltip:true,tooltipAnimationDuration:0,fillOpacity:1,tickLine:"y",strokeDasharray:"5 5",gridAxis:"x",type:"default"};const BarChart_varsResolver=(0,index_mjs_.createVarsResolver)((theme,{textColor,gridColor,cursorFill,barLabelColor})=>({root:{"--chart-text-color":textColor?(0,index_mjs_.getThemeColor)(textColor,theme):void 0,"--chart-grid-color":gridColor?(0,index_mjs_.getThemeColor)(gridColor,theme):void 0,"--chart-cursor-fill":cursorFill?(0,index_mjs_.getThemeColor)(cursorFill,theme):void 0,"--chart-bar-label-color":barLabelColor?(0,index_mjs_.getThemeColor)(barLabelColor,theme):void 0}}));function calculateCumulativeTotal(waterfallData,dataKey){let start=0;let end=0;return waterfallData.map(item=>{if(item.standalone){for(const prop in item)if("number"==typeof item[prop]&&prop!==dataKey)item[prop]=[0,item[prop]]}else for(const prop in item)if("number"==typeof item[prop]&&prop!==dataKey){end+=item[prop];item[prop]=[start,end];start=end}return item})}function getBarFill(barProps,series){if("function"==typeof barProps)return barProps(series).fill;return barProps?.fill}const BarChart=(0,index_mjs_.factory)((_props,ref)=>{const props=(0,index_mjs_.useProps)("BarChart",BarChart_defaultProps,_props);const{classNames,className,style,styles,unstyled,vars,data,withLegend,legendProps,series,onMouseLeave,dataKey,withTooltip,withXAxis,withYAxis,gridAxis,tickLine,xAxisProps,yAxisProps,unit,tooltipAnimationDuration,strokeDasharray,gridProps,tooltipProps,referenceLines,fillOpacity,barChartProps,type,orientation,dir,valueFormatter,children,barProps,xAxisLabel,yAxisLabel,withBarValueLabel,valueLabelProps,withRightYAxis,rightYAxisLabel,rightYAxisProps,minBarSize,maxBarWidth,mod,getBarColor,gridColor,textColor,attributes,...others}=props;const theme=(0,index_mjs_.useMantineTheme)();const withXTickLine="none"!==gridAxis&&("x"===tickLine||"xy"===tickLine);const withYTickLine="none"!==gridAxis&&("y"===tickLine||"xy"===tickLine);const[highlightedArea,setHighlightedArea]=(0,index_js_.useState)(null);const shouldHighlight=null!==highlightedArea;const stacked="stacked"===type||"percent"===type;const tickFormatter="percent"===type?BarChart_valueToPercent:valueFormatter;const handleMouseLeave=event=>{setHighlightedArea(null);onMouseLeave?.(event)};const{resolvedClassNames,resolvedStyles}=(0,index_mjs_.useResolvedStylesApi)({classNames,styles,props});const inputData="waterfall"===type?calculateCumulativeTotal(data,dataKey):data;const getStyles=(0,index_mjs_.useStyles)({name:"BarChart",classes:grid_chart_module_css_classes,props,className,style,classNames,styles,unstyled,attributes,vars,varsResolver:BarChart_varsResolver});const bars=series.map(item=>{const color=(0,index_mjs_.getThemeColor)(item.color,theme);const dimmed=shouldHighlight&&highlightedArea!==item.name;return/* @__PURE__ */(0,index_js_.createElement)(es6_index_js_.Bar,{...getStyles("bar"),key:item.name,name:item.name,dataKey:item.name,fill:color,stroke:color,isAnimationActive:false,fillOpacity:dimmed?.1:fillOpacity,strokeOpacity:dimmed?.2:0,stackId:stacked?"stack":item.stackId||void 0,yAxisId:item.yAxisId||"left",minPointSize:minBarSize,..."function"==typeof barProps?barProps(item):barProps},inputData.map((entry,index)=>{const cellColor=entry.color?(0,index_mjs_.getThemeColor)(entry.color,theme):"function"==typeof getBarColor?(0,index_mjs_.getThemeColor)(getBarColor(entry[item.name],item),theme):getBarFill(barProps,item)||color;return/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Cell,{fill:cellColor},`cell-${index}`)}),withBarValueLabel&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.LabelList,{position:"vertical"===orientation?"right":"top",fontSize:12,fill:"var(--chart-bar-label-color, var(--mantine-color-dimmed))",formatter:val=>tickFormatter?.(val),..."function"==typeof valueLabelProps?valueLabelProps(item):valueLabelProps}))});const referenceLinesItems=referenceLines?.map((line,index)=>{const color=(0,index_mjs_.getThemeColor)(line.color,theme);return/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.ReferenceLine,{stroke:line.color?color:"var(--chart-grid-color)",strokeWidth:1,yAxisId:line.yAxisId||"left",...line,label:{value:line.label,fill:line.color?color:"currentColor",fontSize:12,position:line.labelPosition??"insideBottomLeft"},...getStyles("referenceLine")},index)});const sharedYAxisProps={axisLine:false,..."vertical"===orientation?{dataKey,type:"category"}:{type:"number"},tickLine:withYTickLine?{stroke:"currentColor"}:false,allowDecimals:true,unit,tickFormatter:"vertical"===orientation?void 0:tickFormatter,...getStyles("axis")};return/* @__PURE__ */(0,jsx_runtime.jsx)(index_mjs_.Box,{ref,...getStyles("root"),onMouseLeave:handleMouseLeave,dir:dir||"ltr",mod:[{orientation},mod],...others,children:/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.ResponsiveContainer,{...getStyles("container"),children:/* @__PURE__ */(0,jsx_runtime.jsxs)(es6_index_js_.BarChart,{data:inputData,stackOffset:"percent"===type?"expand":void 0,layout:orientation,maxBarSize:maxBarWidth,margin:{bottom:xAxisLabel?30:void 0,left:yAxisLabel?10:void 0,right:yAxisLabel?5:void 0},...barChartProps,children:[withLegend&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Legend,{verticalAlign:"top",content:payload=>/* @__PURE__ */(0,jsx_runtime.jsx)(ChartLegend,{payload:payload.payload,onHighlight:setHighlightedArea,legendPosition:legendProps?.verticalAlign||"top",classNames:resolvedClassNames,styles:resolvedStyles,series,showColor:"waterfall"!==type,attributes}),...legendProps}),/* @__PURE__ */(0,jsx_runtime.jsxs)(es6_index_js_.XAxis,{hide:!withXAxis,..."vertical"===orientation?{type:"number"}:{dataKey},tick:{transform:"translate(0, 10)",fontSize:12,fill:"currentColor"},stroke:"",interval:"preserveStartEnd",tickLine:withXTickLine?{stroke:"currentColor"}:false,minTickGap:5,tickFormatter:"vertical"===orientation?tickFormatter:void 0,...getStyles("axis"),...xAxisProps,children:[xAxisLabel&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Label,{position:"insideBottom",offset:-20,fontSize:12,...getStyles("axisLabel"),children:xAxisLabel}),xAxisProps?.children]}),/* @__PURE__ */(0,jsx_runtime.jsxs)(es6_index_js_.YAxis,{yAxisId:"left",orientation:"left",tick:{transform:"translate(-10, 0)",fontSize:12,fill:"currentColor"},hide:!withYAxis,...sharedYAxisProps,...yAxisProps,children:[yAxisLabel&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Label,{position:"insideLeft",angle:-90,textAnchor:"middle",fontSize:12,offset:-5,...getStyles("axisLabel"),children:yAxisLabel}),yAxisProps?.children]}),/* @__PURE__ */(0,jsx_runtime.jsxs)(es6_index_js_.YAxis,{yAxisId:"right",orientation:"right",tick:{transform:"translate(10, 0)",fontSize:12,fill:"currentColor"},hide:!withRightYAxis,...sharedYAxisProps,...rightYAxisProps,children:[rightYAxisLabel&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Label,{position:"insideRight",angle:90,textAnchor:"middle",fontSize:12,offset:-5,...getStyles("axisLabel"),children:rightYAxisLabel}),yAxisProps?.children]}),/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.CartesianGrid,{strokeDasharray,vertical:"y"===gridAxis||"xy"===gridAxis,horizontal:"x"===gridAxis||"xy"===gridAxis,...getStyles("grid"),...gridProps}),withTooltip&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Tooltip,{animationDuration:tooltipAnimationDuration,isAnimationActive:0!==tooltipAnimationDuration,position:"vertical"===orientation?{}:{y:0},cursor:{stroke:"var(--chart-grid-color)",strokeWidth:1,strokeDasharray,fill:"var(--chart-cursor-fill)"},content:({label,payload})=>/* @__PURE__ */(0,jsx_runtime.jsx)(ChartTooltip,{label,payload,type:"waterfall"===type?"scatter":void 0,unit,classNames:resolvedClassNames,styles:resolvedStyles,series,valueFormatter,attributes}),...tooltipProps}),bars,referenceLinesItems,children]})})})});BarChart.displayName="@mantine/charts/BarChart";BarChart.classes=grid_chart_module_css_classes;var esm_index_mjs_=__webpack_require__(207);"use client";const LineChart_defaultProps={withXAxis:true,withYAxis:true,withTooltip:true,tooltipAnimationDuration:0,fillOpacity:1,tickLine:"y",strokeDasharray:"5 5",gridAxis:"x",withDots:true,connectNulls:true,strokeWidth:2,curveType:"monotone",gradientStops:[{offset:0,color:"red"},{offset:100,color:"blue"}]};const LineChart_varsResolver=(0,index_mjs_.createVarsResolver)((theme,{textColor,gridColor})=>({root:{"--chart-text-color":textColor?(0,index_mjs_.getThemeColor)(textColor,theme):void 0,"--chart-grid-color":gridColor?(0,index_mjs_.getThemeColor)(gridColor,theme):void 0}}));const LineChart=(0,index_mjs_.factory)((_props,ref)=>{const props=(0,index_mjs_.useProps)("LineChart",LineChart_defaultProps,_props);const{classNames,className,style,styles,unstyled,vars,data,withLegend,legendProps,series,onMouseLeave,dataKey,withTooltip,withXAxis,withYAxis,gridAxis,tickLine,xAxisProps,yAxisProps,unit,tooltipAnimationDuration,strokeDasharray,gridProps,tooltipProps,referenceLines,withDots,dotProps,activeDotProps,strokeWidth,lineChartProps,connectNulls,fillOpacity,curveType,orientation,dir,valueFormatter,children,lineProps,xAxisLabel,yAxisLabel,type,gradientStops,withRightYAxis,rightYAxisLabel,rightYAxisProps,withPointLabels,attributes,gridColor,...others}=props;const theme=(0,index_mjs_.useMantineTheme)();const withXTickLine="none"!==gridAxis&&("x"===tickLine||"xy"===tickLine);const withYTickLine="none"!==gridAxis&&("y"===tickLine||"xy"===tickLine);const[highlightedArea,setHighlightedArea]=(0,index_js_.useState)(null);const shouldHighlight=null!==highlightedArea;const handleMouseLeave=event=>{setHighlightedArea(null);onMouseLeave?.(event)};const{resolvedClassNames,resolvedStyles}=(0,index_mjs_.useResolvedStylesApi)({classNames,styles,props});const getStyles=(0,index_mjs_.useStyles)({name:"LineChart",classes:grid_chart_module_css_classes,props,className,style,classNames,styles,unstyled,attributes,vars,varsResolver:LineChart_varsResolver});const id=(0,esm_index_mjs_.useId)();const gradientId=`line-chart-gradient-${id}`;const stops=gradientStops?.map(stop=>/* @__PURE__ */(0,jsx_runtime.jsx)("stop",{offset:`${stop.offset}%`,stopColor:(0,index_mjs_.getThemeColor)(stop.color,theme)},stop.color));const lines=series.map(item=>{const color=(0,index_mjs_.getThemeColor)(item.color,theme);const dimmed=shouldHighlight&&highlightedArea!==item.name;return/* @__PURE__ */(0,index_js_.createElement)(es6_index_js_.Line,{...getStyles("line"),key:item.name,name:item.name,dataKey:item.name,dot:withDots?{fillOpacity:dimmed?0:1,strokeOpacity:dimmed?0:1,strokeWidth:1,fill:"gradient"===type?"var(--mantine-color-gray-7)":color,stroke:"gradient"===type?"white":color,...dotProps}:false,activeDot:withDots?{fill:"gradient"===type?"var(--mantine-color-gray-7)":color,stroke:"gradient"===type?"white":color,...activeDotProps}:false,fill:color,stroke:"gradient"===type?`url(#${gradientId})`:color,strokeWidth,isAnimationActive:false,fillOpacity:dimmed?0:fillOpacity,strokeOpacity:dimmed?.5:fillOpacity,connectNulls,type:curveType,strokeDasharray:item.strokeDasharray,yAxisId:item.yAxisId||"left",label:withPointLabels?/* @__PURE__ */(0,jsx_runtime.jsx)(PointLabel,{valueFormatter}):void 0,..."function"==typeof lineProps?lineProps(item):lineProps})});const referenceLinesItems=referenceLines?.map((line,index)=>{const color=(0,index_mjs_.getThemeColor)(line.color,theme);return/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.ReferenceLine,{stroke:line.color?color:"var(--chart-grid-color)",strokeWidth:1,yAxisId:line.yAxisId||"left",...line,label:{value:line.label,fill:line.color?color:"currentColor",fontSize:12,position:line.labelPosition??"insideBottomLeft"},...getStyles("referenceLine")},index)});const sharedYAxisProps={axisLine:false,..."vertical"===orientation?{dataKey,type:"category"}:{type:"number"},tickLine:withYTickLine?{stroke:"currentColor"}:false,allowDecimals:true,unit,tickFormatter:"vertical"===orientation?void 0:valueFormatter,...getStyles("axis")};return/* @__PURE__ */(0,jsx_runtime.jsx)(index_mjs_.Box,{ref,...getStyles("root"),onMouseLeave:handleMouseLeave,dir:dir||"ltr",...others,children:/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.ResponsiveContainer,{...getStyles("container"),children:/* @__PURE__ */(0,jsx_runtime.jsxs)(es6_index_js_.LineChart,{data,layout:orientation,margin:{bottom:xAxisLabel?30:void 0,left:yAxisLabel?10:void 0,right:yAxisLabel?5:void 0},...lineChartProps,children:["gradient"===type&&/* @__PURE__ */(0,jsx_runtime.jsx)("defs",{children:/* @__PURE__ */(0,jsx_runtime.jsx)("linearGradient",{id:gradientId,x1:"0",y1:"0",x2:"0",y2:"1",children:stops})}),withLegend&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Legend,{verticalAlign:"top",content:payload=>/* @__PURE__ */(0,jsx_runtime.jsx)(ChartLegend,{payload:payload.payload,onHighlight:setHighlightedArea,legendPosition:legendProps?.verticalAlign||"top",classNames:resolvedClassNames,styles:resolvedStyles,series,showColor:"gradient"!==type,attributes}),...legendProps}),/* @__PURE__ */(0,jsx_runtime.jsxs)(es6_index_js_.XAxis,{hide:!withXAxis,..."vertical"===orientation?{type:"number"}:{dataKey},tick:{transform:"translate(0, 10)",fontSize:12,fill:"currentColor"},stroke:"",interval:"preserveStartEnd",tickLine:withXTickLine?{stroke:"currentColor"}:false,minTickGap:5,tickFormatter:"vertical"===orientation?valueFormatter:void 0,...getStyles("axis"),...xAxisProps,children:[xAxisLabel&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Label,{position:"insideBottom",offset:-20,fontSize:12,...getStyles("axisLabel"),children:xAxisLabel}),xAxisProps?.children]}),/* @__PURE__ */(0,jsx_runtime.jsxs)(es6_index_js_.YAxis,{yAxisId:"left",orientation:"left",tick:{transform:"translate(-10, 0)",fontSize:12,fill:"currentColor"},hide:!withYAxis,...sharedYAxisProps,...yAxisProps,children:[yAxisLabel&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Label,{position:"insideLeft",angle:-90,textAnchor:"middle",fontSize:12,offset:-5,...getStyles("axisLabel"),children:yAxisLabel}),yAxisProps?.children]}),/* @__PURE__ */(0,jsx_runtime.jsxs)(es6_index_js_.YAxis,{yAxisId:"right",orientation:"right",tick:{transform:"translate(10, 0)",fontSize:12,fill:"currentColor"},hide:!withRightYAxis,...sharedYAxisProps,...rightYAxisProps,children:[rightYAxisLabel&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Label,{position:"insideRight",angle:90,textAnchor:"middle",fontSize:12,offset:-5,...getStyles("axisLabel"),children:rightYAxisLabel}),yAxisProps?.children]}),/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.CartesianGrid,{strokeDasharray,vertical:"y"===gridAxis||"xy"===gridAxis,horizontal:"x"===gridAxis||"xy"===gridAxis,...getStyles("grid"),...gridProps}),withTooltip&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Tooltip,{animationDuration:tooltipAnimationDuration,isAnimationActive:0!==tooltipAnimationDuration,position:"vertical"===orientation?{}:{y:0},cursor:{stroke:"var(--chart-grid-color)",strokeWidth:1,strokeDasharray},content:({label,payload})=>/* @__PURE__ */(0,jsx_runtime.jsx)(ChartTooltip,{label,payload,unit,classNames:resolvedClassNames,styles:resolvedStyles,series,valueFormatter,showColor:"gradient"!==type,attributes}),...tooltipProps}),lines,referenceLinesItems,children]})})})});LineChart.displayName="@mantine/charts/LineChart";LineChart.classes=grid_chart_module_css_classes;"use client";const Sparkline_classes={};const Sparkline_defaultProps={withGradient:true,connectNulls:true,fillOpacity:.6,strokeWidth:2,curveType:"linear"};function getTrendColor(data,trendColors){const first=data[0];const last=data[data.length-1];if(null===first||null===last)return trendColors.neutral||trendColors.positive;if(first<last)return trendColors.positive;if(first>last)return trendColors.negative;return trendColors.neutral||trendColors.positive}const Sparkline_varsResolver=(0,index_mjs_.createVarsResolver)((theme,{color,data,trendColors})=>({root:{"--chart-color":trendColors?(0,index_mjs_.getThemeColor)(getTrendColor(data,trendColors),theme):color?(0,index_mjs_.getThemeColor)(color,theme):void 0}}));const Sparkline=(0,index_mjs_.factory)((_props,ref)=>{const props=(0,index_mjs_.useProps)("Sparkline",Sparkline_defaultProps,_props);const{classNames,className,style,styles,unstyled,vars,data,withGradient,fillOpacity,curveType,strokeWidth,trendColors,connectNulls,areaProps,attributes,...others}=props;const getStyles=(0,index_mjs_.useStyles)({name:"Sparkline",classes:Sparkline_classes,props,className,style,classNames,styles,unstyled,attributes,vars,varsResolver:Sparkline_varsResolver});const id=(0,index_js_.useId)();const mappedData=(0,index_js_.useMemo)(()=>data.map((value,index)=>({value,index})),[data]);return/* @__PURE__ */(0,jsx_runtime.jsx)(index_mjs_.Box,{ref,...getStyles("root"),...others,dir:"ltr",children:/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.ResponsiveContainer,{children:/* @__PURE__ */(0,jsx_runtime.jsxs)(es6_index_js_.AreaChart,{data:mappedData,children:[/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Area,{dataKey:"value",type:curveType,fill:`url(#${id})`,stroke:"var(--chart-color, var(--mantine-color-blue-filled))",isAnimationActive:false,connectNulls,strokeWidth,fillOpacity:1,...areaProps}),/* @__PURE__ */(0,jsx_runtime.jsx)("defs",{children:/* @__PURE__ */(0,jsx_runtime.jsx)(AreaGradient,{id,color:"var(--chart-color, var(--mantine-color-blue-filled))",fillOpacity,withGradient})})]})})})});Sparkline.displayName="@mantine/charts/Sparkline";Sparkline.classes=Sparkline_classes;"use client";var DonutChart_module_css_classes={root:"m_a410e613",label:"m_ddb0bfe3"};"use client";const DonutChart_defaultProps={withTooltip:true,withLabelsLine:true,paddingAngle:0,thickness:20,size:160,strokeWidth:1,startAngle:0,endAngle:360,labelsType:"value",tooltipDataSource:"all"};const DonutChart_varsResolver=(0,index_mjs_.createVarsResolver)((theme,{strokeColor,labelColor,withLabels,size})=>({root:{"--chart-stroke-color":strokeColor?(0,index_mjs_.getThemeColor)(strokeColor,theme):void 0,"--chart-labels-color":labelColor?(0,index_mjs_.getThemeColor)(labelColor,theme):void 0,"--chart-size":withLabels?(0,index_mjs_.rem)(size+80):(0,index_mjs_.rem)(size)}}));const getLabelValue=(labelsType,value,percent,valueFormatter)=>{if("percent"===labelsType)return`${(100*(percent||0)).toFixed(0)}%`;if("function"==typeof valueFormatter)return valueFormatter(value||0);return value};const getLabel=(labelsType,valueFormatter)=>({x,y,cx,cy,percent,value})=>/* @__PURE__ */(0,jsx_runtime.jsx)("text",{x,y,cx,cy,textAnchor:x>cx?"start":"end",fill:"var(--chart-labels-color, var(--mantine-color-dimmed))",fontFamily:"var(--mantine-font-family)",fontSize:12,children:/* @__PURE__ */(0,jsx_runtime.jsx)("tspan",{x,children:getLabelValue(labelsType,value,percent,valueFormatter)})});const DonutChart=(0,index_mjs_.factory)((_props,ref)=>{const props=(0,index_mjs_.useProps)("DonutChart",DonutChart_defaultProps,_props);const{classNames,className,style,styles,unstyled,vars,data,withTooltip,tooltipAnimationDuration,tooltipProps,pieProps,paddingAngle,withLabels,withLabelsLine,size,thickness,strokeWidth,startAngle,endAngle,tooltipDataSource,chartLabel,children,pieChartProps,valueFormatter,strokeColor,labelsType,attributes,...others}=props;const theme=(0,index_mjs_.useMantineTheme)();const getStyles=(0,index_mjs_.useStyles)({name:"DonutChart",classes:DonutChart_module_css_classes,props,className,style,classNames,styles,unstyled,attributes,vars,varsResolver:DonutChart_varsResolver});const{resolvedClassNames,resolvedStyles}=(0,index_mjs_.useResolvedStylesApi)({classNames,styles,props});const cells=data.map((item,index)=>/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Cell,{fill:(0,index_mjs_.getThemeColor)(item.color,theme),stroke:"var(--chart-stroke-color, var(--mantine-color-body))",strokeWidth},index));return/* @__PURE__ */(0,jsx_runtime.jsx)(index_mjs_.Box,{ref,size,...getStyles("root"),...others,children:/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.ResponsiveContainer,{children:/* @__PURE__ */(0,jsx_runtime.jsxs)(es6_index_js_.PieChart,{...pieChartProps,children:[/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Pie,{data,innerRadius:size/2-thickness,outerRadius:size/2,dataKey:"value",isAnimationActive:false,paddingAngle,startAngle,endAngle,label:withLabels?getLabel(labelsType||"value",valueFormatter):false,labelLine:withLabelsLine?{stroke:"var(--chart-label-color, var(--mantine-color-dimmed))",strokeWidth:1}:false,...pieProps,children:cells}),chartLabel&&/* @__PURE__ */(0,jsx_runtime.jsx)("text",{x:"50%",y:"50%",textAnchor:"middle",dominantBaseline:"middle",...getStyles("label"),children:chartLabel}),withTooltip&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Tooltip,{animationDuration:tooltipAnimationDuration,isAnimationActive:false,content:({payload})=>/* @__PURE__ */(0,jsx_runtime.jsx)(ChartTooltip,{payload:data,classNames:resolvedClassNames,styles:resolvedStyles,type:"radial",segmentId:"segment"===tooltipDataSource?payload?.[0]?.name:void 0,valueFormatter,attributes}),...tooltipProps}),children]})})})});DonutChart.displayName="@mantine/charts/DonutChart";DonutChart.classes=DonutChart_module_css_classes;"use client";var PieChart_module_css_classes={root:"m_cd8943fd"};"use client";const PieChart_defaultProps={withTooltip:false,withLabelsLine:true,paddingAngle:0,size:160,strokeWidth:1,startAngle:0,endAngle:360,tooltipDataSource:"all",labelsPosition:"outside",labelsType:"value"};const PieChart_varsResolver=(0,index_mjs_.createVarsResolver)((theme,{strokeColor,labelColor,withLabels,size,labelsPosition})=>({root:{"--chart-stroke-color":strokeColor?(0,index_mjs_.getThemeColor)(strokeColor,theme):void 0,"--chart-labels-color":labelColor?(0,index_mjs_.getThemeColor)(labelColor,theme):void 0,"--chart-size":withLabels&&"outside"===labelsPosition?(0,index_mjs_.rem)(size+80):(0,index_mjs_.rem)(size)}}));const PieChart_getLabelValue=(labelsType,value,percent,valueFormatter)=>{if("percent"===labelsType&&"number"==typeof percent)return`${(100*percent).toFixed(0)}%`;if("function"==typeof valueFormatter&&"number"==typeof value)return valueFormatter(value);return value};const getInsideLabel=(labelsType,valueFormatter)=>({cx,cy,midAngle,innerRadius,outerRadius,value,percent})=>{const RADIAN=Math.PI/180;const radius=innerRadius+(outerRadius-innerRadius)*.5;const x=cx+radius*Math.cos(-(midAngle||0)*RADIAN);const y=cy+radius*Math.sin(-(midAngle||0)*RADIAN);return/* @__PURE__ */(0,jsx_runtime.jsx)("text",{x,y,textAnchor:x>cx?"start":"end",dominantBaseline:"central",className:PieChart_module_css_classes.label,children:PieChart_getLabelValue(labelsType,value,percent,valueFormatter)})};const getOutsideLabel=(labelsType,valueFormatter)=>({x,y,cx,cy,percent,value})=>/* @__PURE__ */(0,jsx_runtime.jsx)("text",{x,y,cx,cy,textAnchor:x>cx?"start":"end",fill:"var(--chart-labels-color, var(--mantine-color-dimmed))",fontFamily:"var(--mantine-font-family)",fontSize:12,children:/* @__PURE__ */(0,jsx_runtime.jsx)("tspan",{x,children:PieChart_getLabelValue(labelsType,value,percent,valueFormatter)})});const PieChart=(0,index_mjs_.factory)((_props,ref)=>{const props=(0,index_mjs_.useProps)("PieChart",PieChart_defaultProps,_props);const{classNames,className,style,styles,unstyled,vars,data,withTooltip,tooltipAnimationDuration,tooltipProps,pieProps,paddingAngle,withLabels,withLabelsLine,size,strokeWidth,startAngle,endAngle,tooltipDataSource,children,pieChartProps,labelsPosition,valueFormatter,labelsType,strokeColor,attributes,...others}=props;const theme=(0,index_mjs_.useMantineTheme)();const getStyles=(0,index_mjs_.useStyles)({name:"PieChart",classes:PieChart_module_css_classes,props,className,style,classNames,styles,unstyled,attributes,vars,varsResolver:PieChart_varsResolver});const{resolvedClassNames,resolvedStyles}=(0,index_mjs_.useResolvedStylesApi)({classNames,styles,props});const cells=data.map((item,index)=>/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Cell,{fill:(0,index_mjs_.getThemeColor)(item.color,theme),stroke:"var(--chart-stroke-color, var(--mantine-color-body))",strokeWidth},index));return/* @__PURE__ */(0,jsx_runtime.jsx)(index_mjs_.Box,{ref,size,...getStyles("root"),...others,children:/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.ResponsiveContainer,{children:/* @__PURE__ */(0,jsx_runtime.jsxs)(es6_index_js_.PieChart,{...pieChartProps,children:[/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Pie,{data,innerRadius:0,outerRadius:size/2,dataKey:"value",isAnimationActive:false,paddingAngle,startAngle,endAngle,label:withLabels?"inside"===labelsPosition?getInsideLabel(labelsType||"value",valueFormatter):getOutsideLabel(labelsType||"value",valueFormatter):false,labelLine:withLabelsLine&&"outside"===labelsPosition?{stroke:"var(--chart-label-color, var(--mantine-color-dimmed))",strokeWidth:1}:false,...pieProps,children:cells}),withTooltip&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Tooltip,{animationDuration:tooltipAnimationDuration,isAnimationActive:false,content:({payload})=>/* @__PURE__ */(0,jsx_runtime.jsx)(ChartTooltip,{payload:data,classNames:resolvedClassNames,styles:resolvedStyles,type:"radial",segmentId:"segment"===tooltipDataSource?payload?.[0]?.name:void 0,valueFormatter,attributes}),...tooltipProps}),children]})})})});PieChart.displayName="@mantine/charts/PieChart";PieChart.classes=PieChart_module_css_classes;"use client";var RadarChart_module_css_classes={root:"m_1f271cf7",container:"m_cf06f58c"};"use client";const RadarChart_defaultProps={withPolarGrid:true,withPolarAngleAxis:true,withPolarRadiusAxis:false,withTooltip:false,withDots:false,tooltipAnimationDuration:0};const RadarChart_varsResolver=(0,index_mjs_.createVarsResolver)((theme,{gridColor,textColor})=>({root:{"--chart-grid-color":gridColor?(0,index_mjs_.getThemeColor)(gridColor,theme):void 0,"--chart-text-color":textColor?(0,index_mjs_.getThemeColor)(textColor,theme):void 0}}));const RadarChart=(0,index_mjs_.factory)((_props,ref)=>{const props=(0,index_mjs_.useProps)("RadarChart",RadarChart_defaultProps,_props);const{classNames,className,style,styles,unstyled,vars,data,series,dataKey,gridColor,textColor,radarProps,radarChartProps,polarGridProps,polarAngleAxisProps,polarRadiusAxisProps,tooltipProps,withPolarGrid,withPolarAngleAxis,withPolarRadiusAxis,withTooltip,tooltipAnimationDuration,children,withLegend,withDots,dotProps,activeDotProps,legendProps,attributes,...others}=props;const theme=(0,index_mjs_.useMantineTheme)();const getStyles=(0,index_mjs_.useStyles)({name:"RadarChart",classes:RadarChart_module_css_classes,props,className,style,classNames,styles,unstyled,attributes,vars,varsResolver:RadarChart_varsResolver});const[highlightedArea,setHighlightedArea]=(0,index_js_.useState)(null);const{resolvedClassNames,resolvedStyles}=(0,index_mjs_.useResolvedStylesApi)({classNames,styles,props});const radars=series.map((item,index)=>/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Radar,{name:item.name,dataKey:item.name,stroke:(0,index_mjs_.getThemeColor)(item.strokeColor||item.color,theme),fill:(0,index_mjs_.getThemeColor)(item.color,theme),fillOpacity:highlightedArea?highlightedArea===item.name?item.opacity||.4:.05:item.opacity||.4,dot:withDots?{fillOpacity:1,strokeOpacity:0,strokeWidth:1,fill:(0,index_mjs_.getThemeColor)(item.color,theme),stroke:(0,index_mjs_.getThemeColor)(item.color,theme),...dotProps}:false,activeDot:withDots?{fill:(0,index_mjs_.getThemeColor)(item.color,theme),stroke:(0,index_mjs_.getThemeColor)(item.color,theme),...activeDotProps}:false,strokeOpacity:highlightedArea?highlightedArea===item.name?1:.1:1,isAnimationActive:false,..."function"==typeof radarProps?radarProps(item):radarProps},index));return/* @__PURE__ */(0,jsx_runtime.jsx)(index_mjs_.Box,{ref,...getStyles("root"),...others,children:/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.ResponsiveContainer,{...getStyles("container"),children:/* @__PURE__ */(0,jsx_runtime.jsxs)(es6_index_js_.RadarChart,{data,...radarChartProps,children:[withPolarGrid&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.PolarGrid,{stroke:"var(--chart-grid-color)",...polarGridProps}),withPolarAngleAxis&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.PolarAngleAxis,{dataKey,...polarAngleAxisProps}),withPolarRadiusAxis&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.PolarRadiusAxis,{stroke:"var(--chart-grid-color)",...polarRadiusAxisProps}),withTooltip&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Tooltip,{animationDuration:tooltipAnimationDuration,isAnimationActive:0!==tooltipAnimationDuration,cursor:{stroke:"var(--chart-grid-color)",strokeWidth:1},content:({label,payload})=>/* @__PURE__ */(0,jsx_runtime.jsx)(ChartTooltip,{label,payload,classNames:resolvedClassNames,styles:resolvedStyles,series,attributes}),...tooltipProps}),radars,withLegend&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Legend,{verticalAlign:"bottom",content:payload=>/* @__PURE__ */(0,jsx_runtime.jsx)(ChartLegend,{payload:payload.payload,onHighlight:setHighlightedArea,legendPosition:legendProps?.verticalAlign||"bottom",classNames:resolvedClassNames,styles:resolvedStyles,series,centered:true,attributes}),...legendProps}),children]})})})});RadarChart.displayName="@mantine/charts/RadarChart";RadarChart.classes=RadarChart_module_css_classes;"use client";function getAxis(key,dataKey){return key===dataKey.x?"x":"y"}const ScatterChart_defaultProps={withXAxis:true,withYAxis:true,withTooltip:true,tooltipAnimationDuration:0,tickLine:"y",strokeDasharray:"5 5",gridAxis:"x"};const ScatterChart_varsResolver=(0,index_mjs_.createVarsResolver)((theme,{textColor,gridColor})=>({root:{"--chart-text-color":textColor?(0,index_mjs_.getThemeColor)(textColor,theme):void 0,"--chart-grid-color":gridColor?(0,index_mjs_.getThemeColor)(gridColor,theme):void 0}}));const ScatterChart=(0,index_mjs_.factory)((_props,ref)=>{const props=(0,index_mjs_.useProps)("ScatterChart",ScatterChart_defaultProps,_props);const{classNames,className,style,styles,unstyled,vars,referenceLines,dir,withLegend,withTooltip,withXAxis,withYAxis,xAxisProps,yAxisProps,orientation,scatterChartProps,legendProps,data,gridAxis,tickLine,strokeDasharray,gridProps,tooltipAnimationDuration,tooltipProps,children,onMouseLeave,dataKey,textColor,gridColor,xAxisLabel,yAxisLabel,unit,labels,valueFormatter,scatterProps,pointLabels,attributes,...others}=props;const getFormatter=axis=>"function"==typeof valueFormatter?valueFormatter:valueFormatter?.[axis];const xFormatter=getFormatter("x");const yFormatter=getFormatter("y");const theme=(0,index_mjs_.useMantineTheme)();const mappedData=data.map(item=>({...item,data:item.data.map(point=>({...point,name:item.name}))}));const{resolvedClassNames,resolvedStyles}=(0,index_mjs_.useResolvedStylesApi)({classNames,styles,props});const getStyles=(0,index_mjs_.useStyles)({name:"ScatterChart",classes:grid_chart_module_css_classes,props,className,style,classNames,styles,unstyled,attributes,vars,varsResolver:ScatterChart_varsResolver});const withXTickLine="none"!==gridAxis&&("x"===tickLine||"xy"===tickLine);const withYTickLine="none"!==gridAxis&&("y"===tickLine||"xy"===tickLine);const[highlightedArea,setHighlightedArea]=(0,index_js_.useState)(null);const shouldHighlight=null!==highlightedArea;const handleMouseLeave=event=>{setHighlightedArea(null);onMouseLeave?.(event)};const referenceLinesItems=referenceLines?.map((line,index)=>{const color=(0,index_mjs_.getThemeColor)(line.color,theme);return/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.ReferenceLine,{stroke:line.color?color:"var(--chart-grid-color)",strokeWidth:1,...line,label:{value:line.label,fill:line.color?color:"currentColor",fontSize:12,position:line.labelPosition??"insideBottomLeft"},...getStyles("referenceLine")},index)});const scatters=mappedData.map((item,index)=>{const dimmed=shouldHighlight&&highlightedArea!==item.name;return/* @__PURE__ */(0,jsx_runtime.jsxs)(es6_index_js_.Scatter,{data:item.data,fill:(0,index_mjs_.getThemeColor)(item.color,theme),isAnimationActive:false,fillOpacity:dimmed?.1:1,...scatterProps,children:[pointLabels&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.LabelList,{dataKey:dataKey[pointLabels],fontSize:8,dy:10}),scatterProps?.children]},index)});return/* @__PURE__ */(0,jsx_runtime.jsx)(index_mjs_.Box,{ref,...getStyles("root"),onMouseLeave:handleMouseLeave,dir:dir||"ltr",...others,children:/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.ResponsiveContainer,{...getStyles("container"),children:/* @__PURE__ */(0,jsx_runtime.jsxs)(es6_index_js_.ScatterChart,{margin:{bottom:xAxisLabel?30:void 0,left:yAxisLabel?10:void 0,right:yAxisLabel?5:void 0},...scatterChartProps,children:[/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.CartesianGrid,{strokeDasharray,vertical:"y"===gridAxis||"xy"===gridAxis,horizontal:"x"===gridAxis||"xy"===gridAxis,...getStyles("grid"),...gridProps}),/* @__PURE__ */(0,jsx_runtime.jsxs)(es6_index_js_.XAxis,{type:"number",hide:!withXAxis,dataKey:dataKey.x,tick:{transform:"translate(0, 10)",fontSize:12,fill:"currentColor"},stroke:"",interval:"preserveStartEnd",tickLine:withXTickLine?{stroke:"currentColor"}:false,minTickGap:5,unit:unit?.x,tickFormatter:xFormatter,...getStyles("axis"),...xAxisProps,children:[xAxisLabel&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Label,{position:"insideBottom",offset:-20,fontSize:12,...getStyles("axisLabel"),children:xAxisLabel}),xAxisProps?.children]}),/* @__PURE__ */(0,jsx_runtime.jsxs)(es6_index_js_.YAxis,{type:"number",hide:!withYAxis,axisLine:false,dataKey:dataKey.y,tickLine:withYTickLine?{stroke:"currentColor"}:false,tick:{transform:"translate(-10, 0)",fontSize:12,fill:"currentColor"},allowDecimals:true,unit:unit?.y,tickFormatter:yFormatter,...getStyles("axis"),...yAxisProps,children:[yAxisLabel&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Label,{position:"insideLeft",angle:-90,textAnchor:"middle",fontSize:12,offset:-5,...getStyles("axisLabel"),children:yAxisLabel}),yAxisProps?.children]}),withTooltip&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Tooltip,{animationDuration:tooltipAnimationDuration,isAnimationActive:0!==tooltipAnimationDuration,position:{y:0},cursor:{stroke:"var(--chart-grid-color)",strokeWidth:1,strokeDasharray},content:({label,payload})=>/* @__PURE__ */(0,jsx_runtime.jsx)(ChartTooltip,{type:"scatter",label,payload:labels?payload?.map(item=>({...item,name:labels[getAxis(item.name,dataKey)]||item.name,value:getFormatter(getAxis(item.name,dataKey))?.(item.value)??item.value})):payload?.map(item=>({...item,value:getFormatter(getAxis(item.name,dataKey))?.(item.value)??item.value})),classNames:resolvedClassNames,styles:resolvedStyles,series:data,attributes}),...tooltipProps}),withLegend&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Legend,{verticalAlign:"top",content:payload=>/* @__PURE__ */(0,jsx_runtime.jsx)(ChartLegend,{payload:payload.payload?.map((item,index)=>({...item,dataKey:data[index].name})),onHighlight:setHighlightedArea,legendPosition:legendProps?.verticalAlign||"top",classNames:resolvedClassNames,styles:resolvedStyles,series:data,attributes}),height:44,...legendProps}),referenceLinesItems,scatters]})})})});ScatterChart.displayName="@mantine/charts/ScatterChart";ScatterChart.classes=grid_chart_module_css_classes;"use client";function getDomain(data,key){const values=data.map(item=>item[key]);return[Math.min(...values),Math.max(...values)]}function BubbleChartTooltip({active,payload,getStyles,dataKey,valueFormatter}){if(active&&payload&&payload.length){const data=payload[0]&&payload[0].payload;return/* @__PURE__ */(0,jsx_runtime.jsx)("div",{...getStyles("tooltip"),children:/* @__PURE__ */(0,jsx_runtime.jsxs)(index_mjs_.Group,{justify:"space-between",children:[/* @__PURE__ */(0,jsx_runtime.jsx)(index_mjs_.Text,{fz:"sm",children:data[dataKey.x]}),/* @__PURE__ */(0,jsx_runtime.jsx)(index_mjs_.Text,{fz:"sm",children:valueFormatter?valueFormatter(data[dataKey.z]):data[dataKey.z]})]})})}return null}const BubbleChart_defaultProps={color:"blue.6",withTooltip:true};const BubbleChart_varsResolver=(0,index_mjs_.createVarsResolver)((theme,{textColor,gridColor})=>({root:{"--chart-text-color":textColor?(0,index_mjs_.getThemeColor)(textColor,theme):void 0,"--chart-grid-color":gridColor?(0,index_mjs_.getThemeColor)(gridColor,theme):void 0}}));const BubbleChart=(0,index_mjs_.factory)((_props,ref)=>{const props=(0,index_mjs_.useProps)("BubbleChart",BubbleChart_defaultProps,_props);const{classNames,className,style,styles,unstyled,vars,data,xAxisProps,yAxisProps,zAxisProps,tooltipProps,scatterProps,color,label,withTooltip,dataKey,range,valueFormatter,attributes,...others}=props;const theme=(0,index_mjs_.useMantineTheme)();const getStyles=(0,index_mjs_.useStyles)({name:"BubbleChart",classes:grid_chart_module_css_classes,props,className,style,classNames,styles,unstyled,attributes,vars,varsResolver:BubbleChart_varsResolver});const yAxisWidth=label?void 0:{width:0};return/* @__PURE__ */(0,jsx_runtime.jsx)(index_mjs_.Box,{ref,...getStyles("root"),...others,children:/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.ResponsiveContainer,{children:/* @__PURE__ */(0,jsx_runtime.jsxs)(es6_index_js_.ScatterChart,{children:[/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.XAxis,{type:"category",dataKey:dataKey.x,interval:0,tick:{fontSize:12,fill:"currentColor"},tickLine:{transform:"translate(0, -6)",stroke:"currentColor"},stroke:"currentColor",...getStyles("axis"),...xAxisProps}),/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.YAxis,{type:"number",dataKey:dataKey.y,height:10,...yAxisWidth,tick:false,tickLine:false,axisLine:false,label:{value:label,position:"insideRight",fontSize:12,fill:"currentColor"},...getStyles("axis"),...yAxisProps}),/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.ZAxis,{type:"number",dataKey:dataKey.z,domain:getDomain(data,dataKey.z),range,...zAxisProps}),withTooltip&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Tooltip,{animationDuration:100,isAnimationActive:false,cursor:{stroke:"var(--chart-grid-color)",strokeWidth:1,strokeDasharray:"3 3"},content:payload=>/* @__PURE__ */(0,jsx_runtime.jsx)(BubbleChartTooltip,{dataKey,active:payload.active,payload:payload.payload,getStyles,valueFormatter}),...tooltipProps}),/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Scatter,{data,fill:(0,index_mjs_.getThemeColor)(color,theme),isAnimationActive:false,...scatterProps})]})})})});BubbleChart.displayName="@mantine/charts/BubbleChart";BubbleChart.classes=grid_chart_module_css_classes;"use client";const CompositeChart_defaultProps={withXAxis:true,withYAxis:true,withTooltip:true,tooltipAnimationDuration:0,tickLine:"y",strokeDasharray:"5 5",gridAxis:"x",withDots:true,connectNulls:true,strokeWidth:2,curveType:"monotone"};const CompositeChart_varsResolver=(0,index_mjs_.createVarsResolver)((theme,{textColor,gridColor})=>({root:{"--chart-text-color":textColor?(0,index_mjs_.getThemeColor)(textColor,theme):void 0,"--chart-grid-color":gridColor?(0,index_mjs_.getThemeColor)(gridColor,theme):void 0}}));const CompositeChart=(0,index_mjs_.factory)((_props,ref)=>{const props=(0,index_mjs_.useProps)("CompositeChart",CompositeChart_defaultProps,_props);const{classNames,className,style,styles,unstyled,vars,data,withLegend,legendProps,series,onMouseLeave,dataKey,withTooltip,withXAxis,withYAxis,gridAxis,tickLine,xAxisProps,yAxisProps,unit,tooltipAnimationDuration,strokeDasharray,gridProps,tooltipProps,referenceLines,withDots,dotProps,activeDotProps,strokeWidth,connectNulls,curveType,dir,valueFormatter,children,lineProps,xAxisLabel,yAxisLabel,withRightYAxis,rightYAxisLabel,rightYAxisProps,withPointLabels,areaProps,barProps,withBarValueLabel,minBarSize,maxBarWidth,composedChartProps,attributes,...others}=props;const theme=(0,index_mjs_.useMantineTheme)();const withXTickLine="none"!==gridAxis&&("x"===tickLine||"xy"===tickLine);const withYTickLine="none"!==gridAxis&&("y"===tickLine||"xy"===tickLine);const[highlightedArea,setHighlightedArea]=(0,index_js_.useState)(null);const shouldHighlight=null!==highlightedArea;const handleMouseLeave=event=>{setHighlightedArea(null);onMouseLeave?.(event)};const{resolvedClassNames,resolvedStyles}=(0,index_mjs_.useResolvedStylesApi)({classNames,styles,props});const getStyles=(0,index_mjs_.useStyles)({name:"CompositeChart",classes:grid_chart_module_css_classes,props,className,style,classNames,styles,unstyled,attributes,vars,varsResolver:CompositeChart_varsResolver});const lines=series.map(item=>{const color=(0,index_mjs_.getThemeColor)(item.color,theme);const dimmed=shouldHighlight&&highlightedArea!==item.name;if("line"===item.type)return/* @__PURE__ */(0,index_js_.createElement)(es6_index_js_.Line,{...getStyles("line"),key:item.name,name:item.name,dataKey:item.name,dot:withDots?{fillOpacity:dimmed?0:1,strokeOpacity:dimmed?0:1,strokeWidth:1,fill:color,stroke:color,...dotProps}:false,activeDot:withDots?{fill:"var(--mantine-color-white)",stroke:color,...activeDotProps}:false,fill:color,stroke:color,strokeWidth,isAnimationActive:false,fillOpacity:dimmed?0:1,strokeOpacity:dimmed?.5:1,connectNulls,type:curveType,strokeDasharray:item.strokeDasharray,yAxisId:item.yAxisId||"left",label:withPointLabels?/* @__PURE__ */(0,jsx_runtime.jsx)(PointLabel,{valueFormatter}):void 0,..."function"==typeof lineProps?lineProps(item):lineProps});if("area"===item.type)return/* @__PURE__ */(0,index_js_.createElement)(es6_index_js_.Area,{...getStyles("area"),key:item.name,name:item.name,type:curveType,dataKey:item.name,fill:color,strokeWidth,stroke:color,isAnimationActive:false,connectNulls,dot:withDots?{fillOpacity:dimmed?0:1,strokeOpacity:dimmed?0:1,strokeWidth:1,fill:color,stroke:color,...dotProps}:false,activeDot:withDots?{fill:theme.white,stroke:color,strokeWidth:2,r:4,...activeDotProps}:false,fillOpacity:dimmed?0:.2,strokeOpacity:dimmed?.5:1,strokeDasharray:item.strokeDasharray,yAxisId:item.yAxisId||"left",label:withPointLabels?/* @__PURE__ */(0,jsx_runtime.jsx)(PointLabel,{valueFormatter}):void 0,..."function"==typeof areaProps?areaProps(item):areaProps});if("bar"===item.type)return/* @__PURE__ */(0,index_js_.createElement)(es6_index_js_.Bar,{...getStyles("bar"),key:item.name,name:item.name,dataKey:item.name,fill:color,stroke:color,isAnimationActive:false,fillOpacity:dimmed?.1:1,strokeOpacity:dimmed?.2:0,yAxisId:item.yAxisId||"left",minPointSize:minBarSize,..."function"==typeof barProps?barProps(item):barProps},withBarValueLabel&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.LabelList,{position:"top",fontSize:12,fill:"var(--chart-bar-label-color, var(--mantine-color-dimmed))",formatter:val=>valueFormatter?.(val)}));return null});const referenceLinesItems=referenceLines?.map((line,index)=>{const color=(0,index_mjs_.getThemeColor)(line.color,theme);return/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.ReferenceLine,{stroke:line.color?color:"var(--chart-grid-color)",strokeWidth:1,yAxisId:line.yAxisId||"left",...line,label:{value:line.label,fill:line.color?color:"currentColor",fontSize:12,position:line.labelPosition??"insideBottomLeft"},...getStyles("referenceLine")},index)});const sharedYAxisProps={axisLine:false,type:"number",tickLine:withYTickLine?{stroke:"currentColor"}:false,allowDecimals:true,unit,tickFormatter:valueFormatter,...getStyles("axis")};return/* @__PURE__ */(0,jsx_runtime.jsx)(index_mjs_.Box,{ref,...getStyles("root"),onMouseLeave:handleMouseLeave,dir:dir||"ltr",...others,children:/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.ResponsiveContainer,{...getStyles("container"),children:/* @__PURE__ */(0,jsx_runtime.jsxs)(es6_index_js_.ComposedChart,{data,maxBarSize:maxBarWidth,margin:{bottom:xAxisLabel?30:void 0,left:yAxisLabel?10:void 0,right:yAxisLabel?5:void 0},...composedChartProps,children:[withLegend&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Legend,{verticalAlign:"top",content:payload=>/* @__PURE__ */(0,jsx_runtime.jsx)(ChartLegend,{payload:payload.payload,onHighlight:setHighlightedArea,legendPosition:legendProps?.verticalAlign||"top",classNames:resolvedClassNames,styles:resolvedStyles,series,attributes}),...legendProps}),/* @__PURE__ */(0,jsx_runtime.jsxs)(es6_index_js_.XAxis,{hide:!withXAxis,dataKey,tick:{transform:"translate(0, 10)",fontSize:12,fill:"currentColor"},stroke:"",interval:"preserveStartEnd",tickLine:withXTickLine?{stroke:"currentColor"}:false,minTickGap:5,...getStyles("axis"),...xAxisProps,children:[xAxisLabel&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Label,{position:"insideBottom",offset:-20,fontSize:12,...getStyles("axisLabel"),children:xAxisLabel}),xAxisProps?.children]}),/* @__PURE__ */(0,jsx_runtime.jsxs)(es6_index_js_.YAxis,{yAxisId:"left",orientation:"left",tick:{transform:"translate(-10, 0)",fontSize:12,fill:"currentColor"},hide:!withYAxis,...sharedYAxisProps,...yAxisProps,children:[yAxisLabel&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Label,{position:"insideLeft",angle:-90,textAnchor:"middle",fontSize:12,offset:-5,...getStyles("axisLabel"),children:yAxisLabel}),yAxisProps?.children]}),/* @__PURE__ */(0,jsx_runtime.jsxs)(es6_index_js_.YAxis,{yAxisId:"right",orientation:"right",tick:{transform:"translate(10, 0)",fontSize:12,fill:"currentColor"},hide:!withRightYAxis,...sharedYAxisProps,...rightYAxisProps,children:[rightYAxisLabel&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Label,{position:"insideRight",angle:90,textAnchor:"middle",fontSize:12,offset:-5,...getStyles("axisLabel"),children:rightYAxisLabel}),yAxisProps?.children]}),/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.CartesianGrid,{strokeDasharray,vertical:"y"===gridAxis||"xy"===gridAxis,horizontal:"x"===gridAxis||"xy"===gridAxis,...getStyles("grid"),...gridProps}),withTooltip&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Tooltip,{animationDuration:tooltipAnimationDuration,isAnimationActive:0!==tooltipAnimationDuration,position:{y:0},cursor:{stroke:"var(--chart-grid-color)",strokeWidth:1,strokeDasharray},content:({label,payload})=>/* @__PURE__ */(0,jsx_runtime.jsx)(ChartTooltip,{label,payload,unit,classNames:resolvedClassNames,styles:resolvedStyles,series,valueFormatter,attributes}),...tooltipProps}),lines,referenceLinesItems,children]})})})});CompositeChart.displayName="@mantine/charts/CompositeChart";CompositeChart.classes=grid_chart_module_css_classes;"use client";var RadialBarChart_module_css_classes={root:"m_cd2bd9e5",tooltip:"m_6bcc3420"};"use client";const RadialBarChart_defaultProps={barSize:20,startAngle:90,endAngle:-270,withBackground:true,withTooltip:true};const RadialBarChart_varsResolver=(0,index_mjs_.createVarsResolver)((theme,{emptyBackgroundColor})=>({root:{"--chart-empty-background":emptyBackgroundColor?(0,index_mjs_.getThemeColor)(emptyBackgroundColor,theme):void 0}}));const RadialBarChart=(0,index_mjs_.factory)((_props,ref)=>{const props=(0,index_mjs_.useProps)("RadialBarChart",RadialBarChart_defaultProps,_props);const{classNames,className,style,styles,unstyled,vars,data,barSize,withBackground,dataKey,radialBarProps,radialBarChartProps,withLabels,withLegend,legendProps,withTooltip,tooltipProps,startAngle,endAngle,attributes,...others}=props;const[highlightedArea,setHighlightedArea]=(0,index_js_.useState)(null);const getStyles=(0,index_mjs_.useStyles)({name:"RadialBarChart",classes:RadialBarChart_module_css_classes,props,className,style,classNames,styles,unstyled,attributes,vars,varsResolver:RadialBarChart_varsResolver});const theme=(0,index_mjs_.useMantineTheme)();const dataWithResolvedColor=data.map(({color,...item})=>{const resolvedColor=(0,index_mjs_.getThemeColor)(color,theme);return{...item,fill:resolvedColor,fillOpacity:highlightedArea?highlightedArea===item.name?item.opacity||1:.05:item.opacity||1}});const{resolvedClassNames,resolvedStyles}=(0,index_mjs_.useResolvedStylesApi)({classNames,styles,props});return/* @__PURE__ */(0,jsx_runtime.jsx)(index_mjs_.Box,{ref,...getStyles("root"),...others,children:/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.ResponsiveContainer,{children:/* @__PURE__ */(0,jsx_runtime.jsxs)(es6_index_js_.RadialBarChart,{margin:{top:0,bottom:0,left:0,right:0},innerRadius:"10%",outerRadius:"100%",cx:"50%",cy:"50%",barSize,startAngle,endAngle,data:dataWithResolvedColor,...radialBarChartProps,children:[/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.RadialBar,{label:withLabels?{position:"insideStart",fill:"var(--mantine-color-white)",fontSize:12}:void 0,background:withBackground?{fill:"var(--chart-empty-background)"}:void 0,dataKey,isAnimationActive:false,...radialBarProps}),withLegend&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Legend,{verticalAlign:"bottom",content:payload=>/* @__PURE__ */(0,jsx_runtime.jsx)(ChartLegend,{payload:payload.payload?.map(item=>({...item,dataKey:item.payload?.name})),onHighlight:setHighlightedArea,legendPosition:legendProps?.verticalAlign||"bottom",classNames:resolvedClassNames,styles:resolvedStyles,centered:true,attributes}),...legendProps}),withTooltip&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Tooltip,{animationDuration:0,isAnimationActive:false,cursor:{stroke:"var(--chart-cursor-color)"},content:({payload})=>/* @__PURE__ */(0,jsx_runtime.jsxs)(index_mjs_.Paper,{...getStyles("tooltip"),children:[/* @__PURE__ */(0,jsx_runtime.jsxs)(index_mjs_.Group,{gap:"sm",children:[/* @__PURE__ */(0,jsx_runtime.jsx)(index_mjs_.ColorSwatch,{color:payload?.[0]?.payload.fill,size:12,withShadow:false}),/* @__PURE__ */(0,jsx_runtime.jsx)("span",{children:payload?.[0]?.payload.name})]}),/* @__PURE__ */(0,jsx_runtime.jsx)("span",{children:payload?.[0]?.payload[dataKey]})]}),...tooltipProps})]})})})});RadialBarChart.displayName="@mantine/core/RadialBarChart";RadialBarChart.classes=RadialBarChart_module_css_classes;"use client";var FunnelChart_module_css_classes={root:"m_80d531e7"};"use client";const FunnelChart_defaultProps={withTooltip:true,size:300,strokeWidth:1,withLabels:false,labelsPosition:"right",tooltipDataSource:"all"};const FunnelChart_varsResolver=(0,index_mjs_.createVarsResolver)((theme,{strokeColor,labelColor,size})=>({root:{"--chart-stroke-color":strokeColor?(0,index_mjs_.getThemeColor)(strokeColor,theme):void 0,"--chart-labels-color":labelColor?(0,index_mjs_.getThemeColor)(labelColor,theme):void 0,"--chart-size":(0,index_mjs_.rem)(size)}}));const FunnelChart=(0,index_mjs_.factory)((_props,ref)=>{const props=(0,index_mjs_.useProps)("FunnelChart",FunnelChart_defaultProps,_props);const{classNames,className,style,styles,unstyled,vars,data,withTooltip,tooltipAnimationDuration,tooltipProps,strokeWidth,withLabels,size,valueFormatter,children,funnelChartProps,funnelProps,labelsPosition,tooltipDataSource,attributes,...others}=props;const theme=(0,index_mjs_.useMantineTheme)();const getStyles=(0,index_mjs_.useStyles)({name:"FunnelChart",classes:FunnelChart_module_css_classes,props,className,style,classNames,styles,unstyled,attributes,vars,varsResolver:FunnelChart_varsResolver});const{resolvedClassNames,resolvedStyles}=(0,index_mjs_.useResolvedStylesApi)({classNames,styles,props});return/* @__PURE__ */(0,jsx_runtime.jsx)(index_mjs_.Box,{ref,size,...getStyles("root"),...others,children:/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.ResponsiveContainer,{children:/* @__PURE__ */(0,jsx_runtime.jsxs)(es6_index_js_.FunnelChart,{...funnelChartProps,children:[/* @__PURE__ */(0,jsx_runtime.jsxs)(es6_index_js_.Funnel,{data,dataKey:"value",isAnimationActive:false,stroke:"var(--chart-stroke-color, var(--mantine-color-body))",strokeWidth,...funnelProps,children:[withLabels&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.LabelList,{position:labelsPosition,fill:"inside"===labelsPosition?"var(--chart-labels-color, var(--mantine-color-white))":"var(--chart-labels-color, var(--mantine-color-dimmed))",stroke:"none",fontFamily:"var(--mantine-font-family)",fontSize:14,dataKey:entry=>"function"==typeof valueFormatter?valueFormatter(entry.value):entry.value}),data.map((entry,index)=>/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Cell,{fill:(0,index_mjs_.getThemeColor)(entry.color,theme),stroke:"var(--chart-stroke-color, var(--mantine-color-body))",strokeWidth},index))]}),withTooltip&&/* @__PURE__ */(0,jsx_runtime.jsx)(es6_index_js_.Tooltip,{animationDuration:tooltipAnimationDuration,isAnimationActive:false,content:({payload})=>/* @__PURE__ */(0,jsx_runtime.jsx)(ChartTooltip,{payload:data,classNames:resolvedClassNames,styles:resolvedStyles,type:"radial",segmentId:"segment"===tooltipDataSource?payload?.[0]?.name:void 0,valueFormatter,attributes}),...tooltipProps}),children]})})})});FunnelChart.displayName="@mantine/charts/FunnelChart";FunnelChart.classes=FunnelChart_module_css_classes;"use client";function getBoundaries({data,domain}){if(Array.isArray(domain))return domain;const values=Object.values(data);return[Math.min(...values),Math.max(...values)]}"use client";function getColumns(datesRange,splitMonths){if(!splitMonths)return datesRange.map((week,weekIndex)=>{const firstDay=week.find(d=>null!==d);const month=new Date(firstDay).getMonth();return{type:"column",month,weekIndex}});const tmp=[];datesRange.forEach((week,weekIndex)=>{const months=week.map(d=>d?new Date(d).getMonth():null);let firstMonth=null;let boundaryIndex=null;for(let i=0;i<months.length;i+=1)if(null!==months[i]){if(null===firstMonth)firstMonth=months[i];else if(months[i]!==firstMonth){boundaryIndex=i;break}}if(null===firstMonth)return;if(null===boundaryIndex)tmp.push({type:"column",month:firstMonth,weekIndex});else{let nextMonth=null;for(let i=boundaryIndex;i<months.length;i+=1)if(null!==months[i]){nextMonth=months[i];break}if(null===nextMonth)tmp.push({type:"column",month:firstMonth,weekIndex});else{tmp.push({type:"column",month:firstMonth,weekIndex});tmp.push({type:"column",month:nextMonth,weekIndex})}}});const columns=[];for(let i=0;i<tmp.length;i+=1){if(i>0&&tmp[i].month!==tmp[i-1].month)columns.push({type:"spacer"});columns.push(tmp[i])}return columns}function getFirstMonthColumnIndex(columns,month){for(let i=0;i<columns.length;i+=1){const c=columns[i];if("column"===c.type&&c.month===month)return i}return -1}"use client";function formatDate(date){return date.toISOString().split("T")[0]}function addDays(date,days){return new Date(date.getTime()+864e5*days)}function startOfWeek(date,firstDayOfWeek){let value=new Date(date);while(value.getDay()!==firstDayOfWeek)value=addDays(value,-1);return value}function endOfWeek(date,firstDayOfWeek){const day=date.getDay();const diff=(day<firstDayOfWeek?7:0)+day-firstDayOfWeek;return addDays(date,6-diff)}function getDatesRange({startDate,endDate,withOutsideDates=true,firstDayOfWeek=1}={}){const start=startDate?new Date(startDate):new Date(/* @__PURE__ */new Date().getFullYear()-1,/* @__PURE__ */new Date().getMonth(),/* @__PURE__ */new Date().getDate());const end=endDate?new Date(endDate):/* @__PURE__ */new Date;const startWeek=startOfWeek(start,firstDayOfWeek);const endWeek=endOfWeek(end,firstDayOfWeek);const dates=[];let current=startWeek;while(current<=endWeek){const week=Array.from({length:7},(_,i)=>{const day=addDays(current,i);return withOutsideDates||day>=start&&day<=end?formatDate(day):null});dates.push(week);current=addDays(current,7)}return dates}"use client";function getMonthsRange(weeksData){let position=0;let current=null;const result=[];weeksData.forEach(week=>{const day=null===week[0]?week[week.length-1]:week[0];const month=new Date(day).getMonth();if(current!==month){current=month;result.push({month:current,position,size:0})}result[result.length-1].size+=1;position+=1});return result}"use client";function getHeatColor({value,min,max,colors}){const percent=(value-min)/(max-min);const colorIndex=Math.round((colors.length-1)*percent);return colors[colorIndex]}"use client";function HeatmapSplitWeeks({data,datesRange,rectSize,gap,rectRadius,min,max,colors,withTooltip,setHoveredRect,getRectProps,getStyles}){const rectSizeWithGap=rectSize+gap;const columns=getColumns(datesRange,true);return/* @__PURE__ */(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:columns.map((col,columnIndex)=>{if("spacer"===col.type)return/* @__PURE__ */(0,jsx_runtime.jsx)("g",{transform:`translate(${columnIndex*rectSizeWithGap}, 0)`},`spacer-${columnIndex}`);const week=datesRange[col.weekIndex];const days=week.map((date,dayIndex)=>{if(!date)return null;if(new Date(date).getMonth()!==col.month)return null;const hasValue=date in data&&null!==data[date];const rectValue=hasValue?data[date]:null;return/* @__PURE__ */(0,jsx_runtime.jsx)("rect",{width:rectSize,height:rectSize,x:gap,y:dayIndex*rectSizeWithGap+gap,rx:rectRadius,"data-empty":!hasValue||void 0,fill:hasValue?getHeatColor({value:data[date],min,max,colors}):void 0,onPointerEnter:withTooltip?()=>setHoveredRect({date,value:rectValue}):void 0,...getRectProps?.({date,value:rectValue}),...getStyles("rect")},`${date}-${col.month}`)});return/* @__PURE__ */(0,jsx_runtime.jsx)("g",{transform:`translate(${columnIndex*rectSizeWithGap}, 0)`,"data-id":"week",children:days},`col-${col.weekIndex}-${col.month}-${columnIndex}`)})})}"use client";function HeatmapWeeks({data,datesRange,rectSize,gap,rectRadius,min,max,colors,withTooltip,setHoveredRect,getRectProps,getStyles}){const rectSizeWithGap=rectSize+gap;return/* @__PURE__ */(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:datesRange.map((week,weekIndex)=>{const days=week.map((date,dayIndex)=>{if(!date)return null;const hasValue=date in data&&null!==data[date];const rectValue=hasValue?data[date]:null;return/* @__PURE__ */(0,jsx_runtime.jsx)("rect",{width:rectSize,height:rectSize,x:gap,y:dayIndex*rectSizeWithGap+gap,rx:rectRadius,"data-empty":!hasValue||void 0,fill:hasValue?getHeatColor({value:data[date],min,max,colors}):void 0,onPointerEnter:withTooltip?()=>setHoveredRect({date,value:rectValue}):void 0,...getRectProps?.({date,value:rectValue}),...getStyles("rect")},date)});return/* @__PURE__ */(0,jsx_runtime.jsx)("g",{transform:`translate(${weekIndex*rectSizeWithGap}, 0)`,"data-id":"week",children:days},weekIndex)})})}"use client";function rotateWeekdaysNames(weekdayNames,firstDayOfWeek){const rotated=[...weekdayNames];for(let i=0;i<firstDayOfWeek;i+=1)rotated.push(rotated.shift());return rotated}"use client";var Heatmap_module_css_classes={root:"m_2ef228c3",rect:"m_2ef201c5",monthLabel:"m_7e977775",weekdayLabel:"m_c4b68f8d"};"use client";const Heatmap_defaultProps={monthLabels:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdayLabels:["Sun","Mon","","Wed","","Fri",""],withOutsideDates:true,firstDayOfWeek:1,rectSize:10,weekdaysLabelsWidth:30,monthsLabelsHeight:14,gap:1,rectRadius:2,fontSize:12,colors:["var(--heatmap-level-1)","var(--heatmap-level-2)","var(--heatmap-level-3)","var(--heatmap-level-4)"]};const Heatmap=(0,index_mjs_.factory)((_props,ref)=>{const props=(0,index_mjs_.useProps)("Heatmap",Heatmap_defaultProps,_props);const{classNames,className,style,styles,unstyled,vars,data,startDate,endDate,withMonthLabels,withWeekdayLabels,weekdayLabels,withOutsideDates,monthLabels,firstDayOfWeek,rectSize=10,gap=1,rectRadius,domain,colors,weekdaysLabelsWidth,monthsLabelsHeight,fontSize,getTooltipLabel,withTooltip,tooltipProps,getRectProps,splitMonths,attributes,...others}=props;const getStyles=(0,index_mjs_.useStyles)({name:"Heatmap",classes:Heatmap_module_css_classes,props,className,style,classNames,styles,unstyled,attributes,vars});const[hoveredRect,setHoveredRect]=(0,index_js_.useState)(null);const rectSizeWithGap=rectSize+gap;const weekdaysOffset=withWeekdayLabels?weekdaysLabelsWidth:0;const monthsOffset=withMonthLabels?monthsLabelsHeight:0;const[min,max]=getBoundaries({data,domain});const rotatedWeekdayLabels=(0,index_js_.useMemo)(()=>rotateWeekdaysNames(weekdayLabels,firstDayOfWeek),[weekdayLabels,firstDayOfWeek]);const datesRange=getDatesRange({startDate,endDate,withOutsideDates,firstDayOfWeek});const monthsRange=withMonthLabels||splitMonths?getMonthsRange(datesRange):[];const weeksProps={data,datesRange,rectSize,gap,rectRadius,min,max,colors,withTooltip,setHoveredRect,getRectProps,getStyles};const weeks=splitMonths?/* @__PURE__ */(0,jsx_runtime.jsx)(HeatmapSplitWeeks,{...weeksProps}):/* @__PURE__ */(0,jsx_runtime.jsx)(HeatmapWeeks,{...weeksProps});const totalColumns=splitMonths?getColumns(datesRange,splitMonths).length:datesRange.length;const computeMonthLabelX=(monthPosition,monthIndex)=>{if(!splitMonths)return monthPosition*rectSizeWithGap+gap+weekdaysOffset;const firstMonth=monthsRange[monthIndex];const columns=getColumns(datesRange,splitMonths);const i=getFirstMonthColumnIndex(columns,firstMonth.month);const base=i>=0?i:monthPosition;return(base+1)*rectSizeWithGap+gap+weekdaysOffset};const monthsLabelsNodes=withMonthLabels&&monthLabels?monthsRange.map((month,monthIndex)=>{const minSize=splitMonths?2:3;if(month.size<minSize)return null;const monthLabel=monthLabels[month.month];return/* @__PURE__ */(0,jsx_runtime.jsx)("text",{x:computeMonthLabelX(month.position,monthIndex),y:monthsLabelsHeight-4,width:month.size*rectSizeWithGap,fontSize,...getStyles("monthLabel"),children:monthLabel},monthIndex)}):null;const weekdayLabelsNodes=withWeekdayLabels&&weekdayLabels?rotatedWeekdayLabels.map((weekdayLabel,dayIndex)=>/* @__PURE__ */(0,jsx_runtime.jsx)("text",{x:0,y:(dayIndex+1)*rectSizeWithGap-gap+monthsOffset,width:weekdaysLabelsWidth,fontSize,...getStyles("weekdayLabel"),children:weekdayLabel},dayIndex)):null;const label=getTooltipLabel&&hoveredRect&&withTooltip?getTooltipLabel(hoveredRect):null;return/* @__PURE__ */(0,jsx_runtime.jsxs)(index_mjs_.Box,{component:"svg",ref,width:rectSizeWithGap*totalColumns+gap+weekdaysOffset,height:7*rectSizeWithGap+gap+monthsOffset,...getStyles("root"),...others,children:[/* @__PURE__ */(0,jsx_runtime.jsx)(index_mjs_.Tooltip.Floating,{label,disabled:!withTooltip||!label,position:"top",...tooltipProps,children:/* @__PURE__ */(0,jsx_runtime.jsxs)("g",{transform:`translate(${weekdaysOffset}, ${monthsOffset})`,"data-id":"all-weeks",children:[withTooltip&&/* @__PURE__ */(0,jsx_runtime.jsx)("rect",{fill:"transparent",width:rectSizeWithGap*totalColumns+gap,height:7*rectSizeWithGap+gap}),weeks]})}),weekdayLabelsNodes,monthsLabelsNodes]})});Heatmap.displayName="@mantine/charts/Heatmap";Heatmap.classes=Heatmap_module_css_classes}}]);
|
package/dist/mf/711.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 711.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis["chunk_integrations_app"]=globalThis["chunk_integrations_app"]||[]).push([["711"],{9698:function(__unused_webpack_module,exports){/**
|
|
3
|
-
* @license React
|
|
4
|
-
* react-jsx-runtime.production.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var REACT_ELEMENT_TYPE=Symbol.for("react.transitional.element"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment");function jsxProd(type,config,maybeKey){var key=null;void 0!==maybeKey&&(key=""+maybeKey);void 0!==config.key&&(key=""+config.key);if("key"in config){maybeKey={};for(var propName in config)"key"!==propName&&(maybeKey[propName]=config[propName])}else maybeKey=config;config=maybeKey.ref;return{$$typeof:REACT_ELEMENT_TYPE,type:type,key:key,ref:void 0!==config?config:null,props:maybeKey}}exports.Fragment=REACT_FRAGMENT_TYPE;exports.jsx=jsxProd;exports.jsxs=jsxProd},4848:function(module,__unused_webpack_exports,__webpack_require__){module.exports=__webpack_require__(9698)}}]);
|