@powerhousedao/connect 1.0.0-dev.201 → 1.0.0-dev.202

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.
Files changed (46) hide show
  1. package/dist/assets/{app-B4OFGo2O.js → app-DVu2OIYO.js} +5 -5
  2. package/dist/assets/{app-B4OFGo2O.js.map → app-DVu2OIYO.js.map} +1 -1
  3. package/dist/assets/{app-loader-Bfb1rJhE.js → app-loader-DqWwQ81E.js} +3 -3
  4. package/dist/assets/{app-loader-Bfb1rJhE.js.map → app-loader-DqWwQ81E.js.map} +1 -1
  5. package/dist/assets/{browser-CNIY9JaP.js → browser-Szk8zoDr.js} +2 -2
  6. package/dist/assets/{browser-CNIY9JaP.js.map → browser-Szk8zoDr.js.map} +1 -1
  7. package/dist/assets/{ccip-BVfRrR8h.js → ccip-7PoVR3HK.js} +2 -2
  8. package/dist/assets/{ccip-BVfRrR8h.js.map → ccip-7PoVR3HK.js.map} +1 -1
  9. package/dist/assets/content-DAx9dSD8.js +7 -0
  10. package/dist/assets/content-DAx9dSD8.js.map +1 -0
  11. package/dist/assets/{editor-Bo9Aijfe.js → editor-BSjQci3v.js} +2 -2
  12. package/dist/assets/{editor-Bo9Aijfe.js.map → editor-BSjQci3v.js.map} +1 -1
  13. package/dist/assets/{editor-BZo1P0Ae.js → editor-CD3DIxJK.js} +2 -2
  14. package/dist/assets/{editor-BZo1P0Ae.js.map → editor-CD3DIxJK.js.map} +1 -1
  15. package/dist/assets/{editor-8j593VN0.js → editor-CLU5aaxL.js} +2 -2
  16. package/dist/assets/{editor-8j593VN0.js.map → editor-CLU5aaxL.js.map} +1 -1
  17. package/dist/assets/{editor-ehywSkYm.js → editor-DzksqT6J.js} +2 -2
  18. package/dist/assets/{editor-ehywSkYm.js.map → editor-DzksqT6J.js.map} +1 -1
  19. package/dist/assets/editors-QFZAWtl0.js +3 -0
  20. package/dist/assets/{editors-DVl-l3r5.js.map → editors-QFZAWtl0.js.map} +1 -1
  21. package/dist/assets/{getEnsName-Cub4UekZ.js → getEnsName-CWy0aCA9.js} +4 -4
  22. package/dist/assets/{getEnsName-Cub4UekZ.js.map → getEnsName-CWy0aCA9.js.map} +1 -1
  23. package/dist/assets/{index-1TcnY8Is.js → index-Cfezsgfl.js} +2 -2
  24. package/dist/assets/{index-1TcnY8Is.js.map → index-Cfezsgfl.js.map} +1 -1
  25. package/dist/assets/{index-BEgT5b-5.js → index-CuqBG-XH.js} +3 -3
  26. package/dist/assets/{index-BEgT5b-5.js.map → index-CuqBG-XH.js.map} +1 -1
  27. package/dist/assets/{isAddressEqual-BPfaWlY1.js → isAddressEqual-7_-I3JPu.js} +2 -2
  28. package/dist/assets/{isAddressEqual-BPfaWlY1.js.map → isAddressEqual-7_-I3JPu.js.map} +1 -1
  29. package/dist/assets/{json-D0_QOK7W.js → json-BK2P0vCl.js} +3 -3
  30. package/dist/assets/{json-D0_QOK7W.js.map → json-BK2P0vCl.js.map} +1 -1
  31. package/dist/assets/{main.VYW2kwWP.js → main.CqyrPdgE.js} +2 -2
  32. package/dist/assets/{main.VYW2kwWP.js.map → main.CqyrPdgE.js.map} +1 -1
  33. package/dist/assets/{react-error-boundary.esm-qNZlhEqp.js → react-error-boundary.esm-BQ1o-seO.js} +2 -2
  34. package/dist/assets/{react-error-boundary.esm-qNZlhEqp.js.map → react-error-boundary.esm-BQ1o-seO.js.map} +1 -1
  35. package/dist/assets/{root-jEsJBgjx.js → root-CAjjh02O.js} +2 -2
  36. package/dist/assets/{root-jEsJBgjx.js.map → root-CAjjh02O.js.map} +1 -1
  37. package/dist/assets/{router-BXAzgRkG.js → router-BEJNE1RL.js} +4 -4
  38. package/dist/assets/{router-BXAzgRkG.js.map → router-BEJNE1RL.js.map} +1 -1
  39. package/dist/index.html +3 -3
  40. package/dist/service-worker.js +1 -1
  41. package/dist/swEnv.js +2 -2
  42. package/dist/vite-envs.sh +5 -5
  43. package/package.json +8 -8
  44. package/dist/assets/content-XRS-E3Xz.js +0 -7
  45. package/dist/assets/content-XRS-E3Xz.js.map +0 -1
  46. package/dist/assets/editors-DVl-l3r5.js +0 -3
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-1TcnY8Is.js","assets/main.VYW2kwWP.js","assets/app-loader-Bfb1rJhE.js","assets/app-loader-CcY7cVzc.css","assets/browser-CNIY9JaP.js","assets/getEnsName-Cub4UekZ.js","assets/isAddressEqual-BPfaWlY1.js","assets/router-BXAzgRkG.js","assets/PeopleFill-DQQdtDDe.js"])))=>i.map(i=>d[i]);
2
- var i$=Object.defineProperty;var A0=t=>{throw TypeError(t)};var s$=(t,e,n)=>e in t?i$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var qe=(t,e,n)=>s$(t,typeof e!="symbol"?e+"":e,n),qy=(t,e,n)=>e.has(t)||A0("Cannot "+n);var de=(t,e,n)=>(qy(t,e,"read from private field"),n?n.call(t):e.get(t)),It=(t,e,n)=>e.has(t)?A0("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),bt=(t,e,n,r)=>(qy(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),un=(t,e,n)=>(qy(t,e,"access private method"),n);var Ap=(t,e,n,r)=>({set _(i){bt(t,e,i,n)},get _(){return de(t,e,r)}});import{_ as xe}from"./main.VYW2kwWP.js";import{jsx as T,jsxs as _e,Fragment as Zo}from"react/jsx-runtime";import*as k from"react";import Ae,{createElement as qa,isValidElement as gs,cloneElement as rm,Children as o$,createContext as fu,useContext as da,useState as Qe,useRef as hn,useEffect as jt,useLayoutEffect as Kf,useCallback as Te,useMemo as En,Suspense as dC,lazy as a$,forwardRef as fa,Component as c$,Fragment as hb,useId as l$,useSyncExternalStore as u$,useReducer as d$,useDebugValue as f$}from"react";import{g as fC,a as fw,o as Js,s as $l,n as to,L as im,c as Ai,b as Np,p as p$,t as h$}from"./app-loader-Bfb1rJhE.js";import*as pC from"react-dom";import m$,{createPortal as g$}from"react-dom";function y$(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}function ut(){return ut=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ut.apply(null,arguments)}var dr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pa(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Qpe(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var v$={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};const b$=pa(v$);var _$=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function N0(t){var e={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=t.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(e.name=n[1],(b$[n[1]]||t.charAt(t.length-2)==="/")&&(e.voidElement=!0),e.name.startsWith("!--"))){var r=t.indexOf("-->");return{type:"comment",comment:r!==-1?t.slice(4,r):""}}for(var i=new RegExp(_$),s=null;(s=i.exec(t))!==null;)if(s[0].trim())if(s[1]){var o=s[1].trim(),a=[o,""];o.indexOf("=")>-1&&(a=o.split("=")),e.attrs[a[0]]=a[1],i.lastIndex--}else s[2]&&(e.attrs[s[2]]=s[3].trim().substring(1,s[3].length-1));return e}var w$=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,E$=/^\s*$/,S$=Object.create(null);function hC(t,e){switch(e.type){case"text":return t+e.content;case"tag":return t+="<"+e.name+(e.attrs?function(n){var r=[];for(var i in n)r.push(i+'="'+n[i]+'"');return r.length?" "+r.join(" "):""}(e.attrs):"")+(e.voidElement?"/>":">"),e.voidElement?t:t+e.children.reduce(hC,"")+"</"+e.name+">";case"comment":return t+"<!--"+e.comment+"-->"}}var x$={parse:function(t,e){e||(e={}),e.components||(e.components=S$);var n,r=[],i=[],s=-1,o=!1;if(t.indexOf("<")!==0){var a=t.indexOf("<");r.push({type:"text",content:a===-1?t:t.substring(0,a)})}return t.replace(w$,function(c,l){if(o){if(c!=="</"+n.name+">")return;o=!1}var u,d=c.charAt(1)!=="/",f=c.startsWith("<!--"),p=l+c.length,m=t.charAt(p);if(f){var h=N0(c);return s<0?(r.push(h),r):((u=i[s]).children.push(h),r)}if(d&&(s++,(n=N0(c)).type==="tag"&&e.components[n.name]&&(n.type="component",o=!0),n.voidElement||o||!m||m==="<"||n.children.push({type:"text",content:t.slice(p,t.indexOf("<",p))}),s===0&&r.push(n),(u=i[s-1])&&u.children.push(n),i[s]=n),(!d||n.voidElement)&&(s>-1&&(n.voidElement||n.name===c.slice(2,-1))&&(s--,n=s===-1?r:i[s]),!o&&m!=="<"&&m)){u=s===-1?r:i[s].children;var g=t.indexOf("<",p),y=t.slice(p,g===-1?void 0:g);E$.test(y)&&(y=" "),(g>-1&&s+u.length>=0||y!==" ")&&u.push({type:"text",content:y})}}),r},stringify:function(t){return t.reduce(function(e,n){return e+hC("",n)},"")}};function Ch(){if(console&&console.warn){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];typeof e[0]=="string"&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e)}}const P0={};function sm(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];typeof e[0]=="string"&&P0[e[0]]||(typeof e[0]=="string"&&(P0[e[0]]=new Date),Ch(...e))}const mC=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}};function M0(t,e,n){t.loadNamespaces(e,mC(t,n))}function L0(t,e,n,r){typeof n=="string"&&(n=[n]),n.forEach(i=>{t.options.ns.indexOf(i)<0&&t.options.ns.push(i)}),t.loadLanguages(e,mC(t,r))}function T$(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=e.languages[0],i=e.options?e.options.fallbackLng:!1,s=e.languages[e.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(a,c)=>{const l=e.services.backendConnector.state[`${a}|${c}`];return l===-1||l===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!o(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(r,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||o(r,t)&&(!i||o(s,t)))}function I$(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!e.languages||!e.languages.length?(sm("i18n.languages were undefined or empty",e.languages),!0):e.options.ignoreJSONStructure!==void 0?e.hasLoadedNamespace(t,{lng:n.lng,precheck:(i,s)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!s(i.isLanguageChangingTo,t))return!1}}):T$(t,e,n)}function Gy(t,e){if(!t)return!1;const n=t.props?t.props.children:t.children;return e?n.length>0:!!n}function Zy(t){if(!t)return[];const e=t.props?t.props.children:t.children;return t.props&&t.props.i18nIsDynamicList?cl(e):e}function O$(t){return Object.prototype.toString.call(t)!=="[object Array]"?!1:t.every(e=>gs(e))}function cl(t){return Array.isArray(t)?t:[t]}function C$(t,e){const n={...e};return n.props=Object.assign(t.props,e.props),n}function gC(t,e){if(!t)return"";let n="";const r=cl(t),i=e.transSupportBasicHtmlNodes&&e.transKeepBasicHtmlNodesFor?e.transKeepBasicHtmlNodesFor:[];return r.forEach((s,o)=>{if(typeof s=="string")n+=`${s}`;else if(gs(s)){const a=Object.keys(s.props).length,c=i.indexOf(s.type)>-1,l=s.props.children;if(!l&&c&&a===0)n+=`<${s.type}/>`;else if(!l&&(!c||a!==0))n+=`<${o}></${o}>`;else if(s.props.i18nIsDynamicList)n+=`<${o}></${o}>`;else if(c&&a===1&&typeof l=="string")n+=`<${s.type}>${l}</${s.type}>`;else{const u=gC(l,e);n+=`<${o}>${u}</${o}>`}}else if(s===null)Ch("Trans: the passed in value is invalid - seems you passed in a null child.");else if(typeof s=="object"){const{format:a,...c}=s,l=Object.keys(c);if(l.length===1){const u=a?`${l[0]}, ${a}`:l[0];n+=`{{${u}}}`}else Ch("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",s)}else Ch("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",s)}),n}function R$(t,e,n,r,i,s){if(e==="")return[];const o=r.transKeepBasicHtmlNodesFor||[],a=e&&new RegExp(o.map(g=>`<${g}`).join("|")).test(e);if(!t&&!a&&!s)return[e];const c={};function l(g){cl(g).forEach(v=>{typeof v!="string"&&(Gy(v)?l(Zy(v)):typeof v=="object"&&!gs(v)&&Object.assign(c,v))})}l(t);const u=x$.parse(`<0>${e}</0>`),d={...c,...i};function f(g,y,v){const b=Zy(g),E=m(b,y.children,v);return O$(b)&&E.length===0||g.props&&g.props.i18nIsDynamicList?b:E}function p(g,y,v,b,E){g.dummy?(g.children=y,v.push(rm(g,{key:b},E?void 0:y))):v.push(...o$.map([g],w=>{const S={...w.props};return delete S.i18nIsDynamicList,Ae.createElement(w.type,ut({},S,{key:b,ref:w.ref},E?{}:{children:y}))}))}function m(g,y,v){const b=cl(g);return cl(y).reduce((w,S,_)=>{const O=S.children&&S.children[0]&&S.children[0].content&&n.services.interpolator.interpolate(S.children[0].content,d,n.language);if(S.type==="tag"){let M=b[parseInt(S.name,10)];v.length===1&&!M&&(M=v[0][S.name]),M||(M={});const F=Object.keys(S.attrs).length!==0?C$({props:S.attrs},M):M,q=gs(F),I=q&&Gy(S,!0)&&!S.voidElement,$=a&&typeof F=="object"&&F.dummy&&!q,x=typeof t=="object"&&t!==null&&Object.hasOwnProperty.call(t,S.name);if(typeof F=="string"){const A=n.services.interpolator.interpolate(F,d,n.language);w.push(A)}else if(Gy(F)||I){const A=f(F,S,v);p(F,A,w,_)}else if($){const A=m(b,S.children,v);p(F,A,w,_)}else if(Number.isNaN(parseFloat(S.name)))if(x){const A=f(F,S,v);p(F,A,w,_,S.voidElement)}else if(r.transSupportBasicHtmlNodes&&o.indexOf(S.name)>-1)if(S.voidElement)w.push(qa(S.name,{key:`${S.name}-${_}`}));else{const A=m(b,S.children,v);w.push(qa(S.name,{key:`${S.name}-${_}`},A))}else if(S.voidElement)w.push(`<${S.name} />`);else{const A=m(b,S.children,v);w.push(`<${S.name}>${A}</${S.name}>`)}else if(typeof F=="object"&&!q){const A=S.children[0]?O:null;A&&w.push(A)}else p(F,O,w,_,S.children.length!==1||!O)}else if(S.type==="text"){const M=r.transWrapTextNodes,F=s?r.unescape(n.services.interpolator.interpolate(S.content,d,n.language)):n.services.interpolator.interpolate(S.content,d,n.language);M?w.push(qa(M,{key:`${S.name}-${_}`},F)):w.push(F)}return w},[])}const h=m([{dummy:!0,children:t||[]}],u,cl(t||[]));return Zy(h[0])}function D$(t){let{children:e,count:n,parent:r,i18nKey:i,context:s,tOptions:o={},values:a,defaults:c,components:l,ns:u,i18n:d,t:f,shouldUnescape:p,...m}=t;const h=d||fw();if(!h)return sm("You will need to pass in an i18next instance by using i18nextReactModule"),e;const g=f||h.t.bind(h)||(I=>I);s&&(o.context=s);const y={...fC(),...h.options&&h.options.react};let v=u||g.ns||h.options&&h.options.defaultNS;v=typeof v=="string"?[v]:v||["translation"];const b=gC(e,y),E=c||b||y.transEmptyNodeValue||i,{hashTransKey:w}=y,S=i||(w?w(b||E):b||E);h.options&&h.options.interpolation&&h.options.interpolation.defaultVariables&&(a=a&&Object.keys(a).length>0?{...a,...h.options.interpolation.defaultVariables}:{...h.options.interpolation.defaultVariables});const _=a?o.interpolation:{interpolation:{...o.interpolation,prefix:"#$?",suffix:"?$#"}},O={...o,count:n,...a,..._,defaultValue:E,ns:v},M=S?g(S,O):E;l&&Object.keys(l).forEach(I=>{const $=l[I];if(typeof $.type=="function"||!$.props||!$.props.children||M.indexOf(`${I}/>`)<0&&M.indexOf(`${I} />`)<0)return;function x(){return Ae.createElement(Ae.Fragment,null,$)}l[I]=Ae.createElement(x,null)});const F=R$(l||e,M,h,y,O,p),q=r!==void 0?r:y.defaultTransParent;return q?qa(q,m,F):F}const yC=fu();class k${constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function vC(t){let{children:e,count:n,parent:r,i18nKey:i,context:s,tOptions:o={},values:a,defaults:c,components:l,ns:u,i18n:d,t:f,shouldUnescape:p,...m}=t;const{i18n:h,defaultNS:g}=da(yC)||{},y=d||h||fw(),v=f||y&&y.t.bind(y);return D$({children:e,count:n,parent:r,i18nKey:i,context:s,tOptions:o,values:a,defaults:c,components:l,ns:u||v&&v.ns||g||y&&y.options&&y.options.defaultNS,i18n:y,t:f,shouldUnescape:p,...m})}const A$=(t,e)=>{const n=hn();return jt(()=>{n.current=t},[t,e]),n.current};function ha(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=e,{i18n:r,defaultNS:i}=da(yC)||{},s=n||r||fw();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new k$),!s){sm("You will need to pass in an i18next instance by using initReactI18next");const b=(w,S)=>typeof S=="string"?S:S&&typeof S=="object"&&typeof S.defaultValue=="string"?S.defaultValue:Array.isArray(w)?w[w.length-1]:w,E=[b,{},!1];return E.t=b,E.i18n={},E.ready=!1,E}s.options.react&&s.options.react.wait!==void 0&&sm("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...fC(),...s.options.react,...e},{useSuspense:a,keyPrefix:c}=o;let l=i||s.options&&s.options.defaultNS;l=typeof l=="string"?[l]:l||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(l);const u=(s.isInitialized||s.initializedStoreOnce)&&l.every(b=>I$(b,s,o));function d(){return s.getFixedT(e.lng||null,o.nsMode==="fallback"?l:l[0],c)}const[f,p]=Qe(d);let m=l.join();e.lng&&(m=`${e.lng}${m}`);const h=A$(m),g=hn(!0);jt(()=>{const{bindI18n:b,bindI18nStore:E}=o;g.current=!0,!u&&!a&&(e.lng?L0(s,e.lng,l,()=>{g.current&&p(d)}):M0(s,l,()=>{g.current&&p(d)})),u&&h&&h!==m&&g.current&&p(d);function w(){g.current&&p(d)}return b&&s&&s.on(b,w),E&&s&&s.store.on(E,w),()=>{g.current=!1,b&&s&&b.split(" ").forEach(S=>s.off(S,w)),E&&s&&E.split(" ").forEach(S=>s.store.off(S,w))}},[s,m]);const y=hn(!0);jt(()=>{g.current&&!y.current&&p(d),y.current=!1},[s,c]);const v=[f,s,u];if(v.t=f,v.i18n=s,v.ready=u,u||!u&&!a)return v;throw new Promise(b=>{e.lng?L0(s,e.lng,l,()=>b()):M0(s,l,()=>b())})}function N$(t){return t?typeof t=="number"?{width:t.toString()+"px",height:t.toString()+"px"}:{width:t,height:t}:{}}const pw="-",P$=t=>{const e=L$(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:o=>{const a=o.split(pw);return a[0]===""&&a.length!==1&&a.shift(),bC(a,e)||M$(o)},getConflictingClassGroupIds:(o,a)=>{const c=n[o]||[];return a&&r[o]?[...c,...r[o]]:c}}},bC=(t,e)=>{var o;if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),i=r?bC(t.slice(1),r):void 0;if(i)return i;if(e.validators.length===0)return;const s=t.join(pw);return(o=e.validators.find(({validator:a})=>a(s)))==null?void 0:o.classGroupId},F0=/^\[(.+)\]$/,M$=t=>{if(F0.test(t)){const e=F0.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},L$=t=>{const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return $$(Object.entries(t.classGroups),n).forEach(([s,o])=>{mb(o,r,s,e)}),r},mb=(t,e,n,r)=>{t.forEach(i=>{if(typeof i=="string"){const s=i===""?e:$0(e,i);s.classGroupId=n;return}if(typeof i=="function"){if(F$(i)){mb(i(r),e,n,r);return}e.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,o])=>{mb(o,$0(e,s),n,r)})})},$0=(t,e)=>{let n=t;return e.split(pw).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},F$=t=>t.isThemeGetter,$$=(t,e)=>e?t.map(([n,r])=>{const i=r.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,a])=>[e+o,a])):s);return[n,i]}):t,j$=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;const i=(s,o)=>{n.set(s,o),e++,e>t&&(e=0,r=n,n=new Map)};return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return i(s,o),o},set(s,o){n.has(s)?n.set(s,o):i(s,o)}}},_C="!",U$=t=>{const{separator:e,experimentalParseClassName:n}=t,r=e.length===1,i=e[0],s=e.length,o=a=>{const c=[];let l=0,u=0,d;for(let g=0;g<a.length;g++){let y=a[g];if(l===0){if(y===i&&(r||a.slice(g,g+s)===e)){c.push(a.slice(u,g)),u=g+s;continue}if(y==="/"){d=g;continue}}y==="["?l++:y==="]"&&l--}const f=c.length===0?a:a.substring(u),p=f.startsWith(_C),m=p?f.substring(1):f,h=d&&d>u?d-u:void 0;return{modifiers:c,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:h}};return n?a=>n({className:a,parseClassName:o}):o},B$=t=>{if(t.length<=1)return t;const e=[];let n=[];return t.forEach(r=>{r[0]==="["?(e.push(...n.sort(),r),n=[]):n.push(r)}),e.push(...n.sort()),e},z$=t=>({cache:j$(t.cacheSize),parseClassName:U$(t),...P$(t)}),V$=/\s+/,H$=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=e,s=[],o=t.trim().split(V$);let a="";for(let c=o.length-1;c>=0;c-=1){const l=o[c],{modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(l);let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){a=l+(a.length>0?" "+a:a);continue}if(h=r(f),!h){a=l+(a.length>0?" "+a:a);continue}m=!1}const g=B$(u).join(":"),y=d?g+_C:g,v=y+h;if(s.includes(v))continue;s.push(v);const b=i(h,m);for(let E=0;E<b.length;++E){const w=b[E];s.push(y+w)}a=l+(a.length>0?" "+a:a)}return a};function Jf(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=wC(e))&&(r&&(r+=" "),r+=n);return r}const wC=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=wC(t[r]))&&(n&&(n+=" "),n+=e);return n};function W$(t,...e){let n,r,i,s=o;function o(c){const l=e.reduce((u,d)=>d(u),t());return n=z$(l),r=n.cache.get,i=n.cache.set,s=a,a(c)}function a(c){const l=r(c);if(l)return l;const u=H$(c,n);return i(c,u),u}return function(){return s(Jf.apply(null,arguments))}}const mn=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},EC=/^\[(?:([a-z-]+):)?(.+)\]$/i,q$=/^\d+\/\d+$/,G$=new Set(["px","full","screen"]),Z$=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Y$=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,K$=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,J$=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,X$=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ls=t=>ml(t)||G$.has(t)||q$.test(t),wo=t=>pu(t,"length",oj),ml=t=>!!t&&!Number.isNaN(Number(t)),Yy=t=>pu(t,"number",ml),Pu=t=>!!t&&Number.isInteger(Number(t)),Q$=t=>t.endsWith("%")&&ml(t.slice(0,-1)),xt=t=>EC.test(t),Eo=t=>Z$.test(t),ej=new Set(["length","size","percentage"]),tj=t=>pu(t,ej,SC),nj=t=>pu(t,"position",SC),rj=new Set(["image","url"]),ij=t=>pu(t,rj,cj),sj=t=>pu(t,"",aj),Mu=()=>!0,pu=(t,e,n)=>{const r=EC.exec(t);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):n(r[2]):!1},oj=t=>Y$.test(t)&&!K$.test(t),SC=()=>!1,aj=t=>J$.test(t),cj=t=>X$.test(t),lj=()=>{const t=mn("colors"),e=mn("spacing"),n=mn("blur"),r=mn("brightness"),i=mn("borderColor"),s=mn("borderRadius"),o=mn("borderSpacing"),a=mn("borderWidth"),c=mn("contrast"),l=mn("grayscale"),u=mn("hueRotate"),d=mn("invert"),f=mn("gap"),p=mn("gradientColorStops"),m=mn("gradientColorStopPositions"),h=mn("inset"),g=mn("margin"),y=mn("opacity"),v=mn("padding"),b=mn("saturate"),E=mn("scale"),w=mn("sepia"),S=mn("skew"),_=mn("space"),O=mn("translate"),M=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto",xt,e],I=()=>[xt,e],$=()=>["",Ls,wo],x=()=>["auto",ml,xt],A=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],P=()=>["solid","dashed","dotted","double","none"],B=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>["start","end","center","between","around","evenly","stretch"],L=()=>["","0",xt],G=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>[ml,xt];return{cacheSize:500,separator:":",theme:{colors:[Mu],spacing:[Ls,wo],blur:["none","",Eo,xt],brightness:U(),borderColor:[t],borderRadius:["none","","full",Eo,xt],borderSpacing:I(),borderWidth:$(),contrast:U(),grayscale:L(),hueRotate:U(),invert:L(),gap:I(),gradientColorStops:[t],gradientColorStopPositions:[Q$,wo],inset:q(),margin:q(),opacity:U(),padding:I(),saturate:U(),scale:U(),sepia:L(),skew:U(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",xt]}],container:["container"],columns:[{columns:[Eo]}],"break-after":[{"break-after":G()}],"break-before":[{"break-before":G()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...A(),xt]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Pu,xt]}],basis:[{basis:q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",xt]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",Pu,xt]}],"grid-cols":[{"grid-cols":[Mu]}],"col-start-end":[{col:["auto",{span:["full",Pu,xt]},xt]}],"col-start":[{"col-start":x()}],"col-end":[{"col-end":x()}],"grid-rows":[{"grid-rows":[Mu]}],"row-start-end":[{row:["auto",{span:[Pu,xt]},xt]}],"row-start":[{"row-start":x()}],"row-end":[{"row-end":x()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",xt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",xt]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...J()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...J(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...J(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",xt,e]}],"min-w":[{"min-w":[xt,e,"min","max","fit"]}],"max-w":[{"max-w":[xt,e,"none","full","min","max","fit","prose",{screen:[Eo]},Eo]}],h:[{h:[xt,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[xt,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[xt,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[xt,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Eo,wo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Yy]}],"font-family":[{font:[Mu]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",xt]}],"line-clamp":[{"line-clamp":["none",ml,Yy]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ls,xt]}],"list-image":[{"list-image":["none",xt]}],"list-style-type":[{list:["none","disc","decimal",xt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...P(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ls,wo]}],"underline-offset":[{"underline-offset":["auto",Ls,xt]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",xt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...A(),nj]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",tj]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ij]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...P(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:P()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...P()]}],"outline-offset":[{"outline-offset":[Ls,xt]}],"outline-w":[{outline:[Ls,wo]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Ls,wo]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Eo,sj]}],"shadow-color":[{shadow:[Mu]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...B(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":B()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Eo,xt]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",xt]}],duration:[{duration:U()}],ease:[{ease:["linear","in","out","in-out",xt]}],delay:[{delay:U()}],animate:[{animate:["none","spin","ping","pulse","bounce",xt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[Pu,xt]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",xt]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",xt]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",xt]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[Ls,wo,Yy]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},St=W$(lj);var uj="Expected a function",j0=NaN,dj="[object Symbol]",fj=/^\s+|\s+$/g,pj=/^[-+]0x[0-9a-f]+$/i,hj=/^0b[01]+$/i,mj=/^0o[0-7]+$/i,gj=parseInt,yj=typeof dr=="object"&&dr&&dr.Object===Object&&dr,vj=typeof self=="object"&&self&&self.Object===Object&&self,bj=yj||vj||Function("return this")(),_j=Object.prototype,wj=_j.toString,Ej=Math.max,Sj=Math.min,Ky=function(){return bj.Date.now()};function xj(t,e,n){var r,i,s,o,a,c,l=0,u=!1,d=!1,f=!0;if(typeof t!="function")throw new TypeError(uj);e=U0(e)||0,gb(n)&&(u=!!n.leading,d="maxWait"in n,s=d?Ej(U0(n.maxWait)||0,e):s,f="trailing"in n?!!n.trailing:f);function p(S){var _=r,O=i;return r=i=void 0,l=S,o=t.apply(O,_),o}function m(S){return l=S,a=setTimeout(y,e),u?p(S):o}function h(S){var _=S-c,O=S-l,M=e-_;return d?Sj(M,s-O):M}function g(S){var _=S-c,O=S-l;return c===void 0||_>=e||_<0||d&&O>=s}function y(){var S=Ky();if(g(S))return v(S);a=setTimeout(y,h(S))}function v(S){return a=void 0,f&&r?p(S):(r=i=void 0,o)}function b(){a!==void 0&&clearTimeout(a),l=0,r=c=i=a=void 0}function E(){return a===void 0?o:v(Ky())}function w(){var S=Ky(),_=g(S);if(r=arguments,i=this,c=S,_){if(a===void 0)return m(c);if(d)return a=setTimeout(y,e),p(c)}return a===void 0&&(a=setTimeout(y,e)),o}return w.cancel=b,w.flush=E,w}function gb(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function Tj(t){return!!t&&typeof t=="object"}function Ij(t){return typeof t=="symbol"||Tj(t)&&wj.call(t)==dj}function U0(t){if(typeof t=="number")return t;if(Ij(t))return j0;if(gb(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=gb(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(fj,"");var n=hj.test(t);return n||mj.test(t)?gj(t.slice(2),n?2:8):pj.test(t)?j0:+t}var Oj=xj;const B0=pa(Oj);var Cj=typeof window<"u"?Kf:jt;function Rj(t,e,n,r){const i=hn(e);Cj(()=>{i.current=e},[e]),jt(()=>{const s=window;if(!(s&&s.addEventListener))return;const o=a=>{i.current(a)};return s.addEventListener(t,o,r),()=>{s.removeEventListener(t,o,r)}},[t,n,r])}function ehe(){const[t,e]=Qe(null),n=Te(async r=>{if(!(navigator!=null&&navigator.clipboard))return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(r),e(r),!0}catch(i){return console.warn("Copy failed",i),e(null),!1}},[]);return[t,n]}function Dj(t){const e=hn(t);e.current=t,jt(()=>()=>{e.current()},[])}function kj(t,e=500,n){const r=hn();Dj(()=>{r.current&&r.current.cancel()});const i=En(()=>{const s=B0(t,e,n),o=(...a)=>s(...a);return o.cancel=()=>{s.cancel()},o.isPending=()=>!!r.current,o.flush=()=>s.flush(),o},[t,e,n]);return jt(()=>{r.current=B0(t,e,n)},[t,e,n]),i}function Aj(t,e,n){const r=(l,u)=>l===u,i=t instanceof Function?t():t,[s,o]=Qe(i),a=hn(i),c=kj(o,e,n);return r(a.current,i)||(c(i),a.current=i),[s,c]}function the(t,e,n="mousedown",r={}){Rj(n,i=>{const s=i.target;if(!s||!s.isConnected)return;(Array.isArray(t)?t.filter(a=>!!a.current).every(a=>a.current&&!a.current.contains(s)):t.current&&!t.current.contains(s))&&e(i)},void 0,r)}const Nj=(t,e,n)=>{const r=t[e];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((i,s)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(s.bind(null,new Error("Unknown variable dynamic import: "+e+(e.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))})};function Pj(t){return T("div",{style:{width:t.width,height:t.height}})}function Mj(t){try{return a$(()=>Nj(Object.assign({"../../../assets/icon-components/ArrowFilledRight.tsx":()=>xe(()=>import("./ArrowFilledRight-BXP1j8Cl.js"),[]),"../../../assets/icon-components/ArrowLeft.tsx":()=>xe(()=>import("./ArrowLeft-8ZR_YHAJ.js"),[]),"../../../assets/icon-components/ArrowUp.tsx":()=>xe(()=>import("./ArrowUp-E2jS6Wzt.js"),[]),"../../../assets/icon-components/BarChart.tsx":()=>xe(()=>import("./BarChart-C-E6t7dt.js"),[]),"../../../assets/icon-components/BaseArrowLeft.tsx":()=>xe(()=>import("./BaseArrowLeft-DtHrkTW4.js"),[]),"../../../assets/icon-components/BaseArrowRight.tsx":()=>xe(()=>import("./BaseArrowRight-BIwzFHnh.js"),[]),"../../../assets/icon-components/Braces.tsx":()=>xe(()=>import("./Braces-3LcexUsR.js"),[]),"../../../assets/icon-components/Branch.tsx":()=>xe(()=>import("./Branch-D0CssEh3.js"),[]),"../../../assets/icon-components/BrickGlobe.tsx":()=>xe(()=>import("./BrickGlobe-CdHw7ZVP.js"),[]),"../../../assets/icon-components/Briefcase.tsx":()=>xe(()=>import("./Briefcase-CV2bgnSj.js"),[]),"../../../assets/icon-components/Calendar.tsx":()=>xe(()=>import("./Calendar-DuXN-sPt.js"),[]),"../../../assets/icon-components/CalendarTime.tsx":()=>xe(()=>import("./CalendarTime-BowYBiVM.js"),[]),"../../../assets/icon-components/Caret.tsx":()=>xe(()=>import("./Caret-r16V7Hcs.js"),[]),"../../../assets/icon-components/CaretDown.tsx":()=>xe(()=>import("./CaretDown-DljrBfIz.js"),[]),"../../../assets/icon-components/CaretLeft.tsx":()=>xe(()=>import("./CaretLeft-B_Lzd_Rn.js"),[]),"../../../assets/icon-components/CaretRight.tsx":()=>xe(()=>import("./CaretRight-Bbz5nCpg.js"),[]),"../../../assets/icon-components/CaretSort.tsx":()=>xe(()=>import("./CaretSort-DSgBum1h.js"),[]),"../../../assets/icon-components/Check.tsx":()=>xe(()=>import("./Check-CbV9BYHY.js"),[]),"../../../assets/icon-components/CheckCircle.tsx":()=>xe(()=>import("./CheckCircle-CX2jIKoF.js"),[]),"../../../assets/icon-components/CheckCircleFill.tsx":()=>xe(()=>import("./CheckCircleFill-DLK12sW5.js"),[]),"../../../assets/icon-components/Checkmark.tsx":()=>xe(()=>import("./Checkmark-DBvUEZAd.js"),[]),"../../../assets/icon-components/ChevronDown.tsx":()=>xe(()=>import("./ChevronDown-eUsCPXcB.js"),[]),"../../../assets/icon-components/Circle.tsx":()=>xe(()=>import("./Circle-8dOehHQf.js"),[]),"../../../assets/icon-components/CircleInfo.tsx":()=>xe(()=>import("./CircleInfo-D0ktZDko.js"),[]),"../../../assets/icon-components/Clock.tsx":()=>xe(()=>import("./Clock-CudavWaE.js"),[]),"../../../assets/icon-components/ClockFill.tsx":()=>xe(()=>import("./ClockFill-yWs52y_e.js"),[]),"../../../assets/icon-components/CloudSlash.tsx":()=>xe(()=>import("./CloudSlash-D18Hl3VW.js"),[]),"../../../assets/icon-components/Collapse.tsx":()=>xe(()=>import("./Collapse-BOxZH5-e.js"),[]),"../../../assets/icon-components/Connect.tsx":()=>xe(()=>import("./Connect-laqJZT3s.js"),[]),"../../../assets/icon-components/Copy.tsx":()=>xe(()=>import("./Copy-CkOtWZ6m.js"),[]),"../../../assets/icon-components/CrossCircle.tsx":()=>xe(()=>import("./CrossCircle-Bp9diEe9.js"),[]),"../../../assets/icon-components/Danger.tsx":()=>xe(()=>import("./Danger-CLu7nxgz.js"),[]),"../../../assets/icon-components/Discord.tsx":()=>xe(()=>import("./Discord-CcPWRT8g.js"),[]),"../../../assets/icon-components/Drive.tsx":()=>xe(()=>import("./Drive-CzahDx9j.js"),[]),"../../../assets/icon-components/Edit.tsx":()=>xe(()=>import("./Edit-D9GlgGu8.js"),[]),"../../../assets/icon-components/Ellipsis.tsx":()=>xe(()=>import("./Ellipsis-DWNUJYUI.js"),[]),"../../../assets/icon-components/Error.tsx":()=>xe(()=>import("./Error-FBAhqFT5.js"),[]),"../../../assets/icon-components/Exclamation.tsx":()=>xe(()=>import("./Exclamation-BGFGsVRw.js"),[]),"../../../assets/icon-components/File.tsx":()=>xe(()=>import("./File-DWKl25DR.js"),[]),"../../../assets/icon-components/FilesEarmark.tsx":()=>xe(()=>import("./FilesEarmark-BTL53WSf.js"),[]),"../../../assets/icon-components/FolderClose.tsx":()=>xe(()=>import("./FolderClose-BVMKeKvW.js"),[]),"../../../assets/icon-components/FolderOpen.tsx":()=>xe(()=>import("./FolderOpen-DT55_X9N.js"),[]),"../../../assets/icon-components/FolderPlus.tsx":()=>xe(()=>import("./FolderPlus-C2G5PVs-.js"),[]),"../../../assets/icon-components/Forum.tsx":()=>xe(()=>import("./Forum-Cfgyizyn.js"),[]),"../../../assets/icon-components/Gear.tsx":()=>xe(()=>import("./Gear-CoQ9O06k.js"),[]),"../../../assets/icon-components/Github.tsx":()=>xe(()=>import("./Github-CjkZIHCO.js"),[]),"../../../assets/icon-components/Globe.tsx":()=>xe(()=>import("./Globe-Dy2otZRk.js"),[]),"../../../assets/icon-components/GlobeWww.tsx":()=>xe(()=>import("./GlobeWww-Ci7aa5CE.js"),[]),"../../../assets/icon-components/Hdd.tsx":()=>xe(()=>import("./Hdd-CP-hFB7d.js"),[]),"../../../assets/icon-components/History.tsx":()=>xe(()=>import("./History-CmOiP5qa.js"),[]),"../../../assets/icon-components/InfoSquare.tsx":()=>xe(()=>import("./InfoSquare-DbYZrwmg.js"),[]),"../../../assets/icon-components/Link.tsx":()=>xe(()=>import("./Link-CXIVQOz6.js"),[]),"../../../assets/icon-components/Linkedin.tsx":()=>xe(()=>import("./Linkedin-exhl1yGN.js"),[]),"../../../assets/icon-components/Lock.tsx":()=>xe(()=>import("./Lock-DWdDRi_O.js"),[]),"../../../assets/icon-components/M.tsx":()=>xe(()=>import("./M-ByQIo8bX.js"),[]),"../../../assets/icon-components/PackageManager.tsx":()=>xe(()=>import("./PackageManager-D6Ia8zHs.js"),[]),"../../../assets/icon-components/Pencil.tsx":()=>xe(()=>import("./Pencil-D830iveq.js"),[]),"../../../assets/icon-components/People.tsx":()=>xe(()=>import("./People-B1tewG8c.js"),[]),"../../../assets/icon-components/PeopleFill.tsx":()=>xe(()=>import("./PeopleFill-DQQdtDDe.js"),[]),"../../../assets/icon-components/Person.tsx":()=>xe(()=>import("./Person-BPRmm67U.js"),[]),"../../../assets/icon-components/Pin.tsx":()=>xe(()=>import("./Pin-D53eCMAz.js"),[]),"../../../assets/icon-components/PinFilled.tsx":()=>xe(()=>import("./PinFilled-CMXfFW67.js"),[]),"../../../assets/icon-components/Plus.tsx":()=>xe(()=>import("./Plus-XUIm1wNw.js"),[]),"../../../assets/icon-components/PlusCircle.tsx":()=>xe(()=>import("./PlusCircle-D1IRYULb.js"),[]),"../../../assets/icon-components/PlusSquare.tsx":()=>xe(()=>import("./PlusSquare-3oD1-vzk.js"),[]),"../../../assets/icon-components/PowerhouseLogoSmall.tsx":()=>xe(()=>import("./PowerhouseLogoSmall-DF1uUwIC.js"),[]),"../../../assets/icon-components/Project.tsx":()=>xe(()=>import("./Project-EsBam9d0.js"),[]),"../../../assets/icon-components/QuestionSquare.tsx":()=>xe(()=>import("./QuestionSquare-CDaw1i6L.js"),[]),"../../../assets/icon-components/RedoArrow.tsx":()=>xe(()=>import("./RedoArrow-DM-fqhEP.js"),[]),"../../../assets/icon-components/Reload.tsx":()=>xe(()=>import("./Reload-DPZbA7yl.js"),[]),"../../../assets/icon-components/Renown.tsx":()=>xe(()=>import("./Renown-CItksi2j.js"),[]),"../../../assets/icon-components/RenownHover.tsx":()=>xe(()=>import("./RenownHover-cYQgnwQW.js"),[]),"../../../assets/icon-components/Ring.tsx":()=>xe(()=>import("./Ring-BivnmVc5.js"),[]),"../../../assets/icon-components/Save.tsx":()=>xe(()=>import("./Save-BWCZPY82.js"),[]),"../../../assets/icon-components/Search.tsx":()=>xe(()=>import("./Search-BiEcSbcf.js"),[]),"../../../assets/icon-components/Server.tsx":()=>xe(()=>import("./Server-cAzmNxsS.js"),[]),"../../../assets/icon-components/Settings.tsx":()=>xe(()=>import("./Settings-Cca-sV-_.js"),[]),"../../../assets/icon-components/Synced.tsx":()=>xe(()=>import("./Synced-CjieGKOk.js"),[]),"../../../assets/icon-components/Syncing.tsx":()=>xe(()=>import("./Syncing-KnDBLSYe.js"),[]),"../../../assets/icon-components/Trash.tsx":()=>xe(()=>import("./Trash-DIHOD5wQ.js"),[]),"../../../assets/icon-components/TrashFill.tsx":()=>xe(()=>import("./TrashFill-CG3humXp.js"),[]),"../../../assets/icon-components/TreeViewSlash.tsx":()=>xe(()=>import("./TreeViewSlash-CKJADIpa.js"),[]),"../../../assets/icon-components/TriangleDown.tsx":()=>xe(()=>import("./TriangleDown-Boh-WZzH.js"),[]),"../../../assets/icon-components/VariantArrowLeft.tsx":()=>xe(()=>import("./VariantArrowLeft-Dl1-3L5q.js"),[]),"../../../assets/icon-components/VerticalDots.tsx":()=>xe(()=>import("./VerticalDots-CCZxgZM8.js"),[]),"../../../assets/icon-components/WarningFill.tsx":()=>xe(()=>import("./WarningFill-CRRaW3Oz.js"),[]),"../../../assets/icon-components/XTwitter.tsx":()=>xe(()=>import("./XTwitter-CW6IaHUb.js"),[]),"../../../assets/icon-components/Xmark.tsx":()=>xe(()=>import("./Xmark-CZ3t0Fap.js"),[]),"../../../assets/icon-components/XmarkLight.tsx":()=>xe(()=>import("./XmarkLight-BkhBFy51.js"),[]),"../../../assets/icon-components/Youtube.tsx":()=>xe(()=>import("./Youtube-h-Dc9pri.js"),[])}),`../../../assets/icon-components/${t}.tsx`,6))}catch(e){return console.error(e),Pj}}function ze({name:t,size:e=24,color:n,style:r,...i}){const s=N$(e),o={color:n,...s,style:r},a=En(()=>Mj(t),[t]);return T(dC,{fallback:T("div",{"data-testid":"icon-fallback",style:s}),name:"icon-component",children:T(a,{...i,style:o})})}function Qa(t){"@babel/helpers - typeof";return Qa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qa(t)}function Lj(t,e){if(Qa(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Qa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function xC(t){var e=Lj(t,"string");return Qa(e)=="symbol"?e:e+""}function Qu(t,e,n){return(e=xC(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function z0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function lt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?z0(Object(n),!0).forEach(function(r){Qu(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Fj(t){if(Array.isArray(t))return t}function $j(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,o,a=[],c=!0,l=!1;try{if(s=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=s.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(u){l=!0,i=u}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return a}}function yb(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function TC(t,e){if(t){if(typeof t=="string")return yb(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yb(t,e):void 0}}function jj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-Cfezsgfl.js","assets/main.CqyrPdgE.js","assets/app-loader-DqWwQ81E.js","assets/app-loader-CcY7cVzc.css","assets/browser-Szk8zoDr.js","assets/getEnsName-CWy0aCA9.js","assets/isAddressEqual-7_-I3JPu.js","assets/router-BEJNE1RL.js","assets/PeopleFill-DQQdtDDe.js"])))=>i.map(i=>d[i]);
2
+ var i$=Object.defineProperty;var A0=t=>{throw TypeError(t)};var s$=(t,e,n)=>e in t?i$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var qe=(t,e,n)=>s$(t,typeof e!="symbol"?e+"":e,n),qy=(t,e,n)=>e.has(t)||A0("Cannot "+n);var de=(t,e,n)=>(qy(t,e,"read from private field"),n?n.call(t):e.get(t)),It=(t,e,n)=>e.has(t)?A0("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),bt=(t,e,n,r)=>(qy(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),un=(t,e,n)=>(qy(t,e,"access private method"),n);var Ap=(t,e,n,r)=>({set _(i){bt(t,e,i,n)},get _(){return de(t,e,r)}});import{_ as xe}from"./main.CqyrPdgE.js";import{jsx as T,jsxs as _e,Fragment as Zo}from"react/jsx-runtime";import*as k from"react";import Ae,{createElement as qa,isValidElement as gs,cloneElement as rm,Children as o$,createContext as fu,useContext as da,useState as Qe,useRef as hn,useEffect as jt,useLayoutEffect as Kf,useCallback as Te,useMemo as En,Suspense as dC,lazy as a$,forwardRef as fa,Component as c$,Fragment as hb,useId as l$,useSyncExternalStore as u$,useReducer as d$,useDebugValue as f$}from"react";import{g as fC,a as fw,o as Js,s as $l,n as to,L as im,c as Ai,b as Np,p as p$,t as h$}from"./app-loader-DqWwQ81E.js";import*as pC from"react-dom";import m$,{createPortal as g$}from"react-dom";function y$(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}function ut(){return ut=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ut.apply(null,arguments)}var dr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pa(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Qpe(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var v$={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};const b$=pa(v$);var _$=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function N0(t){var e={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=t.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(e.name=n[1],(b$[n[1]]||t.charAt(t.length-2)==="/")&&(e.voidElement=!0),e.name.startsWith("!--"))){var r=t.indexOf("-->");return{type:"comment",comment:r!==-1?t.slice(4,r):""}}for(var i=new RegExp(_$),s=null;(s=i.exec(t))!==null;)if(s[0].trim())if(s[1]){var o=s[1].trim(),a=[o,""];o.indexOf("=")>-1&&(a=o.split("=")),e.attrs[a[0]]=a[1],i.lastIndex--}else s[2]&&(e.attrs[s[2]]=s[3].trim().substring(1,s[3].length-1));return e}var w$=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,E$=/^\s*$/,S$=Object.create(null);function hC(t,e){switch(e.type){case"text":return t+e.content;case"tag":return t+="<"+e.name+(e.attrs?function(n){var r=[];for(var i in n)r.push(i+'="'+n[i]+'"');return r.length?" "+r.join(" "):""}(e.attrs):"")+(e.voidElement?"/>":">"),e.voidElement?t:t+e.children.reduce(hC,"")+"</"+e.name+">";case"comment":return t+"<!--"+e.comment+"-->"}}var x$={parse:function(t,e){e||(e={}),e.components||(e.components=S$);var n,r=[],i=[],s=-1,o=!1;if(t.indexOf("<")!==0){var a=t.indexOf("<");r.push({type:"text",content:a===-1?t:t.substring(0,a)})}return t.replace(w$,function(c,l){if(o){if(c!=="</"+n.name+">")return;o=!1}var u,d=c.charAt(1)!=="/",f=c.startsWith("<!--"),p=l+c.length,m=t.charAt(p);if(f){var h=N0(c);return s<0?(r.push(h),r):((u=i[s]).children.push(h),r)}if(d&&(s++,(n=N0(c)).type==="tag"&&e.components[n.name]&&(n.type="component",o=!0),n.voidElement||o||!m||m==="<"||n.children.push({type:"text",content:t.slice(p,t.indexOf("<",p))}),s===0&&r.push(n),(u=i[s-1])&&u.children.push(n),i[s]=n),(!d||n.voidElement)&&(s>-1&&(n.voidElement||n.name===c.slice(2,-1))&&(s--,n=s===-1?r:i[s]),!o&&m!=="<"&&m)){u=s===-1?r:i[s].children;var g=t.indexOf("<",p),y=t.slice(p,g===-1?void 0:g);E$.test(y)&&(y=" "),(g>-1&&s+u.length>=0||y!==" ")&&u.push({type:"text",content:y})}}),r},stringify:function(t){return t.reduce(function(e,n){return e+hC("",n)},"")}};function Ch(){if(console&&console.warn){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];typeof e[0]=="string"&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e)}}const P0={};function sm(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];typeof e[0]=="string"&&P0[e[0]]||(typeof e[0]=="string"&&(P0[e[0]]=new Date),Ch(...e))}const mC=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}};function M0(t,e,n){t.loadNamespaces(e,mC(t,n))}function L0(t,e,n,r){typeof n=="string"&&(n=[n]),n.forEach(i=>{t.options.ns.indexOf(i)<0&&t.options.ns.push(i)}),t.loadLanguages(e,mC(t,r))}function T$(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=e.languages[0],i=e.options?e.options.fallbackLng:!1,s=e.languages[e.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(a,c)=>{const l=e.services.backendConnector.state[`${a}|${c}`];return l===-1||l===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!o(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(r,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||o(r,t)&&(!i||o(s,t)))}function I$(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!e.languages||!e.languages.length?(sm("i18n.languages were undefined or empty",e.languages),!0):e.options.ignoreJSONStructure!==void 0?e.hasLoadedNamespace(t,{lng:n.lng,precheck:(i,s)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!s(i.isLanguageChangingTo,t))return!1}}):T$(t,e,n)}function Gy(t,e){if(!t)return!1;const n=t.props?t.props.children:t.children;return e?n.length>0:!!n}function Zy(t){if(!t)return[];const e=t.props?t.props.children:t.children;return t.props&&t.props.i18nIsDynamicList?cl(e):e}function O$(t){return Object.prototype.toString.call(t)!=="[object Array]"?!1:t.every(e=>gs(e))}function cl(t){return Array.isArray(t)?t:[t]}function C$(t,e){const n={...e};return n.props=Object.assign(t.props,e.props),n}function gC(t,e){if(!t)return"";let n="";const r=cl(t),i=e.transSupportBasicHtmlNodes&&e.transKeepBasicHtmlNodesFor?e.transKeepBasicHtmlNodesFor:[];return r.forEach((s,o)=>{if(typeof s=="string")n+=`${s}`;else if(gs(s)){const a=Object.keys(s.props).length,c=i.indexOf(s.type)>-1,l=s.props.children;if(!l&&c&&a===0)n+=`<${s.type}/>`;else if(!l&&(!c||a!==0))n+=`<${o}></${o}>`;else if(s.props.i18nIsDynamicList)n+=`<${o}></${o}>`;else if(c&&a===1&&typeof l=="string")n+=`<${s.type}>${l}</${s.type}>`;else{const u=gC(l,e);n+=`<${o}>${u}</${o}>`}}else if(s===null)Ch("Trans: the passed in value is invalid - seems you passed in a null child.");else if(typeof s=="object"){const{format:a,...c}=s,l=Object.keys(c);if(l.length===1){const u=a?`${l[0]}, ${a}`:l[0];n+=`{{${u}}}`}else Ch("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",s)}else Ch("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",s)}),n}function R$(t,e,n,r,i,s){if(e==="")return[];const o=r.transKeepBasicHtmlNodesFor||[],a=e&&new RegExp(o.map(g=>`<${g}`).join("|")).test(e);if(!t&&!a&&!s)return[e];const c={};function l(g){cl(g).forEach(v=>{typeof v!="string"&&(Gy(v)?l(Zy(v)):typeof v=="object"&&!gs(v)&&Object.assign(c,v))})}l(t);const u=x$.parse(`<0>${e}</0>`),d={...c,...i};function f(g,y,v){const b=Zy(g),E=m(b,y.children,v);return O$(b)&&E.length===0||g.props&&g.props.i18nIsDynamicList?b:E}function p(g,y,v,b,E){g.dummy?(g.children=y,v.push(rm(g,{key:b},E?void 0:y))):v.push(...o$.map([g],w=>{const S={...w.props};return delete S.i18nIsDynamicList,Ae.createElement(w.type,ut({},S,{key:b,ref:w.ref},E?{}:{children:y}))}))}function m(g,y,v){const b=cl(g);return cl(y).reduce((w,S,_)=>{const O=S.children&&S.children[0]&&S.children[0].content&&n.services.interpolator.interpolate(S.children[0].content,d,n.language);if(S.type==="tag"){let M=b[parseInt(S.name,10)];v.length===1&&!M&&(M=v[0][S.name]),M||(M={});const F=Object.keys(S.attrs).length!==0?C$({props:S.attrs},M):M,q=gs(F),I=q&&Gy(S,!0)&&!S.voidElement,$=a&&typeof F=="object"&&F.dummy&&!q,x=typeof t=="object"&&t!==null&&Object.hasOwnProperty.call(t,S.name);if(typeof F=="string"){const A=n.services.interpolator.interpolate(F,d,n.language);w.push(A)}else if(Gy(F)||I){const A=f(F,S,v);p(F,A,w,_)}else if($){const A=m(b,S.children,v);p(F,A,w,_)}else if(Number.isNaN(parseFloat(S.name)))if(x){const A=f(F,S,v);p(F,A,w,_,S.voidElement)}else if(r.transSupportBasicHtmlNodes&&o.indexOf(S.name)>-1)if(S.voidElement)w.push(qa(S.name,{key:`${S.name}-${_}`}));else{const A=m(b,S.children,v);w.push(qa(S.name,{key:`${S.name}-${_}`},A))}else if(S.voidElement)w.push(`<${S.name} />`);else{const A=m(b,S.children,v);w.push(`<${S.name}>${A}</${S.name}>`)}else if(typeof F=="object"&&!q){const A=S.children[0]?O:null;A&&w.push(A)}else p(F,O,w,_,S.children.length!==1||!O)}else if(S.type==="text"){const M=r.transWrapTextNodes,F=s?r.unescape(n.services.interpolator.interpolate(S.content,d,n.language)):n.services.interpolator.interpolate(S.content,d,n.language);M?w.push(qa(M,{key:`${S.name}-${_}`},F)):w.push(F)}return w},[])}const h=m([{dummy:!0,children:t||[]}],u,cl(t||[]));return Zy(h[0])}function D$(t){let{children:e,count:n,parent:r,i18nKey:i,context:s,tOptions:o={},values:a,defaults:c,components:l,ns:u,i18n:d,t:f,shouldUnescape:p,...m}=t;const h=d||fw();if(!h)return sm("You will need to pass in an i18next instance by using i18nextReactModule"),e;const g=f||h.t.bind(h)||(I=>I);s&&(o.context=s);const y={...fC(),...h.options&&h.options.react};let v=u||g.ns||h.options&&h.options.defaultNS;v=typeof v=="string"?[v]:v||["translation"];const b=gC(e,y),E=c||b||y.transEmptyNodeValue||i,{hashTransKey:w}=y,S=i||(w?w(b||E):b||E);h.options&&h.options.interpolation&&h.options.interpolation.defaultVariables&&(a=a&&Object.keys(a).length>0?{...a,...h.options.interpolation.defaultVariables}:{...h.options.interpolation.defaultVariables});const _=a?o.interpolation:{interpolation:{...o.interpolation,prefix:"#$?",suffix:"?$#"}},O={...o,count:n,...a,..._,defaultValue:E,ns:v},M=S?g(S,O):E;l&&Object.keys(l).forEach(I=>{const $=l[I];if(typeof $.type=="function"||!$.props||!$.props.children||M.indexOf(`${I}/>`)<0&&M.indexOf(`${I} />`)<0)return;function x(){return Ae.createElement(Ae.Fragment,null,$)}l[I]=Ae.createElement(x,null)});const F=R$(l||e,M,h,y,O,p),q=r!==void 0?r:y.defaultTransParent;return q?qa(q,m,F):F}const yC=fu();class k${constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function vC(t){let{children:e,count:n,parent:r,i18nKey:i,context:s,tOptions:o={},values:a,defaults:c,components:l,ns:u,i18n:d,t:f,shouldUnescape:p,...m}=t;const{i18n:h,defaultNS:g}=da(yC)||{},y=d||h||fw(),v=f||y&&y.t.bind(y);return D$({children:e,count:n,parent:r,i18nKey:i,context:s,tOptions:o,values:a,defaults:c,components:l,ns:u||v&&v.ns||g||y&&y.options&&y.options.defaultNS,i18n:y,t:f,shouldUnescape:p,...m})}const A$=(t,e)=>{const n=hn();return jt(()=>{n.current=t},[t,e]),n.current};function ha(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=e,{i18n:r,defaultNS:i}=da(yC)||{},s=n||r||fw();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new k$),!s){sm("You will need to pass in an i18next instance by using initReactI18next");const b=(w,S)=>typeof S=="string"?S:S&&typeof S=="object"&&typeof S.defaultValue=="string"?S.defaultValue:Array.isArray(w)?w[w.length-1]:w,E=[b,{},!1];return E.t=b,E.i18n={},E.ready=!1,E}s.options.react&&s.options.react.wait!==void 0&&sm("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...fC(),...s.options.react,...e},{useSuspense:a,keyPrefix:c}=o;let l=i||s.options&&s.options.defaultNS;l=typeof l=="string"?[l]:l||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(l);const u=(s.isInitialized||s.initializedStoreOnce)&&l.every(b=>I$(b,s,o));function d(){return s.getFixedT(e.lng||null,o.nsMode==="fallback"?l:l[0],c)}const[f,p]=Qe(d);let m=l.join();e.lng&&(m=`${e.lng}${m}`);const h=A$(m),g=hn(!0);jt(()=>{const{bindI18n:b,bindI18nStore:E}=o;g.current=!0,!u&&!a&&(e.lng?L0(s,e.lng,l,()=>{g.current&&p(d)}):M0(s,l,()=>{g.current&&p(d)})),u&&h&&h!==m&&g.current&&p(d);function w(){g.current&&p(d)}return b&&s&&s.on(b,w),E&&s&&s.store.on(E,w),()=>{g.current=!1,b&&s&&b.split(" ").forEach(S=>s.off(S,w)),E&&s&&E.split(" ").forEach(S=>s.store.off(S,w))}},[s,m]);const y=hn(!0);jt(()=>{g.current&&!y.current&&p(d),y.current=!1},[s,c]);const v=[f,s,u];if(v.t=f,v.i18n=s,v.ready=u,u||!u&&!a)return v;throw new Promise(b=>{e.lng?L0(s,e.lng,l,()=>b()):M0(s,l,()=>b())})}function N$(t){return t?typeof t=="number"?{width:t.toString()+"px",height:t.toString()+"px"}:{width:t,height:t}:{}}const pw="-",P$=t=>{const e=L$(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:o=>{const a=o.split(pw);return a[0]===""&&a.length!==1&&a.shift(),bC(a,e)||M$(o)},getConflictingClassGroupIds:(o,a)=>{const c=n[o]||[];return a&&r[o]?[...c,...r[o]]:c}}},bC=(t,e)=>{var o;if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),i=r?bC(t.slice(1),r):void 0;if(i)return i;if(e.validators.length===0)return;const s=t.join(pw);return(o=e.validators.find(({validator:a})=>a(s)))==null?void 0:o.classGroupId},F0=/^\[(.+)\]$/,M$=t=>{if(F0.test(t)){const e=F0.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},L$=t=>{const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return $$(Object.entries(t.classGroups),n).forEach(([s,o])=>{mb(o,r,s,e)}),r},mb=(t,e,n,r)=>{t.forEach(i=>{if(typeof i=="string"){const s=i===""?e:$0(e,i);s.classGroupId=n;return}if(typeof i=="function"){if(F$(i)){mb(i(r),e,n,r);return}e.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,o])=>{mb(o,$0(e,s),n,r)})})},$0=(t,e)=>{let n=t;return e.split(pw).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},F$=t=>t.isThemeGetter,$$=(t,e)=>e?t.map(([n,r])=>{const i=r.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,a])=>[e+o,a])):s);return[n,i]}):t,j$=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;const i=(s,o)=>{n.set(s,o),e++,e>t&&(e=0,r=n,n=new Map)};return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return i(s,o),o},set(s,o){n.has(s)?n.set(s,o):i(s,o)}}},_C="!",U$=t=>{const{separator:e,experimentalParseClassName:n}=t,r=e.length===1,i=e[0],s=e.length,o=a=>{const c=[];let l=0,u=0,d;for(let g=0;g<a.length;g++){let y=a[g];if(l===0){if(y===i&&(r||a.slice(g,g+s)===e)){c.push(a.slice(u,g)),u=g+s;continue}if(y==="/"){d=g;continue}}y==="["?l++:y==="]"&&l--}const f=c.length===0?a:a.substring(u),p=f.startsWith(_C),m=p?f.substring(1):f,h=d&&d>u?d-u:void 0;return{modifiers:c,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:h}};return n?a=>n({className:a,parseClassName:o}):o},B$=t=>{if(t.length<=1)return t;const e=[];let n=[];return t.forEach(r=>{r[0]==="["?(e.push(...n.sort(),r),n=[]):n.push(r)}),e.push(...n.sort()),e},z$=t=>({cache:j$(t.cacheSize),parseClassName:U$(t),...P$(t)}),V$=/\s+/,H$=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=e,s=[],o=t.trim().split(V$);let a="";for(let c=o.length-1;c>=0;c-=1){const l=o[c],{modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(l);let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){a=l+(a.length>0?" "+a:a);continue}if(h=r(f),!h){a=l+(a.length>0?" "+a:a);continue}m=!1}const g=B$(u).join(":"),y=d?g+_C:g,v=y+h;if(s.includes(v))continue;s.push(v);const b=i(h,m);for(let E=0;E<b.length;++E){const w=b[E];s.push(y+w)}a=l+(a.length>0?" "+a:a)}return a};function Jf(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=wC(e))&&(r&&(r+=" "),r+=n);return r}const wC=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=wC(t[r]))&&(n&&(n+=" "),n+=e);return n};function W$(t,...e){let n,r,i,s=o;function o(c){const l=e.reduce((u,d)=>d(u),t());return n=z$(l),r=n.cache.get,i=n.cache.set,s=a,a(c)}function a(c){const l=r(c);if(l)return l;const u=H$(c,n);return i(c,u),u}return function(){return s(Jf.apply(null,arguments))}}const mn=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},EC=/^\[(?:([a-z-]+):)?(.+)\]$/i,q$=/^\d+\/\d+$/,G$=new Set(["px","full","screen"]),Z$=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Y$=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,K$=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,J$=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,X$=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ls=t=>ml(t)||G$.has(t)||q$.test(t),wo=t=>pu(t,"length",oj),ml=t=>!!t&&!Number.isNaN(Number(t)),Yy=t=>pu(t,"number",ml),Pu=t=>!!t&&Number.isInteger(Number(t)),Q$=t=>t.endsWith("%")&&ml(t.slice(0,-1)),xt=t=>EC.test(t),Eo=t=>Z$.test(t),ej=new Set(["length","size","percentage"]),tj=t=>pu(t,ej,SC),nj=t=>pu(t,"position",SC),rj=new Set(["image","url"]),ij=t=>pu(t,rj,cj),sj=t=>pu(t,"",aj),Mu=()=>!0,pu=(t,e,n)=>{const r=EC.exec(t);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):n(r[2]):!1},oj=t=>Y$.test(t)&&!K$.test(t),SC=()=>!1,aj=t=>J$.test(t),cj=t=>X$.test(t),lj=()=>{const t=mn("colors"),e=mn("spacing"),n=mn("blur"),r=mn("brightness"),i=mn("borderColor"),s=mn("borderRadius"),o=mn("borderSpacing"),a=mn("borderWidth"),c=mn("contrast"),l=mn("grayscale"),u=mn("hueRotate"),d=mn("invert"),f=mn("gap"),p=mn("gradientColorStops"),m=mn("gradientColorStopPositions"),h=mn("inset"),g=mn("margin"),y=mn("opacity"),v=mn("padding"),b=mn("saturate"),E=mn("scale"),w=mn("sepia"),S=mn("skew"),_=mn("space"),O=mn("translate"),M=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto",xt,e],I=()=>[xt,e],$=()=>["",Ls,wo],x=()=>["auto",ml,xt],A=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],P=()=>["solid","dashed","dotted","double","none"],B=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>["start","end","center","between","around","evenly","stretch"],L=()=>["","0",xt],G=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>[ml,xt];return{cacheSize:500,separator:":",theme:{colors:[Mu],spacing:[Ls,wo],blur:["none","",Eo,xt],brightness:U(),borderColor:[t],borderRadius:["none","","full",Eo,xt],borderSpacing:I(),borderWidth:$(),contrast:U(),grayscale:L(),hueRotate:U(),invert:L(),gap:I(),gradientColorStops:[t],gradientColorStopPositions:[Q$,wo],inset:q(),margin:q(),opacity:U(),padding:I(),saturate:U(),scale:U(),sepia:L(),skew:U(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",xt]}],container:["container"],columns:[{columns:[Eo]}],"break-after":[{"break-after":G()}],"break-before":[{"break-before":G()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...A(),xt]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Pu,xt]}],basis:[{basis:q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",xt]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",Pu,xt]}],"grid-cols":[{"grid-cols":[Mu]}],"col-start-end":[{col:["auto",{span:["full",Pu,xt]},xt]}],"col-start":[{"col-start":x()}],"col-end":[{"col-end":x()}],"grid-rows":[{"grid-rows":[Mu]}],"row-start-end":[{row:["auto",{span:[Pu,xt]},xt]}],"row-start":[{"row-start":x()}],"row-end":[{"row-end":x()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",xt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",xt]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...J()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...J(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...J(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",xt,e]}],"min-w":[{"min-w":[xt,e,"min","max","fit"]}],"max-w":[{"max-w":[xt,e,"none","full","min","max","fit","prose",{screen:[Eo]},Eo]}],h:[{h:[xt,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[xt,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[xt,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[xt,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Eo,wo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Yy]}],"font-family":[{font:[Mu]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",xt]}],"line-clamp":[{"line-clamp":["none",ml,Yy]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ls,xt]}],"list-image":[{"list-image":["none",xt]}],"list-style-type":[{list:["none","disc","decimal",xt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...P(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ls,wo]}],"underline-offset":[{"underline-offset":["auto",Ls,xt]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",xt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...A(),nj]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",tj]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ij]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...P(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:P()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...P()]}],"outline-offset":[{"outline-offset":[Ls,xt]}],"outline-w":[{outline:[Ls,wo]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Ls,wo]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Eo,sj]}],"shadow-color":[{shadow:[Mu]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...B(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":B()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Eo,xt]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",xt]}],duration:[{duration:U()}],ease:[{ease:["linear","in","out","in-out",xt]}],delay:[{delay:U()}],animate:[{animate:["none","spin","ping","pulse","bounce",xt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[Pu,xt]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",xt]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",xt]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",xt]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[Ls,wo,Yy]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},St=W$(lj);var uj="Expected a function",j0=NaN,dj="[object Symbol]",fj=/^\s+|\s+$/g,pj=/^[-+]0x[0-9a-f]+$/i,hj=/^0b[01]+$/i,mj=/^0o[0-7]+$/i,gj=parseInt,yj=typeof dr=="object"&&dr&&dr.Object===Object&&dr,vj=typeof self=="object"&&self&&self.Object===Object&&self,bj=yj||vj||Function("return this")(),_j=Object.prototype,wj=_j.toString,Ej=Math.max,Sj=Math.min,Ky=function(){return bj.Date.now()};function xj(t,e,n){var r,i,s,o,a,c,l=0,u=!1,d=!1,f=!0;if(typeof t!="function")throw new TypeError(uj);e=U0(e)||0,gb(n)&&(u=!!n.leading,d="maxWait"in n,s=d?Ej(U0(n.maxWait)||0,e):s,f="trailing"in n?!!n.trailing:f);function p(S){var _=r,O=i;return r=i=void 0,l=S,o=t.apply(O,_),o}function m(S){return l=S,a=setTimeout(y,e),u?p(S):o}function h(S){var _=S-c,O=S-l,M=e-_;return d?Sj(M,s-O):M}function g(S){var _=S-c,O=S-l;return c===void 0||_>=e||_<0||d&&O>=s}function y(){var S=Ky();if(g(S))return v(S);a=setTimeout(y,h(S))}function v(S){return a=void 0,f&&r?p(S):(r=i=void 0,o)}function b(){a!==void 0&&clearTimeout(a),l=0,r=c=i=a=void 0}function E(){return a===void 0?o:v(Ky())}function w(){var S=Ky(),_=g(S);if(r=arguments,i=this,c=S,_){if(a===void 0)return m(c);if(d)return a=setTimeout(y,e),p(c)}return a===void 0&&(a=setTimeout(y,e)),o}return w.cancel=b,w.flush=E,w}function gb(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function Tj(t){return!!t&&typeof t=="object"}function Ij(t){return typeof t=="symbol"||Tj(t)&&wj.call(t)==dj}function U0(t){if(typeof t=="number")return t;if(Ij(t))return j0;if(gb(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=gb(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(fj,"");var n=hj.test(t);return n||mj.test(t)?gj(t.slice(2),n?2:8):pj.test(t)?j0:+t}var Oj=xj;const B0=pa(Oj);var Cj=typeof window<"u"?Kf:jt;function Rj(t,e,n,r){const i=hn(e);Cj(()=>{i.current=e},[e]),jt(()=>{const s=window;if(!(s&&s.addEventListener))return;const o=a=>{i.current(a)};return s.addEventListener(t,o,r),()=>{s.removeEventListener(t,o,r)}},[t,n,r])}function ehe(){const[t,e]=Qe(null),n=Te(async r=>{if(!(navigator!=null&&navigator.clipboard))return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(r),e(r),!0}catch(i){return console.warn("Copy failed",i),e(null),!1}},[]);return[t,n]}function Dj(t){const e=hn(t);e.current=t,jt(()=>()=>{e.current()},[])}function kj(t,e=500,n){const r=hn();Dj(()=>{r.current&&r.current.cancel()});const i=En(()=>{const s=B0(t,e,n),o=(...a)=>s(...a);return o.cancel=()=>{s.cancel()},o.isPending=()=>!!r.current,o.flush=()=>s.flush(),o},[t,e,n]);return jt(()=>{r.current=B0(t,e,n)},[t,e,n]),i}function Aj(t,e,n){const r=(l,u)=>l===u,i=t instanceof Function?t():t,[s,o]=Qe(i),a=hn(i),c=kj(o,e,n);return r(a.current,i)||(c(i),a.current=i),[s,c]}function the(t,e,n="mousedown",r={}){Rj(n,i=>{const s=i.target;if(!s||!s.isConnected)return;(Array.isArray(t)?t.filter(a=>!!a.current).every(a=>a.current&&!a.current.contains(s)):t.current&&!t.current.contains(s))&&e(i)},void 0,r)}const Nj=(t,e,n)=>{const r=t[e];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((i,s)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(s.bind(null,new Error("Unknown variable dynamic import: "+e+(e.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))})};function Pj(t){return T("div",{style:{width:t.width,height:t.height}})}function Mj(t){try{return a$(()=>Nj(Object.assign({"../../../assets/icon-components/ArrowFilledRight.tsx":()=>xe(()=>import("./ArrowFilledRight-BXP1j8Cl.js"),[]),"../../../assets/icon-components/ArrowLeft.tsx":()=>xe(()=>import("./ArrowLeft-8ZR_YHAJ.js"),[]),"../../../assets/icon-components/ArrowUp.tsx":()=>xe(()=>import("./ArrowUp-E2jS6Wzt.js"),[]),"../../../assets/icon-components/BarChart.tsx":()=>xe(()=>import("./BarChart-C-E6t7dt.js"),[]),"../../../assets/icon-components/BaseArrowLeft.tsx":()=>xe(()=>import("./BaseArrowLeft-DtHrkTW4.js"),[]),"../../../assets/icon-components/BaseArrowRight.tsx":()=>xe(()=>import("./BaseArrowRight-BIwzFHnh.js"),[]),"../../../assets/icon-components/Braces.tsx":()=>xe(()=>import("./Braces-3LcexUsR.js"),[]),"../../../assets/icon-components/Branch.tsx":()=>xe(()=>import("./Branch-D0CssEh3.js"),[]),"../../../assets/icon-components/BrickGlobe.tsx":()=>xe(()=>import("./BrickGlobe-CdHw7ZVP.js"),[]),"../../../assets/icon-components/Briefcase.tsx":()=>xe(()=>import("./Briefcase-CV2bgnSj.js"),[]),"../../../assets/icon-components/Calendar.tsx":()=>xe(()=>import("./Calendar-DuXN-sPt.js"),[]),"../../../assets/icon-components/CalendarTime.tsx":()=>xe(()=>import("./CalendarTime-BowYBiVM.js"),[]),"../../../assets/icon-components/Caret.tsx":()=>xe(()=>import("./Caret-r16V7Hcs.js"),[]),"../../../assets/icon-components/CaretDown.tsx":()=>xe(()=>import("./CaretDown-DljrBfIz.js"),[]),"../../../assets/icon-components/CaretLeft.tsx":()=>xe(()=>import("./CaretLeft-B_Lzd_Rn.js"),[]),"../../../assets/icon-components/CaretRight.tsx":()=>xe(()=>import("./CaretRight-Bbz5nCpg.js"),[]),"../../../assets/icon-components/CaretSort.tsx":()=>xe(()=>import("./CaretSort-DSgBum1h.js"),[]),"../../../assets/icon-components/Check.tsx":()=>xe(()=>import("./Check-CbV9BYHY.js"),[]),"../../../assets/icon-components/CheckCircle.tsx":()=>xe(()=>import("./CheckCircle-CX2jIKoF.js"),[]),"../../../assets/icon-components/CheckCircleFill.tsx":()=>xe(()=>import("./CheckCircleFill-DLK12sW5.js"),[]),"../../../assets/icon-components/Checkmark.tsx":()=>xe(()=>import("./Checkmark-DBvUEZAd.js"),[]),"../../../assets/icon-components/ChevronDown.tsx":()=>xe(()=>import("./ChevronDown-eUsCPXcB.js"),[]),"../../../assets/icon-components/Circle.tsx":()=>xe(()=>import("./Circle-8dOehHQf.js"),[]),"../../../assets/icon-components/CircleInfo.tsx":()=>xe(()=>import("./CircleInfo-D0ktZDko.js"),[]),"../../../assets/icon-components/Clock.tsx":()=>xe(()=>import("./Clock-CudavWaE.js"),[]),"../../../assets/icon-components/ClockFill.tsx":()=>xe(()=>import("./ClockFill-yWs52y_e.js"),[]),"../../../assets/icon-components/CloudSlash.tsx":()=>xe(()=>import("./CloudSlash-D18Hl3VW.js"),[]),"../../../assets/icon-components/Collapse.tsx":()=>xe(()=>import("./Collapse-BOxZH5-e.js"),[]),"../../../assets/icon-components/Connect.tsx":()=>xe(()=>import("./Connect-laqJZT3s.js"),[]),"../../../assets/icon-components/Copy.tsx":()=>xe(()=>import("./Copy-CkOtWZ6m.js"),[]),"../../../assets/icon-components/CrossCircle.tsx":()=>xe(()=>import("./CrossCircle-Bp9diEe9.js"),[]),"../../../assets/icon-components/Danger.tsx":()=>xe(()=>import("./Danger-CLu7nxgz.js"),[]),"../../../assets/icon-components/Discord.tsx":()=>xe(()=>import("./Discord-CcPWRT8g.js"),[]),"../../../assets/icon-components/Drive.tsx":()=>xe(()=>import("./Drive-CzahDx9j.js"),[]),"../../../assets/icon-components/Edit.tsx":()=>xe(()=>import("./Edit-D9GlgGu8.js"),[]),"../../../assets/icon-components/Ellipsis.tsx":()=>xe(()=>import("./Ellipsis-DWNUJYUI.js"),[]),"../../../assets/icon-components/Error.tsx":()=>xe(()=>import("./Error-FBAhqFT5.js"),[]),"../../../assets/icon-components/Exclamation.tsx":()=>xe(()=>import("./Exclamation-BGFGsVRw.js"),[]),"../../../assets/icon-components/File.tsx":()=>xe(()=>import("./File-DWKl25DR.js"),[]),"../../../assets/icon-components/FilesEarmark.tsx":()=>xe(()=>import("./FilesEarmark-BTL53WSf.js"),[]),"../../../assets/icon-components/FolderClose.tsx":()=>xe(()=>import("./FolderClose-BVMKeKvW.js"),[]),"../../../assets/icon-components/FolderOpen.tsx":()=>xe(()=>import("./FolderOpen-DT55_X9N.js"),[]),"../../../assets/icon-components/FolderPlus.tsx":()=>xe(()=>import("./FolderPlus-C2G5PVs-.js"),[]),"../../../assets/icon-components/Forum.tsx":()=>xe(()=>import("./Forum-Cfgyizyn.js"),[]),"../../../assets/icon-components/Gear.tsx":()=>xe(()=>import("./Gear-CoQ9O06k.js"),[]),"../../../assets/icon-components/Github.tsx":()=>xe(()=>import("./Github-CjkZIHCO.js"),[]),"../../../assets/icon-components/Globe.tsx":()=>xe(()=>import("./Globe-Dy2otZRk.js"),[]),"../../../assets/icon-components/GlobeWww.tsx":()=>xe(()=>import("./GlobeWww-Ci7aa5CE.js"),[]),"../../../assets/icon-components/Hdd.tsx":()=>xe(()=>import("./Hdd-CP-hFB7d.js"),[]),"../../../assets/icon-components/History.tsx":()=>xe(()=>import("./History-CmOiP5qa.js"),[]),"../../../assets/icon-components/InfoSquare.tsx":()=>xe(()=>import("./InfoSquare-DbYZrwmg.js"),[]),"../../../assets/icon-components/Link.tsx":()=>xe(()=>import("./Link-CXIVQOz6.js"),[]),"../../../assets/icon-components/Linkedin.tsx":()=>xe(()=>import("./Linkedin-exhl1yGN.js"),[]),"../../../assets/icon-components/Lock.tsx":()=>xe(()=>import("./Lock-DWdDRi_O.js"),[]),"../../../assets/icon-components/M.tsx":()=>xe(()=>import("./M-ByQIo8bX.js"),[]),"../../../assets/icon-components/PackageManager.tsx":()=>xe(()=>import("./PackageManager-D6Ia8zHs.js"),[]),"../../../assets/icon-components/Pencil.tsx":()=>xe(()=>import("./Pencil-D830iveq.js"),[]),"../../../assets/icon-components/People.tsx":()=>xe(()=>import("./People-B1tewG8c.js"),[]),"../../../assets/icon-components/PeopleFill.tsx":()=>xe(()=>import("./PeopleFill-DQQdtDDe.js"),[]),"../../../assets/icon-components/Person.tsx":()=>xe(()=>import("./Person-BPRmm67U.js"),[]),"../../../assets/icon-components/Pin.tsx":()=>xe(()=>import("./Pin-D53eCMAz.js"),[]),"../../../assets/icon-components/PinFilled.tsx":()=>xe(()=>import("./PinFilled-CMXfFW67.js"),[]),"../../../assets/icon-components/Plus.tsx":()=>xe(()=>import("./Plus-XUIm1wNw.js"),[]),"../../../assets/icon-components/PlusCircle.tsx":()=>xe(()=>import("./PlusCircle-D1IRYULb.js"),[]),"../../../assets/icon-components/PlusSquare.tsx":()=>xe(()=>import("./PlusSquare-3oD1-vzk.js"),[]),"../../../assets/icon-components/PowerhouseLogoSmall.tsx":()=>xe(()=>import("./PowerhouseLogoSmall-DF1uUwIC.js"),[]),"../../../assets/icon-components/Project.tsx":()=>xe(()=>import("./Project-EsBam9d0.js"),[]),"../../../assets/icon-components/QuestionSquare.tsx":()=>xe(()=>import("./QuestionSquare-CDaw1i6L.js"),[]),"../../../assets/icon-components/RedoArrow.tsx":()=>xe(()=>import("./RedoArrow-DM-fqhEP.js"),[]),"../../../assets/icon-components/Reload.tsx":()=>xe(()=>import("./Reload-DPZbA7yl.js"),[]),"../../../assets/icon-components/Renown.tsx":()=>xe(()=>import("./Renown-CItksi2j.js"),[]),"../../../assets/icon-components/RenownHover.tsx":()=>xe(()=>import("./RenownHover-cYQgnwQW.js"),[]),"../../../assets/icon-components/Ring.tsx":()=>xe(()=>import("./Ring-BivnmVc5.js"),[]),"../../../assets/icon-components/Save.tsx":()=>xe(()=>import("./Save-BWCZPY82.js"),[]),"../../../assets/icon-components/Search.tsx":()=>xe(()=>import("./Search-BiEcSbcf.js"),[]),"../../../assets/icon-components/Server.tsx":()=>xe(()=>import("./Server-cAzmNxsS.js"),[]),"../../../assets/icon-components/Settings.tsx":()=>xe(()=>import("./Settings-Cca-sV-_.js"),[]),"../../../assets/icon-components/Synced.tsx":()=>xe(()=>import("./Synced-CjieGKOk.js"),[]),"../../../assets/icon-components/Syncing.tsx":()=>xe(()=>import("./Syncing-KnDBLSYe.js"),[]),"../../../assets/icon-components/Trash.tsx":()=>xe(()=>import("./Trash-DIHOD5wQ.js"),[]),"../../../assets/icon-components/TrashFill.tsx":()=>xe(()=>import("./TrashFill-CG3humXp.js"),[]),"../../../assets/icon-components/TreeViewSlash.tsx":()=>xe(()=>import("./TreeViewSlash-CKJADIpa.js"),[]),"../../../assets/icon-components/TriangleDown.tsx":()=>xe(()=>import("./TriangleDown-Boh-WZzH.js"),[]),"../../../assets/icon-components/VariantArrowLeft.tsx":()=>xe(()=>import("./VariantArrowLeft-Dl1-3L5q.js"),[]),"../../../assets/icon-components/VerticalDots.tsx":()=>xe(()=>import("./VerticalDots-CCZxgZM8.js"),[]),"../../../assets/icon-components/WarningFill.tsx":()=>xe(()=>import("./WarningFill-CRRaW3Oz.js"),[]),"../../../assets/icon-components/XTwitter.tsx":()=>xe(()=>import("./XTwitter-CW6IaHUb.js"),[]),"../../../assets/icon-components/Xmark.tsx":()=>xe(()=>import("./Xmark-CZ3t0Fap.js"),[]),"../../../assets/icon-components/XmarkLight.tsx":()=>xe(()=>import("./XmarkLight-BkhBFy51.js"),[]),"../../../assets/icon-components/Youtube.tsx":()=>xe(()=>import("./Youtube-h-Dc9pri.js"),[])}),`../../../assets/icon-components/${t}.tsx`,6))}catch(e){return console.error(e),Pj}}function ze({name:t,size:e=24,color:n,style:r,...i}){const s=N$(e),o={color:n,...s,style:r},a=En(()=>Mj(t),[t]);return T(dC,{fallback:T("div",{"data-testid":"icon-fallback",style:s}),name:"icon-component",children:T(a,{...i,style:o})})}function Qa(t){"@babel/helpers - typeof";return Qa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qa(t)}function Lj(t,e){if(Qa(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Qa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function xC(t){var e=Lj(t,"string");return Qa(e)=="symbol"?e:e+""}function Qu(t,e,n){return(e=xC(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function z0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function lt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?z0(Object(n),!0).forEach(function(r){Qu(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Fj(t){if(Array.isArray(t))return t}function $j(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,o,a=[],c=!0,l=!1;try{if(s=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=s.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(u){l=!0,i=u}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return a}}function yb(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function TC(t,e){if(t){if(typeof t=="string")return yb(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yb(t,e):void 0}}function jj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xs(t,e){return Fj(t)||$j(t,e)||TC(t,e)||jj()}function Uj(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function po(t,e){if(t==null)return{};var n,r,i=Uj(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var Bj=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function zj(t){var e=t.defaultInputValue,n=e===void 0?"":e,r=t.defaultMenuIsOpen,i=r===void 0?!1:r,s=t.defaultValue,o=s===void 0?null:s,a=t.inputValue,c=t.menuIsOpen,l=t.onChange,u=t.onInputChange,d=t.onMenuClose,f=t.onMenuOpen,p=t.value,m=po(t,Bj),h=Qe(a!==void 0?a:n),g=Xs(h,2),y=g[0],v=g[1],b=Qe(c!==void 0?c:i),E=Xs(b,2),w=E[0],S=E[1],_=Qe(p!==void 0?p:o),O=Xs(_,2),M=O[0],F=O[1],q=Te(function(J,L){typeof l=="function"&&l(J,L),F(J)},[l]),I=Te(function(J,L){var G;typeof u=="function"&&(G=u(J,L)),v(G!==void 0?G:J)},[u]),$=Te(function(){typeof f=="function"&&f(),S(!0)},[f]),x=Te(function(){typeof d=="function"&&d(),S(!1)},[d]),A=a!==void 0?a:y,P=c!==void 0?c:w,B=p!==void 0?p:M;return lt(lt({},m),{},{inputValue:A,menuIsOpen:P,onChange:q,onInputChange:I,onMenuClose:x,onMenuOpen:$,value:B})}function Vj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function V0(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,xC(r.key),r)}}function Hj(t,e,n){return V0(t.prototype,e),V0(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function vb(t,e){return vb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},vb(t,e)}function Wj(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&vb(t,e)}function om(t){return om=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},om(t)}function IC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(IC=function(){return!!t})()}function qj(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Gj(t,e){if(e&&(Qa(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qj(t)}function Zj(t){var e=IC();return function(){var n,r=om(t);if(e){var i=om(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Gj(this,n)}}function Yj(t){if(Array.isArray(t))return yb(t)}function Kj(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Jj(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
4
4
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hw(t){return Yj(t)||Kj(t)||TC(t)||Jj()}function Xj(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function Qj(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var eU=function(){function t(n){var r=this;this._insertTag=function(i){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,s),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Qj(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Xj(i);try{s.insertRule(r,s.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},e.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},t}(),lr="-ms-",am="-moz-",Yt="-webkit-",OC="comm",mw="rule",gw="decl",tU="@import",CC="@keyframes",nU="@layer",rU=Math.abs,xg=String.fromCharCode,iU=Object.assign;function sU(t,e){return ir(t,0)^45?(((e<<2^ir(t,0))<<2^ir(t,1))<<2^ir(t,2))<<2^ir(t,3):0}function RC(t){return t.trim()}function oU(t,e){return(t=e.exec(t))?t[0]:t}function Kt(t,e,n){return t.replace(e,n)}function bb(t,e){return t.indexOf(e)}function ir(t,e){return t.charCodeAt(e)|0}function Ad(t,e,n){return t.slice(e,n)}function as(t){return t.length}function yw(t){return t.length}function Pp(t,e){return e.push(t),t}function aU(t,e){return t.map(e).join("")}var Tg=1,jl=1,DC=0,jr=0,Un=0,hu="";function Ig(t,e,n,r,i,s,o){return{value:t,root:e,parent:n,type:r,props:i,children:s,line:Tg,column:jl,length:o,return:""}}function Lu(t,e){return iU(Ig("",null,null,"",null,null,0),t,{length:-t.length},e)}function cU(){return Un}function lU(){return Un=jr>0?ir(hu,--jr):0,jl--,Un===10&&(jl=1,Tg--),Un}function Jr(){return Un=jr<DC?ir(hu,jr++):0,jl++,Un===10&&(jl=1,Tg++),Un}function ys(){return ir(hu,jr)}function Rh(){return jr}function Xf(t,e){return Ad(hu,t,e)}function Nd(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function kC(t){return Tg=jl=1,DC=as(hu=t),jr=0,[]}function AC(t){return hu="",t}function Dh(t){return RC(Xf(jr-1,_b(t===91?t+2:t===40?t+1:t)))}function uU(t){for(;(Un=ys())&&Un<33;)Jr();return Nd(t)>2||Nd(Un)>3?"":" "}function dU(t,e){for(;--e&&Jr()&&!(Un<48||Un>102||Un>57&&Un<65||Un>70&&Un<97););return Xf(t,Rh()+(e<6&&ys()==32&&Jr()==32))}function _b(t){for(;Jr();)switch(Un){case t:return jr;case 34:case 39:t!==34&&t!==39&&_b(Un);break;case 40:t===41&&_b(t);break;case 92:Jr();break}return jr}function fU(t,e){for(;Jr()&&t+Un!==57;)if(t+Un===84&&ys()===47)break;return"/*"+Xf(e,jr-1)+"*"+xg(t===47?t:Jr())}function pU(t){for(;!Nd(ys());)Jr();return Xf(t,jr)}function hU(t){return AC(kh("",null,null,null,[""],t=kC(t),0,[0],t))}function kh(t,e,n,r,i,s,o,a,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,y=1,v=0,b="",E=i,w=s,S=r,_=b;g;)switch(m=v,v=Jr()){case 40:if(m!=108&&ir(_,d-1)==58){bb(_+=Kt(Dh(v),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:_+=Dh(v);break;case 9:case 10:case 13:case 32:_+=uU(m);break;case 92:_+=dU(Rh()-1,7);continue;case 47:switch(ys()){case 42:case 47:Pp(mU(fU(Jr(),Rh()),e,n),c);break;default:_+="/"}break;case 123*h:a[l++]=as(_)*y;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:y==-1&&(_=Kt(_,/\f/g,"")),p>0&&as(_)-d&&Pp(p>32?W0(_+";",r,n,d-1):W0(Kt(_," ","")+";",r,n,d-2),c);break;case 59:_+=";";default:if(Pp(S=H0(_,e,n,l,u,i,a,b,E=[],w=[],d),s),v===123)if(u===0)kh(_,e,S,S,E,s,d,a,w);else switch(f===99&&ir(_,3)===110?100:f){case 100:case 108:case 109:case 115:kh(t,S,S,r&&Pp(H0(t,S,S,0,0,i,a,b,i,E=[],d),w),i,w,d,a,r?E:w);break;default:kh(_,S,S,S,[""],w,0,a,w)}}l=u=p=0,h=y=1,b=_="",d=o;break;case 58:d=1+as(_),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&lU()==125)continue}switch(_+=xg(v),v*h){case 38:y=u>0?1:(_+="\f",-1);break;case 44:a[l++]=(as(_)-1)*y,y=1;break;case 64:ys()===45&&(_+=Dh(Jr())),f=ys(),u=d=as(b=_+=pU(Rh())),v++;break;case 45:m===45&&as(_)==2&&(h=0)}}return s}function H0(t,e,n,r,i,s,o,a,c,l,u){for(var d=i-1,f=i===0?s:[""],p=yw(f),m=0,h=0,g=0;m<r;++m)for(var y=0,v=Ad(t,d+1,d=rU(h=o[m])),b=t;y<p;++y)(b=RC(h>0?f[y]+" "+v:Kt(v,/&\f/g,f[y])))&&(c[g++]=b);return Ig(t,e,n,i===0?mw:a,c,l,u)}function mU(t,e,n){return Ig(t,e,n,OC,xg(cU()),Ad(t,2,-2),0)}function W0(t,e,n,r){return Ig(t,e,n,gw,Ad(t,0,r),Ad(t,r+1,-1),r)}function gl(t,e){for(var n="",r=yw(t),i=0;i<r;i++)n+=e(t[i],i,t,e)||"";return n}function gU(t,e,n,r){switch(t.type){case nU:if(t.children.length)break;case tU:case gw:return t.return=t.return||t.value;case OC:return"";case CC:return t.return=t.value+"{"+gl(t.children,r)+"}";case mw:t.value=t.props.join(",")}return as(n=gl(t.children,r))?t.return=t.value+"{"+n+"}":""}function yU(t){var e=yw(t);return function(n,r,i,s){for(var o="",a=0;a<e;a++)o+=t[a](n,r,i,s)||"";return o}}function vU(t){return function(e){e.root||(e=e.return)&&t(e)}}function bU(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var _U=function(e,n,r){for(var i=0,s=0;i=s,s=ys(),i===38&&s===12&&(n[r]=1),!Nd(s);)Jr();return Xf(e,jr)},wU=function(e,n){var r=-1,i=44;do switch(Nd(i)){case 0:i===38&&ys()===12&&(n[r]=1),e[r]+=_U(jr-1,n,r);break;case 2:e[r]+=Dh(i);break;case 4:if(i===44){e[++r]=ys()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=xg(i)}while(i=Jr());return e},EU=function(e,n){return AC(wU(kC(e),n))},q0=new WeakMap,SU=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,i=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!q0.get(r))&&!i){q0.set(e,!0);for(var s=[],o=EU(n,s),a=r.props,c=0,l=0;c<o.length;c++)for(var u=0;u<a.length;u++,l++)e.props[l]=s[c]?o[c].replace(/&\f/g,a[u]):a[u]+" "+o[c]}}},xU=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function NC(t,e){switch(sU(t,e)){case 5103:return Yt+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Yt+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return Yt+t+am+t+lr+t+t;case 6828:case 4268:return Yt+t+lr+t+t;case 6165:return Yt+t+lr+"flex-"+t+t;case 5187:return Yt+t+Kt(t,/(\w+).+(:[^]+)/,Yt+"box-$1$2"+lr+"flex-$1$2")+t;case 5443:return Yt+t+lr+"flex-item-"+Kt(t,/flex-|-self/,"")+t;case 4675:return Yt+t+lr+"flex-line-pack"+Kt(t,/align-content|flex-|-self/,"")+t;case 5548:return Yt+t+lr+Kt(t,"shrink","negative")+t;case 5292:return Yt+t+lr+Kt(t,"basis","preferred-size")+t;case 6060:return Yt+"box-"+Kt(t,"-grow","")+Yt+t+lr+Kt(t,"grow","positive")+t;case 4554:return Yt+Kt(t,/([^-])(transform)/g,"$1"+Yt+"$2")+t;case 6187:return Kt(Kt(Kt(t,/(zoom-|grab)/,Yt+"$1"),/(image-set)/,Yt+"$1"),t,"")+t;case 5495:case 3959:return Kt(t,/(image-set\([^]*)/,Yt+"$1$`$1");case 4968:return Kt(Kt(t,/(.+:)(flex-)?(.*)/,Yt+"box-pack:$3"+lr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Yt+t+t;case 4095:case 3583:case 4068:case 2532:return Kt(t,/(.+)-inline(.+)/,Yt+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(as(t)-1-e>6)switch(ir(t,e+1)){case 109:if(ir(t,e+4)!==45)break;case 102:return Kt(t,/(.+:)(.+)-([^]+)/,"$1"+Yt+"$2-$3$1"+am+(ir(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~bb(t,"stretch")?NC(Kt(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(ir(t,e+1)!==115)break;case 6444:switch(ir(t,as(t)-3-(~bb(t,"!important")&&10))){case 107:return Kt(t,":",":"+Yt)+t;case 101:return Kt(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Yt+(ir(t,14)===45?"inline-":"")+"box$3$1"+Yt+"$2$3$1"+lr+"$2box$3")+t}break;case 5936:switch(ir(t,e+11)){case 114:return Yt+t+lr+Kt(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Yt+t+lr+Kt(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Yt+t+lr+Kt(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Yt+t+lr+t+t}return t}var TU=function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case gw:e.return=NC(e.value,e.length);break;case CC:return gl([Lu(e,{value:Kt(e.value,"@","@"+Yt)})],i);case mw:if(e.length)return aU(e.props,function(s){switch(oU(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return gl([Lu(e,{props:[Kt(s,/:(read-\w+)/,":"+am+"$1")]})],i);case"::placeholder":return gl([Lu(e,{props:[Kt(s,/:(plac\w+)/,":"+Yt+"input-$1")]}),Lu(e,{props:[Kt(s,/:(plac\w+)/,":"+am+"$1")]}),Lu(e,{props:[Kt(s,/:(plac\w+)/,lr+"input-$1")]})],i)}return""})}},IU=[TU],OU=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(h){var g=h.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var i=e.stylisPlugins||IU,s={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(h){for(var g=h.getAttribute("data-emotion").split(" "),y=1;y<g.length;y++)s[g[y]]=!0;a.push(h)});var c,l=[SU,xU];{var u,d=[gU,vU(function(h){u.insert(h)})],f=yU(l.concat(i,d)),p=function(g){return gl(hU(g),f)};c=function(g,y,v,b){u=v,p(g?g+"{"+y.styles+"}":y.styles),b&&(m.inserted[y.name]=!0)}}var m={key:n,sheet:new eU({key:n,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:c};return m.sheet.hydrate(a),m},PC={exports:{}},sn={};/** @license React v16.13.1
5
5
  * react-is.production.min.js
@@ -454,7 +454,7 @@ Sentry.init({ replaysOnErrorSampleRate: ${u} })`),this._initialOptions.errorSamp
454
454
  "modules": []
455
455
  }
456
456
  ]
457
- }`,examples:[]},local:{schema:"",initialValue:"{}",examples:[]}}}]},hle=t=>t!=null;ae.any().refine(t=>hle(t));function mle(){return ae.object({__typename:ae.literal("AddChangeLogItemInput").optional(),content:ae.string(),id:ae.string(),insertBefore:ae.string().nullable()})}function gle(){return ae.object({description:ae.string().nullish(),id:ae.string(),name:ae.string()})}function yle(){return ae.object({errorCode:ae.string().nullish(),errorDescription:ae.string().nullish(),errorName:ae.string().nullish(),errorTemplate:ae.string().nullish(),id:ae.string(),operationId:ae.string()})}function vle(){return ae.object({example:ae.string(),id:ae.string(),operationId:ae.string()})}function ble(){return ae.object({description:ae.string().nullish(),id:ae.string(),moduleId:ae.string(),name:ae.string(),reducer:ae.string().nullish(),schema:ae.string().nullish(),template:ae.string().nullish(),scope:F2().nullish()})}function _le(){return ae.object({scope:ae.string(),example:ae.string(),id:ae.string(),insertBefore:ae.string().nullish()})}function wle(){return ae.object({__typename:ae.literal("DeleteChangeLogItemInput").optional(),id:ae.string()})}function Ele(){return ae.object({id:ae.string()})}function Sle(){return ae.object({id:ae.string()})}function xle(){return ae.object({id:ae.string()})}function Tle(){return ae.object({id:ae.string()})}function Ile(){return ae.object({scope:ae.string(),id:ae.string()})}function F2(){return ae.literal("global").or(ae.literal("local"))}function Ole(){return ae.object({newModuleId:ae.string(),operationId:ae.string()})}function Cle(){return ae.object({__typename:ae.literal("ReorderChangeLogItemsInput").optional(),order:ae.array(ae.string())})}function Rle(){return ae.object({moduleId:ae.string(),order:ae.array(ae.string())})}function Dle(){return ae.object({order:ae.array(ae.string())})}function kle(){return ae.object({operationId:ae.string(),order:ae.array(ae.string())})}function Ale(){return ae.object({operationId:ae.string(),order:ae.array(ae.string())})}function Nle(){return ae.object({scope:ae.string(),order:ae.array(ae.string())})}function Ple(){return ae.object({authorName:ae.string()})}function Mle(){return ae.object({authorWebsite:ae.string()})}function Lle(){return ae.object({scope:ae.string(),initialValue:ae.string()})}function Fle(){return ae.object({description:ae.string()})}function $le(){return ae.object({extension:ae.string()})}function jle(){return ae.object({id:ae.string()})}function Ule(){return ae.object({name:ae.string()})}function Ble(){return ae.object({description:ae.string().nullish(),id:ae.string()})}function zle(){return ae.object({id:ae.string(),name:ae.string().nullish()})}function Vle(){return ae.object({description:ae.string().nullish(),id:ae.string()})}function Hle(){return ae.object({errorCode:ae.string().nullish(),id:ae.string()})}function Wle(){return ae.object({errorDescription:ae.string().nullish(),id:ae.string()})}function qle(){return ae.object({errorName:ae.string().nullish(),id:ae.string()})}function Gle(){return ae.object({errorTemplate:ae.string().nullish(),id:ae.string()})}function Zle(){return ae.object({id:ae.string(),name:ae.string().nullish()})}function Yle(){return ae.object({id:ae.string(),scope:F2()})}function Kle(){return ae.object({id:ae.string(),reducer:ae.string().nullish()})}function Jle(){return ae.object({id:ae.string(),schema:ae.string().nullish()})}function Xle(){return ae.object({id:ae.string(),template:ae.string().nullish()})}function Qle(){return ae.object({scope:ae.string(),schema:ae.string()})}function eue(){return ae.object({__typename:ae.literal("UpdateChangeLogItemInput").optional(),id:ae.string(),newContent:ae.string()})}function tue(){return ae.object({example:ae.string(),id:ae.string()})}function nue(){return ae.object({scope:ae.string(),id:ae.string(),newExample:ae.string()})}const Jc={setModelNameOperation(t,e){t.name=e.input.name},setModelIdOperation(t,e){t.id=e.input.id},setModelExtensionOperation(t,e){t.extension=e.input.extension},setModelDescriptionOperation(t,e){t.description=e.input.description},setAuthorNameOperation(t,e){t.author=t.author||{name:"",website:null},t.author.name=e.input.authorName},setAuthorWebsiteOperation(t,e){t.author=t.author||{name:"",website:null},t.author.website=e.input.authorWebsite}},Yu={addChangeLogItemOperation(t,e){throw new Error('Reducer "addChangeLogItemOperation" not yet implemented')},updateChangeLogItemOperation(t,e){throw new Error('Reducer "updateChangeLogItemOperation" not yet implemented')},deleteChangeLogItemOperation(t,e){throw new Error('Reducer "deleteChangeLogItemOperation" not yet implemented')},reorderChangeLogItemsOperation(t,e){throw new Error('Reducer "reorderChangeLogItemsOperation" not yet implemented')},releaseNewVersionOperation(t,e){throw new Error('Reducer "releaseNewVersionOperation" not yet implemented')}},rue=t=>{const e={};return t.forEach((n,r)=>e[n]=r),(n,r)=>(e[r.id]||999999)-(e[n.id]||999999)},Ku={addModuleOperation(t,e){t.specifications[t.specifications.length-1].modules.push({id:e.input.id,name:e.input.name,description:e.input.description||"",operations:[]})},setModuleNameOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)n.modules[r].id===e.input.id&&(n.modules[r].name=e.input.name||"")},setModuleDescriptionOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)n.modules[r].id===e.input.id&&(n.modules[r].description=e.input.description||"")},deleteModuleOperation(t,e){const n=t.specifications[t.specifications.length-1];n.modules=n.modules.filter(r=>r.id!=e.input.id)},reorderModulesOperation(t,e){t.specifications[t.specifications.length-1].modules.sort(rue(e.input.order))}},iue=t=>{const e={};return t.forEach((n,r)=>e[n]=r),(n,r)=>(e[r.id]||999999)-(e[n.id]||999999)},Oa={addOperationErrorOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let i=0;i<n.modules[r].operations.length;i++)n.modules[r].operations[i].id==e.input.operationId&&n.modules[r].operations[i].errors.push({id:e.input.id,name:e.input.errorName||"",code:e.input.errorCode||"",description:e.input.errorDescription||"",template:e.input.errorTemplate||""})},setOperationErrorCodeOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let i=0;i<n.modules[r].operations.length;i++)for(let s=0;s<n.modules[r].operations[i].errors.length;s++)n.modules[r].operations[i].errors[s].id==e.input.id&&(n.modules[r].operations[i].errors[s].code=e.input.errorCode||"")},setOperationErrorNameOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let i=0;i<n.modules[r].operations.length;i++)for(let s=0;s<n.modules[r].operations[i].errors.length;s++)n.modules[r].operations[i].errors[s].id==e.input.id&&(n.modules[r].operations[i].errors[s].name=e.input.errorName||"")},setOperationErrorDescriptionOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let i=0;i<n.modules[r].operations.length;i++)for(let s=0;s<n.modules[r].operations[i].errors.length;s++)n.modules[r].operations[i].errors[s].id==e.input.id&&(n.modules[r].operations[i].errors[s].description=e.input.errorDescription||"")},setOperationErrorTemplateOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let i=0;i<n.modules[r].operations.length;i++)for(let s=0;s<n.modules[r].operations[i].errors.length;s++)n.modules[r].operations[i].errors[s].id==e.input.id&&(n.modules[r].operations[i].errors[s].template=e.input.errorTemplate||"")},deleteOperationErrorOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let i=0;i<n.modules[r].operations.length;i++)n.modules[r].operations[i].errors=n.modules[r].operations[i].errors.filter(s=>s.id!=e.input.id)},reorderOperationErrorsOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let i=0;i<n.modules[r].operations.length;i++)n.modules[r].operations[i].id==e.input.operationId&&n.modules[r].operations[i].errors.sort(iue(e.input.order))}},sue=t=>{const e={};return t.forEach((n,r)=>e[n]=r),(n,r)=>(e[r.id]||999999)-(e[n.id]||999999)},Sh={addOperationExampleOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let i=0;i<n.modules[r].operations.length;i++)n.modules[r].operations[i].id==e.input.operationId&&n.modules[r].operations[i].examples.push({id:e.input.id,value:e.input.example})},updateOperationExampleOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let i=0;i<n.modules[r].operations.length;i++)for(let s=0;s<n.modules[r].operations[i].examples.length;s++)n.modules[r].operations[i].examples[s].id==e.input.id&&(n.modules[r].operations[i].examples[s].value=e.input.example)},deleteOperationExampleOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let i=0;i<n.modules[r].operations.length;i++)n.modules[r].operations[i].examples=n.modules[r].operations[i].examples.filter(s=>s.id!=e.input.id)},reorderOperationExamplesOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let i=0;i<n.modules[r].operations.length;i++)n.modules[r].operations[i].id==e.input.operationId&&n.modules[r].operations[i].examples.sort(sue(e.input.order))}},oue=t=>{const e={};return t.forEach((n,r)=>e[n]=r),(n,r)=>(e[r.id]||999999)-(e[n.id]||999999)},es={addOperationOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)n.modules[r].id==e.input.moduleId&&n.modules[r].operations.push({id:e.input.id,name:e.input.name,description:e.input.description||"",schema:e.input.schema||"",template:e.input.template||e.input.description||"",reducer:e.input.reducer||"",errors:[],examples:[],scope:e.input.scope||"global"})},setOperationNameOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let i=0;i<n.modules[r].operations.length;i++)n.modules[r].operations[i].id==e.input.id&&(n.modules[r].operations[i].name=e.input.name||"")},setOperationScopeOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let i=0;i<n.modules[r].operations.length;i++)n.modules[r].operations[i].id==e.input.id&&(n.modules[r].operations[i].scope=e.input.scope||"global")},setOperationSchemaOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let i=0;i<n.modules[r].operations.length;i++)n.modules[r].operations[i].id==e.input.id&&(n.modules[r].operations[i].schema=e.input.schema||"")},setOperationDescriptionOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let i=0;i<n.modules[r].operations.length;i++)n.modules[r].operations[i].id==e.input.id&&(n.modules[r].operations[i].description=e.input.description||"")},setOperationTemplateOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let i=0;i<n.modules[r].operations.length;i++)n.modules[r].operations[i].id==e.input.id&&(n.modules[r].operations[i].template=e.input.template||"")},setOperationReducerOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let i=0;i<n.modules[r].operations.length;i++)n.modules[r].operations[i].id==e.input.id&&(n.modules[r].operations[i].reducer=e.input.reducer||"")},moveOperationOperation(t,e){const n=[],r=t.specifications[t.specifications.length-1];for(let i=0;i<r.modules.length;i++)r.modules[i].operations=r.modules[i].operations.filter(s=>s.id==e.input.operationId?(n.push(s),!1):!0);for(let i=0;i<r.modules.length;i++)r.modules[i].id==e.input.newModuleId&&r.modules[i].operations.push(...n)},deleteOperationOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)n.modules[r].operations=n.modules[r].operations.filter(i=>i.id!=e.input.id)},reorderModuleOperationsOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)n.modules[r].id==e.input.moduleId&&n.modules[r].operations.sort(oue(e.input.order))}},aue=t=>{const e={};return t.forEach((n,r)=>e[n]=r),(n,r)=>(e[r.id]||999999)-(e[n.id]||999999)},Xc={setStateSchemaOperation(t,e){const n=t.specifications[t.specifications.length-1];if(Object.keys(n.state).includes(e.input.scope))n.state[e.input.scope].schema=e.input.schema;else throw new Error(`Invalid scope: ${e.input.scope}`)},setInitialStateOperation(t,e){const n=t.specifications[t.specifications.length-1];if(Object.keys(n.state).includes(e.input.scope))n.state[e.input.scope].initialValue=e.input.initialValue;else throw new Error(`Invalid scope: ${e.input.scope}`)},addStateExampleOperation(t,e){const n=t.specifications[t.specifications.length-1];if(Object.keys(n.state).includes(e.input.scope))n.state[e.input.scope].examples.push({id:e.input.id,value:e.input.example});else throw new Error(`Invalid scope: ${e.input.scope}`)},updateStateExampleOperation(t,e){const n=t.specifications[t.specifications.length-1];if(!Object.keys(n.state).includes(e.input.scope))throw new Error(`Invalid scope: ${e.input.scope}`);const r=n.state[e.input.scope].examples;for(let i=0;i<r.length;i++)r[i].id==e.input.id&&(r[i].value=e.input.newExample)},deleteStateExampleOperation(t,e){const n=t.specifications[t.specifications.length-1];if(Object.keys(n.state).includes(e.input.scope))n.state[e.input.scope].examples=n.state[e.input.scope].examples.filter(r=>r.id!=e.input.id);else throw new Error(`Invalid scope: ${e.input.scope}`)},reorderStateExamplesOperation(t,e){const n=t.specifications[t.specifications.length-1];if(Object.keys(n.state).includes(e.input.scope))n.state[e.input.scope].examples.sort(aue(e.input.order));else throw new Error(`Invalid scope: ${e.input.scope}`)}},cue=(t,e)=>{if(Kl(e))return t;switch(e.type){case"SET_MODEL_NAME":Ule().parse(e.input),Jc.setModelNameOperation(t.global,e);break;case"SET_MODEL_ID":jle().parse(e.input),Jc.setModelIdOperation(t.global,e);break;case"SET_MODEL_EXTENSION":$le().parse(e.input),Jc.setModelExtensionOperation(t.global,e);break;case"SET_MODEL_DESCRIPTION":Fle().parse(e.input),Jc.setModelDescriptionOperation(t.global,e);break;case"SET_AUTHOR_NAME":Ple().parse(e.input),Jc.setAuthorNameOperation(t.global,e);break;case"SET_AUTHOR_WEBSITE":Mle().parse(e.input),Jc.setAuthorWebsiteOperation(t.global,e);break;case"ADD_CHANGE_LOG_ITEM":mle().parse(e.input),Yu.addChangeLogItemOperation(t.global,e);break;case"UPDATE_CHANGE_LOG_ITEM":eue().parse(e.input),Yu.updateChangeLogItemOperation(t.global,e);break;case"DELETE_CHANGE_LOG_ITEM":wle().parse(e.input),Yu.deleteChangeLogItemOperation(t.global,e);break;case"REORDER_CHANGE_LOG_ITEMS":Cle().parse(e.input),Yu.reorderChangeLogItemsOperation(t.global,e);break;case"RELEASE_NEW_VERSION":if(Object.keys(e.input).length>0)throw new Error("Expected empty input for action RELEASE_NEW_VERSION");Yu.releaseNewVersionOperation(t.global,e);break;case"ADD_MODULE":gle().parse(e.input),Ku.addModuleOperation(t.global,e);break;case"SET_MODULE_NAME":zle().parse(e.input),Ku.setModuleNameOperation(t.global,e);break;case"SET_MODULE_DESCRIPTION":Ble().parse(e.input),Ku.setModuleDescriptionOperation(t.global,e);break;case"DELETE_MODULE":Ele().parse(e.input),Ku.deleteModuleOperation(t.global,e);break;case"REORDER_MODULES":Dle().parse(e.input),Ku.reorderModulesOperation(t.global,e);break;case"ADD_OPERATION_ERROR":yle().parse(e.input),Oa.addOperationErrorOperation(t.global,e);break;case"SET_OPERATION_ERROR_CODE":Hle().parse(e.input),Oa.setOperationErrorCodeOperation(t.global,e);break;case"SET_OPERATION_ERROR_NAME":qle().parse(e.input),Oa.setOperationErrorNameOperation(t.global,e);break;case"SET_OPERATION_ERROR_DESCRIPTION":Wle().parse(e.input),Oa.setOperationErrorDescriptionOperation(t.global,e);break;case"SET_OPERATION_ERROR_TEMPLATE":Gle().parse(e.input),Oa.setOperationErrorTemplateOperation(t.global,e);break;case"DELETE_OPERATION_ERROR":Sle().parse(e.input),Oa.deleteOperationErrorOperation(t.global,e);break;case"REORDER_OPERATION_ERRORS":kle().parse(e.input),Oa.reorderOperationErrorsOperation(t.global,e);break;case"ADD_OPERATION_EXAMPLE":vle().parse(e.input),Sh.addOperationExampleOperation(t.global,e);break;case"UPDATE_OPERATION_EXAMPLE":tue().parse(e.input),Sh.updateOperationExampleOperation(t.global,e);break;case"DELETE_OPERATION_EXAMPLE":xle().parse(e.input),Sh.deleteOperationExampleOperation(t.global,e);break;case"REORDER_OPERATION_EXAMPLES":Ale().parse(e.input),Sh.reorderOperationExamplesOperation(t.global,e);break;case"ADD_OPERATION":ble().parse(e.input),es.addOperationOperation(t.global,e);break;case"SET_OPERATION_NAME":Zle().parse(e.input),es.setOperationNameOperation(t.global,e);break;case"SET_OPERATION_SCOPE":Yle().parse(e.input),es.setOperationScopeOperation(t.global,e);break;case"SET_OPERATION_SCHEMA":Jle().parse(e.input),es.setOperationSchemaOperation(t.global,e);break;case"SET_OPERATION_DESCRIPTION":Vle().parse(e.input),es.setOperationDescriptionOperation(t.global,e);break;case"SET_OPERATION_TEMPLATE":Xle().parse(e.input),es.setOperationTemplateOperation(t.global,e);break;case"SET_OPERATION_REDUCER":Kle().parse(e.input),es.setOperationReducerOperation(t.global,e);break;case"MOVE_OPERATION":Ole().parse(e.input),es.moveOperationOperation(t.global,e);break;case"DELETE_OPERATION":Tle().parse(e.input),es.deleteOperationOperation(t.global,e);break;case"REORDER_MODULE_OPERATIONS":Rle().parse(e.input),es.reorderModuleOperationsOperation(t.global,e);break;case"SET_STATE_SCHEMA":Qle().parse(e.input),Xc.setStateSchemaOperation(t.global,e);break;case"SET_INITIAL_STATE":Lle().parse(e.input),Xc.setInitialStateOperation(t.global,e);break;case"ADD_STATE_EXAMPLE":_le().parse(e.input),Xc.addStateExampleOperation(t.global,e);break;case"UPDATE_STATE_EXAMPLE":nue().parse(e.input),Xc.updateStateExampleOperation(t.global,e);break;case"DELETE_STATE_EXAMPLE":Ile().parse(e.input),Xc.deleteStateExampleOperation(t.global,e);break;case"REORDER_STATE_EXAMPLES":Nle().parse(e.input),Xc.reorderStateExamplesOperation(t.global,e);break;default:return t}},yg=zE(cue),lue={id:"",name:"",extension:"",description:"",author:{name:"",website:""},specifications:[{version:1,changeLog:[],state:{global:{schema:"",initialValue:"",examples:[]},local:{schema:"",initialValue:"",examples:[]}},modules:[]}]},uue={},kd={fileExtension:"phdm",createState(t){return{global:{...lue,...t==null?void 0:t.global},local:{...uue,...t==null?void 0:t.local}}},createExtendedState(t){return VE({...t,documentType:"powerhouse/document-model"},kd.createState)},createDocument(t){return HE(kd.createExtendedState(t),kd.createState)},saveToFile(t,e,n){return UE(t,e,"phdm",n)},saveToFileHandle(t,e){return vA(t,e)},loadFromFile(t){return Lm(t,yg)},loadFromInput(t){return BE(t,yg)}},$2=t=>ft("SET_MODEL_NAME",{...t}),j2=t=>ft("SET_MODEL_ID",{...t}),U2=t=>ft("SET_MODEL_EXTENSION",{...t}),B2=t=>ft("SET_MODEL_DESCRIPTION",{...t}),z2=t=>ft("SET_AUTHOR_NAME",{...t}),V2=t=>ft("SET_AUTHOR_WEBSITE",{...t});class due extends ii{setModelName(e,n){return this.dispatch($2(e),n)}setModelId(e,n){return this.dispatch(j2(e),n)}setModelExtension(e,n){return this.dispatch(U2(e),n)}setModelDescription(e,n){return this.dispatch(B2(e),n)}setAuthorName(e,n){return this.dispatch(z2(e),n)}setAuthorWebsite(e,n){return this.dispatch(V2(e),n)}}const H2=t=>ft("ADD_CHANGE_LOG_ITEM",{...t}),W2=t=>ft("UPDATE_CHANGE_LOG_ITEM",{...t}),q2=t=>ft("DELETE_CHANGE_LOG_ITEM",{...t}),G2=t=>ft("REORDER_CHANGE_LOG_ITEMS",{...t}),Z2=()=>ft("RELEASE_NEW_VERSION");class fue extends ii{addChangeLogItem(e,n){return this.dispatch(H2(e),n)}updateChangeLogItem(e,n){return this.dispatch(W2(e),n)}deleteChangeLogItem(e,n){return this.dispatch(q2(e),n)}reorderChangeLogItems(e,n){return this.dispatch(G2(e),n)}releaseNewVersion(e){return this.dispatch(Z2(),e)}}const Y2=t=>ft("ADD_MODULE",{...t}),K2=t=>ft("SET_MODULE_NAME",{...t}),J2=t=>ft("SET_MODULE_DESCRIPTION",{...t}),X2=t=>ft("DELETE_MODULE",{...t}),Q2=t=>ft("REORDER_MODULES",{...t});class pue extends ii{addModule(e,n){return this.dispatch(Y2(e),n)}setModuleName(e,n){return this.dispatch(K2(e),n)}setModuleDescription(e,n){return this.dispatch(J2(e),n)}deleteModule(e,n){return this.dispatch(X2(e),n)}reorderModules(e,n){return this.dispatch(Q2(e),n)}}const eF=t=>ft("ADD_OPERATION_ERROR",{...t}),tF=t=>ft("SET_OPERATION_ERROR_CODE",{...t}),nF=t=>ft("SET_OPERATION_ERROR_NAME",{...t}),rF=t=>ft("SET_OPERATION_ERROR_DESCRIPTION",{...t}),iF=t=>ft("SET_OPERATION_ERROR_TEMPLATE",{...t}),sF=t=>ft("DELETE_OPERATION_ERROR",{...t}),oF=t=>ft("REORDER_OPERATION_ERRORS",{...t});class hue extends ii{addOperationError(e,n){return this.dispatch(eF(e),n)}setOperationErrorCode(e,n){return this.dispatch(tF(e),n)}setOperationErrorName(e,n){return this.dispatch(nF(e),n)}setOperationErrorDescription(e,n){return this.dispatch(rF(e),n)}setOperationErrorTemplate(e,n){return this.dispatch(iF(e),n)}deleteOperationError(e,n){return this.dispatch(sF(e),n)}reorderOperationErrors(e,n){return this.dispatch(oF(e),n)}}const aF=t=>ft("ADD_OPERATION_EXAMPLE",{...t}),cF=t=>ft("UPDATE_OPERATION_EXAMPLE",{...t}),lF=t=>ft("DELETE_OPERATION_EXAMPLE",{...t}),uF=t=>ft("REORDER_OPERATION_EXAMPLES",{...t});class mue extends ii{addOperationExample(e,n){return this.dispatch(aF(e),n)}updateOperationExample(e,n){return this.dispatch(cF(e),n)}deleteOperationExample(e,n){return this.dispatch(lF(e),n)}reorderOperationExamples(e,n){return this.dispatch(uF(e),n)}}const dF=t=>ft("ADD_OPERATION",{...t}),fF=t=>ft("SET_OPERATION_NAME",{...t}),pF=t=>ft("SET_OPERATION_SCOPE",{...t}),hF=t=>ft("SET_OPERATION_SCHEMA",{...t}),mF=t=>ft("SET_OPERATION_DESCRIPTION",{...t}),gF=t=>ft("SET_OPERATION_TEMPLATE",{...t}),yF=t=>ft("SET_OPERATION_REDUCER",{...t}),vF=t=>ft("MOVE_OPERATION",{...t}),bF=t=>ft("DELETE_OPERATION",{...t}),_F=t=>ft("REORDER_MODULE_OPERATIONS",{...t});class gue extends ii{addOperation(e,n){return this.dispatch(dF(e),n)}setOperationName(e,n){return this.dispatch(fF(e),n)}setOperationScope(e,n){return this.dispatch(pF(e),n)}setOperationSchema(e,n){return this.dispatch(hF(e),n)}setOperationDescription(e,n){return this.dispatch(mF(e),n)}setOperationTemplate(e,n){return this.dispatch(gF(e),n)}setOperationReducer(e,n){return this.dispatch(yF(e),n)}moveOperation(e,n){return this.dispatch(vF(e),n)}deleteOperation(e,n){return this.dispatch(bF(e),n)}reorderModuleOperations(e,n){return this.dispatch(_F(e),n)}}const wF=t=>ft("SET_STATE_SCHEMA",{...t}),EF=t=>ft("SET_INITIAL_STATE",{...t}),SF=t=>ft("ADD_STATE_EXAMPLE",{...t}),xF=t=>ft("UPDATE_STATE_EXAMPLE",{...t}),TF=t=>ft("DELETE_STATE_EXAMPLE",{...t}),IF=t=>ft("REORDER_STATE_EXAMPLES",{...t});class yue extends ii{setStateSchema(e,n){return this.dispatch(wF(e),n)}setInitialState(e,n){return this.dispatch(EF(e),n)}addStateExample(e,n){return this.dispatch(SF(e),n)}updateStateExample(e,n){return this.dispatch(xF(e),n)}deleteStateExample(e,n){return this.dispatch(TF(e),n)}reorderStateExamples(e,n){return this.dispatch(IF(e),n)}}let OF=(Eh=class extends ii{constructor(t,e){super(yg,kd.createDocument(t),e)}saveToFile(t,e){return super.saveToFile(t,Eh.fileExtension,e)}loadFromFile(t){return super.loadFromFile(t)}static async fromFile(t){const e=new this;return await e.loadFromFile(t),e}},Qce(Eh,"fileExtension","phdm"),Eh);ZE(OF,[due,fue,pue,hue,mue,gue,yue]);const vue=Object.freeze(Object.defineProperty({__proto__:null,addChangeLogItem:H2,addModule:Y2,addOperation:dF,addOperationError:eF,addOperationExample:aF,addStateExample:SF,deleteChangeLogItem:q2,deleteModule:X2,deleteOperation:bF,deleteOperationError:sF,deleteOperationExample:lF,deleteStateExample:TF,moveOperation:vF,releaseNewVersion:Z2,reorderChangeLogItems:G2,reorderModuleOperations:_F,reorderModules:Q2,reorderOperationErrors:oF,reorderOperationExamples:uF,reorderStateExamples:IF,setAuthorName:z2,setAuthorWebsite:V2,setInitialState:EF,setModelDescription:B2,setModelExtension:U2,setModelId:j2,setModelName:$2,setModuleDescription:J2,setModuleName:K2,setOperationDescription:mF,setOperationErrorCode:tF,setOperationErrorDescription:rF,setOperationErrorName:nF,setOperationErrorTemplate:iF,setOperationName:fF,setOperationReducer:yF,setOperationSchema:hF,setOperationScope:pF,setOperationTemplate:gF,setStateSchema:wF,updateChangeLogItem:W2,updateOperationExample:cF,updateStateExample:xF},Symbol.toStringTag,{value:"Module"})),bue=OF,_ue={...kd,...fle},wue={...GE,...vue},Eue={Document:bue,reducer:yg,actions:wue,utils:_ue,documentModel:ple};function Sue(t){const e=rn(0),n=rn(()=>({i:0}),(c,l)=>{const u=c(n);return Object.assign(u,{m:!0,peek:c,set:l}),l(e,d=>d+1),()=>{u.m=!1,o(u),a(u)}});n.onMount=c=>c();const r=rn(c=>{c(e);const l=c(n);if(!l.m||l.irc||l.i&&!l.irf)return l.p;a(l);const u=new Map,d=h=>{const g=c(h);return u.set(h,g),g};d.peek=l.peek;const f=(...h)=>{try{return++l.i,l.set(...h)}finally{Array.from(u.keys(),c),--l.i}};f.recurse=(h,...g)=>{if(!l.fc)try{return l.irc=!0,l.set(h,...g)}finally{l.irc=!1,Array.from(u).some(p)&&s(l)}};function p([h,g]){return c(h)!==g}++l.i;function m(){try{if(l.irf=!1,!l.m)return;o(l),l.c=i.effect(d,f)}catch(h){l.e=h,s(l)}finally{l.p=void 0,--l.i}}return l.irf?m():l.p=Promise.resolve().then(m)}),i=rn(c=>void c(r));return i.effect=t,i;function s(c){try{c.irf=!0,c.set(e,l=>l+1)}finally{c.irf=!1}}function o(c){if(typeof c.c=="function")try{c.fc=!0,c.c()}finally{c.fc=!1,c.c=void 0}}function a(c){if("e"in c){const l=c.e;throw delete c.e,l}}}const xh=new WeakMap;function xue(t,e=VA()){xh.has(e)||xh.set(e,new Map);const n=xh.get(e);let r=n.get(t);if(!r){const i=Sue(t);let s=e.sub(i,()=>{});r=()=>{s&&(n.delete(t),n.size===0&&xh.delete(e),s=void s())},n.set(t,r)}return r}const Tue="feature-flags-config",Xh=window.__VITE_ENVS.PH_CONNECT_ENABLED_EDITORS||void 0,Iue=Xh==null?void 0:Xh.split(","),Qh=window.__VITE_ENVS.PH_CONNECT_DISABLED_EDITORS||"powerhouse/document-drive",Oue=Qh==null?void 0:Qh.split(","),CF={editors:{enabledEditors:Xh==="*"?"*":Iue,disabledEditors:Qh==="*"?"*":Oue}},Cue=pp(Tue,CF),Rue=()=>{const[t,e]=yi(Cue);return{config:{...CF,...t},setConfig:e}},Due=YZ("theme","light",t=>{var e;typeof window<"u"&&((e=window.electronAPI)==null||e.setTheme(t))}),y0=YE(),kue=pp("sidebar-collapsed",!1);rn(!1);const Aue={sidebarCollapsedAtom:kue,themeAtom:Due};async function Fy(){if(import.meta.resolve("PH:HMR_MODULE").toLowerCase()!=="ph:hmr_module")try{return(await xe(()=>import("PH:HMR_MODULE"),[])).default}catch{return}}async function Nue(t){const e=await Fy();if(!e)throw new Error("HMR not available.");return new Promise(n=>{function r(i){t===i.name&&(n(),e==null||e.off("studio:external-package-added",r))}e.on("studio:external-package-added",r),e.send("studio:add-external-package",{name:t})})}async function Pue(t){const e=await Fy();if(!e)throw new Error("HMR not available.");return new Promise(n=>{function r(i){t===i.name&&(n(),e==null||e.off("studio:external-package-removed",r))}e.on("studio:external-package-removed",r),e.send("studio:remove-external-package",{name:t})})}async function Mue(t){const e=await Fy(),n=r=>{const i=xe(()=>import(`${r.url}?t=${r.timestamp}`),[]);t(i.then(s=>s.default))};return e==null||e.on("studio:external-packages-updated",n),()=>{e==null||e.off("studio:external-packages-updated",n)}}const Lue=window.__VITE_ENVS.LOAD_EXTERNAL_PACKAGES,Fue=Lue==="true";function $ue(){return Fue?xe(()=>import("PH:EXTERNAL_PACKAGES"),[]).then(t=>t.default):Promise.resolve([])}const jue=rn(async()=>typeof await Fy()<"u"),Uue=()=>Dc(jue),v0=KE($ue);let DO;v0.onMount=t=>{DO||(DO=Mue(e=>{t(e)}))};const Bue=()=>Dc(v0),zue=window.__VITE_ENVS.LOCAL_DOCUMENT_MODELS,Vue=[YP,Eue];function Hue(...t){const e=new Map;for(const n of t)for(const r of n)e.set(r.documentModel.id,r);return Array.from(e.values())}function Wue(t){return t.map(e=>e.documentModels).reduce((e,n)=>e.concat(n),[])}async function que(){if(!zue)return[];try{const t=await xe(()=>import("LOCAL_DOCUMENT_MODELS"),[]);return console.log("Loaded local document models:",t),Object.values(t)}catch(t){return console.error("Error loading local document models",t),[]}}const Gue=KE(que),b0=rn(async t=>{const e=await t(Gue),n=await t(v0),r=Wue(n);return Hue(Vue,r,e)}),Zue=YA(b0),RF=()=>Dc(Zue),Yue=function(t){const e=xue(n=>{n(b0).then(t).catch(i=>{throw i})},y0);return()=>e()};function Kue(t,e){return e==null?void 0:e.find(n=>n.documentModel.id===t)}const DF=()=>{const t=RF();return e=>Kue(e,t)},Jue=()=>{const t=RF(),{config:e}=Rue(),{enabledEditors:n,disabledEditors:r}=e.editors;if(!t)return;const i=t.filter(s=>s.documentModel.id!=="powerhouse/document-drive");return n==="*"?t:r==="*"?[]:r?i.filter(s=>!r.includes(s.documentModel.id)):n?i.filter(s=>n.includes(s.documentModel.id)):i};function Xue(t){let e=!1;const n=Object.entries(t.operations).reduce((r,[i,s])=>{const o=i;for(const a of s){const c=Que(a);r[o].push(c),c!==a&&(e=!0)}return r},{global:[],local:[]});return e?{...t,operations:n}:t}function Que(t){var n;if(!((n=t.context)!=null&&n.signer)||t.context.signer.signatures)return t;const{signer:e}=t.context;if("signature"in e){const r=e.signature;return{...t,context:{...t.context,signer:{user:e.user,app:e.app,signatures:r!=null&&r.length?[r]:[]}}}}else return t}const nr=class nr{constructor(e){qe(this,"db");this.db=IO.ready().then(()=>IO.createInstance({name:e?`${e}:${nr.DBName}`:nr.DBName}))}buildKey(...e){return e.join(nr.SEP)}async checkDocumentExists(e,n){return!!await(await this.db).getItem(this.buildKey(e,n))}async getDocuments(e){const r=await(await this.db).keys(),i=`${e}${nr.SEP}`;return r.filter(s=>s.startsWith(i)).map(s=>s.slice(i.length))}async getDocument(e,n){const r=await(await this.db).getItem(this.buildKey(e,n));if(!r)throw new Error(`Document with id ${n} not found`);return r}async createDocument(e,n,r){await(await this.db).setItem(this.buildKey(e,n),r)}async deleteDocument(e,n){await(await this.db).removeItem(this.buildKey(e,n))}async clearStorage(){return(await this.db).clear()}async addDocumentOperations(e,n,r,i){const s=await this.getDocument(e,n);if(!s)throw new Error(`Document with id ${n} not found`);const o=Xm(s.operations,r);await(await this.db).setItem(this.buildKey(e,n),{...s,...i,operations:o})}async getDrives(){return(await(await this.db).keys()).filter(r=>r.startsWith(nr.DRIVES_KEY)).map(r=>r.slice(nr.DRIVES_KEY.length+nr.SEP.length))}async getDrive(e){const r=await(await this.db).getItem(this.buildKey(nr.DRIVES_KEY,e));if(!r)throw new Td(e);return r}async getDriveBySlug(e){const n=(await this.getDrives()).reverse();for(const r of n)if((await this.getDrive(r)).initialState.state.global.slug===e)return this.getDrive(r);throw new Error(`Drive with slug ${e} not found`)}async createDrive(e,n){await(await this.db).setItem(this.buildKey(nr.DRIVES_KEY,e),n)}async deleteDrive(e){const n=await this.getDocuments(e);return await Promise.all(n.map(r=>this.deleteDocument(e,r))),(await this.db).removeItem(this.buildKey(nr.DRIVES_KEY,e))}async addDriveOperations(e,n,r){const i=await this.getDrive(e),s=Xm(i.operations,n);await(await this.db).setItem(this.buildKey(nr.DRIVES_KEY,e),{...i,...r,operations:s})}async getSynchronizationUnitsRevision(e){return(await Promise.allSettled(e.map(async r=>{try{const i=await(r.documentId?this.getDocument(r.driveId,r.documentId):this.getDrive(r.driveId));if(!i)return;const s=i.operations[r.scope].at(-1);if(s)return{driveId:r.driveId,documentId:r.documentId,scope:r.scope,branch:r.branch,lastUpdated:s.timestamp,revision:s.index}}catch{return}}))).reduce((r,i)=>(i.status==="fulfilled"&&i.value!==void 0&&r.push(i.value),r),[])}async migrateOperationSignatures(){const e=await this.getDrives();for(const n of e){await this.migrateDocument(nr.DRIVES_KEY,n);const r=await this.getDocuments(n);await Promise.all(r.map(async i=>this.migrateDocument(n,i)))}}async migrateDocument(e,n){const r=await this.getDocument(e,n),i=Xue(r);if(i!==r)return(await this.db).setItem(this.buildKey(e,n),i)}};qe(nr,"DBName","DOCUMENT_DRIVES"),qe(nr,"SEP",":"),qe(nr,"DRIVES_KEY","DRIVES");let iw=nr;const kO=window.__VITE_ENVS.PH_CONNECT_DEFAULT_DRIVES_URL||void 0,rb=kO?kO.split(","):[],ede=()=>({defaultDrives:{remoteDrives:rb.map(e=>({url:e,options:{sharingType:"PUBLIC",availableOffline:!0,listeners:[{block:!0,callInfo:{data:e,name:"switchboard-push",transmitterType:"SwitchboardPush"},filter:{branch:["main"],documentId:["*"],documentType:["*"],scope:["global"]},label:"Switchboard Sync",listenerId:"1",system:!0}],triggers:[],pullInterval:3e3}})),removeOldRemoteDrives:rb.length>0?{strategy:"preserve-by-url-and-detach",urls:rb}:{strategy:"preserve-all"}}});function tde(t,e){return new tee(t,new iw(e),new JP,new QP(1,10),{...ede()})}async function nde(t){const e=await t.initialize(),n=e==null?void 0:e.at(0);if(n)throw n;!(await t.getDrives()).length&&Ai.drives.sections.LOCAL.enabled&&t.addDrive({global:{id:Gt.hashKey(),name:"My Local Drive",icon:null,slug:"my-local-drive"},local:{availableOffline:!1,sharingType:"private",listeners:[],triggers:[]}}).catch(Bn.error)}async function rde(){var n;const t=await y0.get(b0),e=((n=window.electronAPI)==null?void 0:n.documentDrive)??tde(t,Ai.routerBasename);return await nde(e),e}const vg=KE(rde),ide=YA(vg),kF=()=>Dc(ide),sde=()=>Dc(AF),AF=rn(void 0);AF.onMount=t=>{const e=vg.onMount;vg.onMount=n=>(n(r=>(r.then(i=>t(i)).catch(console.error),r)),e==null?void 0:e(n))};let ib;vg.onMount=t=>{ib||t(async e=>{const n=await e;return ib||(ib=Yue(r=>{n.setDocumentModels(r)})),n})};const em=(async()=>{if(window.connectCrypto)return window.connectCrypto;const{ConnectCrypto:t}=await xe(async()=>{const{ConnectCrypto:r}=await import("./index-1TcnY8Is.js");return{ConnectCrypto:r}},__vite__mapDeps([0,1,2,3])),{BrowserKeyStorage:e}=await xe(async()=>{const{BrowserKeyStorage:r}=await import("./browser-BbIPlSaA.js");return{BrowserKeyStorage:r}},[]),n=new t(new e);return await n.did(),n})();function _0(){return En(()=>({async regenerateDid(){return(await em).regenerateDid()},async did(){return(await em).did()},sign:async t=>await(await em).sign(t)}),[])}const ode=rn(void 0);function ade(){const[t,e]=yi(ode);return jt(()=>{t||em.then(n=>n.did()).then(n=>e(n)).catch(Bn.error)}),t}const cde=rn(window.renown?Promise.resolve(window.renown):void 0);function NF(){const[t,e]=yi(cde),{did:n}=_0();async function r(i){const s=await i();if(!s)return;const{initRenownBrowser:o}=await xe(async()=>{const{initRenownBrowser:l}=await import("./browser-CNIY9JaP.js");return{initRenownBrowser:l}},__vite__mapDeps([4,5,1,6,2,3])),a=o(s);return{user:function(){return Promise.resolve(a.user)},login:function(l){return a.login(l)},logout(){return Promise.resolve(a.logout())},on:{user(l){return a.on("user",l)}}}}return t||e(r(n)),t}let Th=!1;const lde=rn(void 0),PF=()=>{const[t,e]=yi(lde),n=NF();return jt(()=>{var i;let r=null;if(t){const{credential:s,...o}=t;r={id:o.did,username:(i=o.ens)==null?void 0:i.name,...o}}Dte(r)},[t]),jt(()=>{if(Th)return;Th=!0,n==null||n.user().then(i=>{e(i||null)}).catch(()=>{e(null)});const r=n==null?void 0:n.on.user(i=>{e(i||null)});return()=>{r==null||r(),Th=!1}},[n,Th]),t},ude=parseInt("50");function dme(t,e,n=Bn.error){const[r,i]=Qe(e),[s,o]=Qe(),a=l=>{o(l),n(l)};return jt(()=>{i(e),o(void 0)},[e]),[r,(l,u,d)=>{o(void 0),i(f=>{if(!t||!f)return f;try{const p=t(f,l),m=l.scope??"global",h=p.operations[m],g=h[h.length-1];if(g.error){const y=new Error(g.error);a(y),d==null||d(y)}return u==null||u(g,{prevState:{...f},newState:{...p}}),p}catch(p){return a(p),d==null||d(p),f}})},s]}const sb=(...t)=>{};async function dde(t,e,n,r,i,s){const o=(s==null?void 0:s.operationsLimit)||ude;sb(`uploadDocumentOperations(drive: ${t}, documentId:${e}, ops: ${Object.keys(n.operations).join(",")}, limit:${o})`);for(const a of Object.values(n.operations))for(let c=0;c<a.length;c+=o){sb(`uploadDocumentOperations:for(i:${c}, ops:${a.length}, limit:${o}): START`);const l=a.slice(c,c+o),u=l.at(-1);if(!u)break;const{scope:d}=u;await i(t,e,l),sb(`uploadDocumentOperations:for:waitForUpdate(${e}:${d} rev ${u.index}): NEXT`)}}const fde=async t=>{(await Gt.createZip(t)).generateAsync({type:"blob"}).then(n=>{const r=window.document.createElement("a");r.style.display="none",r.href=URL.createObjectURL(n),r.download=`${t.name||"Untitled"}.zip`,window.document.body.appendChild(r),r.click(),window.document.body.removeChild(r)}).catch(Bn.error)};async function fme(t,e){var i,s;const n=e(t.documentType);if(!n)throw new Error(`Document model not supported: ${t.documentType}`);const r=n.utils.fileExtension;if(!window.showSaveFilePicker){await fde(t);return}try{const o=await window.showSaveFilePicker({suggestedName:`${t.name||((i=t.state.global)==null?void 0:i.name)||"Untitled"}.${r?`${r}.`:""}zip`});await n.utils.saveToFileHandle(t,o);const a=(await o.getFile()).path;return typeof window<"u"&&((s=window.electronAPI)==null||s.fileSaved(t,a)),a}catch(o){if(!(o instanceof DOMException&&o.name==="AbortError"))throw o}}async function pde(t,e){const n=await Gt.loadFromInput(t,i=>i,{checkHashes:!0}),r=e(n.documentType);if(!r)throw new Error(`Document "${n.documentType}" is not supported`);return r.utils.loadFromInput(t)}async function hde(t,e,n,r,i,s){if(!s||!t.context||!t.context.signer)return t;if(!i)return Bn.error(`Document model '${r.documentType}' does not have a reducer`),t;const o={documentId:n,signer:t.context.signer};return await Gt.buildSignedOperation(t,i,r,o,e)}function mde(t,e,n){return n?{context:{signer:{app:{name:"Connect",key:e||""},user:{address:n.address,networkId:n.networkId,chainId:n.chainId},signatures:[]}},...t}:t}const AO=rn(new Map);function sw(t){return Object.keys(t.operations).map(e=>{var n;return`${e}:${t.operations[e].length}:${(n=t.operations[e].at(-1))==null?void 0:n.hash}`}).join(":")}function bg(t){return t.map(sw).join("&")}const gde=t=>()=>rn(e=>t?e(AO).get(t)??[]:[],(e,n,r)=>{n(AO,i=>{if(!t)return new Map;const s=i.get(t)??[];return s.length!==r.length||bg(s)!==bg(r)?new Map(i).set(t,r):i})}),yde=jZ(()=>rn("INITIAL"));function MF(){const t=kF(),[e,n]=yi(En(gde(t),[t])),r=Te(async()=>{if(!t)return;const a=[];try{const c=await t.getDrives();for(const l of c)try{const u=await t.getDrive(l);a.push(u)}catch(u){Bn.error(u)}}catch(c){Bn.error(c)}finally{n(a)}},[t]),[i,s]=yi(yde(t));i==="INITIAL"&&(s("LOADING"),r().then(()=>s("LOADED")).catch(()=>s("ERROR")));const o=Te(a=>{if(!t)return;const c=t.on("syncStatus",async(f,p,m)=>{m&&Bn.error(m),await r()}),l=t.on("strandUpdate",()=>r()),u=t.on("clientStrandsError",a.strandsErrorHandler),d=t.on("defaultRemoteDrive",()=>r());return()=>{c(),l(),u(),d()}},[t,r]);return En(()=>[e,r,o,i],[e,i])}const vde=window.__VITE_ENVS.PH_CONNECT_RENOWN_URL||"https://www.renown.id",bde=window.__VITE_ENVS.PH_CONNECT_RENOWN_NETWORK_ID||"eip155",_de=window.__VITE_ENVS.PH_CONNECT_RENOWN_CHAIN_ID||"1",wde=rn("initial"),Ede=()=>{const[t,e]=yi(wde),n=PF(),r=NF(),{did:i}=_0(),s=Te(async()=>{var u;const c=await i(),l=new URL(vde);if(l.searchParams.set("connect",c),l.searchParams.set("network",bde),l.searchParams.set("chain",_de),window.electronAPI){const d=await window.electronAPI.protocol();l.searchParams.set("deeplink",d),await window.electronAPI.openURL(l.toString())}else{const d=new URL(window.location.pathname,window.location.origin);l.searchParams.set("returnUrl",d.toJSON()),(u=window.open(l,"_self"))==null||u.focus()}},[i]),o=Te(async c=>{if(r)try{e("checking");const l=await r.user();if((l==null?void 0:l.did)===c)return e("authorized"),l;const u=await r.login(c);if(u)return e("authorized"),u;e("not-authorized")}catch(l){e("not-authorized"),Bn.error(l)}},[r]);jt(()=>{n&&t!=="authorized"&&e("authorized")},[n,t]);const a=Te(async()=>{e("initial"),await(r==null?void 0:r.logout())},[r]);return En(()=>({openRenown:s,user:n,status:n?"authorized":t,login:r?o:void 0,logout:a}),[r,s,n,t,o,a])};function Sde(){const{user:t,status:e}=Ede(),n=window.__VITE_ENVS.PH_CONNECT_ARBITRUM_ALLOW_LIST,r=window.__VITE_ENVS.PH_CONNECT_RWA_ALLOW_LIST,i=!!n&&n!=="",s=!!r&&r!=="";if(i&&s)throw new Error("Both Arbitrum and RWA allow lists are defined. Please only define one.");if(!i&&!s)return{isAllowed:!0,allowListType:"none"};if(t!==void 0){if(i){const o=n.split(",");return e!=="authorized"||!t?{isAllowed:!1,allowListType:"arbitrum"}:o.includes(t.address)?{isAllowed:!0,allowListType:"arbitrum"}:{isAllowed:!1,allowListType:"arbitrum"}}if(s){const o=r.split(",");return e!=="authorized"||!t?{isAllowed:!1,allowListType:"rwa"}:o.includes(t.address)?{isAllowed:!0,allowListType:"rwa"}:{isAllowed:!1,allowListType:"rwa"}}return{isAllowed:!0,allowListType:"none"}}}function w0(){const t=Sde();if(!t)return;const{allowListType:e,isAllowed:n}=t;return e==="arbitrum"?{isAllowedToCreateDocuments:n,isAllowedToEditDocuments:!0}:e==="rwa"?{isAllowedToCreateDocuments:n,isAllowedToEditDocuments:n}:{isAllowedToCreateDocuments:!0,isAllowedToEditDocuments:!0}}function Cp(){const{isAllowedToCreateDocuments:t,isAllowedToEditDocuments:e}=w0()||{isAllowedToCreateDocuments:!1,isAllowedToEditDocuments:!1},n=PF()||void 0,r=ade(),{sign:i}=_0(),s=kF(),o=DF(),[a,c,,l]=MF(),u=Te(async(L,G)=>{if(!s)throw new Error("Reactor is not loaded");const U=await s.getDocument(L,G);if(!U)throw new Error(`There was an error opening file with id ${G} on drive ${L}`);return U},[s]),d=Te(async(L,G)=>{if(!s)throw new Error("Reactor is not loaded");let U=a.find(le=>le.state.global.id===L);if(!U)throw new Error(`Drive with id ${L} not found`);const C={...U};U=vc(U,mde(G,r,n));const Z=G.scope??"global",V=U.operations[Z].findLast(le=>le.type===G.type);if(!V)throw new Error("There was an error applying the operation");const ce=await hde(V,i,L,C,vc,n);try{const le=await s.queueDriveOperation(L,ce);if(le.status!=="SUCCESS"&&Bn.error(le.error),le.operations.length&&await c(),le.document&&!Ra(le.document))throw new Error("Received document is not a Document Drive");return le.document}catch(le){return Bn.error(le),U}},[a,c,s,i,n,r]),f=Te(async(L,G,U,C,Z)=>{if(!t)throw new Error("User is not allowed to create documents");const H=Gt.hashKey();let V=a.find(ge=>ge.state.global.id===L);if(!V)throw new Error(`Drive with id ${L} not found`);const ce=PS(V.state.global,{id:H,name:G,parentFolder:C??null,documentType:U,document:Z},["global"]);V=await d(L,ce);const le=V==null?void 0:V.state.global.nodes.find(ge=>ge.id===H);if(!le||!Lr(le))throw new Error("There was an error adding document");return le},[d,a,t]),p=Te(async(L,G,U)=>{if(!e)throw new Error("User is not allowed to edit documents");if(!s)throw new Error("Reactor is not loaded");if(!a.find(H=>H.state.global.id===L))throw new Error(`Drive with id ${L} not found`);return(await s.queueOperations(L,G,U)).document},[a,e,s]),m=Te(async(L,G,U,C)=>{if(!s)throw new Error("Reactor is not loaded");if(!t)throw new Error("User is not allowed to create files");const Z=await pde(L,o),H={...Z.initialState,initialState:Z.initialState,operations:{global:[],local:[]},clipboard:[]},V=await f(G,U||(typeof L=="string"?Z.name:L.name),Z.documentType,C,H),ce=a.find(ge=>ge.state.global.id===G),le=ce&&ce.state.local.listeners.length>0;dde(G,V.id,Z,s,p,{waitForSync:le}).catch(ge=>{throw ge})},[f,p,o,t,s]),h=Te(async(L,G,U,C,Z)=>{if(!t)throw new Error("User is not allowed to update files");const H=await d(L,rr.updateFile({id:G,name:C||void 0,parentFolder:Z,documentType:U})),V=H==null?void 0:H.state.global.nodes.find(ce=>ce.id===G);if(!V||!Lr(V))throw new Error("There was an error updating document");return V},[d,t]),g=Te(async(L,G,U)=>{if(!t)throw new Error("User is not allowed to create folders");const C=Gt.hashKey(),Z=await d(L,rr.addFolder({id:C,name:G,parentFolder:U})),H=Z==null?void 0:Z.state.global.nodes.find(V=>V.id===C);if(!H||!gy(H))throw new Error("There was an error adding folder");return H},[d,t]),y=Te(async(L,G)=>{if(!t)throw new Error("User is not allowed to delete documents");await d(L,rr.deleteNode({id:G}))},[d,t]),v=Te(async(L,G,U)=>{if(!t)throw new Error("User is not allowed to rename documents");const C=await d(L,rr.updateNode({id:G,name:U})),Z=C==null?void 0:C.state.global.nodes.find(H=>H.id===G);if(!Z)throw new Error("There was an error renaming node");return Z},[d,t]),b=Te(async(L,G)=>{if(!t)throw new Error("User is not allowed to move documents");G.kind===sr||L.parentFolder===G.id||await d(G.driveId,rr.moveNode({srcFolder:L.id,targetParentFolder:G.id}))},[d,t]),E=Te(async(L,G)=>{if(!s)throw new Error("Reactor is not loaded");if(!t)throw new Error("User is not allowed to copy documents");if(G.kind===sr)return;const U=a.find(ce=>ce.state.global.id===L.driveId);if(!U)return;const C=()=>Gt.hashKey(),H=$f.generateNodesCopy({srcId:L.id,targetParentFolder:G.id,targetName:L.name},C,U.state.global.nodes).map(ce=>rr.copyNode(ce)),V=await s.addDriveActions(L.driveId,H);V.operations.length?await c():V.status!=="SUCCESS"&&Bn.error(`Error copying files: ${V.status}`,V.error)},[a,t,c,s]),w=Te(async(L,G,U)=>{if(!e)throw new Error("User is not allowed to edit documents");if(!s)throw new Error("Reactor is not loaded");if(!a.find(H=>H.state.global.id===L))throw new Error(`Drive with id ${L} not found`);return(await s.addOperation(L,G,U)).document},[a,e,s]),S=Te(async L=>{if(!s)throw new Error("Reactor is not loaded");if(!t)throw new Error("User is not allowed to create drives");const G=L.global.id||Gt.hashKey();L=$f.createState(L);const U=await s.addDrive({global:{...L.global,id:G},local:L.local});return await c(),U},[t,c,s]),_=Te(async(L,G)=>{if(!s)throw new Error("Reactor is not loaded");const U=await s.addRemoteDrive(L,G);return await c(),U},[c,s]),O=Te(async L=>{if(!t)throw new Error("User is not allowed to delete drives");if(!s)throw new Error("Reactor is not loaded");if(!a.find(U=>U.state.global.id===L))throw new Error(`Drive with id ${L} not found`);return await s.deleteDrive(L),c()},[a,t,c,s]),M=Te(async(L,G)=>{if(!t)throw new Error("User is not allowed to rename drives");return d(L,rr.setDriveName({name:G}))},[d,t]),F=Te(async(L,G)=>{if(!t)throw new Error("User is not allowed to change drive availability");return d(L,rr.setAvailableOffline({availableOffline:G}))},[d,t]),q=Te(async(L,G)=>{if(!t)throw new Error("User is not allowed to change drive availability");return d(L,rr.setSharingType({type:G}))},[d,t]),I=Te(async(L,G)=>{if(G!==Js){if(!s)throw new Error("Reactor is not loaded");try{const U=s.getSyncStatus(L);return U instanceof XP?"INITIAL_SYNC":U}catch(U){return console.error(U),P8}}},[s]),$=Te(L=>{if(!s)throw new Error("Reactor is not loaded");return s.on("strandUpdate",L)},[s]),x=Te(L=>{if(!s)throw new Error("Reactor is not loaded");return s.on("syncStatus",L)},[s]),A=Te(async()=>{s&&(await s.clearStorage(),await c())},[c,s]),P=Te(async(L,G)=>{const U=await d(L,rr.removeTrigger({triggerId:G}));if(U==null?void 0:U.state.local.triggers.find(Z=>Z.id===G))throw new Error(`There was an error removing trigger ${G}`)},[d]),B=Te(async(L,G,U)=>{if(!s)throw new Error("Reactor is not loaded");return await s.registerPullResponderTrigger(L,G,U)},[s]),J=Te(async(L,G)=>{const U=await d(L,rr.addTrigger({trigger:G}));if(!(U==null?void 0:U.state.local.triggers.find(Z=>Z.id===Z.id)))throw new Error(`There was an error adding the trigger ${G.id}`)},[d]);return En(()=>({documentDrives:a,documentDrivesStatus:l,addDocument:f,openFile:u,addFile:m,updateFile:h,addFolder:g,deleteNode:y,renameNode:v,moveNode:b,copyNode:E,addOperation:w,addOperations:p,addDrive:S,addRemoteDrive:_,deleteDrive:O,renameDrive:M,setDriveAvailableOffline:F,setDriveSharingType:q,getSyncStatus:I,onStrandUpdate:$,onSyncStatus:x,clearStorage:A,removeTrigger:P,addTrigger:J,registerNewPullResponderTrigger:B}),[f,S,m,g,w,p,_,J,A,E,O,y,a,l,I,b,$,x,u,B,P,M,v,F,q,h])}function ow(t){return t.replaceAll(/\s/g,"-")}const xde=t=>{const{open:e,onClose:n,selectedParentNode:r,setSelectedNode:i,documentModel:s}=t,{addDocument:o}=Cp();return T(SH,{open:e,onContinue:async c=>{if(n(),!r)throw new Error("No drive or folder selected");const l=await o(r.driveId,c||`New ${s.documentModel.name}`,s.documentModel.id,r.id);l&&i({...l,slug:ow(l.name),kind:sr,documentType:l.documentType,parentFolder:r.id,driveId:r.driveId,syncStatus:r.syncStatus,synchronizationUnits:[],sharingType:r.sharingType})},onOpenChange:c=>{if(!c)return n()}})},Tde=rn(Ai);function E0(){return yi(Tde)}let Ih;const Ide=new Uint8Array(16);function Ode(){if(!Ih&&(Ih=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ih))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ih(Ide)}const tr=[];for(let t=0;t<256;++t)tr.push((t+256).toString(16).slice(1));function Cde(t,e=0){return tr[t[e+0]]+tr[t[e+1]]+tr[t[e+2]]+tr[t[e+3]]+"-"+tr[t[e+4]]+tr[t[e+5]]+"-"+tr[t[e+6]]+tr[t[e+7]]+"-"+tr[t[e+8]]+tr[t[e+9]]+"-"+tr[t[e+10]]+tr[t[e+11]]+tr[t[e+12]]+tr[t[e+13]]+tr[t[e+14]]+tr[t[e+15]]}const Rde=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),NO={randomUUID:Rde};function PO(t,e,n){if(NO.randomUUID&&!t)return NO.randomUUID();t=t||{};const r=t.random||(t.rng||Ode)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Cde(r)}const Dde=t=>{var q;const[e]=E0(),{open:n,onClose:r}=t,i=localStorage.getItem("AUTO_REGISTER_PULL_RESPONDER")!=="false";console.log("autoRegisterPullResponder",i);const[s,o]=Qe(e.appVersion),[a,c]=Qe({label:Np.debug?"Enabled":"Disabled",value:Np.debug}),[l,u]=Qe(),[d,f]=Qe(null),[p,m]=Qe(""),[h,g]=Qe({label:i?"Enabled":"Disabled",value:i?"true":"false"}),{documentDrives:y,removeTrigger:v,addTrigger:b,registerNewPullResponderTrigger:E}=Cp();jt(()=>{Np.setDebug(a.value)},[a]),console.log("documentDrives",y),console.log("selectedDrive",l);const w=((q=y.find(I=>I.state.global.id===l))==null?void 0:q.state.local.triggers)||[],_=!l||p==="",O=async()=>{!d||!l||(await v(l,d.value),f(null))},M=async(I=!1)=>{if(!(!p||p===""||!l)){if(!I){const $=await E(l,p,{pullInterval:3e3});await b(l,$),m("");return}await b(l,{id:`invalid-trigger-${PO()}`,type:"PullResponder",data:{interval:"3000",listenerId:`ivalid-listener-${PO()}`,url:p}}),m("")}},F=I=>{g(I),localStorage.setItem("AUTO_REGISTER_PULL_RESPONDER",I.value)};return T(ho,{open:n,onOpenChange:I=>{if(!I)return r()},contentProps:{className:"rounded-2xl"},children:_e("div",{className:"w-[700px] rounded-2xl p-6",children:[_e("div",{className:"mb-6 flex justify-between",children:[T("div",{className:"text-xl font-bold",children:"Debug Tools"}),T("button",{id:"close-modal",onClick:()=>r(),children:T(ze,{name:"Xmark",size:28})})]}),_e("div",{className:"flex text-sm font-bold",children:[T(ze,{name:"Ring",size:22}),_e("span",{className:"ml-2",children:["App Version: ",e.appVersion]})]}),_e("div",{className:"mt-4 flex text-sm font-bold",children:[T(ze,{name:"Hdd",size:22}),T("span",{className:"ml-2",children:"Drive Tools:"})]}),_e("div",{children:[T("label",{htmlFor:"selectedDrive",className:"text-xs",children:"Selected Drive:"}),T(jp,{id:"selectedDrive",onChange:I=>{if(!I||typeof I!="object"||!("value"in I)){u(void 0),f(null);return}u(I.value),f(null)},options:y.map(I=>({label:I.state.global.name,value:I.state.global.id}))})]}),T("div",{className:"mt-2 flex items-end justify-between pl-4",children:_e("div",{className:"w-[400px]",children:[T("label",{htmlFor:"autoRegisterPullResponder",className:"text-xs",children:"Auto register pull responder:"}),T(jp,{id:"autoRegisterPullResponder",onChange:I=>{F(I)},value:h,options:[{label:"Enabled",value:"true"},{label:"Disabled",value:"false"}]})]})}),_e("div",{className:"mt-2 flex items-end justify-between pl-4",children:[_e("div",{className:"w-[400px]",children:[T("label",{htmlFor:"driveTrigger",className:"text-xs",children:"Drive trigger:"}),T(jp,{id:"driveTrigger",onChange:I=>{f(I)},value:d,options:w.map(I=>({label:`${I.id} - ${I.type}`,value:I.id}))})]}),T("div",{children:T(Pr,{onClick:O,color:d?"red":"light",disabled:!d,size:"small",children:"Remove Trigger"})})]}),_e("div",{className:"mt-2 flex items-end justify-between pl-4",children:[_e("div",{className:"w-[400px]",children:[T("label",{htmlFor:"driveUrl",className:"text-xs",children:"Add drive trigger:"}),T(rc,{containerClassName:"p-1 bg-white border border-gray-200 rounded-md text-sm",inputClassName:"text-xs font-normal",id:"driveUrl",icon:T("div",{className:"flex h-full items-center text-xs",children:"URL:"}),value:p,onChange:I=>m(I.target.value)})]}),_e("div",{className:"mb-1 flex items-center justify-center",children:[T(Pr,{className:"mr-2",color:_?"light":"blue",size:"small",disabled:_,onClick:()=>M(),children:"Add Trigger"}),T(Pr,{color:_?"light":"red",size:"small",disabled:_,onClick:()=>M(!0),children:"Add Invalid Trigger"})]})]}),_e("div",{className:"mt-4 flex text-sm font-bold",children:[T(ze,{name:"Gear",size:22}),T("span",{className:"ml-2",children:"Service Worker Tools:"})]}),T("div",{className:"mt-2 flex items-end justify-between pl-4",children:_e("div",{className:"w-[400px]",children:[T("label",{htmlFor:"serviceWorkerDebugMode",className:"text-xs",children:"Service Worker Debug Mode:"}),T(jp,{id:"serviceWorkerDebugMode",onChange:I=>{c(I)},value:a,options:[{label:"Enabled",value:!0},{label:"Disabled",value:!1}]})]})}),_e("div",{className:"mt-2 flex items-end justify-between pl-4",children:[_e("div",{className:"w-[400px]",children:[T("label",{htmlFor:"appVersion",className:"text-xs",children:"Set invalid app version:"}),T(rc,{containerClassName:"p-1 bg-white border border-gray-200 rounded-md text-sm",inputClassName:"text-xs font-normal",id:"appVersion",icon:T("div",{className:"flex h-full items-center text-xs",children:"Version:"}),value:s,onChange:I=>o(I.target.value)})]}),T("div",{className:"mb-1 flex items-center justify-center",children:T(Pr,{color:s===""?"light":"red",size:"small",disabled:s==="",onClick:()=>{Np.sendMessage({type:"SET_APP_VERSION",version:s}),o("")},children:"Add Invalid App Version"})})]})]})})},kde=t=>{const{open:e,onClose:n,uiDriveNode:r,onDelete:i}=t,{t:s}=ha();return T(xH,{open:e,driveName:r.name,onCancel:n,header:s("modals.deleteDrive.title",{label:r.name}),body:s("modals.deleteDrive.body"),inputPlaceholder:s("modals.deleteDrive.inputPlaceholder"),cancelLabel:s("common.cancel"),continueLabel:s("common.delete"),onContinue:()=>i(n),onOpenChange:o=>{if(!o)return n()}})},Ade=t=>{const{t:e}=ha(),{uiNode:n,open:r,onClose:i,onDelete:s}=t,{kind:o,name:a}=n;return T(TH,{open:r,onDelete:()=>s(i),onCancel:()=>i(),header:e(`modals.deleteItem.${o.toLowerCase()}.header`,{item:a}),body:e(`modals.deleteItem.${o.toLowerCase()}.body`),cancelLabel:e("common.cancel"),deleteLabel:e("common.delete")})},Nde=t=>{const{open:e,onClose:n}=t,{t:r}=ha();return T(G1,{open:e,header:r("modals.disclaimer.title"),body:r("modals.disclaimer.body"),closeLabel:"Close",onContinue:()=>n()})};function Pde(t){const{uiDriveNode:e,open:n,onRenameDrive:r,onDeleteDrive:i,onChangeAvailableOffline:s,onChangeSharingType:o,onClose:a}=t;return T(IH,{uiDriveNode:e,open:n,onRenameDrive:r,onDeleteDrive:i,onChangeAvailableOffline:s,onChangeSharingType:o,onOpenChange:c=>{if(!c)return a()}})}const Mde=()=>{const[t]=E0();return T(FW,{packageJson:p$,phCliVersion:typeof t.phCliVersion=="string"?t.phCliVersion:void 0})};var Lde=Object.defineProperty,Fde=Object.getOwnPropertyDescriptor,ks=(t,e,n,r)=>{for(var i=Fde(e,n),s=t.length-1,o;s>=0;s--)(o=t[s])&&(i=o(e,n,i)||i);return i&&Lde(e,n,i),i};function As(t,e,n){const r=n.value;n.value=function(...i){if(!this.server)throw new Error("Read mode document drive not initialized.");return r.apply(this,i)}}function $de(t){const e=Object.getPrototypeOf(t);Object.getOwnPropertyNames(e).forEach(r=>{const i=Object.getOwnPropertyDescriptor(e,r);i&&typeof i.value=="function"&&r!=="constructor"&&(t[r]=t[r].bind(t))})}class Ji{constructor(e){qe(this,"server");$de(this),this.server=e}getServer(){return this.server}setDocumentDrive(e){this.server=e}migrateReadDrive(e,n){return this.server.migrateReadDrive(e,n)}addReadDrive(e,n){return this.server.addReadDrive(e,n)}getReadDrives(){return this.server.getReadDrives()}getReadDriveBySlug(e){return this.server.getReadDriveBySlug(e)}getReadDrive(e){return this.server.getReadDrive(e)}getReadDriveContext(e){return this.server.getReadDriveContext(e)}fetchDrive(e){return this.server.fetchDrive(e)}fetchDocument(e,n,r){return this.server.fetchDocument(e,n,r)}deleteReadDrive(e){return this.server.deleteReadDrive(e)}onReadDrivesUpdate(e){return this.server.onReadDrivesUpdate(e)}}ks([As],Ji.prototype,"migrateReadDrive");ks([As],Ji.prototype,"addReadDrive");ks([As],Ji.prototype,"getReadDrives");ks([As],Ji.prototype,"getReadDriveBySlug");ks([As],Ji.prototype,"getReadDrive");ks([As],Ji.prototype,"getReadDriveContext");ks([As],Ji.prototype,"fetchDrive");ks([As],Ji.prototype,"fetchDocument");ks([As],Ji.prototype,"deleteReadDrive");ks([As],Ji.prototype,"onReadDrivesUpdate");const al=new Ji,LF=fu({...al,readDrives:[]});async function jde(t){const e=await t.getReadDrives();return(await Promise.all(e.map(r=>t.getReadDrive(r)))).filter(r=>!(r instanceof Da))}const Ude=t=>{const e=sde(),[n,r]=Qe([]),i=w0(),[s,o]=Qe(!1);jt(()=>{e&&(al.setDocumentDrive(e),o(!0))},[e]);const a=i===void 0?void 0:!(i.isAllowedToCreateDocuments||i.isAllowedToEditDocuments);En(()=>{if(!s||a===void 0)return;const l=a?"READ":"WRITE",u=al.getServer();u&&typeof u.setAllDefaultDrivesAccessLevel=="function"&&u.setAllDefaultDrivesAccessLevel(l).catch(Bn.error)},[a,s]),jt(()=>{if(!s)return;jde(al).then(u=>r(u)).catch(Bn.error);const l=al.onReadDrivesUpdate(u=>{r(d=>d.length!==u.length||bg(d)!==bg(u)?u:d)}).catch(Bn.error);return()=>{l.then(u=>u==null?void 0:u()).catch(Bn.error)}},[s]);const c=En(()=>({...al,readDrives:n}),[n]);return T(LF.Provider,{...t,value:c})},Bde=()=>da(LF);function zde(t,e=50){let n;const r=[];return i=>{n&&clearTimeout(n);const s=r.findIndex(o=>o.scope===i.scope&&o.index===i.index);if(s>-1){const o=r[s];o.type===i.type&&JSON.stringify(i.input)===JSON.stringify(o.input)||console.warn("Two conflicting operations were dispatched:",o,i),r[s]=i}else r.push(i);return new Promise((o,a)=>{n=setTimeout(()=>{t(r).then(o).catch(a)},e)})}}const Vde=rn(new Map),ob=rn(void 0);function Hde(t,e){return t===e?!0:!t||!e?!1:dc(t)===dc(e)}const tm=rn(t=>t(ob),(t,e,n)=>{const r=t(ob),i=t(Vde);return!(n!=null&&n.document)&&(n==null?void 0:n.status)==="LOADING"&&(n.document=i.get(`${n.driveId}:${n.documentId}`)),(r==null?void 0:r.driveId)!==(n==null?void 0:n.driveId)||(r==null?void 0:r.documentId)!==(n==null?void 0:n.documentId)||(r==null?void 0:r.documentType)!==(n==null?void 0:n.documentType)||(r==null?void 0:r.status)!==(n==null?void 0:n.status)||!!(r!=null&&r.document)!=!!(n!=null&&n.document)||r!=null&&r.document&&(n!=null&&n.document)&&sw(r.document)!==sw(n.document)?((n==null?void 0:n.status)==="LOADED"&&i.set(`${n.driveId}:${n.documentId}`,n.document),e(ob,n),!0):!1}),Wde=rn(null,(t,e,n)=>{const r=t(tm);if(r)n?Hde(n,r.document)||e(tm,{...r,document:n}):e(tm,void 0);else throw new Error("fileNodeDocument is undefined")}),qde=()=>GA(Wde);function Gde(t){const{selectedNode:e,selectedDriveNode:n,openFile:r,addOperations:i,onStrandUpdate:s,fetchDocument:o}=t,[a,c]=yi(tm),l=(n==null?void 0:n.sharingType)!=="LOCAL"&&(n==null?void 0:n.syncStatus)===void 0,u=e==null?void 0:e.driveId,d=e==null?void 0:e.id,f=e==null?void 0:e.name,p=e==null?void 0:e.kind,m=p==="FILE"?e==null?void 0:e.documentType:void 0,h=qde(),g=Te(async(E,w,S)=>{const _=await(l?o(E,w,S):r(E,w));if(_ instanceof Error)throw _;return _},[o,l,r]);jt(()=>{if(!u||!d||!m){a&&c(void 0);return}(u!==(a==null?void 0:a.driveId)||d!==a.documentId||m!==a.documentType||f!==a.name)&&c({driveId:u,documentId:d,documentType:m,name:f||"",document:void 0,status:"LOADING"})&&g(u,d,m).then(w=>c(w?{driveId:u,documentId:d,documentType:m,document:w,name:f||"",status:"LOADED"}:{driveId:u,documentId:d,documentType:m,document:w,name:f||"",status:"ERROR"})).catch(w=>{Bn.error(w),c({driveId:u,documentId:d,documentType:m,name:f||"",document:void 0,status:"ERROR"})})},[e,d,m,f,u,g,a,c]),jt(()=>!(a!=null&&a.driveId)||!a.documentId||!a.documentType?void 0:s(w=>{w.driveId===a.driveId&&w.documentId===a.documentId&&g(a.driveId,a.documentId,a.documentType).then(h).catch(Bn.error)}),[a==null?void 0:a.driveId,a==null?void 0:a.documentId,a==null?void 0:a.documentType,s,g,h]);const y=En(()=>{if(u&&d&&p===sr)return zde(E=>i(u,d,E))},[i,u,d,p]),v=p===sr&&(a==null?void 0:a.driveId)===u&&(a==null?void 0:a.documentId)===d,b=v?a==null?void 0:a.document:void 0;return En(()=>({fileNodeDocument:a,selectedDocument:b,setSelectedDocument:h,addOperationToSelectedDocument:y}),[a,v,b,h,y])}const S0=localStorage.getItem("CONNECT_DEBUG")==="true",Zde=[{sharingType:to,label:"Public Drives"},{sharingType:$l,label:"Secure Cloud Drives"},{sharingType:Js,label:"My Local Drives"}],MO=t=>Ai.drives.sections[t];function ab(t){const e=[...c5];return Ai.drives.sections[t].allowDelete&&e.push(Vg),S0&&e.push(...Pw),e}function cb(){const t=[...l5];return S0&&t.push(...Pw),t}function lb(){const t=[...u5];return S0&&t.push(...Pw),t}function Yde(){return{[Js]:{[qr]:ab(Js),[gd]:lb(),[sr]:cb()},[$l]:{[qr]:ab($l),[gd]:lb(),[sr]:cb()},[to]:{[qr]:ab(to),[gd]:lb(),[sr]:cb()}}}const pme=Zde.filter(t=>MO(t.sharingType).enabled).map(t=>{const e=MO(t.sharingType);return{...t,disableAddDrives:!e.allowAdd}});function FF(t){var o;const{documentDrives:e}=Cp();if(!t)return{drive:null,remoteUrl:null,isRemoteDrive:!1};const n=e.find(a=>a.state.global.id===t),r=n==null?void 0:n.state.local.triggers.find(a=>a.type==="PullResponder"),{remoteUrl:i}=(n==null?void 0:n.state.global)||{},s=!!i||!!r;return{drive:n,remoteUrl:i||((o=r==null?void 0:r.data)==null?void 0:o.url),isRemoteDrive:s}}var x0={exports:{}};x0.exports;(function(t){var e=function(){var n=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",s={};function o(c,l){if(!s[c]){s[c]={};for(var u=0;u<c.length;u++)s[c][c.charAt(u)]=u}return s[c][l]}var a={compressToBase64:function(c){if(c==null)return"";var l=a._compress(c,6,function(u){return r.charAt(u)});switch(l.length%4){default:case 0:return l;case 1:return l+"===";case 2:return l+"==";case 3:return l+"="}},decompressFromBase64:function(c){return c==null?"":c==""?null:a._decompress(c.length,32,function(l){return o(r,c.charAt(l))})},compressToUTF16:function(c){return c==null?"":a._compress(c,15,function(l){return n(l+32)})+" "},decompressFromUTF16:function(c){return c==null?"":c==""?null:a._decompress(c.length,16384,function(l){return c.charCodeAt(l)-32})},compressToUint8Array:function(c){for(var l=a.compress(c),u=new Uint8Array(l.length*2),d=0,f=l.length;d<f;d++){var p=l.charCodeAt(d);u[d*2]=p>>>8,u[d*2+1]=p%256}return u},decompressFromUint8Array:function(c){if(c==null)return a.decompress(c);for(var l=new Array(c.length/2),u=0,d=l.length;u<d;u++)l[u]=c[u*2]*256+c[u*2+1];var f=[];return l.forEach(function(p){f.push(n(p))}),a.decompress(f.join(""))},compressToEncodedURIComponent:function(c){return c==null?"":a._compress(c,6,function(l){return i.charAt(l)})},decompressFromEncodedURIComponent:function(c){return c==null?"":c==""?null:(c=c.replace(/ /g,"+"),a._decompress(c.length,32,function(l){return o(i,c.charAt(l))}))},compress:function(c){return a._compress(c,16,function(l){return n(l)})},_compress:function(c,l,u){if(c==null)return"";var d,f,p={},m={},h="",g="",y="",v=2,b=3,E=2,w=[],S=0,_=0,O;for(O=0;O<c.length;O+=1)if(h=c.charAt(O),Object.prototype.hasOwnProperty.call(p,h)||(p[h]=b++,m[h]=!0),g=y+h,Object.prototype.hasOwnProperty.call(p,g))y=g;else{if(Object.prototype.hasOwnProperty.call(m,y)){if(y.charCodeAt(0)<256){for(d=0;d<E;d++)S=S<<1,_==l-1?(_=0,w.push(u(S)),S=0):_++;for(f=y.charCodeAt(0),d=0;d<8;d++)S=S<<1|f&1,_==l-1?(_=0,w.push(u(S)),S=0):_++,f=f>>1}else{for(f=1,d=0;d<E;d++)S=S<<1|f,_==l-1?(_=0,w.push(u(S)),S=0):_++,f=0;for(f=y.charCodeAt(0),d=0;d<16;d++)S=S<<1|f&1,_==l-1?(_=0,w.push(u(S)),S=0):_++,f=f>>1}v--,v==0&&(v=Math.pow(2,E),E++),delete m[y]}else for(f=p[y],d=0;d<E;d++)S=S<<1|f&1,_==l-1?(_=0,w.push(u(S)),S=0):_++,f=f>>1;v--,v==0&&(v=Math.pow(2,E),E++),p[g]=b++,y=String(h)}if(y!==""){if(Object.prototype.hasOwnProperty.call(m,y)){if(y.charCodeAt(0)<256){for(d=0;d<E;d++)S=S<<1,_==l-1?(_=0,w.push(u(S)),S=0):_++;for(f=y.charCodeAt(0),d=0;d<8;d++)S=S<<1|f&1,_==l-1?(_=0,w.push(u(S)),S=0):_++,f=f>>1}else{for(f=1,d=0;d<E;d++)S=S<<1|f,_==l-1?(_=0,w.push(u(S)),S=0):_++,f=0;for(f=y.charCodeAt(0),d=0;d<16;d++)S=S<<1|f&1,_==l-1?(_=0,w.push(u(S)),S=0):_++,f=f>>1}v--,v==0&&(v=Math.pow(2,E),E++),delete m[y]}else for(f=p[y],d=0;d<E;d++)S=S<<1|f&1,_==l-1?(_=0,w.push(u(S)),S=0):_++,f=f>>1;v--,v==0&&(v=Math.pow(2,E),E++)}for(f=2,d=0;d<E;d++)S=S<<1|f&1,_==l-1?(_=0,w.push(u(S)),S=0):_++,f=f>>1;for(;;)if(S=S<<1,_==l-1){w.push(u(S));break}else _++;return w.join("")},decompress:function(c){return c==null?"":c==""?null:a._decompress(c.length,32768,function(l){return c.charCodeAt(l)})},_decompress:function(c,l,u){var d=[],f=4,p=4,m=3,h="",g=[],y,v,b,E,w,S,_,O={val:u(0),position:l,index:1};for(y=0;y<3;y+=1)d[y]=y;for(b=0,w=Math.pow(2,2),S=1;S!=w;)E=O.val&O.position,O.position>>=1,O.position==0&&(O.position=l,O.val=u(O.index++)),b|=(E>0?1:0)*S,S<<=1;switch(b){case 0:for(b=0,w=Math.pow(2,8),S=1;S!=w;)E=O.val&O.position,O.position>>=1,O.position==0&&(O.position=l,O.val=u(O.index++)),b|=(E>0?1:0)*S,S<<=1;_=n(b);break;case 1:for(b=0,w=Math.pow(2,16),S=1;S!=w;)E=O.val&O.position,O.position>>=1,O.position==0&&(O.position=l,O.val=u(O.index++)),b|=(E>0?1:0)*S,S<<=1;_=n(b);break;case 2:return""}for(d[3]=_,v=_,g.push(_);;){if(O.index>c)return"";for(b=0,w=Math.pow(2,m),S=1;S!=w;)E=O.val&O.position,O.position>>=1,O.position==0&&(O.position=l,O.val=u(O.index++)),b|=(E>0?1:0)*S,S<<=1;switch(_=b){case 0:for(b=0,w=Math.pow(2,8),S=1;S!=w;)E=O.val&O.position,O.position>>=1,O.position==0&&(O.position=l,O.val=u(O.index++)),b|=(E>0?1:0)*S,S<<=1;d[p++]=n(b),_=p-1,f--;break;case 1:for(b=0,w=Math.pow(2,16),S=1;S!=w;)E=O.val&O.position,O.position>>=1,O.position==0&&(O.position=l,O.val=u(O.index++)),b|=(E>0?1:0)*S,S<<=1;d[p++]=n(b),_=p-1,f--;break;case 2:return g.join("")}if(f==0&&(f=Math.pow(2,m),m++),d[_])h=d[_];else if(_===p)h=v+v.charAt(0);else return null;g.push(h),d[p++]=v+h.charAt(0),f--,v=h,f==0&&(f=Math.pow(2,m),m++)}}};return a}();t!=null?t.exports=e:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return e})})(x0);var Kde=x0.exports;const Jde=pa(Kde),Xde=`... on RealWorldAssets {
457
+ }`,examples:[]},local:{schema:"",initialValue:"{}",examples:[]}}}]},hle=t=>t!=null;ae.any().refine(t=>hle(t));function mle(){return ae.object({__typename:ae.literal("AddChangeLogItemInput").optional(),content:ae.string(),id:ae.string(),insertBefore:ae.string().nullable()})}function gle(){return ae.object({description:ae.string().nullish(),id:ae.string(),name:ae.string()})}function yle(){return ae.object({errorCode:ae.string().nullish(),errorDescription:ae.string().nullish(),errorName:ae.string().nullish(),errorTemplate:ae.string().nullish(),id:ae.string(),operationId:ae.string()})}function vle(){return ae.object({example:ae.string(),id:ae.string(),operationId:ae.string()})}function ble(){return ae.object({description:ae.string().nullish(),id:ae.string(),moduleId:ae.string(),name:ae.string(),reducer:ae.string().nullish(),schema:ae.string().nullish(),template:ae.string().nullish(),scope:F2().nullish()})}function _le(){return ae.object({scope:ae.string(),example:ae.string(),id:ae.string(),insertBefore:ae.string().nullish()})}function wle(){return ae.object({__typename:ae.literal("DeleteChangeLogItemInput").optional(),id:ae.string()})}function Ele(){return ae.object({id:ae.string()})}function Sle(){return ae.object({id:ae.string()})}function xle(){return ae.object({id:ae.string()})}function Tle(){return ae.object({id:ae.string()})}function Ile(){return ae.object({scope:ae.string(),id:ae.string()})}function F2(){return ae.literal("global").or(ae.literal("local"))}function Ole(){return ae.object({newModuleId:ae.string(),operationId:ae.string()})}function Cle(){return ae.object({__typename:ae.literal("ReorderChangeLogItemsInput").optional(),order:ae.array(ae.string())})}function Rle(){return ae.object({moduleId:ae.string(),order:ae.array(ae.string())})}function Dle(){return ae.object({order:ae.array(ae.string())})}function kle(){return ae.object({operationId:ae.string(),order:ae.array(ae.string())})}function Ale(){return ae.object({operationId:ae.string(),order:ae.array(ae.string())})}function Nle(){return ae.object({scope:ae.string(),order:ae.array(ae.string())})}function Ple(){return ae.object({authorName:ae.string()})}function Mle(){return ae.object({authorWebsite:ae.string()})}function Lle(){return ae.object({scope:ae.string(),initialValue:ae.string()})}function Fle(){return ae.object({description:ae.string()})}function $le(){return ae.object({extension:ae.string()})}function jle(){return ae.object({id:ae.string()})}function Ule(){return ae.object({name:ae.string()})}function Ble(){return ae.object({description:ae.string().nullish(),id:ae.string()})}function zle(){return ae.object({id:ae.string(),name:ae.string().nullish()})}function Vle(){return ae.object({description:ae.string().nullish(),id:ae.string()})}function Hle(){return ae.object({errorCode:ae.string().nullish(),id:ae.string()})}function Wle(){return ae.object({errorDescription:ae.string().nullish(),id:ae.string()})}function qle(){return ae.object({errorName:ae.string().nullish(),id:ae.string()})}function Gle(){return ae.object({errorTemplate:ae.string().nullish(),id:ae.string()})}function Zle(){return ae.object({id:ae.string(),name:ae.string().nullish()})}function Yle(){return ae.object({id:ae.string(),scope:F2()})}function Kle(){return ae.object({id:ae.string(),reducer:ae.string().nullish()})}function Jle(){return ae.object({id:ae.string(),schema:ae.string().nullish()})}function Xle(){return ae.object({id:ae.string(),template:ae.string().nullish()})}function Qle(){return ae.object({scope:ae.string(),schema:ae.string()})}function eue(){return ae.object({__typename:ae.literal("UpdateChangeLogItemInput").optional(),id:ae.string(),newContent:ae.string()})}function tue(){return ae.object({example:ae.string(),id:ae.string()})}function nue(){return ae.object({scope:ae.string(),id:ae.string(),newExample:ae.string()})}const Jc={setModelNameOperation(t,e){t.name=e.input.name},setModelIdOperation(t,e){t.id=e.input.id},setModelExtensionOperation(t,e){t.extension=e.input.extension},setModelDescriptionOperation(t,e){t.description=e.input.description},setAuthorNameOperation(t,e){t.author=t.author||{name:"",website:null},t.author.name=e.input.authorName},setAuthorWebsiteOperation(t,e){t.author=t.author||{name:"",website:null},t.author.website=e.input.authorWebsite}},Yu={addChangeLogItemOperation(t,e){throw new Error('Reducer "addChangeLogItemOperation" not yet implemented')},updateChangeLogItemOperation(t,e){throw new Error('Reducer "updateChangeLogItemOperation" not yet implemented')},deleteChangeLogItemOperation(t,e){throw new Error('Reducer "deleteChangeLogItemOperation" not yet implemented')},reorderChangeLogItemsOperation(t,e){throw new Error('Reducer "reorderChangeLogItemsOperation" not yet implemented')},releaseNewVersionOperation(t,e){throw new Error('Reducer "releaseNewVersionOperation" not yet implemented')}},rue=t=>{const e={};return t.forEach((n,r)=>e[n]=r),(n,r)=>(e[r.id]||999999)-(e[n.id]||999999)},Ku={addModuleOperation(t,e){t.specifications[t.specifications.length-1].modules.push({id:e.input.id,name:e.input.name,description:e.input.description||"",operations:[]})},setModuleNameOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)n.modules[r].id===e.input.id&&(n.modules[r].name=e.input.name||"")},setModuleDescriptionOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)n.modules[r].id===e.input.id&&(n.modules[r].description=e.input.description||"")},deleteModuleOperation(t,e){const n=t.specifications[t.specifications.length-1];n.modules=n.modules.filter(r=>r.id!=e.input.id)},reorderModulesOperation(t,e){t.specifications[t.specifications.length-1].modules.sort(rue(e.input.order))}},iue=t=>{const e={};return t.forEach((n,r)=>e[n]=r),(n,r)=>(e[r.id]||999999)-(e[n.id]||999999)},Oa={addOperationErrorOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let i=0;i<n.modules[r].operations.length;i++)n.modules[r].operations[i].id==e.input.operationId&&n.modules[r].operations[i].errors.push({id:e.input.id,name:e.input.errorName||"",code:e.input.errorCode||"",description:e.input.errorDescription||"",template:e.input.errorTemplate||""})},setOperationErrorCodeOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let i=0;i<n.modules[r].operations.length;i++)for(let s=0;s<n.modules[r].operations[i].errors.length;s++)n.modules[r].operations[i].errors[s].id==e.input.id&&(n.modules[r].operations[i].errors[s].code=e.input.errorCode||"")},setOperationErrorNameOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let i=0;i<n.modules[r].operations.length;i++)for(let s=0;s<n.modules[r].operations[i].errors.length;s++)n.modules[r].operations[i].errors[s].id==e.input.id&&(n.modules[r].operations[i].errors[s].name=e.input.errorName||"")},setOperationErrorDescriptionOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let i=0;i<n.modules[r].operations.length;i++)for(let s=0;s<n.modules[r].operations[i].errors.length;s++)n.modules[r].operations[i].errors[s].id==e.input.id&&(n.modules[r].operations[i].errors[s].description=e.input.errorDescription||"")},setOperationErrorTemplateOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let i=0;i<n.modules[r].operations.length;i++)for(let s=0;s<n.modules[r].operations[i].errors.length;s++)n.modules[r].operations[i].errors[s].id==e.input.id&&(n.modules[r].operations[i].errors[s].template=e.input.errorTemplate||"")},deleteOperationErrorOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let i=0;i<n.modules[r].operations.length;i++)n.modules[r].operations[i].errors=n.modules[r].operations[i].errors.filter(s=>s.id!=e.input.id)},reorderOperationErrorsOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let i=0;i<n.modules[r].operations.length;i++)n.modules[r].operations[i].id==e.input.operationId&&n.modules[r].operations[i].errors.sort(iue(e.input.order))}},sue=t=>{const e={};return t.forEach((n,r)=>e[n]=r),(n,r)=>(e[r.id]||999999)-(e[n.id]||999999)},Sh={addOperationExampleOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let i=0;i<n.modules[r].operations.length;i++)n.modules[r].operations[i].id==e.input.operationId&&n.modules[r].operations[i].examples.push({id:e.input.id,value:e.input.example})},updateOperationExampleOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let i=0;i<n.modules[r].operations.length;i++)for(let s=0;s<n.modules[r].operations[i].examples.length;s++)n.modules[r].operations[i].examples[s].id==e.input.id&&(n.modules[r].operations[i].examples[s].value=e.input.example)},deleteOperationExampleOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let i=0;i<n.modules[r].operations.length;i++)n.modules[r].operations[i].examples=n.modules[r].operations[i].examples.filter(s=>s.id!=e.input.id)},reorderOperationExamplesOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let i=0;i<n.modules[r].operations.length;i++)n.modules[r].operations[i].id==e.input.operationId&&n.modules[r].operations[i].examples.sort(sue(e.input.order))}},oue=t=>{const e={};return t.forEach((n,r)=>e[n]=r),(n,r)=>(e[r.id]||999999)-(e[n.id]||999999)},es={addOperationOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)n.modules[r].id==e.input.moduleId&&n.modules[r].operations.push({id:e.input.id,name:e.input.name,description:e.input.description||"",schema:e.input.schema||"",template:e.input.template||e.input.description||"",reducer:e.input.reducer||"",errors:[],examples:[],scope:e.input.scope||"global"})},setOperationNameOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let i=0;i<n.modules[r].operations.length;i++)n.modules[r].operations[i].id==e.input.id&&(n.modules[r].operations[i].name=e.input.name||"")},setOperationScopeOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let i=0;i<n.modules[r].operations.length;i++)n.modules[r].operations[i].id==e.input.id&&(n.modules[r].operations[i].scope=e.input.scope||"global")},setOperationSchemaOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let i=0;i<n.modules[r].operations.length;i++)n.modules[r].operations[i].id==e.input.id&&(n.modules[r].operations[i].schema=e.input.schema||"")},setOperationDescriptionOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let i=0;i<n.modules[r].operations.length;i++)n.modules[r].operations[i].id==e.input.id&&(n.modules[r].operations[i].description=e.input.description||"")},setOperationTemplateOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let i=0;i<n.modules[r].operations.length;i++)n.modules[r].operations[i].id==e.input.id&&(n.modules[r].operations[i].template=e.input.template||"")},setOperationReducerOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)for(let i=0;i<n.modules[r].operations.length;i++)n.modules[r].operations[i].id==e.input.id&&(n.modules[r].operations[i].reducer=e.input.reducer||"")},moveOperationOperation(t,e){const n=[],r=t.specifications[t.specifications.length-1];for(let i=0;i<r.modules.length;i++)r.modules[i].operations=r.modules[i].operations.filter(s=>s.id==e.input.operationId?(n.push(s),!1):!0);for(let i=0;i<r.modules.length;i++)r.modules[i].id==e.input.newModuleId&&r.modules[i].operations.push(...n)},deleteOperationOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)n.modules[r].operations=n.modules[r].operations.filter(i=>i.id!=e.input.id)},reorderModuleOperationsOperation(t,e){const n=t.specifications[t.specifications.length-1];for(let r=0;r<n.modules.length;r++)n.modules[r].id==e.input.moduleId&&n.modules[r].operations.sort(oue(e.input.order))}},aue=t=>{const e={};return t.forEach((n,r)=>e[n]=r),(n,r)=>(e[r.id]||999999)-(e[n.id]||999999)},Xc={setStateSchemaOperation(t,e){const n=t.specifications[t.specifications.length-1];if(Object.keys(n.state).includes(e.input.scope))n.state[e.input.scope].schema=e.input.schema;else throw new Error(`Invalid scope: ${e.input.scope}`)},setInitialStateOperation(t,e){const n=t.specifications[t.specifications.length-1];if(Object.keys(n.state).includes(e.input.scope))n.state[e.input.scope].initialValue=e.input.initialValue;else throw new Error(`Invalid scope: ${e.input.scope}`)},addStateExampleOperation(t,e){const n=t.specifications[t.specifications.length-1];if(Object.keys(n.state).includes(e.input.scope))n.state[e.input.scope].examples.push({id:e.input.id,value:e.input.example});else throw new Error(`Invalid scope: ${e.input.scope}`)},updateStateExampleOperation(t,e){const n=t.specifications[t.specifications.length-1];if(!Object.keys(n.state).includes(e.input.scope))throw new Error(`Invalid scope: ${e.input.scope}`);const r=n.state[e.input.scope].examples;for(let i=0;i<r.length;i++)r[i].id==e.input.id&&(r[i].value=e.input.newExample)},deleteStateExampleOperation(t,e){const n=t.specifications[t.specifications.length-1];if(Object.keys(n.state).includes(e.input.scope))n.state[e.input.scope].examples=n.state[e.input.scope].examples.filter(r=>r.id!=e.input.id);else throw new Error(`Invalid scope: ${e.input.scope}`)},reorderStateExamplesOperation(t,e){const n=t.specifications[t.specifications.length-1];if(Object.keys(n.state).includes(e.input.scope))n.state[e.input.scope].examples.sort(aue(e.input.order));else throw new Error(`Invalid scope: ${e.input.scope}`)}},cue=(t,e)=>{if(Kl(e))return t;switch(e.type){case"SET_MODEL_NAME":Ule().parse(e.input),Jc.setModelNameOperation(t.global,e);break;case"SET_MODEL_ID":jle().parse(e.input),Jc.setModelIdOperation(t.global,e);break;case"SET_MODEL_EXTENSION":$le().parse(e.input),Jc.setModelExtensionOperation(t.global,e);break;case"SET_MODEL_DESCRIPTION":Fle().parse(e.input),Jc.setModelDescriptionOperation(t.global,e);break;case"SET_AUTHOR_NAME":Ple().parse(e.input),Jc.setAuthorNameOperation(t.global,e);break;case"SET_AUTHOR_WEBSITE":Mle().parse(e.input),Jc.setAuthorWebsiteOperation(t.global,e);break;case"ADD_CHANGE_LOG_ITEM":mle().parse(e.input),Yu.addChangeLogItemOperation(t.global,e);break;case"UPDATE_CHANGE_LOG_ITEM":eue().parse(e.input),Yu.updateChangeLogItemOperation(t.global,e);break;case"DELETE_CHANGE_LOG_ITEM":wle().parse(e.input),Yu.deleteChangeLogItemOperation(t.global,e);break;case"REORDER_CHANGE_LOG_ITEMS":Cle().parse(e.input),Yu.reorderChangeLogItemsOperation(t.global,e);break;case"RELEASE_NEW_VERSION":if(Object.keys(e.input).length>0)throw new Error("Expected empty input for action RELEASE_NEW_VERSION");Yu.releaseNewVersionOperation(t.global,e);break;case"ADD_MODULE":gle().parse(e.input),Ku.addModuleOperation(t.global,e);break;case"SET_MODULE_NAME":zle().parse(e.input),Ku.setModuleNameOperation(t.global,e);break;case"SET_MODULE_DESCRIPTION":Ble().parse(e.input),Ku.setModuleDescriptionOperation(t.global,e);break;case"DELETE_MODULE":Ele().parse(e.input),Ku.deleteModuleOperation(t.global,e);break;case"REORDER_MODULES":Dle().parse(e.input),Ku.reorderModulesOperation(t.global,e);break;case"ADD_OPERATION_ERROR":yle().parse(e.input),Oa.addOperationErrorOperation(t.global,e);break;case"SET_OPERATION_ERROR_CODE":Hle().parse(e.input),Oa.setOperationErrorCodeOperation(t.global,e);break;case"SET_OPERATION_ERROR_NAME":qle().parse(e.input),Oa.setOperationErrorNameOperation(t.global,e);break;case"SET_OPERATION_ERROR_DESCRIPTION":Wle().parse(e.input),Oa.setOperationErrorDescriptionOperation(t.global,e);break;case"SET_OPERATION_ERROR_TEMPLATE":Gle().parse(e.input),Oa.setOperationErrorTemplateOperation(t.global,e);break;case"DELETE_OPERATION_ERROR":Sle().parse(e.input),Oa.deleteOperationErrorOperation(t.global,e);break;case"REORDER_OPERATION_ERRORS":kle().parse(e.input),Oa.reorderOperationErrorsOperation(t.global,e);break;case"ADD_OPERATION_EXAMPLE":vle().parse(e.input),Sh.addOperationExampleOperation(t.global,e);break;case"UPDATE_OPERATION_EXAMPLE":tue().parse(e.input),Sh.updateOperationExampleOperation(t.global,e);break;case"DELETE_OPERATION_EXAMPLE":xle().parse(e.input),Sh.deleteOperationExampleOperation(t.global,e);break;case"REORDER_OPERATION_EXAMPLES":Ale().parse(e.input),Sh.reorderOperationExamplesOperation(t.global,e);break;case"ADD_OPERATION":ble().parse(e.input),es.addOperationOperation(t.global,e);break;case"SET_OPERATION_NAME":Zle().parse(e.input),es.setOperationNameOperation(t.global,e);break;case"SET_OPERATION_SCOPE":Yle().parse(e.input),es.setOperationScopeOperation(t.global,e);break;case"SET_OPERATION_SCHEMA":Jle().parse(e.input),es.setOperationSchemaOperation(t.global,e);break;case"SET_OPERATION_DESCRIPTION":Vle().parse(e.input),es.setOperationDescriptionOperation(t.global,e);break;case"SET_OPERATION_TEMPLATE":Xle().parse(e.input),es.setOperationTemplateOperation(t.global,e);break;case"SET_OPERATION_REDUCER":Kle().parse(e.input),es.setOperationReducerOperation(t.global,e);break;case"MOVE_OPERATION":Ole().parse(e.input),es.moveOperationOperation(t.global,e);break;case"DELETE_OPERATION":Tle().parse(e.input),es.deleteOperationOperation(t.global,e);break;case"REORDER_MODULE_OPERATIONS":Rle().parse(e.input),es.reorderModuleOperationsOperation(t.global,e);break;case"SET_STATE_SCHEMA":Qle().parse(e.input),Xc.setStateSchemaOperation(t.global,e);break;case"SET_INITIAL_STATE":Lle().parse(e.input),Xc.setInitialStateOperation(t.global,e);break;case"ADD_STATE_EXAMPLE":_le().parse(e.input),Xc.addStateExampleOperation(t.global,e);break;case"UPDATE_STATE_EXAMPLE":nue().parse(e.input),Xc.updateStateExampleOperation(t.global,e);break;case"DELETE_STATE_EXAMPLE":Ile().parse(e.input),Xc.deleteStateExampleOperation(t.global,e);break;case"REORDER_STATE_EXAMPLES":Nle().parse(e.input),Xc.reorderStateExamplesOperation(t.global,e);break;default:return t}},yg=zE(cue),lue={id:"",name:"",extension:"",description:"",author:{name:"",website:""},specifications:[{version:1,changeLog:[],state:{global:{schema:"",initialValue:"",examples:[]},local:{schema:"",initialValue:"",examples:[]}},modules:[]}]},uue={},kd={fileExtension:"phdm",createState(t){return{global:{...lue,...t==null?void 0:t.global},local:{...uue,...t==null?void 0:t.local}}},createExtendedState(t){return VE({...t,documentType:"powerhouse/document-model"},kd.createState)},createDocument(t){return HE(kd.createExtendedState(t),kd.createState)},saveToFile(t,e,n){return UE(t,e,"phdm",n)},saveToFileHandle(t,e){return vA(t,e)},loadFromFile(t){return Lm(t,yg)},loadFromInput(t){return BE(t,yg)}},$2=t=>ft("SET_MODEL_NAME",{...t}),j2=t=>ft("SET_MODEL_ID",{...t}),U2=t=>ft("SET_MODEL_EXTENSION",{...t}),B2=t=>ft("SET_MODEL_DESCRIPTION",{...t}),z2=t=>ft("SET_AUTHOR_NAME",{...t}),V2=t=>ft("SET_AUTHOR_WEBSITE",{...t});class due extends ii{setModelName(e,n){return this.dispatch($2(e),n)}setModelId(e,n){return this.dispatch(j2(e),n)}setModelExtension(e,n){return this.dispatch(U2(e),n)}setModelDescription(e,n){return this.dispatch(B2(e),n)}setAuthorName(e,n){return this.dispatch(z2(e),n)}setAuthorWebsite(e,n){return this.dispatch(V2(e),n)}}const H2=t=>ft("ADD_CHANGE_LOG_ITEM",{...t}),W2=t=>ft("UPDATE_CHANGE_LOG_ITEM",{...t}),q2=t=>ft("DELETE_CHANGE_LOG_ITEM",{...t}),G2=t=>ft("REORDER_CHANGE_LOG_ITEMS",{...t}),Z2=()=>ft("RELEASE_NEW_VERSION");class fue extends ii{addChangeLogItem(e,n){return this.dispatch(H2(e),n)}updateChangeLogItem(e,n){return this.dispatch(W2(e),n)}deleteChangeLogItem(e,n){return this.dispatch(q2(e),n)}reorderChangeLogItems(e,n){return this.dispatch(G2(e),n)}releaseNewVersion(e){return this.dispatch(Z2(),e)}}const Y2=t=>ft("ADD_MODULE",{...t}),K2=t=>ft("SET_MODULE_NAME",{...t}),J2=t=>ft("SET_MODULE_DESCRIPTION",{...t}),X2=t=>ft("DELETE_MODULE",{...t}),Q2=t=>ft("REORDER_MODULES",{...t});class pue extends ii{addModule(e,n){return this.dispatch(Y2(e),n)}setModuleName(e,n){return this.dispatch(K2(e),n)}setModuleDescription(e,n){return this.dispatch(J2(e),n)}deleteModule(e,n){return this.dispatch(X2(e),n)}reorderModules(e,n){return this.dispatch(Q2(e),n)}}const eF=t=>ft("ADD_OPERATION_ERROR",{...t}),tF=t=>ft("SET_OPERATION_ERROR_CODE",{...t}),nF=t=>ft("SET_OPERATION_ERROR_NAME",{...t}),rF=t=>ft("SET_OPERATION_ERROR_DESCRIPTION",{...t}),iF=t=>ft("SET_OPERATION_ERROR_TEMPLATE",{...t}),sF=t=>ft("DELETE_OPERATION_ERROR",{...t}),oF=t=>ft("REORDER_OPERATION_ERRORS",{...t});class hue extends ii{addOperationError(e,n){return this.dispatch(eF(e),n)}setOperationErrorCode(e,n){return this.dispatch(tF(e),n)}setOperationErrorName(e,n){return this.dispatch(nF(e),n)}setOperationErrorDescription(e,n){return this.dispatch(rF(e),n)}setOperationErrorTemplate(e,n){return this.dispatch(iF(e),n)}deleteOperationError(e,n){return this.dispatch(sF(e),n)}reorderOperationErrors(e,n){return this.dispatch(oF(e),n)}}const aF=t=>ft("ADD_OPERATION_EXAMPLE",{...t}),cF=t=>ft("UPDATE_OPERATION_EXAMPLE",{...t}),lF=t=>ft("DELETE_OPERATION_EXAMPLE",{...t}),uF=t=>ft("REORDER_OPERATION_EXAMPLES",{...t});class mue extends ii{addOperationExample(e,n){return this.dispatch(aF(e),n)}updateOperationExample(e,n){return this.dispatch(cF(e),n)}deleteOperationExample(e,n){return this.dispatch(lF(e),n)}reorderOperationExamples(e,n){return this.dispatch(uF(e),n)}}const dF=t=>ft("ADD_OPERATION",{...t}),fF=t=>ft("SET_OPERATION_NAME",{...t}),pF=t=>ft("SET_OPERATION_SCOPE",{...t}),hF=t=>ft("SET_OPERATION_SCHEMA",{...t}),mF=t=>ft("SET_OPERATION_DESCRIPTION",{...t}),gF=t=>ft("SET_OPERATION_TEMPLATE",{...t}),yF=t=>ft("SET_OPERATION_REDUCER",{...t}),vF=t=>ft("MOVE_OPERATION",{...t}),bF=t=>ft("DELETE_OPERATION",{...t}),_F=t=>ft("REORDER_MODULE_OPERATIONS",{...t});class gue extends ii{addOperation(e,n){return this.dispatch(dF(e),n)}setOperationName(e,n){return this.dispatch(fF(e),n)}setOperationScope(e,n){return this.dispatch(pF(e),n)}setOperationSchema(e,n){return this.dispatch(hF(e),n)}setOperationDescription(e,n){return this.dispatch(mF(e),n)}setOperationTemplate(e,n){return this.dispatch(gF(e),n)}setOperationReducer(e,n){return this.dispatch(yF(e),n)}moveOperation(e,n){return this.dispatch(vF(e),n)}deleteOperation(e,n){return this.dispatch(bF(e),n)}reorderModuleOperations(e,n){return this.dispatch(_F(e),n)}}const wF=t=>ft("SET_STATE_SCHEMA",{...t}),EF=t=>ft("SET_INITIAL_STATE",{...t}),SF=t=>ft("ADD_STATE_EXAMPLE",{...t}),xF=t=>ft("UPDATE_STATE_EXAMPLE",{...t}),TF=t=>ft("DELETE_STATE_EXAMPLE",{...t}),IF=t=>ft("REORDER_STATE_EXAMPLES",{...t});class yue extends ii{setStateSchema(e,n){return this.dispatch(wF(e),n)}setInitialState(e,n){return this.dispatch(EF(e),n)}addStateExample(e,n){return this.dispatch(SF(e),n)}updateStateExample(e,n){return this.dispatch(xF(e),n)}deleteStateExample(e,n){return this.dispatch(TF(e),n)}reorderStateExamples(e,n){return this.dispatch(IF(e),n)}}let OF=(Eh=class extends ii{constructor(t,e){super(yg,kd.createDocument(t),e)}saveToFile(t,e){return super.saveToFile(t,Eh.fileExtension,e)}loadFromFile(t){return super.loadFromFile(t)}static async fromFile(t){const e=new this;return await e.loadFromFile(t),e}},Qce(Eh,"fileExtension","phdm"),Eh);ZE(OF,[due,fue,pue,hue,mue,gue,yue]);const vue=Object.freeze(Object.defineProperty({__proto__:null,addChangeLogItem:H2,addModule:Y2,addOperation:dF,addOperationError:eF,addOperationExample:aF,addStateExample:SF,deleteChangeLogItem:q2,deleteModule:X2,deleteOperation:bF,deleteOperationError:sF,deleteOperationExample:lF,deleteStateExample:TF,moveOperation:vF,releaseNewVersion:Z2,reorderChangeLogItems:G2,reorderModuleOperations:_F,reorderModules:Q2,reorderOperationErrors:oF,reorderOperationExamples:uF,reorderStateExamples:IF,setAuthorName:z2,setAuthorWebsite:V2,setInitialState:EF,setModelDescription:B2,setModelExtension:U2,setModelId:j2,setModelName:$2,setModuleDescription:J2,setModuleName:K2,setOperationDescription:mF,setOperationErrorCode:tF,setOperationErrorDescription:rF,setOperationErrorName:nF,setOperationErrorTemplate:iF,setOperationName:fF,setOperationReducer:yF,setOperationSchema:hF,setOperationScope:pF,setOperationTemplate:gF,setStateSchema:wF,updateChangeLogItem:W2,updateOperationExample:cF,updateStateExample:xF},Symbol.toStringTag,{value:"Module"})),bue=OF,_ue={...kd,...fle},wue={...GE,...vue},Eue={Document:bue,reducer:yg,actions:wue,utils:_ue,documentModel:ple};function Sue(t){const e=rn(0),n=rn(()=>({i:0}),(c,l)=>{const u=c(n);return Object.assign(u,{m:!0,peek:c,set:l}),l(e,d=>d+1),()=>{u.m=!1,o(u),a(u)}});n.onMount=c=>c();const r=rn(c=>{c(e);const l=c(n);if(!l.m||l.irc||l.i&&!l.irf)return l.p;a(l);const u=new Map,d=h=>{const g=c(h);return u.set(h,g),g};d.peek=l.peek;const f=(...h)=>{try{return++l.i,l.set(...h)}finally{Array.from(u.keys(),c),--l.i}};f.recurse=(h,...g)=>{if(!l.fc)try{return l.irc=!0,l.set(h,...g)}finally{l.irc=!1,Array.from(u).some(p)&&s(l)}};function p([h,g]){return c(h)!==g}++l.i;function m(){try{if(l.irf=!1,!l.m)return;o(l),l.c=i.effect(d,f)}catch(h){l.e=h,s(l)}finally{l.p=void 0,--l.i}}return l.irf?m():l.p=Promise.resolve().then(m)}),i=rn(c=>void c(r));return i.effect=t,i;function s(c){try{c.irf=!0,c.set(e,l=>l+1)}finally{c.irf=!1}}function o(c){if(typeof c.c=="function")try{c.fc=!0,c.c()}finally{c.fc=!1,c.c=void 0}}function a(c){if("e"in c){const l=c.e;throw delete c.e,l}}}const xh=new WeakMap;function xue(t,e=VA()){xh.has(e)||xh.set(e,new Map);const n=xh.get(e);let r=n.get(t);if(!r){const i=Sue(t);let s=e.sub(i,()=>{});r=()=>{s&&(n.delete(t),n.size===0&&xh.delete(e),s=void s())},n.set(t,r)}return r}const Tue="feature-flags-config",Xh=window.__VITE_ENVS.PH_CONNECT_ENABLED_EDITORS||void 0,Iue=Xh==null?void 0:Xh.split(","),Qh=window.__VITE_ENVS.PH_CONNECT_DISABLED_EDITORS||"powerhouse/document-drive",Oue=Qh==null?void 0:Qh.split(","),CF={editors:{enabledEditors:Xh==="*"?"*":Iue,disabledEditors:Qh==="*"?"*":Oue}},Cue=pp(Tue,CF),Rue=()=>{const[t,e]=yi(Cue);return{config:{...CF,...t},setConfig:e}},Due=YZ("theme","light",t=>{var e;typeof window<"u"&&((e=window.electronAPI)==null||e.setTheme(t))}),y0=YE(),kue=pp("sidebar-collapsed",!1);rn(!1);const Aue={sidebarCollapsedAtom:kue,themeAtom:Due};async function Fy(){if(import.meta.resolve("PH:HMR_MODULE").toLowerCase()!=="ph:hmr_module")try{return(await xe(()=>import("PH:HMR_MODULE"),[])).default}catch{return}}async function Nue(t){const e=await Fy();if(!e)throw new Error("HMR not available.");return new Promise(n=>{function r(i){t===i.name&&(n(),e==null||e.off("studio:external-package-added",r))}e.on("studio:external-package-added",r),e.send("studio:add-external-package",{name:t})})}async function Pue(t){const e=await Fy();if(!e)throw new Error("HMR not available.");return new Promise(n=>{function r(i){t===i.name&&(n(),e==null||e.off("studio:external-package-removed",r))}e.on("studio:external-package-removed",r),e.send("studio:remove-external-package",{name:t})})}async function Mue(t){const e=await Fy(),n=r=>{const i=xe(()=>import(`${r.url}?t=${r.timestamp}`),[]);t(i.then(s=>s.default))};return e==null||e.on("studio:external-packages-updated",n),()=>{e==null||e.off("studio:external-packages-updated",n)}}const Lue=window.__VITE_ENVS.LOAD_EXTERNAL_PACKAGES,Fue=Lue==="true";function $ue(){return Fue?xe(()=>import("PH:EXTERNAL_PACKAGES"),[]).then(t=>t.default):Promise.resolve([])}const jue=rn(async()=>typeof await Fy()<"u"),Uue=()=>Dc(jue),v0=KE($ue);let DO;v0.onMount=t=>{DO||(DO=Mue(e=>{t(e)}))};const Bue=()=>Dc(v0),zue=window.__VITE_ENVS.LOCAL_DOCUMENT_MODELS,Vue=[YP,Eue];function Hue(...t){const e=new Map;for(const n of t)for(const r of n)e.set(r.documentModel.id,r);return Array.from(e.values())}function Wue(t){return t.map(e=>e.documentModels).reduce((e,n)=>e.concat(n),[])}async function que(){if(!zue)return[];try{const t=await xe(()=>import("LOCAL_DOCUMENT_MODELS"),[]);return console.log("Loaded local document models:",t),Object.values(t)}catch(t){return console.error("Error loading local document models",t),[]}}const Gue=KE(que),b0=rn(async t=>{const e=await t(Gue),n=await t(v0),r=Wue(n);return Hue(Vue,r,e)}),Zue=YA(b0),RF=()=>Dc(Zue),Yue=function(t){const e=xue(n=>{n(b0).then(t).catch(i=>{throw i})},y0);return()=>e()};function Kue(t,e){return e==null?void 0:e.find(n=>n.documentModel.id===t)}const DF=()=>{const t=RF();return e=>Kue(e,t)},Jue=()=>{const t=RF(),{config:e}=Rue(),{enabledEditors:n,disabledEditors:r}=e.editors;if(!t)return;const i=t.filter(s=>s.documentModel.id!=="powerhouse/document-drive");return n==="*"?t:r==="*"?[]:r?i.filter(s=>!r.includes(s.documentModel.id)):n?i.filter(s=>n.includes(s.documentModel.id)):i};function Xue(t){let e=!1;const n=Object.entries(t.operations).reduce((r,[i,s])=>{const o=i;for(const a of s){const c=Que(a);r[o].push(c),c!==a&&(e=!0)}return r},{global:[],local:[]});return e?{...t,operations:n}:t}function Que(t){var n;if(!((n=t.context)!=null&&n.signer)||t.context.signer.signatures)return t;const{signer:e}=t.context;if("signature"in e){const r=e.signature;return{...t,context:{...t.context,signer:{user:e.user,app:e.app,signatures:r!=null&&r.length?[r]:[]}}}}else return t}const nr=class nr{constructor(e){qe(this,"db");this.db=IO.ready().then(()=>IO.createInstance({name:e?`${e}:${nr.DBName}`:nr.DBName}))}buildKey(...e){return e.join(nr.SEP)}async checkDocumentExists(e,n){return!!await(await this.db).getItem(this.buildKey(e,n))}async getDocuments(e){const r=await(await this.db).keys(),i=`${e}${nr.SEP}`;return r.filter(s=>s.startsWith(i)).map(s=>s.slice(i.length))}async getDocument(e,n){const r=await(await this.db).getItem(this.buildKey(e,n));if(!r)throw new Error(`Document with id ${n} not found`);return r}async createDocument(e,n,r){await(await this.db).setItem(this.buildKey(e,n),r)}async deleteDocument(e,n){await(await this.db).removeItem(this.buildKey(e,n))}async clearStorage(){return(await this.db).clear()}async addDocumentOperations(e,n,r,i){const s=await this.getDocument(e,n);if(!s)throw new Error(`Document with id ${n} not found`);const o=Xm(s.operations,r);await(await this.db).setItem(this.buildKey(e,n),{...s,...i,operations:o})}async getDrives(){return(await(await this.db).keys()).filter(r=>r.startsWith(nr.DRIVES_KEY)).map(r=>r.slice(nr.DRIVES_KEY.length+nr.SEP.length))}async getDrive(e){const r=await(await this.db).getItem(this.buildKey(nr.DRIVES_KEY,e));if(!r)throw new Td(e);return r}async getDriveBySlug(e){const n=(await this.getDrives()).reverse();for(const r of n)if((await this.getDrive(r)).initialState.state.global.slug===e)return this.getDrive(r);throw new Error(`Drive with slug ${e} not found`)}async createDrive(e,n){await(await this.db).setItem(this.buildKey(nr.DRIVES_KEY,e),n)}async deleteDrive(e){const n=await this.getDocuments(e);return await Promise.all(n.map(r=>this.deleteDocument(e,r))),(await this.db).removeItem(this.buildKey(nr.DRIVES_KEY,e))}async addDriveOperations(e,n,r){const i=await this.getDrive(e),s=Xm(i.operations,n);await(await this.db).setItem(this.buildKey(nr.DRIVES_KEY,e),{...i,...r,operations:s})}async getSynchronizationUnitsRevision(e){return(await Promise.allSettled(e.map(async r=>{try{const i=await(r.documentId?this.getDocument(r.driveId,r.documentId):this.getDrive(r.driveId));if(!i)return;const s=i.operations[r.scope].at(-1);if(s)return{driveId:r.driveId,documentId:r.documentId,scope:r.scope,branch:r.branch,lastUpdated:s.timestamp,revision:s.index}}catch{return}}))).reduce((r,i)=>(i.status==="fulfilled"&&i.value!==void 0&&r.push(i.value),r),[])}async migrateOperationSignatures(){const e=await this.getDrives();for(const n of e){await this.migrateDocument(nr.DRIVES_KEY,n);const r=await this.getDocuments(n);await Promise.all(r.map(async i=>this.migrateDocument(n,i)))}}async migrateDocument(e,n){const r=await this.getDocument(e,n),i=Xue(r);if(i!==r)return(await this.db).setItem(this.buildKey(e,n),i)}};qe(nr,"DBName","DOCUMENT_DRIVES"),qe(nr,"SEP",":"),qe(nr,"DRIVES_KEY","DRIVES");let iw=nr;const kO=window.__VITE_ENVS.PH_CONNECT_DEFAULT_DRIVES_URL||void 0,rb=kO?kO.split(","):[],ede=()=>({defaultDrives:{remoteDrives:rb.map(e=>({url:e,options:{sharingType:"PUBLIC",availableOffline:!0,listeners:[{block:!0,callInfo:{data:e,name:"switchboard-push",transmitterType:"SwitchboardPush"},filter:{branch:["main"],documentId:["*"],documentType:["*"],scope:["global"]},label:"Switchboard Sync",listenerId:"1",system:!0}],triggers:[],pullInterval:3e3}})),removeOldRemoteDrives:rb.length>0?{strategy:"preserve-by-url-and-detach",urls:rb}:{strategy:"preserve-all"}}});function tde(t,e){return new tee(t,new iw(e),new JP,new QP(1,10),{...ede()})}async function nde(t){const e=await t.initialize(),n=e==null?void 0:e.at(0);if(n)throw n;!(await t.getDrives()).length&&Ai.drives.sections.LOCAL.enabled&&t.addDrive({global:{id:Gt.hashKey(),name:"My Local Drive",icon:null,slug:"my-local-drive"},local:{availableOffline:!1,sharingType:"private",listeners:[],triggers:[]}}).catch(Bn.error)}async function rde(){var n;const t=await y0.get(b0),e=((n=window.electronAPI)==null?void 0:n.documentDrive)??tde(t,Ai.routerBasename);return await nde(e),e}const vg=KE(rde),ide=YA(vg),kF=()=>Dc(ide),sde=()=>Dc(AF),AF=rn(void 0);AF.onMount=t=>{const e=vg.onMount;vg.onMount=n=>(n(r=>(r.then(i=>t(i)).catch(console.error),r)),e==null?void 0:e(n))};let ib;vg.onMount=t=>{ib||t(async e=>{const n=await e;return ib||(ib=Yue(r=>{n.setDocumentModels(r)})),n})};const em=(async()=>{if(window.connectCrypto)return window.connectCrypto;const{ConnectCrypto:t}=await xe(async()=>{const{ConnectCrypto:r}=await import("./index-Cfezsgfl.js");return{ConnectCrypto:r}},__vite__mapDeps([0,1,2,3])),{BrowserKeyStorage:e}=await xe(async()=>{const{BrowserKeyStorage:r}=await import("./browser-BbIPlSaA.js");return{BrowserKeyStorage:r}},[]),n=new t(new e);return await n.did(),n})();function _0(){return En(()=>({async regenerateDid(){return(await em).regenerateDid()},async did(){return(await em).did()},sign:async t=>await(await em).sign(t)}),[])}const ode=rn(void 0);function ade(){const[t,e]=yi(ode);return jt(()=>{t||em.then(n=>n.did()).then(n=>e(n)).catch(Bn.error)}),t}const cde=rn(window.renown?Promise.resolve(window.renown):void 0);function NF(){const[t,e]=yi(cde),{did:n}=_0();async function r(i){const s=await i();if(!s)return;const{initRenownBrowser:o}=await xe(async()=>{const{initRenownBrowser:l}=await import("./browser-Szk8zoDr.js");return{initRenownBrowser:l}},__vite__mapDeps([4,5,1,6,2,3])),a=o(s);return{user:function(){return Promise.resolve(a.user)},login:function(l){return a.login(l)},logout(){return Promise.resolve(a.logout())},on:{user(l){return a.on("user",l)}}}}return t||e(r(n)),t}let Th=!1;const lde=rn(void 0),PF=()=>{const[t,e]=yi(lde),n=NF();return jt(()=>{var i;let r=null;if(t){const{credential:s,...o}=t;r={id:o.did,username:(i=o.ens)==null?void 0:i.name,...o}}Dte(r)},[t]),jt(()=>{if(Th)return;Th=!0,n==null||n.user().then(i=>{e(i||null)}).catch(()=>{e(null)});const r=n==null?void 0:n.on.user(i=>{e(i||null)});return()=>{r==null||r(),Th=!1}},[n,Th]),t},ude=parseInt("50");function dme(t,e,n=Bn.error){const[r,i]=Qe(e),[s,o]=Qe(),a=l=>{o(l),n(l)};return jt(()=>{i(e),o(void 0)},[e]),[r,(l,u,d)=>{o(void 0),i(f=>{if(!t||!f)return f;try{const p=t(f,l),m=l.scope??"global",h=p.operations[m],g=h[h.length-1];if(g.error){const y=new Error(g.error);a(y),d==null||d(y)}return u==null||u(g,{prevState:{...f},newState:{...p}}),p}catch(p){return a(p),d==null||d(p),f}})},s]}const sb=(...t)=>{};async function dde(t,e,n,r,i,s){const o=(s==null?void 0:s.operationsLimit)||ude;sb(`uploadDocumentOperations(drive: ${t}, documentId:${e}, ops: ${Object.keys(n.operations).join(",")}, limit:${o})`);for(const a of Object.values(n.operations))for(let c=0;c<a.length;c+=o){sb(`uploadDocumentOperations:for(i:${c}, ops:${a.length}, limit:${o}): START`);const l=a.slice(c,c+o),u=l.at(-1);if(!u)break;const{scope:d}=u;await i(t,e,l),sb(`uploadDocumentOperations:for:waitForUpdate(${e}:${d} rev ${u.index}): NEXT`)}}const fde=async t=>{(await Gt.createZip(t)).generateAsync({type:"blob"}).then(n=>{const r=window.document.createElement("a");r.style.display="none",r.href=URL.createObjectURL(n),r.download=`${t.name||"Untitled"}.zip`,window.document.body.appendChild(r),r.click(),window.document.body.removeChild(r)}).catch(Bn.error)};async function fme(t,e){var i,s;const n=e(t.documentType);if(!n)throw new Error(`Document model not supported: ${t.documentType}`);const r=n.utils.fileExtension;if(!window.showSaveFilePicker){await fde(t);return}try{const o=await window.showSaveFilePicker({suggestedName:`${t.name||((i=t.state.global)==null?void 0:i.name)||"Untitled"}.${r?`${r}.`:""}zip`});await n.utils.saveToFileHandle(t,o);const a=(await o.getFile()).path;return typeof window<"u"&&((s=window.electronAPI)==null||s.fileSaved(t,a)),a}catch(o){if(!(o instanceof DOMException&&o.name==="AbortError"))throw o}}async function pde(t,e){const n=await Gt.loadFromInput(t,i=>i,{checkHashes:!0}),r=e(n.documentType);if(!r)throw new Error(`Document "${n.documentType}" is not supported`);return r.utils.loadFromInput(t)}async function hde(t,e,n,r,i,s){if(!s||!t.context||!t.context.signer)return t;if(!i)return Bn.error(`Document model '${r.documentType}' does not have a reducer`),t;const o={documentId:n,signer:t.context.signer};return await Gt.buildSignedOperation(t,i,r,o,e)}function mde(t,e,n){return n?{context:{signer:{app:{name:"Connect",key:e||""},user:{address:n.address,networkId:n.networkId,chainId:n.chainId},signatures:[]}},...t}:t}const AO=rn(new Map);function sw(t){return Object.keys(t.operations).map(e=>{var n;return`${e}:${t.operations[e].length}:${(n=t.operations[e].at(-1))==null?void 0:n.hash}`}).join(":")}function bg(t){return t.map(sw).join("&")}const gde=t=>()=>rn(e=>t?e(AO).get(t)??[]:[],(e,n,r)=>{n(AO,i=>{if(!t)return new Map;const s=i.get(t)??[];return s.length!==r.length||bg(s)!==bg(r)?new Map(i).set(t,r):i})}),yde=jZ(()=>rn("INITIAL"));function MF(){const t=kF(),[e,n]=yi(En(gde(t),[t])),r=Te(async()=>{if(!t)return;const a=[];try{const c=await t.getDrives();for(const l of c)try{const u=await t.getDrive(l);a.push(u)}catch(u){Bn.error(u)}}catch(c){Bn.error(c)}finally{n(a)}},[t]),[i,s]=yi(yde(t));i==="INITIAL"&&(s("LOADING"),r().then(()=>s("LOADED")).catch(()=>s("ERROR")));const o=Te(a=>{if(!t)return;const c=t.on("syncStatus",async(f,p,m)=>{m&&Bn.error(m),await r()}),l=t.on("strandUpdate",()=>r()),u=t.on("clientStrandsError",a.strandsErrorHandler),d=t.on("defaultRemoteDrive",()=>r());return()=>{c(),l(),u(),d()}},[t,r]);return En(()=>[e,r,o,i],[e,i])}const vde=window.__VITE_ENVS.PH_CONNECT_RENOWN_URL||"https://www.renown.id",bde=window.__VITE_ENVS.PH_CONNECT_RENOWN_NETWORK_ID||"eip155",_de=window.__VITE_ENVS.PH_CONNECT_RENOWN_CHAIN_ID||"1",wde=rn("initial"),Ede=()=>{const[t,e]=yi(wde),n=PF(),r=NF(),{did:i}=_0(),s=Te(async()=>{var u;const c=await i(),l=new URL(vde);if(l.searchParams.set("connect",c),l.searchParams.set("network",bde),l.searchParams.set("chain",_de),window.electronAPI){const d=await window.electronAPI.protocol();l.searchParams.set("deeplink",d),await window.electronAPI.openURL(l.toString())}else{const d=new URL(window.location.pathname,window.location.origin);l.searchParams.set("returnUrl",d.toJSON()),(u=window.open(l,"_self"))==null||u.focus()}},[i]),o=Te(async c=>{if(r)try{e("checking");const l=await r.user();if((l==null?void 0:l.did)===c)return e("authorized"),l;const u=await r.login(c);if(u)return e("authorized"),u;e("not-authorized")}catch(l){e("not-authorized"),Bn.error(l)}},[r]);jt(()=>{n&&t!=="authorized"&&e("authorized")},[n,t]);const a=Te(async()=>{e("initial"),await(r==null?void 0:r.logout())},[r]);return En(()=>({openRenown:s,user:n,status:n?"authorized":t,login:r?o:void 0,logout:a}),[r,s,n,t,o,a])};function Sde(){const{user:t,status:e}=Ede(),n=window.__VITE_ENVS.PH_CONNECT_ARBITRUM_ALLOW_LIST,r=window.__VITE_ENVS.PH_CONNECT_RWA_ALLOW_LIST,i=!!n&&n!=="",s=!!r&&r!=="";if(i&&s)throw new Error("Both Arbitrum and RWA allow lists are defined. Please only define one.");if(!i&&!s)return{isAllowed:!0,allowListType:"none"};if(t!==void 0){if(i){const o=n.split(",");return e!=="authorized"||!t?{isAllowed:!1,allowListType:"arbitrum"}:o.includes(t.address)?{isAllowed:!0,allowListType:"arbitrum"}:{isAllowed:!1,allowListType:"arbitrum"}}if(s){const o=r.split(",");return e!=="authorized"||!t?{isAllowed:!1,allowListType:"rwa"}:o.includes(t.address)?{isAllowed:!0,allowListType:"rwa"}:{isAllowed:!1,allowListType:"rwa"}}return{isAllowed:!0,allowListType:"none"}}}function w0(){const t=Sde();if(!t)return;const{allowListType:e,isAllowed:n}=t;return e==="arbitrum"?{isAllowedToCreateDocuments:n,isAllowedToEditDocuments:!0}:e==="rwa"?{isAllowedToCreateDocuments:n,isAllowedToEditDocuments:n}:{isAllowedToCreateDocuments:!0,isAllowedToEditDocuments:!0}}function Cp(){const{isAllowedToCreateDocuments:t,isAllowedToEditDocuments:e}=w0()||{isAllowedToCreateDocuments:!1,isAllowedToEditDocuments:!1},n=PF()||void 0,r=ade(),{sign:i}=_0(),s=kF(),o=DF(),[a,c,,l]=MF(),u=Te(async(L,G)=>{if(!s)throw new Error("Reactor is not loaded");const U=await s.getDocument(L,G);if(!U)throw new Error(`There was an error opening file with id ${G} on drive ${L}`);return U},[s]),d=Te(async(L,G)=>{if(!s)throw new Error("Reactor is not loaded");let U=a.find(le=>le.state.global.id===L);if(!U)throw new Error(`Drive with id ${L} not found`);const C={...U};U=vc(U,mde(G,r,n));const Z=G.scope??"global",V=U.operations[Z].findLast(le=>le.type===G.type);if(!V)throw new Error("There was an error applying the operation");const ce=await hde(V,i,L,C,vc,n);try{const le=await s.queueDriveOperation(L,ce);if(le.status!=="SUCCESS"&&Bn.error(le.error),le.operations.length&&await c(),le.document&&!Ra(le.document))throw new Error("Received document is not a Document Drive");return le.document}catch(le){return Bn.error(le),U}},[a,c,s,i,n,r]),f=Te(async(L,G,U,C,Z)=>{if(!t)throw new Error("User is not allowed to create documents");const H=Gt.hashKey();let V=a.find(ge=>ge.state.global.id===L);if(!V)throw new Error(`Drive with id ${L} not found`);const ce=PS(V.state.global,{id:H,name:G,parentFolder:C??null,documentType:U,document:Z},["global"]);V=await d(L,ce);const le=V==null?void 0:V.state.global.nodes.find(ge=>ge.id===H);if(!le||!Lr(le))throw new Error("There was an error adding document");return le},[d,a,t]),p=Te(async(L,G,U)=>{if(!e)throw new Error("User is not allowed to edit documents");if(!s)throw new Error("Reactor is not loaded");if(!a.find(H=>H.state.global.id===L))throw new Error(`Drive with id ${L} not found`);return(await s.queueOperations(L,G,U)).document},[a,e,s]),m=Te(async(L,G,U,C)=>{if(!s)throw new Error("Reactor is not loaded");if(!t)throw new Error("User is not allowed to create files");const Z=await pde(L,o),H={...Z.initialState,initialState:Z.initialState,operations:{global:[],local:[]},clipboard:[]},V=await f(G,U||(typeof L=="string"?Z.name:L.name),Z.documentType,C,H),ce=a.find(ge=>ge.state.global.id===G),le=ce&&ce.state.local.listeners.length>0;dde(G,V.id,Z,s,p,{waitForSync:le}).catch(ge=>{throw ge})},[f,p,o,t,s]),h=Te(async(L,G,U,C,Z)=>{if(!t)throw new Error("User is not allowed to update files");const H=await d(L,rr.updateFile({id:G,name:C||void 0,parentFolder:Z,documentType:U})),V=H==null?void 0:H.state.global.nodes.find(ce=>ce.id===G);if(!V||!Lr(V))throw new Error("There was an error updating document");return V},[d,t]),g=Te(async(L,G,U)=>{if(!t)throw new Error("User is not allowed to create folders");const C=Gt.hashKey(),Z=await d(L,rr.addFolder({id:C,name:G,parentFolder:U})),H=Z==null?void 0:Z.state.global.nodes.find(V=>V.id===C);if(!H||!gy(H))throw new Error("There was an error adding folder");return H},[d,t]),y=Te(async(L,G)=>{if(!t)throw new Error("User is not allowed to delete documents");await d(L,rr.deleteNode({id:G}))},[d,t]),v=Te(async(L,G,U)=>{if(!t)throw new Error("User is not allowed to rename documents");const C=await d(L,rr.updateNode({id:G,name:U})),Z=C==null?void 0:C.state.global.nodes.find(H=>H.id===G);if(!Z)throw new Error("There was an error renaming node");return Z},[d,t]),b=Te(async(L,G)=>{if(!t)throw new Error("User is not allowed to move documents");G.kind===sr||L.parentFolder===G.id||await d(G.driveId,rr.moveNode({srcFolder:L.id,targetParentFolder:G.id}))},[d,t]),E=Te(async(L,G)=>{if(!s)throw new Error("Reactor is not loaded");if(!t)throw new Error("User is not allowed to copy documents");if(G.kind===sr)return;const U=a.find(ce=>ce.state.global.id===L.driveId);if(!U)return;const C=()=>Gt.hashKey(),H=$f.generateNodesCopy({srcId:L.id,targetParentFolder:G.id,targetName:L.name},C,U.state.global.nodes).map(ce=>rr.copyNode(ce)),V=await s.addDriveActions(L.driveId,H);V.operations.length?await c():V.status!=="SUCCESS"&&Bn.error(`Error copying files: ${V.status}`,V.error)},[a,t,c,s]),w=Te(async(L,G,U)=>{if(!e)throw new Error("User is not allowed to edit documents");if(!s)throw new Error("Reactor is not loaded");if(!a.find(H=>H.state.global.id===L))throw new Error(`Drive with id ${L} not found`);return(await s.addOperation(L,G,U)).document},[a,e,s]),S=Te(async L=>{if(!s)throw new Error("Reactor is not loaded");if(!t)throw new Error("User is not allowed to create drives");const G=L.global.id||Gt.hashKey();L=$f.createState(L);const U=await s.addDrive({global:{...L.global,id:G},local:L.local});return await c(),U},[t,c,s]),_=Te(async(L,G)=>{if(!s)throw new Error("Reactor is not loaded");const U=await s.addRemoteDrive(L,G);return await c(),U},[c,s]),O=Te(async L=>{if(!t)throw new Error("User is not allowed to delete drives");if(!s)throw new Error("Reactor is not loaded");if(!a.find(U=>U.state.global.id===L))throw new Error(`Drive with id ${L} not found`);return await s.deleteDrive(L),c()},[a,t,c,s]),M=Te(async(L,G)=>{if(!t)throw new Error("User is not allowed to rename drives");return d(L,rr.setDriveName({name:G}))},[d,t]),F=Te(async(L,G)=>{if(!t)throw new Error("User is not allowed to change drive availability");return d(L,rr.setAvailableOffline({availableOffline:G}))},[d,t]),q=Te(async(L,G)=>{if(!t)throw new Error("User is not allowed to change drive availability");return d(L,rr.setSharingType({type:G}))},[d,t]),I=Te(async(L,G)=>{if(G!==Js){if(!s)throw new Error("Reactor is not loaded");try{const U=s.getSyncStatus(L);return U instanceof XP?"INITIAL_SYNC":U}catch(U){return console.error(U),P8}}},[s]),$=Te(L=>{if(!s)throw new Error("Reactor is not loaded");return s.on("strandUpdate",L)},[s]),x=Te(L=>{if(!s)throw new Error("Reactor is not loaded");return s.on("syncStatus",L)},[s]),A=Te(async()=>{s&&(await s.clearStorage(),await c())},[c,s]),P=Te(async(L,G)=>{const U=await d(L,rr.removeTrigger({triggerId:G}));if(U==null?void 0:U.state.local.triggers.find(Z=>Z.id===G))throw new Error(`There was an error removing trigger ${G}`)},[d]),B=Te(async(L,G,U)=>{if(!s)throw new Error("Reactor is not loaded");return await s.registerPullResponderTrigger(L,G,U)},[s]),J=Te(async(L,G)=>{const U=await d(L,rr.addTrigger({trigger:G}));if(!(U==null?void 0:U.state.local.triggers.find(Z=>Z.id===Z.id)))throw new Error(`There was an error adding the trigger ${G.id}`)},[d]);return En(()=>({documentDrives:a,documentDrivesStatus:l,addDocument:f,openFile:u,addFile:m,updateFile:h,addFolder:g,deleteNode:y,renameNode:v,moveNode:b,copyNode:E,addOperation:w,addOperations:p,addDrive:S,addRemoteDrive:_,deleteDrive:O,renameDrive:M,setDriveAvailableOffline:F,setDriveSharingType:q,getSyncStatus:I,onStrandUpdate:$,onSyncStatus:x,clearStorage:A,removeTrigger:P,addTrigger:J,registerNewPullResponderTrigger:B}),[f,S,m,g,w,p,_,J,A,E,O,y,a,l,I,b,$,x,u,B,P,M,v,F,q,h])}function ow(t){return t.replaceAll(/\s/g,"-")}const xde=t=>{const{open:e,onClose:n,selectedParentNode:r,setSelectedNode:i,documentModel:s}=t,{addDocument:o}=Cp();return T(SH,{open:e,onContinue:async c=>{if(n(),!r)throw new Error("No drive or folder selected");const l=await o(r.driveId,c||`New ${s.documentModel.name}`,s.documentModel.id,r.id);l&&i({...l,slug:ow(l.name),kind:sr,documentType:l.documentType,parentFolder:r.id,driveId:r.driveId,syncStatus:r.syncStatus,synchronizationUnits:[],sharingType:r.sharingType})},onOpenChange:c=>{if(!c)return n()}})},Tde=rn(Ai);function E0(){return yi(Tde)}let Ih;const Ide=new Uint8Array(16);function Ode(){if(!Ih&&(Ih=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ih))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ih(Ide)}const tr=[];for(let t=0;t<256;++t)tr.push((t+256).toString(16).slice(1));function Cde(t,e=0){return tr[t[e+0]]+tr[t[e+1]]+tr[t[e+2]]+tr[t[e+3]]+"-"+tr[t[e+4]]+tr[t[e+5]]+"-"+tr[t[e+6]]+tr[t[e+7]]+"-"+tr[t[e+8]]+tr[t[e+9]]+"-"+tr[t[e+10]]+tr[t[e+11]]+tr[t[e+12]]+tr[t[e+13]]+tr[t[e+14]]+tr[t[e+15]]}const Rde=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),NO={randomUUID:Rde};function PO(t,e,n){if(NO.randomUUID&&!t)return NO.randomUUID();t=t||{};const r=t.random||(t.rng||Ode)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Cde(r)}const Dde=t=>{var q;const[e]=E0(),{open:n,onClose:r}=t,i=localStorage.getItem("AUTO_REGISTER_PULL_RESPONDER")!=="false";console.log("autoRegisterPullResponder",i);const[s,o]=Qe(e.appVersion),[a,c]=Qe({label:Np.debug?"Enabled":"Disabled",value:Np.debug}),[l,u]=Qe(),[d,f]=Qe(null),[p,m]=Qe(""),[h,g]=Qe({label:i?"Enabled":"Disabled",value:i?"true":"false"}),{documentDrives:y,removeTrigger:v,addTrigger:b,registerNewPullResponderTrigger:E}=Cp();jt(()=>{Np.setDebug(a.value)},[a]),console.log("documentDrives",y),console.log("selectedDrive",l);const w=((q=y.find(I=>I.state.global.id===l))==null?void 0:q.state.local.triggers)||[],_=!l||p==="",O=async()=>{!d||!l||(await v(l,d.value),f(null))},M=async(I=!1)=>{if(!(!p||p===""||!l)){if(!I){const $=await E(l,p,{pullInterval:3e3});await b(l,$),m("");return}await b(l,{id:`invalid-trigger-${PO()}`,type:"PullResponder",data:{interval:"3000",listenerId:`ivalid-listener-${PO()}`,url:p}}),m("")}},F=I=>{g(I),localStorage.setItem("AUTO_REGISTER_PULL_RESPONDER",I.value)};return T(ho,{open:n,onOpenChange:I=>{if(!I)return r()},contentProps:{className:"rounded-2xl"},children:_e("div",{className:"w-[700px] rounded-2xl p-6",children:[_e("div",{className:"mb-6 flex justify-between",children:[T("div",{className:"text-xl font-bold",children:"Debug Tools"}),T("button",{id:"close-modal",onClick:()=>r(),children:T(ze,{name:"Xmark",size:28})})]}),_e("div",{className:"flex text-sm font-bold",children:[T(ze,{name:"Ring",size:22}),_e("span",{className:"ml-2",children:["App Version: ",e.appVersion]})]}),_e("div",{className:"mt-4 flex text-sm font-bold",children:[T(ze,{name:"Hdd",size:22}),T("span",{className:"ml-2",children:"Drive Tools:"})]}),_e("div",{children:[T("label",{htmlFor:"selectedDrive",className:"text-xs",children:"Selected Drive:"}),T(jp,{id:"selectedDrive",onChange:I=>{if(!I||typeof I!="object"||!("value"in I)){u(void 0),f(null);return}u(I.value),f(null)},options:y.map(I=>({label:I.state.global.name,value:I.state.global.id}))})]}),T("div",{className:"mt-2 flex items-end justify-between pl-4",children:_e("div",{className:"w-[400px]",children:[T("label",{htmlFor:"autoRegisterPullResponder",className:"text-xs",children:"Auto register pull responder:"}),T(jp,{id:"autoRegisterPullResponder",onChange:I=>{F(I)},value:h,options:[{label:"Enabled",value:"true"},{label:"Disabled",value:"false"}]})]})}),_e("div",{className:"mt-2 flex items-end justify-between pl-4",children:[_e("div",{className:"w-[400px]",children:[T("label",{htmlFor:"driveTrigger",className:"text-xs",children:"Drive trigger:"}),T(jp,{id:"driveTrigger",onChange:I=>{f(I)},value:d,options:w.map(I=>({label:`${I.id} - ${I.type}`,value:I.id}))})]}),T("div",{children:T(Pr,{onClick:O,color:d?"red":"light",disabled:!d,size:"small",children:"Remove Trigger"})})]}),_e("div",{className:"mt-2 flex items-end justify-between pl-4",children:[_e("div",{className:"w-[400px]",children:[T("label",{htmlFor:"driveUrl",className:"text-xs",children:"Add drive trigger:"}),T(rc,{containerClassName:"p-1 bg-white border border-gray-200 rounded-md text-sm",inputClassName:"text-xs font-normal",id:"driveUrl",icon:T("div",{className:"flex h-full items-center text-xs",children:"URL:"}),value:p,onChange:I=>m(I.target.value)})]}),_e("div",{className:"mb-1 flex items-center justify-center",children:[T(Pr,{className:"mr-2",color:_?"light":"blue",size:"small",disabled:_,onClick:()=>M(),children:"Add Trigger"}),T(Pr,{color:_?"light":"red",size:"small",disabled:_,onClick:()=>M(!0),children:"Add Invalid Trigger"})]})]}),_e("div",{className:"mt-4 flex text-sm font-bold",children:[T(ze,{name:"Gear",size:22}),T("span",{className:"ml-2",children:"Service Worker Tools:"})]}),T("div",{className:"mt-2 flex items-end justify-between pl-4",children:_e("div",{className:"w-[400px]",children:[T("label",{htmlFor:"serviceWorkerDebugMode",className:"text-xs",children:"Service Worker Debug Mode:"}),T(jp,{id:"serviceWorkerDebugMode",onChange:I=>{c(I)},value:a,options:[{label:"Enabled",value:!0},{label:"Disabled",value:!1}]})]})}),_e("div",{className:"mt-2 flex items-end justify-between pl-4",children:[_e("div",{className:"w-[400px]",children:[T("label",{htmlFor:"appVersion",className:"text-xs",children:"Set invalid app version:"}),T(rc,{containerClassName:"p-1 bg-white border border-gray-200 rounded-md text-sm",inputClassName:"text-xs font-normal",id:"appVersion",icon:T("div",{className:"flex h-full items-center text-xs",children:"Version:"}),value:s,onChange:I=>o(I.target.value)})]}),T("div",{className:"mb-1 flex items-center justify-center",children:T(Pr,{color:s===""?"light":"red",size:"small",disabled:s==="",onClick:()=>{Np.sendMessage({type:"SET_APP_VERSION",version:s}),o("")},children:"Add Invalid App Version"})})]})]})})},kde=t=>{const{open:e,onClose:n,uiDriveNode:r,onDelete:i}=t,{t:s}=ha();return T(xH,{open:e,driveName:r.name,onCancel:n,header:s("modals.deleteDrive.title",{label:r.name}),body:s("modals.deleteDrive.body"),inputPlaceholder:s("modals.deleteDrive.inputPlaceholder"),cancelLabel:s("common.cancel"),continueLabel:s("common.delete"),onContinue:()=>i(n),onOpenChange:o=>{if(!o)return n()}})},Ade=t=>{const{t:e}=ha(),{uiNode:n,open:r,onClose:i,onDelete:s}=t,{kind:o,name:a}=n;return T(TH,{open:r,onDelete:()=>s(i),onCancel:()=>i(),header:e(`modals.deleteItem.${o.toLowerCase()}.header`,{item:a}),body:e(`modals.deleteItem.${o.toLowerCase()}.body`),cancelLabel:e("common.cancel"),deleteLabel:e("common.delete")})},Nde=t=>{const{open:e,onClose:n}=t,{t:r}=ha();return T(G1,{open:e,header:r("modals.disclaimer.title"),body:r("modals.disclaimer.body"),closeLabel:"Close",onContinue:()=>n()})};function Pde(t){const{uiDriveNode:e,open:n,onRenameDrive:r,onDeleteDrive:i,onChangeAvailableOffline:s,onChangeSharingType:o,onClose:a}=t;return T(IH,{uiDriveNode:e,open:n,onRenameDrive:r,onDeleteDrive:i,onChangeAvailableOffline:s,onChangeSharingType:o,onOpenChange:c=>{if(!c)return a()}})}const Mde=()=>{const[t]=E0();return T(FW,{packageJson:p$,phCliVersion:typeof t.phCliVersion=="string"?t.phCliVersion:void 0})};var Lde=Object.defineProperty,Fde=Object.getOwnPropertyDescriptor,ks=(t,e,n,r)=>{for(var i=Fde(e,n),s=t.length-1,o;s>=0;s--)(o=t[s])&&(i=o(e,n,i)||i);return i&&Lde(e,n,i),i};function As(t,e,n){const r=n.value;n.value=function(...i){if(!this.server)throw new Error("Read mode document drive not initialized.");return r.apply(this,i)}}function $de(t){const e=Object.getPrototypeOf(t);Object.getOwnPropertyNames(e).forEach(r=>{const i=Object.getOwnPropertyDescriptor(e,r);i&&typeof i.value=="function"&&r!=="constructor"&&(t[r]=t[r].bind(t))})}class Ji{constructor(e){qe(this,"server");$de(this),this.server=e}getServer(){return this.server}setDocumentDrive(e){this.server=e}migrateReadDrive(e,n){return this.server.migrateReadDrive(e,n)}addReadDrive(e,n){return this.server.addReadDrive(e,n)}getReadDrives(){return this.server.getReadDrives()}getReadDriveBySlug(e){return this.server.getReadDriveBySlug(e)}getReadDrive(e){return this.server.getReadDrive(e)}getReadDriveContext(e){return this.server.getReadDriveContext(e)}fetchDrive(e){return this.server.fetchDrive(e)}fetchDocument(e,n,r){return this.server.fetchDocument(e,n,r)}deleteReadDrive(e){return this.server.deleteReadDrive(e)}onReadDrivesUpdate(e){return this.server.onReadDrivesUpdate(e)}}ks([As],Ji.prototype,"migrateReadDrive");ks([As],Ji.prototype,"addReadDrive");ks([As],Ji.prototype,"getReadDrives");ks([As],Ji.prototype,"getReadDriveBySlug");ks([As],Ji.prototype,"getReadDrive");ks([As],Ji.prototype,"getReadDriveContext");ks([As],Ji.prototype,"fetchDrive");ks([As],Ji.prototype,"fetchDocument");ks([As],Ji.prototype,"deleteReadDrive");ks([As],Ji.prototype,"onReadDrivesUpdate");const al=new Ji,LF=fu({...al,readDrives:[]});async function jde(t){const e=await t.getReadDrives();return(await Promise.all(e.map(r=>t.getReadDrive(r)))).filter(r=>!(r instanceof Da))}const Ude=t=>{const e=sde(),[n,r]=Qe([]),i=w0(),[s,o]=Qe(!1);jt(()=>{e&&(al.setDocumentDrive(e),o(!0))},[e]);const a=i===void 0?void 0:!(i.isAllowedToCreateDocuments||i.isAllowedToEditDocuments);En(()=>{if(!s||a===void 0)return;const l=a?"READ":"WRITE",u=al.getServer();u&&typeof u.setAllDefaultDrivesAccessLevel=="function"&&u.setAllDefaultDrivesAccessLevel(l).catch(Bn.error)},[a,s]),jt(()=>{if(!s)return;jde(al).then(u=>r(u)).catch(Bn.error);const l=al.onReadDrivesUpdate(u=>{r(d=>d.length!==u.length||bg(d)!==bg(u)?u:d)}).catch(Bn.error);return()=>{l.then(u=>u==null?void 0:u()).catch(Bn.error)}},[s]);const c=En(()=>({...al,readDrives:n}),[n]);return T(LF.Provider,{...t,value:c})},Bde=()=>da(LF);function zde(t,e=50){let n;const r=[];return i=>{n&&clearTimeout(n);const s=r.findIndex(o=>o.scope===i.scope&&o.index===i.index);if(s>-1){const o=r[s];o.type===i.type&&JSON.stringify(i.input)===JSON.stringify(o.input)||console.warn("Two conflicting operations were dispatched:",o,i),r[s]=i}else r.push(i);return new Promise((o,a)=>{n=setTimeout(()=>{t(r).then(o).catch(a)},e)})}}const Vde=rn(new Map),ob=rn(void 0);function Hde(t,e){return t===e?!0:!t||!e?!1:dc(t)===dc(e)}const tm=rn(t=>t(ob),(t,e,n)=>{const r=t(ob),i=t(Vde);return!(n!=null&&n.document)&&(n==null?void 0:n.status)==="LOADING"&&(n.document=i.get(`${n.driveId}:${n.documentId}`)),(r==null?void 0:r.driveId)!==(n==null?void 0:n.driveId)||(r==null?void 0:r.documentId)!==(n==null?void 0:n.documentId)||(r==null?void 0:r.documentType)!==(n==null?void 0:n.documentType)||(r==null?void 0:r.status)!==(n==null?void 0:n.status)||!!(r!=null&&r.document)!=!!(n!=null&&n.document)||r!=null&&r.document&&(n!=null&&n.document)&&sw(r.document)!==sw(n.document)?((n==null?void 0:n.status)==="LOADED"&&i.set(`${n.driveId}:${n.documentId}`,n.document),e(ob,n),!0):!1}),Wde=rn(null,(t,e,n)=>{const r=t(tm);if(r)n?Hde(n,r.document)||e(tm,{...r,document:n}):e(tm,void 0);else throw new Error("fileNodeDocument is undefined")}),qde=()=>GA(Wde);function Gde(t){const{selectedNode:e,selectedDriveNode:n,openFile:r,addOperations:i,onStrandUpdate:s,fetchDocument:o}=t,[a,c]=yi(tm),l=(n==null?void 0:n.sharingType)!=="LOCAL"&&(n==null?void 0:n.syncStatus)===void 0,u=e==null?void 0:e.driveId,d=e==null?void 0:e.id,f=e==null?void 0:e.name,p=e==null?void 0:e.kind,m=p==="FILE"?e==null?void 0:e.documentType:void 0,h=qde(),g=Te(async(E,w,S)=>{const _=await(l?o(E,w,S):r(E,w));if(_ instanceof Error)throw _;return _},[o,l,r]);jt(()=>{if(!u||!d||!m){a&&c(void 0);return}(u!==(a==null?void 0:a.driveId)||d!==a.documentId||m!==a.documentType||f!==a.name)&&c({driveId:u,documentId:d,documentType:m,name:f||"",document:void 0,status:"LOADING"})&&g(u,d,m).then(w=>c(w?{driveId:u,documentId:d,documentType:m,document:w,name:f||"",status:"LOADED"}:{driveId:u,documentId:d,documentType:m,document:w,name:f||"",status:"ERROR"})).catch(w=>{Bn.error(w),c({driveId:u,documentId:d,documentType:m,name:f||"",document:void 0,status:"ERROR"})})},[e,d,m,f,u,g,a,c]),jt(()=>!(a!=null&&a.driveId)||!a.documentId||!a.documentType?void 0:s(w=>{w.driveId===a.driveId&&w.documentId===a.documentId&&g(a.driveId,a.documentId,a.documentType).then(h).catch(Bn.error)}),[a==null?void 0:a.driveId,a==null?void 0:a.documentId,a==null?void 0:a.documentType,s,g,h]);const y=En(()=>{if(u&&d&&p===sr)return zde(E=>i(u,d,E))},[i,u,d,p]),v=p===sr&&(a==null?void 0:a.driveId)===u&&(a==null?void 0:a.documentId)===d,b=v?a==null?void 0:a.document:void 0;return En(()=>({fileNodeDocument:a,selectedDocument:b,setSelectedDocument:h,addOperationToSelectedDocument:y}),[a,v,b,h,y])}const S0=localStorage.getItem("CONNECT_DEBUG")==="true",Zde=[{sharingType:to,label:"Public Drives"},{sharingType:$l,label:"Secure Cloud Drives"},{sharingType:Js,label:"My Local Drives"}],MO=t=>Ai.drives.sections[t];function ab(t){const e=[...c5];return Ai.drives.sections[t].allowDelete&&e.push(Vg),S0&&e.push(...Pw),e}function cb(){const t=[...l5];return S0&&t.push(...Pw),t}function lb(){const t=[...u5];return S0&&t.push(...Pw),t}function Yde(){return{[Js]:{[qr]:ab(Js),[gd]:lb(),[sr]:cb()},[$l]:{[qr]:ab($l),[gd]:lb(),[sr]:cb()},[to]:{[qr]:ab(to),[gd]:lb(),[sr]:cb()}}}const pme=Zde.filter(t=>MO(t.sharingType).enabled).map(t=>{const e=MO(t.sharingType);return{...t,disableAddDrives:!e.allowAdd}});function FF(t){var o;const{documentDrives:e}=Cp();if(!t)return{drive:null,remoteUrl:null,isRemoteDrive:!1};const n=e.find(a=>a.state.global.id===t),r=n==null?void 0:n.state.local.triggers.find(a=>a.type==="PullResponder"),{remoteUrl:i}=(n==null?void 0:n.state.global)||{},s=!!i||!!r;return{drive:n,remoteUrl:i||((o=r==null?void 0:r.data)==null?void 0:o.url),isRemoteDrive:s}}var x0={exports:{}};x0.exports;(function(t){var e=function(){var n=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",s={};function o(c,l){if(!s[c]){s[c]={};for(var u=0;u<c.length;u++)s[c][c.charAt(u)]=u}return s[c][l]}var a={compressToBase64:function(c){if(c==null)return"";var l=a._compress(c,6,function(u){return r.charAt(u)});switch(l.length%4){default:case 0:return l;case 1:return l+"===";case 2:return l+"==";case 3:return l+"="}},decompressFromBase64:function(c){return c==null?"":c==""?null:a._decompress(c.length,32,function(l){return o(r,c.charAt(l))})},compressToUTF16:function(c){return c==null?"":a._compress(c,15,function(l){return n(l+32)})+" "},decompressFromUTF16:function(c){return c==null?"":c==""?null:a._decompress(c.length,16384,function(l){return c.charCodeAt(l)-32})},compressToUint8Array:function(c){for(var l=a.compress(c),u=new Uint8Array(l.length*2),d=0,f=l.length;d<f;d++){var p=l.charCodeAt(d);u[d*2]=p>>>8,u[d*2+1]=p%256}return u},decompressFromUint8Array:function(c){if(c==null)return a.decompress(c);for(var l=new Array(c.length/2),u=0,d=l.length;u<d;u++)l[u]=c[u*2]*256+c[u*2+1];var f=[];return l.forEach(function(p){f.push(n(p))}),a.decompress(f.join(""))},compressToEncodedURIComponent:function(c){return c==null?"":a._compress(c,6,function(l){return i.charAt(l)})},decompressFromEncodedURIComponent:function(c){return c==null?"":c==""?null:(c=c.replace(/ /g,"+"),a._decompress(c.length,32,function(l){return o(i,c.charAt(l))}))},compress:function(c){return a._compress(c,16,function(l){return n(l)})},_compress:function(c,l,u){if(c==null)return"";var d,f,p={},m={},h="",g="",y="",v=2,b=3,E=2,w=[],S=0,_=0,O;for(O=0;O<c.length;O+=1)if(h=c.charAt(O),Object.prototype.hasOwnProperty.call(p,h)||(p[h]=b++,m[h]=!0),g=y+h,Object.prototype.hasOwnProperty.call(p,g))y=g;else{if(Object.prototype.hasOwnProperty.call(m,y)){if(y.charCodeAt(0)<256){for(d=0;d<E;d++)S=S<<1,_==l-1?(_=0,w.push(u(S)),S=0):_++;for(f=y.charCodeAt(0),d=0;d<8;d++)S=S<<1|f&1,_==l-1?(_=0,w.push(u(S)),S=0):_++,f=f>>1}else{for(f=1,d=0;d<E;d++)S=S<<1|f,_==l-1?(_=0,w.push(u(S)),S=0):_++,f=0;for(f=y.charCodeAt(0),d=0;d<16;d++)S=S<<1|f&1,_==l-1?(_=0,w.push(u(S)),S=0):_++,f=f>>1}v--,v==0&&(v=Math.pow(2,E),E++),delete m[y]}else for(f=p[y],d=0;d<E;d++)S=S<<1|f&1,_==l-1?(_=0,w.push(u(S)),S=0):_++,f=f>>1;v--,v==0&&(v=Math.pow(2,E),E++),p[g]=b++,y=String(h)}if(y!==""){if(Object.prototype.hasOwnProperty.call(m,y)){if(y.charCodeAt(0)<256){for(d=0;d<E;d++)S=S<<1,_==l-1?(_=0,w.push(u(S)),S=0):_++;for(f=y.charCodeAt(0),d=0;d<8;d++)S=S<<1|f&1,_==l-1?(_=0,w.push(u(S)),S=0):_++,f=f>>1}else{for(f=1,d=0;d<E;d++)S=S<<1|f,_==l-1?(_=0,w.push(u(S)),S=0):_++,f=0;for(f=y.charCodeAt(0),d=0;d<16;d++)S=S<<1|f&1,_==l-1?(_=0,w.push(u(S)),S=0):_++,f=f>>1}v--,v==0&&(v=Math.pow(2,E),E++),delete m[y]}else for(f=p[y],d=0;d<E;d++)S=S<<1|f&1,_==l-1?(_=0,w.push(u(S)),S=0):_++,f=f>>1;v--,v==0&&(v=Math.pow(2,E),E++)}for(f=2,d=0;d<E;d++)S=S<<1|f&1,_==l-1?(_=0,w.push(u(S)),S=0):_++,f=f>>1;for(;;)if(S=S<<1,_==l-1){w.push(u(S));break}else _++;return w.join("")},decompress:function(c){return c==null?"":c==""?null:a._decompress(c.length,32768,function(l){return c.charCodeAt(l)})},_decompress:function(c,l,u){var d=[],f=4,p=4,m=3,h="",g=[],y,v,b,E,w,S,_,O={val:u(0),position:l,index:1};for(y=0;y<3;y+=1)d[y]=y;for(b=0,w=Math.pow(2,2),S=1;S!=w;)E=O.val&O.position,O.position>>=1,O.position==0&&(O.position=l,O.val=u(O.index++)),b|=(E>0?1:0)*S,S<<=1;switch(b){case 0:for(b=0,w=Math.pow(2,8),S=1;S!=w;)E=O.val&O.position,O.position>>=1,O.position==0&&(O.position=l,O.val=u(O.index++)),b|=(E>0?1:0)*S,S<<=1;_=n(b);break;case 1:for(b=0,w=Math.pow(2,16),S=1;S!=w;)E=O.val&O.position,O.position>>=1,O.position==0&&(O.position=l,O.val=u(O.index++)),b|=(E>0?1:0)*S,S<<=1;_=n(b);break;case 2:return""}for(d[3]=_,v=_,g.push(_);;){if(O.index>c)return"";for(b=0,w=Math.pow(2,m),S=1;S!=w;)E=O.val&O.position,O.position>>=1,O.position==0&&(O.position=l,O.val=u(O.index++)),b|=(E>0?1:0)*S,S<<=1;switch(_=b){case 0:for(b=0,w=Math.pow(2,8),S=1;S!=w;)E=O.val&O.position,O.position>>=1,O.position==0&&(O.position=l,O.val=u(O.index++)),b|=(E>0?1:0)*S,S<<=1;d[p++]=n(b),_=p-1,f--;break;case 1:for(b=0,w=Math.pow(2,16),S=1;S!=w;)E=O.val&O.position,O.position>>=1,O.position==0&&(O.position=l,O.val=u(O.index++)),b|=(E>0?1:0)*S,S<<=1;d[p++]=n(b),_=p-1,f--;break;case 2:return g.join("")}if(f==0&&(f=Math.pow(2,m),m++),d[_])h=d[_];else if(_===p)h=v+v.charAt(0);else return null;g.push(h),d[p++]=v+h.charAt(0),f--,v=h,f==0&&(f=Math.pow(2,m),m++)}}};return a}();t!=null?t.exports=e:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return e})})(x0);var Kde=x0.exports;const Jde=pa(Kde),Xde=`... on RealWorldAssets {
458
458
  state {
459
459
  portfolio {
460
460
  __typename
@@ -578,5 +578,5 @@ Sentry.init({ replaysOnErrorSampleRate: ${u} })`),this._initialOptions.errorSamp
578
578
  * LICENSE.md file in the root directory of this source tree.
579
579
  *
580
580
  * @license MIT
581
- */function qf(){return qf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},qf.apply(this,arguments)}const R0=k.createContext(null),Spe=k.createContext(null),$y=k.createContext(null),jy=k.createContext(null),_a=k.createContext({outlet:null,matches:[],isDataRoute:!1}),JF=k.createContext(null);function Uy(){return k.useContext(jy)!=null}function D0(){return Uy()||Pt(!1),k.useContext(jy).location}function xpe(){return k.useContext(jy).navigationType}function XF(t){k.useContext($y).static||k.useLayoutEffect(t)}function mme(){let{isDataRoute:t}=k.useContext(_a);return t?Fpe():Tpe()}function Tpe(){Uy()||Pt(!1);let t=k.useContext(R0),{basename:e,future:n,navigator:r}=k.useContext($y),{matches:i}=k.useContext(_a),{pathname:s}=D0(),o=JSON.stringify(VF(i,n.v7_relativeSplatPath)),a=k.useRef(!1);return XF(()=>{a.current=!0}),k.useCallback(function(l,u){if(u===void 0&&(u={}),!a.current)return;if(typeof l=="number"){r.go(l);return}let d=HF(l,JSON.parse(o),s,u.relative==="path");t==null&&e!=="/"&&(d.pathname=d.pathname==="/"?e:Go([e,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[e,r,o,s,t])}const Ipe=k.createContext(null);function Ope(t){let e=k.useContext(_a).outlet;return e&&k.createElement(Ipe.Provider,{value:t},e)}function gme(){let{matches:t}=k.useContext(_a),e=t[t.length-1];return e?e.params:{}}function yme(t,e,n,r){Uy()||Pt(!1);let{navigator:i,static:s}=k.useContext($y),{matches:o}=k.useContext(_a),a=o[o.length-1],c=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let u=D0(),d;d=u;let f=d.pathname||"/",p=f;if(l!=="/"){let g=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(g.length).join("/")}let m=!s&&n&&n.matches&&n.matches.length>0?n.matches:Lo(t,{pathname:p});return Ape(m&&m.map(g=>Object.assign({},g,{params:Object.assign({},c,g.params),pathname:Go([l,i.encodeLocation?i.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:Go([l,i.encodeLocation?i.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,n,r)}function Cpe(){let t=Lpe(),e=Wf(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},e),n?k.createElement("pre",{style:i},n):null,null)}const Rpe=k.createElement(Cpe,null);class Dpe extends k.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?k.createElement(_a.Provider,{value:this.props.routeContext},k.createElement(JF.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function kpe(t){let{routeContext:e,match:n,children:r}=t,i=k.useContext(R0);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(_a.Provider,{value:e},r)}function Ape(t,e,n,r){var i;if(e===void 0&&(e=[]),n===void 0&&(n=null),r===void 0&&(r=null),t==null){var s;if(!n)return null;if(n.errors)t=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let o=t,a=(i=n)==null?void 0:i.errors;if(a!=null){let u=o.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);u>=0||Pt(!1),o=o.slice(0,Math.min(o.length,u+1))}let c=!1,l=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<o.length;u++){let d=o[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(l=u),d.route.id){let{loaderData:f,errors:p}=n,m=d.route.loader&&f[d.route.id]===void 0&&(!p||p[d.route.id]===void 0);if(d.route.lazy||m){c=!0,l>=0?o=o.slice(0,l+1):o=[o[0]];break}}}return o.reduceRight((u,d,f)=>{let p,m=!1,h=null,g=null;n&&(p=a&&d.route.id?a[d.route.id]:void 0,h=d.route.errorElement||Rpe,c&&(l<0&&f===0?(m=!0,g=null):l===f&&(m=!0,g=d.route.hydrateFallbackElement||null)));let y=e.concat(o.slice(0,f+1)),v=()=>{let b;return p?b=h:m?b=g:d.route.Component?b=k.createElement(d.route.Component,null):d.route.element?b=d.route.element:b=u,k.createElement(kpe,{match:d,routeContext:{outlet:u,matches:y,isDataRoute:n!=null},children:b})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?k.createElement(Dpe,{location:n.location,revalidation:n.revalidation,component:h,error:p,children:v(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):v()},null)}var QF=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(QF||{}),wg=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(wg||{});function Npe(t){let e=k.useContext(R0);return e||Pt(!1),e}function Ppe(t){let e=k.useContext(Spe);return e||Pt(!1),e}function Mpe(t){let e=k.useContext(_a);return e||Pt(!1),e}function e$(t){let e=Mpe(),n=e.matches[e.matches.length-1];return n.route.id||Pt(!1),n.route.id}function Lpe(){var t;let e=k.useContext(JF),n=Ppe(wg.UseRouteError),r=e$(wg.UseRouteError);return e!==void 0?e:(t=n.errors)==null?void 0:t[r]}function Fpe(){let{router:t}=Npe(QF.UseNavigateStable),e=e$(wg.UseNavigateStable),n=k.useRef(!1);return XF(()=>{n.current=!0}),k.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?t.navigate(i):t.navigate(i,qf({fromRouteId:e},s)))},[t,e])}function vme(t,e){t==null||t.v7_startTransition,(t==null?void 0:t.v7_relativeSplatPath)===void 0&&(!e||e.v7_relativeSplatPath),e&&(e.v7_fetcherPersist,e.v7_normalizeFormMethod,e.v7_partialHydration,e.v7_skipActionErrorRevalidation)}function bme(t){return Ope(t.context)}function $pe(t){Pt(!1)}function _me(t){let{basename:e="/",children:n=null,location:r,navigationType:i=bn.Pop,navigator:s,static:o=!1,future:a}=t;Uy()&&Pt(!1);let c=e.replace(/^\/*/,"/"),l=k.useMemo(()=>({basename:c,navigator:s,static:o,future:qf({v7_relativeSplatPath:!1},a)}),[c,a,s,o]);typeof r=="string"&&(r=mo(r));let{pathname:u="/",search:d="",hash:f="",state:p=null,key:m="default"}=r,h=k.useMemo(()=>{let g=Rp(u,c);return g==null?null:{location:{pathname:g,search:d,hash:f,state:p,key:m},navigationType:i}},[c,u,d,f,p,m,i]);return h==null?null:k.createElement($y.Provider,{value:l},k.createElement(jy.Provider,{children:n,value:h}))}new Promise(()=>{});function dw(t,e){e===void 0&&(e=[]);let n=[];return k.Children.forEach(t,(r,i)=>{if(!k.isValidElement(r))return;let s=[...e,i];if(r.type===k.Fragment){n.push.apply(n,dw(r.props.children,s));return}r.type!==$pe&&Pt(!1),!r.props.index||!r.props.children||Pt(!1);let o={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=dw(r.props.children,s)),n.push(o)}),n}function jpe(t){let e={hasErrorBoundary:t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&Object.assign(e,{element:k.createElement(t.Component),Component:void 0}),t.HydrateFallback&&Object.assign(e,{hydrateFallbackElement:k.createElement(t.HydrateFallback),HydrateFallback:void 0}),t.ErrorBoundary&&Object.assign(e,{errorElement:k.createElement(t.ErrorBoundary),ErrorBoundary:void 0}),e}function wme(t,e){return rpe({basename:e==null?void 0:e.basename,future:qf({},e==null?void 0:e.future,{v7_prependBasename:!0}),history:Ofe({initialEntries:e==null?void 0:e.initialEntries,initialIndex:e==null?void 0:e.initialIndex}),hydrationData:e==null?void 0:e.hydrationData,routes:t,mapRouteProperties:jpe,dataStrategy:e==null?void 0:e.dataStrategy,patchRoutesOnNavigation:e==null?void 0:e.patchRoutesOnNavigation}).initialize()}function Upe(){const[t]=JE(),{analytics:e}=t;jt(()=>{const n=Ut();if(!e){n&&n.close();return}if(n||!Ai.sentry.dsn||Ai.sentry.dsn==="")return;const r=window.__VITE_ENVS.SENTRY_RELEASE,i=[R2(),I2({depth:5}),Cce(),x2({levels:["error"]})];Ai.sentry.tracing&&i.push(Zce({useEffect:Ae.useEffect,useLocation:D0,useNavigationType:xpe,createRoutesFromChildren:dw,matchRoutes:Lo})),Gce({release:r,dsn:Ai.sentry.dsn,environment:Ai.sentry.env,integrations:i,ignoreErrors:["User is not allowed to create files","User is not allowed to move documents","The user aborted a request."],sendDefaultPii:!0,tracesSampleRate:1,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,beforeSend(s,o){const a=o.originalException;return a instanceof TypeError&&a.message.includes("Failed to fetch")&&!navigator.onLine?null:s}})},[e])}const Bpe=({children:t})=>(Upe(),t);function tC(...t){var e;(e=window.dataLayer)==null||e.push(...t)}const zpe=()=>{const[{gaTrackingId:t}]=E0(),[{analytics:e}]=JE(),n=t&&e;return jt(()=>{if(n){const r=document.createElement("script");return r.src=`https://www.googletagmanager.com/gtag/js?id=${t}`,r.async=!0,document.head.appendChild(r),window.dataLayer=window.dataLayer||[],tC("js",new Date),tC("config",t),()=>{document.head.removeChild(r)}}},[n,t]),null},Vpe=Ae.lazy(async()=>({default:await(await xe(()=>import("./router-BXAzgRkG.js").then(n=>n.r),__vite__mapDeps([7,1,2,3,8]))).default()})),Hpe=()=>{for(const t of Object.values(Aue))Dc(t);return null},Wpe=()=>T(Ae.StrictMode,{children:T(dC,{fallback:T(Zo,{}),children:_e(PZ,{store:y0,children:[T(Hpe,{}),T(IZ,{children:T(Bpe,{children:T(Ude,{children:_e(EZ,{children:[T(_Z,{position:"bottom-right"}),_e(xfe,{children:[T(Vpe,{}),T(Ife,{}),T(zpe,{})]})]})})})})]})})}),Eme=Object.freeze(Object.defineProperty({__proto__:null,default:Wpe},Symbol.toStringTag,{value:"Module"}));export{E9 as $,z6 as A,Xn as B,Q6 as C,R0 as D,aw as E,ze as F,ghe as G,X6 as H,A6 as I,Mx as J,hv as K,v9 as L,Ga as M,Vd as N,f9 as O,U6 as P,UD as Q,_me as R,g9 as S,GD as T,hhe as U,Xg as V,yhe as W,bhe as X,fhe as Y,qp as Z,I9 as _,mme as a,d8 as a$,vu as a0,PT as a1,R9 as a2,vde as a3,Bn as a4,uhe as a5,R6 as a6,$6 as a7,I6 as a8,dhe as a9,Bde as aA,sde as aB,E0 as aC,N8 as aD,ih as aE,xhe as aF,P8 as aG,gme as aH,SZ as aI,pme as aJ,yi as aK,T0 as aL,Ede as aM,kue as aN,bme as aO,the as aP,Rj as aQ,she as aR,JD as aS,X9 as aT,Qg as aU,_8 as aV,p8 as aW,whe as aX,Zx as aY,Ti as aZ,ey as a_,Oc as aa,lhe as ab,_he as ac,$D as ad,zl as ae,qD as af,y9 as ag,ihe as ah,sr as ai,qr as aj,ohe as ak,ND as al,rhe as am,nhe as an,Aw as ao,Nw as ap,zg as aq,Vg as ar,_R as as,ER as at,wR as au,SR as av,Jf as aw,ha as ax,Cp as ay,MF as az,Spe as b,f8 as b0,s1 as b1,x8 as b2,m8 as b3,br as b4,Ehe as b5,N$ as b6,Ihe as b7,She as b8,The as b9,DF as bA,dme as bB,w0 as bC,Hde as bD,mde as bE,GE as bF,Due as bG,hde as bH,fme as bI,eY as bJ,vC as bK,ife as bL,Qw as bM,yd as bN,ve as bO,ZE as bP,ii as bQ,wue as bR,Eme as bS,gd as ba,fi as bb,oG as bc,aG as bd,cG as be,lG as bf,uG as bg,ehe as bh,tH as bi,Pr as bj,Gt as bk,E6 as bl,S6 as bm,x6 as bn,T6 as bo,_ue as bp,KE as bq,rn as br,YA as bs,khe as bt,v0 as bu,ufe as bv,Dc as bw,PF as bx,ade as by,_0 as bz,yme as c,rpe as d,hme as e,ofe as f,wme as g,Qpe as h,pa as i,WD as j,u9 as k,vme as l,jpe as m,Kw as n,F6 as o,M6 as p,phe as q,jD as r,FD as s,St as t,D0 as u,ym as v,p9 as w,mhe as x,Fx as y,BD as z};
582
- //# sourceMappingURL=app-B4OFGo2O.js.map
581
+ */function qf(){return qf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},qf.apply(this,arguments)}const R0=k.createContext(null),Spe=k.createContext(null),$y=k.createContext(null),jy=k.createContext(null),_a=k.createContext({outlet:null,matches:[],isDataRoute:!1}),JF=k.createContext(null);function Uy(){return k.useContext(jy)!=null}function D0(){return Uy()||Pt(!1),k.useContext(jy).location}function xpe(){return k.useContext(jy).navigationType}function XF(t){k.useContext($y).static||k.useLayoutEffect(t)}function mme(){let{isDataRoute:t}=k.useContext(_a);return t?Fpe():Tpe()}function Tpe(){Uy()||Pt(!1);let t=k.useContext(R0),{basename:e,future:n,navigator:r}=k.useContext($y),{matches:i}=k.useContext(_a),{pathname:s}=D0(),o=JSON.stringify(VF(i,n.v7_relativeSplatPath)),a=k.useRef(!1);return XF(()=>{a.current=!0}),k.useCallback(function(l,u){if(u===void 0&&(u={}),!a.current)return;if(typeof l=="number"){r.go(l);return}let d=HF(l,JSON.parse(o),s,u.relative==="path");t==null&&e!=="/"&&(d.pathname=d.pathname==="/"?e:Go([e,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[e,r,o,s,t])}const Ipe=k.createContext(null);function Ope(t){let e=k.useContext(_a).outlet;return e&&k.createElement(Ipe.Provider,{value:t},e)}function gme(){let{matches:t}=k.useContext(_a),e=t[t.length-1];return e?e.params:{}}function yme(t,e,n,r){Uy()||Pt(!1);let{navigator:i,static:s}=k.useContext($y),{matches:o}=k.useContext(_a),a=o[o.length-1],c=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let u=D0(),d;d=u;let f=d.pathname||"/",p=f;if(l!=="/"){let g=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(g.length).join("/")}let m=!s&&n&&n.matches&&n.matches.length>0?n.matches:Lo(t,{pathname:p});return Ape(m&&m.map(g=>Object.assign({},g,{params:Object.assign({},c,g.params),pathname:Go([l,i.encodeLocation?i.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:Go([l,i.encodeLocation?i.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,n,r)}function Cpe(){let t=Lpe(),e=Wf(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},e),n?k.createElement("pre",{style:i},n):null,null)}const Rpe=k.createElement(Cpe,null);class Dpe extends k.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?k.createElement(_a.Provider,{value:this.props.routeContext},k.createElement(JF.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function kpe(t){let{routeContext:e,match:n,children:r}=t,i=k.useContext(R0);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(_a.Provider,{value:e},r)}function Ape(t,e,n,r){var i;if(e===void 0&&(e=[]),n===void 0&&(n=null),r===void 0&&(r=null),t==null){var s;if(!n)return null;if(n.errors)t=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let o=t,a=(i=n)==null?void 0:i.errors;if(a!=null){let u=o.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);u>=0||Pt(!1),o=o.slice(0,Math.min(o.length,u+1))}let c=!1,l=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<o.length;u++){let d=o[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(l=u),d.route.id){let{loaderData:f,errors:p}=n,m=d.route.loader&&f[d.route.id]===void 0&&(!p||p[d.route.id]===void 0);if(d.route.lazy||m){c=!0,l>=0?o=o.slice(0,l+1):o=[o[0]];break}}}return o.reduceRight((u,d,f)=>{let p,m=!1,h=null,g=null;n&&(p=a&&d.route.id?a[d.route.id]:void 0,h=d.route.errorElement||Rpe,c&&(l<0&&f===0?(m=!0,g=null):l===f&&(m=!0,g=d.route.hydrateFallbackElement||null)));let y=e.concat(o.slice(0,f+1)),v=()=>{let b;return p?b=h:m?b=g:d.route.Component?b=k.createElement(d.route.Component,null):d.route.element?b=d.route.element:b=u,k.createElement(kpe,{match:d,routeContext:{outlet:u,matches:y,isDataRoute:n!=null},children:b})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?k.createElement(Dpe,{location:n.location,revalidation:n.revalidation,component:h,error:p,children:v(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):v()},null)}var QF=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(QF||{}),wg=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(wg||{});function Npe(t){let e=k.useContext(R0);return e||Pt(!1),e}function Ppe(t){let e=k.useContext(Spe);return e||Pt(!1),e}function Mpe(t){let e=k.useContext(_a);return e||Pt(!1),e}function e$(t){let e=Mpe(),n=e.matches[e.matches.length-1];return n.route.id||Pt(!1),n.route.id}function Lpe(){var t;let e=k.useContext(JF),n=Ppe(wg.UseRouteError),r=e$(wg.UseRouteError);return e!==void 0?e:(t=n.errors)==null?void 0:t[r]}function Fpe(){let{router:t}=Npe(QF.UseNavigateStable),e=e$(wg.UseNavigateStable),n=k.useRef(!1);return XF(()=>{n.current=!0}),k.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?t.navigate(i):t.navigate(i,qf({fromRouteId:e},s)))},[t,e])}function vme(t,e){t==null||t.v7_startTransition,(t==null?void 0:t.v7_relativeSplatPath)===void 0&&(!e||e.v7_relativeSplatPath),e&&(e.v7_fetcherPersist,e.v7_normalizeFormMethod,e.v7_partialHydration,e.v7_skipActionErrorRevalidation)}function bme(t){return Ope(t.context)}function $pe(t){Pt(!1)}function _me(t){let{basename:e="/",children:n=null,location:r,navigationType:i=bn.Pop,navigator:s,static:o=!1,future:a}=t;Uy()&&Pt(!1);let c=e.replace(/^\/*/,"/"),l=k.useMemo(()=>({basename:c,navigator:s,static:o,future:qf({v7_relativeSplatPath:!1},a)}),[c,a,s,o]);typeof r=="string"&&(r=mo(r));let{pathname:u="/",search:d="",hash:f="",state:p=null,key:m="default"}=r,h=k.useMemo(()=>{let g=Rp(u,c);return g==null?null:{location:{pathname:g,search:d,hash:f,state:p,key:m},navigationType:i}},[c,u,d,f,p,m,i]);return h==null?null:k.createElement($y.Provider,{value:l},k.createElement(jy.Provider,{children:n,value:h}))}new Promise(()=>{});function dw(t,e){e===void 0&&(e=[]);let n=[];return k.Children.forEach(t,(r,i)=>{if(!k.isValidElement(r))return;let s=[...e,i];if(r.type===k.Fragment){n.push.apply(n,dw(r.props.children,s));return}r.type!==$pe&&Pt(!1),!r.props.index||!r.props.children||Pt(!1);let o={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=dw(r.props.children,s)),n.push(o)}),n}function jpe(t){let e={hasErrorBoundary:t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&Object.assign(e,{element:k.createElement(t.Component),Component:void 0}),t.HydrateFallback&&Object.assign(e,{hydrateFallbackElement:k.createElement(t.HydrateFallback),HydrateFallback:void 0}),t.ErrorBoundary&&Object.assign(e,{errorElement:k.createElement(t.ErrorBoundary),ErrorBoundary:void 0}),e}function wme(t,e){return rpe({basename:e==null?void 0:e.basename,future:qf({},e==null?void 0:e.future,{v7_prependBasename:!0}),history:Ofe({initialEntries:e==null?void 0:e.initialEntries,initialIndex:e==null?void 0:e.initialIndex}),hydrationData:e==null?void 0:e.hydrationData,routes:t,mapRouteProperties:jpe,dataStrategy:e==null?void 0:e.dataStrategy,patchRoutesOnNavigation:e==null?void 0:e.patchRoutesOnNavigation}).initialize()}function Upe(){const[t]=JE(),{analytics:e}=t;jt(()=>{const n=Ut();if(!e){n&&n.close();return}if(n||!Ai.sentry.dsn||Ai.sentry.dsn==="")return;const r=window.__VITE_ENVS.SENTRY_RELEASE,i=[R2(),I2({depth:5}),Cce(),x2({levels:["error"]})];Ai.sentry.tracing&&i.push(Zce({useEffect:Ae.useEffect,useLocation:D0,useNavigationType:xpe,createRoutesFromChildren:dw,matchRoutes:Lo})),Gce({release:r,dsn:Ai.sentry.dsn,environment:Ai.sentry.env,integrations:i,ignoreErrors:["User is not allowed to create files","User is not allowed to move documents","The user aborted a request."],sendDefaultPii:!0,tracesSampleRate:1,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,beforeSend(s,o){const a=o.originalException;return a instanceof TypeError&&a.message.includes("Failed to fetch")&&!navigator.onLine?null:s}})},[e])}const Bpe=({children:t})=>(Upe(),t);function tC(...t){var e;(e=window.dataLayer)==null||e.push(...t)}const zpe=()=>{const[{gaTrackingId:t}]=E0(),[{analytics:e}]=JE(),n=t&&e;return jt(()=>{if(n){const r=document.createElement("script");return r.src=`https://www.googletagmanager.com/gtag/js?id=${t}`,r.async=!0,document.head.appendChild(r),window.dataLayer=window.dataLayer||[],tC("js",new Date),tC("config",t),()=>{document.head.removeChild(r)}}},[n,t]),null},Vpe=Ae.lazy(async()=>({default:await(await xe(()=>import("./router-BEJNE1RL.js").then(n=>n.r),__vite__mapDeps([7,1,2,3,8]))).default()})),Hpe=()=>{for(const t of Object.values(Aue))Dc(t);return null},Wpe=()=>T(Ae.StrictMode,{children:T(dC,{fallback:T(Zo,{}),children:_e(PZ,{store:y0,children:[T(Hpe,{}),T(IZ,{children:T(Bpe,{children:T(Ude,{children:_e(EZ,{children:[T(_Z,{position:"bottom-right"}),_e(xfe,{children:[T(Vpe,{}),T(Ife,{}),T(zpe,{})]})]})})})})]})})}),Eme=Object.freeze(Object.defineProperty({__proto__:null,default:Wpe},Symbol.toStringTag,{value:"Module"}));export{E9 as $,z6 as A,Xn as B,Q6 as C,R0 as D,aw as E,ze as F,ghe as G,X6 as H,A6 as I,Mx as J,hv as K,v9 as L,Ga as M,Vd as N,f9 as O,U6 as P,UD as Q,_me as R,g9 as S,GD as T,hhe as U,Xg as V,yhe as W,bhe as X,fhe as Y,qp as Z,I9 as _,mme as a,d8 as a$,vu as a0,PT as a1,R9 as a2,vde as a3,Bn as a4,uhe as a5,R6 as a6,$6 as a7,I6 as a8,dhe as a9,Bde as aA,sde as aB,E0 as aC,N8 as aD,ih as aE,xhe as aF,P8 as aG,gme as aH,SZ as aI,pme as aJ,yi as aK,T0 as aL,Ede as aM,kue as aN,bme as aO,the as aP,Rj as aQ,she as aR,JD as aS,X9 as aT,Qg as aU,_8 as aV,p8 as aW,whe as aX,Zx as aY,Ti as aZ,ey as a_,Oc as aa,lhe as ab,_he as ac,$D as ad,zl as ae,qD as af,y9 as ag,ihe as ah,sr as ai,qr as aj,ohe as ak,ND as al,rhe as am,nhe as an,Aw as ao,Nw as ap,zg as aq,Vg as ar,_R as as,ER as at,wR as au,SR as av,Jf as aw,ha as ax,Cp as ay,MF as az,Spe as b,f8 as b0,s1 as b1,x8 as b2,m8 as b3,br as b4,Ehe as b5,N$ as b6,Ihe as b7,She as b8,The as b9,ade as bA,_0 as bB,DF as bC,dme as bD,w0 as bE,Hde as bF,mde as bG,GE as bH,Due as bI,hde as bJ,fme as bK,gd as bL,eY as bM,vC as bN,ife as bO,Qw as bP,yd as bQ,ve as bR,ZE as bS,ii as bT,wue as bU,Eme as bV,l5 as ba,u5 as bb,fi as bc,oG as bd,aG as be,cG as bf,lG as bg,uG as bh,ehe as bi,tH as bj,Pr as bk,Gt as bl,Ht as bm,E6 as bn,S6 as bo,x6 as bp,T6 as bq,_ue as br,KE as bs,rn as bt,YA as bu,khe as bv,v0 as bw,ufe as bx,Dc as by,PF as bz,yme as c,rpe as d,hme as e,ofe as f,wme as g,Qpe as h,pa as i,WD as j,u9 as k,vme as l,jpe as m,Kw as n,F6 as o,M6 as p,phe as q,jD as r,FD as s,St as t,D0 as u,ym as v,p9 as w,mhe as x,Fx as y,BD as z};
582
+ //# sourceMappingURL=app-DVu2OIYO.js.map