@zeniai/web-cockpit-ui 2.3.23-next → 2.3.23-prod

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 (57) hide show
  1. package/dist/assets/{CreditAgentRoutes-BLO6Skx9.js → CreditAgentRoutes-B5J6cqJa.js} +1 -1
  2. package/dist/assets/{Editor-BJM3mxbk-C4J76riV.js → Editor-BJM3mxbk-D6ZkN0Gm.js} +1 -1
  3. package/dist/assets/{Preview-DcyeeKtF.js → Preview-5mLD7tZ3.js} +1 -1
  4. package/dist/assets/{ScreenRoutes-DZs1BTXi.js → ScreenRoutes-C3v-R7MI.js} +3 -3
  5. package/dist/assets/{SignInScreen-Cj4DTxYR.js → SignInScreen-_vmLHcGt.js} +1 -1
  6. package/dist/assets/{TaskDescriptionEditor-CfKh5nux-4GNyZ2ts.js → TaskDescriptionEditor-CfKh5nux-DbhXtG5R.js} +1 -1
  7. package/dist/assets/{analytics-DHnqyCH0.js → analytics-CR-8MP1n.js} +1 -1
  8. package/dist/assets/{analyticsHelper-DbCQv-FA.js → analyticsHelper-DF-TdxkW.js} +1 -1
  9. package/dist/assets/{apple-wallet-DMr790ZM-BqzbgW-h.js → apple-wallet-DMr790ZM-JU6fJk7Q.js} +1 -1
  10. package/dist/assets/{bank-verification-HpVi21UA-CeJVvA0Q.js → bank-verification-HpVi21UA-CmBvPiv2.js} +1 -1
  11. package/dist/assets/{core-FPb4xGqN.js → core-BtClLHbn.js} +1 -1
  12. package/dist/assets/{dash.all.min-BA6SgY_U.js → dash.all.min-DzhZwm5Q.js} +1 -1
  13. package/dist/assets/{empty-DMooVy1N.js → empty-BM4YTbZN.js} +1 -1
  14. package/dist/assets/{empty-B7VJJYqG.js → empty-BNecHEa_.js} +1 -1
  15. package/dist/assets/{epic-CWc4ETqX.js → epic-D6Rs0QRb.js} +1 -1
  16. package/dist/assets/{index-Dwre1C8R.js → index-4niEGHeI.js} +3 -3
  17. package/dist/assets/{index-BXYqO8jb.js → index-9AMDX0s7.js} +2 -2
  18. package/dist/assets/{index-Bdk1oRpA.js → index-B1iaqXdt.js} +1 -1
  19. package/dist/assets/{index-pqHOXxXD.js → index-BPz0ZgQs.js} +1 -1
  20. package/dist/assets/{index-dzWR0i9B.js → index-BwOeo2Vd.js} +20 -20
  21. package/dist/assets/{index-BWJwubl1.js → index-CCM2ObO_.js} +1 -1
  22. package/dist/assets/{index-BTZO-pTu.js → index-Dg2ZnF4B.js} +1 -1
  23. package/dist/assets/{index-B-TiatFu.js → index-ccwRtO3f.js} +1 -1
  24. package/dist/assets/{lexical-BNR9Ydn0.js → lexical-DNkqWVUi.js} +1 -1
  25. package/dist/assets/{liveblocks-Cm0ZsdGB.js → liveblocks-DSQu8EKB.js} +1 -1
  26. package/dist/assets/{lottie-Bphq5TCM.js → lottie-5Ahf-hwV.js} +1 -1
  27. package/dist/assets/{mcdonalds-logo-BTFuGR4i-BKaXlNbS.js → mcdonalds-logo-BTFuGR4i-BDrSC7Y8.js} +1 -1
  28. package/dist/assets/{mercury-logo-Xd1WsXHh-BokYgd0J.js → mercury-logo-Xd1WsXHh-B7akHytu.js} +1 -1
  29. package/dist/assets/{mercury-logo-dark-WebeUx9w-DrryruJ7.js → mercury-logo-dark-WebeUx9w-D2n6GmWb.js} +1 -1
  30. package/dist/assets/{more-providers-avatars-Dt7HPmCt-CVPtLiAo.js → more-providers-avatars-Dt7HPmCt-ACWCiptt.js} +1 -1
  31. package/dist/assets/{mui-ug_sjPms.js → mui-MnEZql1W.js} +1 -1
  32. package/dist/assets/{netsuite-logo-Dp53a_wk-DPv9Lss8.js → netsuite-logo-Dp53a_wk-ozQDhfrf.js} +1 -1
  33. package/dist/assets/{netsuite-logo-dark-C53BYo7C-BR3thhKo.js → netsuite-logo-dark-C53BYo7C-b32w0GJA.js} +1 -1
  34. package/dist/assets/{paypal-logo-RhbjaD58-C4t_fcdn.js → paypal-logo-RhbjaD58-Cq261_8u.js} +1 -1
  35. package/dist/assets/{paypal-logo-dark-_jTZA_FH-gMnszHj2.js → paypal-logo-dark-_jTZA_FH-D7q_p4Sd.js} +1 -1
  36. package/dist/assets/{phone-otp-DI7iHM2C-DBZH0Hy6.js → phone-otp-DI7iHM2C-dEy6_56m.js} +1 -1
  37. package/dist/assets/{react-C3WEPLHl.js → react-C_u0BAmm.js} +1 -1
  38. package/dist/assets/{react-C-3kEZsq.js → react-D3OpgZxp.js} +1 -1
  39. package/dist/assets/{react-CjkyP4QU.js → react-DFKT4AFV.js} +1 -1
  40. package/dist/assets/{react-D4ovtCYh.js → react-DdRA4g66.js} +1 -1
  41. package/dist/assets/{react-Dvqm_3Gm.js → react-DlAanyzp.js} +1 -1
  42. package/dist/assets/{react-Dda3NojV.js → react-Dr_-K8sz.js} +2 -2
  43. package/dist/assets/{react-BOWqk7z9.js → react-HU2P080F.js} +1 -1
  44. package/dist/assets/{react-6fjMZV_D.js → react-i-KroZGb.js} +1 -1
  45. package/dist/assets/{recharts-BwbejIPQ.js → recharts-DHFG8xJK.js} +1 -1
  46. package/dist/assets/{sentry-Bg_Qma3i.js → sentry-BMp6uTqA.js} +1 -1
  47. package/dist/assets/{subway-logo-B-Kc0fke-I_fTpSlx.js → subway-logo-B-Kc0fke-BytfchXr.js} +1 -1
  48. package/dist/assets/{underline-BZ7JVlVm-wnKIbxVR.js → underline-BZ7JVlVm-BSZ-2bHb.js} +1 -1
  49. package/dist/assets/{url-CL1LwlFq.js → url-BWCIj0l3.js} +1 -1
  50. package/dist/assets/{url-DxLvSCm3.js → url-Bm8wuJzW.js} +1 -1
  51. package/dist/assets/{utils-CRCsqMfk.js → utils-YzwqQ2QE.js} +1 -1
  52. package/dist/assets/{vendor-react-lottie-player-Qhg4gMF8-C5aG2_2e.js → vendor-react-lottie-player-Qhg4gMF8-y4D_gAiR.js} +1 -1
  53. package/dist/assets/{zeni-card-trust-BpxZYDve-BK1jxU_-.js → zeni-card-trust-BpxZYDve-CrGpd0Bs.js} +1 -1
  54. package/dist/assets/{zeni-epic-state-MERT6hYq.js → zeni-epic-state-BvLKTW7A.js} +3 -3
  55. package/dist/assets/{zeni-thanksgiving-logo-full-BLmLHEXd-B08t07gH.js → zeni-thanksgiving-logo-full-BLmLHEXd-BlJ28qrG.js} +1 -1
  56. package/dist/index.html +1 -1
  57. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import{j as s}from"./liveblocks-Cm0ZsdGB.js";import{u as D,P as U}from"./ScreenRoutes-DZs1BTXi.js";import{a as f}from"./sentry-Bg_Qma3i.js";import{i as j,n as v,g as m,h as P,k as C,l as I,N as R}from"./core-FPb4xGqN.js";import{Td as N,Te as k,lS as E,Tf as M,mI as L,mL as $,mx as _,Tg as B,Th as F,mF as O,mB as q}from"./zeni-epic-state-MERT6hYq.js";import{z as V,aj as J,q as Z,n as G,ak as H,S as K,C as Q,g as W,j as X,i as Y}from"./index-dzWR0i9B.js";import{n as ee}from"./mui-ug_sjPms.js";import"./recharts-BwbejIPQ.js";import"./analyticsHelper-DbCQv-FA.js";import"./utils-CRCsqMfk.js";import"./empty-B7VJJYqG.js";import"./index-BWJwubl1.js";import"./url-CL1LwlFq.js";import"./index-Bdk1oRpA.js";import"./analytics-DHnqyCH0.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="3ee8fe23-4689-4d94-b5c9-8100392bf6e3",a._sentryDebugIdIdentifier="sentry-dbid-3ee8fe23-4689-4d94-b5c9-8100392bf6e3")}catch{}})();function te(a,t){return{headerData:{allTabOptions:K,selectedTabOption:Q("creditAgent")},creditAgentPageData:{macroData:{data:t.macroCombined.data,fetchState:t.macroCombined.fetchStatus.fetchState,updateState:t.macroCombined.updateStatus.fetchState},cardProfilesData:t.cardProfilesData}}}function ne(a,t){return{headerActions:{onTabChange:n=>{const g=Y(n),c=X(n);W.trackCockpitTabClicked(c),t.navigate(`../../${g}`,{replace:!0})}},creditAgentPageActions:{onFetchMacro:()=>{a(q())},onSaveMacro:n=>{a(O(n))},onResetSaveMacro:()=>{a(F())},onUIStateChange:n=>{a(B(n))},cardProfilesActions:t.cardProfilesActions}}}const ae=P(te,ne)(H),oe=ee.div`
1
+ import{j as s}from"./liveblocks-DSQu8EKB.js";import{u as D,P as U}from"./ScreenRoutes-C3v-R7MI.js";import{a as f}from"./sentry-BMp6uTqA.js";import{i as j,n as v,g as m,h as P,k as C,l as I,N as R}from"./core-BtClLHbn.js";import{Td as N,Te as k,lS as E,Tf as M,mI as L,mL as $,mx as _,Tg as B,Th as F,mF as O,mB as q}from"./zeni-epic-state-BvLKTW7A.js";import{z as V,aj as J,q as Z,n as G,ak as H,S as K,C as Q,g as W,j as X,i as Y}from"./index-BwOeo2Vd.js";import{n as ee}from"./mui-MnEZql1W.js";import"./recharts-DHFG8xJK.js";import"./analyticsHelper-DF-TdxkW.js";import"./utils-YzwqQ2QE.js";import"./empty-BNecHEa_.js";import"./index-CCM2ObO_.js";import"./url-BWCIj0l3.js";import"./index-B1iaqXdt.js";import"./analytics-CR-8MP1n.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="3ee8fe23-4689-4d94-b5c9-8100392bf6e3",a._sentryDebugIdIdentifier="sentry-dbid-3ee8fe23-4689-4d94-b5c9-8100392bf6e3")}catch{}})();function te(a,t){return{headerData:{allTabOptions:K,selectedTabOption:Q("creditAgent")},creditAgentPageData:{macroData:{data:t.macroCombined.data,fetchState:t.macroCombined.fetchStatus.fetchState,updateState:t.macroCombined.updateStatus.fetchState},cardProfilesData:t.cardProfilesData}}}function ne(a,t){return{headerActions:{onTabChange:n=>{const g=Y(n),c=X(n);W.trackCockpitTabClicked(c),t.navigate(`../../${g}`,{replace:!0})}},creditAgentPageActions:{onFetchMacro:()=>{a(q())},onSaveMacro:n=>{a(O(n))},onResetSaveMacro:()=>{a(F())},onUIStateChange:n=>{a(B(n))},cardProfilesActions:t.cardProfilesActions}}}const ae=P(te,ne)(H),oe=ee.div`
2
2
  padding: ${G.sp5};
3
3
  text-align: center;
4
4
  `;function re(){const a=j(),t=v(),n=m(N),g=m(k),[c,h]=f.useState(new Set),S=f.useRef(new Set),b=m(e=>e.tenantState.currentTenantId),y=m(e=>e.companyViewState.zeniUsers.fetchState);f.useEffect(()=>{y==="Not-Started"&&t(E())},[t,y]);const d=V.getSignedInUser(),A=d!=null&&[d.firstName,d.lastName].filter(Boolean).join(" ")||void 0,w=f.useMemo(()=>({onFetch:()=>{t(_())},onUpdateProfile:(e,o,r)=>{const i=r.updatedByName??A;t($({tenantId:o,tenantEmailDomain:e,update:{...r,updatedByName:i}}))},onAnalyse:e=>{h(o=>new Set(o).add(e)),t(L(e))},onDownloadReport:()=>{const e=M(n.rows),o=d?.userId??"",r=d?.zeniSessionId??"",i=b??"";if(!o||!r||!i)return;const z=encodeURIComponent(JSON.stringify(e)),T=`${J}/tableDownload?query=${z}`;fetch(T,{headers:{"zeni-user-id":o,"zeni-session-id":r,"zeni-tenant-id":i}}).then(async l=>{if(!l.ok){const u=await l.text();throw new Error(`Download failed: ${l.status} ${u}`)}return l.blob()}).then(l=>{const u=URL.createObjectURL(l),p=document.createElement("a");p.href=u,p.download=`${e.file_name}.xlsx`,p.click(),URL.revokeObjectURL(u)}).catch(()=>{})}}),[t,A,d,b,n.rows]);f.useEffect(()=>{if(c.size===0)return;const e=new Set;for(const o of c){const r=n.rows.find(i=>i.tenantId===o);r!=null&&r.isAnalyzing?S.current.add(o):r!=null&&!r.isAnalyzing&&S.current.has(o)&&(e.add(o),S.current.delete(o))}e.size>0&&h(o=>{const r=new Set(o);for(const i of e)r.delete(i);return r})},[n.rows,c]);const x=f.useMemo(()=>({fetchState:n.fetchStatus.fetchState,rows:n.rows.map(e=>e.isAnalyzing||e.tenantId!=null&&c.has(e.tenantId)?{...e,isAnalyzing:!0}:e),uiState:n.uiState}),[n,c]);return d==null?s.jsx(oe,{children:Z.getLocalizedStrings().cockpit.creditAgent.notSignedIn}):s.jsx(ae,{macroCombined:g,navigate:a,cardProfilesActions:w,cardProfilesData:x})}function Ce(){const{isAllowed:a,isLoading:t}=D();return t?null:a?s.jsx(C,{children:s.jsx(I,{path:"/*",element:s.jsx(U,{element:s.jsx(re,{})})})}):s.jsx(C,{children:s.jsx(I,{path:"/*",element:s.jsx(R,{to:"/management",replace:!0})})})}export{Ce as default};
@@ -1,4 +1,4 @@
1
- import{y as A,h as pr,n as q,Z as fr,H as ut,a as hr,N as we,_ as mr,$ as Er,b as dt,q as or,k as Pe,d as br,J as Nr,o as xr}from"./index-dzWR0i9B.js";import{u as sr,n as Te}from"./mui-ug_sjPms.js";import{d as ct,r as Ge,a as ae}from"./sentry-Bg_Qma3i.js";import{r as Ke,a as Cr,b as _r,c as yr,d as ze,L as Tr,Z as Sr,e as at,f as $e,g as Le,F as vr,h as Ar,J as wr,i as Rr,j as $r,X as Lr,k as Or,l as Fr,m as Dr,K as kr,q as Mr,n as se,o as lr,p as He,s as Ue,t as ot,z as Pr,u as Ir,v as jr,w as Hr,x as Br,y as Ur,Q as Gr,A as Kr,B as zr,C as qr,D as Yr,E as Zr}from"./underline-BZ7JVlVm-wnKIbxVR.js";import{r as je}from"./lexical-BNR9Ydn0.js";import{r as Wr}from"./core-FPb4xGqN.js";import"./liveblocks-Cm0ZsdGB.js";import"./recharts-BwbejIPQ.js";import"./zeni-epic-state-MERT6hYq.js";import"./analytics-DHnqyCH0.js";import"./utils-CRCsqMfk.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},E=new e.Error().stack;E&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[E]="16e4c1de-1a34-492f-8092-3d582f193497",e._sentryDebugIdIdentifier="sentry-dbid-16e4c1de-1a34-492f-8092-3d582f193497")}catch{}})();var he={},qe={exports:{}},gt;function Xr(){return gt||(gt=1,(function(e){var E=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};var a=(function(C){var D=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,$=0,w={},v={manual:C.Prism&&C.Prism.manual,disableWorkerMessageHandler:C.Prism&&C.Prism.disableWorkerMessageHandler,util:{encode:function p(f){return f instanceof R?new R(f.type,p(f.content),f.alias):Array.isArray(f)?f.map(p):f.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(p){return Object.prototype.toString.call(p).slice(8,-1)},objId:function(p){return p.__id||Object.defineProperty(p,"__id",{value:++$}),p.__id},clone:function p(f,_){_=_||{};var b,T;switch(v.util.type(f)){case"Object":if(T=v.util.objId(f),_[T])return _[T];b={},_[T]=b;for(var P in f)f.hasOwnProperty(P)&&(b[P]=p(f[P],_));return b;case"Array":return T=v.util.objId(f),_[T]?_[T]:(b=[],_[T]=b,f.forEach(function(K,M){b[M]=p(K,_)}),b);default:return f}},getLanguage:function(p){for(;p;){var f=D.exec(p.className);if(f)return f[1].toLowerCase();p=p.parentElement}return"none"},setLanguage:function(p,f){p.className=p.className.replace(RegExp(D,"gi"),""),p.classList.add("language-"+f)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(b){var p=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(b.stack)||[])[1];if(p){var f=document.getElementsByTagName("script");for(var _ in f)if(f[_].src==p)return f[_]}return null}},isActive:function(p,f,_){for(var b="no-"+f;p;){var T=p.classList;if(T.contains(f))return!0;if(T.contains(b))return!1;p=p.parentElement}return!!_}},languages:{plain:w,plaintext:w,text:w,txt:w,extend:function(p,f){var _=v.util.clone(v.languages[p]);for(var b in f)_[b]=f[b];return _},insertBefore:function(p,f,_,b){b=b||v.languages;var T=b[p],P={};for(var K in T)if(T.hasOwnProperty(K)){if(K==f)for(var M in _)_.hasOwnProperty(M)&&(P[M]=_[M]);_.hasOwnProperty(K)||(P[K]=T[K])}var J=b[p];return b[p]=P,v.languages.DFS(v.languages,function(ie,pe){pe===J&&ie!=p&&(this[ie]=P)}),P},DFS:function p(f,_,b,T){T=T||{};var P=v.util.objId;for(var K in f)if(f.hasOwnProperty(K)){_.call(f,K,f[K],b||K);var M=f[K],J=v.util.type(M);J==="Object"&&!T[P(M)]?(T[P(M)]=!0,p(M,_,null,T)):J==="Array"&&!T[P(M)]&&(T[P(M)]=!0,p(M,_,K,T))}}},plugins:{},highlightAll:function(p,f){v.highlightAllUnder(document,p,f)},highlightAllUnder:function(p,f,_){var b={callback:_,container:p,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};v.hooks.run("before-highlightall",b),b.elements=Array.prototype.slice.apply(b.container.querySelectorAll(b.selector)),v.hooks.run("before-all-elements-highlight",b);for(var T=0,P;P=b.elements[T++];)v.highlightElement(P,f===!0,b.callback)},highlightElement:function(p,f,_){var b=v.util.getLanguage(p),T=v.languages[b];v.util.setLanguage(p,b);var P=p.parentElement;P&&P.nodeName.toLowerCase()==="pre"&&v.util.setLanguage(P,b);var K=p.textContent,M={element:p,language:b,grammar:T,code:K};function J(pe){M.highlightedCode=pe,v.hooks.run("before-insert",M),M.element.innerHTML=M.highlightedCode,v.hooks.run("after-highlight",M),v.hooks.run("complete",M),_&&_.call(M.element)}if(v.hooks.run("before-sanity-check",M),P=M.element.parentElement,P&&P.nodeName.toLowerCase()==="pre"&&!P.hasAttribute("tabindex")&&P.setAttribute("tabindex","0"),!M.code){v.hooks.run("complete",M),_&&_.call(M.element);return}if(v.hooks.run("before-highlight",M),!M.grammar){J(v.util.encode(M.code));return}if(f&&C.Worker){var ie=new Worker(v.filename);ie.onmessage=function(pe){J(pe.data)},ie.postMessage(JSON.stringify({language:M.language,code:M.code,immediateClose:!0}))}else J(v.highlight(M.code,M.grammar,M.language))},highlight:function(p,f,_){var b={code:p,grammar:f,language:_};if(v.hooks.run("before-tokenize",b),!b.grammar)throw new Error('The language "'+b.language+'" has no grammar.');return b.tokens=v.tokenize(b.code,b.grammar),v.hooks.run("after-tokenize",b),R.stringify(v.util.encode(b.tokens),b.language)},tokenize:function(p,f){var _=f.rest;if(_){for(var b in _)f[b]=_[b];delete f.rest}var T=new L;return G(T,T.head,p),U(p,T,f,T.head,0),Y(T)},hooks:{all:{},add:function(p,f){var _=v.hooks.all;_[p]=_[p]||[],_[p].push(f)},run:function(p,f){var _=v.hooks.all[p];if(!(!_||!_.length))for(var b=0,T;T=_[b++];)T(f)}},Token:R};C.Prism=v;function R(p,f,_,b){this.type=p,this.content=f,this.alias=_,this.length=(b||"").length|0}R.stringify=function p(f,_){if(typeof f=="string")return f;if(Array.isArray(f)){var b="";return f.forEach(function(J){b+=p(J,_)}),b}var T={type:f.type,content:p(f.content,_),tag:"span",classes:["token",f.type],attributes:{},language:_},P=f.alias;P&&(Array.isArray(P)?Array.prototype.push.apply(T.classes,P):T.classes.push(P)),v.hooks.run("wrap",T);var K="";for(var M in T.attributes)K+=" "+M+'="'+(T.attributes[M]||"").replace(/"/g,"&quot;")+'"';return"<"+T.tag+' class="'+T.classes.join(" ")+'"'+K+">"+T.content+"</"+T.tag+">"};function oe(p,f,_,b){p.lastIndex=f;var T=p.exec(_);if(T&&b&&T[1]){var P=T[1].length;T.index+=P,T[0]=T[0].slice(P)}return T}function U(p,f,_,b,T,P){for(var K in _)if(!(!_.hasOwnProperty(K)||!_[K])){var M=_[K];M=Array.isArray(M)?M:[M];for(var J=0;J<M.length;++J){if(P&&P.cause==K+","+J)return;var ie=M[J],pe=ie.inside,_e=!!ie.lookbehind,ve=!!ie.greedy,W=ie.alias;if(ve&&!ie.pattern.global){var fe=ie.pattern.toString().match(/[imsuy]*$/)[0];ie.pattern=RegExp(ie.pattern.source,fe+"g")}for(var le=ie.pattern||ie,n=b.next,r=T;n!==f.tail&&!(P&&r>=P.reach);r+=n.value.length,n=n.next){var s=n.value;if(f.length>p.length)return;if(!(s instanceof R)){var g=1,t;if(ve){if(t=oe(le,r,p,_e),!t||t.index>=p.length)break;var h=t.index,i=t.index+t[0].length,o=r;for(o+=n.value.length;h>=o;)n=n.next,o+=n.value.length;if(o-=n.value.length,r=o,n.value instanceof R)continue;for(var u=n;u!==f.tail&&(o<i||typeof u.value=="string");u=u.next)g++,o+=u.value.length;g--,s=p.slice(r,o),t.index-=r}else if(t=oe(le,0,s,_e),!t)continue;var h=t.index,O=t[0],j=s.slice(0,h),d=s.slice(h+O.length),l=r+s.length;P&&l>P.reach&&(P.reach=l);var m=n.prev;j&&(m=G(f,m,j),r+=j.length),Z(f,m,g);var x=new R(K,pe?v.tokenize(O,pe):O,W,O);if(n=G(f,m,x),d&&G(f,n,d),g>1){var z={cause:K+","+J,reach:l};U(p,f,_,n.prev,r,z),P&&z.reach>P.reach&&(P.reach=z.reach)}}}}}}function L(){var p={value:null,prev:null,next:null},f={value:null,prev:p,next:null};p.next=f,this.head=p,this.tail=f,this.length=0}function G(p,f,_){var b=f.next,T={value:_,prev:f,next:b};return f.next=T,b.prev=T,p.length++,T}function Z(p,f,_){for(var b=f.next,T=0;T<_&&b!==p.tail;T++)b=b.next;f.next=b,b.prev=f,p.length-=T}function Y(p){for(var f=[],_=p.head.next;_!==p.tail;)f.push(_.value),_=_.next;return f}if(!C.document)return C.addEventListener&&(v.disableWorkerMessageHandler||C.addEventListener("message",function(p){var f=JSON.parse(p.data),_=f.language,b=f.code,T=f.immediateClose;C.postMessage(v.highlight(b,v.languages[_],_)),T&&C.close()},!1)),v;var B=v.util.currentScript();B&&(v.filename=B.src,B.hasAttribute("data-manual")&&(v.manual=!0));function H(){v.manual||v.highlightAll()}if(!v.manual){var I=document.readyState;I==="loading"||I==="interactive"&&B&&B.defer?document.addEventListener("DOMContentLoaded",H):window.requestAnimationFrame?window.requestAnimationFrame(H):window.setTimeout(H,16)}return v})(E);e.exports&&(e.exports=a),typeof ct<"u"&&(ct.Prism=a),a.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},a.languages.markup.tag.inside["attr-value"].inside.entity=a.languages.markup.entity,a.languages.markup.doctype.inside["internal-subset"].inside=a.languages.markup,a.hooks.add("wrap",function(C){C.type==="entity"&&(C.attributes.title=C.content.replace(/&amp;/,"&"))}),Object.defineProperty(a.languages.markup.tag,"addInlined",{value:function(D,$){var w={};w["language-"+$]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:a.languages[$]},w.cdata=/^<!\[CDATA\[|\]\]>$/i;var v={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:w}};v["language-"+$]={pattern:/[\s\S]+/,inside:a.languages[$]};var R={};R[D]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return D}),"i"),lookbehind:!0,greedy:!0,inside:v},a.languages.insertBefore("markup","cdata",R)}}),Object.defineProperty(a.languages.markup.tag,"addAttribute",{value:function(C,D){a.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+C+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[D,"language-"+D],inside:a.languages[D]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),a.languages.html=a.languages.markup,a.languages.mathml=a.languages.markup,a.languages.svg=a.languages.markup,a.languages.xml=a.languages.extend("markup",{}),a.languages.ssml=a.languages.xml,a.languages.atom=a.languages.xml,a.languages.rss=a.languages.xml,(function(C){var D=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;C.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+D.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+D.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+D.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+D.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:D,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},C.languages.css.atrule.inside.rest=C.languages.css;var $=C.languages.markup;$&&($.tag.addInlined("style","css"),$.tag.addAttribute("style","css"))})(a),a.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},a.languages.javascript=a.languages.extend("clike",{"class-name":[a.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),a.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,a.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:a.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:a.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:a.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:a.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:a.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),a.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:a.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),a.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),a.languages.markup&&(a.languages.markup.tag.addInlined("script","javascript"),a.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),a.languages.js=a.languages.javascript,(function(){if(typeof a>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var C="Loading…",D=function(B,H){return"✖ Error "+B+" while fetching file: "+H},$="✖ Error: File does not exist or is empty",w={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},v="data-src-status",R="loading",oe="loaded",U="failed",L="pre[data-src]:not(["+v+'="'+oe+'"]):not(['+v+'="'+R+'"])';function G(B,H,I){var p=new XMLHttpRequest;p.open("GET",B,!0),p.onreadystatechange=function(){p.readyState==4&&(p.status<400&&p.responseText?H(p.responseText):p.status>=400?I(D(p.status,p.statusText)):I($))},p.send(null)}function Z(B){var H=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(B||"");if(H){var I=Number(H[1]),p=H[2],f=H[3];return p?f?[I,Number(f)]:[I,void 0]:[I,I]}}a.hooks.add("before-highlightall",function(B){B.selector+=", "+L}),a.hooks.add("before-sanity-check",function(B){var H=B.element;if(H.matches(L)){B.code="",H.setAttribute(v,R);var I=H.appendChild(document.createElement("CODE"));I.textContent=C;var p=H.getAttribute("data-src"),f=B.language;if(f==="none"){var _=(/\.(\w+)$/.exec(p)||[,"none"])[1];f=w[_]||_}a.util.setLanguage(I,f),a.util.setLanguage(H,f);var b=a.plugins.autoloader;b&&b.loadLanguages(f),G(p,function(T){H.setAttribute(v,oe);var P=Z(H.getAttribute("data-range"));if(P){var K=T.split(/\r\n?|\n/g),M=P[0],J=P[1]==null?K.length:P[1];M<0&&(M+=K.length),M=Math.max(0,Math.min(M-1,K.length)),J<0&&(J+=K.length),J=Math.max(0,Math.min(J,K.length)),T=K.slice(M,J).join(`
1
+ import{y as A,h as pr,n as q,Z as fr,H as ut,a as hr,N as we,_ as mr,$ as Er,b as dt,q as or,k as Pe,d as br,J as Nr,o as xr}from"./index-BwOeo2Vd.js";import{u as sr,n as Te}from"./mui-MnEZql1W.js";import{d as ct,r as Ge,a as ae}from"./sentry-BMp6uTqA.js";import{r as Ke,a as Cr,b as _r,c as yr,d as ze,L as Tr,Z as Sr,e as at,f as $e,g as Le,F as vr,h as Ar,J as wr,i as Rr,j as $r,X as Lr,k as Or,l as Fr,m as Dr,K as kr,q as Mr,n as se,o as lr,p as He,s as Ue,t as ot,z as Pr,u as Ir,v as jr,w as Hr,x as Br,y as Ur,Q as Gr,A as Kr,B as zr,C as qr,D as Yr,E as Zr}from"./underline-BZ7JVlVm-BSZ-2bHb.js";import{r as je}from"./lexical-DNkqWVUi.js";import{r as Wr}from"./core-BtClLHbn.js";import"./liveblocks-DSQu8EKB.js";import"./recharts-DHFG8xJK.js";import"./zeni-epic-state-BvLKTW7A.js";import"./analytics-CR-8MP1n.js";import"./utils-YzwqQ2QE.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},E=new e.Error().stack;E&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[E]="16e4c1de-1a34-492f-8092-3d582f193497",e._sentryDebugIdIdentifier="sentry-dbid-16e4c1de-1a34-492f-8092-3d582f193497")}catch{}})();var he={},qe={exports:{}},gt;function Xr(){return gt||(gt=1,(function(e){var E=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};var a=(function(C){var D=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,$=0,w={},v={manual:C.Prism&&C.Prism.manual,disableWorkerMessageHandler:C.Prism&&C.Prism.disableWorkerMessageHandler,util:{encode:function p(f){return f instanceof R?new R(f.type,p(f.content),f.alias):Array.isArray(f)?f.map(p):f.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(p){return Object.prototype.toString.call(p).slice(8,-1)},objId:function(p){return p.__id||Object.defineProperty(p,"__id",{value:++$}),p.__id},clone:function p(f,_){_=_||{};var b,T;switch(v.util.type(f)){case"Object":if(T=v.util.objId(f),_[T])return _[T];b={},_[T]=b;for(var P in f)f.hasOwnProperty(P)&&(b[P]=p(f[P],_));return b;case"Array":return T=v.util.objId(f),_[T]?_[T]:(b=[],_[T]=b,f.forEach(function(K,M){b[M]=p(K,_)}),b);default:return f}},getLanguage:function(p){for(;p;){var f=D.exec(p.className);if(f)return f[1].toLowerCase();p=p.parentElement}return"none"},setLanguage:function(p,f){p.className=p.className.replace(RegExp(D,"gi"),""),p.classList.add("language-"+f)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(b){var p=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(b.stack)||[])[1];if(p){var f=document.getElementsByTagName("script");for(var _ in f)if(f[_].src==p)return f[_]}return null}},isActive:function(p,f,_){for(var b="no-"+f;p;){var T=p.classList;if(T.contains(f))return!0;if(T.contains(b))return!1;p=p.parentElement}return!!_}},languages:{plain:w,plaintext:w,text:w,txt:w,extend:function(p,f){var _=v.util.clone(v.languages[p]);for(var b in f)_[b]=f[b];return _},insertBefore:function(p,f,_,b){b=b||v.languages;var T=b[p],P={};for(var K in T)if(T.hasOwnProperty(K)){if(K==f)for(var M in _)_.hasOwnProperty(M)&&(P[M]=_[M]);_.hasOwnProperty(K)||(P[K]=T[K])}var J=b[p];return b[p]=P,v.languages.DFS(v.languages,function(ie,pe){pe===J&&ie!=p&&(this[ie]=P)}),P},DFS:function p(f,_,b,T){T=T||{};var P=v.util.objId;for(var K in f)if(f.hasOwnProperty(K)){_.call(f,K,f[K],b||K);var M=f[K],J=v.util.type(M);J==="Object"&&!T[P(M)]?(T[P(M)]=!0,p(M,_,null,T)):J==="Array"&&!T[P(M)]&&(T[P(M)]=!0,p(M,_,K,T))}}},plugins:{},highlightAll:function(p,f){v.highlightAllUnder(document,p,f)},highlightAllUnder:function(p,f,_){var b={callback:_,container:p,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};v.hooks.run("before-highlightall",b),b.elements=Array.prototype.slice.apply(b.container.querySelectorAll(b.selector)),v.hooks.run("before-all-elements-highlight",b);for(var T=0,P;P=b.elements[T++];)v.highlightElement(P,f===!0,b.callback)},highlightElement:function(p,f,_){var b=v.util.getLanguage(p),T=v.languages[b];v.util.setLanguage(p,b);var P=p.parentElement;P&&P.nodeName.toLowerCase()==="pre"&&v.util.setLanguage(P,b);var K=p.textContent,M={element:p,language:b,grammar:T,code:K};function J(pe){M.highlightedCode=pe,v.hooks.run("before-insert",M),M.element.innerHTML=M.highlightedCode,v.hooks.run("after-highlight",M),v.hooks.run("complete",M),_&&_.call(M.element)}if(v.hooks.run("before-sanity-check",M),P=M.element.parentElement,P&&P.nodeName.toLowerCase()==="pre"&&!P.hasAttribute("tabindex")&&P.setAttribute("tabindex","0"),!M.code){v.hooks.run("complete",M),_&&_.call(M.element);return}if(v.hooks.run("before-highlight",M),!M.grammar){J(v.util.encode(M.code));return}if(f&&C.Worker){var ie=new Worker(v.filename);ie.onmessage=function(pe){J(pe.data)},ie.postMessage(JSON.stringify({language:M.language,code:M.code,immediateClose:!0}))}else J(v.highlight(M.code,M.grammar,M.language))},highlight:function(p,f,_){var b={code:p,grammar:f,language:_};if(v.hooks.run("before-tokenize",b),!b.grammar)throw new Error('The language "'+b.language+'" has no grammar.');return b.tokens=v.tokenize(b.code,b.grammar),v.hooks.run("after-tokenize",b),R.stringify(v.util.encode(b.tokens),b.language)},tokenize:function(p,f){var _=f.rest;if(_){for(var b in _)f[b]=_[b];delete f.rest}var T=new L;return G(T,T.head,p),U(p,T,f,T.head,0),Y(T)},hooks:{all:{},add:function(p,f){var _=v.hooks.all;_[p]=_[p]||[],_[p].push(f)},run:function(p,f){var _=v.hooks.all[p];if(!(!_||!_.length))for(var b=0,T;T=_[b++];)T(f)}},Token:R};C.Prism=v;function R(p,f,_,b){this.type=p,this.content=f,this.alias=_,this.length=(b||"").length|0}R.stringify=function p(f,_){if(typeof f=="string")return f;if(Array.isArray(f)){var b="";return f.forEach(function(J){b+=p(J,_)}),b}var T={type:f.type,content:p(f.content,_),tag:"span",classes:["token",f.type],attributes:{},language:_},P=f.alias;P&&(Array.isArray(P)?Array.prototype.push.apply(T.classes,P):T.classes.push(P)),v.hooks.run("wrap",T);var K="";for(var M in T.attributes)K+=" "+M+'="'+(T.attributes[M]||"").replace(/"/g,"&quot;")+'"';return"<"+T.tag+' class="'+T.classes.join(" ")+'"'+K+">"+T.content+"</"+T.tag+">"};function oe(p,f,_,b){p.lastIndex=f;var T=p.exec(_);if(T&&b&&T[1]){var P=T[1].length;T.index+=P,T[0]=T[0].slice(P)}return T}function U(p,f,_,b,T,P){for(var K in _)if(!(!_.hasOwnProperty(K)||!_[K])){var M=_[K];M=Array.isArray(M)?M:[M];for(var J=0;J<M.length;++J){if(P&&P.cause==K+","+J)return;var ie=M[J],pe=ie.inside,_e=!!ie.lookbehind,ve=!!ie.greedy,W=ie.alias;if(ve&&!ie.pattern.global){var fe=ie.pattern.toString().match(/[imsuy]*$/)[0];ie.pattern=RegExp(ie.pattern.source,fe+"g")}for(var le=ie.pattern||ie,n=b.next,r=T;n!==f.tail&&!(P&&r>=P.reach);r+=n.value.length,n=n.next){var s=n.value;if(f.length>p.length)return;if(!(s instanceof R)){var g=1,t;if(ve){if(t=oe(le,r,p,_e),!t||t.index>=p.length)break;var h=t.index,i=t.index+t[0].length,o=r;for(o+=n.value.length;h>=o;)n=n.next,o+=n.value.length;if(o-=n.value.length,r=o,n.value instanceof R)continue;for(var u=n;u!==f.tail&&(o<i||typeof u.value=="string");u=u.next)g++,o+=u.value.length;g--,s=p.slice(r,o),t.index-=r}else if(t=oe(le,0,s,_e),!t)continue;var h=t.index,O=t[0],j=s.slice(0,h),d=s.slice(h+O.length),l=r+s.length;P&&l>P.reach&&(P.reach=l);var m=n.prev;j&&(m=G(f,m,j),r+=j.length),Z(f,m,g);var x=new R(K,pe?v.tokenize(O,pe):O,W,O);if(n=G(f,m,x),d&&G(f,n,d),g>1){var z={cause:K+","+J,reach:l};U(p,f,_,n.prev,r,z),P&&z.reach>P.reach&&(P.reach=z.reach)}}}}}}function L(){var p={value:null,prev:null,next:null},f={value:null,prev:p,next:null};p.next=f,this.head=p,this.tail=f,this.length=0}function G(p,f,_){var b=f.next,T={value:_,prev:f,next:b};return f.next=T,b.prev=T,p.length++,T}function Z(p,f,_){for(var b=f.next,T=0;T<_&&b!==p.tail;T++)b=b.next;f.next=b,b.prev=f,p.length-=T}function Y(p){for(var f=[],_=p.head.next;_!==p.tail;)f.push(_.value),_=_.next;return f}if(!C.document)return C.addEventListener&&(v.disableWorkerMessageHandler||C.addEventListener("message",function(p){var f=JSON.parse(p.data),_=f.language,b=f.code,T=f.immediateClose;C.postMessage(v.highlight(b,v.languages[_],_)),T&&C.close()},!1)),v;var B=v.util.currentScript();B&&(v.filename=B.src,B.hasAttribute("data-manual")&&(v.manual=!0));function H(){v.manual||v.highlightAll()}if(!v.manual){var I=document.readyState;I==="loading"||I==="interactive"&&B&&B.defer?document.addEventListener("DOMContentLoaded",H):window.requestAnimationFrame?window.requestAnimationFrame(H):window.setTimeout(H,16)}return v})(E);e.exports&&(e.exports=a),typeof ct<"u"&&(ct.Prism=a),a.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},a.languages.markup.tag.inside["attr-value"].inside.entity=a.languages.markup.entity,a.languages.markup.doctype.inside["internal-subset"].inside=a.languages.markup,a.hooks.add("wrap",function(C){C.type==="entity"&&(C.attributes.title=C.content.replace(/&amp;/,"&"))}),Object.defineProperty(a.languages.markup.tag,"addInlined",{value:function(D,$){var w={};w["language-"+$]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:a.languages[$]},w.cdata=/^<!\[CDATA\[|\]\]>$/i;var v={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:w}};v["language-"+$]={pattern:/[\s\S]+/,inside:a.languages[$]};var R={};R[D]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return D}),"i"),lookbehind:!0,greedy:!0,inside:v},a.languages.insertBefore("markup","cdata",R)}}),Object.defineProperty(a.languages.markup.tag,"addAttribute",{value:function(C,D){a.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+C+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[D,"language-"+D],inside:a.languages[D]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),a.languages.html=a.languages.markup,a.languages.mathml=a.languages.markup,a.languages.svg=a.languages.markup,a.languages.xml=a.languages.extend("markup",{}),a.languages.ssml=a.languages.xml,a.languages.atom=a.languages.xml,a.languages.rss=a.languages.xml,(function(C){var D=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;C.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+D.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+D.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+D.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+D.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:D,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},C.languages.css.atrule.inside.rest=C.languages.css;var $=C.languages.markup;$&&($.tag.addInlined("style","css"),$.tag.addAttribute("style","css"))})(a),a.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},a.languages.javascript=a.languages.extend("clike",{"class-name":[a.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),a.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,a.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:a.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:a.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:a.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:a.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:a.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),a.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:a.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),a.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),a.languages.markup&&(a.languages.markup.tag.addInlined("script","javascript"),a.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),a.languages.js=a.languages.javascript,(function(){if(typeof a>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var C="Loading…",D=function(B,H){return"✖ Error "+B+" while fetching file: "+H},$="✖ Error: File does not exist or is empty",w={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},v="data-src-status",R="loading",oe="loaded",U="failed",L="pre[data-src]:not(["+v+'="'+oe+'"]):not(['+v+'="'+R+'"])';function G(B,H,I){var p=new XMLHttpRequest;p.open("GET",B,!0),p.onreadystatechange=function(){p.readyState==4&&(p.status<400&&p.responseText?H(p.responseText):p.status>=400?I(D(p.status,p.statusText)):I($))},p.send(null)}function Z(B){var H=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(B||"");if(H){var I=Number(H[1]),p=H[2],f=H[3];return p?f?[I,Number(f)]:[I,void 0]:[I,I]}}a.hooks.add("before-highlightall",function(B){B.selector+=", "+L}),a.hooks.add("before-sanity-check",function(B){var H=B.element;if(H.matches(L)){B.code="",H.setAttribute(v,R);var I=H.appendChild(document.createElement("CODE"));I.textContent=C;var p=H.getAttribute("data-src"),f=B.language;if(f==="none"){var _=(/\.(\w+)$/.exec(p)||[,"none"])[1];f=w[_]||_}a.util.setLanguage(I,f),a.util.setLanguage(H,f);var b=a.plugins.autoloader;b&&b.loadLanguages(f),G(p,function(T){H.setAttribute(v,oe);var P=Z(H.getAttribute("data-range"));if(P){var K=T.split(/\r\n?|\n/g),M=P[0],J=P[1]==null?K.length:P[1];M<0&&(M+=K.length),M=Math.max(0,Math.min(M-1,K.length)),J<0&&(J+=K.length),J=Math.max(0,Math.min(J,K.length)),T=K.slice(M,J).join(`
2
2
  `),H.hasAttribute("data-start")||H.setAttribute("data-start",String(M+1))}I.textContent=T,a.highlightElement(I)},function(T){H.setAttribute(v,U),I.textContent=T})}}),a.plugins.fileHighlight={highlight:function(H){for(var I=(H||document).querySelectorAll(L),p=0,f;f=I[p++];)a.highlightElement(f)}};var Y=!1;a.fileHighlight=function(){Y||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),Y=!0),a.plugins.fileHighlight.highlight.apply(this,arguments)}})()})(qe)),qe.exports}var pt={},ft;function Jr(){return ft||(ft=1,Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}),pt}var ht={},mt;function Vr(){return mt||(mt=1,Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript),ht}var Et={},bt;function Qr(){return bt||(bt=1,Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(E,a){var C={};C["language-"+a]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[a]},C.cdata=/^<!\[CDATA\[|\]\]>$/i;var D={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:C}};D["language-"+a]={pattern:/[\s\S]+/,inside:Prism.languages[a]};var $={};$[E]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return E}),"i"),lookbehind:!0,greedy:!0,inside:D},Prism.languages.insertBefore("markup","cdata",$)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,E){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[E,"language-"+E],inside:Prism.languages[E]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml),Et}var Nt={},xt;function en(){return xt||(xt=1,(function(e){var E=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function a(U){return U=U.replace(/<inner>/g,function(){return E}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+U+")")}var C=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,D=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return C}),$=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+D+$+"(?:"+D+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+D+$+")(?:"+D+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(C),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+D+")"+$+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+D+"$"),inside:{"table-header":{pattern:RegExp(C),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:a(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:a(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:a(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:a(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(U){["url","bold","italic","strike","code-snippet"].forEach(function(L){U!==L&&(e.languages.markdown[U].inside.content.inside[L]=e.languages.markdown[L])})}),e.hooks.add("after-tokenize",function(U){if(U.language!=="markdown"&&U.language!=="md")return;function L(G){if(!(!G||typeof G=="string"))for(var Z=0,Y=G.length;Z<Y;Z++){var B=G[Z];if(B.type!=="code"){L(B.content);continue}var H=B.content[1],I=B.content[3];if(H&&I&&H.type==="code-language"&&I.type==="code-block"&&typeof H.content=="string"){var p=H.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");p=(/[a-z][\w-]*/i.exec(p)||[""])[0].toLowerCase();var f="language-"+p;I.alias?typeof I.alias=="string"?I.alias=[I.alias,f]:I.alias.push(f):I.alias=[f]}}}L(U.tokens)}),e.hooks.add("wrap",function(U){if(U.type==="code-block"){for(var L="",G=0,Z=U.classes.length;G<Z;G++){var Y=U.classes[G],B=/language-(.+)/.exec(Y);if(B){L=B[1];break}}var H=e.languages[L];if(H)U.content=e.highlight(oe(U.content),H,L);else if(L&&L!=="none"&&e.plugins.autoloader){var I="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);U.attributes.id=I,e.plugins.autoloader.loadLanguages(L,function(){var p=document.getElementById(I);p&&(p.innerHTML=e.highlight(p.textContent,e.languages[L],L))})}}});var w=RegExp(e.languages.markup.tag.pattern.source,"gi"),v={amp:"&",lt:"<",gt:">",quot:'"'},R=String.fromCodePoint||String.fromCharCode;function oe(U){var L=U.replace(w,"");return L=L.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(G,Z){if(Z=Z.toLowerCase(),Z[0]==="#"){var Y;return Z[1]==="x"?Y=parseInt(Z.slice(2),16):Y=Number(Z.slice(1)),R(Y)}else{var B=v[Z];return B||G}}),L}e.languages.md=e.languages.markdown})(Prism)),Nt}var Ct={},_t;function tn(){return _t||(_t=1,Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean),Ct}var yt={},Tt;function rn(){return Tt||(Tt=1,(function(e){var E=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+E.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+E.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+E.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+E.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:E,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var a=e.languages.markup;a&&(a.tag.addInlined("style","css"),a.tag.addAttribute("style","css"))})(Prism)),yt}var St={},vt;function nn(){return vt||(vt=1,Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Prism.languages.objectivec["class-name"],Prism.languages.objc=Prism.languages.objectivec),St}var At={},wt;function an(){return wt||(wt=1,Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}),At}var Rt={},$t;function on(){return $t||($t=1,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python),Rt}var Lt={},Ot;function sn(){return Ot||(Ot=1,(function(e){for(var E=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,a=0;a<2;a++)E=E.replace(/<self>/g,function(){return E});E=E.replace(/<self>/g,function(){return/[^\s\S]/.source}),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+E),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string})(Prism)),Lt}var Ft={},Dt;function ln(){return Dt||(Dt=1,Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=Prism.languages.swift})),Ft}var kt={},Mt;function un(){return Mt||(Mt=1,(function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var E=e.languages.extend("typescript",{});delete E["class-name"],e.languages.typescript["class-name"].inside=E,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:E}}}}),e.languages.ts=e.languages.typescript})(Prism)),kt}var Pt={},It;function dn(){return It||(It=1,(function(e){var E=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,a=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,C={pattern:RegExp(/(^|[^\w.])/.source+a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[C,{pattern:RegExp(/(^|[^\w.])/.source+a+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:C.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+a+/[A-Z]\w*\b/.source),lookbehind:!0,inside:C.inside}],keyword:E,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":C,keyword:E,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+a+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:C.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+a+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:C.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return E.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(Prism)),Pt}var jt={},Ht;function cn(){return Ht||(Ht=1,(function(e){var E=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,a=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return E.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return E.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:E,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return a})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])})(Prism)),jt}var Bt;function gn(){if(Bt)return he;Bt=1;var e=Xr();Jr(),Vr(),Qr(),en(),tn(),rn(),nn(),an(),on(),sn(),ln(),un(),dn(),cn();var E=Ke(),a=je();let C=t=>t!=null&&e.languages.hasOwnProperty(t)?t:void 0;function D(t,i){for(let o of t.childNodes){if(E.isHTMLElement(o)&&o.tagName===i)return!0;D(o,i)}return!1}class $ extends a.ElementNode{static getType(){return"code"}static clone(i){return new $(i.__language,i.__key)}constructor(i,o){super(o),this.__language=C(i)}createDOM(i){let o=document.createElement("code");return E.addClassNamesToElement(o,i.theme.code),o.setAttribute("spellcheck","false"),(i=this.getLanguage())&&o.setAttribute("data-highlight-language",i),o}updateDOM(i,o){let u=this.__language;return i=i.__language,u?u!==i&&o.setAttribute("data-highlight-language",u):i&&o.removeAttribute("data-highlight-language"),!1}static importDOM(){return{code:i=>i.textContent!=null&&(/\r?\n/.test(i.textContent)||D(i,"BR"))?{conversion:R,priority:1}:null,div:()=>({conversion:oe,priority:1}),pre:()=>({conversion:R,priority:0}),table:i=>Y(i)?{conversion:U,priority:3}:null,td:i=>{let o=i.closest("table");return i.classList.contains("js-file-line")?{conversion:G,priority:3}:o&&Y(o)?{conversion:L,priority:3}:null},tr:i=>(i=i.closest("table"))&&Y(i)?{conversion:L,priority:3}:null}}static importJSON(i){let o=w(i.language);return o.setFormat(i.format),o.setIndent(i.indent),o.setDirection(i.direction),o}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),type:"code",version:1}}insertNewAfter(i,o=!0){var u=this.getChildren(),h=u.length;if(2<=h&&u[h-1].getTextContent()===`
3
3
  `&&u[h-2].getTextContent()===`
4
4
  `&&i.isCollapsed()&&i.anchor.key===this.__key&&i.anchor.offset===h)return u[h-1].remove(),u[h-2].remove(),i=a.$createParagraphNode(),this.insertAfter(i,o),i;if(o=i.anchor.getNode(),h=T(o),h!=null){for(u=0,h=h.getTextContent();u<h.length&&/[\t ]/.test(h[u]);)u+=1;if(0<u)return u=h.substring(0,u),u=_(u),o.insertAfter(u),i.insertNodes([a.$createLineBreakNode()]),u.select(),u}return null}canInsertTab(){let i=a.$getSelection();return!!(a.$isRangeSelection(i)&&i.isCollapsed())}canIndent(){return!1}collapseAtStart(){let i=a.$createParagraphNode();return this.getChildren().forEach(o=>i.append(o)),this.replace(i),!0}setLanguage(i){this.getWritable().__language=C(i)}getLanguage(){return this.getLatest().__language}}function w(t){return a.$applyNodeReplacement(new $(t))}function v(t){return t instanceof $}function R(){return{node:w(),preformatted:!0}}function oe(t){let i=t.style.fontFamily.match("monospace")!==null;return i||Z(t)?{after:o=>{let u=t.parentNode;return u!=null&&t!==u.lastChild&&o.push(a.$createLineBreakNode()),o},node:i?w():null,preformatted:i}:{node:null}}function U(){return{node:w(),preformatted:!0}}function L(){return{node:null}}function G(t){return{after:i=>(t.parentNode&&t.parentNode.nextSibling&&i.push(a.$createLineBreakNode()),i),node:null}}function Z(t){for(t=t.parentElement;t!==null;){if(t.style.fontFamily.match("monospace")!==null)return!0;t=t.parentElement}return!1}function Y(t){return t.classList.contains("js-file-line-container")}let B={c:"C",clike:"C-like",cpp:"C++",css:"CSS",html:"HTML",java:"Java",js:"JavaScript",markdown:"Markdown",objc:"Objective-C",plain:"Plain Text",py:"Python",rust:"Rust",sql:"SQL",swift:"Swift",typescript:"TypeScript",xml:"XML"},H={cpp:"cpp",java:"java",javascript:"js",md:"markdown",plaintext:"plain",python:"py",text:"plain",ts:"typescript"};function I(t){return H[t]||t}class p extends a.TextNode{constructor(i,o,u){super(i,u),this.__highlightType=o}static getType(){return"code-highlight"}static clone(i){return new p(i.__text,i.__highlightType||void 0,i.__key)}getHighlightType(){return this.getLatest().__highlightType}createDOM(i){let o=super.createDOM(i);return i=f(i.theme,this.__highlightType),E.addClassNamesToElement(o,i),o}updateDOM(i,o,u){let h=super.updateDOM(i,o,u);return i=f(u.theme,i.__highlightType),u=f(u.theme,this.__highlightType),i!==u&&(i&&E.removeClassNamesFromElement(o,i),u&&E.addClassNamesToElement(o,u)),h}static importJSON(i){let o=_(i.text,i.highlightType);return o.setFormat(i.format),o.setDetail(i.detail),o.setMode(i.mode),o.setStyle(i.style),o}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType(),type:"code-highlight",version:1}}setFormat(){return this}isParentRequired(){return!0}createParentElementNode(){return w()}}function f(t,i){return i&&t&&t.codeHighlight&&t.codeHighlight[i]}function _(t,i){return a.$applyNodeReplacement(new p(t,i))}function b(t){return t instanceof p}function T(t){let i=null,o=t.getPreviousSiblings();for(o.push(t);0<o.length&&(t=o.pop(),b(t)&&(i=t),!a.$isLineBreakNode(t)););return i}function P(t){let i=null,o=t.getNextSiblings();for(o.unshift(t);0<o.length&&(t=o.shift(),b(t)&&(i=t),!a.$isLineBreakNode(t)););return i}let K={defaultLanguage:"javascript",tokenize(t,i){return e.tokenize(t,e.languages[i||""]||e.languages[this.defaultLanguage])}};function M(t,i){var o=t.length;let u=-1;if(i)for(i=0;i<o;i++){let h=t[i];if(h!==" "&&h!==" "){u=i;break}}else for(--o;-1<o;o--)if(i=t[o],i!==" "&&i!==" "){u=o;break}return u}function J(t){let i=null,o=-1;var u=t.getPreviousSiblings();for(u.push(t);0<u.length;){var h=u.pop();if(b(h)){var O=h.getTextContent();O=M(O,!0),O!==-1&&(i=h,o=O)}if(a.$isLineBreakNode(h))break}if(i===null)for(t=t.getNextSiblings();0<t.length;){if(u=t.shift(),b(u)&&(h=u.getTextContent(),h=M(h,!0),h!==-1)){i=u,o=h;break}if(a.$isLineBreakNode(u))break}return{node:i,offset:o}}function ie(t){let i=null,o=-1;var u=t.getNextSiblings();for(u.unshift(t);0<u.length;){var h=u.shift();if(b(h)){var O=h.getTextContent();O=M(O,!1),O!==-1&&(i=h,o=O+1)}if(a.$isLineBreakNode(h))break}if(i===null)for(t=t.getPreviousSiblings();0<t.length;){if(u=t.pop(),b(u)&&(h=u.getTextContent(),h=M(h,!1),h!==-1)){i=u,o=h+1;break}if(a.$isLineBreakNode(u))break}return{node:i,offset:o}}function pe(t,i,o){let u=t.getParent();v(u)?ve(u,i,o):b(t)&&t.replace(a.$createTextNode(t.__text))}let _e=new Set;function ve(t,i,o){let u=t.getKey();_e.has(u)||(_e.add(u),t.getLanguage()===void 0&&t.setLanguage(o.defaultLanguage),i.update(()=>{fe(u,()=>{var h=a.$getNodeByKey(u);if(!v(h)||!h.isAttached())return!1;var O=h.getTextContent();O=o.tokenize(O,h.getLanguage()||o.defaultLanguage),O=W(O);var j=h.getChildren();for(h=0;h<j.length&&le(j[h],O[h]);)h++;var d=j.length;let l=O.length,m=Math.min(d,l)-h,x=0;for(;x<m;)if(x++,!le(j[d-x],O[l-x])){x--;break}j=h,d-=x,O=O.slice(h,l-x);let{from:z,to:ee,nodesForReplacement:be}={from:j,nodesForReplacement:O,to:d};return z!==ee||be.length?(t.splice(z,ee-z,be),!0):!1})},{onUpdate:()=>{_e.delete(u)},skipTransforms:!0}))}function W(t){let i=[];return t.forEach(o=>{if(typeof o=="string"){o=o.split(`
@@ -1 +1 @@
1
- import{a as h,R as n}from"./sentry-Bg_Qma3i.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="f4ba052c-9e02-4735-9454-bf2cba2bc7bc",t._sentryDebugIdIdentifier="sentry-dbid-f4ba052c-9e02-4735-9454-bf2cba2bc7bc")}catch{}})();const d="64px",u={},k=({src:t,light:a,oEmbedUrl:r,onClickPreview:s,playIcon:m,previewTabIndex:I,previewAriaLabel:f})=>{const[b,o]=h.useState(null);h.useEffect(()=>{!t||!a||!r||_({src:t,light:a,oEmbedUrl:r})},[t,a,r]);const _=async({src:e,light:i,oEmbedUrl:E})=>{if(n.isValidElement(i))return;if(typeof i=="string"){o(i);return}if(u[e]){o(u[e]);return}o(null);const y=await(await fetch(E.replace("{url}",e))).json();if(y.thumbnail_url){const g=y.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");o(g),u[e]=g}},w=e=>{(e.key==="Enter"||e.key===" ")&&s?.(e)},v=e=>{s?.(e)},l=n.isValidElement(a),p={display:"flex",alignItems:"center",justifyContent:"center"},c={preview:{width:"100%",height:"100%",backgroundImage:b&&!l?`url(${b})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...p},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:d,width:d,height:d,position:l?"absolute":void 0,...p},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},x=n.createElement("div",{style:c.shadow,className:"react-player__shadow"},n.createElement("div",{style:c.playIcon,className:"react-player__play-icon"}));return n.createElement("div",{style:c.preview,className:"react-player__preview",tabIndex:I,onClick:v,onKeyDown:w,...f?{"aria-label":f}:{}},l?a:null,m||x)};var S=k;export{S as default};
1
+ import{a as h,R as n}from"./sentry-BMp6uTqA.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="f4ba052c-9e02-4735-9454-bf2cba2bc7bc",t._sentryDebugIdIdentifier="sentry-dbid-f4ba052c-9e02-4735-9454-bf2cba2bc7bc")}catch{}})();const d="64px",u={},k=({src:t,light:a,oEmbedUrl:r,onClickPreview:s,playIcon:m,previewTabIndex:I,previewAriaLabel:f})=>{const[b,o]=h.useState(null);h.useEffect(()=>{!t||!a||!r||_({src:t,light:a,oEmbedUrl:r})},[t,a,r]);const _=async({src:e,light:i,oEmbedUrl:E})=>{if(n.isValidElement(i))return;if(typeof i=="string"){o(i);return}if(u[e]){o(u[e]);return}o(null);const y=await(await fetch(E.replace("{url}",e))).json();if(y.thumbnail_url){const g=y.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");o(g),u[e]=g}},w=e=>{(e.key==="Enter"||e.key===" ")&&s?.(e)},v=e=>{s?.(e)},l=n.isValidElement(a),p={display:"flex",alignItems:"center",justifyContent:"center"},c={preview:{width:"100%",height:"100%",backgroundImage:b&&!l?`url(${b})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...p},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:d,width:d,height:d,position:l?"absolute":void 0,...p},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},x=n.createElement("div",{style:c.shadow,className:"react-player__shadow"},n.createElement("div",{style:c.playIcon,className:"react-player__play-icon"}));return n.createElement("div",{style:c.preview,className:"react-player__preview",tabIndex:I,onClick:v,onKeyDown:w,...f?{"aria-label":f}:{}},l?a:null,m||x)};var S=k;export{S as default};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CreditAgentRoutes-BLO6Skx9.js","assets/liveblocks-Cm0ZsdGB.js","assets/sentry-Bg_Qma3i.js","assets/core-FPb4xGqN.js","assets/recharts-BwbejIPQ.js","assets/zeni-epic-state-MERT6hYq.js","assets/index-dzWR0i9B.js","assets/mui-ug_sjPms.js","assets/analytics-DHnqyCH0.js","assets/utils-CRCsqMfk.js","assets/index-Bd7ri422.css","assets/analyticsHelper-DbCQv-FA.js","assets/empty-B7VJJYqG.js","assets/index-BWJwubl1.js","assets/url-CL1LwlFq.js","assets/index-Bdk1oRpA.js"])))=>i.map(i=>d[i]);
2
- import{Sn as Lf,So as qf,lQ as xt,f5 as vs,Sp as Dt,fe as an,f3 as Df,Sq as Jt,fa as sn,Sr as uh,Ss as ch,St as ur,Su as lh,k3 as Nf,lS as Ct,k0 as fh,k7 as Mf,Sv as ys,k9 as dh,ka as hh,Sw as Er,Sx as cr,jy as ph,Sy as pn,Sz as Uo,dj as mh,h6 as Vo,h3 as un,hb as Mt,h9 as gh,SA as Ff,SB as Bf,ko as vh,kl as yh,SC as _h,kz as bh,ku as _s,kr as wh,kg as Eh,SD as Sh,eN as Rh,dt as Oh,m2 as Uf,SE as Th,be as on,kd as bs,ki as Ah,AI as Vf,lR as mn,SF as $f,SG as pt,md as cn,m8 as zf,kT as $o,SH as Ih,mg as xh,H as et,bm as zo,SI as Ch,jv as kh,SJ as Ph,SK as Gf,SL as jh,z0 as ws,yy as Lh,SM as qh,yE as In,SN as Dh,yG as Nh,SO as Tt,yv as Mh,d7 as Fh,lV as Hf,lW as Zf,lU as Go,lT as Ho,lX as Bh,SP as Uh,z3 as Vh,SQ as $h,yM as zh,yZ as Gh,SR as Hh,yQ as Zh,SS as Wh,ST as Kt,SU as Zo,SV as Yh,SW as Jh,su as Kh,sA as Wf,SX as Yf,j0 as Xh,Rs as Jf,SY as Qh,Rm as ep,SZ as tp,S_ as rp,sD as np,S$ as ip,Rx as ap,Rl as op,CF as Kf,T0 as xn,T1 as Xf,NW as Wo,NI as sp,NZ as Qf,NL as up,T2 as cp,NQ as lp,NC as fp,NF as dp,T3 as hp,O1 as pp,NT as mp,bp as gp,bc as vp,T4 as yp,T5 as Gt,T6 as _p,T7 as bp,T8 as wp,kH as No,kD as Ep,kN as Sp,kQ as Es,bd as ed}from"./zeni-epic-state-MERT6hYq.js";import{j as U}from"./liveblocks-Cm0ZsdGB.js";import{a as ce,p as ye,d as td,c as Yo,g as Rp}from"./sentry-Bg_Qma3i.js";import{m as wt,v as At,z as He,S as Op,p as Tp,c as lr,e as Ap,C as Et,R as rd,f as at,g as Fe,i as kt,j as Ft,l as Ip,u as xp,X as Cp,I as kp,r as gn,L as Pp,q as fr,h as vn,n as Nt,s as jp,t as Lp,F as yn,w as qp,B as Dp,x as Cn,U as Np,T as nd,P as Mp,A as id,D as ad,E as Mo,G as Fp,W as Bp,K as Up,M as od,O as Vp,Q as $p,V as zp,Y as Gp,a0 as Hp,a1 as Zp,a2 as Wp,a3 as Yp,a4 as Jp,a5 as Kp,a6 as Xp,a7 as Qp,a8 as sd}from"./index-dzWR0i9B.js";import{f as em}from"./analyticsHelper-DbCQv-FA.js";import{i as Be,n as We,g as Se,o as ot,N as ir,k as gt,l as Te,p as ud,h as ze,u as Jo,j as Fo}from"./core-FPb4xGqN.js";import{u as Bt,D as dr,n as tt,S as Zt}from"./mui-ug_sjPms.js";import{a as Ze,b as tm,c as rm,d as nm,e as Ko,f as im,g as am,h as om,i as Wt,j as sm,k as or,l as _n,m as um,n as hr,o as cm}from"./utils-CRCsqMfk.js";import{r as Xo}from"./empty-B7VJJYqG.js";import{r as pr,a as lm}from"./index-BWJwubl1.js";import{r as fm}from"./index-Bdk1oRpA.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="19027126-aa76-4c2b-aa26-501c2e61493c",e._sentryDebugIdIdentifier="sentry-dbid-19027126-aa76-4c2b-aa26-501c2e61493c")}catch{}})();var kn={},Ss;function bn(){return Ss||(Ss=1,(function(e){var t=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function n(a,o){return Object.prototype.hasOwnProperty.call(a,o)}e.assign=function(a){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var d=o.shift();if(d){if(typeof d!="object")throw new TypeError(d+"must be non-object");for(var f in d)n(d,f)&&(a[f]=d[f])}}return a},e.shrinkBuf=function(a,o){return a.length===o?a:a.subarray?a.subarray(0,o):(a.length=o,a)};var r={arraySet:function(a,o,d,f,v){if(o.subarray&&a.subarray){a.set(o.subarray(d,d+f),v);return}for(var s=0;s<f;s++)a[v+s]=o[d+s]},flattenChunks:function(a){var o,d,f,v,s,l;for(f=0,o=0,d=a.length;o<d;o++)f+=a[o].length;for(l=new Uint8Array(f),v=0,o=0,d=a.length;o<d;o++)s=a[o],l.set(s,v),v+=s.length;return l}},i={arraySet:function(a,o,d,f,v){for(var s=0;s<f;s++)a[v+s]=o[d+s]},flattenChunks:function(a){return[].concat.apply([],a)}};e.setTyped=function(a){a?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,r)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,i))},e.setTyped(t)})(kn)),kn}var ut={},Pt={},Rs;function dm(){if(Rs)return Pt;Rs=1;var e=bn(),t=4,n=0,r=1,i=2;function a(C){for(var ne=C.length;--ne>=0;)C[ne]=0}var o=0,d=1,f=2,v=3,s=258,l=29,c=256,y=c+1+l,h=30,m=19,g=2*y+1,u=15,_=16,E=7,w=256,b=16,x=17,O=18,P=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],M=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],W=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],V=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S=512,I=new Array((y+2)*2);a(I);var $=new Array(h*2);a($);var z=new Array(S);a(z);var X=new Array(s-v+1);a(X);var A=new Array(l);a(A);var k=new Array(h);a(k);function j(C,ne,se,fe,Z){this.static_tree=C,this.extra_bits=ne,this.extra_base=se,this.elems=fe,this.max_length=Z,this.has_stree=C&&C.length}var N,H,B;function q(C,ne){this.dyn_tree=C,this.max_code=0,this.stat_desc=ne}function L(C){return C<256?z[C]:z[256+(C>>>7)]}function D(C,ne){C.pending_buf[C.pending++]=ne&255,C.pending_buf[C.pending++]=ne>>>8&255}function F(C,ne,se){C.bi_valid>_-se?(C.bi_buf|=ne<<C.bi_valid&65535,D(C,C.bi_buf),C.bi_buf=ne>>_-C.bi_valid,C.bi_valid+=se-_):(C.bi_buf|=ne<<C.bi_valid&65535,C.bi_valid+=se)}function K(C,ne,se){F(C,se[ne*2],se[ne*2+1])}function J(C,ne){var se=0;do se|=C&1,C>>>=1,se<<=1;while(--ne>0);return se>>>1}function ae(C){C.bi_valid===16?(D(C,C.bi_buf),C.bi_buf=0,C.bi_valid=0):C.bi_valid>=8&&(C.pending_buf[C.pending++]=C.bi_buf&255,C.bi_buf>>=8,C.bi_valid-=8)}function ue(C,ne){var se=ne.dyn_tree,fe=ne.max_code,Z=ne.stat_desc.static_tree,ie=ne.stat_desc.has_stree,R=ne.stat_desc.extra_bits,oe=ne.stat_desc.extra_base,be=ne.stat_desc.max_length,p,te,re,T,G,ee,_e=0;for(T=0;T<=u;T++)C.bl_count[T]=0;for(se[C.heap[C.heap_max]*2+1]=0,p=C.heap_max+1;p<g;p++)te=C.heap[p],T=se[se[te*2+1]*2+1]+1,T>be&&(T=be,_e++),se[te*2+1]=T,!(te>fe)&&(C.bl_count[T]++,G=0,te>=oe&&(G=R[te-oe]),ee=se[te*2],C.opt_len+=ee*(T+G),ie&&(C.static_len+=ee*(Z[te*2+1]+G)));if(_e!==0){do{for(T=be-1;C.bl_count[T]===0;)T--;C.bl_count[T]--,C.bl_count[T+1]+=2,C.bl_count[be]--,_e-=2}while(_e>0);for(T=be;T!==0;T--)for(te=C.bl_count[T];te!==0;)re=C.heap[--p],!(re>fe)&&(se[re*2+1]!==T&&(C.opt_len+=(T-se[re*2+1])*se[re*2],se[re*2+1]=T),te--)}}function ve(C,ne,se){var fe=new Array(u+1),Z=0,ie,R;for(ie=1;ie<=u;ie++)fe[ie]=Z=Z+se[ie-1]<<1;for(R=0;R<=ne;R++){var oe=C[R*2+1];oe!==0&&(C[R*2]=J(fe[oe]++,oe))}}function me(){var C,ne,se,fe,Z,ie=new Array(u+1);for(se=0,fe=0;fe<l-1;fe++)for(A[fe]=se,C=0;C<1<<P[fe];C++)X[se++]=fe;for(X[se-1]=fe,Z=0,fe=0;fe<16;fe++)for(k[fe]=Z,C=0;C<1<<M[fe];C++)z[Z++]=fe;for(Z>>=7;fe<h;fe++)for(k[fe]=Z<<7,C=0;C<1<<M[fe]-7;C++)z[256+Z++]=fe;for(ne=0;ne<=u;ne++)ie[ne]=0;for(C=0;C<=143;)I[C*2+1]=8,C++,ie[8]++;for(;C<=255;)I[C*2+1]=9,C++,ie[9]++;for(;C<=279;)I[C*2+1]=7,C++,ie[7]++;for(;C<=287;)I[C*2+1]=8,C++,ie[8]++;for(ve(I,y+1,ie),C=0;C<h;C++)$[C*2+1]=5,$[C*2]=J(C,5);N=new j(I,P,c+1,y,u),H=new j($,M,0,h,u),B=new j(new Array(0),W,0,m,E)}function we(C){var ne;for(ne=0;ne<y;ne++)C.dyn_ltree[ne*2]=0;for(ne=0;ne<h;ne++)C.dyn_dtree[ne*2]=0;for(ne=0;ne<m;ne++)C.bl_tree[ne*2]=0;C.dyn_ltree[w*2]=1,C.opt_len=C.static_len=0,C.last_lit=C.matches=0}function Ce(C){C.bi_valid>8?D(C,C.bi_buf):C.bi_valid>0&&(C.pending_buf[C.pending++]=C.bi_buf),C.bi_buf=0,C.bi_valid=0}function Pe(C,ne,se,fe){Ce(C),D(C,se),D(C,~se),e.arraySet(C.pending_buf,C.window,ne,se,C.pending),C.pending+=se}function je(C,ne,se,fe){var Z=ne*2,ie=se*2;return C[Z]<C[ie]||C[Z]===C[ie]&&fe[ne]<=fe[se]}function Ie(C,ne,se){for(var fe=C.heap[se],Z=se<<1;Z<=C.heap_len&&(Z<C.heap_len&&je(ne,C.heap[Z+1],C.heap[Z],C.depth)&&Z++,!je(ne,fe,C.heap[Z],C.depth));)C.heap[se]=C.heap[Z],se=Z,Z<<=1;C.heap[se]=fe}function Ee(C,ne,se){var fe,Z,ie=0,R,oe;if(C.last_lit!==0)do fe=C.pending_buf[C.d_buf+ie*2]<<8|C.pending_buf[C.d_buf+ie*2+1],Z=C.pending_buf[C.l_buf+ie],ie++,fe===0?K(C,Z,ne):(R=X[Z],K(C,R+c+1,ne),oe=P[R],oe!==0&&(Z-=A[R],F(C,Z,oe)),fe--,R=L(fe),K(C,R,se),oe=M[R],oe!==0&&(fe-=k[R],F(C,fe,oe)));while(ie<C.last_lit);K(C,w,ne)}function $e(C,ne){var se=ne.dyn_tree,fe=ne.stat_desc.static_tree,Z=ne.stat_desc.has_stree,ie=ne.stat_desc.elems,R,oe,be=-1,p;for(C.heap_len=0,C.heap_max=g,R=0;R<ie;R++)se[R*2]!==0?(C.heap[++C.heap_len]=be=R,C.depth[R]=0):se[R*2+1]=0;for(;C.heap_len<2;)p=C.heap[++C.heap_len]=be<2?++be:0,se[p*2]=1,C.depth[p]=0,C.opt_len--,Z&&(C.static_len-=fe[p*2+1]);for(ne.max_code=be,R=C.heap_len>>1;R>=1;R--)Ie(C,se,R);p=ie;do R=C.heap[1],C.heap[1]=C.heap[C.heap_len--],Ie(C,se,1),oe=C.heap[1],C.heap[--C.heap_max]=R,C.heap[--C.heap_max]=oe,se[p*2]=se[R*2]+se[oe*2],C.depth[p]=(C.depth[R]>=C.depth[oe]?C.depth[R]:C.depth[oe])+1,se[R*2+1]=se[oe*2+1]=p,C.heap[1]=p++,Ie(C,se,1);while(C.heap_len>=2);C.heap[--C.heap_max]=C.heap[1],ue(C,ne),ve(se,be,C.bl_count)}function st(C,ne,se){var fe,Z=-1,ie,R=ne[1],oe=0,be=7,p=4;for(R===0&&(be=138,p=3),ne[(se+1)*2+1]=65535,fe=0;fe<=se;fe++)ie=R,R=ne[(fe+1)*2+1],!(++oe<be&&ie===R)&&(oe<p?C.bl_tree[ie*2]+=oe:ie!==0?(ie!==Z&&C.bl_tree[ie*2]++,C.bl_tree[b*2]++):oe<=10?C.bl_tree[x*2]++:C.bl_tree[O*2]++,oe=0,Z=ie,R===0?(be=138,p=3):ie===R?(be=6,p=3):(be=7,p=4))}function qe(C,ne,se){var fe,Z=-1,ie,R=ne[1],oe=0,be=7,p=4;for(R===0&&(be=138,p=3),fe=0;fe<=se;fe++)if(ie=R,R=ne[(fe+1)*2+1],!(++oe<be&&ie===R)){if(oe<p)do K(C,ie,C.bl_tree);while(--oe!==0);else ie!==0?(ie!==Z&&(K(C,ie,C.bl_tree),oe--),K(C,b,C.bl_tree),F(C,oe-3,2)):oe<=10?(K(C,x,C.bl_tree),F(C,oe-3,3)):(K(C,O,C.bl_tree),F(C,oe-11,7));oe=0,Z=ie,R===0?(be=138,p=3):ie===R?(be=6,p=3):(be=7,p=4)}}function Ne(C){var ne;for(st(C,C.dyn_ltree,C.l_desc.max_code),st(C,C.dyn_dtree,C.d_desc.max_code),$e(C,C.bl_desc),ne=m-1;ne>=3&&C.bl_tree[V[ne]*2+1]===0;ne--);return C.opt_len+=3*(ne+1)+5+5+4,ne}function Ye(C,ne,se,fe){var Z;for(F(C,ne-257,5),F(C,se-1,5),F(C,fe-4,4),Z=0;Z<fe;Z++)F(C,C.bl_tree[V[Z]*2+1],3);qe(C,C.dyn_ltree,ne-1),qe(C,C.dyn_dtree,se-1)}function Y(C){var ne=4093624447,se;for(se=0;se<=31;se++,ne>>>=1)if(ne&1&&C.dyn_ltree[se*2]!==0)return n;if(C.dyn_ltree[18]!==0||C.dyn_ltree[20]!==0||C.dyn_ltree[26]!==0)return r;for(se=32;se<c;se++)if(C.dyn_ltree[se*2]!==0)return r;return n}var Q=!1;function le(C){Q||(me(),Q=!0),C.l_desc=new q(C.dyn_ltree,N),C.d_desc=new q(C.dyn_dtree,H),C.bl_desc=new q(C.bl_tree,B),C.bi_buf=0,C.bi_valid=0,we(C)}function ge(C,ne,se,fe){F(C,(o<<1)+(fe?1:0),3),Pe(C,ne,se)}function de(C){F(C,d<<1,3),K(C,w,I),ae(C)}function Re(C,ne,se,fe){var Z,ie,R=0;C.level>0?(C.strm.data_type===i&&(C.strm.data_type=Y(C)),$e(C,C.l_desc),$e(C,C.d_desc),R=Ne(C),Z=C.opt_len+3+7>>>3,ie=C.static_len+3+7>>>3,ie<=Z&&(Z=ie)):Z=ie=se+5,se+4<=Z&&ne!==-1?ge(C,ne,se,fe):C.strategy===t||ie===Z?(F(C,(d<<1)+(fe?1:0),3),Ee(C,I,$)):(F(C,(f<<1)+(fe?1:0),3),Ye(C,C.l_desc.max_code+1,C.d_desc.max_code+1,R+1),Ee(C,C.dyn_ltree,C.dyn_dtree)),we(C),fe&&Ce(C)}function Oe(C,ne,se){return C.pending_buf[C.d_buf+C.last_lit*2]=ne>>>8&255,C.pending_buf[C.d_buf+C.last_lit*2+1]=ne&255,C.pending_buf[C.l_buf+C.last_lit]=se&255,C.last_lit++,ne===0?C.dyn_ltree[se*2]++:(C.matches++,ne--,C.dyn_ltree[(X[se]+c+1)*2]++,C.dyn_dtree[L(ne)*2]++),C.last_lit===C.lit_bufsize-1}return Pt._tr_init=le,Pt._tr_stored_block=ge,Pt._tr_flush_block=Re,Pt._tr_tally=Oe,Pt._tr_align=de,Pt}var Pn,Os;function cd(){if(Os)return Pn;Os=1;function e(t,n,r,i){for(var a=t&65535|0,o=t>>>16&65535|0,d=0;r!==0;){d=r>2e3?2e3:r,r-=d;do a=a+n[i++]|0,o=o+a|0;while(--d);a%=65521,o%=65521}return a|o<<16|0}return Pn=e,Pn}var jn,Ts;function ld(){if(Ts)return jn;Ts=1;function e(){for(var r,i=[],a=0;a<256;a++){r=a;for(var o=0;o<8;o++)r=r&1?3988292384^r>>>1:r>>>1;i[a]=r}return i}var t=e();function n(r,i,a,o){var d=t,f=o+a;r^=-1;for(var v=o;v<f;v++)r=r>>>8^d[(r^i[v])&255];return r^-1}return jn=n,jn}var Ln,As;function hm(){return As||(As=1,Ln={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}),Ln}var Is;function pm(){if(Is)return ut;Is=1;var e=bn(),t=dm(),n=cd(),r=ld(),i=hm(),a=0,o=1,d=3,f=4,v=5,s=0,l=1,c=-2,y=-3,h=-5,m=-1,g=1,u=2,_=3,E=4,w=0,b=2,x=8,O=9,P=15,M=8,W=29,V=256,S=V+1+W,I=30,$=19,z=2*S+1,X=15,A=3,k=258,j=k+A+1,N=32,H=42,B=69,q=73,L=91,D=103,F=113,K=666,J=1,ae=2,ue=3,ve=4,me=3;function we(p,te){return p.msg=i[te],te}function Ce(p){return(p<<1)-(p>4?9:0)}function Pe(p){for(var te=p.length;--te>=0;)p[te]=0}function je(p){var te=p.state,re=te.pending;re>p.avail_out&&(re=p.avail_out),re!==0&&(e.arraySet(p.output,te.pending_buf,te.pending_out,re,p.next_out),p.next_out+=re,te.pending_out+=re,p.total_out+=re,p.avail_out-=re,te.pending-=re,te.pending===0&&(te.pending_out=0))}function Ie(p,te){t._tr_flush_block(p,p.block_start>=0?p.block_start:-1,p.strstart-p.block_start,te),p.block_start=p.strstart,je(p.strm)}function Ee(p,te){p.pending_buf[p.pending++]=te}function $e(p,te){p.pending_buf[p.pending++]=te>>>8&255,p.pending_buf[p.pending++]=te&255}function st(p,te,re,T){var G=p.avail_in;return G>T&&(G=T),G===0?0:(p.avail_in-=G,e.arraySet(te,p.input,p.next_in,G,re),p.state.wrap===1?p.adler=n(p.adler,te,G,re):p.state.wrap===2&&(p.adler=r(p.adler,te,G,re)),p.next_in+=G,p.total_in+=G,G)}function qe(p,te){var re=p.max_chain_length,T=p.strstart,G,ee,_e=p.prev_length,he=p.nice_match,pe=p.strstart>p.w_size-j?p.strstart-(p.w_size-j):0,Ae=p.window,vt=p.w_mask,Le=p.prev,xe=p.strstart+k,Ue=Ae[T+_e-1],Je=Ae[T+_e];p.prev_length>=p.good_match&&(re>>=2),he>p.lookahead&&(he=p.lookahead);do if(G=te,!(Ae[G+_e]!==Je||Ae[G+_e-1]!==Ue||Ae[G]!==Ae[T]||Ae[++G]!==Ae[T+1])){T+=2,G++;do;while(Ae[++T]===Ae[++G]&&Ae[++T]===Ae[++G]&&Ae[++T]===Ae[++G]&&Ae[++T]===Ae[++G]&&Ae[++T]===Ae[++G]&&Ae[++T]===Ae[++G]&&Ae[++T]===Ae[++G]&&Ae[++T]===Ae[++G]&&T<xe);if(ee=k-(xe-T),T=xe-k,ee>_e){if(p.match_start=te,_e=ee,ee>=he)break;Ue=Ae[T+_e-1],Je=Ae[T+_e]}}while((te=Le[te&vt])>pe&&--re!==0);return _e<=p.lookahead?_e:p.lookahead}function Ne(p){var te=p.w_size,re,T,G,ee,_e;do{if(ee=p.window_size-p.lookahead-p.strstart,p.strstart>=te+(te-j)){e.arraySet(p.window,p.window,te,te,0),p.match_start-=te,p.strstart-=te,p.block_start-=te,T=p.hash_size,re=T;do G=p.head[--re],p.head[re]=G>=te?G-te:0;while(--T);T=te,re=T;do G=p.prev[--re],p.prev[re]=G>=te?G-te:0;while(--T);ee+=te}if(p.strm.avail_in===0)break;if(T=st(p.strm,p.window,p.strstart+p.lookahead,ee),p.lookahead+=T,p.lookahead+p.insert>=A)for(_e=p.strstart-p.insert,p.ins_h=p.window[_e],p.ins_h=(p.ins_h<<p.hash_shift^p.window[_e+1])&p.hash_mask;p.insert&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[_e+A-1])&p.hash_mask,p.prev[_e&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=_e,_e++,p.insert--,!(p.lookahead+p.insert<A)););}while(p.lookahead<j&&p.strm.avail_in!==0)}function Ye(p,te){var re=65535;for(re>p.pending_buf_size-5&&(re=p.pending_buf_size-5);;){if(p.lookahead<=1){if(Ne(p),p.lookahead===0&&te===a)return J;if(p.lookahead===0)break}p.strstart+=p.lookahead,p.lookahead=0;var T=p.block_start+re;if((p.strstart===0||p.strstart>=T)&&(p.lookahead=p.strstart-T,p.strstart=T,Ie(p,!1),p.strm.avail_out===0)||p.strstart-p.block_start>=p.w_size-j&&(Ie(p,!1),p.strm.avail_out===0))return J}return p.insert=0,te===f?(Ie(p,!0),p.strm.avail_out===0?ue:ve):(p.strstart>p.block_start&&(Ie(p,!1),p.strm.avail_out===0),J)}function Y(p,te){for(var re,T;;){if(p.lookahead<j){if(Ne(p),p.lookahead<j&&te===a)return J;if(p.lookahead===0)break}if(re=0,p.lookahead>=A&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+A-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),re!==0&&p.strstart-re<=p.w_size-j&&(p.match_length=qe(p,re)),p.match_length>=A)if(T=t._tr_tally(p,p.strstart-p.match_start,p.match_length-A),p.lookahead-=p.match_length,p.match_length<=p.max_lazy_match&&p.lookahead>=A){p.match_length--;do p.strstart++,p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+A-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart;while(--p.match_length!==0);p.strstart++}else p.strstart+=p.match_length,p.match_length=0,p.ins_h=p.window[p.strstart],p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+1])&p.hash_mask;else T=t._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++;if(T&&(Ie(p,!1),p.strm.avail_out===0))return J}return p.insert=p.strstart<A-1?p.strstart:A-1,te===f?(Ie(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ie(p,!1),p.strm.avail_out===0)?J:ae}function Q(p,te){for(var re,T,G;;){if(p.lookahead<j){if(Ne(p),p.lookahead<j&&te===a)return J;if(p.lookahead===0)break}if(re=0,p.lookahead>=A&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+A-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),p.prev_length=p.match_length,p.prev_match=p.match_start,p.match_length=A-1,re!==0&&p.prev_length<p.max_lazy_match&&p.strstart-re<=p.w_size-j&&(p.match_length=qe(p,re),p.match_length<=5&&(p.strategy===g||p.match_length===A&&p.strstart-p.match_start>4096)&&(p.match_length=A-1)),p.prev_length>=A&&p.match_length<=p.prev_length){G=p.strstart+p.lookahead-A,T=t._tr_tally(p,p.strstart-1-p.prev_match,p.prev_length-A),p.lookahead-=p.prev_length-1,p.prev_length-=2;do++p.strstart<=G&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+A-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart);while(--p.prev_length!==0);if(p.match_available=0,p.match_length=A-1,p.strstart++,T&&(Ie(p,!1),p.strm.avail_out===0))return J}else if(p.match_available){if(T=t._tr_tally(p,0,p.window[p.strstart-1]),T&&Ie(p,!1),p.strstart++,p.lookahead--,p.strm.avail_out===0)return J}else p.match_available=1,p.strstart++,p.lookahead--}return p.match_available&&(T=t._tr_tally(p,0,p.window[p.strstart-1]),p.match_available=0),p.insert=p.strstart<A-1?p.strstart:A-1,te===f?(Ie(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ie(p,!1),p.strm.avail_out===0)?J:ae}function le(p,te){for(var re,T,G,ee,_e=p.window;;){if(p.lookahead<=k){if(Ne(p),p.lookahead<=k&&te===a)return J;if(p.lookahead===0)break}if(p.match_length=0,p.lookahead>=A&&p.strstart>0&&(G=p.strstart-1,T=_e[G],T===_e[++G]&&T===_e[++G]&&T===_e[++G])){ee=p.strstart+k;do;while(T===_e[++G]&&T===_e[++G]&&T===_e[++G]&&T===_e[++G]&&T===_e[++G]&&T===_e[++G]&&T===_e[++G]&&T===_e[++G]&&G<ee);p.match_length=k-(ee-G),p.match_length>p.lookahead&&(p.match_length=p.lookahead)}if(p.match_length>=A?(re=t._tr_tally(p,1,p.match_length-A),p.lookahead-=p.match_length,p.strstart+=p.match_length,p.match_length=0):(re=t._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++),re&&(Ie(p,!1),p.strm.avail_out===0))return J}return p.insert=0,te===f?(Ie(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ie(p,!1),p.strm.avail_out===0)?J:ae}function ge(p,te){for(var re;;){if(p.lookahead===0&&(Ne(p),p.lookahead===0)){if(te===a)return J;break}if(p.match_length=0,re=t._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++,re&&(Ie(p,!1),p.strm.avail_out===0))return J}return p.insert=0,te===f?(Ie(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ie(p,!1),p.strm.avail_out===0)?J:ae}function de(p,te,re,T,G){this.good_length=p,this.max_lazy=te,this.nice_length=re,this.max_chain=T,this.func=G}var Re;Re=[new de(0,0,0,0,Ye),new de(4,4,8,4,Y),new de(4,5,16,8,Y),new de(4,6,32,32,Y),new de(4,4,16,16,Q),new de(8,16,32,32,Q),new de(8,16,128,128,Q),new de(8,32,128,256,Q),new de(32,128,258,1024,Q),new de(32,258,258,4096,Q)];function Oe(p){p.window_size=2*p.w_size,Pe(p.head),p.max_lazy_match=Re[p.level].max_lazy,p.good_match=Re[p.level].good_length,p.nice_match=Re[p.level].nice_length,p.max_chain_length=Re[p.level].max_chain,p.strstart=0,p.block_start=0,p.lookahead=0,p.insert=0,p.match_length=p.prev_length=A-1,p.match_available=0,p.ins_h=0}function C(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=x,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new e.Buf16(z*2),this.dyn_dtree=new e.Buf16((2*I+1)*2),this.bl_tree=new e.Buf16((2*$+1)*2),Pe(this.dyn_ltree),Pe(this.dyn_dtree),Pe(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(X+1),this.heap=new e.Buf16(2*S+1),Pe(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*S+1),Pe(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ne(p){var te;return!p||!p.state?we(p,c):(p.total_in=p.total_out=0,p.data_type=b,te=p.state,te.pending=0,te.pending_out=0,te.wrap<0&&(te.wrap=-te.wrap),te.status=te.wrap?H:F,p.adler=te.wrap===2?0:1,te.last_flush=a,t._tr_init(te),s)}function se(p){var te=ne(p);return te===s&&Oe(p.state),te}function fe(p,te){return!p||!p.state||p.state.wrap!==2?c:(p.state.gzhead=te,s)}function Z(p,te,re,T,G,ee){if(!p)return c;var _e=1;if(te===m&&(te=6),T<0?(_e=0,T=-T):T>15&&(_e=2,T-=16),G<1||G>O||re!==x||T<8||T>15||te<0||te>9||ee<0||ee>E)return we(p,c);T===8&&(T=9);var he=new C;return p.state=he,he.strm=p,he.wrap=_e,he.gzhead=null,he.w_bits=T,he.w_size=1<<he.w_bits,he.w_mask=he.w_size-1,he.hash_bits=G+7,he.hash_size=1<<he.hash_bits,he.hash_mask=he.hash_size-1,he.hash_shift=~~((he.hash_bits+A-1)/A),he.window=new e.Buf8(he.w_size*2),he.head=new e.Buf16(he.hash_size),he.prev=new e.Buf16(he.w_size),he.lit_bufsize=1<<G+6,he.pending_buf_size=he.lit_bufsize*4,he.pending_buf=new e.Buf8(he.pending_buf_size),he.d_buf=1*he.lit_bufsize,he.l_buf=3*he.lit_bufsize,he.level=te,he.strategy=ee,he.method=re,se(p)}function ie(p,te){return Z(p,te,x,P,M,w)}function R(p,te){var re,T,G,ee;if(!p||!p.state||te>v||te<0)return p?we(p,c):c;if(T=p.state,!p.output||!p.input&&p.avail_in!==0||T.status===K&&te!==f)return we(p,p.avail_out===0?h:c);if(T.strm=p,re=T.last_flush,T.last_flush=te,T.status===H)if(T.wrap===2)p.adler=0,Ee(T,31),Ee(T,139),Ee(T,8),T.gzhead?(Ee(T,(T.gzhead.text?1:0)+(T.gzhead.hcrc?2:0)+(T.gzhead.extra?4:0)+(T.gzhead.name?8:0)+(T.gzhead.comment?16:0)),Ee(T,T.gzhead.time&255),Ee(T,T.gzhead.time>>8&255),Ee(T,T.gzhead.time>>16&255),Ee(T,T.gzhead.time>>24&255),Ee(T,T.level===9?2:T.strategy>=u||T.level<2?4:0),Ee(T,T.gzhead.os&255),T.gzhead.extra&&T.gzhead.extra.length&&(Ee(T,T.gzhead.extra.length&255),Ee(T,T.gzhead.extra.length>>8&255)),T.gzhead.hcrc&&(p.adler=r(p.adler,T.pending_buf,T.pending,0)),T.gzindex=0,T.status=B):(Ee(T,0),Ee(T,0),Ee(T,0),Ee(T,0),Ee(T,0),Ee(T,T.level===9?2:T.strategy>=u||T.level<2?4:0),Ee(T,me),T.status=F);else{var _e=x+(T.w_bits-8<<4)<<8,he=-1;T.strategy>=u||T.level<2?he=0:T.level<6?he=1:T.level===6?he=2:he=3,_e|=he<<6,T.strstart!==0&&(_e|=N),_e+=31-_e%31,T.status=F,$e(T,_e),T.strstart!==0&&($e(T,p.adler>>>16),$e(T,p.adler&65535)),p.adler=1}if(T.status===B)if(T.gzhead.extra){for(G=T.pending;T.gzindex<(T.gzhead.extra.length&65535)&&!(T.pending===T.pending_buf_size&&(T.gzhead.hcrc&&T.pending>G&&(p.adler=r(p.adler,T.pending_buf,T.pending-G,G)),je(p),G=T.pending,T.pending===T.pending_buf_size));)Ee(T,T.gzhead.extra[T.gzindex]&255),T.gzindex++;T.gzhead.hcrc&&T.pending>G&&(p.adler=r(p.adler,T.pending_buf,T.pending-G,G)),T.gzindex===T.gzhead.extra.length&&(T.gzindex=0,T.status=q)}else T.status=q;if(T.status===q)if(T.gzhead.name){G=T.pending;do{if(T.pending===T.pending_buf_size&&(T.gzhead.hcrc&&T.pending>G&&(p.adler=r(p.adler,T.pending_buf,T.pending-G,G)),je(p),G=T.pending,T.pending===T.pending_buf_size)){ee=1;break}T.gzindex<T.gzhead.name.length?ee=T.gzhead.name.charCodeAt(T.gzindex++)&255:ee=0,Ee(T,ee)}while(ee!==0);T.gzhead.hcrc&&T.pending>G&&(p.adler=r(p.adler,T.pending_buf,T.pending-G,G)),ee===0&&(T.gzindex=0,T.status=L)}else T.status=L;if(T.status===L)if(T.gzhead.comment){G=T.pending;do{if(T.pending===T.pending_buf_size&&(T.gzhead.hcrc&&T.pending>G&&(p.adler=r(p.adler,T.pending_buf,T.pending-G,G)),je(p),G=T.pending,T.pending===T.pending_buf_size)){ee=1;break}T.gzindex<T.gzhead.comment.length?ee=T.gzhead.comment.charCodeAt(T.gzindex++)&255:ee=0,Ee(T,ee)}while(ee!==0);T.gzhead.hcrc&&T.pending>G&&(p.adler=r(p.adler,T.pending_buf,T.pending-G,G)),ee===0&&(T.status=D)}else T.status=D;if(T.status===D&&(T.gzhead.hcrc?(T.pending+2>T.pending_buf_size&&je(p),T.pending+2<=T.pending_buf_size&&(Ee(T,p.adler&255),Ee(T,p.adler>>8&255),p.adler=0,T.status=F)):T.status=F),T.pending!==0){if(je(p),p.avail_out===0)return T.last_flush=-1,s}else if(p.avail_in===0&&Ce(te)<=Ce(re)&&te!==f)return we(p,h);if(T.status===K&&p.avail_in!==0)return we(p,h);if(p.avail_in!==0||T.lookahead!==0||te!==a&&T.status!==K){var pe=T.strategy===u?ge(T,te):T.strategy===_?le(T,te):Re[T.level].func(T,te);if((pe===ue||pe===ve)&&(T.status=K),pe===J||pe===ue)return p.avail_out===0&&(T.last_flush=-1),s;if(pe===ae&&(te===o?t._tr_align(T):te!==v&&(t._tr_stored_block(T,0,0,!1),te===d&&(Pe(T.head),T.lookahead===0&&(T.strstart=0,T.block_start=0,T.insert=0))),je(p),p.avail_out===0))return T.last_flush=-1,s}return te!==f?s:T.wrap<=0?l:(T.wrap===2?(Ee(T,p.adler&255),Ee(T,p.adler>>8&255),Ee(T,p.adler>>16&255),Ee(T,p.adler>>24&255),Ee(T,p.total_in&255),Ee(T,p.total_in>>8&255),Ee(T,p.total_in>>16&255),Ee(T,p.total_in>>24&255)):($e(T,p.adler>>>16),$e(T,p.adler&65535)),je(p),T.wrap>0&&(T.wrap=-T.wrap),T.pending!==0?s:l)}function oe(p){var te;return!p||!p.state?c:(te=p.state.status,te!==H&&te!==B&&te!==q&&te!==L&&te!==D&&te!==F&&te!==K?we(p,c):(p.state=null,te===F?we(p,y):s))}function be(p,te){var re=te.length,T,G,ee,_e,he,pe,Ae,vt;if(!p||!p.state||(T=p.state,_e=T.wrap,_e===2||_e===1&&T.status!==H||T.lookahead))return c;for(_e===1&&(p.adler=n(p.adler,te,re,0)),T.wrap=0,re>=T.w_size&&(_e===0&&(Pe(T.head),T.strstart=0,T.block_start=0,T.insert=0),vt=new e.Buf8(T.w_size),e.arraySet(vt,te,re-T.w_size,T.w_size,0),te=vt,re=T.w_size),he=p.avail_in,pe=p.next_in,Ae=p.input,p.avail_in=re,p.next_in=0,p.input=te,Ne(T);T.lookahead>=A;){G=T.strstart,ee=T.lookahead-(A-1);do T.ins_h=(T.ins_h<<T.hash_shift^T.window[G+A-1])&T.hash_mask,T.prev[G&T.w_mask]=T.head[T.ins_h],T.head[T.ins_h]=G,G++;while(--ee);T.strstart=G,T.lookahead=A-1,Ne(T)}return T.strstart+=T.lookahead,T.block_start=T.strstart,T.insert=T.lookahead,T.lookahead=0,T.match_length=T.prev_length=A-1,T.match_available=0,p.next_in=pe,p.input=Ae,p.avail_in=he,T.wrap=_e,s}return ut.deflateInit=ie,ut.deflateInit2=Z,ut.deflateReset=se,ut.deflateResetKeep=ne,ut.deflateSetHeader=fe,ut.deflate=R,ut.deflateEnd=oe,ut.deflateSetDictionary=be,ut.deflateInfo="pako deflate (from Nodeca project)",ut}var qn,xs;function mm(){if(xs)return qn;xs=1;function e(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}return qn=e,qn}var it={},Dn,Cs;function gm(){if(Cs)return Dn;Cs=1;var e=30,t=12;return Dn=function(r,i){var a,o,d,f,v,s,l,c,y,h,m,g,u,_,E,w,b,x,O,P,M,W,V,S,I;a=r.state,o=r.next_in,S=r.input,d=o+(r.avail_in-5),f=r.next_out,I=r.output,v=f-(i-r.avail_out),s=f+(r.avail_out-257),l=a.dmax,c=a.wsize,y=a.whave,h=a.wnext,m=a.window,g=a.hold,u=a.bits,_=a.lencode,E=a.distcode,w=(1<<a.lenbits)-1,b=(1<<a.distbits)-1;e:do{u<15&&(g+=S[o++]<<u,u+=8,g+=S[o++]<<u,u+=8),x=_[g&w];t:for(;;){if(O=x>>>24,g>>>=O,u-=O,O=x>>>16&255,O===0)I[f++]=x&65535;else if(O&16){P=x&65535,O&=15,O&&(u<O&&(g+=S[o++]<<u,u+=8),P+=g&(1<<O)-1,g>>>=O,u-=O),u<15&&(g+=S[o++]<<u,u+=8,g+=S[o++]<<u,u+=8),x=E[g&b];r:for(;;){if(O=x>>>24,g>>>=O,u-=O,O=x>>>16&255,O&16){if(M=x&65535,O&=15,u<O&&(g+=S[o++]<<u,u+=8,u<O&&(g+=S[o++]<<u,u+=8)),M+=g&(1<<O)-1,M>l){r.msg="invalid distance too far back",a.mode=e;break e}if(g>>>=O,u-=O,O=f-v,M>O){if(O=M-O,O>y&&a.sane){r.msg="invalid distance too far back",a.mode=e;break e}if(W=0,V=m,h===0){if(W+=c-O,O<P){P-=O;do I[f++]=m[W++];while(--O);W=f-M,V=I}}else if(h<O){if(W+=c+h-O,O-=h,O<P){P-=O;do I[f++]=m[W++];while(--O);if(W=0,h<P){O=h,P-=O;do I[f++]=m[W++];while(--O);W=f-M,V=I}}}else if(W+=h-O,O<P){P-=O;do I[f++]=m[W++];while(--O);W=f-M,V=I}for(;P>2;)I[f++]=V[W++],I[f++]=V[W++],I[f++]=V[W++],P-=3;P&&(I[f++]=V[W++],P>1&&(I[f++]=V[W++]))}else{W=f-M;do I[f++]=I[W++],I[f++]=I[W++],I[f++]=I[W++],P-=3;while(P>2);P&&(I[f++]=I[W++],P>1&&(I[f++]=I[W++]))}}else if((O&64)===0){x=E[(x&65535)+(g&(1<<O)-1)];continue r}else{r.msg="invalid distance code",a.mode=e;break e}break}}else if((O&64)===0){x=_[(x&65535)+(g&(1<<O)-1)];continue t}else if(O&32){a.mode=t;break e}else{r.msg="invalid literal/length code",a.mode=e;break e}break}}while(o<d&&f<s);P=u>>3,o-=P,u-=P<<3,g&=(1<<u)-1,r.next_in=o,r.next_out=f,r.avail_in=o<d?5+(d-o):5-(o-d),r.avail_out=f<s?257+(s-f):257-(f-s),a.hold=g,a.bits=u},Dn}var Nn,ks;function vm(){if(ks)return Nn;ks=1;var e=bn(),t=15,n=852,r=592,i=0,a=1,o=2,d=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],f=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],v=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];return Nn=function(c,y,h,m,g,u,_,E){var w=E.bits,b=0,x=0,O=0,P=0,M=0,W=0,V=0,S=0,I=0,$=0,z,X,A,k,j,N=null,H=0,B,q=new e.Buf16(t+1),L=new e.Buf16(t+1),D=null,F=0,K,J,ae;for(b=0;b<=t;b++)q[b]=0;for(x=0;x<m;x++)q[y[h+x]]++;for(M=w,P=t;P>=1&&q[P]===0;P--);if(M>P&&(M=P),P===0)return g[u++]=1<<24|64<<16|0,g[u++]=1<<24|64<<16|0,E.bits=1,0;for(O=1;O<P&&q[O]===0;O++);for(M<O&&(M=O),S=1,b=1;b<=t;b++)if(S<<=1,S-=q[b],S<0)return-1;if(S>0&&(c===i||P!==1))return-1;for(L[1]=0,b=1;b<t;b++)L[b+1]=L[b]+q[b];for(x=0;x<m;x++)y[h+x]!==0&&(_[L[y[h+x]]++]=x);if(c===i?(N=D=_,B=19):c===a?(N=d,H-=257,D=f,F-=257,B=256):(N=v,D=s,B=-1),$=0,x=0,b=O,j=u,W=M,V=0,A=-1,I=1<<M,k=I-1,c===a&&I>n||c===o&&I>r)return 1;for(;;){K=b-V,_[x]<B?(J=0,ae=_[x]):_[x]>B?(J=D[F+_[x]],ae=N[H+_[x]]):(J=96,ae=0),z=1<<b-V,X=1<<W,O=X;do X-=z,g[j+($>>V)+X]=K<<24|J<<16|ae|0;while(X!==0);for(z=1<<b-1;$&z;)z>>=1;if(z!==0?($&=z-1,$+=z):$=0,x++,--q[b]===0){if(b===P)break;b=y[h+_[x]]}if(b>M&&($&k)!==A){for(V===0&&(V=M),j+=O,W=b-V,S=1<<W;W+V<P&&(S-=q[W+V],!(S<=0));)W++,S<<=1;if(I+=1<<W,c===a&&I>n||c===o&&I>r)return 1;A=$&k,g[A]=M<<24|W<<16|j-u|0}}return $!==0&&(g[j+$]=b-V<<24|64<<16|0),E.bits=M,0},Nn}var Ps;function ym(){if(Ps)return it;Ps=1;var e=bn(),t=cd(),n=ld(),r=gm(),i=vm(),a=0,o=1,d=2,f=4,v=5,s=6,l=0,c=1,y=2,h=-2,m=-3,g=-4,u=-5,_=8,E=1,w=2,b=3,x=4,O=5,P=6,M=7,W=8,V=9,S=10,I=11,$=12,z=13,X=14,A=15,k=16,j=17,N=18,H=19,B=20,q=21,L=22,D=23,F=24,K=25,J=26,ae=27,ue=28,ve=29,me=30,we=31,Ce=32,Pe=852,je=592,Ie=15,Ee=Ie;function $e(Z){return(Z>>>24&255)+(Z>>>8&65280)+((Z&65280)<<8)+((Z&255)<<24)}function st(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new e.Buf16(320),this.work=new e.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function qe(Z){var ie;return!Z||!Z.state?h:(ie=Z.state,Z.total_in=Z.total_out=ie.total=0,Z.msg="",ie.wrap&&(Z.adler=ie.wrap&1),ie.mode=E,ie.last=0,ie.havedict=0,ie.dmax=32768,ie.head=null,ie.hold=0,ie.bits=0,ie.lencode=ie.lendyn=new e.Buf32(Pe),ie.distcode=ie.distdyn=new e.Buf32(je),ie.sane=1,ie.back=-1,l)}function Ne(Z){var ie;return!Z||!Z.state?h:(ie=Z.state,ie.wsize=0,ie.whave=0,ie.wnext=0,qe(Z))}function Ye(Z,ie){var R,oe;return!Z||!Z.state||(oe=Z.state,ie<0?(R=0,ie=-ie):(R=(ie>>4)+1,ie<48&&(ie&=15)),ie&&(ie<8||ie>15))?h:(oe.window!==null&&oe.wbits!==ie&&(oe.window=null),oe.wrap=R,oe.wbits=ie,Ne(Z))}function Y(Z,ie){var R,oe;return Z?(oe=new st,Z.state=oe,oe.window=null,R=Ye(Z,ie),R!==l&&(Z.state=null),R):h}function Q(Z){return Y(Z,Ee)}var le=!0,ge,de;function Re(Z){if(le){var ie;for(ge=new e.Buf32(512),de=new e.Buf32(32),ie=0;ie<144;)Z.lens[ie++]=8;for(;ie<256;)Z.lens[ie++]=9;for(;ie<280;)Z.lens[ie++]=7;for(;ie<288;)Z.lens[ie++]=8;for(i(o,Z.lens,0,288,ge,0,Z.work,{bits:9}),ie=0;ie<32;)Z.lens[ie++]=5;i(d,Z.lens,0,32,de,0,Z.work,{bits:5}),le=!1}Z.lencode=ge,Z.lenbits=9,Z.distcode=de,Z.distbits=5}function Oe(Z,ie,R,oe){var be,p=Z.state;return p.window===null&&(p.wsize=1<<p.wbits,p.wnext=0,p.whave=0,p.window=new e.Buf8(p.wsize)),oe>=p.wsize?(e.arraySet(p.window,ie,R-p.wsize,p.wsize,0),p.wnext=0,p.whave=p.wsize):(be=p.wsize-p.wnext,be>oe&&(be=oe),e.arraySet(p.window,ie,R-oe,be,p.wnext),oe-=be,oe?(e.arraySet(p.window,ie,R-oe,oe,0),p.wnext=oe,p.whave=p.wsize):(p.wnext+=be,p.wnext===p.wsize&&(p.wnext=0),p.whave<p.wsize&&(p.whave+=be))),0}function C(Z,ie){var R,oe,be,p,te,re,T,G,ee,_e,he,pe,Ae,vt,Le=0,xe,Ue,Je,Xe,br,wr,Me,nt,Ge=new e.Buf8(4),yt,dt,gs=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Z||!Z.state||!Z.output||!Z.input&&Z.avail_in!==0)return h;R=Z.state,R.mode===$&&(R.mode=z),te=Z.next_out,be=Z.output,T=Z.avail_out,p=Z.next_in,oe=Z.input,re=Z.avail_in,G=R.hold,ee=R.bits,_e=re,he=T,nt=l;e:for(;;)switch(R.mode){case E:if(R.wrap===0){R.mode=z;break}for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(R.wrap&2&&G===35615){R.check=0,Ge[0]=G&255,Ge[1]=G>>>8&255,R.check=n(R.check,Ge,2,0),G=0,ee=0,R.mode=w;break}if(R.flags=0,R.head&&(R.head.done=!1),!(R.wrap&1)||(((G&255)<<8)+(G>>8))%31){Z.msg="incorrect header check",R.mode=me;break}if((G&15)!==_){Z.msg="unknown compression method",R.mode=me;break}if(G>>>=4,ee-=4,Me=(G&15)+8,R.wbits===0)R.wbits=Me;else if(Me>R.wbits){Z.msg="invalid window size",R.mode=me;break}R.dmax=1<<Me,Z.adler=R.check=1,R.mode=G&512?S:$,G=0,ee=0;break;case w:for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(R.flags=G,(R.flags&255)!==_){Z.msg="unknown compression method",R.mode=me;break}if(R.flags&57344){Z.msg="unknown header flags set",R.mode=me;break}R.head&&(R.head.text=G>>8&1),R.flags&512&&(Ge[0]=G&255,Ge[1]=G>>>8&255,R.check=n(R.check,Ge,2,0)),G=0,ee=0,R.mode=b;case b:for(;ee<32;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}R.head&&(R.head.time=G),R.flags&512&&(Ge[0]=G&255,Ge[1]=G>>>8&255,Ge[2]=G>>>16&255,Ge[3]=G>>>24&255,R.check=n(R.check,Ge,4,0)),G=0,ee=0,R.mode=x;case x:for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}R.head&&(R.head.xflags=G&255,R.head.os=G>>8),R.flags&512&&(Ge[0]=G&255,Ge[1]=G>>>8&255,R.check=n(R.check,Ge,2,0)),G=0,ee=0,R.mode=O;case O:if(R.flags&1024){for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}R.length=G,R.head&&(R.head.extra_len=G),R.flags&512&&(Ge[0]=G&255,Ge[1]=G>>>8&255,R.check=n(R.check,Ge,2,0)),G=0,ee=0}else R.head&&(R.head.extra=null);R.mode=P;case P:if(R.flags&1024&&(pe=R.length,pe>re&&(pe=re),pe&&(R.head&&(Me=R.head.extra_len-R.length,R.head.extra||(R.head.extra=new Array(R.head.extra_len)),e.arraySet(R.head.extra,oe,p,pe,Me)),R.flags&512&&(R.check=n(R.check,oe,pe,p)),re-=pe,p+=pe,R.length-=pe),R.length))break e;R.length=0,R.mode=M;case M:if(R.flags&2048){if(re===0)break e;pe=0;do Me=oe[p+pe++],R.head&&Me&&R.length<65536&&(R.head.name+=String.fromCharCode(Me));while(Me&&pe<re);if(R.flags&512&&(R.check=n(R.check,oe,pe,p)),re-=pe,p+=pe,Me)break e}else R.head&&(R.head.name=null);R.length=0,R.mode=W;case W:if(R.flags&4096){if(re===0)break e;pe=0;do Me=oe[p+pe++],R.head&&Me&&R.length<65536&&(R.head.comment+=String.fromCharCode(Me));while(Me&&pe<re);if(R.flags&512&&(R.check=n(R.check,oe,pe,p)),re-=pe,p+=pe,Me)break e}else R.head&&(R.head.comment=null);R.mode=V;case V:if(R.flags&512){for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(G!==(R.check&65535)){Z.msg="header crc mismatch",R.mode=me;break}G=0,ee=0}R.head&&(R.head.hcrc=R.flags>>9&1,R.head.done=!0),Z.adler=R.check=0,R.mode=$;break;case S:for(;ee<32;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}Z.adler=R.check=$e(G),G=0,ee=0,R.mode=I;case I:if(R.havedict===0)return Z.next_out=te,Z.avail_out=T,Z.next_in=p,Z.avail_in=re,R.hold=G,R.bits=ee,y;Z.adler=R.check=1,R.mode=$;case $:if(ie===v||ie===s)break e;case z:if(R.last){G>>>=ee&7,ee-=ee&7,R.mode=ae;break}for(;ee<3;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}switch(R.last=G&1,G>>>=1,ee-=1,G&3){case 0:R.mode=X;break;case 1:if(Re(R),R.mode=B,ie===s){G>>>=2,ee-=2;break e}break;case 2:R.mode=j;break;case 3:Z.msg="invalid block type",R.mode=me}G>>>=2,ee-=2;break;case X:for(G>>>=ee&7,ee-=ee&7;ee<32;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if((G&65535)!==(G>>>16^65535)){Z.msg="invalid stored block lengths",R.mode=me;break}if(R.length=G&65535,G=0,ee=0,R.mode=A,ie===s)break e;case A:R.mode=k;case k:if(pe=R.length,pe){if(pe>re&&(pe=re),pe>T&&(pe=T),pe===0)break e;e.arraySet(be,oe,p,pe,te),re-=pe,p+=pe,T-=pe,te+=pe,R.length-=pe;break}R.mode=$;break;case j:for(;ee<14;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(R.nlen=(G&31)+257,G>>>=5,ee-=5,R.ndist=(G&31)+1,G>>>=5,ee-=5,R.ncode=(G&15)+4,G>>>=4,ee-=4,R.nlen>286||R.ndist>30){Z.msg="too many length or distance symbols",R.mode=me;break}R.have=0,R.mode=N;case N:for(;R.have<R.ncode;){for(;ee<3;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}R.lens[gs[R.have++]]=G&7,G>>>=3,ee-=3}for(;R.have<19;)R.lens[gs[R.have++]]=0;if(R.lencode=R.lendyn,R.lenbits=7,yt={bits:R.lenbits},nt=i(a,R.lens,0,19,R.lencode,0,R.work,yt),R.lenbits=yt.bits,nt){Z.msg="invalid code lengths set",R.mode=me;break}R.have=0,R.mode=H;case H:for(;R.have<R.nlen+R.ndist;){for(;Le=R.lencode[G&(1<<R.lenbits)-1],xe=Le>>>24,Ue=Le>>>16&255,Je=Le&65535,!(xe<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(Je<16)G>>>=xe,ee-=xe,R.lens[R.have++]=Je;else{if(Je===16){for(dt=xe+2;ee<dt;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(G>>>=xe,ee-=xe,R.have===0){Z.msg="invalid bit length repeat",R.mode=me;break}Me=R.lens[R.have-1],pe=3+(G&3),G>>>=2,ee-=2}else if(Je===17){for(dt=xe+3;ee<dt;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}G>>>=xe,ee-=xe,Me=0,pe=3+(G&7),G>>>=3,ee-=3}else{for(dt=xe+7;ee<dt;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}G>>>=xe,ee-=xe,Me=0,pe=11+(G&127),G>>>=7,ee-=7}if(R.have+pe>R.nlen+R.ndist){Z.msg="invalid bit length repeat",R.mode=me;break}for(;pe--;)R.lens[R.have++]=Me}}if(R.mode===me)break;if(R.lens[256]===0){Z.msg="invalid code -- missing end-of-block",R.mode=me;break}if(R.lenbits=9,yt={bits:R.lenbits},nt=i(o,R.lens,0,R.nlen,R.lencode,0,R.work,yt),R.lenbits=yt.bits,nt){Z.msg="invalid literal/lengths set",R.mode=me;break}if(R.distbits=6,R.distcode=R.distdyn,yt={bits:R.distbits},nt=i(d,R.lens,R.nlen,R.ndist,R.distcode,0,R.work,yt),R.distbits=yt.bits,nt){Z.msg="invalid distances set",R.mode=me;break}if(R.mode=B,ie===s)break e;case B:R.mode=q;case q:if(re>=6&&T>=258){Z.next_out=te,Z.avail_out=T,Z.next_in=p,Z.avail_in=re,R.hold=G,R.bits=ee,r(Z,he),te=Z.next_out,be=Z.output,T=Z.avail_out,p=Z.next_in,oe=Z.input,re=Z.avail_in,G=R.hold,ee=R.bits,R.mode===$&&(R.back=-1);break}for(R.back=0;Le=R.lencode[G&(1<<R.lenbits)-1],xe=Le>>>24,Ue=Le>>>16&255,Je=Le&65535,!(xe<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(Ue&&(Ue&240)===0){for(Xe=xe,br=Ue,wr=Je;Le=R.lencode[wr+((G&(1<<Xe+br)-1)>>Xe)],xe=Le>>>24,Ue=Le>>>16&255,Je=Le&65535,!(Xe+xe<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}G>>>=Xe,ee-=Xe,R.back+=Xe}if(G>>>=xe,ee-=xe,R.back+=xe,R.length=Je,Ue===0){R.mode=J;break}if(Ue&32){R.back=-1,R.mode=$;break}if(Ue&64){Z.msg="invalid literal/length code",R.mode=me;break}R.extra=Ue&15,R.mode=L;case L:if(R.extra){for(dt=R.extra;ee<dt;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}R.length+=G&(1<<R.extra)-1,G>>>=R.extra,ee-=R.extra,R.back+=R.extra}R.was=R.length,R.mode=D;case D:for(;Le=R.distcode[G&(1<<R.distbits)-1],xe=Le>>>24,Ue=Le>>>16&255,Je=Le&65535,!(xe<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if((Ue&240)===0){for(Xe=xe,br=Ue,wr=Je;Le=R.distcode[wr+((G&(1<<Xe+br)-1)>>Xe)],xe=Le>>>24,Ue=Le>>>16&255,Je=Le&65535,!(Xe+xe<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}G>>>=Xe,ee-=Xe,R.back+=Xe}if(G>>>=xe,ee-=xe,R.back+=xe,Ue&64){Z.msg="invalid distance code",R.mode=me;break}R.offset=Je,R.extra=Ue&15,R.mode=F;case F:if(R.extra){for(dt=R.extra;ee<dt;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}R.offset+=G&(1<<R.extra)-1,G>>>=R.extra,ee-=R.extra,R.back+=R.extra}if(R.offset>R.dmax){Z.msg="invalid distance too far back",R.mode=me;break}R.mode=K;case K:if(T===0)break e;if(pe=he-T,R.offset>pe){if(pe=R.offset-pe,pe>R.whave&&R.sane){Z.msg="invalid distance too far back",R.mode=me;break}pe>R.wnext?(pe-=R.wnext,Ae=R.wsize-pe):Ae=R.wnext-pe,pe>R.length&&(pe=R.length),vt=R.window}else vt=be,Ae=te-R.offset,pe=R.length;pe>T&&(pe=T),T-=pe,R.length-=pe;do be[te++]=vt[Ae++];while(--pe);R.length===0&&(R.mode=q);break;case J:if(T===0)break e;be[te++]=R.length,T--,R.mode=q;break;case ae:if(R.wrap){for(;ee<32;){if(re===0)break e;re--,G|=oe[p++]<<ee,ee+=8}if(he-=T,Z.total_out+=he,R.total+=he,he&&(Z.adler=R.check=R.flags?n(R.check,be,he,te-he):t(R.check,be,he,te-he)),he=T,(R.flags?G:$e(G))!==R.check){Z.msg="incorrect data check",R.mode=me;break}G=0,ee=0}R.mode=ue;case ue:if(R.wrap&&R.flags){for(;ee<32;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(G!==(R.total&4294967295)){Z.msg="incorrect length check",R.mode=me;break}G=0,ee=0}R.mode=ve;case ve:nt=c;break e;case me:nt=m;break e;case we:return g;case Ce:default:return h}return Z.next_out=te,Z.avail_out=T,Z.next_in=p,Z.avail_in=re,R.hold=G,R.bits=ee,(R.wsize||he!==Z.avail_out&&R.mode<me&&(R.mode<ae||ie!==f))&&Oe(Z,Z.output,Z.next_out,he-Z.avail_out),_e-=Z.avail_in,he-=Z.avail_out,Z.total_in+=_e,Z.total_out+=he,R.total+=he,R.wrap&&he&&(Z.adler=R.check=R.flags?n(R.check,be,he,Z.next_out-he):t(R.check,be,he,Z.next_out-he)),Z.data_type=R.bits+(R.last?64:0)+(R.mode===$?128:0)+(R.mode===B||R.mode===A?256:0),(_e===0&&he===0||ie===f)&&nt===l&&(nt=u),nt}function ne(Z){if(!Z||!Z.state)return h;var ie=Z.state;return ie.window&&(ie.window=null),Z.state=null,l}function se(Z,ie){var R;return!Z||!Z.state||(R=Z.state,(R.wrap&2)===0)?h:(R.head=ie,ie.done=!1,l)}function fe(Z,ie){var R=ie.length,oe,be,p;return!Z||!Z.state||(oe=Z.state,oe.wrap!==0&&oe.mode!==I)?h:oe.mode===I&&(be=1,be=t(be,ie,R,0),be!==oe.check)?m:(p=Oe(Z,ie,R,R),p?(oe.mode=we,g):(oe.havedict=1,l))}return it.inflateReset=Ne,it.inflateReset2=Ye,it.inflateResetKeep=qe,it.inflateInit=Q,it.inflateInit2=Y,it.inflate=C,it.inflateEnd=ne,it.inflateGetHeader=se,it.inflateSetDictionary=fe,it.inflateInfo="pako inflate (from Nodeca project)",it}var Mn,js;function _m(){return js||(js=1,Mn={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}),Mn}function bm(){const{useDynamicConfig:e}=wt(),{configValue:t,isDynamicConfigLoading:n}=e(At.creditAgentEnablement),r=He.getSignedInUser()?.userEmail;return{isAllowed:ce.useMemo(()=>{const a=Array.isArray(t?.allowedUserEmails)?t.allowedUserEmails:[];return r!=null&&a.includes(r)},[t,r]),isLoading:n}}function St(){const{isAllowed:e}=bm();return e?Op:Tp}const wm={overlayWidth:new at(100,100,50)};function Ls(){const e=Be(),t=We(),n=lr(),r=Bt(),i=St(),a=Se(V=>Lf(V)),o=a.uiState.selectedCustomerTenantId,d=ce.useMemo(()=>o?a.customers.find(V=>V.tenantId===o):void 0,[a.customers,o]),f=Se(V=>o?qf(V.aiAccountantCustomerState,V.userState,o):[]),v=a.customerViewStateByTenantId[o],s=v?.jobsFetchStatus??{fetchState:"Not-Started"},l=v?.jobsPageToken!=null;ce.useEffect(()=>{a.fetchState==="Completed"?t(xt(!1)):(a.fetchState==="Not-Started"||a.fetchState==="Error")&&t(vs())},[a.fetchState]);const c=V=>{const S=kt(V),I=Ft(V);Fe.trackCockpitTabClicked(I),e(`../../${S}`,{replace:!0})},y=(V,S,I,$)=>{t(Dt([V.tenantId])),t(an(S,I,$))},h=(V,S,I)=>{t(an(V,S,I))},m=(V,S)=>{t(Dt(a.unonboardedTenantIds)),t(an("retrain",V,S))},g=V=>{const S=a.selectedTenantIds,I=S.includes(V)?S.filter($=>$!==V):[...S,V];t(Dt(I))},u=V=>{if(V.length===0)return;const S=a.selectedTenantIds,I=new Set(S);if(V.every(z=>I.has(z))){const z=new Set(V);t(Dt(S.filter(X=>!z.has(X))))}else{const z=Array.from(new Set([...S,...V]));t(Dt(z))}},_=()=>{t(Dt([]))},E=V=>{t(Df(V.companyId,V.tenantId))},w=V=>{V==="aiAccountant"&&t(vs())},b=(V,S)=>{t(Jt({sortKey:V,sortOrder:S}))},x=V=>{t(Jt({selectedCustomerTenantId:V.tenantId})),t(sn(V.tenantId))},O=()=>{t(Jt({selectedCustomerTenantId:""}))},P=V=>{t(Jt({filterText:V}))},M=(V,S)=>{t(Jt({filters:S}))},W=()=>{o&&t(sn(o,!0))};return U.jsxs(U.Fragment,{children:[U.jsx(Ap,{headerData:{allTabOptions:i,selectedTabOption:Et("aiAccountant")},headerActions:{onTabChange:c},aiAccountantPageData:{aiAccountantView:a},aiAccountantPageActions:{onAction:y,onBulkAction:h,onCancelOnboarding:E,onClearSelection:_,onCockpitReloadData:w,onColumnSortConfigChanged:b,onCustomerSelected:x,onEvaluateAll:m,onFilterTextChanged:P,onFiltersChange:M,onToggleAllVisible:u,onToggleTenantSelection:g}}),U.jsx(dr,{anchor:"right",open:d!=null,PaperProps:{style:{width:wm.overlayWidth.valuePercentage(n),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:r.colors.black,opacity:.75,cursor:"pointer"}}},onClose:O,children:d!=null&&U.jsx(rd,{customer:d,hasMoreJobs:l,jobs:f,jobsFetchStatus:s,onAction:y,onCancelOnboarding:E,onClose:O,onLoadMoreJobs:W})})]})}function Em(){const{tenantId:e=""}=ot(),t=Be(),n=We(),r=Se(c=>uh(c.aiAccountantCustomerState,c.userState)),i=Se(c=>Lf(c)),a=r.find(c=>c.tenantId===e),o=i.customerViewStateByTenantId[e],d=Se(c=>qf(c.aiAccountantCustomerState,c.userState,e));if(ce.useEffect(()=>{n(sn(e))},[e,n]),a==null)return null;const f=(c,y,h,m)=>{n(Dt([c.tenantId])),n(an(y,h,m))},v=c=>{n(Df(c.companyId,c.tenantId))},s=()=>{t("../")},l=()=>{n(sn(e,!0))};return U.jsx(rd,{customer:a,hasMoreJobs:o?.jobsPageToken!=null,jobs:d,jobsFetchStatus:o?.jobsFetchStatus??{fetchState:"Not-Started"},onAction:f,onCancelOnboarding:v,onClose:s,onLoadMoreJobs:l})}const fd=(e,t)=>{const n=[...e??[]];return n.push(t),n},Sm=e=>{const t=[...e??[]];return{poppedPathname:t.pop(),newStack:t}},Rm=(e=2)=>{let t="../";for(let n=0;n<e;n++)t=`${t}../`;return t},ke=({state:e,element:t})=>He.isSignedIn()===!0?U.jsx(U.Fragment,{children:t}):U.jsx(ir,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function Om(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/",element:U.jsx(ke,{element:U.jsx(Ls,{})})}),U.jsx(Te,{path:"/detail/:tenantId",element:U.jsx(ke,{element:U.jsx(Em,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(ke,{element:U.jsx(Ls,{})})})]})}const Ut=()=>{const[e,t]=ud(),[n,r]=ce.useState(),i=ce.useRef(!1);return ce.useEffect(()=>{if(i.current===!0||!(e.has("thread_id")||e.has("entity_type")||e.has("company_id")))return;const o=Ip(e);o!=null&&r(o);const d=new URLSearchParams(e);d.delete("thread_id"),d.delete("entity_type"),d.delete("company_id"),t(d,{replace:!0}),i.current=!0},[e,t]),n},Tm={overlayWidth:new at(100,100,50)},{common:{strings:qs}}=fr.getLocalizedStrings();function Am(e,t){return{headerActions:{onTabChange:n=>{const r=kt(n),i=Ft(n);Fe.trackCockpitTabClicked(i),t.navigate(`../../${r}`,{replace:!0})},filterActions:{onFilterTextChanged:(n,r)=>{e(Er({uiState:{filterText:r}}))},onFiltersChange:(n,r)=>{r.categories!=null&&r.categoryCombinationOperator!=null&&Fe.trackHealthMonitorFiltersApplied({filterSelection:{condition:r.categories.map(i=>i.matchingOperator).join(qs.comma),logic:r.categoryCombinationOperator,parameter:r.categories.map(i=>i.field).join(qs.comma)}}),e(Er({uiState:{filters:r}}))}}},healthPageActions:{onRowClick:n=>{e(Mf(n))},onColumnSortConfigChanged:(n,r)=>{e(Er({uiState:{sortKey:n,sortOrder:r}}))},onCockpitReloadData:n=>{n==="healthMonitor"&&e(Nf())},onFiltersChange:n=>{e(Er({uiState:{filters:n}}))}}}}function Im(e,t){return{healthPageData:{healthView:t.healthView,managementView:t.managementView,mixpanelUrl:t.mixpanelHMUrl}}}const xm=ze(Im,Am)(Pp);function Fn({isDrawerOpen:e}){const t=Be(),n=We(),r=Bt(),i=lr(),{companyId:a}=ot(),[o,d]=ud(),[f,v]=ce.useState(!1),s=Ut(),l=St(),c=Se(b=>ch(b)),y=Se(b=>ur(b)),{additionalChurnFactors:h}=Se(b=>lh(b)),{selectedCompanyDetail:m,selectedCompanyId:g,localFormDataAndStatusByCompanyId:u}=c,_=Se(b=>b.companyViewState.zeniUsers.fetchState),E=Se(b=>b.companyHealthMetricConfigViewState);if(ce.useEffect(()=>{const b=x=>x==="Not-Started"||x==="Error";c.fetchState==="Completed"?n(xt(!1)):b(c.fetchState)&&(n(Nf()),b(_)&&n(Ct()),b(E.fetchState)&&n(fh()))},[c.fetchState,E.fetchState]),ce.useEffect(()=>{a!=null&&c.fetchState==="Completed"&&o.has("utm_source")===!0&&(n(Mf(a)),m!=null&&(xp(),Fe.trackCockpitHealthMonitorNotificationAlertClicked({companyId:m.companyInfo.companyId,companyName:m.companyInfo.name,churnProbability:m.companyHealthMetric.churnProbabilityPercentage??null}),v(!0),o.delete("utm_source"),d(o)))},[c.fetchState,m?.companyInfo.companyId,m?.companyInfo.name]),He.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return U.jsxs(U.Fragment,{children:[e===!0||g!=null&&m!=null?U.jsx(dr,{anchor:"right",open:g!=null,PaperProps:{style:{width:Tm.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:r.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>n(ys()),children:U.jsx(Cp,{roomId:`cockpit_${g}`,autoConnect:!0,children:U.jsx(kp,{onSaveClick:()=>{g!=null&&n(hh(g))},onSaveChangesToLocalStore:b=>{c.selectedCompanyId!=null&&n(dh({companyId:c.selectedCompanyId,updatedLocalData:b}))},localData:u?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:c,onCloseDrawer:()=>n(ys()),analytics:Fe,urlSource:f,additionalChurnFactorsOptions:h})})}):null,U.jsx(xm,{headerData:{allTabOptions:l,selectedTabOption:Et("healthMonitor")},initialOpenThreadRequest:s??void 0,healthView:c,managementView:y,navigate:t,mixpanelHMUrl:gn.mixpanelHMUrl})]})}function Cm(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/companies/:companyId",element:U.jsx(ke,{element:U.jsx(Fn,{isDrawerOpen:!0})})}),U.jsx(Te,{path:"/",element:U.jsx(ke,{element:U.jsx(Fn,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(ke,{element:U.jsx(Fn,{})})})]})}const km={drawerLeftMargin:new at(0,0,240)};function mr(e){const{isOpen:t,drawerLeftMargin:n,children:r,onClose:i}=e,a=lr(),o=n?.valuePx(a)??km.drawerLeftMargin.valuePx(a),d=Bt();return U.jsx(dr,{anchor:"right",open:t,PaperProps:{style:{width:`calc(100% - ${o})`}},slotProps:{backdrop:{style:{backgroundColor:d.colors.black,opacity:.8,cursor:"pointer"}}},onClose:i,children:r})}const Pm=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?U.jsx(jm,{children:U.jsx(vn,{size:"ExtraLarge",start:!0})}):null,jm=tt.div`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CreditAgentRoutes-B5J6cqJa.js","assets/liveblocks-DSQu8EKB.js","assets/sentry-BMp6uTqA.js","assets/core-BtClLHbn.js","assets/recharts-DHFG8xJK.js","assets/zeni-epic-state-BvLKTW7A.js","assets/index-BwOeo2Vd.js","assets/mui-MnEZql1W.js","assets/analytics-CR-8MP1n.js","assets/utils-YzwqQ2QE.js","assets/index-Bd7ri422.css","assets/analyticsHelper-DF-TdxkW.js","assets/empty-BNecHEa_.js","assets/index-CCM2ObO_.js","assets/url-BWCIj0l3.js","assets/index-B1iaqXdt.js"])))=>i.map(i=>d[i]);
2
+ import{Sn as Lf,So as qf,lQ as xt,f5 as vs,Sp as Dt,fe as an,f3 as Df,Sq as Jt,fa as sn,Sr as uh,Ss as ch,St as ur,Su as lh,k3 as Nf,lS as Ct,k0 as fh,k7 as Mf,Sv as ys,k9 as dh,ka as hh,Sw as Er,Sx as cr,jy as ph,Sy as pn,Sz as Uo,dj as mh,h6 as Vo,h3 as un,hb as Mt,h9 as gh,SA as Ff,SB as Bf,ko as vh,kl as yh,SC as _h,kz as bh,ku as _s,kr as wh,kg as Eh,SD as Sh,eN as Rh,dt as Oh,m2 as Uf,SE as Th,be as on,kd as bs,ki as Ah,AI as Vf,lR as mn,SF as $f,SG as pt,md as cn,m8 as zf,kT as $o,SH as Ih,mg as xh,H as et,bm as zo,SI as Ch,jv as kh,SJ as Ph,SK as Gf,SL as jh,z0 as ws,yy as Lh,SM as qh,yE as In,SN as Dh,yG as Nh,SO as Tt,yv as Mh,d7 as Fh,lV as Hf,lW as Zf,lU as Go,lT as Ho,lX as Bh,SP as Uh,z3 as Vh,SQ as $h,yM as zh,yZ as Gh,SR as Hh,yQ as Zh,SS as Wh,ST as Kt,SU as Zo,SV as Yh,SW as Jh,su as Kh,sA as Wf,SX as Yf,j0 as Xh,Rs as Jf,SY as Qh,Rm as ep,SZ as tp,S_ as rp,sD as np,S$ as ip,Rx as ap,Rl as op,CF as Kf,T0 as xn,T1 as Xf,NW as Wo,NI as sp,NZ as Qf,NL as up,T2 as cp,NQ as lp,NC as fp,NF as dp,T3 as hp,O1 as pp,NT as mp,bp as gp,bc as vp,T4 as yp,T5 as Gt,T6 as _p,T7 as bp,T8 as wp,kH as No,kD as Ep,kN as Sp,kQ as Es,bd as ed}from"./zeni-epic-state-BvLKTW7A.js";import{j as U}from"./liveblocks-DSQu8EKB.js";import{a as ce,p as ye,d as td,c as Yo,g as Rp}from"./sentry-BMp6uTqA.js";import{m as wt,v as At,z as He,S as Op,p as Tp,c as lr,e as Ap,C as Et,R as rd,f as at,g as Fe,i as kt,j as Ft,l as Ip,u as xp,X as Cp,I as kp,r as gn,L as Pp,q as fr,h as vn,n as Nt,s as jp,t as Lp,F as yn,w as qp,B as Dp,x as Cn,U as Np,T as nd,P as Mp,A as id,D as ad,E as Mo,G as Fp,W as Bp,K as Up,M as od,O as Vp,Q as $p,V as zp,Y as Gp,a0 as Hp,a1 as Zp,a2 as Wp,a3 as Yp,a4 as Jp,a5 as Kp,a6 as Xp,a7 as Qp,a8 as sd}from"./index-BwOeo2Vd.js";import{f as em}from"./analyticsHelper-DF-TdxkW.js";import{i as Be,n as We,g as Se,o as ot,N as ir,k as gt,l as Te,p as ud,h as ze,u as Jo,j as Fo}from"./core-BtClLHbn.js";import{u as Bt,D as dr,n as tt,S as Zt}from"./mui-MnEZql1W.js";import{a as Ze,b as tm,c as rm,d as nm,e as Ko,f as im,g as am,h as om,i as Wt,j as sm,k as or,l as _n,m as um,n as hr,o as cm}from"./utils-YzwqQ2QE.js";import{r as Xo}from"./empty-BNecHEa_.js";import{r as pr,a as lm}from"./index-CCM2ObO_.js";import{r as fm}from"./index-B1iaqXdt.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="19027126-aa76-4c2b-aa26-501c2e61493c",e._sentryDebugIdIdentifier="sentry-dbid-19027126-aa76-4c2b-aa26-501c2e61493c")}catch{}})();var kn={},Ss;function bn(){return Ss||(Ss=1,(function(e){var t=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function n(a,o){return Object.prototype.hasOwnProperty.call(a,o)}e.assign=function(a){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var d=o.shift();if(d){if(typeof d!="object")throw new TypeError(d+"must be non-object");for(var f in d)n(d,f)&&(a[f]=d[f])}}return a},e.shrinkBuf=function(a,o){return a.length===o?a:a.subarray?a.subarray(0,o):(a.length=o,a)};var r={arraySet:function(a,o,d,f,v){if(o.subarray&&a.subarray){a.set(o.subarray(d,d+f),v);return}for(var s=0;s<f;s++)a[v+s]=o[d+s]},flattenChunks:function(a){var o,d,f,v,s,l;for(f=0,o=0,d=a.length;o<d;o++)f+=a[o].length;for(l=new Uint8Array(f),v=0,o=0,d=a.length;o<d;o++)s=a[o],l.set(s,v),v+=s.length;return l}},i={arraySet:function(a,o,d,f,v){for(var s=0;s<f;s++)a[v+s]=o[d+s]},flattenChunks:function(a){return[].concat.apply([],a)}};e.setTyped=function(a){a?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,r)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,i))},e.setTyped(t)})(kn)),kn}var ut={},Pt={},Rs;function dm(){if(Rs)return Pt;Rs=1;var e=bn(),t=4,n=0,r=1,i=2;function a(C){for(var ne=C.length;--ne>=0;)C[ne]=0}var o=0,d=1,f=2,v=3,s=258,l=29,c=256,y=c+1+l,h=30,m=19,g=2*y+1,u=15,_=16,E=7,w=256,b=16,x=17,O=18,P=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],M=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],W=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],V=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S=512,I=new Array((y+2)*2);a(I);var $=new Array(h*2);a($);var z=new Array(S);a(z);var X=new Array(s-v+1);a(X);var A=new Array(l);a(A);var k=new Array(h);a(k);function j(C,ne,se,fe,Z){this.static_tree=C,this.extra_bits=ne,this.extra_base=se,this.elems=fe,this.max_length=Z,this.has_stree=C&&C.length}var N,H,B;function q(C,ne){this.dyn_tree=C,this.max_code=0,this.stat_desc=ne}function L(C){return C<256?z[C]:z[256+(C>>>7)]}function D(C,ne){C.pending_buf[C.pending++]=ne&255,C.pending_buf[C.pending++]=ne>>>8&255}function F(C,ne,se){C.bi_valid>_-se?(C.bi_buf|=ne<<C.bi_valid&65535,D(C,C.bi_buf),C.bi_buf=ne>>_-C.bi_valid,C.bi_valid+=se-_):(C.bi_buf|=ne<<C.bi_valid&65535,C.bi_valid+=se)}function K(C,ne,se){F(C,se[ne*2],se[ne*2+1])}function J(C,ne){var se=0;do se|=C&1,C>>>=1,se<<=1;while(--ne>0);return se>>>1}function ae(C){C.bi_valid===16?(D(C,C.bi_buf),C.bi_buf=0,C.bi_valid=0):C.bi_valid>=8&&(C.pending_buf[C.pending++]=C.bi_buf&255,C.bi_buf>>=8,C.bi_valid-=8)}function ue(C,ne){var se=ne.dyn_tree,fe=ne.max_code,Z=ne.stat_desc.static_tree,ie=ne.stat_desc.has_stree,R=ne.stat_desc.extra_bits,oe=ne.stat_desc.extra_base,be=ne.stat_desc.max_length,p,te,re,T,G,ee,_e=0;for(T=0;T<=u;T++)C.bl_count[T]=0;for(se[C.heap[C.heap_max]*2+1]=0,p=C.heap_max+1;p<g;p++)te=C.heap[p],T=se[se[te*2+1]*2+1]+1,T>be&&(T=be,_e++),se[te*2+1]=T,!(te>fe)&&(C.bl_count[T]++,G=0,te>=oe&&(G=R[te-oe]),ee=se[te*2],C.opt_len+=ee*(T+G),ie&&(C.static_len+=ee*(Z[te*2+1]+G)));if(_e!==0){do{for(T=be-1;C.bl_count[T]===0;)T--;C.bl_count[T]--,C.bl_count[T+1]+=2,C.bl_count[be]--,_e-=2}while(_e>0);for(T=be;T!==0;T--)for(te=C.bl_count[T];te!==0;)re=C.heap[--p],!(re>fe)&&(se[re*2+1]!==T&&(C.opt_len+=(T-se[re*2+1])*se[re*2],se[re*2+1]=T),te--)}}function ve(C,ne,se){var fe=new Array(u+1),Z=0,ie,R;for(ie=1;ie<=u;ie++)fe[ie]=Z=Z+se[ie-1]<<1;for(R=0;R<=ne;R++){var oe=C[R*2+1];oe!==0&&(C[R*2]=J(fe[oe]++,oe))}}function me(){var C,ne,se,fe,Z,ie=new Array(u+1);for(se=0,fe=0;fe<l-1;fe++)for(A[fe]=se,C=0;C<1<<P[fe];C++)X[se++]=fe;for(X[se-1]=fe,Z=0,fe=0;fe<16;fe++)for(k[fe]=Z,C=0;C<1<<M[fe];C++)z[Z++]=fe;for(Z>>=7;fe<h;fe++)for(k[fe]=Z<<7,C=0;C<1<<M[fe]-7;C++)z[256+Z++]=fe;for(ne=0;ne<=u;ne++)ie[ne]=0;for(C=0;C<=143;)I[C*2+1]=8,C++,ie[8]++;for(;C<=255;)I[C*2+1]=9,C++,ie[9]++;for(;C<=279;)I[C*2+1]=7,C++,ie[7]++;for(;C<=287;)I[C*2+1]=8,C++,ie[8]++;for(ve(I,y+1,ie),C=0;C<h;C++)$[C*2+1]=5,$[C*2]=J(C,5);N=new j(I,P,c+1,y,u),H=new j($,M,0,h,u),B=new j(new Array(0),W,0,m,E)}function we(C){var ne;for(ne=0;ne<y;ne++)C.dyn_ltree[ne*2]=0;for(ne=0;ne<h;ne++)C.dyn_dtree[ne*2]=0;for(ne=0;ne<m;ne++)C.bl_tree[ne*2]=0;C.dyn_ltree[w*2]=1,C.opt_len=C.static_len=0,C.last_lit=C.matches=0}function Ce(C){C.bi_valid>8?D(C,C.bi_buf):C.bi_valid>0&&(C.pending_buf[C.pending++]=C.bi_buf),C.bi_buf=0,C.bi_valid=0}function Pe(C,ne,se,fe){Ce(C),D(C,se),D(C,~se),e.arraySet(C.pending_buf,C.window,ne,se,C.pending),C.pending+=se}function je(C,ne,se,fe){var Z=ne*2,ie=se*2;return C[Z]<C[ie]||C[Z]===C[ie]&&fe[ne]<=fe[se]}function Ie(C,ne,se){for(var fe=C.heap[se],Z=se<<1;Z<=C.heap_len&&(Z<C.heap_len&&je(ne,C.heap[Z+1],C.heap[Z],C.depth)&&Z++,!je(ne,fe,C.heap[Z],C.depth));)C.heap[se]=C.heap[Z],se=Z,Z<<=1;C.heap[se]=fe}function Ee(C,ne,se){var fe,Z,ie=0,R,oe;if(C.last_lit!==0)do fe=C.pending_buf[C.d_buf+ie*2]<<8|C.pending_buf[C.d_buf+ie*2+1],Z=C.pending_buf[C.l_buf+ie],ie++,fe===0?K(C,Z,ne):(R=X[Z],K(C,R+c+1,ne),oe=P[R],oe!==0&&(Z-=A[R],F(C,Z,oe)),fe--,R=L(fe),K(C,R,se),oe=M[R],oe!==0&&(fe-=k[R],F(C,fe,oe)));while(ie<C.last_lit);K(C,w,ne)}function $e(C,ne){var se=ne.dyn_tree,fe=ne.stat_desc.static_tree,Z=ne.stat_desc.has_stree,ie=ne.stat_desc.elems,R,oe,be=-1,p;for(C.heap_len=0,C.heap_max=g,R=0;R<ie;R++)se[R*2]!==0?(C.heap[++C.heap_len]=be=R,C.depth[R]=0):se[R*2+1]=0;for(;C.heap_len<2;)p=C.heap[++C.heap_len]=be<2?++be:0,se[p*2]=1,C.depth[p]=0,C.opt_len--,Z&&(C.static_len-=fe[p*2+1]);for(ne.max_code=be,R=C.heap_len>>1;R>=1;R--)Ie(C,se,R);p=ie;do R=C.heap[1],C.heap[1]=C.heap[C.heap_len--],Ie(C,se,1),oe=C.heap[1],C.heap[--C.heap_max]=R,C.heap[--C.heap_max]=oe,se[p*2]=se[R*2]+se[oe*2],C.depth[p]=(C.depth[R]>=C.depth[oe]?C.depth[R]:C.depth[oe])+1,se[R*2+1]=se[oe*2+1]=p,C.heap[1]=p++,Ie(C,se,1);while(C.heap_len>=2);C.heap[--C.heap_max]=C.heap[1],ue(C,ne),ve(se,be,C.bl_count)}function st(C,ne,se){var fe,Z=-1,ie,R=ne[1],oe=0,be=7,p=4;for(R===0&&(be=138,p=3),ne[(se+1)*2+1]=65535,fe=0;fe<=se;fe++)ie=R,R=ne[(fe+1)*2+1],!(++oe<be&&ie===R)&&(oe<p?C.bl_tree[ie*2]+=oe:ie!==0?(ie!==Z&&C.bl_tree[ie*2]++,C.bl_tree[b*2]++):oe<=10?C.bl_tree[x*2]++:C.bl_tree[O*2]++,oe=0,Z=ie,R===0?(be=138,p=3):ie===R?(be=6,p=3):(be=7,p=4))}function qe(C,ne,se){var fe,Z=-1,ie,R=ne[1],oe=0,be=7,p=4;for(R===0&&(be=138,p=3),fe=0;fe<=se;fe++)if(ie=R,R=ne[(fe+1)*2+1],!(++oe<be&&ie===R)){if(oe<p)do K(C,ie,C.bl_tree);while(--oe!==0);else ie!==0?(ie!==Z&&(K(C,ie,C.bl_tree),oe--),K(C,b,C.bl_tree),F(C,oe-3,2)):oe<=10?(K(C,x,C.bl_tree),F(C,oe-3,3)):(K(C,O,C.bl_tree),F(C,oe-11,7));oe=0,Z=ie,R===0?(be=138,p=3):ie===R?(be=6,p=3):(be=7,p=4)}}function Ne(C){var ne;for(st(C,C.dyn_ltree,C.l_desc.max_code),st(C,C.dyn_dtree,C.d_desc.max_code),$e(C,C.bl_desc),ne=m-1;ne>=3&&C.bl_tree[V[ne]*2+1]===0;ne--);return C.opt_len+=3*(ne+1)+5+5+4,ne}function Ye(C,ne,se,fe){var Z;for(F(C,ne-257,5),F(C,se-1,5),F(C,fe-4,4),Z=0;Z<fe;Z++)F(C,C.bl_tree[V[Z]*2+1],3);qe(C,C.dyn_ltree,ne-1),qe(C,C.dyn_dtree,se-1)}function Y(C){var ne=4093624447,se;for(se=0;se<=31;se++,ne>>>=1)if(ne&1&&C.dyn_ltree[se*2]!==0)return n;if(C.dyn_ltree[18]!==0||C.dyn_ltree[20]!==0||C.dyn_ltree[26]!==0)return r;for(se=32;se<c;se++)if(C.dyn_ltree[se*2]!==0)return r;return n}var Q=!1;function le(C){Q||(me(),Q=!0),C.l_desc=new q(C.dyn_ltree,N),C.d_desc=new q(C.dyn_dtree,H),C.bl_desc=new q(C.bl_tree,B),C.bi_buf=0,C.bi_valid=0,we(C)}function ge(C,ne,se,fe){F(C,(o<<1)+(fe?1:0),3),Pe(C,ne,se)}function de(C){F(C,d<<1,3),K(C,w,I),ae(C)}function Re(C,ne,se,fe){var Z,ie,R=0;C.level>0?(C.strm.data_type===i&&(C.strm.data_type=Y(C)),$e(C,C.l_desc),$e(C,C.d_desc),R=Ne(C),Z=C.opt_len+3+7>>>3,ie=C.static_len+3+7>>>3,ie<=Z&&(Z=ie)):Z=ie=se+5,se+4<=Z&&ne!==-1?ge(C,ne,se,fe):C.strategy===t||ie===Z?(F(C,(d<<1)+(fe?1:0),3),Ee(C,I,$)):(F(C,(f<<1)+(fe?1:0),3),Ye(C,C.l_desc.max_code+1,C.d_desc.max_code+1,R+1),Ee(C,C.dyn_ltree,C.dyn_dtree)),we(C),fe&&Ce(C)}function Oe(C,ne,se){return C.pending_buf[C.d_buf+C.last_lit*2]=ne>>>8&255,C.pending_buf[C.d_buf+C.last_lit*2+1]=ne&255,C.pending_buf[C.l_buf+C.last_lit]=se&255,C.last_lit++,ne===0?C.dyn_ltree[se*2]++:(C.matches++,ne--,C.dyn_ltree[(X[se]+c+1)*2]++,C.dyn_dtree[L(ne)*2]++),C.last_lit===C.lit_bufsize-1}return Pt._tr_init=le,Pt._tr_stored_block=ge,Pt._tr_flush_block=Re,Pt._tr_tally=Oe,Pt._tr_align=de,Pt}var Pn,Os;function cd(){if(Os)return Pn;Os=1;function e(t,n,r,i){for(var a=t&65535|0,o=t>>>16&65535|0,d=0;r!==0;){d=r>2e3?2e3:r,r-=d;do a=a+n[i++]|0,o=o+a|0;while(--d);a%=65521,o%=65521}return a|o<<16|0}return Pn=e,Pn}var jn,Ts;function ld(){if(Ts)return jn;Ts=1;function e(){for(var r,i=[],a=0;a<256;a++){r=a;for(var o=0;o<8;o++)r=r&1?3988292384^r>>>1:r>>>1;i[a]=r}return i}var t=e();function n(r,i,a,o){var d=t,f=o+a;r^=-1;for(var v=o;v<f;v++)r=r>>>8^d[(r^i[v])&255];return r^-1}return jn=n,jn}var Ln,As;function hm(){return As||(As=1,Ln={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}),Ln}var Is;function pm(){if(Is)return ut;Is=1;var e=bn(),t=dm(),n=cd(),r=ld(),i=hm(),a=0,o=1,d=3,f=4,v=5,s=0,l=1,c=-2,y=-3,h=-5,m=-1,g=1,u=2,_=3,E=4,w=0,b=2,x=8,O=9,P=15,M=8,W=29,V=256,S=V+1+W,I=30,$=19,z=2*S+1,X=15,A=3,k=258,j=k+A+1,N=32,H=42,B=69,q=73,L=91,D=103,F=113,K=666,J=1,ae=2,ue=3,ve=4,me=3;function we(p,te){return p.msg=i[te],te}function Ce(p){return(p<<1)-(p>4?9:0)}function Pe(p){for(var te=p.length;--te>=0;)p[te]=0}function je(p){var te=p.state,re=te.pending;re>p.avail_out&&(re=p.avail_out),re!==0&&(e.arraySet(p.output,te.pending_buf,te.pending_out,re,p.next_out),p.next_out+=re,te.pending_out+=re,p.total_out+=re,p.avail_out-=re,te.pending-=re,te.pending===0&&(te.pending_out=0))}function Ie(p,te){t._tr_flush_block(p,p.block_start>=0?p.block_start:-1,p.strstart-p.block_start,te),p.block_start=p.strstart,je(p.strm)}function Ee(p,te){p.pending_buf[p.pending++]=te}function $e(p,te){p.pending_buf[p.pending++]=te>>>8&255,p.pending_buf[p.pending++]=te&255}function st(p,te,re,T){var G=p.avail_in;return G>T&&(G=T),G===0?0:(p.avail_in-=G,e.arraySet(te,p.input,p.next_in,G,re),p.state.wrap===1?p.adler=n(p.adler,te,G,re):p.state.wrap===2&&(p.adler=r(p.adler,te,G,re)),p.next_in+=G,p.total_in+=G,G)}function qe(p,te){var re=p.max_chain_length,T=p.strstart,G,ee,_e=p.prev_length,he=p.nice_match,pe=p.strstart>p.w_size-j?p.strstart-(p.w_size-j):0,Ae=p.window,vt=p.w_mask,Le=p.prev,xe=p.strstart+k,Ue=Ae[T+_e-1],Je=Ae[T+_e];p.prev_length>=p.good_match&&(re>>=2),he>p.lookahead&&(he=p.lookahead);do if(G=te,!(Ae[G+_e]!==Je||Ae[G+_e-1]!==Ue||Ae[G]!==Ae[T]||Ae[++G]!==Ae[T+1])){T+=2,G++;do;while(Ae[++T]===Ae[++G]&&Ae[++T]===Ae[++G]&&Ae[++T]===Ae[++G]&&Ae[++T]===Ae[++G]&&Ae[++T]===Ae[++G]&&Ae[++T]===Ae[++G]&&Ae[++T]===Ae[++G]&&Ae[++T]===Ae[++G]&&T<xe);if(ee=k-(xe-T),T=xe-k,ee>_e){if(p.match_start=te,_e=ee,ee>=he)break;Ue=Ae[T+_e-1],Je=Ae[T+_e]}}while((te=Le[te&vt])>pe&&--re!==0);return _e<=p.lookahead?_e:p.lookahead}function Ne(p){var te=p.w_size,re,T,G,ee,_e;do{if(ee=p.window_size-p.lookahead-p.strstart,p.strstart>=te+(te-j)){e.arraySet(p.window,p.window,te,te,0),p.match_start-=te,p.strstart-=te,p.block_start-=te,T=p.hash_size,re=T;do G=p.head[--re],p.head[re]=G>=te?G-te:0;while(--T);T=te,re=T;do G=p.prev[--re],p.prev[re]=G>=te?G-te:0;while(--T);ee+=te}if(p.strm.avail_in===0)break;if(T=st(p.strm,p.window,p.strstart+p.lookahead,ee),p.lookahead+=T,p.lookahead+p.insert>=A)for(_e=p.strstart-p.insert,p.ins_h=p.window[_e],p.ins_h=(p.ins_h<<p.hash_shift^p.window[_e+1])&p.hash_mask;p.insert&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[_e+A-1])&p.hash_mask,p.prev[_e&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=_e,_e++,p.insert--,!(p.lookahead+p.insert<A)););}while(p.lookahead<j&&p.strm.avail_in!==0)}function Ye(p,te){var re=65535;for(re>p.pending_buf_size-5&&(re=p.pending_buf_size-5);;){if(p.lookahead<=1){if(Ne(p),p.lookahead===0&&te===a)return J;if(p.lookahead===0)break}p.strstart+=p.lookahead,p.lookahead=0;var T=p.block_start+re;if((p.strstart===0||p.strstart>=T)&&(p.lookahead=p.strstart-T,p.strstart=T,Ie(p,!1),p.strm.avail_out===0)||p.strstart-p.block_start>=p.w_size-j&&(Ie(p,!1),p.strm.avail_out===0))return J}return p.insert=0,te===f?(Ie(p,!0),p.strm.avail_out===0?ue:ve):(p.strstart>p.block_start&&(Ie(p,!1),p.strm.avail_out===0),J)}function Y(p,te){for(var re,T;;){if(p.lookahead<j){if(Ne(p),p.lookahead<j&&te===a)return J;if(p.lookahead===0)break}if(re=0,p.lookahead>=A&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+A-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),re!==0&&p.strstart-re<=p.w_size-j&&(p.match_length=qe(p,re)),p.match_length>=A)if(T=t._tr_tally(p,p.strstart-p.match_start,p.match_length-A),p.lookahead-=p.match_length,p.match_length<=p.max_lazy_match&&p.lookahead>=A){p.match_length--;do p.strstart++,p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+A-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart;while(--p.match_length!==0);p.strstart++}else p.strstart+=p.match_length,p.match_length=0,p.ins_h=p.window[p.strstart],p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+1])&p.hash_mask;else T=t._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++;if(T&&(Ie(p,!1),p.strm.avail_out===0))return J}return p.insert=p.strstart<A-1?p.strstart:A-1,te===f?(Ie(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ie(p,!1),p.strm.avail_out===0)?J:ae}function Q(p,te){for(var re,T,G;;){if(p.lookahead<j){if(Ne(p),p.lookahead<j&&te===a)return J;if(p.lookahead===0)break}if(re=0,p.lookahead>=A&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+A-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),p.prev_length=p.match_length,p.prev_match=p.match_start,p.match_length=A-1,re!==0&&p.prev_length<p.max_lazy_match&&p.strstart-re<=p.w_size-j&&(p.match_length=qe(p,re),p.match_length<=5&&(p.strategy===g||p.match_length===A&&p.strstart-p.match_start>4096)&&(p.match_length=A-1)),p.prev_length>=A&&p.match_length<=p.prev_length){G=p.strstart+p.lookahead-A,T=t._tr_tally(p,p.strstart-1-p.prev_match,p.prev_length-A),p.lookahead-=p.prev_length-1,p.prev_length-=2;do++p.strstart<=G&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+A-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart);while(--p.prev_length!==0);if(p.match_available=0,p.match_length=A-1,p.strstart++,T&&(Ie(p,!1),p.strm.avail_out===0))return J}else if(p.match_available){if(T=t._tr_tally(p,0,p.window[p.strstart-1]),T&&Ie(p,!1),p.strstart++,p.lookahead--,p.strm.avail_out===0)return J}else p.match_available=1,p.strstart++,p.lookahead--}return p.match_available&&(T=t._tr_tally(p,0,p.window[p.strstart-1]),p.match_available=0),p.insert=p.strstart<A-1?p.strstart:A-1,te===f?(Ie(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ie(p,!1),p.strm.avail_out===0)?J:ae}function le(p,te){for(var re,T,G,ee,_e=p.window;;){if(p.lookahead<=k){if(Ne(p),p.lookahead<=k&&te===a)return J;if(p.lookahead===0)break}if(p.match_length=0,p.lookahead>=A&&p.strstart>0&&(G=p.strstart-1,T=_e[G],T===_e[++G]&&T===_e[++G]&&T===_e[++G])){ee=p.strstart+k;do;while(T===_e[++G]&&T===_e[++G]&&T===_e[++G]&&T===_e[++G]&&T===_e[++G]&&T===_e[++G]&&T===_e[++G]&&T===_e[++G]&&G<ee);p.match_length=k-(ee-G),p.match_length>p.lookahead&&(p.match_length=p.lookahead)}if(p.match_length>=A?(re=t._tr_tally(p,1,p.match_length-A),p.lookahead-=p.match_length,p.strstart+=p.match_length,p.match_length=0):(re=t._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++),re&&(Ie(p,!1),p.strm.avail_out===0))return J}return p.insert=0,te===f?(Ie(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ie(p,!1),p.strm.avail_out===0)?J:ae}function ge(p,te){for(var re;;){if(p.lookahead===0&&(Ne(p),p.lookahead===0)){if(te===a)return J;break}if(p.match_length=0,re=t._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++,re&&(Ie(p,!1),p.strm.avail_out===0))return J}return p.insert=0,te===f?(Ie(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ie(p,!1),p.strm.avail_out===0)?J:ae}function de(p,te,re,T,G){this.good_length=p,this.max_lazy=te,this.nice_length=re,this.max_chain=T,this.func=G}var Re;Re=[new de(0,0,0,0,Ye),new de(4,4,8,4,Y),new de(4,5,16,8,Y),new de(4,6,32,32,Y),new de(4,4,16,16,Q),new de(8,16,32,32,Q),new de(8,16,128,128,Q),new de(8,32,128,256,Q),new de(32,128,258,1024,Q),new de(32,258,258,4096,Q)];function Oe(p){p.window_size=2*p.w_size,Pe(p.head),p.max_lazy_match=Re[p.level].max_lazy,p.good_match=Re[p.level].good_length,p.nice_match=Re[p.level].nice_length,p.max_chain_length=Re[p.level].max_chain,p.strstart=0,p.block_start=0,p.lookahead=0,p.insert=0,p.match_length=p.prev_length=A-1,p.match_available=0,p.ins_h=0}function C(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=x,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new e.Buf16(z*2),this.dyn_dtree=new e.Buf16((2*I+1)*2),this.bl_tree=new e.Buf16((2*$+1)*2),Pe(this.dyn_ltree),Pe(this.dyn_dtree),Pe(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(X+1),this.heap=new e.Buf16(2*S+1),Pe(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*S+1),Pe(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ne(p){var te;return!p||!p.state?we(p,c):(p.total_in=p.total_out=0,p.data_type=b,te=p.state,te.pending=0,te.pending_out=0,te.wrap<0&&(te.wrap=-te.wrap),te.status=te.wrap?H:F,p.adler=te.wrap===2?0:1,te.last_flush=a,t._tr_init(te),s)}function se(p){var te=ne(p);return te===s&&Oe(p.state),te}function fe(p,te){return!p||!p.state||p.state.wrap!==2?c:(p.state.gzhead=te,s)}function Z(p,te,re,T,G,ee){if(!p)return c;var _e=1;if(te===m&&(te=6),T<0?(_e=0,T=-T):T>15&&(_e=2,T-=16),G<1||G>O||re!==x||T<8||T>15||te<0||te>9||ee<0||ee>E)return we(p,c);T===8&&(T=9);var he=new C;return p.state=he,he.strm=p,he.wrap=_e,he.gzhead=null,he.w_bits=T,he.w_size=1<<he.w_bits,he.w_mask=he.w_size-1,he.hash_bits=G+7,he.hash_size=1<<he.hash_bits,he.hash_mask=he.hash_size-1,he.hash_shift=~~((he.hash_bits+A-1)/A),he.window=new e.Buf8(he.w_size*2),he.head=new e.Buf16(he.hash_size),he.prev=new e.Buf16(he.w_size),he.lit_bufsize=1<<G+6,he.pending_buf_size=he.lit_bufsize*4,he.pending_buf=new e.Buf8(he.pending_buf_size),he.d_buf=1*he.lit_bufsize,he.l_buf=3*he.lit_bufsize,he.level=te,he.strategy=ee,he.method=re,se(p)}function ie(p,te){return Z(p,te,x,P,M,w)}function R(p,te){var re,T,G,ee;if(!p||!p.state||te>v||te<0)return p?we(p,c):c;if(T=p.state,!p.output||!p.input&&p.avail_in!==0||T.status===K&&te!==f)return we(p,p.avail_out===0?h:c);if(T.strm=p,re=T.last_flush,T.last_flush=te,T.status===H)if(T.wrap===2)p.adler=0,Ee(T,31),Ee(T,139),Ee(T,8),T.gzhead?(Ee(T,(T.gzhead.text?1:0)+(T.gzhead.hcrc?2:0)+(T.gzhead.extra?4:0)+(T.gzhead.name?8:0)+(T.gzhead.comment?16:0)),Ee(T,T.gzhead.time&255),Ee(T,T.gzhead.time>>8&255),Ee(T,T.gzhead.time>>16&255),Ee(T,T.gzhead.time>>24&255),Ee(T,T.level===9?2:T.strategy>=u||T.level<2?4:0),Ee(T,T.gzhead.os&255),T.gzhead.extra&&T.gzhead.extra.length&&(Ee(T,T.gzhead.extra.length&255),Ee(T,T.gzhead.extra.length>>8&255)),T.gzhead.hcrc&&(p.adler=r(p.adler,T.pending_buf,T.pending,0)),T.gzindex=0,T.status=B):(Ee(T,0),Ee(T,0),Ee(T,0),Ee(T,0),Ee(T,0),Ee(T,T.level===9?2:T.strategy>=u||T.level<2?4:0),Ee(T,me),T.status=F);else{var _e=x+(T.w_bits-8<<4)<<8,he=-1;T.strategy>=u||T.level<2?he=0:T.level<6?he=1:T.level===6?he=2:he=3,_e|=he<<6,T.strstart!==0&&(_e|=N),_e+=31-_e%31,T.status=F,$e(T,_e),T.strstart!==0&&($e(T,p.adler>>>16),$e(T,p.adler&65535)),p.adler=1}if(T.status===B)if(T.gzhead.extra){for(G=T.pending;T.gzindex<(T.gzhead.extra.length&65535)&&!(T.pending===T.pending_buf_size&&(T.gzhead.hcrc&&T.pending>G&&(p.adler=r(p.adler,T.pending_buf,T.pending-G,G)),je(p),G=T.pending,T.pending===T.pending_buf_size));)Ee(T,T.gzhead.extra[T.gzindex]&255),T.gzindex++;T.gzhead.hcrc&&T.pending>G&&(p.adler=r(p.adler,T.pending_buf,T.pending-G,G)),T.gzindex===T.gzhead.extra.length&&(T.gzindex=0,T.status=q)}else T.status=q;if(T.status===q)if(T.gzhead.name){G=T.pending;do{if(T.pending===T.pending_buf_size&&(T.gzhead.hcrc&&T.pending>G&&(p.adler=r(p.adler,T.pending_buf,T.pending-G,G)),je(p),G=T.pending,T.pending===T.pending_buf_size)){ee=1;break}T.gzindex<T.gzhead.name.length?ee=T.gzhead.name.charCodeAt(T.gzindex++)&255:ee=0,Ee(T,ee)}while(ee!==0);T.gzhead.hcrc&&T.pending>G&&(p.adler=r(p.adler,T.pending_buf,T.pending-G,G)),ee===0&&(T.gzindex=0,T.status=L)}else T.status=L;if(T.status===L)if(T.gzhead.comment){G=T.pending;do{if(T.pending===T.pending_buf_size&&(T.gzhead.hcrc&&T.pending>G&&(p.adler=r(p.adler,T.pending_buf,T.pending-G,G)),je(p),G=T.pending,T.pending===T.pending_buf_size)){ee=1;break}T.gzindex<T.gzhead.comment.length?ee=T.gzhead.comment.charCodeAt(T.gzindex++)&255:ee=0,Ee(T,ee)}while(ee!==0);T.gzhead.hcrc&&T.pending>G&&(p.adler=r(p.adler,T.pending_buf,T.pending-G,G)),ee===0&&(T.status=D)}else T.status=D;if(T.status===D&&(T.gzhead.hcrc?(T.pending+2>T.pending_buf_size&&je(p),T.pending+2<=T.pending_buf_size&&(Ee(T,p.adler&255),Ee(T,p.adler>>8&255),p.adler=0,T.status=F)):T.status=F),T.pending!==0){if(je(p),p.avail_out===0)return T.last_flush=-1,s}else if(p.avail_in===0&&Ce(te)<=Ce(re)&&te!==f)return we(p,h);if(T.status===K&&p.avail_in!==0)return we(p,h);if(p.avail_in!==0||T.lookahead!==0||te!==a&&T.status!==K){var pe=T.strategy===u?ge(T,te):T.strategy===_?le(T,te):Re[T.level].func(T,te);if((pe===ue||pe===ve)&&(T.status=K),pe===J||pe===ue)return p.avail_out===0&&(T.last_flush=-1),s;if(pe===ae&&(te===o?t._tr_align(T):te!==v&&(t._tr_stored_block(T,0,0,!1),te===d&&(Pe(T.head),T.lookahead===0&&(T.strstart=0,T.block_start=0,T.insert=0))),je(p),p.avail_out===0))return T.last_flush=-1,s}return te!==f?s:T.wrap<=0?l:(T.wrap===2?(Ee(T,p.adler&255),Ee(T,p.adler>>8&255),Ee(T,p.adler>>16&255),Ee(T,p.adler>>24&255),Ee(T,p.total_in&255),Ee(T,p.total_in>>8&255),Ee(T,p.total_in>>16&255),Ee(T,p.total_in>>24&255)):($e(T,p.adler>>>16),$e(T,p.adler&65535)),je(p),T.wrap>0&&(T.wrap=-T.wrap),T.pending!==0?s:l)}function oe(p){var te;return!p||!p.state?c:(te=p.state.status,te!==H&&te!==B&&te!==q&&te!==L&&te!==D&&te!==F&&te!==K?we(p,c):(p.state=null,te===F?we(p,y):s))}function be(p,te){var re=te.length,T,G,ee,_e,he,pe,Ae,vt;if(!p||!p.state||(T=p.state,_e=T.wrap,_e===2||_e===1&&T.status!==H||T.lookahead))return c;for(_e===1&&(p.adler=n(p.adler,te,re,0)),T.wrap=0,re>=T.w_size&&(_e===0&&(Pe(T.head),T.strstart=0,T.block_start=0,T.insert=0),vt=new e.Buf8(T.w_size),e.arraySet(vt,te,re-T.w_size,T.w_size,0),te=vt,re=T.w_size),he=p.avail_in,pe=p.next_in,Ae=p.input,p.avail_in=re,p.next_in=0,p.input=te,Ne(T);T.lookahead>=A;){G=T.strstart,ee=T.lookahead-(A-1);do T.ins_h=(T.ins_h<<T.hash_shift^T.window[G+A-1])&T.hash_mask,T.prev[G&T.w_mask]=T.head[T.ins_h],T.head[T.ins_h]=G,G++;while(--ee);T.strstart=G,T.lookahead=A-1,Ne(T)}return T.strstart+=T.lookahead,T.block_start=T.strstart,T.insert=T.lookahead,T.lookahead=0,T.match_length=T.prev_length=A-1,T.match_available=0,p.next_in=pe,p.input=Ae,p.avail_in=he,T.wrap=_e,s}return ut.deflateInit=ie,ut.deflateInit2=Z,ut.deflateReset=se,ut.deflateResetKeep=ne,ut.deflateSetHeader=fe,ut.deflate=R,ut.deflateEnd=oe,ut.deflateSetDictionary=be,ut.deflateInfo="pako deflate (from Nodeca project)",ut}var qn,xs;function mm(){if(xs)return qn;xs=1;function e(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}return qn=e,qn}var it={},Dn,Cs;function gm(){if(Cs)return Dn;Cs=1;var e=30,t=12;return Dn=function(r,i){var a,o,d,f,v,s,l,c,y,h,m,g,u,_,E,w,b,x,O,P,M,W,V,S,I;a=r.state,o=r.next_in,S=r.input,d=o+(r.avail_in-5),f=r.next_out,I=r.output,v=f-(i-r.avail_out),s=f+(r.avail_out-257),l=a.dmax,c=a.wsize,y=a.whave,h=a.wnext,m=a.window,g=a.hold,u=a.bits,_=a.lencode,E=a.distcode,w=(1<<a.lenbits)-1,b=(1<<a.distbits)-1;e:do{u<15&&(g+=S[o++]<<u,u+=8,g+=S[o++]<<u,u+=8),x=_[g&w];t:for(;;){if(O=x>>>24,g>>>=O,u-=O,O=x>>>16&255,O===0)I[f++]=x&65535;else if(O&16){P=x&65535,O&=15,O&&(u<O&&(g+=S[o++]<<u,u+=8),P+=g&(1<<O)-1,g>>>=O,u-=O),u<15&&(g+=S[o++]<<u,u+=8,g+=S[o++]<<u,u+=8),x=E[g&b];r:for(;;){if(O=x>>>24,g>>>=O,u-=O,O=x>>>16&255,O&16){if(M=x&65535,O&=15,u<O&&(g+=S[o++]<<u,u+=8,u<O&&(g+=S[o++]<<u,u+=8)),M+=g&(1<<O)-1,M>l){r.msg="invalid distance too far back",a.mode=e;break e}if(g>>>=O,u-=O,O=f-v,M>O){if(O=M-O,O>y&&a.sane){r.msg="invalid distance too far back",a.mode=e;break e}if(W=0,V=m,h===0){if(W+=c-O,O<P){P-=O;do I[f++]=m[W++];while(--O);W=f-M,V=I}}else if(h<O){if(W+=c+h-O,O-=h,O<P){P-=O;do I[f++]=m[W++];while(--O);if(W=0,h<P){O=h,P-=O;do I[f++]=m[W++];while(--O);W=f-M,V=I}}}else if(W+=h-O,O<P){P-=O;do I[f++]=m[W++];while(--O);W=f-M,V=I}for(;P>2;)I[f++]=V[W++],I[f++]=V[W++],I[f++]=V[W++],P-=3;P&&(I[f++]=V[W++],P>1&&(I[f++]=V[W++]))}else{W=f-M;do I[f++]=I[W++],I[f++]=I[W++],I[f++]=I[W++],P-=3;while(P>2);P&&(I[f++]=I[W++],P>1&&(I[f++]=I[W++]))}}else if((O&64)===0){x=E[(x&65535)+(g&(1<<O)-1)];continue r}else{r.msg="invalid distance code",a.mode=e;break e}break}}else if((O&64)===0){x=_[(x&65535)+(g&(1<<O)-1)];continue t}else if(O&32){a.mode=t;break e}else{r.msg="invalid literal/length code",a.mode=e;break e}break}}while(o<d&&f<s);P=u>>3,o-=P,u-=P<<3,g&=(1<<u)-1,r.next_in=o,r.next_out=f,r.avail_in=o<d?5+(d-o):5-(o-d),r.avail_out=f<s?257+(s-f):257-(f-s),a.hold=g,a.bits=u},Dn}var Nn,ks;function vm(){if(ks)return Nn;ks=1;var e=bn(),t=15,n=852,r=592,i=0,a=1,o=2,d=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],f=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],v=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];return Nn=function(c,y,h,m,g,u,_,E){var w=E.bits,b=0,x=0,O=0,P=0,M=0,W=0,V=0,S=0,I=0,$=0,z,X,A,k,j,N=null,H=0,B,q=new e.Buf16(t+1),L=new e.Buf16(t+1),D=null,F=0,K,J,ae;for(b=0;b<=t;b++)q[b]=0;for(x=0;x<m;x++)q[y[h+x]]++;for(M=w,P=t;P>=1&&q[P]===0;P--);if(M>P&&(M=P),P===0)return g[u++]=1<<24|64<<16|0,g[u++]=1<<24|64<<16|0,E.bits=1,0;for(O=1;O<P&&q[O]===0;O++);for(M<O&&(M=O),S=1,b=1;b<=t;b++)if(S<<=1,S-=q[b],S<0)return-1;if(S>0&&(c===i||P!==1))return-1;for(L[1]=0,b=1;b<t;b++)L[b+1]=L[b]+q[b];for(x=0;x<m;x++)y[h+x]!==0&&(_[L[y[h+x]]++]=x);if(c===i?(N=D=_,B=19):c===a?(N=d,H-=257,D=f,F-=257,B=256):(N=v,D=s,B=-1),$=0,x=0,b=O,j=u,W=M,V=0,A=-1,I=1<<M,k=I-1,c===a&&I>n||c===o&&I>r)return 1;for(;;){K=b-V,_[x]<B?(J=0,ae=_[x]):_[x]>B?(J=D[F+_[x]],ae=N[H+_[x]]):(J=96,ae=0),z=1<<b-V,X=1<<W,O=X;do X-=z,g[j+($>>V)+X]=K<<24|J<<16|ae|0;while(X!==0);for(z=1<<b-1;$&z;)z>>=1;if(z!==0?($&=z-1,$+=z):$=0,x++,--q[b]===0){if(b===P)break;b=y[h+_[x]]}if(b>M&&($&k)!==A){for(V===0&&(V=M),j+=O,W=b-V,S=1<<W;W+V<P&&(S-=q[W+V],!(S<=0));)W++,S<<=1;if(I+=1<<W,c===a&&I>n||c===o&&I>r)return 1;A=$&k,g[A]=M<<24|W<<16|j-u|0}}return $!==0&&(g[j+$]=b-V<<24|64<<16|0),E.bits=M,0},Nn}var Ps;function ym(){if(Ps)return it;Ps=1;var e=bn(),t=cd(),n=ld(),r=gm(),i=vm(),a=0,o=1,d=2,f=4,v=5,s=6,l=0,c=1,y=2,h=-2,m=-3,g=-4,u=-5,_=8,E=1,w=2,b=3,x=4,O=5,P=6,M=7,W=8,V=9,S=10,I=11,$=12,z=13,X=14,A=15,k=16,j=17,N=18,H=19,B=20,q=21,L=22,D=23,F=24,K=25,J=26,ae=27,ue=28,ve=29,me=30,we=31,Ce=32,Pe=852,je=592,Ie=15,Ee=Ie;function $e(Z){return(Z>>>24&255)+(Z>>>8&65280)+((Z&65280)<<8)+((Z&255)<<24)}function st(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new e.Buf16(320),this.work=new e.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function qe(Z){var ie;return!Z||!Z.state?h:(ie=Z.state,Z.total_in=Z.total_out=ie.total=0,Z.msg="",ie.wrap&&(Z.adler=ie.wrap&1),ie.mode=E,ie.last=0,ie.havedict=0,ie.dmax=32768,ie.head=null,ie.hold=0,ie.bits=0,ie.lencode=ie.lendyn=new e.Buf32(Pe),ie.distcode=ie.distdyn=new e.Buf32(je),ie.sane=1,ie.back=-1,l)}function Ne(Z){var ie;return!Z||!Z.state?h:(ie=Z.state,ie.wsize=0,ie.whave=0,ie.wnext=0,qe(Z))}function Ye(Z,ie){var R,oe;return!Z||!Z.state||(oe=Z.state,ie<0?(R=0,ie=-ie):(R=(ie>>4)+1,ie<48&&(ie&=15)),ie&&(ie<8||ie>15))?h:(oe.window!==null&&oe.wbits!==ie&&(oe.window=null),oe.wrap=R,oe.wbits=ie,Ne(Z))}function Y(Z,ie){var R,oe;return Z?(oe=new st,Z.state=oe,oe.window=null,R=Ye(Z,ie),R!==l&&(Z.state=null),R):h}function Q(Z){return Y(Z,Ee)}var le=!0,ge,de;function Re(Z){if(le){var ie;for(ge=new e.Buf32(512),de=new e.Buf32(32),ie=0;ie<144;)Z.lens[ie++]=8;for(;ie<256;)Z.lens[ie++]=9;for(;ie<280;)Z.lens[ie++]=7;for(;ie<288;)Z.lens[ie++]=8;for(i(o,Z.lens,0,288,ge,0,Z.work,{bits:9}),ie=0;ie<32;)Z.lens[ie++]=5;i(d,Z.lens,0,32,de,0,Z.work,{bits:5}),le=!1}Z.lencode=ge,Z.lenbits=9,Z.distcode=de,Z.distbits=5}function Oe(Z,ie,R,oe){var be,p=Z.state;return p.window===null&&(p.wsize=1<<p.wbits,p.wnext=0,p.whave=0,p.window=new e.Buf8(p.wsize)),oe>=p.wsize?(e.arraySet(p.window,ie,R-p.wsize,p.wsize,0),p.wnext=0,p.whave=p.wsize):(be=p.wsize-p.wnext,be>oe&&(be=oe),e.arraySet(p.window,ie,R-oe,be,p.wnext),oe-=be,oe?(e.arraySet(p.window,ie,R-oe,oe,0),p.wnext=oe,p.whave=p.wsize):(p.wnext+=be,p.wnext===p.wsize&&(p.wnext=0),p.whave<p.wsize&&(p.whave+=be))),0}function C(Z,ie){var R,oe,be,p,te,re,T,G,ee,_e,he,pe,Ae,vt,Le=0,xe,Ue,Je,Xe,br,wr,Me,nt,Ge=new e.Buf8(4),yt,dt,gs=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Z||!Z.state||!Z.output||!Z.input&&Z.avail_in!==0)return h;R=Z.state,R.mode===$&&(R.mode=z),te=Z.next_out,be=Z.output,T=Z.avail_out,p=Z.next_in,oe=Z.input,re=Z.avail_in,G=R.hold,ee=R.bits,_e=re,he=T,nt=l;e:for(;;)switch(R.mode){case E:if(R.wrap===0){R.mode=z;break}for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(R.wrap&2&&G===35615){R.check=0,Ge[0]=G&255,Ge[1]=G>>>8&255,R.check=n(R.check,Ge,2,0),G=0,ee=0,R.mode=w;break}if(R.flags=0,R.head&&(R.head.done=!1),!(R.wrap&1)||(((G&255)<<8)+(G>>8))%31){Z.msg="incorrect header check",R.mode=me;break}if((G&15)!==_){Z.msg="unknown compression method",R.mode=me;break}if(G>>>=4,ee-=4,Me=(G&15)+8,R.wbits===0)R.wbits=Me;else if(Me>R.wbits){Z.msg="invalid window size",R.mode=me;break}R.dmax=1<<Me,Z.adler=R.check=1,R.mode=G&512?S:$,G=0,ee=0;break;case w:for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(R.flags=G,(R.flags&255)!==_){Z.msg="unknown compression method",R.mode=me;break}if(R.flags&57344){Z.msg="unknown header flags set",R.mode=me;break}R.head&&(R.head.text=G>>8&1),R.flags&512&&(Ge[0]=G&255,Ge[1]=G>>>8&255,R.check=n(R.check,Ge,2,0)),G=0,ee=0,R.mode=b;case b:for(;ee<32;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}R.head&&(R.head.time=G),R.flags&512&&(Ge[0]=G&255,Ge[1]=G>>>8&255,Ge[2]=G>>>16&255,Ge[3]=G>>>24&255,R.check=n(R.check,Ge,4,0)),G=0,ee=0,R.mode=x;case x:for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}R.head&&(R.head.xflags=G&255,R.head.os=G>>8),R.flags&512&&(Ge[0]=G&255,Ge[1]=G>>>8&255,R.check=n(R.check,Ge,2,0)),G=0,ee=0,R.mode=O;case O:if(R.flags&1024){for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}R.length=G,R.head&&(R.head.extra_len=G),R.flags&512&&(Ge[0]=G&255,Ge[1]=G>>>8&255,R.check=n(R.check,Ge,2,0)),G=0,ee=0}else R.head&&(R.head.extra=null);R.mode=P;case P:if(R.flags&1024&&(pe=R.length,pe>re&&(pe=re),pe&&(R.head&&(Me=R.head.extra_len-R.length,R.head.extra||(R.head.extra=new Array(R.head.extra_len)),e.arraySet(R.head.extra,oe,p,pe,Me)),R.flags&512&&(R.check=n(R.check,oe,pe,p)),re-=pe,p+=pe,R.length-=pe),R.length))break e;R.length=0,R.mode=M;case M:if(R.flags&2048){if(re===0)break e;pe=0;do Me=oe[p+pe++],R.head&&Me&&R.length<65536&&(R.head.name+=String.fromCharCode(Me));while(Me&&pe<re);if(R.flags&512&&(R.check=n(R.check,oe,pe,p)),re-=pe,p+=pe,Me)break e}else R.head&&(R.head.name=null);R.length=0,R.mode=W;case W:if(R.flags&4096){if(re===0)break e;pe=0;do Me=oe[p+pe++],R.head&&Me&&R.length<65536&&(R.head.comment+=String.fromCharCode(Me));while(Me&&pe<re);if(R.flags&512&&(R.check=n(R.check,oe,pe,p)),re-=pe,p+=pe,Me)break e}else R.head&&(R.head.comment=null);R.mode=V;case V:if(R.flags&512){for(;ee<16;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(G!==(R.check&65535)){Z.msg="header crc mismatch",R.mode=me;break}G=0,ee=0}R.head&&(R.head.hcrc=R.flags>>9&1,R.head.done=!0),Z.adler=R.check=0,R.mode=$;break;case S:for(;ee<32;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}Z.adler=R.check=$e(G),G=0,ee=0,R.mode=I;case I:if(R.havedict===0)return Z.next_out=te,Z.avail_out=T,Z.next_in=p,Z.avail_in=re,R.hold=G,R.bits=ee,y;Z.adler=R.check=1,R.mode=$;case $:if(ie===v||ie===s)break e;case z:if(R.last){G>>>=ee&7,ee-=ee&7,R.mode=ae;break}for(;ee<3;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}switch(R.last=G&1,G>>>=1,ee-=1,G&3){case 0:R.mode=X;break;case 1:if(Re(R),R.mode=B,ie===s){G>>>=2,ee-=2;break e}break;case 2:R.mode=j;break;case 3:Z.msg="invalid block type",R.mode=me}G>>>=2,ee-=2;break;case X:for(G>>>=ee&7,ee-=ee&7;ee<32;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if((G&65535)!==(G>>>16^65535)){Z.msg="invalid stored block lengths",R.mode=me;break}if(R.length=G&65535,G=0,ee=0,R.mode=A,ie===s)break e;case A:R.mode=k;case k:if(pe=R.length,pe){if(pe>re&&(pe=re),pe>T&&(pe=T),pe===0)break e;e.arraySet(be,oe,p,pe,te),re-=pe,p+=pe,T-=pe,te+=pe,R.length-=pe;break}R.mode=$;break;case j:for(;ee<14;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(R.nlen=(G&31)+257,G>>>=5,ee-=5,R.ndist=(G&31)+1,G>>>=5,ee-=5,R.ncode=(G&15)+4,G>>>=4,ee-=4,R.nlen>286||R.ndist>30){Z.msg="too many length or distance symbols",R.mode=me;break}R.have=0,R.mode=N;case N:for(;R.have<R.ncode;){for(;ee<3;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}R.lens[gs[R.have++]]=G&7,G>>>=3,ee-=3}for(;R.have<19;)R.lens[gs[R.have++]]=0;if(R.lencode=R.lendyn,R.lenbits=7,yt={bits:R.lenbits},nt=i(a,R.lens,0,19,R.lencode,0,R.work,yt),R.lenbits=yt.bits,nt){Z.msg="invalid code lengths set",R.mode=me;break}R.have=0,R.mode=H;case H:for(;R.have<R.nlen+R.ndist;){for(;Le=R.lencode[G&(1<<R.lenbits)-1],xe=Le>>>24,Ue=Le>>>16&255,Je=Le&65535,!(xe<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(Je<16)G>>>=xe,ee-=xe,R.lens[R.have++]=Je;else{if(Je===16){for(dt=xe+2;ee<dt;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(G>>>=xe,ee-=xe,R.have===0){Z.msg="invalid bit length repeat",R.mode=me;break}Me=R.lens[R.have-1],pe=3+(G&3),G>>>=2,ee-=2}else if(Je===17){for(dt=xe+3;ee<dt;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}G>>>=xe,ee-=xe,Me=0,pe=3+(G&7),G>>>=3,ee-=3}else{for(dt=xe+7;ee<dt;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}G>>>=xe,ee-=xe,Me=0,pe=11+(G&127),G>>>=7,ee-=7}if(R.have+pe>R.nlen+R.ndist){Z.msg="invalid bit length repeat",R.mode=me;break}for(;pe--;)R.lens[R.have++]=Me}}if(R.mode===me)break;if(R.lens[256]===0){Z.msg="invalid code -- missing end-of-block",R.mode=me;break}if(R.lenbits=9,yt={bits:R.lenbits},nt=i(o,R.lens,0,R.nlen,R.lencode,0,R.work,yt),R.lenbits=yt.bits,nt){Z.msg="invalid literal/lengths set",R.mode=me;break}if(R.distbits=6,R.distcode=R.distdyn,yt={bits:R.distbits},nt=i(d,R.lens,R.nlen,R.ndist,R.distcode,0,R.work,yt),R.distbits=yt.bits,nt){Z.msg="invalid distances set",R.mode=me;break}if(R.mode=B,ie===s)break e;case B:R.mode=q;case q:if(re>=6&&T>=258){Z.next_out=te,Z.avail_out=T,Z.next_in=p,Z.avail_in=re,R.hold=G,R.bits=ee,r(Z,he),te=Z.next_out,be=Z.output,T=Z.avail_out,p=Z.next_in,oe=Z.input,re=Z.avail_in,G=R.hold,ee=R.bits,R.mode===$&&(R.back=-1);break}for(R.back=0;Le=R.lencode[G&(1<<R.lenbits)-1],xe=Le>>>24,Ue=Le>>>16&255,Je=Le&65535,!(xe<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(Ue&&(Ue&240)===0){for(Xe=xe,br=Ue,wr=Je;Le=R.lencode[wr+((G&(1<<Xe+br)-1)>>Xe)],xe=Le>>>24,Ue=Le>>>16&255,Je=Le&65535,!(Xe+xe<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}G>>>=Xe,ee-=Xe,R.back+=Xe}if(G>>>=xe,ee-=xe,R.back+=xe,R.length=Je,Ue===0){R.mode=J;break}if(Ue&32){R.back=-1,R.mode=$;break}if(Ue&64){Z.msg="invalid literal/length code",R.mode=me;break}R.extra=Ue&15,R.mode=L;case L:if(R.extra){for(dt=R.extra;ee<dt;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}R.length+=G&(1<<R.extra)-1,G>>>=R.extra,ee-=R.extra,R.back+=R.extra}R.was=R.length,R.mode=D;case D:for(;Le=R.distcode[G&(1<<R.distbits)-1],xe=Le>>>24,Ue=Le>>>16&255,Je=Le&65535,!(xe<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if((Ue&240)===0){for(Xe=xe,br=Ue,wr=Je;Le=R.distcode[wr+((G&(1<<Xe+br)-1)>>Xe)],xe=Le>>>24,Ue=Le>>>16&255,Je=Le&65535,!(Xe+xe<=ee);){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}G>>>=Xe,ee-=Xe,R.back+=Xe}if(G>>>=xe,ee-=xe,R.back+=xe,Ue&64){Z.msg="invalid distance code",R.mode=me;break}R.offset=Je,R.extra=Ue&15,R.mode=F;case F:if(R.extra){for(dt=R.extra;ee<dt;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}R.offset+=G&(1<<R.extra)-1,G>>>=R.extra,ee-=R.extra,R.back+=R.extra}if(R.offset>R.dmax){Z.msg="invalid distance too far back",R.mode=me;break}R.mode=K;case K:if(T===0)break e;if(pe=he-T,R.offset>pe){if(pe=R.offset-pe,pe>R.whave&&R.sane){Z.msg="invalid distance too far back",R.mode=me;break}pe>R.wnext?(pe-=R.wnext,Ae=R.wsize-pe):Ae=R.wnext-pe,pe>R.length&&(pe=R.length),vt=R.window}else vt=be,Ae=te-R.offset,pe=R.length;pe>T&&(pe=T),T-=pe,R.length-=pe;do be[te++]=vt[Ae++];while(--pe);R.length===0&&(R.mode=q);break;case J:if(T===0)break e;be[te++]=R.length,T--,R.mode=q;break;case ae:if(R.wrap){for(;ee<32;){if(re===0)break e;re--,G|=oe[p++]<<ee,ee+=8}if(he-=T,Z.total_out+=he,R.total+=he,he&&(Z.adler=R.check=R.flags?n(R.check,be,he,te-he):t(R.check,be,he,te-he)),he=T,(R.flags?G:$e(G))!==R.check){Z.msg="incorrect data check",R.mode=me;break}G=0,ee=0}R.mode=ue;case ue:if(R.wrap&&R.flags){for(;ee<32;){if(re===0)break e;re--,G+=oe[p++]<<ee,ee+=8}if(G!==(R.total&4294967295)){Z.msg="incorrect length check",R.mode=me;break}G=0,ee=0}R.mode=ve;case ve:nt=c;break e;case me:nt=m;break e;case we:return g;case Ce:default:return h}return Z.next_out=te,Z.avail_out=T,Z.next_in=p,Z.avail_in=re,R.hold=G,R.bits=ee,(R.wsize||he!==Z.avail_out&&R.mode<me&&(R.mode<ae||ie!==f))&&Oe(Z,Z.output,Z.next_out,he-Z.avail_out),_e-=Z.avail_in,he-=Z.avail_out,Z.total_in+=_e,Z.total_out+=he,R.total+=he,R.wrap&&he&&(Z.adler=R.check=R.flags?n(R.check,be,he,Z.next_out-he):t(R.check,be,he,Z.next_out-he)),Z.data_type=R.bits+(R.last?64:0)+(R.mode===$?128:0)+(R.mode===B||R.mode===A?256:0),(_e===0&&he===0||ie===f)&&nt===l&&(nt=u),nt}function ne(Z){if(!Z||!Z.state)return h;var ie=Z.state;return ie.window&&(ie.window=null),Z.state=null,l}function se(Z,ie){var R;return!Z||!Z.state||(R=Z.state,(R.wrap&2)===0)?h:(R.head=ie,ie.done=!1,l)}function fe(Z,ie){var R=ie.length,oe,be,p;return!Z||!Z.state||(oe=Z.state,oe.wrap!==0&&oe.mode!==I)?h:oe.mode===I&&(be=1,be=t(be,ie,R,0),be!==oe.check)?m:(p=Oe(Z,ie,R,R),p?(oe.mode=we,g):(oe.havedict=1,l))}return it.inflateReset=Ne,it.inflateReset2=Ye,it.inflateResetKeep=qe,it.inflateInit=Q,it.inflateInit2=Y,it.inflate=C,it.inflateEnd=ne,it.inflateGetHeader=se,it.inflateSetDictionary=fe,it.inflateInfo="pako inflate (from Nodeca project)",it}var Mn,js;function _m(){return js||(js=1,Mn={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}),Mn}function bm(){const{useDynamicConfig:e}=wt(),{configValue:t,isDynamicConfigLoading:n}=e(At.creditAgentEnablement),r=He.getSignedInUser()?.userEmail;return{isAllowed:ce.useMemo(()=>{const a=Array.isArray(t?.allowedUserEmails)?t.allowedUserEmails:[];return r!=null&&a.includes(r)},[t,r]),isLoading:n}}function St(){const{isAllowed:e}=bm();return e?Op:Tp}const wm={overlayWidth:new at(100,100,50)};function Ls(){const e=Be(),t=We(),n=lr(),r=Bt(),i=St(),a=Se(V=>Lf(V)),o=a.uiState.selectedCustomerTenantId,d=ce.useMemo(()=>o?a.customers.find(V=>V.tenantId===o):void 0,[a.customers,o]),f=Se(V=>o?qf(V.aiAccountantCustomerState,V.userState,o):[]),v=a.customerViewStateByTenantId[o],s=v?.jobsFetchStatus??{fetchState:"Not-Started"},l=v?.jobsPageToken!=null;ce.useEffect(()=>{a.fetchState==="Completed"?t(xt(!1)):(a.fetchState==="Not-Started"||a.fetchState==="Error")&&t(vs())},[a.fetchState]);const c=V=>{const S=kt(V),I=Ft(V);Fe.trackCockpitTabClicked(I),e(`../../${S}`,{replace:!0})},y=(V,S,I,$)=>{t(Dt([V.tenantId])),t(an(S,I,$))},h=(V,S,I)=>{t(an(V,S,I))},m=(V,S)=>{t(Dt(a.unonboardedTenantIds)),t(an("retrain",V,S))},g=V=>{const S=a.selectedTenantIds,I=S.includes(V)?S.filter($=>$!==V):[...S,V];t(Dt(I))},u=V=>{if(V.length===0)return;const S=a.selectedTenantIds,I=new Set(S);if(V.every(z=>I.has(z))){const z=new Set(V);t(Dt(S.filter(X=>!z.has(X))))}else{const z=Array.from(new Set([...S,...V]));t(Dt(z))}},_=()=>{t(Dt([]))},E=V=>{t(Df(V.companyId,V.tenantId))},w=V=>{V==="aiAccountant"&&t(vs())},b=(V,S)=>{t(Jt({sortKey:V,sortOrder:S}))},x=V=>{t(Jt({selectedCustomerTenantId:V.tenantId})),t(sn(V.tenantId))},O=()=>{t(Jt({selectedCustomerTenantId:""}))},P=V=>{t(Jt({filterText:V}))},M=(V,S)=>{t(Jt({filters:S}))},W=()=>{o&&t(sn(o,!0))};return U.jsxs(U.Fragment,{children:[U.jsx(Ap,{headerData:{allTabOptions:i,selectedTabOption:Et("aiAccountant")},headerActions:{onTabChange:c},aiAccountantPageData:{aiAccountantView:a},aiAccountantPageActions:{onAction:y,onBulkAction:h,onCancelOnboarding:E,onClearSelection:_,onCockpitReloadData:w,onColumnSortConfigChanged:b,onCustomerSelected:x,onEvaluateAll:m,onFilterTextChanged:P,onFiltersChange:M,onToggleAllVisible:u,onToggleTenantSelection:g}}),U.jsx(dr,{anchor:"right",open:d!=null,PaperProps:{style:{width:wm.overlayWidth.valuePercentage(n),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:r.colors.black,opacity:.75,cursor:"pointer"}}},onClose:O,children:d!=null&&U.jsx(rd,{customer:d,hasMoreJobs:l,jobs:f,jobsFetchStatus:s,onAction:y,onCancelOnboarding:E,onClose:O,onLoadMoreJobs:W})})]})}function Em(){const{tenantId:e=""}=ot(),t=Be(),n=We(),r=Se(c=>uh(c.aiAccountantCustomerState,c.userState)),i=Se(c=>Lf(c)),a=r.find(c=>c.tenantId===e),o=i.customerViewStateByTenantId[e],d=Se(c=>qf(c.aiAccountantCustomerState,c.userState,e));if(ce.useEffect(()=>{n(sn(e))},[e,n]),a==null)return null;const f=(c,y,h,m)=>{n(Dt([c.tenantId])),n(an(y,h,m))},v=c=>{n(Df(c.companyId,c.tenantId))},s=()=>{t("../")},l=()=>{n(sn(e,!0))};return U.jsx(rd,{customer:a,hasMoreJobs:o?.jobsPageToken!=null,jobs:d,jobsFetchStatus:o?.jobsFetchStatus??{fetchState:"Not-Started"},onAction:f,onCancelOnboarding:v,onClose:s,onLoadMoreJobs:l})}const fd=(e,t)=>{const n=[...e??[]];return n.push(t),n},Sm=e=>{const t=[...e??[]];return{poppedPathname:t.pop(),newStack:t}},Rm=(e=2)=>{let t="../";for(let n=0;n<e;n++)t=`${t}../`;return t},ke=({state:e,element:t})=>He.isSignedIn()===!0?U.jsx(U.Fragment,{children:t}):U.jsx(ir,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function Om(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/",element:U.jsx(ke,{element:U.jsx(Ls,{})})}),U.jsx(Te,{path:"/detail/:tenantId",element:U.jsx(ke,{element:U.jsx(Em,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(ke,{element:U.jsx(Ls,{})})})]})}const Ut=()=>{const[e,t]=ud(),[n,r]=ce.useState(),i=ce.useRef(!1);return ce.useEffect(()=>{if(i.current===!0||!(e.has("thread_id")||e.has("entity_type")||e.has("company_id")))return;const o=Ip(e);o!=null&&r(o);const d=new URLSearchParams(e);d.delete("thread_id"),d.delete("entity_type"),d.delete("company_id"),t(d,{replace:!0}),i.current=!0},[e,t]),n},Tm={overlayWidth:new at(100,100,50)},{common:{strings:qs}}=fr.getLocalizedStrings();function Am(e,t){return{headerActions:{onTabChange:n=>{const r=kt(n),i=Ft(n);Fe.trackCockpitTabClicked(i),t.navigate(`../../${r}`,{replace:!0})},filterActions:{onFilterTextChanged:(n,r)=>{e(Er({uiState:{filterText:r}}))},onFiltersChange:(n,r)=>{r.categories!=null&&r.categoryCombinationOperator!=null&&Fe.trackHealthMonitorFiltersApplied({filterSelection:{condition:r.categories.map(i=>i.matchingOperator).join(qs.comma),logic:r.categoryCombinationOperator,parameter:r.categories.map(i=>i.field).join(qs.comma)}}),e(Er({uiState:{filters:r}}))}}},healthPageActions:{onRowClick:n=>{e(Mf(n))},onColumnSortConfigChanged:(n,r)=>{e(Er({uiState:{sortKey:n,sortOrder:r}}))},onCockpitReloadData:n=>{n==="healthMonitor"&&e(Nf())},onFiltersChange:n=>{e(Er({uiState:{filters:n}}))}}}}function Im(e,t){return{healthPageData:{healthView:t.healthView,managementView:t.managementView,mixpanelUrl:t.mixpanelHMUrl}}}const xm=ze(Im,Am)(Pp);function Fn({isDrawerOpen:e}){const t=Be(),n=We(),r=Bt(),i=lr(),{companyId:a}=ot(),[o,d]=ud(),[f,v]=ce.useState(!1),s=Ut(),l=St(),c=Se(b=>ch(b)),y=Se(b=>ur(b)),{additionalChurnFactors:h}=Se(b=>lh(b)),{selectedCompanyDetail:m,selectedCompanyId:g,localFormDataAndStatusByCompanyId:u}=c,_=Se(b=>b.companyViewState.zeniUsers.fetchState),E=Se(b=>b.companyHealthMetricConfigViewState);if(ce.useEffect(()=>{const b=x=>x==="Not-Started"||x==="Error";c.fetchState==="Completed"?n(xt(!1)):b(c.fetchState)&&(n(Nf()),b(_)&&n(Ct()),b(E.fetchState)&&n(fh()))},[c.fetchState,E.fetchState]),ce.useEffect(()=>{a!=null&&c.fetchState==="Completed"&&o.has("utm_source")===!0&&(n(Mf(a)),m!=null&&(xp(),Fe.trackCockpitHealthMonitorNotificationAlertClicked({companyId:m.companyInfo.companyId,companyName:m.companyInfo.name,churnProbability:m.companyHealthMetric.churnProbabilityPercentage??null}),v(!0),o.delete("utm_source"),d(o)))},[c.fetchState,m?.companyInfo.companyId,m?.companyInfo.name]),He.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return U.jsxs(U.Fragment,{children:[e===!0||g!=null&&m!=null?U.jsx(dr,{anchor:"right",open:g!=null,PaperProps:{style:{width:Tm.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:r.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>n(ys()),children:U.jsx(Cp,{roomId:`cockpit_${g}`,autoConnect:!0,children:U.jsx(kp,{onSaveClick:()=>{g!=null&&n(hh(g))},onSaveChangesToLocalStore:b=>{c.selectedCompanyId!=null&&n(dh({companyId:c.selectedCompanyId,updatedLocalData:b}))},localData:u?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:c,onCloseDrawer:()=>n(ys()),analytics:Fe,urlSource:f,additionalChurnFactorsOptions:h})})}):null,U.jsx(xm,{headerData:{allTabOptions:l,selectedTabOption:Et("healthMonitor")},initialOpenThreadRequest:s??void 0,healthView:c,managementView:y,navigate:t,mixpanelHMUrl:gn.mixpanelHMUrl})]})}function Cm(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/companies/:companyId",element:U.jsx(ke,{element:U.jsx(Fn,{isDrawerOpen:!0})})}),U.jsx(Te,{path:"/",element:U.jsx(ke,{element:U.jsx(Fn,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(ke,{element:U.jsx(Fn,{})})})]})}const km={drawerLeftMargin:new at(0,0,240)};function mr(e){const{isOpen:t,drawerLeftMargin:n,children:r,onClose:i}=e,a=lr(),o=n?.valuePx(a)??km.drawerLeftMargin.valuePx(a),d=Bt();return U.jsx(dr,{anchor:"right",open:t,PaperProps:{style:{width:`calc(100% - ${o})`}},slotProps:{backdrop:{style:{backgroundColor:d.colors.black,opacity:.8,cursor:"pointer"}}},onClose:i,children:r})}const Pm=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?U.jsx(jm,{children:U.jsx(vn,{size:"ExtraLarge",start:!0})}):null,jm=tt.div`
3
3
  display: flex;
4
4
  width: 100%;
5
5
  height: 100%;
@@ -177,4 +177,4 @@ Found: ${n.toString().split(`
177
177
  `;function B_(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/report/:companyId",element:U.jsx(ke,{element:U.jsx(qo,{})})}),U.jsx(Te,{path:"/warnings/:companyId",element:U.jsx(ke,{element:U.jsx(qo,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(ke,{element:U.jsx(qo,{})})})]})}function U_(e,t){const n=Xf(e,t.tenantId),r=n.estimateStatus?.fetchState!=="In-Progress"?void 0:"readonly";return{localData:n,isDisabled:r}}function V_(e,t){const{tenantId:n,companyId:r,location:i,navigate:a}=t;return{onSubscriptionDetailsChanged:o=>{const{addPlan:d,invoiceOption:f}=o,{subscriptionPlan:v,recurringAddOns:s,coupon:l}=d,c={subscriptionPlanId:v.selectedOption??"",subscriptionAddOnIds:s.filter(y=>y.selectedOption!=null).map(y=>y.selectedOption),subscriptionCouponIds:l.selectedOption!=null?[l.selectedOption]:[],invoiceImmediately:f.invoicingOption!=null};d.planStartDate!=null&&(c.startDate=on(d.planStartDate.toString())),e(Qf({tenantId:n,subscriptionData:c}))},onEstimateSuccess:()=>{const o=fd(i.state?.pathnameStackToGoBack,i.pathname);a(`../tenants/${n}/companies/${r}/summary`,{state:{pathnameStackToGoBack:o}})},onReviewClick:()=>{e(sp(n))},onBackClick:()=>{a(`../tenants/${n}/companies/${r}`)},onResetClick:()=>{e(Wo(n))}}}const $_=ze(U_,V_)(Wp),z_=e=>{const{tenantId:t,companyId:n,location:r,navigate:i}=e;return U.jsx($_,{tenantId:t,companyId:n,location:r,navigate:i})};function G_(e,t){const{companyId:n,tenantId:r}=t,i=cp(e,n,r),a=i.fetchState!=="In-Progress";return{subscriptionDetailView:i,canUpdate:a}}function H_(e,t){const{tenantId:n,location:r,navigate:i}=t;return{onUpdateOrAddPlanClick:a=>{e(Wo(n,a)),e(lp()),e(fp()),e(dp()),a!=null?i(`${r.pathname}/update`):i(`${r.pathname}/add`)},onCloseClick:()=>{i("../")}}}const Z_=ze(G_,H_)(Yp),W_=e=>{const{tenantId:t,companyId:n,location:r,navigate:i}=e,a=We(),[o,d]=ce.useState(!1),f=Se(v=>v.subscriptionViewState.subscriptionDetailsByCompanyId[n]?.fetchStatus);return ce.useEffect(()=>{!o&&(f==null||f?.fetchState==="Not-Started")&&(d(!0),a(up(n)))},[o,f,n,a]),ce.useEffect(()=>{o&&f!=null&&f?.fetchState==="Error"&&i("../subscription")},[o,f]),U.jsx(Z_,{tenantId:t,companyId:n,location:r,navigate:i})};function Y_(e,t){return{subscriptionEstimateData:hp(e,t.tenantId)}}function J_(e,t){const{tenantId:n,companyId:r,location:i,navigate:a}=t,o=()=>{const d=Sm(i.state?.pathnameStackToGoBack),f=d.poppedPathname??Rm(1);a(f,{state:{pathnameStackToGoBack:d.newStack}})};return{onBackClick:()=>{o()},onCancelClick:()=>{o()},onConfirmClick:()=>{e(pp(n))},onConfirmSuccess:()=>{a(`../tenants/${n}/companies/${r}`)}}}const K_=ze(Y_,J_)(Jp),X_=e=>{const{tenantId:t,companyId:n,location:r,navigate:i}=e;return U.jsx(K_,{companyId:n,tenantId:t,location:r,navigate:i})};function Q_(e,t){const n=Xf(e,t.tenantId),r=n.estimateStatus.fetchState!=="In-Progress"?void 0:"readonly";return{localData:n,isDisabled:r}}function eb(e,t){const{tenantId:n,companyId:r,location:i,navigate:a}=t;return{onSubscriptionDetailsChanged:o=>{const{updatePlan:d,applyChanges:f}=o,{subscriptionPlan:v,recurringAddOns:s,coupon:l}=d,c={subscriptionPlanId:v.selectedOption??"",subscriptionAddOnIds:s.filter(y=>y.selectedOption!=null).map(y=>y.selectedOption),subscriptionCouponIds:l.selectedOption!=null?[l.selectedOption]:[],invoiceImmediately:!0,applyEndOfTerm:f.changeType==="applyEndOfTerm",shouldProrate:f.shouldProrate};e(Qf({tenantId:n,subscriptionData:c}))},onEstimateSuccess:()=>{const o=fd(i.state?.pathnameStackToGoBack,i.pathname);a(`../tenants/${n}/companies/${r}/summary`,{state:{pathnameStackToGoBack:o}})},onReviewClick:()=>{e(mp(n))},onBackClick:()=>{a(`../tenants/${n}/companies/${r}`)},onResetClick:o=>{e(Wo(n,o.subscription.subscription.subscriptionId))}}}const tb=ze(Q_,eb)(Kp),rb=e=>{const{tenantId:t,companyId:n,location:r,navigate:i}=e;return U.jsx(tb,{tenantId:t,companyId:n,location:r,navigate:i})},sh=["add","update","summary"],nb=e=>vp(e,sh),ib=e=>gp(e,sh),ab=()=>{const[e,t]=ce.useState(!0),{tenantId:n,companyId:r,updatePageType:i}=ot(),a=Be(),o=Se(f=>n!=null?f.subscriptionViewState.subscriptionUpdateViewDataByTenantId[n]:null);if(He.getSignedInUser()==null)throw Error("Can't access subscription details drawer without signing in...");return ce.useEffect(()=>{(o==null&&i!=null||ib(i??"")==null)&&a(`../tenants/${n}/companies/${r}`)},[o]),U.jsx(mr,{isOpen:e,onClose:()=>{t(!1),a("../subscription")},children:U.jsx(sb,{children:U.jsx(ob,{tenantId:n,companyId:r,updatePageType:i!=null?nb(i):void 0})})})},ob=({tenantId:e,companyId:t,updatePageType:n})=>{const r=Be(),i=Jo(),a={tenantId:e,companyId:t,navigate:r,location:i};if(n==null)return U.jsx(W_,{...a});switch(n){case"update":return U.jsx(rb,{...a});case"add":return U.jsx(z_,{...a});case"summary":return U.jsx(X_,{...a});default:return console.error("Subscription Update Page - Invalid Url"),U.jsx(ir,{to:"/",replace:!0})}},sb=tt(Zt)`
178
178
  display: flex;
179
179
  min-height: 100%;
180
- `;function ub(e,t){return{headerActions:{onTabChange:n=>{const r=kt(n),i=Ft(n);Fe.trackCockpitTabClicked(i),t.navigate(`../../${r}`,{replace:!0})},filterActions:{onFilterTextChanged:(n,r)=>{e(Gt({filterText:r}))},onFiltersChange:(n,r)=>{e(Gt({filters:r}))}}},subscriptionPageActions:{onColumnSortConfigChanged:(n,r)=>{e(Gt({sortKey:n,sortOrder:r}))},onCollapseToggled:(n,r)=>{e(Gt({isRowCollapseToggled:{companyId:n,isCollapsed:r}}))},onScroll:n=>{e(Gt({scrollYOffset:n}))},changeHandlers:(n,r)=>{const i=fb(r);Object.keys(i).length>0&&e($o(n,i))},onCompanyNameClicked:n=>window.open(`/${n.company.company.companyInfo.primaryEmailDomain}/dashboard`),onPassportIconClicked:n=>window.open(`/${n.company.company.companyInfo.primaryEmailDomain}/dashboard/company_details`),onPlanOrAddOnClicked:(n,r)=>{e(_p({tenantId:r})),t.navigate(`../tenants/${r}/companies/${n}`)},onFiltersChange:(n,r)=>{e(Gt({filters:r}))},onCockpitReloadData:n=>{n==="subscription"&&e(Ho())}}}}function cb(e,t){return{subscriptionPageData:{loggedInUser:t.signedInUser,subscriptionView:t.subscriptionView}}}const lb=ze(cb,ub)(Xp);function Do({isDrawerOpen:e}){const t=Be(),n=We(),r=Ut(),i=St(),a=Se(f=>yp(f)),o=Se(f=>f.companyViewState.zeniUsers.fetchState);ce.useEffect(()=>{a.fetchState==="Completed"?n(xt(!1)):(a.fetchState==="Not-Started"||a.fetchState==="Error")&&(n(Ho()),(o==="Not-Started"||o==="Error")&&n(Ct()))},[a.fetchState]);const d=He.getSignedInUser();return U.jsxs(U.Fragment,{children:[e===!0?U.jsx(ab,{}):null,U.jsx(lb,{headerData:{allTabOptions:i,selectedTabOption:Et("subscription")},initialOpenThreadRequest:r??void 0,signedInUser:d,subscriptionView:a,navigate:t})]})}const fb=e=>{const{users:t}=e;return t?{users:t}:{}};function db(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/tenants/:tenantId/companies/:companyId",element:U.jsx(ke,{element:U.jsx(Do,{isDrawerOpen:!0})})}),U.jsx(Te,{path:"/tenants/:tenantId/companies/:companyId/:updatePageType",element:U.jsx(ke,{element:U.jsx(Do,{isDrawerOpen:!0})})}),U.jsx(Te,{path:"/*",element:U.jsx(ke,{element:U.jsx(Do,{})})})]})}function hb(e,t){const{navigate:n}=t;return{headerActions:{onTabChange:r=>{const i=kt(r);n(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(r,i)=>{e(Es({filterText:i}))},onFiltersChange:(r,i)=>{e(Es({filters:i}))}}},taskManagerPageActions:{onRowClick:(r,i)=>{window.open(`/${r}/tasks/${i}`)},onCockpitReloadData:r=>{r==="taskManager"&&e(No(0,"dueDate","descending",!1))},onFetchTaskManagerView:(r,i,a,o,d,f)=>{e(No(r,i,a,o,d,f))}}}}function pb(e,t){return{isBirdsEyeViewEnabled:t.isBirdsEyeViewEnabled,taskManagerPageData:{companyTaskManagerView:t.companyTaskManagerView}}}const mb=ze(pb,hb)(Qp);function Pf(){const e=Be(),t=We(),n=Ut(),r=St(),{useFeatureGate:i}=wt(),{isFeatureEnabled:a}=i(yn.isBirdsEyeViewEnabled),o=Se(l=>bp(l)),d=Se(l=>wp(l)),f=Se(l=>l.companyViewState.zeniUsers.fetchState);if(ce.useEffect(()=>{o.fetchState==="Completed"?t(xt(!1)):o.fetchState==="Not-Started"&&(t(No(0,"dueDate","descending",!1)),t(Ep()),(f==="Not-Started"||f==="Error")&&t(Ct()))},[o.fetchState]),ce.useEffect(()=>{a&&(o.metricsFetchState==="Not-Started"||o.metricsFetchState==="Error")&&t(Sp())},[a,o.metricsFetchState]),He.getSignedInUser()==null)throw Error("Can't access task manager page without signing in...");const s=ce.useMemo(()=>({allTabOptions:r,selectedTabOption:Et("taskManager")}),[r]);return U.jsx(mb,{headerData:s,companyTaskManagerView:o,isBirdsEyeViewEnabled:a,initialOpenThreadRequest:n,navigate:e,reviewCount:d})}function gb(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/",element:U.jsx(ke,{element:U.jsx(Pf,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(ke,{element:U.jsx(Pf,{})})})]})}const vb=sd(()=>ed(()=>import("./CreditAgentRoutes-BLO6Skx9.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15])));let jf=!1;const yb=sd(()=>ed(()=>Promise.resolve().then(()=>Jm),void 0));function _b(){const e=He.getSignedInUser(),t=Bt().mode;return ce.useEffect(()=>{He.isSignedIn()&&!jf&&e!=null&&(em(e,t),jf=!0)},[e]),U.jsxs(gt,{children:[U.jsx(Te,{path:"/ai-accountant/*",element:U.jsx(Om,{})}),U.jsx(Te,{path:"/management/*",element:U.jsx(ng,{})}),U.jsx(Te,{path:"/subscription/*",element:U.jsx(db,{})}),U.jsx(Te,{path:"/onboarding/*",element:U.jsx(g_,{})}),U.jsx(Te,{path:"/portfolio/*",element:U.jsx(b_,{})}),U.jsx(Te,{path:"/audit/*",element:U.jsx(B_,{})}),U.jsx(Te,{path:"/reconciliation/*",element:U.jsx(C_,{})}),U.jsx(Te,{path:"/health-monitor/*",element:U.jsx(Cm,{})}),U.jsx(Te,{path:"/task-manager/*",element:U.jsx(gb,{})}),U.jsx(Te,{path:"/credit-agent/*",element:U.jsx(vb,{})}),U.jsx(Te,{path:"/*",element:U.jsx(yb,{})})]})}const kb=Object.freeze(Object.defineProperty({__proto__:null,default:_b},Symbol.toStringTag,{value:"Module"}));export{ke as P,kb as S,bm as u};
180
+ `;function ub(e,t){return{headerActions:{onTabChange:n=>{const r=kt(n),i=Ft(n);Fe.trackCockpitTabClicked(i),t.navigate(`../../${r}`,{replace:!0})},filterActions:{onFilterTextChanged:(n,r)=>{e(Gt({filterText:r}))},onFiltersChange:(n,r)=>{e(Gt({filters:r}))}}},subscriptionPageActions:{onColumnSortConfigChanged:(n,r)=>{e(Gt({sortKey:n,sortOrder:r}))},onCollapseToggled:(n,r)=>{e(Gt({isRowCollapseToggled:{companyId:n,isCollapsed:r}}))},onScroll:n=>{e(Gt({scrollYOffset:n}))},changeHandlers:(n,r)=>{const i=fb(r);Object.keys(i).length>0&&e($o(n,i))},onCompanyNameClicked:n=>window.open(`/${n.company.company.companyInfo.primaryEmailDomain}/dashboard`),onPassportIconClicked:n=>window.open(`/${n.company.company.companyInfo.primaryEmailDomain}/dashboard/company_details`),onPlanOrAddOnClicked:(n,r)=>{e(_p({tenantId:r})),t.navigate(`../tenants/${r}/companies/${n}`)},onFiltersChange:(n,r)=>{e(Gt({filters:r}))},onCockpitReloadData:n=>{n==="subscription"&&e(Ho())}}}}function cb(e,t){return{subscriptionPageData:{loggedInUser:t.signedInUser,subscriptionView:t.subscriptionView}}}const lb=ze(cb,ub)(Xp);function Do({isDrawerOpen:e}){const t=Be(),n=We(),r=Ut(),i=St(),a=Se(f=>yp(f)),o=Se(f=>f.companyViewState.zeniUsers.fetchState);ce.useEffect(()=>{a.fetchState==="Completed"?n(xt(!1)):(a.fetchState==="Not-Started"||a.fetchState==="Error")&&(n(Ho()),(o==="Not-Started"||o==="Error")&&n(Ct()))},[a.fetchState]);const d=He.getSignedInUser();return U.jsxs(U.Fragment,{children:[e===!0?U.jsx(ab,{}):null,U.jsx(lb,{headerData:{allTabOptions:i,selectedTabOption:Et("subscription")},initialOpenThreadRequest:r??void 0,signedInUser:d,subscriptionView:a,navigate:t})]})}const fb=e=>{const{users:t}=e;return t?{users:t}:{}};function db(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/tenants/:tenantId/companies/:companyId",element:U.jsx(ke,{element:U.jsx(Do,{isDrawerOpen:!0})})}),U.jsx(Te,{path:"/tenants/:tenantId/companies/:companyId/:updatePageType",element:U.jsx(ke,{element:U.jsx(Do,{isDrawerOpen:!0})})}),U.jsx(Te,{path:"/*",element:U.jsx(ke,{element:U.jsx(Do,{})})})]})}function hb(e,t){const{navigate:n}=t;return{headerActions:{onTabChange:r=>{const i=kt(r);n(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(r,i)=>{e(Es({filterText:i}))},onFiltersChange:(r,i)=>{e(Es({filters:i}))}}},taskManagerPageActions:{onRowClick:(r,i)=>{window.open(`/${r}/tasks/${i}`)},onCockpitReloadData:r=>{r==="taskManager"&&e(No(0,"dueDate","descending",!1))},onFetchTaskManagerView:(r,i,a,o,d,f)=>{e(No(r,i,a,o,d,f))}}}}function pb(e,t){return{isBirdsEyeViewEnabled:t.isBirdsEyeViewEnabled,taskManagerPageData:{companyTaskManagerView:t.companyTaskManagerView}}}const mb=ze(pb,hb)(Qp);function Pf(){const e=Be(),t=We(),n=Ut(),r=St(),{useFeatureGate:i}=wt(),{isFeatureEnabled:a}=i(yn.isBirdsEyeViewEnabled),o=Se(l=>bp(l)),d=Se(l=>wp(l)),f=Se(l=>l.companyViewState.zeniUsers.fetchState);if(ce.useEffect(()=>{o.fetchState==="Completed"?t(xt(!1)):o.fetchState==="Not-Started"&&(t(No(0,"dueDate","descending",!1)),t(Ep()),(f==="Not-Started"||f==="Error")&&t(Ct()))},[o.fetchState]),ce.useEffect(()=>{a&&(o.metricsFetchState==="Not-Started"||o.metricsFetchState==="Error")&&t(Sp())},[a,o.metricsFetchState]),He.getSignedInUser()==null)throw Error("Can't access task manager page without signing in...");const s=ce.useMemo(()=>({allTabOptions:r,selectedTabOption:Et("taskManager")}),[r]);return U.jsx(mb,{headerData:s,companyTaskManagerView:o,isBirdsEyeViewEnabled:a,initialOpenThreadRequest:n,navigate:e,reviewCount:d})}function gb(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/",element:U.jsx(ke,{element:U.jsx(Pf,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(ke,{element:U.jsx(Pf,{})})})]})}const vb=sd(()=>ed(()=>import("./CreditAgentRoutes-B5J6cqJa.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15])));let jf=!1;const yb=sd(()=>ed(()=>Promise.resolve().then(()=>Jm),void 0));function _b(){const e=He.getSignedInUser(),t=Bt().mode;return ce.useEffect(()=>{He.isSignedIn()&&!jf&&e!=null&&(em(e,t),jf=!0)},[e]),U.jsxs(gt,{children:[U.jsx(Te,{path:"/ai-accountant/*",element:U.jsx(Om,{})}),U.jsx(Te,{path:"/management/*",element:U.jsx(ng,{})}),U.jsx(Te,{path:"/subscription/*",element:U.jsx(db,{})}),U.jsx(Te,{path:"/onboarding/*",element:U.jsx(g_,{})}),U.jsx(Te,{path:"/portfolio/*",element:U.jsx(b_,{})}),U.jsx(Te,{path:"/audit/*",element:U.jsx(B_,{})}),U.jsx(Te,{path:"/reconciliation/*",element:U.jsx(C_,{})}),U.jsx(Te,{path:"/health-monitor/*",element:U.jsx(Cm,{})}),U.jsx(Te,{path:"/task-manager/*",element:U.jsx(gb,{})}),U.jsx(Te,{path:"/credit-agent/*",element:U.jsx(vb,{})}),U.jsx(Te,{path:"/*",element:U.jsx(yb,{})})]})}const kb=Object.freeze(Object.defineProperty({__proto__:null,default:_b},Symbol.toStringTag,{value:"Module"}));export{ke as P,kb as S,bm as u};