From 3b42ec32224882e058829181a049dbb319f5a15d Mon Sep 17 00:00:00 2001 From: B <10003477+constructor-s@users.noreply.github.com> Date: Sun, 31 Dec 2023 23:11:51 -0500 Subject: [PATCH] Build 20231231 v3 --- docs/404.html | 1 + .../static/chunks/141-700a42fd7b6f8ff1.js | 13 ++++++ .../static/chunks/250-708de5d36ae8ecbe.js | 1 + .../static/chunks/938-941dd3d7d79f1a19.js | 1 + .../chunks/app/_not-found-ef9f5383417ee6a1.js | 1 + .../[slideId]/page-da02547899cc9717.js | 1 + .../chunks/app/layout-d8755d790bbacd8a.js | 1 + .../chunks/app/page-4d901a5e0c73ffc8.js | 1 + .../chunks/fd9d1056-88acd27bac859e5d.js | 1 + .../chunks/framework-8883d1e9be70c3da.js | 25 ++++++++++ .../static/chunks/main-96dfc1f0c3e66a76.js | 1 + .../chunks/main-app-45d812afa0e2e880.js | 1 + .../chunks/pages/_app-98cb51ec6f9f135f.js | 1 + .../chunks/pages/_error-e87e5963ec1b8011.js | 1 + .../chunks/polyfills-c67a75d1b6f99dc8.js | 1 + .../static/chunks/webpack-fbad14d54162d3da.js | 1 + docs/_next/static/css/7dfc3839c118b0fb.css | 3 ++ .../static/media/05a31a2ca4975f99-s.woff2 | Bin 0 -> 10496 bytes .../static/media/513657b02c5c193f-s.woff2 | Bin 0 -> 17612 bytes .../static/media/51ed15f9841b9f9d-s.woff2 | Bin 0 -> 22524 bytes .../static/media/c9a5bc6a7c948fb0-s.p.woff2 | Bin 0 -> 46552 bytes .../static/media/d6b16ce4a6175f26-s.woff2 | Bin 0 -> 80044 bytes .../static/media/ec159349637c90ad-s.woff2 | Bin 0 -> 27316 bytes .../static/media/fd4db3eb5472fc27-s.woff2 | Bin 0 -> 12768 bytes .../nydV-Rm6YFTSBkJLT4gLy/_buildManifest.js | 1 + .../nydV-Rm6YFTSBkJLT4gLy/_ssgManifest.js | 1 + docs/assistant.svg | 12 +++++ docs/back.svg | 7 +++ docs/cancel.svg | 6 +++ docs/chat/CBL52-1/0.html | 1 + docs/chat/CBL52-1/0.txt | 44 ++++++++++++++++++ docs/chat/CBL52-1/1.html | 1 + docs/chat/CBL52-1/1.txt | 9 ++++ docs/chat/CBL52-1/2.html | 1 + docs/chat/CBL52-1/2.txt | 9 ++++ docs/favicon.ico | Bin 0 -> 25931 bytes docs/home.svg | 7 +++ docs/index.html | 1 + docs/index.txt | 6 +++ docs/link.svg | 12 +++++ docs/next.svg | 1 + docs/refresh.svg | 4 ++ docs/send.svg | 4 ++ docs/vercel.svg | 1 + 44 files changed, 183 insertions(+) create mode 100644 docs/404.html create mode 100644 docs/_next/static/chunks/141-700a42fd7b6f8ff1.js create mode 100644 docs/_next/static/chunks/250-708de5d36ae8ecbe.js create mode 100644 docs/_next/static/chunks/938-941dd3d7d79f1a19.js create mode 100644 docs/_next/static/chunks/app/_not-found-ef9f5383417ee6a1.js create mode 100644 docs/_next/static/chunks/app/chat/[caseId]/[slideId]/page-da02547899cc9717.js create mode 100644 docs/_next/static/chunks/app/layout-d8755d790bbacd8a.js create mode 100644 docs/_next/static/chunks/app/page-4d901a5e0c73ffc8.js create mode 100644 docs/_next/static/chunks/fd9d1056-88acd27bac859e5d.js create mode 100644 docs/_next/static/chunks/framework-8883d1e9be70c3da.js create mode 100644 docs/_next/static/chunks/main-96dfc1f0c3e66a76.js create mode 100644 docs/_next/static/chunks/main-app-45d812afa0e2e880.js create mode 100644 docs/_next/static/chunks/pages/_app-98cb51ec6f9f135f.js create mode 100644 docs/_next/static/chunks/pages/_error-e87e5963ec1b8011.js create mode 100644 docs/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js create mode 100644 docs/_next/static/chunks/webpack-fbad14d54162d3da.js create mode 100644 docs/_next/static/css/7dfc3839c118b0fb.css create mode 100644 docs/_next/static/media/05a31a2ca4975f99-s.woff2 create mode 100644 docs/_next/static/media/513657b02c5c193f-s.woff2 create mode 100644 docs/_next/static/media/51ed15f9841b9f9d-s.woff2 create mode 100644 docs/_next/static/media/c9a5bc6a7c948fb0-s.p.woff2 create mode 100644 docs/_next/static/media/d6b16ce4a6175f26-s.woff2 create mode 100644 docs/_next/static/media/ec159349637c90ad-s.woff2 create mode 100644 docs/_next/static/media/fd4db3eb5472fc27-s.woff2 create mode 100644 docs/_next/static/nydV-Rm6YFTSBkJLT4gLy/_buildManifest.js create mode 100644 docs/_next/static/nydV-Rm6YFTSBkJLT4gLy/_ssgManifest.js create mode 100644 docs/assistant.svg create mode 100644 docs/back.svg create mode 100644 docs/cancel.svg create mode 100644 docs/chat/CBL52-1/0.html create mode 100644 docs/chat/CBL52-1/0.txt create mode 100644 docs/chat/CBL52-1/1.html create mode 100644 docs/chat/CBL52-1/1.txt create mode 100644 docs/chat/CBL52-1/2.html create mode 100644 docs/chat/CBL52-1/2.txt create mode 100644 docs/favicon.ico create mode 100644 docs/home.svg create mode 100644 docs/index.html create mode 100644 docs/index.txt create mode 100644 docs/link.svg create mode 100644 docs/next.svg create mode 100644 docs/refresh.svg create mode 100644 docs/send.svg create mode 100644 docs/vercel.svg diff --git a/docs/404.html b/docs/404.html new file mode 100644 index 0000000..0b1745f --- /dev/null +++ b/docs/404.html @@ -0,0 +1 @@ +404: This page could not be found.Casemate

404

This page could not be found.

\ No newline at end of file diff --git a/docs/_next/static/chunks/141-700a42fd7b6f8ff1.js b/docs/_next/static/chunks/141-700a42fd7b6f8ff1.js new file mode 100644 index 0000000..d0c1f88 --- /dev/null +++ b/docs/_next/static/chunks/141-700a42fd7b6f8ff1.js @@ -0,0 +1,13 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[141],{2601:function(e,t,r){"use strict";var n,s;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(s=r.g.process)?void 0:s.env)?r.g.process:r(8960)},1749:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return y}});let n=r(1024),s=r(8533)._(r(2265)),i=n._(r(4887)),o=n._(r(2251)),a=r(8630),u=r(6906),l=r(337);r(6184);let c=r(6993),f=n._(r(536)),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function d(e,t,r,n,s,i){let o=null==e?void 0:e.src;e&&e["data-loaded-src"]!==o&&(e["data-loaded-src"]=o,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&s(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,s=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>s,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{s=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}}))}function p(e){let[t,r]=s.version.split(".",2),n=parseInt(t,10),i=parseInt(r,10);return n>18||18===n&&i>=3?{fetchPriority:e}:{fetchpriority:e}}let m=(0,s.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:i,height:o,width:a,decoding:u,className:l,style:c,fetchPriority:f,placeholder:h,loading:m,unoptimized:g,fill:y,onLoadRef:w,onLoadingCompleteRef:b,setBlurComplete:v,setShowAltText:_,onLoad:E,onError:x,...A}=e;return s.default.createElement("img",{...A,...p(f),loading:m,width:a,height:o,decoding:u,"data-nimg":y?"fill":"1",className:l,style:c,sizes:i,srcSet:n,src:r,ref:(0,s.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(x&&(e.src=e.src),e.complete&&d(e,h,w,b,v,g))},[r,h,w,b,v,x,g,t]),onLoad:e=>{d(e.currentTarget,h,w,b,v,g)},onError:e=>{_(!0),"empty"!==h&&v(!0),x&&x(e)}})});function g(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...p(r.fetchPriority)};return t&&i.default.preload?(i.default.preload(r.src,n),null):s.default.createElement(o.default,null,s.default.createElement("link",{key:"__nimg-"+r.src+r.srcSet+r.sizes,rel:"preload",href:r.srcSet?void 0:r.src,...n}))}let y=(0,s.forwardRef)((e,t)=>{let r=(0,s.useContext)(c.RouterContext),n=(0,s.useContext)(l.ImageConfigContext),i=(0,s.useMemo)(()=>{let e=h||n||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r}},[n]),{onLoad:o,onLoadingComplete:d}=e,p=(0,s.useRef)(o);(0,s.useEffect)(()=>{p.current=o},[o]);let y=(0,s.useRef)(d);(0,s.useEffect)(()=>{y.current=d},[d]);let[w,b]=(0,s.useState)(!1),[v,_]=(0,s.useState)(!1),{props:E,meta:x}=(0,a.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:w,showAltText:v});return s.default.createElement(s.default.Fragment,null,s.default.createElement(m,{...E,unoptimized:x.unoptimized,placeholder:x.placeholder,fill:x.fill,onLoadRef:p,onLoadingCompleteRef:y,setBlurComplete:b,setShowAltText:_,ref:t}),x.priority?s.default.createElement(g,{isAppRouter:!r,imgAttributes:E}):null)});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2595:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=r(1024)._(r(2265)).default.createContext({})},3044:function(e,t){"use strict";function r(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return r}})},8630:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return a}}),r(6184);let n=r(7160),s=r(6906);function i(e){return void 0!==e.default}function o(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function a(e,t){var r;let a,u,l,{src:c,sizes:f,unoptimized:h=!1,priority:d=!1,loading:p,className:m,quality:g,width:y,height:w,fill:b=!1,style:v,onLoad:_,onLoadingComplete:E,placeholder:x="empty",blurDataURL:A,fetchPriority:S,layout:P,objectFit:C,objectPosition:I,lazyBoundary:R,lazyRoot:O,...B}=e,{imgConf:T,showAltText:k,blurComplete:$,defaultLoader:j}=t,M=T||s.imageConfigDefault;if("allSizes"in M)a=M;else{let e=[...M.deviceSizes,...M.imageSizes].sort((e,t)=>e-t),t=M.deviceSizes.sort((e,t)=>e-t);a={...M,allSizes:e,deviceSizes:t}}let L=B.loader||j;delete B.loader,delete B.srcSet;let U="__next_img_default"in L;if(U){if("custom"===a.loader)throw Error('Image with src "'+c+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=L;L=t=>{let{config:r,...n}=t;return e(n)}}if(P){"fill"===P&&(b=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[P];e&&(v={...v,...e});let t={responsive:"100vw",fill:"100vw"}[P];t&&!f&&(f=t)}let F="",N=o(y),D=o(w);if("object"==typeof(r=c)&&(i(r)||void 0!==r.src)){let e=i(c)?c.default:c;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(u=e.blurWidth,l=e.blurHeight,A=A||e.blurDataURL,F=e.src,!b){if(N||D){if(N&&!D){let t=N/e.width;D=Math.round(e.height*t)}else if(!N&&D){let t=D/e.height;N=Math.round(e.width*t)}}else N=e.width,D=e.height}}let q=!d&&("lazy"===p||void 0===p);(!(c="string"==typeof c?c:F)||c.startsWith("data:")||c.startsWith("blob:"))&&(h=!0,q=!1),a.unoptimized&&(h=!0),U&&c.endsWith(".svg")&&!a.dangerouslyAllowSVG&&(h=!0),d&&(S="high");let W=o(g),z=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:C,objectPosition:I}:{},k?{}:{color:"transparent"},v),X=$||"empty"===x?null:"blur"===x?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:N,heightInt:D,blurWidth:u,blurHeight:l,blurDataURL:A||"",objectFit:z.objectFit})+'")':'url("'+x+'")',H=X?{backgroundSize:z.objectFit||"cover",backgroundPosition:z.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:X}:{},J=function(e){let{config:t,src:r,unoptimized:n,width:s,quality:i,sizes:o,loader:a}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:u,kind:l}=function(e,t,r){let{deviceSizes:n,allSizes:s}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);n)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:s.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:s,kind:"w"}}return"number"!=typeof t?{widths:n,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>s.find(t=>t>=e)||s[s.length-1]))],kind:"x"}}(t,s,o),c=u.length-1;return{sizes:o||"w"!==l?o:"100vw",srcSet:u.map((e,n)=>a({config:t,src:r,quality:i,width:e})+" "+("w"===l?e:n+1)+l).join(", "),src:a({config:t,src:r,quality:i,width:u[c]})}}({config:a,src:c,unoptimized:h,width:N,quality:W,sizes:f,loader:L});return{props:{...B,loading:q?"lazy":p,fetchPriority:S,width:N,height:D,decoding:"async",className:m,style:{...z,...H},sizes:J.sizes,srcSet:J.srcSet,src:J.src},meta:{unoptimized:h,priority:d,placeholder:x,fill:b}}}},2251:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{defaultHead:function(){return l},default:function(){return d}});let n=r(1024),s=r(8533)._(r(2265)),i=n._(r(7392)),o=r(2595),a=r(3634),u=r(3044);function l(e){void 0===e&&(e=!1);let t=[s.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(s.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function c(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===s.default.Fragment?e.concat(s.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(6184);let f=["name","httpEquiv","charSet","itemProp"];function h(e,t){let{inAmpMode:r}=t;return e.reduce(c,[]).reverse().concat(l(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return s=>{let i=!0,o=!1;if(s.key&&"number"!=typeof s.key&&s.key.indexOf("$")>0){o=!0;let t=s.key.slice(s.key.indexOf("$")+1);e.has(t)?i=!1:e.add(t)}switch(s.type){case"title":case"base":t.has(s.type)?i=!1:t.add(s.type);break;case"meta":for(let e=0,t=f.length;e{let n=e.key||t;if(!r&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,s.default.cloneElement(e,t)}return s.default.cloneElement(e,{key:n})})}let d=function(e){let{children:t}=e,r=(0,s.useContext)(o.AmpStateContext),n=(0,s.useContext)(a.HeadManagerContext);return s.default.createElement(i.default,{reduceComponentsToState:h,headManager:n,inAmpMode:(0,u.isInAmpMode)(r)},t)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7160:function(e,t){"use strict";function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:s,blurDataURL:i,objectFit:o}=e,a=n?40*n:t,u=s?40*s:r,l=a&&u?"viewBox='0 0 "+a+" "+u+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+l+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(l?"none":"contain"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+i+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},337:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return i}});let n=r(1024)._(r(2265)),s=r(6906),i=n.default.createContext(s.imageConfigDefault)},6906:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});let r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}},7447:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{unstable_getImgProps:function(){return u},default:function(){return l}});let n=r(1024),s=r(8630),i=r(6184),o=r(1749),a=n._(r(536)),u=e=>{(0,i.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");let{props:t}=(0,s.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}},l=o.Image},536:function(e,t){"use strict";function r(e){let{config:t,src:r,width:n,quality:s}=e;return t.path+"?url="+encodeURIComponent(r)+"&w="+n+"&q="+(s||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},7392:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let n=r(2265),s=n.useLayoutEffect,i=n.useEffect;function o(e){let{headManager:t,reduceComponentsToState:r}=e;function o(){if(t&&t.mountedInstances){let s=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(s,e))}}return s(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),s(()=>(t&&(t._pendingUpdate=o),()=>{t&&(t._pendingUpdate=o)})),i(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},6184:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},263:function(e){!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,i=u(e),o=i[0],a=i[1],l=new s((o+a)*3/4-a),c=0,f=a>0?o-4:o;for(r=0;r>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===a&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,l[c++]=255&t),1===a&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l},t.fromByteArray=function(e){for(var t,n=e.length,s=n%3,i=[],o=0,a=n-s;o>18&63]+r[s>>12&63]+r[s>>6&63]+r[63&s]);return i.join("")}(e,o,o+16383>a?a:o+16383));return 1===s?i.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===s&&i.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),i.join("")};for(var r=[],n=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=i.length;o0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},72:function(e,t,r){"use strict";/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */var n=r(675),s=r(783),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!a.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|d(e,t),n=o(r),s=n.write(e,t);return s!==r&&(n=n.slice(0,s)),n}(e,t);if(ArrayBuffer.isView(e))return f(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(R(e,ArrayBuffer)||e&&R(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(R(e,SharedArrayBuffer)||e&&R(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(t<0||e.byteLength=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function d(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||R(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var s=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return S(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return C(e).length;default:if(s)return n?-1:S(e).length;t=(""+t).toLowerCase(),s=!0}}function p(e,t,r){var s,i,o=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var s="",i=t;i2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(i=r=+r)!=i&&(r=s?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(s)return -1;r=e.length-1}else if(r<0){if(!s)return -1;r=0}if("string"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,s);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?s?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,s);throw TypeError("val must be string, number or Buffer")}function y(e,t,r,n,s){var i,o=1,a=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;o=2,a/=2,u/=2,r/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(s){var c=-1;for(i=r;ia&&(r=a-u),i=r;i>=0;i--){for(var f=!0,h=0;h239?4:l>223?3:l>191?2:1;if(s+f<=r)switch(f){case 1:l<128&&(c=l);break;case 2:(192&(i=e[s+1]))==128&&(u=(31&l)<<6|63&i)>127&&(c=u);break;case 3:i=e[s+1],o=e[s+2],(192&i)==128&&(192&o)==128&&(u=(15&l)<<12|(63&i)<<6|63&o)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:i=e[s+1],o=e[s+2],a=e[s+3],(192&i)==128&&(192&o)==128&&(192&a)==128&&(u=(15&l)<<18|(63&i)<<12|(63&o)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),s+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;nr)throw RangeError("Trying to access beyond buffer length")}function v(e,t,r,n,s,i){if(!a.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>s||te.length)throw RangeError("Index out of range")}function _(e,t,r,n,s,i){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function E(e,t,r,n,i){return t=+t,r>>>=0,i||_(e,t,r,4,34028234663852886e22,-34028234663852886e22),s.write(e,t,r,n,23,4),r+4}function x(e,t,r,n,i){return t=+t,r>>>=0,i||_(e,t,r,8,17976931348623157e292,-17976931348623157e292),s.write(e,t,r,n,52,8),r+8}t.Buffer=a,t.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,a.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,r){return u(e,t,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,r){return(l(e),e<=0)?o(e):void 0!==t?"string"==typeof r?o(e).fill(t,r):o(e).fill(t):o(e)},a.allocUnsafe=function(e){return c(e)},a.allocUnsafeSlow=function(e){return c(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(R(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),R(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,s=0,i=Math.min(r,n);sr&&(e+=" ... "),""},i&&(a.prototype[i]=a.prototype.inspect),a.prototype.compare=function(e,t,r,n,s){if(R(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===s&&(s=this.length),t<0||r>e.length||n<0||s>this.length)throw RangeError("out of range index");if(n>=s&&t>=r)return 0;if(n>=s)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,s>>>=0,this===e)return 0;for(var i=s-n,o=r-t,u=Math.min(i,o),l=this.slice(n,s),c=e.slice(t,r),f=0;f>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var s,i,o,a,u,l,c,f,h,d,p,m,g=this.length-t;if((void 0===r||r>g)&&(r=g),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var y=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var s=e.length-r;n?(n=Number(n))>s&&(n=s):n=s;var i=t.length;n>i/2&&(n=i/2);for(var o=0;o>8,s.push(r%256),s.push(n);return s}(e,this.length-p),this,p,m);default:if(y)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),y=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],s=1,i=0;++i>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e+--t],s=1;t>0&&(s*=256);)n+=this[e+--t]*s;return n},a.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],s=1,i=0;++i=(s*=128)&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=t,s=1,i=this[e+--n];n>0&&(s*=256);)i+=this[e+--n]*s;return i>=(s*=128)&&(i-=Math.pow(2,8*t)),i},a.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),s.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),s.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),s.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),s.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var s=Math.pow(2,8*r)-1;v(this,e,t,r,s,0)}var i=1,o=0;for(this[t]=255&e;++o>>=0,r>>>=0,!n){var s=Math.pow(2,8*r)-1;v(this,e,t,r,s,0)}var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},a.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var s=Math.pow(2,8*r-1);v(this,e,t,r,s-1,-s)}var i=0,o=1,a=0;for(this[t]=255&e;++i>0)-a&255;return t+r},a.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var s=Math.pow(2,8*r-1);v(this,e,t,r,s-1,-s)}var i=r-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,r){return E(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return E(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return x(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return x(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return s},a.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var s,i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(s=t;s55295&&r<57344){if(!s){if(r>56319||o+1===n){(t-=3)>-1&&i.push(239,191,189);continue}s=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),s=r;continue}r=(s-55296<<10|r-56320)+65536}else s&&(t-=3)>-1&&i.push(239,191,189);if(s=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function P(e){for(var t=[],r=0;r=t.length)&&!(s>=e.length);++s)t[s+r]=e[s];return s}function R(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var O=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,s=0;s<16;++s)t[n+s]=e[r]+e[s];return t}()},783:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */t.read=function(e,t,r,n,s){var i,o,a=8*s-n-1,u=(1<>1,c=-7,f=r?s-1:0,h=r?-1:1,d=e[t+f];for(f+=h,i=d&(1<<-c)-1,d>>=-c,c+=a;c>0;i=256*i+e[t+f],f+=h,c-=8);for(o=i&(1<<-c)-1,i>>=-c,c+=n;c>0;o=256*o+e[t+f],f+=h,c-=8);if(0===i)i=1-l;else{if(i===u)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,n),i-=l}return(d?-1:1)*o*Math.pow(2,i-n)},t.write=function(e,t,r,n,s,i){var o,a,u,l=8*i-s-1,c=(1<>1,h=23===s?5960464477539062e-23:0,d=n?0:i-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(a=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+f>=1?t+=h/u:t+=h*Math.pow(2,1-f),t*u>=2&&(o++,u/=2),o+f>=c?(a=0,o=c):o+f>=1?(a=(t*u-1)*Math.pow(2,s),o+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,s),o=0));s>=8;e[r+d]=255&a,d+=p,a/=256,s-=8);for(o=o<0;e[r+d]=255&o,d+=p,o/=256,l-=8);e[r+d-p]|=128*m}}},r={};function n(e){var s=r[e];if(void 0!==s)return s.exports;var i=r[e]={exports:{}},o=!0;try{t[e](i,i.exports,n),o=!1}finally{o&&delete r[e]}return i.exports}n.ab="//";var s=n(72);e.exports=s}()},8960:function(e){!function(){var t={229:function(e){var t,r,n,s=e.exports={};function i(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var u=[],l=!1,c=-1;function f(){l&&n&&(l=!1,n.length?u=n.concat(u):c=-1,u.length&&h())}function h(){if(!l){var e=a(f);l=!0;for(var t=u.length;t;){for(n=u,u=[];++c1)for(var r=1;r({...t,body:new Z(e)}),getDefaultAgent:e=>void 0,fileFromPath:()=>{throw Error("The `fileFromPath` function is only supported in Node. See the README for more details: https://www.github.com/openai/openai-node#file-uploads")},isFsReadStream:e=>!1}}(),{auto:!0});class ee extends Error{}class et extends ee{constructor(e,t,r,n){super(`${et.makeMessage(e,t,r)}`),this.status=e,this.headers=n,this.error=t,this.code=t?.code,this.param=t?.param,this.type=t?.type}static makeMessage(e,t,r){let n=t?.message?"string"==typeof t.message?t.message:JSON.stringify(t.message):t?JSON.stringify(t):r;return e&&n?`${e} ${n}`:e?`${e} status code (no body)`:n||"(no status code or body)"}static generate(e,t,r,n){if(!e)return new en({cause:eZ(t)});let s=t?.error;return 400===e?new ei(e,s,r,n):401===e?new eo(e,s,r,n):403===e?new ea(e,s,r,n):404===e?new eu(e,s,r,n):409===e?new el(e,s,r,n):422===e?new ec(e,s,r,n):429===e?new ef(e,s,r,n):e>=500?new eh(e,s,r,n):new et(e,s,r,n)}}class er extends et{constructor({message:e}={}){super(void 0,void 0,e||"Request was aborted.",void 0),this.status=void 0}}class en extends et{constructor({message:e,cause:t}){super(void 0,void 0,e||"Connection error.",void 0),this.status=void 0,t&&(this.cause=t)}}class es extends en{constructor({message:e}={}){super({message:e??"Request timed out."})}}class ei extends et{constructor(){super(...arguments),this.status=400}}class eo extends et{constructor(){super(...arguments),this.status=401}}class ea extends et{constructor(){super(...arguments),this.status=403}}class eu extends et{constructor(){super(...arguments),this.status=404}}class el extends et{constructor(){super(...arguments),this.status=409}}class ec extends et{constructor(){super(...arguments),this.status=422}}class ef extends et{constructor(){super(...arguments),this.status=429}}class eh extends et{}var ed=r(263).Buffer;class ep{constructor(e,t){this.iterator=e,this.controller=t}static fromSSEResponse(e,t){let r=!1,n=new em;async function*s(){if(!e.body)throw t.abort(),new ee("Attempted to iterate over a response with no body");let r=new eg;for await(let t of ey(e.body))for(let e of r.decode(t)){let t=n.decode(e);t&&(yield t)}for(let e of r.flush()){let t=n.decode(e);t&&(yield t)}}return new ep(async function*(){if(r)throw Error("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");r=!0;let e=!1;try{for await(let t of s())if(!e){if(t.data.startsWith("[DONE]")){e=!0;continue}if(null===t.event){let e;try{e=JSON.parse(t.data)}catch(e){throw console.error("Could not parse message into JSON:",t.data),console.error("From chunk:",t.raw),e}if(e&&e.error)throw new et(void 0,e.error,void 0,void 0);yield e}}e=!0}catch(e){if(e instanceof Error&&"AbortError"===e.name)return;throw e}finally{e||t.abort()}},t)}static fromReadableStream(e,t){let r=!1;async function*n(){let t=new eg;for await(let r of ey(e))for(let e of t.decode(r))yield e;for(let e of t.flush())yield e}return new ep(async function*(){if(r)throw Error("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");r=!0;let e=!1;try{for await(let t of n())!e&&t&&(yield JSON.parse(t));e=!0}catch(e){if(e instanceof Error&&"AbortError"===e.name)return;throw e}finally{e||t.abort()}},t)}[Symbol.asyncIterator](){return this.iterator()}tee(){let e=[],t=[],r=this.iterator(),n=n=>({next:()=>{if(0===n.length){let n=r.next();e.push(n),t.push(n)}return n.shift()}});return[new ep(()=>n(e),this.controller),new ep(()=>n(t),this.controller)]}toReadableStream(){let e;let t=this,r=new TextEncoder;return new u({async start(){e=t[Symbol.asyncIterator]()},async pull(t){try{let{value:n,done:s}=await e.next();if(s)return t.close();let i=r.encode(JSON.stringify(n)+"\n");t.enqueue(i)}catch(e){t.error(e)}},async cancel(){await e.return?.()}})}}class em{constructor(){this.event=null,this.data=[],this.chunks=[]}decode(e){if(e.endsWith("\r")&&(e=e.substring(0,e.length-1)),!e){if(!this.event&&!this.data.length)return null;let e={event:this.event,data:this.data.join("\n"),raw:this.chunks};return this.event=null,this.data=[],this.chunks=[],e}if(this.chunks.push(e),e.startsWith(":"))return null;let[t,r,n]=function(e,t){let r=e.indexOf(t);return -1!==r?[e.substring(0,r),t,e.substring(r+t.length)]:[e,"",""]}(e,":");return n.startsWith(" ")&&(n=n.substring(1)),"event"===t?this.event=n:"data"===t&&this.data.push(n),null}}class eg{constructor(){this.buffer=[],this.trailingCR=!1}decode(e){let t=this.decodeText(e);if(this.trailingCR&&(t="\r"+t,this.trailingCR=!1),t.endsWith("\r")&&(this.trailingCR=!0,t=t.slice(0,-1)),!t)return[];let r=eg.NEWLINE_CHARS.has(t[t.length-1]||""),n=t.split(eg.NEWLINE_REGEXP);return 1!==n.length||r?(this.buffer.length>0&&(n=[this.buffer.join("")+n[0],...n.slice(1)],this.buffer=[]),r||(this.buffer=[n.pop()||""]),n):(this.buffer.push(n[0]),[])}decodeText(e){if(null==e)return"";if("string"==typeof e)return e;if(void 0!==ed){if(e instanceof ed)return e.toString();if(e instanceof Uint8Array)return ed.from(e).toString();throw new ee(`Unexpected: received non-Uint8Array (${e.constructor.name}) stream chunk in an environment with a global "Buffer" defined, which this library assumes to be Node. Please report this error.`)}if("undefined"!=typeof TextDecoder){if(e instanceof Uint8Array||e instanceof ArrayBuffer)return this.textDecoder??(this.textDecoder=new TextDecoder("utf8")),this.textDecoder.decode(e);throw new ee(`Unexpected: received non-Uint8Array/ArrayBuffer (${e.constructor.name}) in a web platform. Please report this error.`)}throw new ee("Unexpected: neither Buffer nor TextDecoder are available as globals. Please report this error.")}flush(){if(!this.buffer.length&&!this.trailingCR)return[];let e=[this.buffer.join("")];return this.buffer=[],this.trailingCR=!1,e}}function ey(e){if(e[Symbol.asyncIterator])return e;let t=e.getReader();return{async next(){try{let e=await t.read();return e?.done&&t.releaseLock(),e}catch(e){throw t.releaseLock(),e}},async return(){let e=t.cancel();return t.releaseLock(),await e,{done:!0,value:void 0}},[Symbol.asyncIterator](){return this}}}eg.NEWLINE_CHARS=new Set(["\n","\r","\v","\f","\x1c","\x1d","\x1e","\x85","\u2028","\u2029"]),eg.NEWLINE_REGEXP=/\r\n|[\n\r\x0b\x0c\x1c\x1d\x1e\x85\u2028\u2029]/g;var ew=r(263).Buffer;let eb=e=>null!=e&&"object"==typeof e&&"string"==typeof e.url&&"function"==typeof e.blob,ev=e=>null!=e&&"object"==typeof e&&"string"==typeof e.name&&"number"==typeof e.lastModified&&e_(e),e_=e=>null!=e&&"object"==typeof e&&"number"==typeof e.size&&"string"==typeof e.type&&"function"==typeof e.text&&"function"==typeof e.slice&&"function"==typeof e.arrayBuffer,eE=e=>ev(e)||eb(e)||h(e);async function ex(e,t,r={}){var n;if(eb(e=await e)){let n=await e.blob();return t||(t=new URL(e.url).pathname.split(/[\\/]/).pop()??"unknown_file"),new a([n],t,r)}let s=await eA(e);if(t||(t=(eS((n=e).name)||eS(n.filename)||eS(n.path)?.split(/[\\/]/).pop())??"unknown_file"),!r.type){let e=s[0]?.type;"string"==typeof e&&(r={...r,type:e})}return new a(s,t,r)}async function eA(e){let t=[];if("string"==typeof e||ArrayBuffer.isView(e)||e instanceof ArrayBuffer)t.push(e);else if(e_(e))t.push(await e.arrayBuffer());else if(eP(e))for await(let r of e)t.push(r);else throw Error(`Unexpected data type: ${typeof e}; constructor: ${e?.constructor?.name}; props: ${function(e){let t=Object.getOwnPropertyNames(e);return`[${t.map(e=>`"${e}"`).join(", ")}]`}(e)}`);return t}let eS=e=>"string"==typeof e?e:void 0!==ew&&e instanceof ew?String(e):void 0,eP=e=>null!=e&&"object"==typeof e&&"function"==typeof e[Symbol.asyncIterator],eC=e=>e&&"object"==typeof e&&e.body&&"MultipartBody"===e[Symbol.toStringTag],eI=async e=>{let t=await eR(e.body);return l(t,e)},eR=async e=>{let t=new o;return await Promise.all(Object.entries(e||{}).map(([e,r])=>eB(t,e,r))),t},eO=e=>{if(eE(e))return!0;if(Array.isArray(e))return e.some(eO);if(e&&"object"==typeof e){for(let t in e)if(eO(e[t]))return!0}return!1},eB=async(e,t,r)=>{if(void 0!==r){if(null==r)throw TypeError(`Received null for "${t}"; to pass null in FormData, you must use the string 'null'`);if("string"==typeof r||"number"==typeof r||"boolean"==typeof r)e.append(t,String(r));else if(eE(r)){let n=await ex(r);e.append(t,n)}else if(Array.isArray(r))await Promise.all(r.map(r=>eB(e,t+"[]",r)));else if("object"==typeof r)await Promise.all(Object.entries(r).map(([r,n])=>eB(e,`${t}[${r}]`,n)));else throw TypeError(`Invalid value given to form, expected a string, number, boolean, object, Array, File or Blob but got ${r} instead`)}};var eT=r(263).Buffer,ek=r(2601),e$=function(e,t,r,n,s){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!s)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(e,r):s?s.value=r:t.set(e,r),r},ej=function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};async function eM(e){let{response:t}=e;if(e.options.stream)return e2("response",t.status,t.url,t.headers,t.body),ep.fromSSEResponse(t,e.controller);if(204===t.status)return null;if(e.options.__binaryResponse)return t;let r=t.headers.get("content-type");if(r?.includes("application/json")){let e=await t.json();return e2("response",t.status,t.url,t.headers,e),e}let n=await t.text();return e2("response",t.status,t.url,t.headers,n),n}class eL extends Promise{constructor(e,t=eM){super(e=>{e(null)}),this.responsePromise=e,this.parseResponse=t}_thenUnwrap(e){return new eL(this.responsePromise,async t=>e(await this.parseResponse(t)))}asResponse(){return this.responsePromise.then(e=>e.response)}async withResponse(){let[e,t]=await Promise.all([this.parse(),this.asResponse()]);return{data:e,response:t}}parse(){return this.parsedPromise||(this.parsedPromise=this.responsePromise.then(this.parseResponse)),this.parsedPromise}then(e,t){return this.parse().then(e,t)}catch(e){return this.parse().catch(e)}finally(e){return this.parse().finally(e)}}class eU{constructor({baseURL:e,maxRetries:t=2,timeout:r=6e5,httpAgent:n,fetch:s}){this.baseURL=e,this.maxRetries=eQ("maxRetries",t),this.timeout=eQ("timeout",r),this.httpAgent=n,this.fetch=s??i}authHeaders(e){return{}}defaultHeaders(e){return{Accept:"application/json","Content-Type":"application/json","User-Agent":this.getUserAgent(),...eJ(),...this.authHeaders(e)}}validateHeaders(e,t){}defaultIdempotencyKey(){return`stainless-node-retry-${e6()}`}get(e,t){return this.methodRequest("get",e,t)}post(e,t){return this.methodRequest("post",e,t)}patch(e,t){return this.methodRequest("patch",e,t)}put(e,t){return this.methodRequest("put",e,t)}delete(e,t){return this.methodRequest("delete",e,t)}methodRequest(e,t,r){return this.request(Promise.resolve(r).then(r=>({method:e,path:t,...r})))}getAPIList(e,t,r){return this.requestAPIList(t,{method:"get",path:e,...r})}calculateContentLength(e){if("string"==typeof e){if(void 0!==eT)return eT.byteLength(e,"utf8").toString();if("undefined"!=typeof TextEncoder)return new TextEncoder().encode(e).length.toString()}return null}buildRequest(e){let{method:t,path:r,query:n,headers:i={}}=e,o=eC(e.body)?e.body.body:e.body?JSON.stringify(e.body,null,2):null,a=this.calculateContentLength(o),u=this.buildURL(r,n);"timeout"in e&&eQ("timeout",e.timeout);let l=e.timeout??this.timeout,f=e.httpAgent??this.httpAgent??c(u),h=l+1e3;"number"==typeof f?.options?.timeout&&h>(f.options.timeout??0)&&(f.options.timeout=h),this.idempotencyHeader&&"get"!==t&&(e.idempotencyKey||(e.idempotencyKey=this.defaultIdempotencyKey()),i[this.idempotencyHeader]=e.idempotencyKey);let d={...a&&{"Content-Length":a},...this.defaultHeaders(e),...i};eC(e.body)&&"node"!==s&&delete d["Content-Type"],Object.keys(d).forEach(e=>null===d[e]&&delete d[e]);let p={method:t,...o&&{body:o},headers:d,...f&&{agent:f},signal:e.signal??null};return this.validateHeaders(d,i),{req:p,url:u,timeout:l}}async prepareRequest(e,{url:t,options:r}){}parseHeaders(e){return e?Symbol.iterator in e?Object.fromEntries(Array.from(e).map(e=>[...e])):{...e}:{}}makeStatusError(e,t,r,n){return et.generate(e,t,r,n)}request(e,t=null){return new eL(this.makeRequest(e,t))}async makeRequest(e,t){let r=await e;null==t&&(t=r.maxRetries??this.maxRetries);let{req:n,url:s,timeout:i}=this.buildRequest(r);if(await this.prepareRequest(n,{url:s,options:r}),e2("request",s,r,n.headers),r.signal?.aborted)throw new er;let o=new AbortController,a=await this.fetchWithTimeout(s,n,i,o).catch(eZ);if(a instanceof Error){if(r.signal?.aborted)throw new er;if(t)return this.retryRequest(r,t);if("AbortError"===a.name)throw new es;throw new en({cause:a})}let u=eD(a.headers);if(!a.ok){if(t&&this.shouldRetry(a))return this.retryRequest(r,t,u);let e=await a.text().catch(e=>eZ(e).message),n=eV(e),i=n?void 0:e;throw e2("response",a.status,s,u,i),this.makeStatusError(a.status,n,i,u)}return{response:a,options:r,controller:o}}requestAPIList(e,t){return new eN(this,this.makeRequest(t,null),e)}buildURL(e,t){let r=new URL(eK(e)?e:this.baseURL+(this.baseURL.endsWith("/")&&e.startsWith("/")?e.slice(1):e)),n=this.defaultQuery();return e1(n)||(t={...n,...t}),t&&(r.search=this.stringifyQuery(t)),r.toString()}stringifyQuery(e){return Object.entries(e).filter(([e,t])=>void 0!==t).map(([e,t])=>{if("string"==typeof t||"number"==typeof t||"boolean"==typeof t)return`${encodeURIComponent(e)}=${encodeURIComponent(t)}`;if(null===t)return`${encodeURIComponent(e)}=`;throw new ee(`Cannot stringify type ${typeof t}; Expected string, number, boolean, or null. If you need to pass nested query parameters, you can manually encode them, e.g. { query: { 'foo[key1]': value1, 'foo[key2]': value2 } }, and please open a GitHub issue requesting better support for your use case.`)}).join("&")}async fetchWithTimeout(e,t,r,n){let{signal:s,...i}=t||{};s&&s.addEventListener("abort",()=>n.abort());let o=setTimeout(()=>n.abort(),r);return this.getRequestClient().fetch.call(void 0,e,{signal:n.signal,...i}).finally(()=>{clearTimeout(o)})}getRequestClient(){return{fetch:this.fetch}}shouldRetry(e){let t=e.headers.get("x-should-retry");return"true"===t||"false"!==t&&(408===e.status||409===e.status||429===e.status||e.status>=500)}async retryRequest(e,t,r){let n;let s=r?.["retry-after"];if(s){let e=parseInt(s);n=Number.isNaN(e)?Date.parse(s)-Date.now():1e3*e}if(!n||!Number.isInteger(n)||n<=0||n>6e4){let r=e.maxRetries??this.maxRetries;n=this.calculateDefaultRetryTimeoutMillis(t,r)}return await eY(n),this.makeRequest(e,t-1)}calculateDefaultRetryTimeoutMillis(e,t){return Math.min(.5*Math.pow(2,t-e),8)*(1-.25*Math.random())*1e3}getUserAgent(){return`${this.constructor.name}/JS ${Y}`}}class eF{constructor(e,t,r,n){E.set(this,void 0),e$(this,E,e,"f"),this.options=n,this.response=t,this.body=r}hasNextPage(){return!!this.getPaginatedItems().length&&null!=this.nextPageInfo()}async getNextPage(){let e=this.nextPageInfo();if(!e)throw new ee("No next page expected; please check `.hasNextPage()` before calling `.getNextPage()`.");let t={...this.options};if("params"in e)t.query={...t.query,...e.params};else if("url"in e){for(let[r,n]of[...Object.entries(t.query||{}),...e.url.searchParams.entries()])e.url.searchParams.set(r,n);t.query=void 0,t.path=e.url.toString()}return await ej(this,E,"f").requestAPIList(this.constructor,t)}async *iterPages(){let e=this;for(yield e;e.hasNextPage();)e=await e.getNextPage(),yield e}async *[(E=new WeakMap,Symbol.asyncIterator)](){for await(let e of this.iterPages())for(let t of e.getPaginatedItems())yield t}}class eN extends eL{constructor(e,t,r){super(t,async t=>new r(e,t.response,await eM(t),t.options))}async *[Symbol.asyncIterator](){for await(let e of(await this))yield e}}let eD=e=>new Proxy(Object.fromEntries(e.entries()),{get(e,t){let r=t.toString();return e[r.toLowerCase()]||e[r]}}),eq={method:!0,path:!0,query:!0,body:!0,headers:!0,maxRetries:!0,stream:!0,timeout:!0,httpAgent:!0,signal:!0,idempotencyKey:!0,__binaryResponse:!0},eW=e=>"object"==typeof e&&null!==e&&!e1(e)&&Object.keys(e).every(e=>Object.prototype.hasOwnProperty.call(eq,e)),ez=()=>{if("undefined"!=typeof Deno&&null!=Deno.build)return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":Y,"X-Stainless-OS":eH(Deno.build.os),"X-Stainless-Arch":eX(Deno.build.arch),"X-Stainless-Runtime":"deno","X-Stainless-Runtime-Version":Deno.version};if("undefined"!=typeof EdgeRuntime)return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":Y,"X-Stainless-OS":"Unknown","X-Stainless-Arch":`other:${EdgeRuntime}`,"X-Stainless-Runtime":"edge","X-Stainless-Runtime-Version":ek.version};if("[object process]"===Object.prototype.toString.call(void 0!==ek?ek:0))return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":Y,"X-Stainless-OS":eH(ek.platform),"X-Stainless-Arch":eX(ek.arch),"X-Stainless-Runtime":"node","X-Stainless-Runtime-Version":ek.version};let e=function(){if("undefined"==typeof navigator||!navigator)return null;for(let{key:e,pattern:t}of[{key:"edge",pattern:/Edge(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/MSIE(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/Trident(?:.*rv\:(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"chrome",pattern:/Chrome(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"firefox",pattern:/Firefox(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"safari",pattern:/(?:Version\W+(\d+)\.(\d+)(?:\.(\d+))?)?(?:\W+Mobile\S*)?\W+Safari/}]){let r=t.exec(navigator.userAgent);if(r){let t=r[1]||0,n=r[2]||0,s=r[3]||0;return{browser:e,version:`${t}.${n}.${s}`}}}return null}();return e?{"X-Stainless-Lang":"js","X-Stainless-Package-Version":Y,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":`browser:${e.browser}`,"X-Stainless-Runtime-Version":e.version}:{"X-Stainless-Lang":"js","X-Stainless-Package-Version":Y,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":"unknown","X-Stainless-Runtime-Version":"unknown"}},eX=e=>"x32"===e?"x32":"x86_64"===e||"x64"===e?"x64":"arm"===e?"arm":"aarch64"===e||"arm64"===e?"arm64":e?`other:${e}`:"unknown",eH=e=>(e=e.toLowerCase()).includes("ios")?"iOS":"android"===e?"Android":"darwin"===e?"MacOS":"win32"===e?"Windows":"freebsd"===e?"FreeBSD":"openbsd"===e?"OpenBSD":"linux"===e?"Linux":e?`Other:${e}`:"Unknown",eJ=()=>n??(n=ez()),eV=e=>{try{return JSON.parse(e)}catch(e){return}},eG=RegExp("^(?:[a-z]+:)?//","i"),eK=e=>eG.test(e),eY=e=>new Promise(t=>setTimeout(t,e)),eQ=(e,t)=>{if("number"!=typeof t||!Number.isInteger(t))throw new ee(`${e} must be an integer`);if(t<0)throw new ee(`${e} must be a positive integer`);return t},eZ=e=>e instanceof Error?e:Error(e),e0=e=>void 0!==ek?ek.env?.[e]??void 0:"undefined"!=typeof Deno?Deno.env?.get?.(e):void 0;function e1(e){if(!e)return!0;for(let t in e)return!1;return!0}function e2(e,...t){void 0!==ek&&"true"===ek.env.DEBUG&&console.log(`OpenAI:DEBUG:${e}`,...t)}let e6=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}),e8=()=>"undefined"!=typeof window&&void 0!==window.document&&"undefined"!=typeof navigator;class e3 extends eF{constructor(e,t,r,n){super(e,t,r,n),this.data=r.data||[],this.object=r.object}getPaginatedItems(){return this.data??[]}nextPageParams(){return null}nextPageInfo(){return null}}class e4 extends eF{constructor(e,t,r,n){super(e,t,r,n),this.data=r.data||[]}getPaginatedItems(){return this.data??[]}nextPageParams(){let e=this.nextPageInfo();if(!e)return null;if("params"in e)return e.params;let t=Object.fromEntries(e.url.searchParams);return Object.keys(t).length?t:null}nextPageInfo(){let e=this.getPaginatedItems();if(!e.length)return null;let t=e[e.length-1]?.id;return t?{params:{after:t}}:null}}class e5{constructor(e){this._client=e}}class e9 extends e5{create(e,t){return this._client.post("/completions",{body:e,...t,stream:e.stream??!1})}}e9||(e9={});class e7 extends e5{create(e,t){return this._client.post("/chat/completions",{body:e,...t,stream:e.stream??!1})}}e7||(e7={});class te extends e5{constructor(){super(...arguments),this.completions=new e7(this._client)}}(te||(te={})).Completions=e7;class tt extends e5{create(e,t){return this._client.post("/edits",{body:e,...t})}}tt||(tt={});class tr extends e5{create(e,t){return this._client.post("/embeddings",{body:e,...t})}}tr||(tr={});class tn extends e5{create(e,t){return this._client.post("/files",eI({body:e,...t}))}retrieve(e,t){return this._client.get(`/files/${e}`,t)}list(e={},t){return eW(e)?this.list({},e):this._client.getAPIList("/files",ts,{query:e,...t})}del(e,t){return this._client.delete(`/files/${e}`,t)}content(e,t){return this._client.get(`/files/${e}/content`,{...t,__binaryResponse:!0})}retrieveContent(e,t){return this._client.get(`/files/${e}/content`,{...t,headers:{Accept:"application/json",...t?.headers}})}async waitForProcessing(e,{pollInterval:t=5e3,maxWait:r=18e5}={}){let n=new Set(["processed","error","deleted"]),s=Date.now(),i=await this.retrieve(e);for(;!i.status||!n.has(i.status);)if(await eY(t),i=await this.retrieve(e),Date.now()-s>r)throw new es({message:`Giving up on waiting for file ${e} to finish processing after ${r} milliseconds.`});return i}}class ts extends e3{}(tn||(tn={})).FileObjectsPage=ts;class ti extends e5{createVariation(e,t){return this._client.post("/images/variations",eI({body:e,...t}))}edit(e,t){return this._client.post("/images/edits",eI({body:e,...t}))}generate(e,t){return this._client.post("/images/generations",{body:e,...t})}}ti||(ti={});class to extends e5{create(e,t){return this._client.post("/audio/speech",{body:e,...t,__binaryResponse:!0})}}to||(to={});class ta extends e5{create(e,t){return this._client.post("/audio/transcriptions",eI({body:e,...t}))}}ta||(ta={});class tu extends e5{create(e,t){return this._client.post("/audio/translations",eI({body:e,...t}))}}tu||(tu={});class tl extends e5{constructor(){super(...arguments),this.transcriptions=new ta(this._client),this.translations=new tu(this._client),this.speech=new to(this._client)}}(d=tl||(tl={})).Transcriptions=ta,d.Translations=tu,d.Speech=to;class tc extends e5{create(e,t){return this._client.post("/moderations",{body:e,...t})}}tc||(tc={});class tf extends e5{retrieve(e,t){return this._client.get(`/models/${e}`,t)}list(e){return this._client.getAPIList("/models",th,e)}del(e,t){return this._client.delete(`/models/${e}`,t)}}class th extends e3{}(tf||(tf={})).ModelsPage=th;class td extends e5{create(e,t){return this._client.post("/fine_tuning/jobs",{body:e,...t})}retrieve(e,t){return this._client.get(`/fine_tuning/jobs/${e}`,t)}list(e={},t){return eW(e)?this.list({},e):this._client.getAPIList("/fine_tuning/jobs",tp,{query:e,...t})}cancel(e,t){return this._client.post(`/fine_tuning/jobs/${e}/cancel`,t)}listEvents(e,t={},r){return eW(t)?this.listEvents(e,{},t):this._client.getAPIList(`/fine_tuning/jobs/${e}/events`,tm,{query:t,...r})}}class tp extends e4{}class tm extends e4{}(p=td||(td={})).FineTuningJobsPage=tp,p.FineTuningJobEventsPage=tm;class tg extends e5{constructor(){super(...arguments),this.jobs=new td(this._client)}}(m=tg||(tg={})).Jobs=td,m.FineTuningJobsPage=tp,m.FineTuningJobEventsPage=tm;class ty extends e5{create(e,t){return this._client.post("/fine-tunes",{body:e,...t})}retrieve(e,t){return this._client.get(`/fine-tunes/${e}`,t)}list(e){return this._client.getAPIList("/fine-tunes",tw,e)}cancel(e,t){return this._client.post(`/fine-tunes/${e}/cancel`,t)}listEvents(e,t,r){return this._client.get(`/fine-tunes/${e}/events`,{query:t,timeout:864e5,...r,stream:t?.stream??!1})}}class tw extends e3{}(ty||(ty={})).FineTunesPage=tw;class tb extends e5{create(e,t,r){return this._client.post(`/assistants/${e}/files`,{body:t,...r,headers:{"OpenAI-Beta":"assistants=v1",...r?.headers}})}retrieve(e,t,r){return this._client.get(`/assistants/${e}/files/${t}`,{...r,headers:{"OpenAI-Beta":"assistants=v1",...r?.headers}})}list(e,t={},r){return eW(t)?this.list(e,{},t):this._client.getAPIList(`/assistants/${e}/files`,tv,{query:t,...r,headers:{"OpenAI-Beta":"assistants=v1",...r?.headers}})}del(e,t,r){return this._client.delete(`/assistants/${e}/files/${t}`,{...r,headers:{"OpenAI-Beta":"assistants=v1",...r?.headers}})}}class tv extends e4{}(tb||(tb={})).AssistantFilesPage=tv;class t_ extends e5{constructor(){super(...arguments),this.files=new tb(this._client)}create(e,t){return this._client.post("/assistants",{body:e,...t,headers:{"OpenAI-Beta":"assistants=v1",...t?.headers}})}retrieve(e,t){return this._client.get(`/assistants/${e}`,{...t,headers:{"OpenAI-Beta":"assistants=v1",...t?.headers}})}update(e,t,r){return this._client.post(`/assistants/${e}`,{body:t,...r,headers:{"OpenAI-Beta":"assistants=v1",...r?.headers}})}list(e={},t){return eW(e)?this.list({},e):this._client.getAPIList("/assistants",tE,{query:e,...t,headers:{"OpenAI-Beta":"assistants=v1",...t?.headers}})}del(e,t){return this._client.delete(`/assistants/${e}`,{...t,headers:{"OpenAI-Beta":"assistants=v1",...t?.headers}})}}class tE extends e4{}function tx(e){return"function"==typeof e.parse}(g=t_||(t_={})).AssistantsPage=tE,g.Files=tb,g.AssistantFilesPage=tv;let tA=e=>e?.role==="assistant",tS=e=>e?.role==="function",tP=e=>e?.role==="tool";var tC=function(e,t,r,n,s){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!s)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(e,r):s?s.value=r:t.set(e,r),r},tI=function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};class tR{constructor(){x.add(this),this.controller=new AbortController,A.set(this,void 0),S.set(this,()=>{}),P.set(this,()=>{}),C.set(this,void 0),I.set(this,()=>{}),R.set(this,()=>{}),O.set(this,{}),this._chatCompletions=[],this.messages=[],B.set(this,!1),T.set(this,!1),k.set(this,!1),$.set(this,!1),N.set(this,e=>{if(tC(this,T,!0,"f"),e instanceof Error&&"AbortError"===e.name&&(e=new er),e instanceof er)return tC(this,k,!0,"f"),this._emit("abort",e);if(e instanceof ee)return this._emit("error",e);if(e instanceof Error){let t=new ee(e.message);return t.cause=e,this._emit("error",t)}return this._emit("error",new ee(String(e)))}),tC(this,A,new Promise((e,t)=>{tC(this,S,e,"f"),tC(this,P,t,"f")}),"f"),tC(this,C,new Promise((e,t)=>{tC(this,I,e,"f"),tC(this,R,t,"f")}),"f"),tI(this,A,"f").catch(()=>{}),tI(this,C,"f").catch(()=>{})}_run(e){setTimeout(()=>{e().then(()=>{this._emitFinal(),this._emit("end")},tI(this,N,"f"))},0)}_addChatCompletion(e){this._chatCompletions.push(e),this._emit("chatCompletion",e);let t=e.choices[0]?.message;return t&&this._addMessage(t),e}_addMessage(e,t=!0){if("content"in e||(e.content=null),this.messages.push(e),t){if(this._emit("message",e),(tS(e)||tP(e))&&e.content)this._emit("functionCallResult",e.content);else if(tA(e)&&e.function_call)this._emit("functionCall",e.function_call);else if(tA(e)&&e.tool_calls)for(let t of e.tool_calls)"function"===t.type&&this._emit("functionCall",t.function)}}_connected(){this.ended||(tI(this,S,"f").call(this),this._emit("connect"))}get ended(){return tI(this,B,"f")}get errored(){return tI(this,T,"f")}get aborted(){return tI(this,k,"f")}abort(){this.controller.abort()}on(e,t){return(tI(this,O,"f")[e]||(tI(this,O,"f")[e]=[])).push({listener:t}),this}off(e,t){let r=tI(this,O,"f")[e];if(!r)return this;let n=r.findIndex(e=>e.listener===t);return n>=0&&r.splice(n,1),this}once(e,t){return(tI(this,O,"f")[e]||(tI(this,O,"f")[e]=[])).push({listener:t,once:!0}),this}emitted(e){return new Promise((t,r)=>{tC(this,$,!0,"f"),"error"!==e&&this.once("error",r),this.once(e,t)})}async done(){tC(this,$,!0,"f"),await tI(this,C,"f")}async finalChatCompletion(){await this.done();let e=this._chatCompletions[this._chatCompletions.length-1];if(!e)throw new ee("stream ended without producing a ChatCompletion");return e}async finalContent(){return await this.done(),tI(this,x,"m",j).call(this)}async finalMessage(){return await this.done(),tI(this,x,"m",M).call(this)}async finalFunctionCall(){return await this.done(),tI(this,x,"m",L).call(this)}async finalFunctionCallResult(){return await this.done(),tI(this,x,"m",U).call(this)}async totalUsage(){return await this.done(),tI(this,x,"m",F).call(this)}allChatCompletions(){return[...this._chatCompletions]}_emit(e,...t){if(tI(this,B,"f"))return;"end"===e&&(tC(this,B,!0,"f"),tI(this,I,"f").call(this));let r=tI(this,O,"f")[e];if(r&&(tI(this,O,"f")[e]=r.filter(e=>!e.once),r.forEach(({listener:e})=>e(...t))),"abort"===e){let e=t[0];tI(this,$,"f")||r?.length||Promise.reject(e),tI(this,P,"f").call(this,e),tI(this,R,"f").call(this,e),this._emit("end");return}if("error"===e){let e=t[0];tI(this,$,"f")||r?.length||Promise.reject(e),tI(this,P,"f").call(this,e),tI(this,R,"f").call(this,e),this._emit("end")}}_emitFinal(){let e=this._chatCompletions[this._chatCompletions.length-1];e&&this._emit("finalChatCompletion",e);let t=tI(this,x,"m",M).call(this);t&&this._emit("finalMessage",t);let r=tI(this,x,"m",j).call(this);r&&this._emit("finalContent",r);let n=tI(this,x,"m",L).call(this);n&&this._emit("finalFunctionCall",n);let s=tI(this,x,"m",U).call(this);null!=s&&this._emit("finalFunctionCallResult",s),this._chatCompletions.some(e=>e.usage)&&this._emit("totalUsage",tI(this,x,"m",F).call(this))}async _createChatCompletion(e,t,r){let n=r?.signal;n&&(n.aborted&&this.controller.abort(),n.addEventListener("abort",()=>this.controller.abort())),tI(this,x,"m",D).call(this,t);let s=await e.create({...t,stream:!1},{...r,signal:this.controller.signal});return this._connected(),this._addChatCompletion(s)}async _runChatCompletion(e,t,r){for(let e of t.messages)this._addMessage(e,!1);return await this._createChatCompletion(e,t,r)}async _runFunctions(e,t,r){let n="function",{function_call:s="auto",stream:i,...o}=t,a="string"!=typeof s&&s?.name,{maxChatCompletions:u=10}=r||{},l={};for(let e of t.functions)l[e.name||e.function.name]=e;let c=t.functions.map(e=>({name:e.name||e.function.name,parameters:e.parameters,description:e.description}));for(let e of t.messages)this._addMessage(e,!1);for(let t=0;tJSON.stringify(e.name)).join(", ")}. Please try again`;this._addMessage({role:n,name:f,content:e});continue}try{t=tx(d)?await d.parse(h):h}catch(e){this._addMessage({role:n,name:f,content:e instanceof Error?e.message:String(e)});continue}let p=await d.function(t,this),m=tI(this,x,"m",q).call(this,p);if(this._addMessage({role:n,name:f,content:m}),a)return}}async _runTools(e,t,r){let n="tool",{tool_choice:s="auto",stream:i,...o}=t,a="string"!=typeof s&&s?.function?.name,{maxChatCompletions:u=10}=r||{},l={};for(let e of t.tools)"function"===e.type&&(l[e.function.name||e.function.function.name]=e.function);let c="tools"in t?t.tools.map(e=>"function"===e.type?{type:"function",function:{name:e.function.name||e.function.function.name,parameters:e.function.parameters,description:e.function.description}}:e):void 0;for(let e of t.messages)this._addMessage(e,!1);for(let t=0;tJSON.stringify(e.function.name)).join(", ")}. Please try again`;this._addMessage({role:n,tool_call_id:r,content:e});continue}try{t=tx(o)?await o.parse(i):i}catch(t){let e=t instanceof Error?t.message:String(t);this._addMessage({role:n,tool_call_id:r,content:e});continue}let u=await o.function(t,this),f=tI(this,x,"m",q).call(this,u);if(this._addMessage({role:n,tool_call_id:r,content:f}),a)return}}}}A=new WeakMap,S=new WeakMap,P=new WeakMap,C=new WeakMap,I=new WeakMap,R=new WeakMap,O=new WeakMap,B=new WeakMap,T=new WeakMap,k=new WeakMap,$=new WeakMap,N=new WeakMap,x=new WeakSet,j=function(){return tI(this,x,"m",M).call(this).content??null},M=function(){let e=this.messages.length;for(;e-- >0;){let t=this.messages[e];if(tA(t))return{...t,content:t.content??null}}throw new ee("stream ended without producing a ChatCompletionMessage with role=assistant")},L=function(){for(let e=this.messages.length-1;e>=0;e--){let t=this.messages[e];if(tA(t)&&t?.function_call)return t.function_call;if(tA(t)&&t?.tool_calls?.length)return t.tool_calls.at(-1)?.function}},U=function(){for(let e=this.messages.length-1;e>=0;e--){let t=this.messages[e];if(tS(t)&&null!=t.content||tP(t)&&null!=t.content&&this.messages.some(e=>"assistant"===e.role&&e.tool_calls?.some(e=>"function"===e.type&&e.id===t.tool_call_id)))return t.content}},F=function(){let e={completion_tokens:0,prompt_tokens:0,total_tokens:0};for(let{usage:t}of this._chatCompletions)t&&(e.completion_tokens+=t.completion_tokens,e.prompt_tokens+=t.prompt_tokens,e.total_tokens+=t.total_tokens);return e},D=function(e){if(null!=e.n&&e.n>1)throw new ee("ChatCompletion convenience helpers only support n=1 at this time. To use n>1, please use chat.completions.create() directly.")},q=function(e){return"string"==typeof e?e:void 0===e?"undefined":JSON.stringify(e)};class tO extends tR{static runFunctions(e,t,r){let n=new tO,s={...r,headers:{...r?.headers,"X-Stainless-Helper-Method":"runFunctions"}};return n._run(()=>n._runFunctions(e,t,s)),n}static runTools(e,t,r){let n=new tO,s={...r,headers:{...r?.headers,"X-Stainless-Helper-Method":"runTools"}};return n._run(()=>n._runTools(e,t,s)),n}_addMessage(e){super._addMessage(e),tA(e)&&e.content&&this._emit("content",e.content)}}var tB=function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},tT=function(e,t,r,n,s){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!s)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(e,r):s?s.value=r:t.set(e,r),r};class tk extends tR{constructor(){super(...arguments),W.add(this),z.set(this,void 0)}get currentChatCompletionSnapshot(){return tB(this,z,"f")}static fromReadableStream(e){let t=new tk;return t._run(()=>t._fromReadableStream(e)),t}static createChatCompletion(e,t,r){let n=new tk;return n._run(()=>n._runChatCompletion(e,{...t,stream:!0},{...r,headers:{...r?.headers,"X-Stainless-Helper-Method":"stream"}})),n}async _createChatCompletion(e,t,r){let n=r?.signal;n&&(n.aborted&&this.controller.abort(),n.addEventListener("abort",()=>this.controller.abort())),tB(this,W,"m",X).call(this);let s=await e.create({...t,stream:!0},{...r,signal:this.controller.signal});for await(let e of(this._connected(),s))tB(this,W,"m",H).call(this,e);if(s.controller.signal?.aborted)throw new er;return this._addChatCompletion(tB(this,W,"m",J).call(this))}async _fromReadableStream(e,t){let r;let n=t?.signal;n&&(n.aborted&&this.controller.abort(),n.addEventListener("abort",()=>this.controller.abort())),tB(this,W,"m",X).call(this),this._connected();let s=ep.fromReadableStream(e,this.controller);for await(let e of s)r&&r!==e.id&&this._addChatCompletion(tB(this,W,"m",J).call(this)),tB(this,W,"m",H).call(this,e),r=e.id;if(s.controller.signal?.aborted)throw new er;return this._addChatCompletion(tB(this,W,"m",J).call(this))}[(z=new WeakMap,W=new WeakSet,X=function(){this.ended||tT(this,z,void 0,"f")},H=function(e){if(this.ended)return;let t=tB(this,W,"m",V).call(this,e);this._emit("chunk",e,t);let r=e.choices[0]?.delta?.content,n=t.choices[0]?.message;null!=r&&n?.role==="assistant"&&n?.content&&this._emit("content",r,n.content)},J=function(){if(this.ended)throw new ee("stream has ended, this shouldn't happen");let e=tB(this,z,"f");if(!e)throw new ee("request ended without sending any chunks");return tT(this,z,void 0,"f"),function(e){let{id:t,choices:r,created:n,model:s}=e;return{id:t,choices:r.map(({message:t,finish_reason:r,index:n,logprobs:s})=>{if(!r)throw new ee(`missing finish_reason for choice ${n}`);let{content:i=null,function_call:o,tool_calls:a}=t,u=t.role;if(!u)throw new ee(`missing role for choice ${n}`);if(o){let{arguments:e,name:t}=o;if(null==e)throw new ee(`missing function_call.arguments for choice ${n}`);if(!t)throw new ee(`missing function_call.name for choice ${n}`);return{message:{content:i,function_call:{arguments:e,name:t},role:u},finish_reason:r,index:n,logprobs:s}}return a?{index:n,finish_reason:r,logprobs:s,message:{role:u,content:i,tool_calls:a.map((t,r)=>{let{function:s,type:i,id:o}=t,{arguments:a,name:u}=s||{};if(null==o)throw new ee(`missing choices[${n}].tool_calls[${r}].id +${t$(e)}`);if(null==i)throw new ee(`missing choices[${n}].tool_calls[${r}].type +${t$(e)}`);if(null==u)throw new ee(`missing choices[${n}].tool_calls[${r}].function.name +${t$(e)}`);if(null==a)throw new ee(`missing choices[${n}].tool_calls[${r}].function.arguments +${t$(e)}`);return{id:o,type:i,function:{name:u,arguments:a}}})}}:{message:{content:i,role:u},finish_reason:r,index:n,logprobs:s}}),created:n,model:s,object:"chat.completion"}}(e)},V=function(e){var t,r,n;let s=tB(this,z,"f"),{choices:i,...o}=e;for(let{delta:i,finish_reason:a,index:u,logprobs:l=null,...c}of(s?Object.assign(s,o):s=tT(this,z,{...o,choices:[]},"f"),e.choices)){let e=s.choices[u];if(!e){s.choices[u]={finish_reason:a,index:u,message:i,logprobs:l,...c};continue}if(l&&(e.logprobs?l.content&&((t=e.logprobs).content??(t.content=[]),e.logprobs.content.push(...l.content)):e.logprobs=l),a&&(e.finish_reason=a),Object.assign(e,c),!i)continue;let{content:o,function_call:f,role:h,tool_calls:d}=i;if(o&&(e.message.content=(e.message.content||"")+o),h&&(e.message.role=h),f&&(e.message.function_call?(f.name&&(e.message.function_call.name=f.name),f.arguments&&((r=e.message.function_call).arguments??(r.arguments=""),e.message.function_call.arguments+=f.arguments)):e.message.function_call=f),d)for(let{index:t,id:r,type:s,function:i}of(e.message.tool_calls||(e.message.tool_calls=[]),d)){let o=(n=e.message.tool_calls)[t]??(n[t]={});r&&(o.id=r),s&&(o.type=s),i&&(o.function??(o.function={arguments:""})),i?.name&&(o.function.name=i.name),i?.arguments&&(o.function.arguments+=i.arguments)}}return s},Symbol.asyncIterator)](){let e=[],t=[],r=!1;return this.on("chunk",r=>{let n=t.shift();n?n(r):e.push(r)}),this.on("end",()=>{for(let e of(r=!0,t))e(void 0);t.length=0}),{next:async()=>e.length?{value:e.shift(),done:!1}:r?{value:void 0,done:!0}:new Promise(e=>t.push(e)).then(e=>e?{value:e,done:!1}:{value:void 0,done:!0})}}toReadableStream(){return new ep(this[Symbol.asyncIterator].bind(this),this.controller).toReadableStream()}}function t$(e){return JSON.stringify(e)}class tj extends tk{static fromReadableStream(e){let t=new tj;return t._run(()=>t._fromReadableStream(e)),t}static runFunctions(e,t,r){let n=new tj,s={...r,headers:{...r?.headers,"X-Stainless-Helper-Method":"runFunctions"}};return n._run(()=>n._runFunctions(e,t,s)),n}static runTools(e,t,r){let n=new tj,s={...r,headers:{...r?.headers,"X-Stainless-Helper-Method":"runTools"}};return n._run(()=>n._runTools(e,t,s)),n}}class tM extends e5{runFunctions(e,t){return e.stream?tj.runFunctions(this._client.chat.completions,e,t):tO.runFunctions(this._client.chat.completions,e,t)}runTools(e,t){return e.stream?tj.runTools(this._client.chat.completions,e,t):tO.runTools(this._client.chat.completions,e,t)}stream(e,t){return tk.createChatCompletion(this._client.chat.completions,e,t)}}class tL extends e5{constructor(){super(...arguments),this.completions=new tM(this._client)}}(tL||(tL={})).Completions=tM;class tU extends e5{retrieve(e,t,r,n){return this._client.get(`/threads/${e}/messages/${t}/files/${r}`,{...n,headers:{"OpenAI-Beta":"assistants=v1",...n?.headers}})}list(e,t,r={},n){return eW(r)?this.list(e,t,{},r):this._client.getAPIList(`/threads/${e}/messages/${t}/files`,tF,{query:r,...n,headers:{"OpenAI-Beta":"assistants=v1",...n?.headers}})}}class tF extends e4{}(tU||(tU={})).MessageFilesPage=tF;class tN extends e5{constructor(){super(...arguments),this.files=new tU(this._client)}create(e,t,r){return this._client.post(`/threads/${e}/messages`,{body:t,...r,headers:{"OpenAI-Beta":"assistants=v1",...r?.headers}})}retrieve(e,t,r){return this._client.get(`/threads/${e}/messages/${t}`,{...r,headers:{"OpenAI-Beta":"assistants=v1",...r?.headers}})}update(e,t,r,n){return this._client.post(`/threads/${e}/messages/${t}`,{body:r,...n,headers:{"OpenAI-Beta":"assistants=v1",...n?.headers}})}list(e,t={},r){return eW(t)?this.list(e,{},t):this._client.getAPIList(`/threads/${e}/messages`,tD,{query:t,...r,headers:{"OpenAI-Beta":"assistants=v1",...r?.headers}})}}class tD extends e4{}(y=tN||(tN={})).ThreadMessagesPage=tD,y.Files=tU,y.MessageFilesPage=tF;class tq extends e5{retrieve(e,t,r,n){return this._client.get(`/threads/${e}/runs/${t}/steps/${r}`,{...n,headers:{"OpenAI-Beta":"assistants=v1",...n?.headers}})}list(e,t,r={},n){return eW(r)?this.list(e,t,{},r):this._client.getAPIList(`/threads/${e}/runs/${t}/steps`,tW,{query:r,...n,headers:{"OpenAI-Beta":"assistants=v1",...n?.headers}})}}class tW extends e4{}(tq||(tq={})).RunStepsPage=tW;class tz extends e5{constructor(){super(...arguments),this.steps=new tq(this._client)}create(e,t,r){return this._client.post(`/threads/${e}/runs`,{body:t,...r,headers:{"OpenAI-Beta":"assistants=v1",...r?.headers}})}retrieve(e,t,r){return this._client.get(`/threads/${e}/runs/${t}`,{...r,headers:{"OpenAI-Beta":"assistants=v1",...r?.headers}})}update(e,t,r,n){return this._client.post(`/threads/${e}/runs/${t}`,{body:r,...n,headers:{"OpenAI-Beta":"assistants=v1",...n?.headers}})}list(e,t={},r){return eW(t)?this.list(e,{},t):this._client.getAPIList(`/threads/${e}/runs`,tX,{query:t,...r,headers:{"OpenAI-Beta":"assistants=v1",...r?.headers}})}cancel(e,t,r){return this._client.post(`/threads/${e}/runs/${t}/cancel`,{...r,headers:{"OpenAI-Beta":"assistants=v1",...r?.headers}})}submitToolOutputs(e,t,r,n){return this._client.post(`/threads/${e}/runs/${t}/submit_tool_outputs`,{body:r,...n,headers:{"OpenAI-Beta":"assistants=v1",...n?.headers}})}}class tX extends e4{}(w=tz||(tz={})).RunsPage=tX,w.Steps=tq,w.RunStepsPage=tW;class tH extends e5{constructor(){super(...arguments),this.runs=new tz(this._client),this.messages=new tN(this._client)}create(e={},t){return eW(e)?this.create({},e):this._client.post("/threads",{body:e,...t,headers:{"OpenAI-Beta":"assistants=v1",...t?.headers}})}retrieve(e,t){return this._client.get(`/threads/${e}`,{...t,headers:{"OpenAI-Beta":"assistants=v1",...t?.headers}})}update(e,t,r){return this._client.post(`/threads/${e}`,{body:t,...r,headers:{"OpenAI-Beta":"assistants=v1",...r?.headers}})}del(e,t){return this._client.delete(`/threads/${e}`,{...t,headers:{"OpenAI-Beta":"assistants=v1",...t?.headers}})}createAndRun(e,t){return this._client.post("/threads/runs",{body:e,...t,headers:{"OpenAI-Beta":"assistants=v1",...t?.headers}})}}(b=tH||(tH={})).Runs=tz,b.RunsPage=tX,b.Messages=tN,b.ThreadMessagesPage=tD;class tJ extends e5{constructor(){super(...arguments),this.chat=new tL(this._client),this.assistants=new t_(this._client),this.threads=new tH(this._client)}}(v=tJ||(tJ={})).Chat=tL,v.Assistants=t_,v.AssistantsPage=tE,v.Threads=tH;class tV extends eU{constructor({baseURL:e=e0("OPENAI_BASE_URL"),apiKey:t=e0("OPENAI_API_KEY"),organization:r=e0("OPENAI_ORG_ID")??null,...n}={}){if(void 0===t)throw new ee("The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' }).");let s={apiKey:t,organization:r,...n,baseURL:e??"https://api.openai.com/v1"};if(!s.dangerouslyAllowBrowser&&e8())throw new ee("It looks like you're running in a browser-like environment.\n\nThis is disabled by default, as it risks exposing your secret API credentials to attackers.\nIf you understand the risks and have appropriate mitigations in place,\nyou can set the `dangerouslyAllowBrowser` option to `true`, e.g.,\n\nnew OpenAI({ apiKey, dangerouslyAllowBrowser: true });\n\nhttps://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety\n");super({baseURL:s.baseURL,timeout:s.timeout??6e5,httpAgent:s.httpAgent,maxRetries:s.maxRetries,fetch:s.fetch}),this.completions=new e9(this),this.chat=new te(this),this.edits=new tt(this),this.embeddings=new tr(this),this.files=new tn(this),this.images=new ti(this),this.audio=new tl(this),this.moderations=new tc(this),this.models=new tf(this),this.fineTuning=new tg(this),this.fineTunes=new ty(this),this.beta=new tJ(this),this._options=s,this.apiKey=t,this.organization=r}defaultQuery(){return this._options.defaultQuery}defaultHeaders(e){return{...super.defaultHeaders(e),"OpenAI-Organization":this.organization,...this._options.defaultHeaders}}authHeaders(e){return{Authorization:`Bearer ${this.apiKey}`}}}G=tV,tV.OpenAI=G,tV.OpenAIError=ee,tV.APIError=et,tV.APIConnectionError=en,tV.APIConnectionTimeoutError=es,tV.APIUserAbortError=er,tV.NotFoundError=eu,tV.ConflictError=el,tV.RateLimitError=ef,tV.BadRequestError=ei,tV.AuthenticationError=eo,tV.InternalServerError=eh,tV.PermissionDeniedError=ea,tV.UnprocessableEntityError=ec;let{OpenAIError:tG,APIError:tK,APIConnectionError:tY,APIConnectionTimeoutError:tQ,APIUserAbortError:tZ,NotFoundError:t0,ConflictError:t1,RateLimitError:t2,BadRequestError:t6,AuthenticationError:t8,InternalServerError:t3,PermissionDeniedError:t4,UnprocessableEntityError:t5}=K;(_=tV||(tV={})).toFile=ex,_.fileFromPath=f,_.Page=e3,_.CursorPage=e4,_.Completions=e9,_.Chat=te,_.Edits=tt,_.Embeddings=tr,_.Files=tn,_.FileObjectsPage=ts,_.Images=ti,_.Audio=tl,_.Moderations=tc,_.Models=tf,_.ModelsPage=th,_.FineTuning=tg,_.FineTunes=ty,_.FineTunesPage=tw,_.Beta=tJ;var t9=tV}}]); \ No newline at end of file diff --git a/docs/_next/static/chunks/250-708de5d36ae8ecbe.js b/docs/_next/static/chunks/250-708de5d36ae8ecbe.js new file mode 100644 index 0000000..94defb9 --- /dev/null +++ b/docs/_next/static/chunks/250-708de5d36ae8ecbe.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[250],{2956:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}}),n(2139);let r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{})}}function y(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let b=r.default.forwardRef(function(e,t){let n,l;let{href:m,as:b,children:_,prefetch:P=null,passHref:v,replace:R,shallow:O,scroll:j,locale:E,onClick:S,onMouseEnter:w,onTouchStart:x,legacyBehavior:M=!1,...N}=e;n=_,M&&("string"==typeof n||"number"==typeof n)&&(n=r.default.createElement("a",null,n));let C=r.default.useContext(s.RouterContext),k=r.default.useContext(c.AppRouterContext),I=null!=C?C:k,T=!C,L=!1!==P,U=null===P?h.PrefetchKind.AUTO:h.PrefetchKind.FULL,{href:A,as:W}=r.default.useMemo(()=>{if(!C){let e=y(m);return{href:e,as:b?y(b):e}}let[e,t]=(0,o.resolveHref)(C,m,!0);return{href:e,as:b?(0,o.resolveHref)(C,b):t||e}},[C,m,b]),D=r.default.useRef(A),z=r.default.useRef(W);M&&(l=r.default.Children.only(n));let K=M?l&&"object"==typeof l&&l.ref:t,[q,F,$]=(0,f.useIntersection)({rootMargin:"200px"}),B=r.default.useCallback(e=>{(z.current!==W||D.current!==A)&&($(),z.current=W,D.current=A),q(e),K&&("function"==typeof K?K(e):"object"==typeof K&&(K.current=e))},[W,K,A,$,q]);r.default.useEffect(()=>{I&&F&&L&&g(I,A,W,{locale:E},{kind:U},T)},[W,A,F,E,L,null==C?void 0:C.locale,I,T,U]);let Y={ref:B,onClick(e){M||"function"!=typeof S||S(e),M&&l.props&&"function"==typeof l.props.onClick&&l.props.onClick(e),I&&!e.defaultPrevented&&function(e,t,n,o,l,a,u,s,c){let{nodeName:f}=e.currentTarget;if("A"===f.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,i.isLocalURL)(n)))return;e.preventDefault();let d=()=>{let e=null==u||u;"beforePopState"in t?t[l?"replace":"push"](n,o,{shallow:a,locale:s,scroll:e}):t[l?"replace":"push"](o||n,{scroll:e})};c?r.default.startTransition(d):d()}(e,I,A,W,R,O,j,E,T)},onMouseEnter(e){M||"function"!=typeof w||w(e),M&&l.props&&"function"==typeof l.props.onMouseEnter&&l.props.onMouseEnter(e),I&&(L||!T)&&g(I,A,W,{locale:E,priority:!0,bypassPrefetchedCheck:!0},{kind:U},T)},onTouchStart(e){M||"function"!=typeof x||x(e),M&&l.props&&"function"==typeof l.props.onTouchStart&&l.props.onTouchStart(e),I&&(L||!T)&&g(I,A,W,{locale:E,priority:!0,bypassPrefetchedCheck:!0},{kind:U},T)}};if((0,a.isAbsoluteUrl)(W))Y.href=W;else if(!M||v||"a"===l.type&&!("href"in l.props)){let e=void 0!==E?E:null==C?void 0:C.locale,t=(null==C?void 0:C.isLocaleDomain)&&(0,d.getDomainLocale)(W,e,null==C?void 0:C.locales,null==C?void 0:C.domainLocales);Y.href=t||(0,p.addBasePath)((0,u.addLocale)(W,e,null==C?void 0:C.defaultLocale))}return M?r.default.cloneElement(l,Y):r.default.createElement("a",{...N,...Y},n)});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2185:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return r}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4542:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});let r=n(5770),o=n(1030),i=n(4544),l=n(6874),a=n(2139),u=n(7434),s=n(2360),c=n(6735);function f(e,t,n){let f;let d="string"==typeof t?t:(0,o.formatWithValidation)(t),p=d.match(/^[a-zA-Z]{1,}:\/\//),h=p?d.slice(p[0].length):d;if((h.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+d+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,l.normalizeRepeatedSlashes)(h);d=(p?p[0]:"")+t}if(!(0,u.isLocalURL)(d))return n?[d]:d;try{f=new URL(d.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){f=new URL("/","http://n")}try{let e=new URL(d,f);e.pathname=(0,a.normalizePathTrailingSlash)(e.pathname);let t="";if((0,s.isDynamicRoute)(e.pathname)&&e.searchParams&&n){let n=(0,r.searchParamsToUrlQuery)(e.searchParams),{result:l,params:a}=(0,c.interpolateAs)(e.pathname,e.pathname,n);l&&(t=(0,o.formatWithValidation)({pathname:l,hash:e.hash,query:(0,i.omit)(n,a)}))}let l=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return n?[l,t||l]:l}catch(e){return n?[d]:d}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5291:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});let r=n(2265),o=n(2185),i="function"==typeof IntersectionObserver,l=new Map,a=[];function u(e){let{rootRef:t,rootMargin:n,disabled:u}=e,s=u||!i,[c,f]=(0,r.useState)(!1),d=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{d.current=e},[]);return(0,r.useEffect)(()=>{if(i){if(s||c)return;let e=d.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:o,elements:i}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=a.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=l.get(r)))return t;let o=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:o},a.push(n),l.set(n,t),t}(n);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),l.delete(r);let e=a.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&a.splice(e,1)}}}(e,e=>e&&f(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,o.requestIdleCallback)(()=>f(!0));return()=>(0,o.cancelIdleCallback)(e)}},[s,n,t,c,d.current]),[p,c,(0,r.useCallback)(()=>{f(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2202:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});let n=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function o(e){return n.test(e)?e.replace(r,"\\$&"):e}},6993:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return r}});let r=n(1024)._(n(2265)).default.createContext(null)},1030:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return i},urlObjectKeys:function(){return l},formatWithValidation:function(){return a}});let r=n(8533)._(n(5770)),o=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:n}=e,i=e.protocol||"",l=e.pathname||"",a=e.hash||"",u=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:n&&(s=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(s+=":"+e.port)),u&&"object"==typeof u&&(u=String(r.urlQueryToSearchParams(u)));let c=e.search||u&&"?"+u||"";return i&&!i.endsWith(":")&&(i+=":"),e.slashes||(!i||o.test(i))&&!1!==s?(s="//"+(s||""),l&&"/"!==l[0]&&(l="/"+l)):s||(s=""),a&&"#"!==a[0]&&(a="#"+a),c&&"?"!==c[0]&&(c="?"+c),""+i+s+(l=l.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+a}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function a(e){return i(e)}},2360:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let r=n(7409),o=n(1305)},6735:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return i}});let r=n(2395),o=n(9935);function i(e,t,n){let i="",l=(0,o.getRouteRegex)(e),a=l.groups,u=(t!==e?(0,r.getRouteMatcher)(l)(t):"")||n;i=e;let s=Object.keys(a);return s.every(e=>{let t=u[e]||"",{repeat:n,optional:r}=a[e],o="["+(n?"...":"")+e+"]";return r&&(o=(t?"":"/")+"["+o+"]"),n&&!Array.isArray(t)&&(t=[t]),(r||e in u)&&(i=i.replace(o,n?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(i=""),{params:s,result:i}}},1305:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return i}});let r=n(4507),o=/\/\[[^/]+?\](?=\/|$)/;function i(e){return(0,r.isInterceptionRouteAppPath)(e)&&(e=(0,r.extractInterceptionRouteInformation)(e).interceptedRoute),o.test(e)}},7434:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return i}});let r=n(6874),o=n(7379);function i(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,o.hasBasePath)(n.pathname)}catch(e){return!1}}},4544:function(e,t){function n(e,t){let n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return n}})},5770:function(e,t){function n(e){let t={};return e.forEach((e,n)=>{void 0===t[n]?t[n]=e:Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]}),t}function r(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[n,o]=e;Array.isArray(o)?o.forEach(e=>t.append(n,r(e))):t.set(n,r(o))}),t}function i(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,n)=>e.append(n,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return o},assign:function(){return i}})},2395:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o}});let r=n(6874);function o(e){let{re:t,groups:n}=e;return e=>{let o=t.exec(e);if(!o)return!1;let i=e=>{try{return decodeURIComponent(e)}catch(e){throw new r.DecodeError("failed to decode param")}},l={};return Object.keys(n).forEach(e=>{let t=n[e],r=o[t.pos];void 0!==r&&(l[e]=~r.indexOf("/")?r.split("/").map(e=>i(e)):t.repeat?[i(r)]:i(r))}),l}}},9935:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return f},getNamedMiddlewareRegex:function(){return d}});let r=n(4507),o=n(2202),i=n(5868);function l(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let n=e.startsWith("...");return n&&(e=e.slice(3)),{key:e,repeat:n,optional:t}}function a(e){let t=(0,i.removeTrailingSlash)(e).slice(1).split("/"),n={},a=1;return{parameterizedRoute:t.map(e=>{let t=r.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),i=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&i){let{key:e,optional:r,repeat:u}=l(i[1]);return n[e]={pos:a++,repeat:u,optional:r},"/"+(0,o.escapeStringRegexp)(t)+"([^/]+?)"}if(!i)return"/"+(0,o.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:r}=l(i[1]);return n[e]={pos:a++,repeat:t,optional:r},t?r?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:n}}function u(e){let{parameterizedRoute:t,groups:n}=a(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:n}}function s(e){let{interceptionMarker:t,getSafeRouteKey:n,segment:r,routeKeys:i,keyPrefix:a}=e,{key:u,optional:s,repeat:c}=l(r),f=u.replace(/\W/g,"");a&&(f=""+a+f);let d=!1;(0===f.length||f.length>30)&&(d=!0),isNaN(parseInt(f.slice(0,1)))||(d=!0),d&&(f=n()),a?i[f]=""+a+u:i[f]=u;let p=t?(0,o.escapeStringRegexp)(t):"";return c?s?"(?:/"+p+"(?<"+f+">.+?))?":"/"+p+"(?<"+f+">.+?)":"/"+p+"(?<"+f+">[^/]+?)"}function c(e,t){let n;let l=(0,i.removeTrailingSlash)(e).slice(1).split("/"),a=(n=0,()=>{let e="",t=++n;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),u={};return{namedParameterizedRoute:l.map(e=>{let n=r.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),i=e.match(/\[((?:\[.*\])|.+)\]/);if(n&&i){let[n]=e.split(i[0]);return s({getSafeRouteKey:a,interceptionMarker:n,segment:i[1],routeKeys:u,keyPrefix:t?"nxtI":void 0})}return i?s({getSafeRouteKey:a,segment:i[1],routeKeys:u,keyPrefix:t?"nxtP":void 0}):"/"+(0,o.escapeStringRegexp)(e)}).join(""),routeKeys:u}}function f(e,t){let n=c(e,t);return{...u(e),namedRegex:"^"+n.namedParameterizedRoute+"(?:/)?$",routeKeys:n.routeKeys}}function d(e,t){let{parameterizedRoute:n}=a(e),{catchAll:r=!0}=t;if("/"===n)return{namedRegex:"^/"+(r?".*":"")+"$"};let{namedParameterizedRoute:o}=c(e,!1);return{namedRegex:"^"+o+(r?"(?:(/.*)?)":"")+"$"}}},7409:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class n{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let n=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Error("Catch-all must be the last part of the URL.");let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let n=o.slice(1,-1),l=!1;if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1),l=!0),n.startsWith("...")&&(n=n.substring(3),r=!0),n.startsWith("[")||n.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+n+"').");if(n.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+n+"').");function i(e,n){if(null!==e&&e!==n)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+n+"').");t.forEach(e=>{if(e===n)throw Error('You cannot have the same slug name "'+n+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+n+'" differ only by non-word symbols within a single dynamic path')}),t.push(n)}if(r){if(l){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');i(this.optionalRestSlugName,n),this.optionalRestSlugName=n,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');i(this.restSlugName,n),this.restSlugName=n,o="[...]"}}else{if(l)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');i(this.slugName,n),this.slugName=n,o="[]"}}this.children.has(o)||this.children.set(o,new n),this.children.get(o)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(e){let t=new n;return e.forEach(e=>t.insert(e)),t.smoosh()}},6874:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{WEB_VITALS:function(){return n},execOnce:function(){return r},isAbsoluteUrl:function(){return i},getLocationOrigin:function(){return l},getURL:function(){return a},getDisplayName:function(){return u},isResSent:function(){return s},normalizeRepeatedSlashes:function(){return c},loadGetInitialProps:function(){return f},SP:function(){return d},ST:function(){return p},DecodeError:function(){return h},NormalizeError:function(){return m},PageNotFoundError:function(){return g},MissingStaticPage:function(){return y},MiddlewareNotFoundError:function(){return b},stringifyError:function(){return _}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,o=Array(r),i=0;io.test(e);function l(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function a(){let{href:e}=window.location,t=l();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function s(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function f(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&s(n))return r;if(!r)throw Error('"'+u(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.');return r}let d="undefined"!=typeof performance,p=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class m extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class y extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class b extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function _(e){return JSON.stringify({message:e.message,stack:e.stack})}}}]); \ No newline at end of file diff --git a/docs/_next/static/chunks/938-941dd3d7d79f1a19.js b/docs/_next/static/chunks/938-941dd3d7d79f1a19.js new file mode 100644 index 0000000..d6e56e8 --- /dev/null +++ b/docs/_next/static/chunks/938-941dd3d7d79f1a19.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[938],{5844:function(e,t){"use strict";function r(){return""}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDeploymentIdQueryOrEmptyString",{enumerable:!0,get:function(){return r}})},2335:function(){"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]})},5786:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return u}});let n=r(1312),o=r(2139);function u(e,t){return(0,o.normalizePathTrailingSlash)((0,n.addPathPrefix)(e,""))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6159:function(e,t){"use strict";function r(e){var t,r;t=self.__next_s,r=()=>{e()},t&&t.length?t.reduce((e,t)=>{let[r,n]=t;return e.then(()=>new Promise((e,t)=>{let o=document.createElement("script");if(n)for(let e in n)"children"!==e&&o.setAttribute(e,n[e]);r?(o.src=r,o.onload=()=>e(),o.onerror=t):n&&(o.innerHTML=n.children,setTimeout(e)),document.head.appendChild(o)}))},Promise.resolve()).catch(e=>{console.error(e)}).then(()=>{r()}):r()}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"appBootstrap",{enumerable:!0,get:function(){return r}}),window.next={version:"14.0.4",appDir:!0},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5355:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"callServer",{enumerable:!0,get:function(){return o}});let n=r(7690);async function o(e,t){let r=(0,n.getServerActionDispatcher)();if(!r)throw Error("Invariant: missing action dispatcher.");return new Promise((n,o)=>{r({actionId:e,actionArgs:t,resolve:n,reject:o})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},945:function(e,t,r){"use strict";let n,o;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hydrate",{enumerable:!0,get:function(){return M}});let u=r(1024),a=r(8533);r(2335);let l=u._(r(4040)),i=a._(r(2265)),c=r(6671),s=r(3634);r(8599);let f=u._(r(4101)),d=r(5355),p=r(4950),h=r(5367),y=window.console.error;window.console.error=function(){for(var e=arguments.length,t=Array(e),r=0;r{if((0,p.isNextRouterError)(e.error)){e.preventDefault();return}});let _=document,b=()=>{let{pathname:e,search:t}=location;return e+t},v=new TextEncoder,g=!1,m=!1,O=null;function P(e){if(0===e[0])n=[];else if(1===e[0]){if(!n)throw Error("Unexpected server data: missing bootstrap script.");o?o.enqueue(v.encode(e[1])):n.push(e[1])}else 2===e[0]&&(O=e[1])}let E=function(){o&&!m&&(o.close(),m=!0,n=void 0),g=!0};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",E,!1):E();let R=self.__next_f=self.__next_f||[];R.forEach(P),R.push=P;let S=new Map;function j(e){let{cacheKey:t}=e;i.default.useEffect(()=>{S.delete(t)});let r=function(e){let t=S.get(e);if(t)return t;let r=new ReadableStream({start(e){n&&(n.forEach(t=>{e.enqueue(v.encode(t))}),g&&!m&&(e.close(),m=!0,n=void 0)),o=e}}),u=(0,c.createFromReadableStream)(r,{callServer:d.callServer});return S.set(e,u),u}(t);return(0,i.use)(r)}let T=i.default.StrictMode;function w(e){let{children:t}=e;return t}function C(e){return i.default.createElement(j,{...e,cacheKey:b()})}function M(){let e=(0,h.createMutableActionQueue)(),t=i.default.createElement(T,null,i.default.createElement(s.HeadManagerContext.Provider,{value:{appDir:!0}},i.default.createElement(h.ActionQueueContext.Provider,{value:e},i.default.createElement(w,null,i.default.createElement(C,null))))),r={onRecoverableError:f.default};"__next_error__"===document.documentElement.id?l.default.createRoot(_,r).render(t):i.default.startTransition(()=>l.default.hydrateRoot(_,t,{...r,formState:O}))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5317:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(9590),(0,r(6159).appBootstrap)(()=>{let{hydrate:e}=r(945);r(7690),r(5613),e()}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9590:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(5844);{let e=r.u;r.u=function(){for(var t=arguments.length,r=Array(t),n=0;n(a(function(){var e;let t=document.getElementsByName(u)[0];if(null==t?void 0:null==(e=t.shadowRoot)?void 0:e.childNodes[0])return t.shadowRoot.childNodes[0];{let e=document.createElement(u);e.style.cssText="position:absolute";let t=document.createElement("div");return t.ariaLive="assertive",t.id="__next-route-announcer__",t.role="alert",t.style.cssText="position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal",e.attachShadow({mode:"open"}).appendChild(t),document.body.appendChild(e),t}}()),()=>{let e=document.getElementsByTagName(u)[0];(null==e?void 0:e.isConnected)&&document.body.removeChild(e)}),[]);let[l,i]=(0,n.useState)(""),c=(0,n.useRef)();return(0,n.useEffect)(()=>{let e="";if(document.title)e=document.title;else{let t=document.querySelector("h1");t&&(e=t.innerText||t.textContent||"")}void 0!==c.current&&c.current!==e&&i(e),c.current=e},[t]),r?(0,o.createPortal)(l,r):null}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2275:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RSC_HEADER:function(){return r},ACTION:function(){return n},NEXT_ROUTER_STATE_TREE:function(){return o},NEXT_ROUTER_PREFETCH_HEADER:function(){return u},NEXT_URL:function(){return a},RSC_CONTENT_TYPE_HEADER:function(){return l},RSC_VARY_HEADER:function(){return i},FLIGHT_PARAMETERS:function(){return c},NEXT_RSC_UNION_QUERY:function(){return s},NEXT_DID_POSTPONE_HEADER:function(){return f}});let r="RSC",n="Next-Action",o="Next-Router-State-Tree",u="Next-Router-Prefetch",a="Next-Url",l="text/x-component",i=r+", "+o+", "+u+", "+a,c=[[r],[o],[u]],s="_rsc",f="x-nextjs-postponed";("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7690:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getServerActionDispatcher:function(){return P},urlToUrlWithoutFlightMarker:function(){return R},createEmptyCacheNode:function(){return T},default:function(){return C}});let n=r(8533)._(r(2265)),o=r(8599),u=r(1414),a=r(8419),l=r(4758),i=r(1276),c=r(8955),s=r(4492),f=r(6407),d=r(5786),p=r(2054),h=r(5737),y=r(671),_=r(4399),b=r(2275),v=r(8895),g=r(7379),m=new Map,O=null;function P(){return O}let E={};function R(e){let t=new URL(e,location.origin);if(t.searchParams.delete(b.NEXT_RSC_UNION_QUERY),t.pathname.endsWith(".txt")){let{pathname:e}=t,r=e.endsWith("/index.txt")?10:4;t.pathname=e.slice(0,-r)}return t}function S(e){return e.origin!==window.location.origin}function j(e){let{appRouterState:t,sync:r}=e;return(0,n.useInsertionEffect)(()=>{let{tree:e,pushRef:n,canonicalUrl:o}=t,u={__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:e};n.pendingPush&&(0,a.createHrefFromUrl)(new URL(window.location.href))!==o?(n.pendingPush=!1,window.history.pushState(u,"",o)):window.history.replaceState(u,"",o),r(t)},[t,r]),null}let T=()=>({status:o.CacheStates.LAZY_INITIALIZED,data:null,subTreeData:null,parallelRoutes:new Map});function w(e){let{buildId:t,initialHead:r,initialTree:a,initialCanonicalUrl:c,initialSeedData:b,assetPrefix:P}=e,R=(0,n.useMemo)(()=>(0,s.createInitialRouterState)({buildId:t,initialSeedData:b,initialCanonicalUrl:c,initialTree:a,initialParallelRoutes:m,isServer:!1,location:window.location,initialHead:r}),[t,b,c,a,r]),[T,w,C]=(0,i.useReducerWithReduxDevtools)(R);(0,n.useEffect)(()=>{m=null},[]);let{canonicalUrl:M}=(0,i.useUnwrapState)(T),{searchParams:x,pathname:A}=(0,n.useMemo)(()=>{let e=new URL(M,window.location.href);return{searchParams:e.searchParams,pathname:(0,g.hasBasePath)(e.pathname)?(0,v.removeBasePath)(e.pathname):e.pathname}},[M]),N=(0,n.useCallback)((e,t,r)=>{(0,n.startTransition)(()=>{w({type:u.ACTION_SERVER_PATCH,flightData:t,previousTree:e,overrideCanonicalUrl:r})})},[w]),I=(0,n.useCallback)((e,t,r)=>{let n=new URL((0,d.addBasePath)(e),location.href);return w({type:u.ACTION_NAVIGATE,url:n,isExternalUrl:S(n),locationSearch:location.search,shouldScroll:null==r||r,navigateType:t})},[w]);O=(0,n.useCallback)(e=>{(0,n.startTransition)(()=>{w({...e,type:u.ACTION_SERVER_ACTION})})},[w]);let D=(0,n.useMemo)(()=>({back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:(e,t)=>{if((0,f.isBot)(window.navigator.userAgent))return;let r=new URL((0,d.addBasePath)(e),window.location.href);S(r)||(0,n.startTransition)(()=>{var e;w({type:u.ACTION_PREFETCH,url:r,kind:null!=(e=null==t?void 0:t.kind)?e:u.PrefetchKind.FULL})})},replace:(e,t)=>{void 0===t&&(t={}),(0,n.startTransition)(()=>{var r;I(e,"replace",null==(r=t.scroll)||r)})},push:(e,t)=>{void 0===t&&(t={}),(0,n.startTransition)(()=>{var r;I(e,"push",null==(r=t.scroll)||r)})},refresh:()=>{(0,n.startTransition)(()=>{w({type:u.ACTION_REFRESH,origin:window.location.origin})})},fastRefresh:()=>{throw Error("fastRefresh can only be used in development mode. Please use refresh instead.")}}),[w,I]);(0,n.useEffect)(()=>{window.next&&(window.next.router=D)},[D]),(0,n.useEffect)(()=>{function e(e){var t;e.persisted&&(null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE)&&w({type:u.ACTION_RESTORE,url:new URL(window.location.href),tree:window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE})}return window.addEventListener("pageshow",e),()=>{window.removeEventListener("pageshow",e)}},[w]);let{pushRef:k}=(0,i.useUnwrapState)(T);if(k.mpaNavigation){if(E.pendingMpaPath!==M){let e=window.location;k.pendingPush?e.assign(M):e.replace(M),E.pendingMpaPath=M}(0,n.use)((0,_.createInfinitePromise)())}(0,n.useEffect)(()=>{window.history.pushState.bind(window.history),window.history.replaceState.bind(window.history);let e=e=>{let{state:t}=e;if(t){if(!t.__NA){window.location.reload();return}(0,n.startTransition)(()=>{w({type:u.ACTION_RESTORE,url:new URL(window.location.href),tree:t.__PRIVATE_NEXTJS_INTERNALS_TREE})})}};return window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e)}},[w]);let{cache:F,tree:L,nextUrl:U,focusAndScrollRef:H}=(0,i.useUnwrapState)(T),$=(0,n.useMemo)(()=>(0,y.findHeadInCache)(F,L[1]),[F,L]),W=n.default.createElement(h.RedirectBoundary,null,$,F.subTreeData,n.default.createElement(p.AppRouterAnnouncer,{tree:L}));return n.default.createElement(n.default.Fragment,null,n.default.createElement(j,{appRouterState:(0,i.useUnwrapState)(T),sync:C}),n.default.createElement(l.PathnameContext.Provider,{value:A},n.default.createElement(l.SearchParamsContext.Provider,{value:x},n.default.createElement(o.GlobalLayoutRouterContext.Provider,{value:{buildId:t,changeByServerResponse:N,tree:L,focusAndScrollRef:H,nextUrl:U}},n.default.createElement(o.AppRouterContext.Provider,{value:D},n.default.createElement(o.LayoutRouterContext.Provider,{value:{childNodes:F.parallelRoutes,tree:L,url:M}},W))))))}function C(e){let{globalErrorComponent:t,...r}=e;return n.default.createElement(c.ErrorBoundary,{errorComponent:t},n.default.createElement(w,r))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3706:function(e,t,r){"use strict";function n(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return n}}),r(1024),r(2265),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8955:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ErrorBoundaryHandler:function(){return l},GlobalError:function(){return i},default:function(){return c},ErrorBoundary:function(){return s}});let n=r(1024)._(r(2265)),o=r(5313),u={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},text:{fontSize:"14px",fontWeight:400,lineHeight:"28px",margin:"0 8px"}};function a(e){let{error:t}=e;if("function"==typeof fetch.__nextGetStaticStore){var r;let e=null==(r=fetch.__nextGetStaticStore())?void 0:r.getStore();if((null==e?void 0:e.isRevalidate)||(null==e?void 0:e.isStaticGeneration))throw console.error(t),t}return null}class l extends n.default.Component{static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.error?{error:null,previousPathname:e.pathname}:{error:t.error,previousPathname:e.pathname}}render(){return this.state.error?n.default.createElement(n.default.Fragment,null,n.default.createElement(a,{error:this.state.error}),this.props.errorStyles,this.props.errorScripts,n.default.createElement(this.props.errorComponent,{error:this.state.error,reset:this.reset})):this.props.children}constructor(e){super(e),this.reset=()=>{this.setState({error:null})},this.state={error:null,previousPathname:this.props.pathname}}}function i(e){let{error:t}=e,r=null==t?void 0:t.digest;return n.default.createElement("html",{id:"__next_error__"},n.default.createElement("head",null),n.default.createElement("body",null,n.default.createElement(a,{error:t}),n.default.createElement("div",{style:u.error},n.default.createElement("div",null,n.default.createElement("h2",{style:u.text},"Application error: a "+(r?"server":"client")+"-side exception has occurred (see the "+(r?"server logs":"browser console")+" for more information)."),r?n.default.createElement("p",{style:u.text},"Digest: "+r):null))))}let c=i;function s(e){let{errorComponent:t,errorStyles:r,errorScripts:u,children:a}=e,i=(0,o.usePathname)();return t?n.default.createElement(l,{pathname:i,errorComponent:t,errorStyles:r,errorScripts:u},a):n.default.createElement(n.default.Fragment,null,a)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7127:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DYNAMIC_ERROR_CODE:function(){return r},DynamicServerError:function(){return n}});let r="DYNAMIC_SERVER_USAGE";class n extends Error{constructor(e){super("Dynamic server usage: "+e),this.digest=r}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4399:function(e,t){"use strict";let r;function n(){return r||(r=new Promise(()=>{})),r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createInfinitePromise",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4950:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNextRouterError",{enumerable:!0,get:function(){return u}});let n=r(2322),o=r(6155);function u(e){return e&&e.digest&&((0,o.isRedirectError)(e)||(0,n.isNotFoundError)(e))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5613:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return P}});let n=r(1024),o=r(8533)._(r(2265)),u=n._(r(4887)),a=r(8599),l=r(3546),i=r(4399),c=r(8955),s=r(2295),f=r(3011),d=r(5737),p=r(1902),h=r(6793),y=r(555),_=["bottom","height","left","right","top","width","x","y"];function b(e,t){let r=e.getBoundingClientRect();return r.top>=0&&r.top<=t}class v extends o.default.Component{componentDidMount(){this.handlePotentialScroll()}componentDidUpdate(){this.props.focusAndScrollRef.apply&&this.handlePotentialScroll()}render(){return this.props.children}constructor(...e){super(...e),this.handlePotentialScroll=()=>{let{focusAndScrollRef:e,segmentPath:t}=this.props;if(e.apply){var r;if(0!==e.segmentPaths.length&&!e.segmentPaths.some(e=>t.every((t,r)=>(0,s.matchSegment)(t,e[r]))))return;let n=null,o=e.hashFragment;if(o&&(n="top"===o?document.body:null!=(r=document.getElementById(o))?r:document.getElementsByName(o)[0]),n||(n=u.default.findDOMNode(this)),!(n instanceof Element))return;for(;!(n instanceof HTMLElement)||function(e){if(["sticky","fixed"].includes(getComputedStyle(e).position))return!0;let t=e.getBoundingClientRect();return _.every(e=>0===t[e])}(n);){if(null===n.nextElementSibling)return;n=n.nextElementSibling}e.apply=!1,e.hashFragment=null,e.segmentPaths=[],(0,f.handleSmoothScroll)(()=>{if(o){n.scrollIntoView();return}let e=document.documentElement,t=e.clientHeight;!b(n,t)&&(e.scrollTop=0,b(n,t)||n.scrollIntoView())},{dontForceLayout:!0,onlyHashChange:e.onlyHashChange}),e.onlyHashChange=!1,n.focus()}}}}function g(e){let{segmentPath:t,children:r}=e,n=(0,o.useContext)(a.GlobalLayoutRouterContext);if(!n)throw Error("invariant global layout router not mounted");return o.default.createElement(v,{segmentPath:t,focusAndScrollRef:n.focusAndScrollRef},r)}function m(e){let{parallelRouterKey:t,url:r,childNodes:n,segmentPath:u,tree:c,cacheKey:f}=e,d=(0,o.useContext)(a.GlobalLayoutRouterContext);if(!d)throw Error("invariant global layout router not mounted");let{buildId:p,changeByServerResponse:h,tree:y}=d,_=n.get(f);if(!_||_.status===a.CacheStates.LAZY_INITIALIZED){let e=function e(t,r){if(t){let[n,o]=t,u=2===t.length;if((0,s.matchSegment)(r[0],n)&&r[1].hasOwnProperty(o)){if(u){let t=e(void 0,r[1][o]);return[r[0],{...r[1],[o]:[t[0],t[1],t[2],"refetch"]}]}return[r[0],{...r[1],[o]:e(t.slice(2),r[1][o])}]}}return r}(["",...u],y);_={status:a.CacheStates.DATA_FETCH,data:(0,l.fetchServerResponse)(new URL(r,location.origin),e,d.nextUrl,p),subTreeData:null,head:_&&_.status===a.CacheStates.LAZY_INITIALIZED?_.head:void 0,parallelRoutes:_&&_.status===a.CacheStates.LAZY_INITIALIZED?_.parallelRoutes:new Map},n.set(f,_)}if(!_)throw Error("Child node should always exist");if(_.subTreeData&&_.data)throw Error("Child node should not have both subTreeData and data");if(_.data){let[e,t]=(0,o.use)(_.data);_.data=null,setTimeout(()=>{(0,o.startTransition)(()=>{h(y,e,t)})}),(0,o.use)((0,i.createInfinitePromise)())}return _.subTreeData||(0,o.use)((0,i.createInfinitePromise)()),o.default.createElement(a.LayoutRouterContext.Provider,{value:{tree:c[1][t],childNodes:_.parallelRoutes,url:r}},_.subTreeData)}function O(e){let{children:t,loading:r,loadingStyles:n,loadingScripts:u,hasLoading:a}=e;return a?o.default.createElement(o.Suspense,{fallback:o.default.createElement(o.default.Fragment,null,n,u,r)},t):o.default.createElement(o.default.Fragment,null,t)}function P(e){let{parallelRouterKey:t,segmentPath:r,error:n,errorStyles:u,errorScripts:l,templateStyles:i,templateScripts:s,loading:f,loadingStyles:_,loadingScripts:b,hasLoading:v,template:P,notFound:E,notFoundStyles:R,styles:S}=e,j=(0,o.useContext)(a.LayoutRouterContext);if(!j)throw Error("invariant expected layout router to be mounted");let{childNodes:T,tree:w,url:C}=j,M=T.get(t);M||(M=new Map,T.set(t,M));let x=w[1][t][0],A=(0,h.getSegmentValue)(x),N=[x];return o.default.createElement(o.default.Fragment,null,S,N.map(e=>{let S=(0,h.getSegmentValue)(e),j=(0,y.createRouterCacheKey)(e);return o.default.createElement(a.TemplateContext.Provider,{key:(0,y.createRouterCacheKey)(e,!0),value:o.default.createElement(g,{segmentPath:r},o.default.createElement(c.ErrorBoundary,{errorComponent:n,errorStyles:u,errorScripts:l},o.default.createElement(O,{hasLoading:v,loading:f,loadingStyles:_,loadingScripts:b},o.default.createElement(p.NotFoundBoundary,{notFound:E,notFoundStyles:R},o.default.createElement(d.RedirectBoundary,null,o.default.createElement(m,{parallelRouterKey:t,url:C,tree:w,childNodes:M,segmentPath:r,cacheKey:j,isActive:A===S}))))))},i,s,P)}))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2295:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{matchSegment:function(){return o},canSegmentBeOverridden:function(){return u}});let n=r(5682),o=(e,t)=>"string"==typeof e?"string"==typeof t&&e===t:"string"!=typeof t&&e[0]===t[0]&&e[1]===t[1],u=(e,t)=>{var r;return!Array.isArray(e)&&!!Array.isArray(t)&&(null==(r=(0,n.getSegmentParam)(e))?void 0:r.param)===t[0]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5313:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return p},useSearchParams:function(){return h},usePathname:function(){return y},ServerInsertedHTMLContext:function(){return i.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return i.useServerInsertedHTML},useRouter:function(){return _},useParams:function(){return b},useSelectedLayoutSegments:function(){return v},useSelectedLayoutSegment:function(){return g},redirect:function(){return c.redirect},permanentRedirect:function(){return c.permanentRedirect},RedirectType:function(){return c.RedirectType},notFound:function(){return s.notFound}});let n=r(2265),o=r(8599),u=r(4758),a=r(3706),l=r(6793),i=r(2472),c=r(6155),s=r(2322),f=Symbol("internal for urlsearchparams readonly");function d(){return Error("ReadonlyURLSearchParams cannot be modified")}class p{[Symbol.iterator](){return this[f][Symbol.iterator]()}append(){throw d()}delete(){throw d()}set(){throw d()}sort(){throw d()}constructor(e){this[f]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e),this.size=e.size}}function h(){(0,a.clientHookInServerComponentError)("useSearchParams");let e=(0,n.useContext)(u.SearchParamsContext);return(0,n.useMemo)(()=>e?new p(e):null,[e])}function y(){return(0,a.clientHookInServerComponentError)("usePathname"),(0,n.useContext)(u.PathnameContext)}function _(){(0,a.clientHookInServerComponentError)("useRouter");let e=(0,n.useContext)(o.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function b(){(0,a.clientHookInServerComponentError)("useParams");let e=(0,n.useContext)(o.GlobalLayoutRouterContext),t=(0,n.useContext)(u.PathParamsContext);return(0,n.useMemo)(()=>(null==e?void 0:e.tree)?function e(t,r){for(let n of(void 0===r&&(r={}),Object.values(t[1]))){let t=n[0],o=Array.isArray(t),u=o?t[1]:t;!u||u.startsWith("__PAGE__")||(o&&("c"===t[2]||"oc"===t[2])?r[t[0]]=t[1].split("/"):o&&(r[t[0]]=t[1]),r=e(n,r))}return r}(e.tree):t,[null==e?void 0:e.tree,t])}function v(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,n.useContext)(o.LayoutRouterContext);return function e(t,r,n,o){let u;if(void 0===n&&(n=!0),void 0===o&&(o=[]),n)u=t[1][r];else{var a;let e=t[1];u=null!=(a=e.children)?a:Object.values(e)[0]}if(!u)return o;let i=u[0],c=(0,l.getSegmentValue)(i);return!c||c.startsWith("__PAGE__")?o:(o.push(c),e(u,r,!1,o))}(t,e)}function g(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=v(e);return 0===t.length?null:t[0]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1902:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NotFoundBoundary",{enumerable:!0,get:function(){return a}});let n=r(1024)._(r(2265)),o=r(5313);class u extends n.default.Component{static getDerivedStateFromError(e){if((null==e?void 0:e.digest)==="NEXT_NOT_FOUND")return{notFoundTriggered:!0};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.notFoundTriggered?{notFoundTriggered:!1,previousPathname:e.pathname}:{notFoundTriggered:t.notFoundTriggered,previousPathname:e.pathname}}render(){return this.state.notFoundTriggered?n.default.createElement(n.default.Fragment,null,n.default.createElement("meta",{name:"robots",content:"noindex"}),!1,this.props.notFoundStyles,this.props.notFound):this.props.children}constructor(e){super(e),this.state={notFoundTriggered:!!e.asNotFound,previousPathname:e.pathname}}}function a(e){let{notFound:t,notFoundStyles:r,asNotFound:a,children:l}=e,i=(0,o.usePathname)();return t?n.default.createElement(u,{pathname:i,notFound:t,notFoundStyles:r,asNotFound:a},l):n.default.createElement(n.default.Fragment,null,l)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2322:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{notFound:function(){return n},isNotFoundError:function(){return o}});let r="NEXT_NOT_FOUND";function n(){let e=Error(r);throw e.digest=r,e}function o(e){return(null==e?void 0:e.digest)===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2418:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PromiseQueue",{enumerable:!0,get:function(){return c}});let n=r(4677),o=r(6249);var u=o._("_maxConcurrency"),a=o._("_runningCount"),l=o._("_queue"),i=o._("_processNext");class c{enqueue(e){let t,r;let o=new Promise((e,n)=>{t=e,r=n}),u=async()=>{try{n._(this,a)[a]++;let r=await e();t(r)}catch(e){r(e)}finally{n._(this,a)[a]--,n._(this,i)[i]()}};return n._(this,l)[l].push({promiseFn:o,task:u}),n._(this,i)[i](),o}bump(e){let t=n._(this,l)[l].findIndex(t=>t.promiseFn===e);if(t>-1){let e=n._(this,l)[l].splice(t,1)[0];n._(this,l)[l].unshift(e),n._(this,i)[i](!0)}}constructor(e=5){Object.defineProperty(this,i,{value:s}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0}),Object.defineProperty(this,l,{writable:!0,value:void 0}),n._(this,u)[u]=e,n._(this,a)[a]=0,n._(this,l)[l]=[]}}function s(e){if(void 0===e&&(e=!1),(n._(this,a)[a]0){var t;null==(t=n._(this,l)[l].shift())||t.task()}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5737:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectErrorBoundary:function(){return l},RedirectBoundary:function(){return i}});let n=r(8533)._(r(2265)),o=r(5313),u=r(6155);function a(e){let{redirect:t,reset:r,redirectType:a}=e,l=(0,o.useRouter)();return(0,n.useEffect)(()=>{n.default.startTransition(()=>{a===u.RedirectType.push?l.push(t,{}):l.replace(t,{}),r()})},[t,a,r,l]),null}class l extends n.default.Component{static getDerivedStateFromError(e){if((0,u.isRedirectError)(e))return{redirect:(0,u.getURLFromRedirectError)(e),redirectType:(0,u.getRedirectTypeFromError)(e)};throw e}render(){let{redirect:e,redirectType:t}=this.state;return null!==e&&null!==t?n.default.createElement(a,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null})}):this.props.children}constructor(e){super(e),this.state={redirect:null,redirectType:null}}}function i(e){let{children:t}=e,r=(0,o.useRouter)();return n.default.createElement(l,{router:r},t)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9510:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return r}}),(n=r||(r={}))[n.SeeOther=303]="SeeOther",n[n.TemporaryRedirect=307]="TemporaryRedirect",n[n.PermanentRedirect=308]="PermanentRedirect",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6155:function(e,t,r){"use strict";var n,o;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectType:function(){return n},getRedirectError:function(){return c},redirect:function(){return s},permanentRedirect:function(){return f},isRedirectError:function(){return d},getURLFromRedirectError:function(){return p},getRedirectTypeFromError:function(){return h},getRedirectStatusCodeFromError:function(){return y}});let u=r(6668),a=r(1264),l=r(9510),i="NEXT_REDIRECT";function c(e,t,r){void 0===r&&(r=l.RedirectStatusCode.TemporaryRedirect);let n=Error(i);n.digest=i+";"+t+";"+e+";"+r+";";let o=u.requestAsyncStorage.getStore();return o&&(n.mutableCookies=o.mutableCookies),n}function s(e,t){void 0===t&&(t="replace");let r=a.actionAsyncStorage.getStore();throw c(e,t,(null==r?void 0:r.isAction)?l.RedirectStatusCode.SeeOther:l.RedirectStatusCode.TemporaryRedirect)}function f(e,t){void 0===t&&(t="replace");let r=a.actionAsyncStorage.getStore();throw c(e,t,(null==r?void 0:r.isAction)?l.RedirectStatusCode.SeeOther:l.RedirectStatusCode.PermanentRedirect)}function d(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,r,n,o]=e.digest.split(";",4),u=Number(o);return t===i&&("replace"===r||"push"===r)&&"string"==typeof n&&!isNaN(u)&&u in l.RedirectStatusCode}function p(e){return d(e)?e.digest.split(";",3)[2]:null}function h(e){if(!d(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function y(e){if(!d(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(o=n||(n={})).push="push",o.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1778:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let n=r(8533)._(r(2265)),o=r(8599);function u(){let e=(0,n.useContext)(o.TemplateContext);return n.default.createElement(n.default.Fragment,null,e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6668:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return n}});let n=(0,r(1704).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9671:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyFlightData",{enumerable:!0,get:function(){return a}});let n=r(8599),o=r(4765),u=r(0);function a(e,t,r,a){void 0===a&&(a=!1);let[l,i,c]=r.slice(-3);if(null===i)return!1;if(3===r.length){let r=i[2];t.status=n.CacheStates.READY,t.subTreeData=r,(0,o.fillLazyItemsTillLeafWithHead)(t,e,l,i,c,a)}else t.status=n.CacheStates.READY,t.subTreeData=e.subTreeData,t.parallelRoutes=new Map(e.parallelRoutes),(0,u.fillCacheWithNewSubTreeData)(t,e,r,a);return!0}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7098:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyRouterStatePatchToTree",{enumerable:!0,get:function(){return function e(t,r,u){let a;let[l,i,,,c]=r;if(1===t.length)return o(r,u);let[s,f]=t;if(!(0,n.matchSegment)(s,l))return null;if(2===t.length)a=o(i[f],u);else if(null===(a=e(t.slice(2),i[f],u)))return null;let d=[t[0],{...i,[f]:a}];return c&&(d[4]=!0),d}}});let n=r(2295);function o(e,t){let[r,u]=e,[a,l]=t;if("__DEFAULT__"===a&&"__DEFAULT__"!==r)return e;if((0,n.matchSegment)(r,a)){let t={};for(let e in u)void 0!==l[e]?t[e]=o(u[e],l[e]):t[e]=u[e];for(let e in l)t[e]||(t[e]=l[e]);let n=[r,t];return e[2]&&(n[2]=e[2]),e[3]&&(n[3]=e[3]),e[4]&&(n[4]=e[4]),n}return t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4038:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{extractPathFromFlightRouterState:function(){return c},computeChangedPath:function(){return s}});let n=r(4507),o=r(3266),u=r(2295),a=e=>"/"===e[0]?e.slice(1):e,l=e=>"string"==typeof e?e:e[1];function i(e){return e.reduce((e,t)=>""===(t=a(t))||(0,o.isGroupSegment)(t)?e:e+"/"+t,"")||"/"}function c(e){var t;let r=Array.isArray(e[0])?e[0][1]:e[0];if("__DEFAULT__"===r||n.INTERCEPTION_ROUTE_MARKERS.some(e=>r.startsWith(e)))return;if(r.startsWith("__PAGE__"))return"";let o=[r],u=null!=(t=e[1])?t:{},a=u.children?c(u.children):void 0;if(void 0!==a)o.push(a);else for(let[e,t]of Object.entries(u)){if("children"===e)continue;let r=c(t);void 0!==r&&o.push(r)}return i(o)}function s(e,t){let r=function e(t,r){let[o,a]=t,[i,s]=r,f=l(o),d=l(i);if(n.INTERCEPTION_ROUTE_MARKERS.some(e=>f.startsWith(e)||d.startsWith(e)))return"";if(!(0,u.matchSegment)(o,i)){var p;return null!=(p=c(r))?p:""}for(let t in a)if(s[t]){let r=e(a[t],s[t]);if(null!==r)return l(i)+"/"+r}return null}(e,t);return null==r||"/"===r?r:i(r.split("/"))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8419:function(e,t){"use strict";function r(e,t){return void 0===t&&(t=!0),e.pathname+e.search+(t?e.hash:"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createHrefFromUrl",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4492:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createInitialRouterState",{enumerable:!0,get:function(){return l}});let n=r(8599),o=r(8419),u=r(4765),a=r(4038);function l(e){var t;let{buildId:r,initialTree:l,initialSeedData:i,initialCanonicalUrl:c,initialParallelRoutes:s,isServer:f,location:d,initialHead:p}=e,h=i[2],y={status:n.CacheStates.READY,data:null,subTreeData:h,parallelRoutes:f?new Map:s};return(null===s||0===s.size)&&(0,u.fillLazyItemsTillLeafWithHead)(y,void 0,l,i,p),{buildId:r,tree:l,cache:y,prefetchCache:new Map,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:{apply:!1,onlyHashChange:!1,hashFragment:null,segmentPaths:[]},canonicalUrl:d?(0,o.createHrefFromUrl)(d):c,nextUrl:null!=(t=(0,a.extractPathFromFlightRouterState)(l)||(null==d?void 0:d.pathname))?t:null}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},555:function(e,t){"use strict";function r(e,t){return void 0===t&&(t=!1),Array.isArray(e)?(e[0]+"|"+e[1]+"|"+e[2]).toLowerCase():t&&e.startsWith("__PAGE__")?"__PAGE__":e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRouterCacheKey",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3546:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fetchServerResponse",{enumerable:!0,get:function(){return s}});let n=r(2275),o=r(7690),u=r(5355),a=r(1414),l=r(1),{createFromFetch:i}=r(6671);function c(e){return[(0,o.urlToUrlWithoutFlightMarker)(e).toString(),void 0]}async function s(e,t,r,s,f){let d={[n.RSC_HEADER]:"1",[n.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(t))};f===a.PrefetchKind.AUTO&&(d[n.NEXT_ROUTER_PREFETCH_HEADER]="1"),r&&(d[n.NEXT_URL]=r);let p=(0,l.hexHash)([d[n.NEXT_ROUTER_PREFETCH_HEADER]||"0",d[n.NEXT_ROUTER_STATE_TREE],d[n.NEXT_URL]].join(","));try{let t=new URL(e);t.pathname.endsWith("/")?t.pathname+="index.txt":t.pathname+=".txt",t.searchParams.set(n.NEXT_RSC_UNION_QUERY,p);let r=await fetch(t,{credentials:"same-origin",headers:d}),a=(0,o.urlToUrlWithoutFlightMarker)(r.url),l=r.redirected?a:void 0,f=r.headers.get("content-type")||"",h=!!r.headers.get(n.NEXT_DID_POSTPONE_HEADER),y=f===n.RSC_CONTENT_TYPE_HEADER;if(y||(y=f.startsWith("text/plain")),!y||!r.ok)return e.hash&&(a.hash=e.hash),c(a.toString());let[_,b]=await i(Promise.resolve(r),{callServer:u.callServer});if(s!==_)return c(r.url);return[b,l,h]}catch(t){return console.error("Failed to fetch RSC payload for "+e+". Falling back to browser navigation.",t),[e.toString(),void 0]}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2950:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillCacheWithDataProperty",{enumerable:!0,get:function(){return function e(t,r,u,a){let l=u.length<=2,[i,c]=u,s=(0,o.createRouterCacheKey)(c),f=r.parallelRoutes.get(i),d=t.parallelRoutes.get(i);d&&d!==f||(d=new Map(f),t.parallelRoutes.set(i,d));let p=null==f?void 0:f.get(s),h=d.get(s);if(l){h&&h.data&&h!==p||d.set(s,{status:n.CacheStates.DATA_FETCH,data:a(),subTreeData:null,parallelRoutes:new Map});return}if(!h||!p){h||d.set(s,{status:n.CacheStates.DATA_FETCH,data:a(),subTreeData:null,parallelRoutes:new Map});return}return h===p&&(h={status:h.status,data:h.data,subTreeData:h.subTreeData,parallelRoutes:new Map(h.parallelRoutes)},d.set(s,h)),e(h,p,u.slice(2),a)}}});let n=r(8599),o=r(555);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},0:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillCacheWithNewSubTreeData",{enumerable:!0,get:function(){return function e(t,r,l,i){let c=l.length<=5,[s,f]=l,d=(0,a.createRouterCacheKey)(f),p=r.parallelRoutes.get(s);if(!p)return;let h=t.parallelRoutes.get(s);h&&h!==p||(h=new Map(p),t.parallelRoutes.set(s,h));let y=p.get(d),_=h.get(d);if(c){if(!_||!_.data||_===y){let e=l[3],t=e[2];_={status:n.CacheStates.READY,data:null,subTreeData:t,parallelRoutes:y?new Map(y.parallelRoutes):new Map},y&&(0,o.invalidateCacheByRouterState)(_,y,l[2]),(0,u.fillLazyItemsTillLeafWithHead)(_,y,l[2],e,l[4],i),h.set(d,_)}return}_&&y&&(_===y&&(_={status:_.status,data:_.data,subTreeData:_.subTreeData,parallelRoutes:new Map(_.parallelRoutes)},h.set(d,_)),e(_,y,l.slice(2),i))}}});let n=r(8599),o=r(6152),u=r(4765),a=r(555);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4765:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillLazyItemsTillLeafWithHead",{enumerable:!0,get:function(){return function e(t,r,u,a,l,i){if(0===Object.keys(u[1]).length){t.head=l;return}for(let c in u[1]){let s;let f=u[1][c],d=f[0],p=(0,o.createRouterCacheKey)(d),h=null!==a&&null!==a[1]&&void 0!==a[1][c]?a[1][c]:null;if(r){let o=r.parallelRoutes.get(c);if(o){let r,u=new Map(o),a=u.get(p);if(null!==h){let e=h[2];r={status:n.CacheStates.READY,data:null,subTreeData:e,parallelRoutes:new Map(null==a?void 0:a.parallelRoutes)}}else r=i&&a?{status:a.status,data:a.data,subTreeData:a.subTreeData,parallelRoutes:new Map(a.parallelRoutes)}:{status:n.CacheStates.LAZY_INITIALIZED,data:null,subTreeData:null,parallelRoutes:new Map(null==a?void 0:a.parallelRoutes)};u.set(p,r),e(r,a,f,h||null,l,i),t.parallelRoutes.set(c,u);continue}}if(null!==h){let e=h[2];s={status:n.CacheStates.READY,data:null,subTreeData:e,parallelRoutes:new Map}}else s={status:n.CacheStates.LAZY_INITIALIZED,data:null,subTreeData:null,parallelRoutes:new Map};let y=t.parallelRoutes.get(c);y?y.set(p,s):t.parallelRoutes.set(c,new Map([[p,s]])),e(s,void 0,f,h,l,i)}}}});let n=r(8599),o=r(555);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1486:function(e,t){"use strict";var r,n;function o(e){let{kind:t,prefetchTime:r,lastUsedTime:n}=e;return Date.now()<(null!=n?n:r)+3e4?n?"reusable":"fresh":"auto"===t&&Date.now(){let[f,y,_]=t;if(T&&!T.lastUsedTime&&(T.lastUsedTime=Date.now()),"string"==typeof f)return v(e,E,f,j);let m=e.tree,O=e.cache,M=[];for(let t of f){let u=t.slice(0,-4),f=t.slice(-3)[0],d=["",...u],y=(0,i.applyRouterStatePatchToTree)(d,m,f);if(null===y&&(y=(0,i.applyRouterStatePatchToTree)(d,C,f)),null!==y){if((0,s.isNavigatingToNewRootLayout)(m,y))return v(e,E,S,j);let i=(0,b.createEmptyCacheNode)(),P=(0,p.applyFlightData)(O,i,t,(null==T?void 0:T.kind)==="auto"&&w===h.PrefetchCacheEntryStatus.reusable);for(let t of((!P&&w===h.PrefetchCacheEntryStatus.stale||_)&&(P=function(e,t,r,o,u){let a=!1;for(let i of(e.status=n.CacheStates.READY,e.subTreeData=t.subTreeData,e.parallelRoutes=new Map(t.parallelRoutes),g(o).map(e=>[...r,...e])))(0,l.fillCacheWithDataProperty)(e,t,i,u),a=!0;return a}(i,O,u,f,()=>(0,o.fetchServerResponse)(r,m,e.nextUrl,e.buildId))),(0,c.shouldHardNavigate)(d,m)?(i.status=n.CacheStates.READY,i.subTreeData=O.subTreeData,(0,a.invalidateCacheBelowFlightSegmentPath)(i,O,u),E.cache=i):P&&(E.cache=i),O=i,m=y,g(f))){let e=[...u,...t];"__DEFAULT__"!==e[e.length-1]&&M.push(e)}}}return E.patchedTree=m,E.canonicalUrl=y?(0,u.createHrefFromUrl)(y):S,E.pendingPush=j,E.scrollableSegments=M,E.hashFragment=R,E.shouldScroll=P,(0,d.handleMutable)(e,E)},()=>e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5678:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{prefetchQueue:function(){return i},prefetchReducer:function(){return c}});let n=r(8419),o=r(3546),u=r(1414),a=r(7052),l=r(2275),i=new(r(2418)).PromiseQueue(5);function c(e,t){(0,a.prunePrefetchCache)(e.prefetchCache);let{url:r}=t;r.searchParams.delete(l.NEXT_RSC_UNION_QUERY);let c=(0,n.createHrefFromUrl)(r,!1),s=e.prefetchCache.get(c);if(s&&(s.kind===u.PrefetchKind.TEMPORARY&&e.prefetchCache.set(c,{...s,kind:t.kind}),!(s.kind===u.PrefetchKind.AUTO&&t.kind===u.PrefetchKind.FULL)))return e;let f=i.enqueue(()=>(0,o.fetchServerResponse)(r,e.tree,e.nextUrl,e.buildId,t.kind));return e.prefetchCache.set(c,{treeAtTimeOfPrefetch:e.tree,data:f,kind:t.kind,prefetchTime:Date.now(),lastUsedTime:null}),e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7052:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"prunePrefetchCache",{enumerable:!0,get:function(){return o}});let n=r(1486);function o(e){for(let[t,r]of e)(0,n.getPrefetchEntryCacheStatus)(r)===n.PrefetchCacheEntryStatus.expired&&e.delete(t)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7491:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"refreshReducer",{enumerable:!0,get:function(){return d}});let n=r(3546),o=r(8419),u=r(7098),a=r(1956),l=r(5596),i=r(8875),c=r(8599),s=r(4765),f=r(7690);function d(e,t){let{origin:r}=t,d={},p=e.canonicalUrl,h=e.tree;d.preserveCustomHistoryState=!1;let y=(0,f.createEmptyCacheNode)();return y.data=(0,n.fetchServerResponse)(new URL(p,r),[h[0],h[1],h[2],"refetch"],e.nextUrl,e.buildId),y.data.then(t=>{let[r,n]=t;if("string"==typeof r)return(0,l.handleExternalUrl)(e,d,r,e.pushRef.pendingPush);for(let t of(y.data=null,r)){if(3!==t.length)return console.log("REFRESH FAILED"),e;let[r]=t,i=(0,u.applyRouterStatePatchToTree)([""],h,r);if(null===i)throw Error("SEGMENT MISMATCH");if((0,a.isNavigatingToNewRootLayout)(h,i))return(0,l.handleExternalUrl)(e,d,p,e.pushRef.pendingPush);let f=n?(0,o.createHrefFromUrl)(n):void 0;n&&(d.canonicalUrl=f);let[_,b]=t.slice(-2);if(null!==_){let e=_[2];y.status=c.CacheStates.READY,y.subTreeData=e,(0,s.fillLazyItemsTillLeafWithHead)(y,void 0,r,_,b),d.cache=y,d.prefetchCache=new Map}d.patchedTree=i,d.canonicalUrl=p,h=i}return(0,i.handleMutable)(e,d)},()=>e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7222:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"restoreReducer",{enumerable:!0,get:function(){return u}});let n=r(8419),o=r(4038);function u(e,t){var r;let{url:u,tree:a}=t,l=(0,n.createHrefFromUrl)(u);return{buildId:e.buildId,canonicalUrl:l,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:e.focusAndScrollRef,cache:e.cache,prefetchCache:e.prefetchCache,tree:a,nextUrl:null!=(r=(0,o.extractPathFromFlightRouterState)(a))?r:u.pathname}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},899:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverActionReducer",{enumerable:!0,get:function(){return v}});let n=r(5355),o=r(2275),u=r(5786),a=r(8419),l=r(5596),i=r(7098),c=r(1956),s=r(8599),f=r(8875),d=r(4765),p=r(7690),h=r(4038),{createFromFetch:y,encodeReply:_}=r(6671);async function b(e,t){let r,{actionId:a,actionArgs:l}=t,i=await _(l),c=(0,h.extractPathFromFlightRouterState)(e.tree),s=e.nextUrl&&e.nextUrl!==c,f=await fetch("",{method:"POST",headers:{Accept:o.RSC_CONTENT_TYPE_HEADER,[o.ACTION]:a,[o.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(e.tree)),...s?{[o.NEXT_URL]:e.nextUrl}:{}},body:i}),d=f.headers.get("x-action-redirect");try{let e=JSON.parse(f.headers.get("x-action-revalidated")||"[[],0,0]");r={paths:e[0]||[],tag:!!e[1],cookie:e[2]}}catch(e){r={paths:[],tag:!1,cookie:!1}}let p=d?new URL((0,u.addBasePath)(d),new URL(e.canonicalUrl,window.location.href)):void 0;if(f.headers.get("content-type")===o.RSC_CONTENT_TYPE_HEADER){let e=await y(Promise.resolve(f),{callServer:n.callServer});if(d){let[,t]=null!=e?e:[];return{actionFlightData:t,redirectLocation:p,revalidatedParts:r}}let[t,[,o]]=null!=e?e:[];return{actionResult:t,actionFlightData:o,redirectLocation:p,revalidatedParts:r}}return{redirectLocation:p,revalidatedParts:r}}function v(e,t){let{resolve:r,reject:n}=t,o={},u=e.canonicalUrl,h=e.tree;return o.preserveCustomHistoryState=!1,o.inFlightServerAction=b(e,t),o.inFlightServerAction.then(t=>{let{actionResult:n,actionFlightData:y,redirectLocation:_}=t;if(_&&(e.pushRef.pendingPush=!0,o.pendingPush=!0),!y)return(o.actionResultResolved||(r(n),o.actionResultResolved=!0),_)?(0,l.handleExternalUrl)(e,o,_.href,e.pushRef.pendingPush):e;if("string"==typeof y)return(0,l.handleExternalUrl)(e,o,y,e.pushRef.pendingPush);for(let t of(o.inFlightServerAction=null,y)){if(3!==t.length)return console.log("SERVER ACTION APPLY FAILED"),e;let[r]=t,n=(0,i.applyRouterStatePatchToTree)([""],h,r);if(null===n)throw Error("SEGMENT MISMATCH");if((0,c.isNavigatingToNewRootLayout)(h,n))return(0,l.handleExternalUrl)(e,o,u,e.pushRef.pendingPush);let[a,f]=t.slice(-2),y=null!==a?a[2]:null;if(null!==y){let e=(0,p.createEmptyCacheNode)();e.status=s.CacheStates.READY,e.subTreeData=y,(0,d.fillLazyItemsTillLeafWithHead)(e,void 0,r,a,f),o.cache=e,o.prefetchCache=new Map}o.patchedTree=n,o.canonicalUrl=u,h=n}if(_){let e=(0,a.createHrefFromUrl)(_,!1);o.canonicalUrl=e}return o.actionResultResolved||(r(n),o.actionResultResolved=!0),(0,f.handleMutable)(e,o)},t=>{if("rejected"===t.status)return o.actionResultResolved||(n(t.reason),o.actionResultResolved=!0),e;throw t})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4173:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverPatchReducer",{enumerable:!0,get:function(){return s}});let n=r(8419),o=r(7098),u=r(1956),a=r(5596),l=r(9671),i=r(8875),c=r(7690);function s(e,t){let{flightData:r,overrideCanonicalUrl:s}=t,f={};if(f.preserveCustomHistoryState=!1,"string"==typeof r)return(0,a.handleExternalUrl)(e,f,r,e.pushRef.pendingPush);let d=e.tree,p=e.cache;for(let t of r){let r=t.slice(0,-4),[i]=t.slice(-3,-2),h=(0,o.applyRouterStatePatchToTree)(["",...r],d,i);if(null===h)throw Error("SEGMENT MISMATCH");if((0,u.isNavigatingToNewRootLayout)(d,h))return(0,a.handleExternalUrl)(e,f,e.canonicalUrl,e.pushRef.pendingPush);let y=s?(0,n.createHrefFromUrl)(s):void 0;y&&(f.canonicalUrl=y);let _=(0,c.createEmptyCacheNode)();(0,l.applyFlightData)(p,_,t),f.patchedTree=h,f.cache=_,p=_,d=h}return(0,i.handleMutable)(e,f)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1414:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PrefetchKind:function(){return r},ACTION_REFRESH:function(){return o},ACTION_NAVIGATE:function(){return u},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return l},ACTION_PREFETCH:function(){return i},ACTION_FAST_REFRESH:function(){return c},ACTION_SERVER_ACTION:function(){return s},isThenable:function(){return f}});let o="refresh",u="navigate",a="restore",l="server-patch",i="prefetch",c="fast-refresh",s="server-action";function f(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(n=r||(r={})).AUTO="auto",n.FULL="full",n.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6878:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reducer",{enumerable:!0,get:function(){return f}});let n=r(1414),o=r(5596),u=r(4173),a=r(7222),l=r(7491),i=r(5678),c=r(6503),s=r(899),f=function(e,t){switch(t.type){case n.ACTION_NAVIGATE:return(0,o.navigateReducer)(e,t);case n.ACTION_SERVER_PATCH:return(0,u.serverPatchReducer)(e,t);case n.ACTION_RESTORE:return(0,a.restoreReducer)(e,t);case n.ACTION_REFRESH:return(0,l.refreshReducer)(e,t);case n.ACTION_FAST_REFRESH:return(0,c.fastRefreshReducer)(e,t);case n.ACTION_PREFETCH:return(0,i.prefetchReducer)(e,t);case n.ACTION_SERVER_ACTION:return(0,s.serverActionReducer)(e,t);default:throw Error("Unknown action")}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3556:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"shouldHardNavigate",{enumerable:!0,get:function(){return function e(t,r){let[o,u]=r,[a,l]=t;return(0,n.matchSegment)(a,o)?!(t.length<=2)&&e(t.slice(2),u[l]):!!Array.isArray(a)}}});let n=r(2295);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5797:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createSearchParamsBailoutProxy",{enumerable:!0,get:function(){return o}});let n=r(8181);function o(){return new Proxy({},{get(e,t){"string"==typeof t&&(0,n.staticGenerationBailout)("searchParams."+t)}})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"staticGenerationAsyncStorage",{enumerable:!0,get:function(){return n}});let n=(0,r(1704).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8181:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"staticGenerationBailout",{enumerable:!0,get:function(){return l}});let n=r(7127),o=r(2);class u extends Error{constructor(...e){super(...e),this.code="NEXT_STATIC_GEN_BAILOUT"}}function a(e,t){let{dynamic:r,link:n}=t||{};return"Page"+(r?' with `dynamic = "'+r+'"`':"")+" couldn't be rendered statically because it used `"+e+"`."+(n?" See more info here: "+n:"")}let l=(e,t)=>{let{dynamic:r,link:l}=void 0===t?{}:t,i=o.staticGenerationAsyncStorage.getStore();if(!i)return!1;if(i.forceStatic)return!0;if(i.dynamicShouldError)throw new u(a(e,{link:l,dynamic:null!=r?r:"error"}));let c=a(e,{dynamic:r,link:"https://nextjs.org/docs/messages/dynamic-server-error"});if(null==i.postpone||i.postpone.call(i,e),i.revalidate=0,i.isStaticGeneration){let t=new n.DynamicServerError(c);throw i.dynamicUsageDescription=e,i.dynamicUsageStack=t.stack,t}return!1};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7831:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let n=r(1024)._(r(2265)),o=r(5797);function u(e){let{Component:t,propsForComponent:r,isStaticGeneration:u}=e;if(u){let e=(0,o.createSearchParamsBailoutProxy)();return n.default.createElement(t,{searchParams:e,...r})}return n.default.createElement(t,r)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1276:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{useUnwrapState:function(){return l},useReducerWithReduxDevtools:function(){return i}});let n=r(8533)._(r(2265)),o=r(1414),u=r(5367);function a(e){if(e instanceof Map){let t={};for(let[r,n]of e.entries()){if("function"==typeof n){t[r]="fn()";continue}if("object"==typeof n&&null!==n){if(n.$$typeof){t[r]=n.$$typeof.toString();continue}if(n._bundlerConfig){t[r]="FlightData";continue}}t[r]=a(n)}return t}if("object"==typeof e&&null!==e){let t={};for(let r in e){let n=e[r];if("function"==typeof n){t[r]="fn()";continue}if("object"==typeof n&&null!==n){if(n.$$typeof){t[r]=n.$$typeof.toString();continue}if(n.hasOwnProperty("_bundlerConfig")){t[r]="FlightData";continue}}t[r]=a(n)}return t}return Array.isArray(e)?e.map(a):e}function l(e){return(0,o.isThenable)(e)?(0,n.use)(e):e}let i=function(e){let[t,r]=n.default.useState(e),o=(0,n.useContext)(u.ActionQueueContext);if(!o)throw Error("Invariant: Missing ActionQueueContext");let l=(0,n.useRef)(),i=(0,n.useRef)();return(0,n.useEffect)(()=>{if(!l.current&&!1!==i.current){if(void 0===i.current&&void 0===window.__REDUX_DEVTOOLS_EXTENSION__){i.current=!1;return}return l.current=window.__REDUX_DEVTOOLS_EXTENSION__.connect({instanceId:8e3,name:"next-router"}),l.current&&(l.current.init(a(e)),o&&(o.devToolsInstance=l.current)),()=>{l.current=void 0}}},[e,o]),[t,(0,n.useCallback)(t=>{o.state||(o.state=e),o.dispatch(t,r)},[o,e]),(0,n.useCallback)(e=>{l.current&&l.current.send({type:"RENDER_SYNC"},a(e))},[])]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7379:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});let n=r(7027);function o(e){return(0,n.pathHasPrefix)(e,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2139:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return u}});let n=r(5868),o=r(6506),u=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:r,hash:u}=(0,o.parsePath)(e);return""+(0,n.removeTrailingSlash)(t)+r+u};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4101:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let n=r(6491);function o(e){let t="function"==typeof reportError?reportError:e=>{window.console.error(e)};e.digest!==n.NEXT_DYNAMIC_NO_SSR_CODE&&t(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8895:function(e,t,r){"use strict";function n(e){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return n}}),r(7379),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8599:function(e,t,r){"use strict";var n,o;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{CacheStates:function(){return n},AppRouterContext:function(){return a},LayoutRouterContext:function(){return l},GlobalLayoutRouterContext:function(){return i},TemplateContext:function(){return c}});let u=r(1024)._(r(2265));(o=n||(n={})).LAZY_INITIALIZED="LAZYINITIALIZED",o.DATA_FETCH="DATAFETCH",o.READY="READY";let a=u.default.createContext(null),l=u.default.createContext(null),i=u.default.createContext(null),c=u.default.createContext(null)},1:function(e,t){"use strict";function r(e){let t=5381;for(let r=0;r>>0}function n(e){return r(e).toString(36).slice(0,5)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{djb2Hash:function(){return r},hexHash:function(){return n}})},3634:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return n}});let n=r(1024)._(r(2265)).default.createContext({})},4758:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{SearchParamsContext:function(){return o},PathnameContext:function(){return u},PathParamsContext:function(){return a}});let n=r(2265),o=(0,n.createContext)(null),u=(0,n.createContext)(null),a=(0,n.createContext)(null)},6491:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{NEXT_DYNAMIC_NO_SSR_CODE:function(){return r},throwWithNoSSR:function(){return n}});let r="NEXT_DYNAMIC_NO_SSR_CODE";function n(){let e=Error(r);throw e.digest=r,e}},9798:function(e,t){"use strict";function r(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return r}})},5367:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ActionQueueContext:function(){return l},createMutableActionQueue:function(){return s}});let n=r(8533),o=r(1414),u=r(6878),a=n._(r(2265)),l=a.default.createContext(null);function i(e,t){null!==e.pending&&(e.pending=e.pending.next,null!==e.pending&&c({actionQueue:e,action:e.pending,setState:t}))}async function c(e){let{actionQueue:t,action:r,setState:n}=e,u=t.state;if(!u)throw Error("Invariant: Router state not initialized");t.pending=r;let a=r.payload,l=t.action(u,a);function c(e){if(r.discarded){t.needsRefresh&&null===t.pending&&(t.needsRefresh=!1,t.dispatch({type:o.ACTION_REFRESH,origin:window.location.origin},n));return}t.state=e,t.devToolsInstance&&t.devToolsInstance.send(a,e),i(t,n),r.resolve(e)}(0,o.isThenable)(l)?l.then(c,e=>{i(t,n),r.reject(e)}):c(l)}function s(){let e={state:null,dispatch:(t,r)=>(function(e,t,r){let n={resolve:r,reject:()=>{}};if(t.type!==o.ACTION_RESTORE){let e=new Promise((e,t)=>{n={resolve:e,reject:t}});(0,a.startTransition)(()=>{r(e)})}let u={payload:t,next:null,resolve:n.resolve,reject:n.reject};null===e.pending?(e.last=u,c({actionQueue:e,action:u,setState:r})):t.type===o.ACTION_NAVIGATE?(e.pending.discarded=!0,e.last=u,e.pending.payload.type===o.ACTION_SERVER_ACTION&&(e.needsRefresh=!0),c({actionQueue:e,action:u,setState:r})):(null!==e.last&&(e.last.next=u),e.last=u)})(e,t,r),action:async(e,t)=>{if(null===e)throw Error("Invariant: Router state not initialized");return(0,u.reducer)(e,t)},pending:null,last:null};return e}},1312:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return o}});let n=r(6506);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:u}=(0,n.parsePath)(e);return""+t+r+o+u}},7178:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{normalizeAppPath:function(){return u},normalizeRscURL:function(){return a}});let n=r(9798),o=r(3266);function u(e){return(0,n.ensureLeadingSlash)(e.split("/").reduce((e,t,r,n)=>!t||(0,o.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&r===n.length-1?e:e+"/"+t,""))}function a(e){return e.replace(/\.rsc($|\?)/,"$1")}},3011:function(e,t){"use strict";function r(e,t){if(void 0===t&&(t={}),t.onlyHashChange){e();return}let r=document.documentElement,n=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSmoothScroll",{enumerable:!0,get:function(){return r}})},6407:function(e,t){"use strict";function r(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isBot",{enumerable:!0,get:function(){return r}})},6506:function(e,t){"use strict";function r(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return r}})},7027:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});let n=r(6506);function o(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},5868:function(e,t){"use strict";function r(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return r}})},3266:function(e,t){"use strict";function r(e){return"("===e[0]&&e.endsWith(")")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isGroupSegment",{enumerable:!0,get:function(){return r}})},2472:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ServerInsertedHTMLContext:function(){return o},useServerInsertedHTML:function(){return u}});let n=r(8533)._(r(2265)),o=n.default.createContext(null);function u(e){let t=(0,n.useContext)(o);t&&t(e)}},1704:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return u}});let r=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class n{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}}let o=globalThis.AsyncLocalStorage;function u(){return o?new o:new n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4040:function(e,t,r){"use strict";var n=r(4887);t.createRoot=n.createRoot,t.hydrateRoot=n.hydrateRoot},4887:function(e,t,r){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(4417)},7950:function(e,t,r){"use strict";var n=r(4887),o=r(2265),u={stream:!0},a=new Map;function l(e){var t=r(e);return"function"!=typeof t.then||"fulfilled"===t.status?null:(t.then(function(e){t.status="fulfilled",t.value=e},function(e){t.status="rejected",t.reason=e}),t)}function i(){}var c=new Map,s=r.u;r.u=function(e){var t=c.get(e);return void 0!==t?t:s(e)};var f=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,d=Symbol.for("react.element"),p=Symbol.for("react.provider"),h=Symbol.for("react.server_context"),y=Symbol.for("react.lazy"),_=Symbol.for("react.default_value"),b=Symbol.iterator,v=Array.isArray,g=Object.getPrototypeOf,m=Object.prototype,O=new WeakMap,P=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;function E(e,t,r,n){this.status=e,this.value=t,this.reason=r,this._response=n}function R(e){switch(e.status){case"resolved_model":x(e);break;case"resolved_module":A(e)}switch(e.status){case"fulfilled":return e.value;case"pending":case"blocked":case"cyclic":throw e;default:throw e.reason}}function S(e,t){for(var r=0;rh?(_=h,h=3,p++):(_=0,h=3);continue;case 2:44===(g=d[p++])?h=4:b=b<<4|(96d.length&&(g=-1)}var m=d.byteOffset+p;if(-1>>1,o=e[n];if(0>>1;nu(i,r))cu(s,i)?(e[n]=s,e[c]=r,n=c):(e[n]=i,e[l]=r,n=l);else if(cu(s,r))e[n]=s,e[c]=r,n=c;else break}}return t}function u(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var a,l=performance;t.unstable_now=function(){return l.now()}}else{var i=Date,c=i.now();t.unstable_now=function(){return i.now()-c}}var s=[],f=[],d=1,p=null,h=3,y=!1,_=!1,b=!1,v="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,m="undefined"!=typeof setImmediate?setImmediate:null;function O(e){for(var t=n(f);null!==t;){if(null===t.callback)o(f);else if(t.startTime<=e)o(f),t.sortIndex=t.expirationTime,r(s,t);else break;t=n(f)}}function P(e){if(b=!1,O(e),!_){if(null!==n(s))_=!0,x();else{var t=n(f);null!==t&&A(P,t.startTime-e)}}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E=!1,R=-1,S=5,j=-1;function T(){return!(t.unstable_now()-je&&T());){var l=p.callback;if("function"==typeof l){p.callback=null,h=p.priorityLevel;var i=l(p.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof i){p.callback=i,O(e),r=!0;break t}p===n(s)&&o(s),O(e)}else o(s);p=n(s)}if(null!==p)r=!0;else{var c=n(f);null!==c&&A(P,c.startTime-e),r=!1}}break e}finally{p=null,h=u,y=!1}r=void 0}}finally{r?a():E=!1}}}if("function"==typeof m)a=function(){m(w)};else if("undefined"!=typeof MessageChannel){var C=new MessageChannel,M=C.port2;C.port1.onmessage=w,a=function(){M.postMessage(null)}}else a=function(){v(w,0)};function x(){E||(E=!0,a())}function A(e,r){R=v(function(){e(t.unstable_now())},r)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){_||y||(_=!0,x())},t.unstable_forceFrameRate=function(e){0>e||125a?(e.sortIndex=u,r(f,e),null===n(s)&&e===n(f)&&(b?(g(R),R=-1):b=!0,A(P,u-a))):(e.sortIndex=l,r(s,e),_||y||(_=!0,x())),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=h;return function(){var r=h;h=t;try{return e.apply(this,arguments)}finally{h=r}}}},8261:function(e,t,r){"use strict";e.exports=r(1756)},5682:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentParam",{enumerable:!0,get:function(){return o}});let n=r(4507);function o(e){let t=n.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return(t&&(e=e.slice(t.length)),e.startsWith("[[...")&&e.endsWith("]]"))?{type:"optional-catchall",param:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{type:"catchall",param:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{type:"dynamic",param:e.slice(1,-1)}:null}},4507:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return o},isInterceptionRouteAppPath:function(){return u},extractInterceptionRouteInformation:function(){return a}});let n=r(7178),o=["(..)(..)","(.)","(..)","(...)"];function u(e){return void 0!==e.split("/").find(e=>o.find(t=>e.startsWith(t)))}function a(e){let t,r,u;for(let n of e.split("/"))if(r=o.find(e=>n.startsWith(e))){[t,u]=e.split(r,2);break}if(!t||!r||!u)throw Error(`Invalid interception route: ${e}. Must be in the format //(..|...|..)(..)/`);switch(t=(0,n.normalizeAppPath)(t),r){case"(.)":u="/"===t?`/${u}`:t+"/"+u;break;case"(..)":if("/"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);u=t.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":let a=t.split("/");if(a.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);u=a.slice(0,-2).concat(u).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:u}}},4677:function(e,t,r){"use strict";function n(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}r.r(t),r.d(t,{_:function(){return n},_class_private_field_loose_base:function(){return n}})},6249:function(e,t,r){"use strict";r.r(t),r.d(t,{_:function(){return o},_class_private_field_loose_key:function(){return o}});var n=0;function o(e){return"__private_"+n+++"_"+e}},1024:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}r.r(t),r.d(t,{_:function(){return n},_interop_require_default:function(){return n}})},8533:function(e,t,r){"use strict";function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=u?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}r.r(t),r.d(t,{_:function(){return o},_interop_require_wildcard:function(){return o}})}}]); \ No newline at end of file diff --git a/docs/_next/static/chunks/app/_not-found-ef9f5383417ee6a1.js b/docs/_next/static/chunks/app/_not-found-ef9f5383417ee6a1.js new file mode 100644 index 0000000..6c2a93b --- /dev/null +++ b/docs/_next/static/chunks/app/_not-found-ef9f5383417ee6a1.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[165],{3155:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_not-found",function(){return n(4032)}])},4032:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let l=n(1024)._(n(2265)),r={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{display:"inline-block"},h1:{display:"inline-block",margin:"0 20px 0 0",padding:"0 23px 0 0",fontSize:24,fontWeight:500,verticalAlign:"top",lineHeight:"49px"},h2:{fontSize:14,fontWeight:400,lineHeight:"49px",margin:0}};function o(){return l.default.createElement(l.default.Fragment,null,l.default.createElement("title",null,"404: This page could not be found."),l.default.createElement("div",{style:r.error},l.default.createElement("div",null,l.default.createElement("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}),l.default.createElement("h1",{className:"next-error-h1",style:r.h1},"404"),l.default.createElement("div",{style:r.desc},l.default.createElement("h2",{style:r.h2},"This page could not be found.")))))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},function(e){e.O(0,[971,938,744],function(){return e(e.s=3155)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/docs/_next/static/chunks/app/chat/[caseId]/[slideId]/page-da02547899cc9717.js b/docs/_next/static/chunks/app/chat/[caseId]/[slideId]/page-da02547899cc9717.js new file mode 100644 index 0000000..660a52d --- /dev/null +++ b/docs/_next/static/chunks/app/chat/[caseId]/[slideId]/page-da02547899cc9717.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[835],{5093:function(e,t,s){Promise.resolve().then(s.bind(s,726)),Promise.resolve().then(s.t.bind(s,5250,23))},726:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return d}});var a=s(7437);async function l(e,t){let s=(await e.beta.assistants.list({limit:"100"})).data.find(e=>e.name===t.name);return s?await e.beta.assistants.update(s.id,{instructions:t.instructions,name:t.name,model:t.model}):await e.beta.assistants.create({instructions:t.instructions,name:t.name,model:t.model})}var n=s(6691),r=s.n(n),i=s(2265),u=s(3697),o=s(4033),c=function(e){let{assistantId:t,title:s="",defaultChat:l=[]}=e,[n,c]=(0,i.useState)(""),[d,m]=(0,i.useState)(l),[g,f]=(0,i.useState)(null),[x,h]=(0,i.useState)(null),[b,p]=(0,i.useState)(null),[y,w]=(0,i.useState)(""),[v,j]=(0,i.useState)(!1),[N,S]=(0,i.useState)(!1),[k,C]=(0,i.useState)(null);(0,o.useSearchParams)(),(0,i.useRef)(null).current=k;let A=(0,i.useRef)(null);A.current=d;let I=async(e,t)=>{if("completed"==(await b.beta.threads.runs.retrieve(e,t)).status){let t=await b.beta.threads.messages.list(e);S(e=>!1),m([...A.current,{isBot:!0,msg:t.data[0].content[0].text.value}])}else setTimeout(()=>I(e,t),200)},_=()=>{localStorage.setItem("openAIKey",y),j(e=>!0)},E=async()=>{let e;c("");let s=[...A.current,{isBot:!1,msg:n}];S(e=>!0),m(s),null==g?f(e=await b.beta.threads.create()):e=g,await b.beta.threads.messages.create(e.id,{role:"user",content:n});let a=await b.beta.threads.runs.create(e.id,{assistant_id:t});h(a),I(e.id,a.id)};return(0,i.useEffect)(()=>{!0==v&&""!=y&&p(new u.ZP({apiKey:y,dangerouslyAllowBrowser:!0}))},[v]),(0,i.useEffect)(()=>{let e=localStorage.getItem("openAIKey");null!=e&&""!=e&&(w(e),j(e=>!0))},[]),(0,a.jsxs)("div",{className:"h-full w-full md:p-4 flex flex-col bg-myBg gap-4",children:[(0,a.jsxs)("div",{className:"flex justify-between bg-myPrimary rounded-xl p-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(r(),{height:25,width:25,src:"/assistant.svg",alt:"logo"}),(0,a.jsx)("span",{className:"font-semibold",children:s||"CaseMate Chat"})]}),(0,a.jsx)("div",{className:"d-flex align-items-center gap-2 cursor-pointer",children:(0,a.jsx)(r(),{height:20,width:20,onClick:()=>{m(e=>[]),f(e=>null)},src:"/refresh.svg",alt:"refresh"})})]}),v?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2 w-full h-full overflow-y-auto scroll",children:[d.map((e,t)=>(0,a.jsx)("div",{className:"".concat(e.isBot?"bg-gray-900 text-gray-100 self-start":"text-gray-900 bg-gray-100 self-end border-2"," rounded-lg px-3 py-2 max-w-sm"),children:e.msg},t)),N&&(0,a.jsx)("div",{className:"bg-gray-900 text-gray-100 self-start rounded-lg px-3 py-2 max-w-sm",children:(0,a.jsxs)("div",{className:"flex h-4 items-center gap-2",children:[(0,a.jsx)("div",{className:"bounce bounce1 rounded-full bg-slate-500 h-2 w-2"}),(0,a.jsx)("div",{className:"bounce bounce2 rounded-full bg-slate-500 h-2 w-2"}),(0,a.jsx)("div",{className:"bounce bounce3 rounded-full bg-slate-500 h-2 w-2"})]})})]}),(0,a.jsxs)("div",{className:"flex gap-2 mt-auto",children:[(0,a.jsx)("input",{id:"question",className:"bg-gray-50 border border-gray-300 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 ",placeholder:"Ask a question",required:!0,value:n,onKeyDown:e=>{"Enter"!=e.code||e.shiftKey||E()},onChange:e=>c(e.target.value)}),(0,a.jsx)("button",{onClick:E,className:" bg-mySecondary hover:bg-blue-400 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-4 py-2.5 text-center ",children:(0,a.jsx)(r(),{height:20,width:20,src:"/send.svg",alt:"send"})})]})]}):(0,a.jsxs)("div",{className:"flex max-w-xl flex-col pt-4 md:pt-0 gap-2 text-sm text-black",children:[(0,a.jsxs)("div",{className:" text-xl font-semibold mb-4",children:["Welcome to myAssistant, enter your ",(0,a.jsx)("a",{className:"underline italic",href:"https://platform.openai.com/api-keys",target:"_blank",children:"OpenAI key"})," to get started"]}),(0,a.jsx)("input",{id:"name",className:"bg-gray-50 border border-gray-300 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 ",placeholder:"sk---------------",required:!0,value:y,onChange:e=>w(e.target.value)}),(0,a.jsx)("button",{onClick:()=>""!==y&&_(),className:"bg-mySecondary hover:bg-blue-400 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center",children:"Add OpenAI Key"})]})]})};function d(e){let{slide:t}=e,[s,n]=(0,i.useState)(null);return(0,i.useEffect)(()=>{(async()=>{let e=localStorage.getItem("openAIKey"),s=new u.ZP({apiKey:e,dangerouslyAllowBrowser:!0});n((await l(s,t)).id)})()},[t]),(0,a.jsx)("div",{className:"h-screen",children:s&&(0,a.jsx)(c,{assistantId:s,title:"CaseMate Chat: ".concat(t.name),defaultChat:t.prompt||[]})})}}},function(e){e.O(0,[250,141,971,938,744],function(){return e(e.s=5093)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/docs/_next/static/chunks/app/layout-d8755d790bbacd8a.js b/docs/_next/static/chunks/app/layout-d8755d790bbacd8a.js new file mode 100644 index 0000000..3312ca7 --- /dev/null +++ b/docs/_next/static/chunks/app/layout-d8755d790bbacd8a.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{5909:function(e,n,t){Promise.resolve().then(t.t.bind(t,2445,23)),Promise.resolve().then(t.t.bind(t,7035,23))},2445:function(){},7035:function(e){e.exports={style:{fontFamily:"'__Inter_e66fe9', '__Inter_Fallback_e66fe9'",fontStyle:"normal"},className:"__className_e66fe9"}}},function(e){e.O(0,[971,938,744],function(){return e(e.s=5909)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/docs/_next/static/chunks/app/page-4d901a5e0c73ffc8.js b/docs/_next/static/chunks/app/page-4d901a5e0c73ffc8.js new file mode 100644 index 0000000..5ae0617 --- /dev/null +++ b/docs/_next/static/chunks/app/page-4d901a5e0c73ffc8.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{6927:function(n,e,u){Promise.resolve().then(u.t.bind(u,5250,23))}},function(n){n.O(0,[250,971,938,744],function(){return n(n.s=6927)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/docs/_next/static/chunks/fd9d1056-88acd27bac859e5d.js b/docs/_next/static/chunks/fd9d1056-88acd27bac859e5d.js new file mode 100644 index 0000000..8f9f1d9 --- /dev/null +++ b/docs/_next/static/chunks/fd9d1056-88acd27bac859e5d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[971],{4417:function(e,t,n){var r,l=n(2265),a=n(8261),o={usingClientEntryPoint:!1,Events:null,Dispatcher:{current:null}};function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;np||(e.current=d[p],d[p]=null,p--)}function g(e,t){d[++p]=e.current,e.current=t}var y=Symbol.for("react.element"),v=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),C=Symbol.for("react.context"),E=Symbol.for("react.server_context"),x=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),L=Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var T=Symbol.for("react.offscreen"),F=Symbol.for("react.legacy_hidden"),M=Symbol.for("react.cache");Symbol.for("react.tracing_marker");var O=Symbol.iterator;function R(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=O&&e[O]||e["@@iterator"])?e:null}var D=m(null),A=m(null),I=m(null),U=m(null),$={$$typeof:C,_currentValue:null,_currentValue2:null,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};function B(e,t){switch(g(I,t),g(A,e),g(D,null),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?sj(t):0;break;default:if(t=(e=8===e?t.parentNode:t).tagName,e=e.namespaceURI)t=sQ(e=sj(e),t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}h(D),g(D,t)}function V(){h(D),h(A),h(I)}function j(e){null!==e.memoizedState&&g(U,e);var t=D.current,n=sQ(t,e.type);t!==n&&(g(A,e),g(D,n))}function Q(e){A.current===e&&(h(D),h(A)),U.current===e&&(h(U),$._currentValue=null)}var W=a.unstable_scheduleCallback,H=a.unstable_cancelCallback,q=a.unstable_shouldYield,K=a.unstable_requestPaint,Y=a.unstable_now,X=a.unstable_getCurrentPriorityLevel,G=a.unstable_ImmediatePriority,Z=a.unstable_UserBlockingPriority,J=a.unstable_NormalPriority,ee=a.unstable_LowPriority,et=a.unstable_IdlePriority,en=null,er=null,el=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(ea(e)/eo|0)|0},ea=Math.log,eo=Math.LN2,ei=128,eu=4194304;function es(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194176&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ec(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,l=e.suspendedLanes;e=e.pingedLanes;var a=134217727&n;return 0!==a?0!=(n=a&~l)?r=es(n):0!=(e&=a)&&(r=es(e)):0!=(n&=~l)?r=es(n):0!==e&&(r=es(e)),0===r?0:0!==t&&t!==r&&0==(t&l)&&((l=r&-r)>=(e=t&-t)||32===l&&0!=(4194176&e))?t:r}function ef(e,t){return e.errorRecoveryDisabledLanes&t?0:0!=(e=-536870913&e.pendingLanes)?e:536870912&e?536870912:0}function ed(){var e=eu;return 0==(62914560&(eu<<=1))&&(eu=4194304),e}function ep(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function em(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0)}function eh(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-el(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194218&n}function eg(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-el(n),l=1<l||u[r]!==s[l]){var c="\n"+u[r].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=r&&0<=l);break}}}finally{eK=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?eq(n):""}function eX(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function eG(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function eZ(e){e._valueTracker||(e._valueTracker=function(e){var t=eG(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var l=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function eJ(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=eG(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function e0(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var e1=/[\n"\\]/g;function e2(e){return e.replace(e1,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function e3(e,t,n,r,l,a,o,i){e.name="",null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o?e.type=o:e.removeAttribute("type"),null!=t?"number"===o?(0===t&&""===e.value||e.value!=t)&&(e.value=""+eX(t)):e.value!==""+eX(t)&&(e.value=""+eX(t)):"submit"!==o&&"reset"!==o||e.removeAttribute("value"),null!=t?e6(e,o,eX(t)):null!=n?e6(e,o,eX(n)):null!=r&&e.removeAttribute("value"),null==l&&null!=a&&(e.defaultChecked=!!a),null!=l&&(e.checked=l&&"function"!=typeof l&&"symbol"!=typeof l),null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i?e.name=""+eX(i):e.removeAttribute("name")}function e4(e,t,n,r,l,a,o,i){if(null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.type=a),null!=t||null!=n){if(!("submit"!==a&&"reset"!==a||null!=t))return;n=null!=n?""+eX(n):"",t=null!=t?""+eX(t):n,i||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:l)&&"symbol"!=typeof r&&!!r,e.checked=i?e.checked:!!r,e.defaultChecked=!!r,null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.name=o)}function e6(e,t,n){"number"===t&&e0(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}var e8=Array.isArray;function e5(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=iA.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}var tt=te;"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(tt=function(e,t){return MSApp.execUnsafeLocalFunction(function(){return te(e,t)})});var tn=tt;function tr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType){n.nodeValue=t;return}}e.textContent=t}var tl=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function ta(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||tl.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function to(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(i(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var l in t)r=t[l],t.hasOwnProperty(l)&&n[l]!==r&&ta(e,l,r)}else for(var a in t)t.hasOwnProperty(a)&&ta(e,a,t[a])}function ti(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var tu=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),ts=null;function tc(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var tf=null,td=null;function tp(e){var t=eT(e);if(t&&(e=t.stateNode)){var n=eM(e);switch(e=t.stateNode,t.type){case"input":if(e3(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+e2(""+t)+'"][type="radio"]'),t=0;t>=o,l-=o,tU=1<<32-el(t)+l|n<h?(g=f,f=null):g=f.sibling;var y=p(l,f,i[h],u);if(null===y){null===f&&(f=g);break}e&&f&&null===y.alternate&&t(l,f),o=a(y,o,h),null===c?s=y:c.sibling=y,c=y,f=g}if(h===i.length)return n(l,f),tq&&tB(l,h),s;if(null===f){for(;hg?(y=h,h=null):y=h.sibling;var b=p(l,h,v.value,s);if(null===b){null===h&&(h=y);break}e&&h&&null===b.alternate&&t(l,h),o=a(b,o,g),null===f?c=b:f.sibling=b,f=b,h=y}if(v.done)return n(l,h),tq&&tB(l,g),c;if(null===h){for(;!v.done;g++,v=u.next())null!==(v=d(l,v.value,s))&&(o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return tq&&tB(l,g),c}for(h=r(l,h);!v.done;g++,v=u.next())null!==(v=m(h,l,g,v.value,s))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return e&&h.forEach(function(e){return t(l,e)}),tq&&tB(l,g),c}(c,f,h,g);if("function"==typeof h.then)return s(c,f,nN(h),g);if(h.$$typeof===C||h.$$typeof===E)return s(c,f,ae(c,h,g),g);nL(c,h)}return"string"==typeof h&&""!==h||"number"==typeof h?(h=""+h,null!==f&&6===f.tag?(n(c,f.sibling),(f=l(f,h)).return=c):(n(c,f),(f=ig(h,c.mode,g)).return=c),o(c=f)):n(c,f)}(s,c,f,h),nz=null,s}}var nM=nF(!0),nO=nF(!1),nR=m(null),nD=m(0);function nA(e,t){g(nD,e=oy),g(nR,t),oy=e|t.baseLanes}function nI(){g(nD,oy),g(nR,nR.current)}function nU(){oy=nD.current,h(nR),h(nD)}var n$=m(null),nB=null;function nV(e){var t=e.alternate;g(nH,1&nH.current),g(n$,e),null===nB&&(null===t||null!==nR.current?nB=e:null!==t.memoizedState&&(nB=e))}function nj(e){if(22===e.tag){if(g(nH,nH.current),g(n$,e),null===nB){var t=e.alternate;null!==t&&null!==t.memoizedState&&(nB=e)}}else nQ(e)}function nQ(){g(nH,nH.current),g(n$,n$.current)}function nW(e){h(n$),nB===e&&(nB=null),h(nH)}var nH=m(0);function nq(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var nK=null,nY=null,nX=!1,nG=!1,nZ=!1,nJ=0;function n0(e){e!==nY&&null===e.next&&(null===nY?nK=nY=e:nY=nY.next=e),nG=!0,nX||(nX=!0,n6(n3))}function n1(e){if(!nZ&&nG){var t=null;nZ=!0;do for(var n=!1,r=nK;null!==r;){if(!e||0===r.tag){var l=op,a=ec(r,r===of?l:0);if(0!=(3&a))try{if(n=!0,l=r,0!=(6&oc))throw Error(i(327));if(!o7()){var o=o1(l,a);if(0!==l.tag&&2===o){var u=a,s=ef(l,u);0!==s&&(a=s,o=oV(l,u,s))}if(1===o)throw u=ob,oY(l,0),oW(l,a,0),n0(l),u;6===o?oW(l,a,0):(l.finishedWork=l.current.alternate,l.finishedLanes=a,o8(l,ox,oN,oC))}n0(l)}catch(e){null===t?t=[e]:t.push(e)}}r=r.next}while(n);if(nZ=!1,null!==t){if(1a?a:8;var o=ra.transition;ra.transition={},lo(e,!1,t,n);try{var i=l();if(null!==i&&"object"==typeof i&&"function"==typeof i.then){var u=re(i,r);la(e,t,u)}else{var s=rt(i,r);la(e,t,s)}}catch(n){la(e,t,{then:function(){},status:"rejected",reason:n})}finally{ey=a,ra.transition=o}}function r9(e,t,n,r){if(5!==e.tag)throw Error(i(476));if(null===e.memoizedState){var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rL,lastRenderedState:f},a=l;l={memoizedState:f,baseState:f,baseQueue:null,queue:l,next:null},e.memoizedState=l;var o=e.alternate;null!==o&&(o.memoizedState=l)}else a=e.memoizedState.queue;r7(e,a,t,f,function(){return n(r)})}function le(){var e=l9($);return null!==e?e:f}function lt(){return rP().memoizedState}function ln(){return rP().memoizedState}function lr(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=oU(t),r=nf(t,e=nc(n),n);null!==r&&(o$(r,t,n),nd(r,t,n)),t={cache:ao()},e.payload=t;return}t=t.return}}function ll(e,t,n){var r=oU(e);n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},li(e)?lu(t,n):null!==(n=nr(e,t,n,r))&&(o$(n,e,r),ls(n,t,r))}function la(e,t,n){var r=oU(e),l={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(li(e))lu(t,l);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var o=t.lastRenderedState,i=a(o,n);if(l.hasEagerState=!0,l.eagerState=i,tT(i,o)){nn(e,t,l,0),null===of&&nt();return}}catch(e){}finally{}null!==(n=nr(e,t,l,r))&&(o$(n,e,r),ls(n,t,r))}}function lo(e,t,n,r){if(r={lane:2,revertLane:n8(),action:r,hasEagerState:!1,eagerState:null,next:null},li(e)){if(t)throw Error(i(479))}else null!==(t=nr(e,n,r,2))&&o$(t,e,2)}function li(e){var t=e.alternate;return e===ri||null!==t&&t===ri}function lu(e,t){rf=rc=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ls(e,t,n){if(0!=(4194176&n)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,eg(e,n)}}iI=function(){return{lastEffect:null,events:null,stores:null}};var lc={readContext:l9,use:r_,useCallback:ry,useContext:ry,useEffect:ry,useImperativeHandle:ry,useInsertionEffect:ry,useLayoutEffect:ry,useMemo:ry,useReducer:ry,useRef:ry,useState:ry,useDebugValue:ry,useDeferredValue:ry,useTransition:ry,useSyncExternalStore:ry,useId:ry};lc.useCacheRefresh=ry,lc.useHostTransitionStatus=ry,lc.useFormState=ry,lc.useOptimistic=ry;var lf={readContext:l9,use:r_,useCallback:function(e,t){return rz().memoizedState=[e,void 0===t?null:t],e},useContext:l9,useEffect:rZ,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,rX(4194308,4,r2.bind(null,t,e),n)},useLayoutEffect:function(e,t){return rX(4194308,4,e,t)},useInsertionEffect:function(e,t){rX(4,2,e,t)},useMemo:function(e,t){var n=rz();return t=void 0===t?null:t,rd&&e(),e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=rz();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ll.bind(null,ri,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},rz().memoizedState=e},useState:function(e){var t=(e=r$(e)).queue,n=la.bind(null,ri,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:r4,useDeferredValue:function(e){return rz().memoizedState=e,e},useTransition:function(){var e=r$(!1);return e=r7.bind(null,ri,e.queue,!0,!1),rz().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=ri,l=rz();if(tq){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===of)throw Error(i(349));0!=(60&op)||rR(r,t,n)}l.memoizedState=n;var a={value:n,getSnapshot:t};return l.queue=a,rZ(rA.bind(null,r,a,e),[e]),r.flags|=2048,rK(9,rD.bind(null,r,a,n,t),{destroy:void 0},null),n},useId:function(){var e=rz(),t=of.identifierPrefix;if(tq){var n=t$,r=tU;t=":"+t+"R"+(n=(r&~(1<<32-el(r)-1)).toString(32)+n),0<(n=rp++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=rg++).toString(32)+":";return e.memoizedState=t},useCacheRefresh:function(){return rz().memoizedState=lr.bind(null,ri)}};lf.useHostTransitionStatus=le,lf.useFormState=function(e,t){if(tq){var n=of.formState;if(null!==n){e:{if(tq){if(tH){t:{for(var r=tH,l=tY;8!==r.nodeType;)if(!l||null===(r=s2(r))){r=null;break t}r="F!"===(l=r.data)||"F"===l?r:null}if(r){tH=s2(r),r="F!"===r.data;break e}}t2()}r=!1}r&&(t=n[0])}}return(n=rz()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rW,lastRenderedState:t},n.queue=r,n=la.bind(null,ri,r),r.dispatch=n,r=rz(),l={state:t,dispatch:null,action:e,pending:null},r.queue=l,n=rV.bind(null,ri,l,n),l.dispatch=n,r.memoizedState=e,[t,n]},lf.useOptimistic=function(e){var t=rz();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=lo.bind(null,ri,!0,n),n.dispatch=t,[e,t]};var ld={readContext:l9,use:r_,useCallback:r6,useContext:l9,useEffect:rJ,useImperativeHandle:r3,useInsertionEffect:r0,useLayoutEffect:r1,useMemo:r8,useReducer:rT,useRef:rY,useState:function(){return rT(rL)},useDebugValue:r4,useDeferredValue:function(e){return r5(rP(),ru.memoizedState,e)},useTransition:function(){var e=rT(rL)[0],t=rP().memoizedState;return["boolean"==typeof e?e:rN(e),t]},useSyncExternalStore:rO,useId:lt};ld.useCacheRefresh=ln,ld.useHostTransitionStatus=le,ld.useFormState=function(e){return rH(rP(),ru,e)},ld.useOptimistic=function(e,t){return rB(rP(),ru,e,t)};var lp={readContext:l9,use:r_,useCallback:r6,useContext:l9,useEffect:rJ,useImperativeHandle:r3,useInsertionEffect:r0,useLayoutEffect:r1,useMemo:r8,useReducer:rM,useRef:rY,useState:function(){return rM(rL)},useDebugValue:r4,useDeferredValue:function(e){var t=rP();return null===ru?(t.memoizedState=e,e):r5(t,ru.memoizedState,e)},useTransition:function(){var e=rM(rL)[0],t=rP().memoizedState;return["boolean"==typeof e?e:rN(e),t]},useSyncExternalStore:rO,useId:lt};function lm(e,t){if(e&&e.defaultProps)for(var n in t=u({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}function lh(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:u({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}lp.useCacheRefresh=ln,lp.useHostTransitionStatus=le,lp.useFormState=function(e){var t=rP(),n=ru;if(null!==n)return rH(t,n,e);t=t.memoizedState;var r=(n=rP()).queue.dispatch;return n.memoizedState=e,[t,r]},lp.useOptimistic=function(e,t){var n=rP();return null!==ru?rB(n,ru,e,t):(n.baseState=e,[e,n.queue.dispatch])};var lg={isMounted:function(e){return!!(e=e._reactInternals)&&tg(e)===e},enqueueSetState:function(e,t,n){var r=oU(e=e._reactInternals),l=nc(r);l.payload=t,null!=n&&(l.callback=n),null!==(t=nf(e,l,r))&&(o$(t,e,r),nd(t,e,r))},enqueueReplaceState:function(e,t,n){var r=oU(e=e._reactInternals),l=nc(r);l.tag=1,l.payload=t,null!=n&&(l.callback=n),null!==(t=nf(e,l,r))&&(o$(t,e,r),nd(t,e,r))},enqueueForceUpdate:function(e,t){var n=oU(e=e._reactInternals),r=nc(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=nf(e,r,n))&&(o$(t,e,n),nd(t,e,n))}};function ly(e,t,n,r,l,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||!ny(n,r)||!ny(l,a)}function lv(e,t,n){var r=!1,l=tk,a=t.contextType;return"object"==typeof a&&null!==a?a=l9(a):(l=tx(t)?tC:tw.current,a=(r=null!=(r=t.contextTypes))?tE(e,l):tk),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=lg,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=a),t}function lb(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&lg.enqueueReplaceState(t,t.state,null)}function lk(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},nu(e);var a=t.contextType;"object"==typeof a&&null!==a?l.context=l9(a):(a=tx(t)?tC:tw.current,l.context=tE(e,a)),l.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(lh(e,t,a,n),l.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof l.getSnapshotBeforeUpdate||"function"!=typeof l.UNSAFE_componentWillMount&&"function"!=typeof l.componentWillMount||(t=l.state,"function"==typeof l.componentWillMount&&l.componentWillMount(),"function"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount(),t!==l.state&&lg.enqueueReplaceState(l,l.state,null),nm(e,n,l,r),l.state=e.memoizedState),"function"==typeof l.componentDidMount&&(e.flags|=4194308)}function lw(e,t){try{var n="",r=t;do n+=function(e){switch(e.tag){case 26:case 27:case 5:return eq(e.type);case 16:return eq("Lazy");case 13:return eq("Suspense");case 19:return eq("SuspenseList");case 0:case 2:case 15:return e=eY(e.type,!1);case 11:return e=eY(e.type.render,!1);case 1:return e=eY(e.type,!0);default:return""}}(r),r=r.return;while(r);var l=n}catch(e){l="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:l,digest:null}}function lS(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function lC(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}function lE(e,t,n){(n=nc(n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){o_||(o_=!0,oL=r),lC(e,t)},n}function lx(e,t,n){(n=nc(n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){lC(e,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){lC(e,t),"function"!=typeof r&&(null===oT?oT=new Set([this]):oT.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}function lz(e,t,n,r,l){return 0==(1&e.mode)?e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=nc(2)).tag=2,nf(n,t,2))),n.lanes|=2):(e.flags|=65536,e.lanes=l),e}var lP=s.ReactCurrentOwner,lN=Error(i(461)),l_=!1;function lL(e,t,n,r){t.child=null===e?nO(t,null,n,r):nM(t,e.child,n,r)}function lT(e,t,n,r,l){n=n.render;var a=t.ref;return(l7(t,l),r=rb(e,t,n,r,a,l),n=rC(),null===e||l_)?(tq&&n&&tj(t),t.flags|=1,lL(e,t,r,l),t.child):(rE(e,t,l),lZ(e,t,l))}function lF(e,t,n,r,l){if(null===e){var a=n.type;return"function"!=typeof a||is(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=ip(n.type,null,r,null,t,t.mode,l)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,lM(e,t,a,r,l))}if(a=e.child,0==(e.lanes&l)){var o=a.memoizedProps;if((n=null!==(n=n.compare)?n:ny)(o,r)&&e.ref===t.ref)return lZ(e,t,l)}return t.flags|=1,(e=ic(a,r)).ref=t.ref,e.return=t,t.child=e}function lM(e,t,n,r,l){if(null!==e){var a=e.memoizedProps;if(ny(a,r)&&e.ref===t.ref){if(l_=!1,t.pendingProps=r=a,0==(e.lanes&l))return t.lanes=e.lanes,lZ(e,t,l);0!=(131072&e.flags)&&(l_=!0)}}return lA(e,t,n,r,l)}function lO(e,t,n){var r=t.pendingProps,l=r.children,a=0!=(2&t.stateNode._pendingVisibility),o=null!==e?e.memoizedState:null;if(lD(e,t),"hidden"===r.mode||a){if(0!=(128&t.flags)){if(n=null!==o?o.baseLanes|n:n,null!==e){for(l=0,r=t.child=e.child;null!==r;)l=l|r.lanes|r.childLanes,r=r.sibling;t.childLanes=l&~n}else t.childLanes=0,t.child=null;return lR(e,t,n)}if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null},null!==e&&af(t,null),nI(),nj(t);else{if(0==(536870912&n))return t.lanes=t.childLanes=536870912,lR(e,t,null!==o?o.baseLanes|n:n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&af(t,null!==o?o.cachePool:null),null!==o?nA(t,o):nI(),nj(t)}}else null!==o?(af(t,o.cachePool),nA(t,o),nQ(t),t.memoizedState=null):(null!==e&&af(t,null),nI(),nQ(t));return lL(e,t,l,n),t.child}function lR(e,t,n){var r=ac();return r=null===r?null:{parent:aa._currentValue,pool:r},t.memoizedState={baseLanes:n,cachePool:r},null!==e&&af(t,null),nI(),nj(t),null}function lD(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function lA(e,t,n,r,l){var a=tx(n)?tC:tw.current;return(a=tE(t,a),l7(t,l),n=rb(e,t,n,r,a,l),r=rC(),null===e||l_)?(tq&&r&&tj(t),t.flags|=1,lL(e,t,n,l),t.child):(rE(e,t,l),lZ(e,t,l))}function lI(e,t,n,r,l,a){return(l7(t,a),n=rw(t,r,n,l),rk(),r=rC(),null===e||l_)?(tq&&r&&tj(t),t.flags|=1,lL(e,t,n,a),t.child):(rE(e,t,a),lZ(e,t,a))}function lU(e,t,n,r,l){if(tx(n)){var a=!0;t_(t)}else a=!1;if(l7(t,l),null===t.stateNode)lG(e,t),lv(t,n,r),lk(t,n,r,l),r=!0;else if(null===e){var o=t.stateNode,i=t.memoizedProps;o.props=i;var u=o.context,s=n.contextType;s="object"==typeof s&&null!==s?l9(s):tE(t,s=tx(n)?tC:tw.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;f||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(i!==r||u!==s)&&lb(t,o,r,s),ni=!1;var d=t.memoizedState;o.state=d,nm(t,r,o,l),u=t.memoizedState,i!==r||d!==u||tS.current||ni?("function"==typeof c&&(lh(t,n,c,r),u=t.memoizedState),(i=ni||ly(t,n,i,r,d,u,s))?(f||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=s,r=i):("function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,ns(e,t),i=t.memoizedProps,s=t.type===t.elementType?i:lm(t.type,i),o.props=s,f=t.pendingProps,d=o.context,u="object"==typeof(u=n.contextType)&&null!==u?l9(u):tE(t,u=tx(n)?tC:tw.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(i!==f||d!==u)&&lb(t,o,r,u),ni=!1,d=t.memoizedState,o.state=d,nm(t,r,o,l);var m=t.memoizedState;i!==f||d!==m||tS.current||ni?("function"==typeof p&&(lh(t,n,p,r),m=t.memoizedState),(s=ni||ly(t,n,s,r,d,m,u)||!1)?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,m,u),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,m,u)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=u,r=s):("function"!=typeof o.componentDidUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return l$(e,t,n,r,a,l)}function l$(e,t,n,r,l,a){lD(e,t);var o=0!=(128&t.flags);if(!r&&!o)return l&&tL(t,n,!1),lZ(e,t,a);r=t.stateNode,lP.current=t;var i=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=nM(t,e.child,null,a),t.child=nM(t,null,i,a)):lL(e,t,i,a),t.memoizedState=r.state,l&&tL(t,n,!0),t.child}function lB(e){var t=e.stateNode;t.pendingContext?tP(e,t.pendingContext,t.pendingContext!==t.context):t.context&&tP(e,t.context,!1),B(e,t.containerInfo)}function lV(e,t,n,r,l){return t8(),t5(l),t.flags|=256,lL(e,t,n,r),t.child}var lj={dehydrated:null,treeContext:null,retryLane:0};function lQ(e){return{baseLanes:e,cachePool:ad()}}function lW(e,t,n){var r,l=t.pendingProps,a=!1,o=0!=(128&t.flags);if((r=o)||(r=(null===e||null!==e.memoizedState)&&0!=(2&nH.current)),r&&(a=!0,t.flags&=-129),null===e){if(tq){if(a?nV(t):nQ(t),tq&&((o=e=tH)?t0(t,o)||(t1(t)&&t2(),tH=s2(o),r=tW,tH&&t0(t,tH)?tX(r,o):(tG(tW,t),tq=!1,tW=t,tH=e)):(t1(t)&&t2(),tG(tW,t),tq=!1,tW=t,tH=e)),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated))return 0==(1&t.mode)?t.lanes=2:"$!"===e.data?t.lanes=16:t.lanes=536870912,null;nW(t)}return(o=l.children,e=l.fallback,a)?(nQ(t),l=t.mode,a=t.child,o={mode:"hidden",children:o},0==(1&l)&&null!==a?(a.childLanes=0,a.pendingProps=o):a=ih(o,l,0,null),e=im(e,l,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=lQ(n),t.memoizedState=lj,e):(nV(t),lH(t,o))}if(null!==(r=e.memoizedState)){var u=r.dehydrated;if(null!==u)return function(e,t,n,r,l,a,o){if(n)return 256&t.flags?(nV(t),t.flags&=-257,lq(e,t,o,l=lS(Error(i(422))))):null!==t.memoizedState?(nQ(t),t.child=e.child,t.flags|=128,null):(nQ(t),l=r.fallback,a=t.mode,r=ih({mode:"visible",children:r.children},a,0,null),l=im(l,a,o,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,0!=(1&t.mode)&&nM(t,e.child,null,o),t.child.memoizedState=lQ(o),t.memoizedState=lj,l);if(nV(t),0==(1&t.mode))return lq(e,t,o,null);if("$!"===l.data){if(l=l.nextSibling&&l.nextSibling.dataset)var u=l.dgst;return l=u,(a=Error(i(419))).digest=l,lq(e,t,o,l=lS(a,l,void 0))}if(u=0!=(o&e.childLanes),l_||u){if(null!==(r=of)){if(0!=(42&(u=o&-o)))u=1;else switch(u){case 2:u=1;break;case 8:u=4;break;case 32:u=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:u=64;break;case 268435456:u=134217728;break;default:u=0}if(0!==(u=0!=(u&(r.suspendedLanes|o))?0:u)&&u!==a.retryLane)throw a.retryLane=u,nl(e,u),o$(r,e,u),lN}return"$?"!==l.data&&o0(),lq(e,t,o,null)}return"$?"===l.data?(t.flags|=128,t.child=e.child,t=ia.bind(null,e),l._reactRetry=t,null):(e=a.treeContext,tH=s1(l.nextSibling),tW=t,tq=!0,tK=null,tY=!1,null!==e&&(tD[tA++]=tU,tD[tA++]=t$,tD[tA++]=tI,tU=e.id,t$=e.overflow,tI=t),t=lH(t,r.children),t.flags|=4096,t)}(e,t,o,l,u,r,n)}if(a){nQ(t),a=l.fallback,o=t.mode,u=(r=e.child).sibling;var s={mode:"hidden",children:l.children};return 0==(1&o)&&t.child!==r?((l=t.child).childLanes=0,l.pendingProps=s,t.deletions=null):(l=ic(r,s)).subtreeFlags=31457280&r.subtreeFlags,null!==u?a=ic(u,a):(a=im(a,o,n,null),a.flags|=2),a.return=t,l.return=t,l.sibling=a,t.child=l,l=a,a=t.child,null===(o=e.child.memoizedState)?o=lQ(n):(null!==(r=o.cachePool)?(u=aa._currentValue,r=r.parent!==u?{parent:u,pool:u}:r):r=ad(),o={baseLanes:o.baseLanes|n,cachePool:r}),a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=lj,l}return nV(t),e=(a=e.child).sibling,l=ic(a,{mode:"visible",children:l.children}),0==(1&t.mode)&&(l.lanes=n),l.return=t,l.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=l,t.memoizedState=null,l}function lH(e,t){return(t=ih({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function lq(e,t,n,r){return null!==r&&t5(r),nM(t,e.child,null,n),e=lH(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lK(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),l8(e.return,t,n)}function lY(e,t,n,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=l)}function lX(e,t,n){var r=t.pendingProps,l=r.revealOrder,a=r.tail;if(lL(e,t,r.children,n),0!=(2&(r=nH.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&lK(e,n,t);else if(19===e.tag)lK(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(g(nH,r),0==(1&t.mode))t.memoizedState=null;else switch(l){case"forwards":for(l=null,n=t.child;null!==n;)null!==(e=n.alternate)&&null===nq(e)&&(l=n),n=n.sibling;null===(n=l)?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),lY(t,!1,l,n,a);break;case"backwards":for(n=null,l=t.child,t.child=null;null!==l;){if(null!==(e=l.alternate)&&null===nq(e)){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}lY(t,!0,n,null,a);break;case"together":lY(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function lG(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function lZ(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),ok|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=ic(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=ic(e,e.pendingProps)).return=t;n.sibling=null}return t.child}var lJ=m(null),l0=null,l1=null,l2=null;function l3(){l2=l1=l0=null}function l4(e,t,n){g(lJ,t._currentValue),t._currentValue=n}function l6(e){e._currentValue=lJ.current,h(lJ)}function l8(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function l5(e,t,n){var r=e.child;for(null!==r&&(r.return=e);null!==r;){var l=r.dependencies;if(null!==l)for(var a=r.child,o=l.firstContext;null!==o;){if(o.context===t){if(1===r.tag){(o=nc(n&-n)).tag=2;var u=r.updateQueue;if(null!==u){var s=(u=u.shared).pending;null===s?o.next=o:(o.next=s.next,s.next=o),u.pending=o}}r.lanes|=n,null!==(o=r.alternate)&&(o.lanes|=n),l8(r.return,n,e),l.lanes|=n;break}o=o.next}else if(10===r.tag)a=r.type===e.type?null:r.child;else if(18===r.tag){if(null===(a=r.return))throw Error(i(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),l8(a,n,e),a=r.sibling}else a=r.child;if(null!==a)a.return=r;else for(a=r;null!==a;){if(a===e){a=null;break}if(null!==(r=a.sibling)){r.return=a.return,a=r;break}a=a.return}r=a}}function l7(e,t){l0=e,l2=l1=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(l_=!0),e.firstContext=null)}function l9(e){return at(l0,e)}function ae(e,t,n){return null===l0&&l7(e,n),at(e,t)}function at(e,t){var n=t._currentValue;if(l2!==t){if(t={context:t,memoizedValue:n,next:null},null===l1){if(null===e)throw Error(i(308));l1=t,e.dependencies={lanes:0,firstContext:t}}else l1=l1.next=t}return n}var an="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ar=a.unstable_scheduleCallback,al=a.unstable_NormalPriority,aa={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_defaultValue:null,_globalName:null};function ao(){return{controller:new an,data:new Map,refCount:0}}function ai(e){e.refCount--,0===e.refCount&&ar(al,function(){e.controller.abort()})}var au=s.ReactCurrentBatchConfig,as=m(null);function ac(){var e=as.current;return null!==e?e:of.pooledCache}function af(e,t){null===t?g(as,as.current):g(as,t.pool)}function ad(){var e=ac();return null===e?null:{parent:aa._currentValue,pool:e}}function ap(e){e.flags|=4}function am(e){e.flags|=2097664}function ah(e,t){if("stylesheet"!==t.type||0!=(4&t.state.loading))e.flags&=-16777217;else if(e.flags|=16777216,0==(42&op)&&!(t="stylesheet"!==t.type||0!=(3&t.state.loading))){if(oG())e.flags|=8192;else throw nE=nk,nb}}function ag(e,t){null!==t?e.flags|=4:16384&e.flags&&(t=22!==e.tag?ed():536870912,e.lanes|=t)}function ay(e,t){if(!tq)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function av(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;null!==l;)n|=l.lanes|l.childLanes,r|=31457280&l.subtreeFlags,r|=31457280&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ab(e,t){switch(tQ(t),t.tag){case 1:null!=(e=t.type.childContextTypes)&&tz();break;case 3:l6(aa),V(),h(tS),h(tw);break;case 26:case 27:case 5:Q(t);break;case 4:V();break;case 13:nW(t);break;case 19:h(nH);break;case 10:l6(t.type._context);break;case 22:case 23:nW(t),nU(),null!==e&&h(as);break;case 24:l6(aa)}}function ak(e,t,n){var r=Array.prototype.slice.call(arguments,3);try{t.apply(n,r)}catch(e){this.onError(e)}}var aw=!1,aS=null,aC=!1,aE=null,ax={onError:function(e){aw=!0,aS=e}};function az(e,t,n,r,l,a,o,i,u){aw=!1,aS=null,ak.apply(ax,arguments)}var aP=!1,aN=!1,a_="function"==typeof WeakSet?WeakSet:Set,aL=null;function aT(e,t){try{var n=e.ref;if(null!==n){var r=e.stateNode;switch(e.tag){case 26:case 27:case 5:var l=r;break;default:l=r}"function"==typeof n?e.refCleanup=n(l):n.current=l}}catch(n){ie(e,t,n)}}function aF(e,t){var n=e.ref,r=e.refCleanup;if(null!==n){if("function"==typeof r)try{r()}catch(n){ie(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(n){ie(e,t,n)}else n.current=null}}function aM(e,t,n){try{n()}catch(n){ie(e,t,n)}}var aO=!1;function aR(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.inst,o=a.destroy;void 0!==o&&(a.destroy=void 0,aM(t,n,o))}l=l.next}while(l!==r)}}function aD(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create,l=n.inst;r=r(),l.destroy=r}n=n.next}while(n!==t)}}function aA(e,t){try{aD(t,e)}catch(t){ie(e,e.return,t)}}function aI(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{ng(t,n)}catch(t){ie(e,e.return,t)}}}function aU(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break;case"img":n.src&&(r.src=n.src)}}catch(t){ie(e,e.return,t)}}function a$(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:a0(e,n),4&r&&aA(n,5);break;case 1:if(a0(e,n),4&r){if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){ie(n,n.return,e)}else{var l=n.elementType===n.type?t.memoizedProps:lm(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){ie(n,n.return,e)}}}64&r&&aI(n),512&r&&aT(n,n.return);break;case 3:if(a0(e,n),64&r&&null!==(r=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:e=n.child.stateNode}try{ng(r,e)}catch(e){ie(n,n.return,e)}}break;case 26:a0(e,n),512&r&&aT(n,n.return);break;case 27:case 5:a0(e,n),null===t&&4&r&&aU(n),512&r&&aT(n,n.return);break;case 12:default:a0(e,n);break;case 13:a0(e,n),4&r&&aK(e,n);break;case 22:if(0!=(1&n.mode)){if(!(l=null!==n.memoizedState||aP)){t=null!==t&&null!==t.memoizedState||aN;var a=aP,o=aN;aP=l,(aN=t)&&!o?function e(t,n,r){for(r=r&&0!=(8772&n.subtreeFlags),n=n.child;null!==n;){var l=n.alternate,a=t,o=n,i=o.flags;switch(o.tag){case 0:case 11:case 15:e(a,o,r),aA(o,4);break;case 1:if(e(a,o,r),"function"==typeof(a=o.stateNode).componentDidMount)try{a.componentDidMount()}catch(e){ie(o,o.return,e)}if(null!==(l=o.updateQueue)){var u=l.shared.hiddenCallbacks;if(null!==u)for(l.shared.hiddenCallbacks=null,l=0;l title"))),sI(l,n,r),l[ew]=e,eR(l),n=l;break e;case"link":var a=cf("link","href",t).get(n+(r.href||""));if(a){for(var o=0;o",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof r.is?l.createElement("select",{is:r.is}):l.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"==typeof r.is?l.createElement(n,{is:r.is}):l.createElement(n)}}e[ew]=t,e[eS]=r;e:for(l=t.child;null!==l;){if(5===l.tag||6===l.tag)e.appendChild(l.stateNode);else if(4!==l.tag&&27!==l.tag&&null!==l.child){l.child.return=l,l=l.child;continue}if(l===t)break;for(;null===l.sibling;){if(null===l.return||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(t.stateNode=e,sI(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break;case"img":e=!0;break;default:e=!1}e&&ap(t)}null!==t.ref&&am(t)}return av(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&ap(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(e=I.current,t4(t)){e:{if(e=t.stateNode,n=t.memoizedProps,e[ew]=t,(r=e.nodeValue!==n)&&null!==(l=tW))switch(l.tag){case 3:if(l=0!=(1&l.mode),sO(e.nodeValue,n,l),l){e=!1;break e}break;case 27:case 5:var a=0!=(1&l.mode);if(!0!==l.memoizedProps.suppressHydrationWarning&&sO(e.nodeValue,n,a),a){e=!1;break e}}e=r}e&&ap(t)}else(e=sV(e).createTextNode(r))[ew]=t,t.stateNode=e}return av(t),null;case 13:if(nW(t),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(tq&&null!==tH&&0!=(1&t.mode)&&0==(128&t.flags))t6(),t8(),t.flags|=384,l=!1;else if(l=t4(t),null!==r&&null!==r.dehydrated){if(null===e){if(!l)throw Error(i(318));if(!(l=null!==(l=t.memoizedState)?l.dehydrated:null))throw Error(i(317));l[ew]=t}else t8(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;av(t),l=!1}else null!==tK&&(oj(tK),tK=null),l=!0;if(!l)return 256&t.flags?t:null}if(0!=(128&t.flags))return t.lanes=n,t;return n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(r=t.child,l=null,null!==r.alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(l=r.alternate.memoizedState.cachePool.pool),a=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==l&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ag(t,t.updateQueue),av(t),null;case 4:return V(),null===e&&sE(t.stateNode.containerInfo),av(t),null;case 10:return l6(t.type._context),av(t),null;case 19:if(h(nH),null===(l=t.memoizedState))return av(t),null;if(r=0!=(128&t.flags),null===(a=l.rendering)){if(r)ay(l,!1);else{if(0!==ov||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=nq(e))){for(t.flags|=128,ay(l,!1),e=a.updateQueue,t.updateQueue=e,ag(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)id(n,e),n=n.sibling;return g(nH,1&nH.current|2),t.child}e=e.sibling}null!==l.tail&&Y()>oP&&(t.flags|=128,r=!0,ay(l,!1),t.lanes=4194304)}}else{if(!r){if(null!==(e=nq(a))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,ag(t,e),ay(l,!0),null===l.tail&&"hidden"===l.tailMode&&!a.alternate&&!tq)return av(t),null}else 2*Y()-l.renderingStartTime>oP&&536870912!==n&&(t.flags|=128,r=!0,ay(l,!1),t.lanes=4194304)}l.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=l.last)?e.sibling=a:t.child=a,l.last=a)}if(null!==l.tail)return t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Y(),t.sibling=null,e=nH.current,g(nH,r?1&e|2:1&e),t;return av(t),null;case 22:case 23:return nW(t),nU(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(536870912&n)&&0==(128&t.flags)&&(av(t),6&t.subtreeFlags&&(t.flags|=8192)):av(t),null!==(n=t.updateQueue)&&ag(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&h(as),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),l6(aa),av(t),null;case 25:return null}throw Error(i(156,t.tag))}(t.alternate,t,oy);if(null!==n){od=n;return}if(null!==(t=t.sibling)){od=t;return}od=t=e}while(null!==t);0===ov&&(ov=5)}function o8(e,t,n,r){var l=ey,a=os.transition;try{os.transition=null,ey=2,function(e,t,n,r,l){do o7();while(null!==oM);if(0!=(6&oc))throw Error(i(327));var a=e.finishedWork,o=e.finishedLanes;if(null!==a){if(e.finishedWork=null,e.finishedLanes=0,a===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var u=a.lanes|a.childLanes;if(function(e,t,n){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.entangledLanes&=t,e.errorRecoveryDisabledLanes&=t,e.shellSuspendCounter=0,t=e.entanglements;for(var l=e.expirationTimes,a=e.hiddenUpdates;0r&&(l=r,r=a,a=l),l=u4(n,a);var o=u4(n,r);l&&o&&(1!==e.rangeCount||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(l.node,l.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;nn?32:n;n=os.transition;var l=ey;try{if(os.transition=null,ey=r,null===oM)var a=!1;else{r=oD,oD=null;var o=oM,u=oO;if(oM=null,oO=0,0!=(6&oc))throw Error(i(331));var s=oc;if(oc|=4,on(o.current),a6(o,o.current,u,r),oc=s,n1(!1),er&&"function"==typeof er.onPostCommitFiberRoot)try{er.onPostCommitFiberRoot(en,o)}catch(e){}a=!0}return a}finally{ey=l,os.transition=n,o5(e,t)}}return!1}function o9(e,t,n){t=lE(e,t=lw(n,t),2),null!==(e=nf(e,t,2))&&(em(e,2),n0(e))}function ie(e,t,n){if(3===e.tag)o9(e,e,n);else for(;null!==t;){if(3===t.tag){o9(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===oT||!oT.has(r))){e=lx(t,e=lw(n,e),2),null!==(t=nf(t,e,2))&&(em(t,2),n0(t));break}}t=t.return}}function it(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new oa;var l=new Set;r.set(t,l)}else void 0===(l=r.get(t))&&(l=new Set,r.set(t,l));l.has(n)||(og=!0,l.add(n),e=ir.bind(null,e,t,n),t.then(e,e))}function ir(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,of===e&&(op&n)===n&&(4===ov||3===ov&&(62914560&op)===op&&300>Y()-oz?0==(2&oc)&&oY(e,0):oS|=n),n0(e)}function il(e,t){0===t&&(t=0==(1&e.mode)?2:ed()),null!==(e=nl(e,t))&&(em(e,t),n0(e))}function ia(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),il(e,n)}function io(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(n=l.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}null!==r&&r.delete(t),il(e,n)}function ii(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function iu(e,t,n,r){return new ii(e,t,n,r)}function is(e){return!(!(e=e.prototype)||!e.isReactComponent)}function ic(e,t){var n=e.alternate;return null===n?((n=iu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=31457280&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function id(e,t){e.flags&=31457282;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ip(e,t,n,r,l,a,o){if(l=2,r=e,"function"==typeof e)is(e)&&(l=1);else if("string"==typeof e)l=!function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;if("stylesheet"===t.rel)return e=t.disabled,"string"==typeof t.precedence&&null==e;return!0;case"script":if(!0===t.async&&!t.onLoad&&!t.onError&&"string"==typeof t.src&&t.src)return!0}return!1}(e,n,D.current)?"html"===e||"head"===e||"body"===e?27:5:26;else e:switch(e){case b:return im(n.children,a,o,t);case k:l=8,0!=(1&(a|=8))&&(a|=16);break;case w:return(e=iu(12,n,t,2|a)).elementType=w,e.lanes=o,e;case z:return(e=iu(13,n,t,a)).elementType=z,e.lanes=o,e;case P:return(e=iu(19,n,t,a)).elementType=P,e.lanes=o,e;case T:return ih(n,a,o,t);case F:case L:case M:return(e=iu(24,n,t,a)).elementType=M,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case S:l=10;break e;case C:l=9;break e;case x:l=11;break e;case N:l=14;break e;case _:l=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=iu(l,n,t,a)).elementType=e,t.type=r,t.lanes=o,t}function im(e,t,n,r){return(e=iu(7,e,r,t)).lanes=n,e}function ih(e,t,n,r){(e=iu(22,e,r,t)).elementType=T,e.lanes=n;var l={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var e=l._current;if(null===e)throw Error(i(456));if(0==(2&l._pendingVisibility)){var t=nl(e,2);null!==t&&(l._pendingVisibility|=2,o$(t,e,2))}},attach:function(){var e=l._current;if(null===e)throw Error(i(456));if(0!=(2&l._pendingVisibility)){var t=nl(e,2);null!==t&&(l._pendingVisibility&=-3,o$(t,e,2))}}};return e.stateNode=l,e}function ig(e,t,n){return(e=iu(6,e,null,t)).lanes=n,e}function iy(e,t,n){return(t=iu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function iv(e,t,n,r,l,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ep(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ep(0),this.hiddenUpdates=ep(null),this.identifierPrefix=r,this.onRecoverableError=l,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=a,this.incompleteTransitions=new Map}function ib(e,t,n,r,l,a,o,i,u,s,c){return e=new iv(e,t,n,i,u,c),1===t?(t=1,!0===a&&(t|=24)):t=0,a=iu(3,null,null,t),e.current=a,a.stateNode=e,t=ao(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},nu(a),e}function ik(e){if(!e)return tk;e=e._reactInternals;e:{if(tg(e)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(tx(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(tx(n))return tN(e,n,t)}return t}function iw(e,t,n,r,l,a,o,i,u,s,c){return(e=ib(n,r,!0,e,l,a,o,i,u,s,c)).context=ik(null),(l=nc(r=oU(n=e.current))).callback=null!=t?t:null,nf(n,l,r),e.current.lanes=r,em(e,r),n0(e),e}function iS(e,t,n,r){var l=t.current,a=oU(l);return n=ik(n),null===t.context?t.context=n:t.pendingContext=n,(t=nc(a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=nf(l,t,a))&&(o$(e,l,a),nd(e,l,a)),a}function iC(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function iE(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n=uM),uD=!1;function uA(e,t){switch(e){case"keyup":return -1!==uT.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uI(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var uU=!1,u$={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function uB(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!u$[e.type]:"textarea"===t}function uV(e,t,n,r){tm(r),0<(t=sN(t,"onChange")).length&&(n=new iQ("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var uj=null,uQ=null;function uW(e){sk(e,0)}function uH(e){if(eJ(eF(e)))return e}function uq(e,t){if("change"===e)return t}var uK=!1;if(e$){if(e$){var uY="oninput"in document;if(!uY){var uX=document.createElement("div");uX.setAttribute("oninput","return;"),uY="function"==typeof uX.oninput}r=uY}else r=!1;uK=r&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=u3(r)}}function u6(){for(var e=window,t=e0();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(n)e=t.contentWindow;else break;t=e0(e.document)}return t}function u8(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var u5=e$&&"documentMode"in document&&11>=document.documentMode,u7=null,u9=null,se=null,st=!1;function sn(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;st||null==u7||u7!==e0(r)||(r="selectionStart"in(r=u7)&&u8(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},se&&ny(se,r)||(se=r,0<(r=sN(u9,"onSelect")).length&&(t=new iQ("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=u7)))}function sr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var sl={animationend:sr("Animation","AnimationEnd"),animationiteration:sr("Animation","AnimationIteration"),animationstart:sr("Animation","AnimationStart"),transitionend:sr("Transition","TransitionEnd")},sa={},so={};function si(e){if(sa[e])return sa[e];if(!sl[e])return e;var t,n=sl[e];for(t in n)if(n.hasOwnProperty(t)&&t in so)return sa[e]=n[t];return e}e$&&(so=document.createElement("div").style,"AnimationEvent"in window||(delete sl.animationend.animation,delete sl.animationiteration.animation,delete sl.animationstart.animation),"TransitionEvent"in window||delete sl.transitionend.transition);var su=si("animationend"),ss=si("animationiteration"),sc=si("animationstart"),sf=si("transitionend"),sd=new Map,sp="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function sm(e,t){sd.set(e,t),eI(t,[e])}for(var sh=0;sh title"):null)}var cp=null;function cm(){}function ch(){if(this.count--,0===this.count){if(this.stylesheets)cy(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var cg=null;function cy(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,cg=new Map,t.forEach(cv,e),cg=null,ch.call(e))}function cv(e,t){if(!(4&t.state.loading)){var n=cg.get(e);if(n)var r=n.get("last");else{n=new Map,cg.set(e,n);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a