import{n as e,t}from"./rolldown-runtime.Bi-D_2cA.mjs";import{B as n,E as r,I as i,M as a,N as o,T as s,b as c,l,o as u,p as d,s as f,z as p}from"./react.D2mjVV6P.mjs";import{a as m,r as h,t as g,w as _}from"./motion.BOE6NzJ0.mjs";import{A as ee,C as te,D as v,E as y,G as b,R as ne,bt as x,ht as S,k as re,lt as ie,o as C,xt as w}from"./framer.DNJzXnxj.mjs";var ae,oe,se;function ce(){return(ce=t((()=>{b(),ee.loadFonts([`GF;Stack Sans Headline-regular`,`Inter-Bold`,`Inter-BoldItalic`,`Inter-Italic`]),ae=[{explicitInter:!0,fonts:[{cssFamilyName:`Stack Sans Headline`,openType:!0,source:`google`,style:`normal`,uiFamilyName:`Stack Sans Headline`,url:`https://fonts.gstatic.com/s/stacksansheadline/v1/1PtFg9jZXvmMnkLnuURbaukKZJTyrDV326uH6mSinjBIwc5tIgFCqgUA3ZCX.woff2`,weight:`400`},{cssFamilyName:`Inter`,source:`framer`,style:`normal`,uiFamilyName:`Inter`,unicodeRange:`U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F`,url:`https://framerusercontent.com/assets/DpPBYI0sL4fYLgAkX8KXOPVt7c.woff2`,weight:`700`},{cssFamilyName:`Inter`,source:`framer`,style:`normal`,uiFamilyName:`Inter`,unicodeRange:`U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116`,url:`https://framerusercontent.com/assets/4RAEQdEOrcnDkhHiiCbJOw92Lk.woff2`,weight:`700`},{cssFamilyName:`Inter`,source:`framer`,style:`normal`,uiFamilyName:`Inter`,unicodeRange:`U+1F00-1FFF`,url:`https://framerusercontent.com/assets/1K3W8DizY3v4emK8Mb08YHxTbs.woff2`,weight:`700`},{cssFamilyName:`Inter`,source:`framer`,style:`normal`,uiFamilyName:`Inter`,unicodeRange:`U+0370-03FF`,url:`https://framerusercontent.com/assets/tUSCtfYVM1I1IchuyCwz9gDdQ.woff2`,weight:`700`},{cssFamilyName:`Inter`,source:`framer`,style:`normal`,uiFamilyName:`Inter`,unicodeRange:`U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF`,url:`https://framerusercontent.com/assets/VgYFWiwsAC5OYxAycRXXvhze58.woff2`,weight:`700`},{cssFamilyName:`Inter`,source:`framer`,style:`normal`,uiFamilyName:`Inter`,unicodeRange:`U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD`,url:`https://framerusercontent.com/assets/syRNPWzAMIrcJ3wIlPIP43KjQs.woff2`,weight:`700`},{cssFamilyName:`Inter`,source:`framer`,style:`normal`,uiFamilyName:`Inter`,unicodeRange:`U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB`,url:`https://framerusercontent.com/assets/GIryZETIX4IFypco5pYZONKhJIo.woff2`,weight:`700`},{cssFamilyName:`Inter`,source:`framer`,style:`italic`,uiFamilyName:`Inter`,unicodeRange:`U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F`,url:`https://framerusercontent.com/assets/H89BbHkbHDzlxZzxi8uPzTsp90.woff2`,weight:`700`},{cssFamilyName:`Inter`,source:`framer`,style:`italic`,uiFamilyName:`Inter`,unicodeRange:`U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116`,url:`https://framerusercontent.com/assets/u6gJwDuwB143kpNK1T1MDKDWkMc.woff2`,weight:`700`},{cssFamilyName:`Inter`,source:`framer`,style:`italic`,uiFamilyName:`Inter`,unicodeRange:`U+1F00-1FFF`,url:`https://framerusercontent.com/assets/43sJ6MfOPh1LCJt46OvyDuSbA6o.woff2`,weight:`700`},{cssFamilyName:`Inter`,source:`framer`,style:`italic`,uiFamilyName:`Inter`,unicodeRange:`U+0370-03FF`,url:`https://framerusercontent.com/assets/wccHG0r4gBDAIRhfHiOlq6oEkqw.woff2`,weight:`700`},{cssFamilyName:`Inter`,source:`framer`,style:`italic`,uiFamilyName:`Inter`,unicodeRange:`U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF`,url:`https://framerusercontent.com/assets/WZ367JPwf9bRW6LdTHN8rXgSjw.woff2`,weight:`700`},{cssFamilyName:`Inter`,source:`framer`,style:`italic`,uiFamilyName:`Inter`,unicodeRange:`U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD`,url:`https://framerusercontent.com/assets/ia3uin3hQWqDrVloC1zEtYHWw.woff2`,weight:`700`},{cssFamilyName:`Inter`,source:`framer`,style:`italic`,uiFamilyName:`Inter`,unicodeRange:`U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB`,url:`https://framerusercontent.com/assets/2A4Xx7CngadFGlVV4xrO06OBHY.woff2`,weight:`700`},{cssFamilyName:`Inter`,source:`framer`,style:`italic`,uiFamilyName:`Inter`,unicodeRange:`U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F`,url:`https://framerusercontent.com/assets/CfMzU8w2e7tHgF4T4rATMPuWosA.woff2`,weight:`400`},{cssFamilyName:`Inter`,source:`framer`,style:`italic`,uiFamilyName:`Inter`,unicodeRange:`U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116`,url:`https://framerusercontent.com/assets/867QObYax8ANsfX4TGEVU9YiCM.woff2`,weight:`400`},{cssFamilyName:`Inter`,source:`framer`,style:`italic`,uiFamilyName:`Inter`,unicodeRange:`U+1F00-1FFF`,url:`https://framerusercontent.com/assets/Oyn2ZbENFdnW7mt2Lzjk1h9Zb9k.woff2`,weight:`400`},{cssFamilyName:`Inter`,source:`framer`,style:`italic`,uiFamilyName:`Inter`,unicodeRange:`U+0370-03FF`,url:`https://framerusercontent.com/assets/cdAe8hgZ1cMyLu9g005pAW3xMo.woff2`,weight:`400`},{cssFamilyName:`Inter`,source:`framer`,style:`italic`,uiFamilyName:`Inter`,unicodeRange:`U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF`,url:`https://framerusercontent.com/assets/DOfvtmE1UplCq161m6Hj8CSQYg.woff2`,weight:`400`},{cssFamilyName:`Inter`,source:`framer`,style:`italic`,uiFamilyName:`Inter`,unicodeRange:`U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD`,url:`https://framerusercontent.com/assets/pKRFNWFoZl77qYCAIp84lN1h944.woff2`,weight:`400`},{cssFamilyName:`Inter`,source:`framer`,style:`italic`,uiFamilyName:`Inter`,unicodeRange:`U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB`,url:`https://framerusercontent.com/assets/tKtBcDnBMevsEEJKdNGhhkLzYo.woff2`,weight:`400`}]}],oe=[`.framer-djEHk .framer-styles-preset-uc5mdc:not(.rich-text-wrapper), .framer-djEHk .framer-styles-preset-uc5mdc.rich-text-wrapper p { --framer-font-family: "Stack Sans Headline", "Stack Sans Headline Placeholder", sans-serif; --framer-font-family-bold: "Inter", "Inter Placeholder", sans-serif; --framer-font-family-bold-italic: "Inter", "Inter Placeholder", sans-serif; --framer-font-family-italic: "Inter", "Inter Placeholder", sans-serif; --framer-font-open-type-features: 'blwf' on, 'cv03' on, 'cv04' on, 'cv09' on, 'cv11' on; --framer-font-size: 14px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: italic; --framer-font-style-italic: italic; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-font-weight-bold: 700; --framer-font-weight-bold-italic: 700; --framer-font-weight-italic: 400; --framer-letter-spacing: 0em; --framer-line-height: 1.2em; --framer-paragraph-spacing: 20px; --framer-text-alignment: start; --framer-text-color: var(--token-75c7b632-30cc-45f8-a82e-7ef5d732cf27, #6a6e6e); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }`,`@media (max-width: 1199px) and (min-width: 810px) { .framer-djEHk .framer-styles-preset-uc5mdc:not(.rich-text-wrapper), .framer-djEHk .framer-styles-preset-uc5mdc.rich-text-wrapper p { --framer-font-family: "Stack Sans Headline", "Stack Sans Headline Placeholder", sans-serif; --framer-font-family-bold: "Inter", "Inter Placeholder", sans-serif; --framer-font-family-bold-italic: "Inter", "Inter Placeholder", sans-serif; --framer-font-family-italic: "Inter", "Inter Placeholder", sans-serif; --framer-font-open-type-features: 'blwf' on, 'cv03' on, 'cv04' on, 'cv09' on, 'cv11' on; --framer-font-size: 14px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: italic; --framer-font-style-italic: italic; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-font-weight-bold: 700; --framer-font-weight-bold-italic: 700; --framer-font-weight-italic: 400; --framer-letter-spacing: 0em; --framer-line-height: 1.2em; --framer-paragraph-spacing: 20px; --framer-text-alignment: start; --framer-text-color: var(--token-75c7b632-30cc-45f8-a82e-7ef5d732cf27, #6a6e6e); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }`,`@media (max-width: 809px) and (min-width: 0px) { .framer-djEHk .framer-styles-preset-uc5mdc:not(.rich-text-wrapper), .framer-djEHk .framer-styles-preset-uc5mdc.rich-text-wrapper p { --framer-font-family: "Stack Sans Headline", "Stack Sans Headline Placeholder", sans-serif; --framer-font-family-bold: "Inter", "Inter Placeholder", sans-serif; --framer-font-family-bold-italic: "Inter", "Inter Placeholder", sans-serif; --framer-font-family-italic: "Inter", "Inter Placeholder", sans-serif; --framer-font-open-type-features: 'blwf' on, 'cv03' on, 'cv04' on, 'cv09' on, 'cv11' on; --framer-font-size: 14px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: italic; --framer-font-style-italic: italic; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-font-weight-bold: 700; --framer-font-weight-bold-italic: 700; --framer-font-weight-italic: 400; --framer-letter-spacing: 0em; --framer-line-height: 1.2em; --framer-paragraph-spacing: 40px; --framer-text-alignment: start; --framer-text-color: var(--token-75c7b632-30cc-45f8-a82e-7ef5d732cf27, #6a6e6e); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }`],se=`framer-djEHk`})))()}function le(e,...t){let n={};return t?.forEach(t=>t&&Object.assign(n,e[t])),n}var ue,T,E,de,D,fe,pe,me,O,k,he,A;function ge(){return(ge=t((()=>{f(),b(),g(),r(),ce(),ue=[`sJV6vsCcd`,`mbhSuTDh2`,`RZJprRqJe`,`bS6SIoHMe`,`EOjBnnlBT`,`ywGRGD0_p`],T=`framer-grbPW`,E={bS6SIoHMe:`framer-v-bjduto`,EOjBnnlBT:`framer-v-rf631f`,mbhSuTDh2:`framer-v-xno8tu`,RZJprRqJe:`framer-v-dpu7z1`,sJV6vsCcd:`framer-v-1vcmpsl`,ywGRGD0_p:`framer-v-1eluifd`},de={bounce:.2,delay:0,duration:.4,type:`spring`},D=({value:e,children:t})=>{let n=a(m),r=e??n.transition,i=o(()=>({...n,transition:r}),[JSON.stringify(r)]);return/*#__PURE__*/ u(m.Provider,{value:i,children:t})},fe={"Dark - SM":`EOjBnnlBT`,Dark:`bS6SIoHMe`,Desktop:`sJV6vsCcd`,Light:`mbhSuTDh2`,White:`ywGRGD0_p`},pe=_.create(i),me=({height:e,id:t,title:n,width:r,...i})=>({...i,fnY8oRtEf:n??i.fnY8oRtEf??`Our story`,variant:fe[i.variant]??i.variant??`sJV6vsCcd`}),O=(e,t)=>e.layoutDependency?t.join(`-`)+e.layoutDependency:t.join(`-`),k=/*#__PURE__*/ d(function(e,t){let n=c(null),r=t??n,a=s(),{activeLocale:o,setLocale:d}=S();ie();let{style:f,className:p,layoutId:m,variant:g,fnY8oRtEf:ee,...v}=me(e),{baseVariant:y,classNames:b,clearLoadingGesture:ne,gestureHandlers:C,gestureVariant:w,isLoading:ae,setGestureState:oe,setVariant:ce,variants:fe}=x({cycleOrder:ue,defaultVariant:`sJV6vsCcd`,ref:r,variant:g,variantClassNames:E}),k=O(e,fe),he=re(T,se),A=()=>![`EOjBnnlBT`,`ywGRGD0_p`].includes(y);return/*#__PURE__*/ u(h,{id:m??a,children:/*#__PURE__*/ u(pe,{animate:fe,initial:!1,children:/*#__PURE__*/ u(D,{value:de,children:/*#__PURE__*/ l(_.div,{...v,...C,className:re(he,`framer-1vcmpsl`,p,b),"data-border":!0,"data-framer-name":`Desktop`,layoutDependency:k,layoutId:`sJV6vsCcd`,ref:r,style:{"--border-bottom-width":`1px`,"--border-color":`var(--token-b5f421c1-5e6c-4f1f-88b0-6e85f5a2a857, rgba(11, 11, 12, 0.1))`,"--border-left-width":`1px`,"--border-right-width":`1px`,"--border-style":`solid`,"--border-top-width":`1px`,backgroundColor:`var(--token-ae19dc46-80c7-4d30-9ce6-325b78d7f3e8, rgba(0, 0, 0, 0))`,borderBottomLeftRadius:100,borderBottomRightRadius:100,borderTopLeftRadius:100,borderTopRightRadius:100,...f},variants:{bS6SIoHMe:{backgroundColor:`var(--token-b1316c97-2e63-4551-b4a0-c8072683d7ad, rgb(23, 23, 24))`},EOjBnnlBT:{"--border-bottom-width":`0px`,"--border-left-width":`0px`,"--border-right-width":`0px`,"--border-top-width":`0px`,backgroundColor:`var(--token-b1316c97-2e63-4551-b4a0-c8072683d7ad, rgb(23, 23, 24))`},mbhSuTDh2:{"--border-bottom-width":`0px`,"--border-left-width":`0px`,"--border-right-width":`0px`,"--border-top-width":`0px`,backgroundColor:`var(--token-0075701b-4c72-4c03-b369-83d7987e418b, rgb(240, 240, 240))`},RZJprRqJe:{backgroundColor:`var(--token-976232f3-c74f-46a4-b338-68b15659902b, rgb(255, 255, 255))`},ywGRGD0_p:{"--border-bottom-width":`0px`,"--border-left-width":`0px`,"--border-right-width":`0px`,"--border-top-width":`0px`,backgroundColor:`var(--token-976232f3-c74f-46a4-b338-68b15659902b, rgb(255, 255, 255))`}},...le({bS6SIoHMe:{"data-framer-name":`Dark`},EOjBnnlBT:{"data-framer-name":`Dark - SM`},mbhSuTDh2:{"data-framer-name":`Light`},RZJprRqJe:{"data-framer-name":`White`},ywGRGD0_p:{"data-framer-name":`White`}},y,w),children:[A()&&/*#__PURE__*/ u(_.div,{className:`framer-90f98n`,"data-framer-name":`Dot`,layoutDependency:k,layoutId:`czABaX4pQ`,style:{backgroundColor:`var(--token-408afcf4-16b3-40e8-b7f9-e0a961f38448, rgb(11, 11, 12))`,borderBottomLeftRadius:`50%`,borderBottomRightRadius:`50%`,borderTopLeftRadius:`50%`,borderTopRightRadius:`50%`},variants:{bS6SIoHMe:{backgroundColor:`var(--token-976232f3-c74f-46a4-b338-68b15659902b, rgb(255, 255, 255))`}}}),/*#__PURE__*/ u(te,{__fromCanvasComponent:!0,children:/*#__PURE__*/ u(i,{children:/*#__PURE__*/ u(_.p,{className:`framer-styles-preset-uc5mdc`,"data-styles-preset":`sTdUitqhD`,dir:`auto`,style:{"--framer-text-color":`var(--extracted-r6o4lv, var(--token-408afcf4-16b3-40e8-b7f9-e0a961f38448, rgb(11, 11, 12)))`},children:`Our story`})}),className:`framer-6jemmj`,fonts:[`Inter`],layoutDependency:k,layoutId:`Er8rf9SBb`,style:{"--extracted-r6o4lv":`var(--token-408afcf4-16b3-40e8-b7f9-e0a961f38448, rgb(11, 11, 12))`,"--framer-link-text-color":`rgb(0, 153, 255)`,"--framer-link-text-decoration":`underline`},text:ee,variants:{bS6SIoHMe:{"--extracted-r6o4lv":`var(--token-976232f3-c74f-46a4-b338-68b15659902b, rgb(255, 255, 255))`},EOjBnnlBT:{"--extracted-r6o4lv":`var(--token-976232f3-c74f-46a4-b338-68b15659902b, rgb(255, 255, 255))`}},verticalAlignment:`top`,withExternalLayout:!0,...le({bS6SIoHMe:{children:/*#__PURE__*/ u(i,{children:/*#__PURE__*/ u(_.p,{className:`framer-styles-preset-uc5mdc`,"data-styles-preset":`sTdUitqhD`,dir:`auto`,style:{"--framer-text-color":`var(--extracted-r6o4lv, var(--token-976232f3-c74f-46a4-b338-68b15659902b, rgb(255, 255, 255)))`},children:`Our story`})})},EOjBnnlBT:{children:/*#__PURE__*/ u(i,{children:/*#__PURE__*/ u(_.p,{className:`framer-styles-preset-uc5mdc`,"data-styles-preset":`sTdUitqhD`,dir:`auto`,style:{"--framer-text-color":`var(--extracted-r6o4lv, var(--token-976232f3-c74f-46a4-b338-68b15659902b, rgb(255, 255, 255)))`},children:`Our story`})})}},y,w)}),A()&&/*#__PURE__*/ u(_.div,{className:`framer-b8neq7`,"data-framer-name":`Dot`,layoutDependency:k,layoutId:`x0G8Ncqgu`,style:{backgroundColor:`var(--token-408afcf4-16b3-40e8-b7f9-e0a961f38448, rgb(11, 11, 12))`,borderBottomLeftRadius:`50%`,borderBottomRightRadius:`50%`,borderTopLeftRadius:`50%`,borderTopRightRadius:`50%`},variants:{bS6SIoHMe:{backgroundColor:`var(--token-976232f3-c74f-46a4-b338-68b15659902b, rgb(255, 255, 255))`}}})]})})})})}),he=[`.framer-grbPW.framer-turfzp, .framer-grbPW .framer-turfzp { display: block; }`,`.framer-grbPW.framer-1vcmpsl { align-content: center; align-items: center; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 8px; height: min-content; justify-content: center; overflow: var(--overflow-clip-fallback, clip); padding: 6px 16px 6px 16px; position: relative; width: min-content; will-change: var(--framer-will-change-override, transform); }`,`.framer-grbPW .framer-90f98n, .framer-grbPW .framer-b8neq7 { flex: none; height: 6px; overflow: var(--overflow-clip-fallback, clip); position: relative; width: 6px; will-change: var(--framer-will-change-override, transform); }`,`.framer-grbPW .framer-6jemmj { flex: none; height: auto; position: relative; white-space: pre; width: auto; }`,`.framer-grbPW.framer-v-rf631f.framer-1vcmpsl, .framer-grbPW.framer-v-1eluifd.framer-1vcmpsl { padding: 4px 10px 4px 10px; }`,...oe,`.framer-grbPW[data-border="true"]::after, .framer-grbPW [data-border="true"]::after { content: ""; border-width: var(--border-top-width, 0) var(--border-right-width, 0) var(--border-bottom-width, 0) var(--border-left-width, 0); border-color: var(--border-color, none); border-style: var(--border-style, none); width: 100%; height: 100%; position: absolute; box-sizing: border-box; left: 0; top: 0; border-radius: inherit; corner-shape: inherit; pointer-events: none; }`],A=w(k,he,`framer-grbPW`),A.displayName=`Badge`,A.defaultProps={height:29,width:118},v(A,{variant:{options:[`sJV6vsCcd`,`mbhSuTDh2`,`RZJprRqJe`,`bS6SIoHMe`,`EOjBnnlBT`,`ywGRGD0_p`],optionTitles:[`Desktop`,`Light`,`White`,`Dark`,`Dark - SM`,`White`],title:`Variant`,type:C.Enum},fnY8oRtEf:{defaultValue:`Our story`,displayTextArea:!0,title:`Title`,type:C.String},onfnY8oRtEfChange:{changes:`fnY8oRtEf`,type:C.ChangeHandler}}),y(A,[{explicitInter:!0,fonts:[{cssFamilyName:`Inter`,source:`framer`,style:`normal`,uiFamilyName:`Inter`,unicodeRange:`U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F`,url:`https://framerusercontent.com/assets/5vvr9Vy74if2I6bQbJvbw7SY1pQ.woff2`,weight:`400`},{cssFamilyName:`Inter`,source:`framer`,style:`normal`,uiFamilyName:`Inter`,unicodeRange:`U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116`,url:`https://framerusercontent.com/assets/EOr0mi4hNtlgWNn9if640EZzXCo.woff2`,weight:`400`},{cssFamilyName:`Inter`,source:`framer`,style:`normal`,uiFamilyName:`Inter`,unicodeRange:`U+1F00-1FFF`,url:`https://framerusercontent.com/assets/Y9k9QrlZAqio88Klkmbd8VoMQc.woff2`,weight:`400`},{cssFamilyName:`Inter`,source:`framer`,style:`normal`,uiFamilyName:`Inter`,unicodeRange:`U+0370-03FF`,url:`https://framerusercontent.com/assets/OYrD2tBIBPvoJXiIHnLoOXnY9M.woff2`,weight:`400`},{cssFamilyName:`Inter`,source:`framer`,style:`normal`,uiFamilyName:`Inter`,unicodeRange:`U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF`,url:`https://framerusercontent.com/assets/JeYwfuaPfZHQhEG8U5gtPDZ7WQ.woff2`,weight:`400`},{cssFamilyName:`Inter`,source:`framer`,style:`normal`,uiFamilyName:`Inter`,unicodeRange:`U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD`,url:`https://framerusercontent.com/assets/GrgcKwrN6d3Uz8EwcLHZxwEfC4.woff2`,weight:`400`},{cssFamilyName:`Inter`,source:`framer`,style:`normal`,uiFamilyName:`Inter`,unicodeRange:`U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB`,url:`https://framerusercontent.com/assets/b6Y37FthZeALduNqHicBT6FutY.woff2`,weight:`400`}]},...ne(ae)],{supportsExplicitInterCodegen:!0})})))()}function j(){j.init.call(this)}function _e(e){if(typeof e!=`function`)throw TypeError(`The "listener" argument must be of type Function. Received type `+typeof e)}function ve(e){return e._maxListeners===void 0?j.defaultMaxListeners:e._maxListeners}function ye(e,t,n,r){var i,a,o,s;if(_e(n),(a=e._events)===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit(`newListener`,t,n.listener?n.listener:n),a=e._events),o=a[t]),o===void 0)o=a[t]=n,++e._eventsCount;else if(typeof o==`function`?o=a[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(i=ve(e))>0&&o.length>i&&!o.warned){o.warned=!0;var c=/* @__PURE__ */ Error(`Possible EventEmitter memory leak detected. `+o.length+` `+String(t)+` listeners added. Use emitter.setMaxListeners() to increase limit`);c.name=`MaxListenersExceededWarning`,c.emitter=e,c.type=t,c.count=o.length,s=c,console&&console.warn&&console.warn(s)}return e}function be(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function xe(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=be.bind(r);return i.listener=n,r.wrapFn=i,i}function Se(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i==`function`?n?[i.listener||i]:[i]:n?function(e){for(var t=Array(e.length),n=0;n{Ee=typeof Reflect==`object`?Reflect:null,N=Ee&&typeof Ee.apply==`function`?Ee.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},Te=Ee&&typeof Ee.ownKeys==`function`?Ee.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},De=Number.isNaN||function(e){return e!=e},M=j,j.EventEmitter=j,j.prototype._events=void 0,j.prototype._eventsCount=0,j.prototype._maxListeners=void 0,Oe=10,Object.defineProperty(j,"defaultMaxListeners",{enumerable:!0,get:function(){return Oe},set:function(e){if(typeof e!=`number`||e<0||De(e))throw RangeError(`The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received `+e+`.`);Oe=e}}),j.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},j.prototype.setMaxListeners=function(e){if(typeof e!=`number`||e<0||De(e))throw RangeError(`The value of "n" is out of range. It must be a non-negative number. Received `+e+`.`);return this._maxListeners=e,this},j.prototype.getMaxListeners=function(){return ve(this)},j.prototype.emit=function(e){for(var t=[],n=1;n0&&(a=t[0]),a instanceof Error)throw a;var o=/* @__PURE__ */ Error(`Unhandled error.`+(a?` (`+a.message+`)`:``));throw o.context=a,o}var s=i[e];if(s===void 0)return!1;if(typeof s==`function`)N(s,this,t);else{var c=s.length,l=we(s,c);for(n=0;n=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},j.prototype.listeners=function(e){return Se(this,e,!0)},j.prototype.rawListeners=function(e){return Se(this,e,!1)},j.listenerCount=function(e,t){return typeof e.listenerCount==`function`?e.listenerCount(t):Ce.call(e,t)},j.prototype.listenerCount=Ce,j.prototype.eventNames=function(){return this._eventsCount>0?Te(this._events):[]},P=M,P.EventEmitter,P.defaultMaxListeners,P.init,P.listenerCount,P.EventEmitter,P.defaultMaxListeners,P.init,P.listenerCount})))()}var Ae,je,Me,Ne,Pe,Fe;function Ie(){return(Ie=t((()=>{ke(),P.once=function(e,t){return new Promise(((n,r)=>{function i(...t){a!==void 0&&e.removeListener(`error`,a),n(t)}let a;t!==`error`&&(a=t=>{e.removeListener(name,i),r(t)},e.once(`error`,a)),e.once(t,i)}))},P.on=function(e,t){let n=[],r=[],i=null,a=!1,o={async next(){let e=n.shift();if(e)return createIterResult(e,!1);if(i){let e=Promise.reject(i);return i=null,e}return a?createIterResult(void 0,!0):new Promise(((e,t)=>r.push({resolve:e,reject:t})))},async return(){e.removeListener(t,s),e.removeListener(`error`,c),a=!0;for(let e of r)e.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(n){i=n,e.removeListener(t,s),e.removeListener(`error`,c)},[Symbol.asyncIterator](){return this}};return e.on(t,s),e.on(`error`,c),o;function s(...e){let t=r.shift();t?t.resolve(createIterResult(e,!1)):n.push(e)}function c(e){a=!0;let t=r.shift();t?t.reject(e):i=e,o.return()}},{EventEmitter:Ae,defaultMaxListeners:je,init:Me,listenerCount:Ne,on:Pe,once:Fe}=P})))()}function Le(){throw Error(`setTimeout has not been defined`)}function Re(){throw Error(`clearTimeout has not been defined`)}function ze(e){if(Ge===setTimeout)return setTimeout(e,0);if((Ge===Le||!Ge)&&setTimeout)return Ge=setTimeout,setTimeout(e,0);try{return Ge(e,0)}catch{try{return Ge.call(null,e,0)}catch{return Ge.call(this||qe,e,0)}}}function Be(){Ye&&Je&&(Ye=!1,Je.length?I=Je.concat(I):Xe=-1,I.length&&Ve())}function Ve(){if(!Ye){var e=ze(Be);Ye=!0;for(var t=I.length;t;){for(Je=I,I=[];++Xe{n(),qe=typeof globalThis<`u`?globalThis:typeof self<`u`?self:p,F=We={},(function(){try{Ge=typeof setTimeout==`function`?setTimeout:Le}catch{Ge=Le}try{Ke=typeof clearTimeout==`function`?clearTimeout:Re}catch{Ke=Re}})(),I=[],Ye=!1,Xe=-1,F.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Pt(t)?n.showHidden=t:t&&U._extend(n,t),Rt(n.showHidden)&&(n.showHidden=!1),Rt(n.depth)&&(n.depth=2),Rt(n.colors)&&(n.colors=!1),Rt(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=Ot),At(n,e,n.depth)}function Ot(e,t){var n=Dt.styles[t];return n?`\x1B[`+Dt.colors[n][0]+`m`+e+`\x1B[`+Dt.colors[n][1]+`m`:e}function kt(e,t){return e}function At(e,t,n){if(e.customInspect&&t&&Ut(t.inspect)&&t.inspect!==U.inspect&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return Lt(r)||(r=At(e,r,n)),r}var i=function(e,t){if(Rt(t))return e.stylize(`undefined`,`undefined`);if(Lt(t)){var n=`'`+JSON.stringify(t).replace(/^"|"$/g,``).replace(/'/g,`\\'`).replace(/\\"/g,`"`)+`'`;return e.stylize(n,`string`)}return It(t)?e.stylize(``+t,`number`):Pt(t)?e.stylize(``+t,`boolean`):Ft(t)?e.stylize(`null`,`null`):void 0}(e,t);if(i)return i;var a=Object.keys(t),o=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),Ht(t)&&(a.indexOf(`message`)>=0||a.indexOf(`description`)>=0))return jt(t);if(a.length===0){if(Ut(t)){var s=t.name?`: `+t.name:``;return e.stylize(`[Function`+s+`]`,`special`)}if(zt(t))return e.stylize(RegExp.prototype.toString.call(t),`regexp`);if(Vt(t))return e.stylize(Date.prototype.toString.call(t),`date`);if(Ht(t))return jt(t)}var c,l=``,u=!1,d=[`{`,`}`];return Nt(t)&&(u=!0,d=[`[`,`]`]),Ut(t)&&(l=` [Function`+(t.name?`: `+t.name:``)+`]`),zt(t)&&(l=` `+RegExp.prototype.toString.call(t)),Vt(t)&&(l=` `+Date.prototype.toUTCString.call(t)),Ht(t)&&(l=` `+jt(t)),a.length!==0||u&&t.length!=0?n<0?zt(t)?e.stylize(RegExp.prototype.toString.call(t),`regexp`):e.stylize(`[Object]`,`special`):(e.seen.push(t),c=u?function(e,t,n,r,i){for(var a=[],o=0,s=t.length;o=0&&r++,e+t.replace(/\u001b\[\d\d?m/g,``).length+1}),0)>60?n[0]+(t===``?``:t+` `)+` `+e.join(`, `)+` `+n[1]:n[0]+t+` `+e.join(`, `)+` `+n[1]}(c,l,d)):d[0]+l+d[1]}function jt(e){return`[`+Error.prototype.toString.call(e)+`]`}function Mt(e,t,n,r,i,a){var o,s,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=c.set?e.stylize(`[Getter/Setter]`,`special`):e.stylize(`[Getter]`,`special`):c.set&&(s=e.stylize(`[Setter]`,`special`)),qt(r,i)||(o=`[`+i+`]`),s||(e.seen.indexOf(c.value)<0?(s=Ft(n)?At(e,c.value,null):At(e,c.value,n-1)).indexOf(` `)>-1&&(s=a?s.split(` `).map((function(e){return` `+e})).join(` `).substr(2):` `+s.split(` `).map((function(e){return` `+e})).join(` `)):s=e.stylize(`[Circular]`,`special`)),Rt(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(``+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,`name`)):(o=o.replace(/'/g,`\\'`).replace(/\\"/g,`"`).replace(/(^"|"$)/g,`'`),o=e.stylize(o,`string`))}return o+`: `+s}function Nt(e){return Array.isArray(e)}function Pt(e){return typeof e==`boolean`}function Ft(e){return e===null}function It(e){return typeof e==`number`}function Lt(e){return typeof e==`string`}function Rt(e){return e===void 0}function zt(e){return Bt(e)&&Wt(e)===`[object RegExp]`}function Bt(e){return typeof e==`object`&&!!e}function Vt(e){return Bt(e)&&Wt(e)===`[object Date]`}function Ht(e){return Bt(e)&&(Wt(e)===`[object Error]`||e instanceof Error)}function Ut(e){return typeof e==`function`}function Wt(e){return Object.prototype.toString.call(e)}function Gt(e){return e<10?`0`+e.toString(10):e.toString(10)}function Kt(){var e=/* @__PURE__ */ new Date,t=[Gt(e.getHours()),Gt(e.getMinutes()),Gt(e.getSeconds())].join(`:`);return[e.getDate(),An[e.getMonth()],t].join(` `)}function qt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Jt(e,t){if(!e){var n=/* @__PURE__ */ Error(`Promise was rejected with a falsy value`);n.reason=e,e=n}return t(e)}var Yt,Xt,Zt,Qt,$t,en,tn,nn,rn,an,on,sn,cn,ln,un,dn,R,fn,pn,mn,hn,gn,z,B,_n,vn,V,H,yn,bn,xn,Sn,Cn,wn,U,W,Tn,En,Dn,On,kn,An,jn;function Mn(){return(Mn=t((()=>{n(),Ze(),Yt=typeof Symbol==`function`&&typeof Symbol.toStringTag==`symbol`,Xt=Object.prototype.toString,Zt=function(e){return!(Yt&&e&&typeof e==`object`&&Symbol.toStringTag in e)&&Xt.call(e)===`[object Arguments]`},Qt=function(e){return!!Zt(e)||typeof e==`object`&&!!e&&typeof e.length==`number`&&e.length>=0&&Xt.call(e)!==`[object Array]`&&Xt.call(e.callee)===`[object Function]`},$t=function(){return Zt(arguments)}(),Zt.isLegacyArguments=Qt,en=$t?Zt:Qt,tn=Object.prototype.toString,nn=Function.prototype.toString,rn=/^\s*(?:function)?\*/,an=typeof Symbol==`function`&&typeof Symbol.toStringTag==`symbol`,on=Object.getPrototypeOf,sn=function(){if(!an)return!1;try{return Function(`return function*() {}`)()}catch{}}(),cn=sn?on(sn):{},ln=function(e){return typeof e==`function`&&(!!rn.test(nn.call(e))||(an?on(e)===cn:tn.call(e)===`[object GeneratorFunction]`))},un=typeof Object.create==`function`?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},dn=function(e){return e&&typeof e==`object`&&typeof e.copy==`function`&&typeof e.fill==`function`&&typeof e.readUInt8==`function`},R={},fn=dn,pn=en,mn=ln,hn=typeof BigInt<`u`,gn=typeof Symbol<`u`,z=gn&&Symbol.toStringTag!==void 0,B=typeof Uint8Array<`u`,_n=typeof ArrayBuffer<`u`,B&&z&&(vn=Object.getPrototypeOf(Uint8Array.prototype),V=Qe(Object.getOwnPropertyDescriptor(vn,Symbol.toStringTag).get)),H=Qe(Object.prototype.toString),yn=Qe(Number.prototype.valueOf),bn=Qe(String.prototype.valueOf),xn=Qe(Boolean.prototype.valueOf),hn&&(Sn=Qe(BigInt.prototype.valueOf)),gn&&(Cn=Qe(Symbol.prototype.valueOf)),R.isArgumentsObject=pn,R.isGeneratorFunction=mn,R.isPromise=function(e){return typeof Promise<`u`&&e instanceof Promise||typeof e==`object`&&!!e&&typeof e.then==`function`&&typeof e.catch==`function`},R.isArrayBufferView=function(e){return _n&&ArrayBuffer.isView?ArrayBuffer.isView(e):et(e)||yt(e)},R.isTypedArray=et,R.isUint8Array=tt,R.isUint8ClampedArray=nt,R.isUint16Array=rt,R.isUint32Array=it,R.isInt8Array=at,R.isInt16Array=ot,R.isInt32Array=st,R.isFloat32Array=ct,R.isFloat64Array=lt,R.isBigInt64Array=ut,R.isBigUint64Array=dt,ft.working=typeof Map<`u`&&ft(/* @__PURE__ */ new Map),R.isMap=function(e){return typeof Map<`u`&&(ft.working?ft(e):e instanceof Map)},pt.working=typeof Set<`u`&&pt(/* @__PURE__ */ new Set),R.isSet=function(e){return typeof Set<`u`&&(pt.working?pt(e):e instanceof Set)},mt.working=typeof WeakMap<`u`&&mt(/* @__PURE__ */ new WeakMap),R.isWeakMap=function(e){return typeof WeakMap<`u`&&(mt.working?mt(e):e instanceof WeakMap)},ht.working=typeof WeakSet<`u`&&ht(/* @__PURE__ */ new WeakSet),R.isWeakSet=function(e){return ht(e)},gt.working=typeof ArrayBuffer<`u`&>(/* @__PURE__ */ new ArrayBuffer),R.isArrayBuffer=_t,vt.working=typeof ArrayBuffer<`u`&&typeof DataView<`u`&&vt(new DataView(/* @__PURE__ */ new ArrayBuffer(1),0,1)),R.isDataView=yt,bt.working=typeof SharedArrayBuffer<`u`&&bt(new SharedArrayBuffer),R.isSharedArrayBuffer=xt,R.isAsyncFunction=function(e){return H(e)===`[object AsyncFunction]`},R.isMapIterator=function(e){return H(e)===`[object Map Iterator]`},R.isSetIterator=function(e){return H(e)===`[object Set Iterator]`},R.isGeneratorObject=function(e){return H(e)===`[object Generator]`},R.isWebAssemblyCompiledModule=function(e){return H(e)===`[object WebAssembly.Module]`},R.isNumberObject=St,R.isStringObject=Ct,R.isBooleanObject=wt,R.isBigIntObject=Tt,R.isSymbolObject=Et,R.isBoxedPrimitive=function(e){return St(e)||Ct(e)||wt(e)||Tt(e)||Et(e)},R.isAnyArrayBuffer=function(e){return B&&(_t(e)||xt(e))},[`isProxy`,`isExternal`,`isModuleNamespaceObject`].forEach((function(e){Object.defineProperty(R,e,{enumerable:!1,value:function(){throw Error(e+` is not supported in userland`)}})})),wn=typeof globalThis<`u`?globalThis:typeof self<`u`?self:p,U={},W=L,Tn=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r=i)return e;switch(e){case`%s`:return String(r[n++]);case`%d`:return Number(r[n++]);case`%j`:try{return JSON.stringify(r[n++])}catch{return`[Circular]`}default:return e}})),o=r[n];n{Mn(),Ze(),U._extend,U.callbackify,U.debuglog,U.deprecate,U.format,U.inherits,U.inspect,U.isArray,U.isBoolean,U.isBuffer,U.isDate,U.isError,U.isFunction,U.isNull,U.isNullOrUndefined,U.isNumber,U.isObject,U.isPrimitive,U.isRegExp,U.isString,U.isSymbol,U.isUndefined,U.log,U.promisify,U._extend,U.callbackify,U.debuglog,U.deprecate,U.format,U.inherits,U.inspect,U.isArray,U.isBoolean,U.isBuffer,U.isDate,U.isError,U.isFunction,U.isNull,U.isNullOrUndefined,U.isNumber,U.isObject,U.isPrimitive,U.isRegExp,U.isString,U.isSymbol,U.isUndefined,U.log,U.promisify,U.types,self.TextEncoder,self.TextDecoder})))()}function Pn(){if(In)return Fn;In=!0;var e=Fn={},t,n;function r(){throw Error(`setTimeout has not been defined`)}function i(){throw Error(`clearTimeout has not been defined`)}(function(){try{t=typeof setTimeout==`function`?setTimeout:r}catch{t=r}try{n=typeof clearTimeout==`function`?clearTimeout:i}catch{n=i}})();function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch{try{return t.call(null,e,0)}catch{return t.call(this||Ln,e,0)}}}function o(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch{try{return n.call(null,e)}catch{return n.call(this||Ln,e)}}}var s=[],c=!1,l,u=-1;function d(){c&&l&&(c=!1,l.length?s=l.concat(s):u=-1,s.length&&f())}function f(){if(!c){var e=a(d);c=!0;for(var t=s.length;t;){for(l=s,s=[];++u1)for(var n=1;n{n(),Fn={},In=!1,Ln=typeof globalThis<`u`?globalThis:typeof self<`u`?self:p,G=Pn(),G.platform=`browser`,G.addListener,G.argv,G.binding,G.browser,G.chdir,G.cwd,G.emit,G.env,G.listeners,G.nextTick,G.off,G.on,G.once,G.prependListener,G.prependOnceListener,G.removeAllListeners,G.removeListener,G.title,G.umask,G.version,G.versions})))()}function zn(e){var t=e.length;if(t%4>0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);return n===-1&&(n=t),[n,n===t?0:4-n%4]}function Bn(e,t,n){for(var r,i,a=[],o=t;o>18&63]+Y[i>>12&63]+Y[i>>6&63]+Y[63&i]);return a.join(``)}function Vn(e){if(e>2147483647)throw RangeError(`The value "`+e+`" is invalid for option "size"`);var t=new Uint8Array(e);return Object.setPrototypeOf(t,K.prototype),t}function K(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return Wn(e)}return Hn(e,t,n)}function Hn(e,t,n){if(typeof e==`string`)return function(e,t){if(typeof t==`string`&&t!==``||(t=`utf8`),!K.isEncoding(t))throw TypeError(`Unknown encoding: `+t);var n=0|Jn(e,t),r=Vn(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return Gn(e);if(e==null)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)||typeof SharedArrayBuffer<`u`&&(_r(e,SharedArrayBuffer)||e&&_r(e.buffer,SharedArrayBuffer)))return Kn(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);var r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return K.from(r,t,n);var i=function(e){if(K.isBuffer(e)){var t=0|qn(e.length),n=Vn(t);return n.length===0||e.copy(n,0,0,t),n}return e.length===void 0?e.type===`Buffer`&&Array.isArray(e.data)?Gn(e.data):void 0:typeof e.length!=`number`||vr(e.length)?Vn(0):Gn(e)}(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return K.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}function Un(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function Wn(e){return Un(e),Vn(e<0?0:0|qn(e))}function Gn(e){for(var t=e.length<0?0:0|qn(e.length),n=Vn(t),r=0;r=2147483647)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes`);return 0|e}function Jn(e,t){if(K.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||_r(e,ArrayBuffer))return e.byteLength;if(typeof e!=`string`)throw TypeError(`The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type `+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&n===0)return 0;for(var i=!1;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return mr(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return 2*n;case`hex`:return n>>>1;case`base64`:return hr(e).length;default:if(i)return r?-1:mr(e).length;t=(``+t).toLowerCase(),i=!0}}function Yn(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(t>>>=0))return``;for(e||=`utf8`;;)switch(e){case`hex`:return lr(this,t,n);case`utf8`:case`utf-8`:return or(this,t,n);case`ascii`:return sr(this,t,n);case`latin1`:case`binary`:return cr(this,t,n);case`base64`:return ar(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return ur(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}function Xn(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Zn(e,t,n,r,i){if(e.length===0)return-1;if(typeof n==`string`?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),vr(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if(typeof t==`string`&&(t=K.from(t,r)),K.isBuffer(t))return t.length===0?-1:Qn(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Qn(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function Qn(e,t,n,r,i){var a,o=1,s=e.length,c=t.length;if(r!==void 0&&((r=String(r).toLowerCase())===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,n/=2}function l(e,t){return o===1?e[t]:e.readUInt16BE(t*o)}if(i){var u=-1;for(a=n;as&&(n=s-c),a=n;a>=0;a--){for(var d=!0,f=0;fi&&(r=i):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function ar(e,t,n){return t===0&&n===e.length?Ir.fromByteArray(e):Ir.fromByteArray(e.slice(t,n))}function or(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:l>223?3:l>191?2:1;if(i+d<=n)switch(d){case 1:l<128&&(u=l);break;case 2:(192&(a=e[i+1]))==128&&(c=(31&l)<<6|63&a)>127&&(u=c);break;case 3:a=e[i+1],o=e[i+2],(192&a)==128&&(192&o)==128&&(c=(15&l)<<12|(63&a)<<6|63&o)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],(192&a)==128&&(192&o)==128&&(192&s)==128&&(c=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&c<1114112&&(u=c)}u===null?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n=``,r=0;rr)&&(n=r);for(var i=``,a=t;an)throw RangeError(`Trying to access beyond buffer length`)}function J(e,t,n,r,i,a){if(!K.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||te.length)throw RangeError(`Index out of range`)}function dr(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function fr(e,t,n,r,i){return t=+t,n>>>=0,i||dr(e,0,n,4),Lr.write(e,t,n,r,23,4),n+4}function pr(e,t,n,r,i){return t=+t,n>>>=0,i||dr(e,0,n,8),Lr.write(e,t,n,r,52,8),n+8}function mr(e,t){var n;t||=1/0;for(var r=e.length,i=null,a=[],o=0;o55295&&n<57344){if(!i){if(n>56319||o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw Error(`Invalid code point`);if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function hr(e){return Ir.toByteArray(function(e){if((e=(e=e.split(`=`)[0]).trim().replace(zr,``)).length<2)return``;for(;e.length%4!=0;)e+=`=`;return e}(e))}function gr(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function _r(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function vr(e){return e!=e}function yr(e,t){for(var n in e)t[n]=e[n]}function br(e,t,n){return Q(e,t,n)}function xr(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return`utf8`;for(var t;;)switch(e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}(e);if(typeof t!=`string`&&(Gr.isEncoding===Kr||!Kr(e)))throw Error(`Unknown encoding: `+e);return t||e}(e),this.encoding){case`utf16le`:this.text=wr,this.end=Tr,t=4;break;case`utf8`:this.fillLast=Cr,t=4;break;case`base64`:this.text=Er,this.end=Dr,t=3;break;default:this.write=Or,this.end=kr;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Gr.allocUnsafe(t)}function Sr(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function Cr(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if((192&t[0])!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,`�`}}(this,e);return n===void 0?this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length,void 0):n}function wr(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function Tr(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function Er(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-n))}function Dr(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function Or(e){return e.toString(this.encoding)}function kr(e){return e&&e.length?this.write(e):``}var Ar,Y,X,jr,Mr,Nr,Pr,Fr,Z,Ir,Lr,Rr,zr,Br,Vr,Hr,Q,Ur,Wr,Gr,Kr;function qr(){return(qr=t((()=>{for(Ar={byteLength:function(e){var t=zn(e),n=t[0],r=t[1];return 3*(n+r)/4-r},toByteArray:function(e){var t,n,r=zn(e),i=r[0],a=r[1],o=new jr(function(e,t,n){return 3*(t+n)/4-n}(0,i,a)),s=0,c=a>0?i-4:i;for(n=0;n>16&255,o[s++]=t>>8&255,o[s++]=255&t;return a===2&&(t=X[e.charCodeAt(n)]<<2|X[e.charCodeAt(n+1)]>>4,o[s++]=255&t),a===1&&(t=X[e.charCodeAt(n)]<<10|X[e.charCodeAt(n+1)]<<4|X[e.charCodeAt(n+2)]>>2,o[s++]=t>>8&255,o[s++]=255&t),o},fromByteArray:function(e){for(var t,n=e.length,r=n%3,i=[],a=0,o=n-r;ao?o:a+16383));return r===1?(t=e[n-1],i.push(Y[t>>2]+Y[t<<4&63]+`==`)):r===2&&(t=(e[n-2]<<8)+e[n-1],i.push(Y[t>>10]+Y[t>>4&63]+Y[t<<2&63]+`=`)),i.join(``)}},Y=[],X=[],jr=typeof Uint8Array<`u`?Uint8Array:Array,Mr=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,Nr=0,Pr=Mr.length;Nr>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=256*a+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=256*o+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else{if(a===c)return o?NaN:1/0*(p?-1:1);o+=2**r,a-=l}return(p?-1:1)*o*2**(a-r)},write:function(e,t,n,r,i,a){var o,s,c,l=8*a-i-1,u=(1<>1,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=+(t<0||t===0&&1/t<0);for(t=Math.abs(t),isNaN(t)||t===1/0?(s=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),(t+=o+d>=1?f/c:f*2**(1-d))*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=255&s,p+=m,s/=256,i-=8);for(o=o<0;e[n+p]=255&o,p+=m,o/=256,l-=8);e[n+p-m]|=128*h}},Z={},Ir=Ar,Lr=Fr,Rr=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null,Z.Buffer=K,Z.SlowBuffer=function(e){return+e!=e&&(e=0),K.alloc(+e)},Z.INSPECT_MAX_BYTES=50,Z.kMaxLength=2147483647,K.TYPED_ARRAY_SUPPORT=function(){try{var e=/* @__PURE__ */ new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}(),K.TYPED_ARRAY_SUPPORT||typeof console>`u`||typeof console.error!=`function`||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(K.prototype,"parent",{enumerable:!0,get:function(){if(K.isBuffer(this))return this.buffer}}),Object.defineProperty(K.prototype,"offset",{enumerable:!0,get:function(){if(K.isBuffer(this))return this.byteOffset}}),K.poolSize=8192,K.from=function(e,t,n){return Hn(e,t,n)},Object.setPrototypeOf(K.prototype,Uint8Array.prototype),Object.setPrototypeOf(K,Uint8Array),K.alloc=function(e,t,n){return function(e,t,n){return Un(e),e<=0||t===void 0?Vn(e):typeof n==`string`?Vn(e).fill(t,n):Vn(e).fill(t)}(e,t,n)},K.allocUnsafe=function(e){return Wn(e)},K.allocUnsafeSlow=function(e){return Wn(e)},K.isBuffer=function(e){return e!=null&&!0===e._isBuffer&&e!==K.prototype},K.compare=function(e,t){if(_r(e,Uint8Array)&&(e=K.from(e,e.offset,e.byteLength)),_r(t,Uint8Array)&&(t=K.from(t,t.offset,t.byteLength)),!K.isBuffer(e)||!K.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);it&&(e+=` ... `),``},Rr&&(K.prototype[Rr]=K.prototype.inspect),K.prototype.compare=function(e,t,n,r,i){if(_r(e,Uint8Array)&&(e=K.from(e,e.offset,e.byteLength)),!K.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),c=this.slice(r,i),l=e.slice(t,n),u=0;u>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0)}var i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;for(var a=!1;;)switch(r){case`hex`:return $n(this,e,t,n);case`utf8`:case`utf-8`:return er(this,e,t,n);case`ascii`:return tr(this,e,t,n);case`latin1`:case`binary`:return nr(this,e,t,n);case`base64`:return rr(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return ir(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},K.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}},K.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=t===void 0?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||q(e,t,this.length);for(var r=this[e],i=1,a=0;++a>>=0,t>>>=0,n||q(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},K.prototype.readUInt8=function(e,t){return e>>>=0,t||q(e,1,this.length),this[e]},K.prototype.readUInt16LE=function(e,t){return e>>>=0,t||q(e,2,this.length),this[e]|this[e+1]<<8},K.prototype.readUInt16BE=function(e,t){return e>>>=0,t||q(e,2,this.length),this[e]<<8|this[e+1]},K.prototype.readUInt32LE=function(e,t){return e>>>=0,t||q(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},K.prototype.readUInt32BE=function(e,t){return e>>>=0,t||q(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},K.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||q(e,t,this.length);for(var r=this[e],i=1,a=0;++a=(i*=128)&&(r-=2**(8*t)),r},K.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||q(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=2**(8*t)),a},K.prototype.readInt8=function(e,t){return e>>>=0,t||q(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},K.prototype.readInt16LE=function(e,t){e>>>=0,t||q(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},K.prototype.readInt16BE=function(e,t){e>>>=0,t||q(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},K.prototype.readInt32LE=function(e,t){return e>>>=0,t||q(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},K.prototype.readInt32BE=function(e,t){return e>>>=0,t||q(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},K.prototype.readFloatLE=function(e,t){return e>>>=0,t||q(e,4,this.length),Lr.read(this,e,!0,23,4)},K.prototype.readFloatBE=function(e,t){return e>>>=0,t||q(e,4,this.length),Lr.read(this,e,!1,23,4)},K.prototype.readDoubleLE=function(e,t){return e>>>=0,t||q(e,8,this.length),Lr.read(this,e,!0,52,8)},K.prototype.readDoubleBE=function(e,t){return e>>>=0,t||q(e,8,this.length),Lr.read(this,e,!1,52,8)},K.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||J(this,e,t,n,2**(8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a>>=0,n>>>=0,r||J(this,e,t,n,2**(8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},K.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||J(this,e,t,1,255,0),this[t]=255&e,t+1},K.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||J(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},K.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||J(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},K.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||J(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},K.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||J(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},K.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);J(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a>>=0,!r){var i=2**(8*n-1);J(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&s===0&&this[t+a+1]!==0&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},K.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||J(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},K.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||J(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},K.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||J(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},K.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||J(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},K.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||J(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},K.prototype.writeFloatLE=function(e,t,n){return fr(this,e,t,!0,n)},K.prototype.writeFloatBE=function(e,t,n){return fr(this,e,t,!1,n)},K.prototype.writeDoubleLE=function(e,t,n){return pr(this,e,t,!0,n)},K.prototype.writeDoubleBE=function(e,t,n){return pr(this,e,t,!1,n)},K.prototype.copy=function(e,t,n,r){if(!K.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,r||r===0||(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t=0;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},K.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!K.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){var i=e.charCodeAt(0);(r===`utf8`&&i<128||r===`latin1`)&&(e=i)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length>>=0,n=n===void 0?this.length:n>>>0,e||=0,typeof e==`number`)for(a=t;a=0?(i>0&&(e.lastNeed=i-1),i):--r=0?(i>0&&(e.lastNeed=i-2),i):--r=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)},xr.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length},Wr.StringDecoder,Wr.StringDecoder})))()}function Jr(){if(mi)return pi;mi=!0,pi.byteLength=s,pi.toByteArray=l,pi.fromByteArray=f;for(var e=[],t=[],n=typeof Uint8Array<`u`?Uint8Array:Array,r=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,i=0,a=r.length;i0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function s(e){var t=o(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function c(e,t,n){return 3*(t+n)/4-n}function l(e){for(var r,i=o(e),a=i[0],s=i[1],l=new n(c(e,a,s)),u=0,d=s>0?a-4:a,f=0;f>16&255,l[u++]=r>>8&255,l[u++]=255&r;return s===2&&(r=t[e.charCodeAt(f)]<<2|t[e.charCodeAt(f+1)]>>4,l[u++]=255&r),s===1&&(r=t[e.charCodeAt(f)]<<10|t[e.charCodeAt(f+1)]<<4|t[e.charCodeAt(f+2)]>>2,l[u++]=r>>8&255,l[u++]=255&r),l}function u(t){return e[t>>18&63]+e[t>>12&63]+e[t>>6&63]+e[63&t]}function d(e,t,n){for(var r,i=[],a=t;ac?c:s+o));return i===1?(n=t[r-1],a.push(e[n>>2]+e[n<<4&63]+`==`)):i===2&&(n=(t[r-2]<<8)+t[r-1],a.push(e[n>>10]+e[n>>4&63]+e[n<<2&63]+`=`)),a.join(``)}return pi}function Yr(){return gi||(gi=!0,hi.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,c=(1<>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=256*a+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=256*o+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else{if(a===c)return o?NaN:1/0*(p?-1:1);o+=2**r,a-=l}return(p?-1:1)*o*2**(a-r)},hi.write=function(e,t,n,r,i,a){var o,s,c,l=8*a-i-1,u=(1<>1,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=+(t<0||t===0&&1/t<0);for(t=Math.abs(t),isNaN(t)||t===1/0?(s=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),t+=o+d>=1?f/c:f*2**(1-d),t*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=255&s,p+=m,s/=256,i-=8);for(o=o<0;e[n+p]=255&o,p+=m,o/=256,l-=8);e[n+p-m]|=128*h}),hi}function Xr(){if(vi)return _i;vi=!0;let e=Jr(),t=Yr(),n=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;_i.Buffer=o,_i.SlowBuffer=_,_i.INSPECT_MAX_BYTES=50;let r=2147483647;_i.kMaxLength=r,o.TYPED_ARRAY_SUPPORT=i(),o.TYPED_ARRAY_SUPPORT||typeof console>`u`||typeof console.error!=`function`||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.");function i(){try{let e=/* @__PURE__ */ new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function a(e){if(e>r)throw RangeError(`The value "`+e+`" is invalid for option "size"`);let t=new Uint8Array(e);return Object.setPrototypeOf(t,o.prototype),t}function o(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return u(e)}return s(e,t,n)}o.poolSize=8192;function s(e,t,n){if(typeof e==`string`)return d(e,t);if(ArrayBuffer.isView(e))return p(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(M(e,ArrayBuffer)||e&&M(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(M(e,SharedArrayBuffer)||e&&M(e.buffer,SharedArrayBuffer)))return m(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);let r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return o.from(r,t,n);let i=h(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return o.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}o.from=function(e,t,n){return s(e,t,n)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function c(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function l(e,t,n){return c(e),e<=0||t===void 0?a(e):typeof n==`string`?a(e).fill(t,n):a(e).fill(t)}o.alloc=function(e,t,n){return l(e,t,n)};function u(e){return c(e),a(e<0?0:0|g(e))}o.allocUnsafe=function(e){return u(e)},o.allocUnsafeSlow=function(e){return u(e)};function d(e,t){if(typeof t==`string`&&t!==``||(t=`utf8`),!o.isEncoding(t))throw TypeError(`Unknown encoding: `+t);let n=0|ee(e,t),r=a(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function f(e){let t=e.length<0?0:0|g(e.length),n=a(t);for(let r=0;r=r)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+r.toString(16)+` bytes`);return 0|e}function _(e){return+e!=e&&(e=0),o.alloc(+e)}o.isBuffer=function(e){return e!=null&&!0===e._isBuffer&&e!==o.prototype},o.compare=function(e,t){if(M(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),M(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(e)||!o.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,a=Math.min(n,r);ir.length?(o.isBuffer(t)||(t=o.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!o.isBuffer(t))throw TypeError(`"list" argument must be an Array of Buffers`);t.copy(r,i)}i+=t.length}return r};function ee(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||M(e,ArrayBuffer))return e.byteLength;if(typeof e!=`string`)throw TypeError(`The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type `+typeof e);let n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&n===0)return 0;let i=!1;for(;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return be(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return 2*n;case`hex`:return n>>>1;case`base64`:return Ce(e).length;default:if(i)return r?-1:be(e).length;t=(``+t).toLowerCase(),i=!0}}o.byteLength=ee;function te(e,t,n){let r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return le(this,t,n);case`utf8`:case`utf-8`:return w(this,t,n);case`ascii`:return se(this,t,n);case`latin1`:case`binary`:return ce(this,t,n);case`base64`:return C(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return ue(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}o.prototype._isBuffer=!0;function v(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}o.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(let t=0;tt&&(e+=` ... `),``},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(e,t,n,r,i){if(M(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;let a=i-r,s=n-t,c=Math.min(a,s),l=this.slice(r,i),u=e.slice(t,n);for(let e=0;e2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,Te(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if(typeof t==`string`&&(t=o.from(t,r)),o.isBuffer(t))return t.length===0?-1:b(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function b(e,t,n,r,i){let a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}let l;if(i){let r=-1;for(l=n;lo&&(n=o-s),l=n;l>=0;l--){let n=!0;for(let r=0;ri&&(r=i)):r=i;let a=t.length;r>a/2&&(r=a/2);let o=0;for(;o>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0)}let i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;let a=!1;for(;;)switch(r){case`hex`:return ne(this,e,t,n);case`utf8`:case`utf-8`:return x(this,e,t,n);case`ascii`:case`latin1`:case`binary`:return S(this,e,t,n);case`base64`:return re(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return ie(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},o.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function C(t,n,r){return n===0&&r===t.length?e.fromByteArray(t):e.fromByteArray(t.slice(n,r))}function w(e,t,n){n=Math.min(e.length,n);let r=[],i=t;for(;i239?4:t>223?3:t>191?2:1;if(i+o<=n){let n,r,s,c;switch(o){case 1:t<128&&(a=t);break;case 2:n=e[i+1],(192&n)==128&&(c=(31&t)<<6|63&n,c>127&&(a=c));break;case 3:n=e[i+1],r=e[i+2],(192&n)==128&&(192&r)==128&&(c=(15&t)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(a=c));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],(192&n)==128&&(192&r)==128&&(192&s)==128&&(c=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,c>65535&&c<1114112&&(a=c))}}a===null?(a=65533,o=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=o}return oe(r)}let ae=4096;function oe(e){let t=e.length;if(t<=ae)return String.fromCharCode.apply(String,e);let n=``,r=0;for(;rr)&&(n=r);let i=``;for(let r=t;rn&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),tn)throw RangeError(`Trying to access beyond buffer length`)}o.prototype.readUintLE=o.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||T(e,t,this.length);let r=this[e],i=1,a=0;for(;++a>>=0,t>>>=0,n||T(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},o.prototype.readUint8=o.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readBigUInt64LE=N((function(e){e>>>=0,j(e,`offset`);let t=this[e],n=this[e+7];t!==void 0&&n!==void 0||_e(e,this.length-8);let r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<>>=0,j(e,`offset`);let t=this[e],n=this[e+7];t!==void 0&&n!==void 0||_e(e,this.length-8);let r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<>>=0,t>>>=0,n||T(e,t,this.length);let r=this[e],i=1,a=0;for(;++a=i&&(r-=2**(8*t)),r},o.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||T(e,t,this.length);let r=t,i=1,a=this[e+--r];for(;r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},o.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);let n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);let n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readBigInt64LE=N((function(e){e>>>=0,j(e,`offset`);let t=this[e],n=this[e+7];t!==void 0&&n!==void 0||_e(e,this.length-8);let r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<>>=0,j(e,`offset`);let t=this[e],n=this[e+7];t!==void 0&&n!==void 0||_e(e,this.length-8);let r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<>>=0,n||T(e,4,this.length),t.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,n){return e>>>=0,n||T(e,4,this.length),t.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,n){return e>>>=0,n||T(e,8,this.length),t.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,n){return e>>>=0,n||T(e,8,this.length),t.read(this,e,!1,52,8)};function E(e,t,n,r,i,a){if(!o.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||te.length)throw RangeError(`Index out of range`)}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;E(this,e,t,n,r,0)}let i=1,a=0;for(this[t]=255&e;++a>>=0,n>>>=0,!r){let r=2**(8*n)-1;E(this,e,t,n,r,0)}let i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},o.prototype.writeUint8=o.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,1,255,0),this[t]=255&e,t+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||E(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},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||E(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};function de(e,t,n,r,i){ge(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function D(e,t,n,r,i){ge(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}o.prototype.writeBigUInt64LE=N((function(e,t=0){return de(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))})),o.prototype.writeBigUInt64BE=N((function(e,t=0){return D(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))})),o.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);E(this,e,t,n,r-1,-r)}let i=0,a=1,o=0;for(this[t]=255&e;++i>>=0,!r){let r=2**(8*n-1);E(this,e,t,n,r-1,-r)}let i=n-1,a=1,o=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&o===0&&this[t+i+1]!==0&&(o=1),this[t+i]=(e/a|0)-o&255;return t+n},o.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||E(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||E(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},o.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||E(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},o.prototype.writeBigInt64LE=N((function(e,t=0){return de(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))})),o.prototype.writeBigInt64BE=N((function(e,t=0){return D(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))}));function fe(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function pe(e,n,r,i,a){return n=+n,r>>>=0,a||fe(e,n,r,4),t.write(e,n,r,i,23,4),r+4}o.prototype.writeFloatLE=function(e,t,n){return pe(this,e,t,!0,n)},o.prototype.writeFloatBE=function(e,t,n){return pe(this,e,t,!1,n)};function me(e,n,r,i,a){return n=+n,r>>>=0,a||fe(e,n,r,8),t.write(e,n,r,i,52,8),r+8}o.prototype.writeDoubleLE=function(e,t,n){return me(this,e,t,!0,n)},o.prototype.writeDoubleBE=function(e,t,n){return me(this,e,t,!1,n)},o.prototype.copy=function(e,t,n,r){if(!o.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,r||r===0||(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t>>=0,n=n===void 0?this.length:n>>>0,e||=0;let i;if(typeof e==`number`)for(i=t;i2**32?i=he(String(n)):typeof n==`bigint`&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=he(i)),i+=`n`),r+=` It must be ${t}. Received ${i}`,r}),RangeError);function he(e){let t=``,n=e.length,r=+(e[0]===`-`);for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function A(e,t,n){j(t,`offset`),e[t]!==void 0&&e[t+n]!==void 0||_e(t,e.length-(n+1))}function ge(e,t,n,r,i,a){if(e>n||e3?t===0||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(a+1)}${r}`:`>= -(2${r} ** ${8*(a+1)-1}${r}) and < 2 ** ${8*(a+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new O.ERR_OUT_OF_RANGE(`value`,i,e)}A(r,i,a)}function j(e,t){if(typeof e!=`number`)throw new O.ERR_INVALID_ARG_TYPE(t,`number`,e)}function _e(e,t,n){throw Math.floor(e)===e?t<0?new O.ERR_BUFFER_OUT_OF_BOUNDS:new O.ERR_OUT_OF_RANGE(n||`offset`,`>= ${+!!n} and <= ${t}`,e):(j(e,n),new O.ERR_OUT_OF_RANGE(n||`offset`,`an integer`,e))}let ve=/[^+/0-9A-Za-z-_]/g;function ye(e){if(e=e.split(`=`)[0],e=e.trim().replace(ve,``),e.length<2)return``;for(;e.length%4!=0;)e+=`=`;return e}function be(e,t){t||=1/0;let n,r=e.length,i=null,a=[];for(let o=0;o55295&&n<57344){if(!i){if(n>56319||o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw Error(`Invalid code point`);if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function xe(e){let t=[];for(let n=0;n>8,i=n%256,a.push(i),a.push(r);return a}function Ce(t){return e.toByteArray(ye(t))}function we(e,t,n,r){let i=0;for(;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function M(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Te(e){return e!==e}let Ee=function(){let e=`0123456789abcdef`,t=Array(256);for(let n=0;n<16;++n){let r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function N(e){return typeof BigInt>`u`?De:e}function De(){throw Error(`BigInt not supported`)}return _i}function Zr(){return xi||(xi=!0,bi=typeof Object.create==`function`?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}),bi}function Qr(){return Ci||(Ci=!0,Si=P.EventEmitter),Si}function $r(){if(Ti)return wi;Ti=!0;function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var r=1;r0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:`unshift`,value:function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length}},{key:`shift`,value:function(){if(this.length!==0){var e=this.head.data;return this.head=this.length===1?this.tail=null:this.head.next,--this.length,e}}},{key:`clear`,value:function(){this.head=this.tail=null,this.length=0}},{key:`join`,value:function(e){if(this.length===0)return``;for(var t=this.head,n=``+t.data;t=t.next;)n+=e+t.data;return n}},{key:`concat`,value:function(e){if(this.length===0)return o.alloc(0);for(var t=o.allocUnsafe(e>>>0),n=this.head,r=0;n;)l(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:`consume`,value:function(e,t){var n;return ei.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),e-=a,e===0){a===i.length?(++n,this.head=t.next?t.next:this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:`_getBuffer`,value:function(e){var t=o.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),e-=a,e===0){a===i.length?(++r,this.head=n.next?n.next:this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:c,value:function(e,n){return s(this,t({},n,{depth:0,customInspect:!1}))}}]),e}(),wi}function ei(){if(Di)return Ei;Di=!0;var e=G;function t(t,i){var o=this,s=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return s||c?(i?i(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(a,this,t)):e.nextTick(a,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!i&&t?o._writableState?o._writableState.errorEmitted?e.nextTick(r,o):(o._writableState.errorEmitted=!0,e.nextTick(n,o,t)):e.nextTick(n,o,t):i?(e.nextTick(r,o),i(t)):e.nextTick(r,o)})),this)}function n(e,t){a(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit(`close`)}function i(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(e,t){e.emit(`error`,t)}function o(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit(`error`,t)}return Ei={destroy:t,undestroy:i,errorOrDestroy:o},Ei}function ti(){if(ki)return Oi;ki=!0;let e={};function t(t,n,r){r||=Error;function i(e,t,r){return typeof n==`string`?n:n(e,t,r)}class a extends r{constructor(e,t,n){super(i(e,t,n))}}a.prototype.name=r.name,a.prototype.code=t,e[t]=a}function n(e,t){if(Array.isArray(e)){let n=e.length;return e=e.map((e=>String(e))),n>2?`one of ${t} ${e.slice(0,n-1).join(`, `)}, or `+e[n-1]:n===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}return`of ${t} ${String(e)}`}function r(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function i(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function a(e,t,n){return typeof n!=`number`&&(n=0),!(n+t.length>e.length)&&e.indexOf(t,n)!==-1}return t(`ERR_INVALID_OPT_VALUE`,(function(e,t){return`The value "`+t+`" is invalid for option "`+e+`"`}),TypeError),t(`ERR_INVALID_ARG_TYPE`,(function(e,t,o){let s;typeof t==`string`&&r(t,`not `)?(s=`must not be`,t=t.replace(/^not /,``)):s=`must be`;let c;return c=i(e,` argument`)?`The ${e} ${s} ${n(t,`type`)}`:`The "${e}" ${a(e,`.`)?`property`:`argument`} ${s} ${n(t,`type`)}`,c+=`. Received type `+typeof o,c}),TypeError),t(`ERR_STREAM_PUSH_AFTER_EOF`,`stream.push() after EOF`),t(`ERR_METHOD_NOT_IMPLEMENTED`,(function(e){return`The `+e+` method is not implemented`})),t(`ERR_STREAM_PREMATURE_CLOSE`,`Premature close`),t(`ERR_STREAM_DESTROYED`,(function(e){return`Cannot call `+e+` after a stream was destroyed`})),t(`ERR_MULTIPLE_CALLBACK`,`Callback called multiple times`),t(`ERR_STREAM_CANNOT_PIPE`,`Cannot pipe, not readable`),t(`ERR_STREAM_WRITE_AFTER_END`,`write after end`),t(`ERR_STREAM_NULL_VALUES`,`May not write null values to stream`,TypeError),t(`ERR_UNKNOWN_ENCODING`,(function(e){return`Unknown encoding: `+e}),TypeError),t(`ERR_STREAM_UNSHIFT_AFTER_END_EVENT`,`stream.unshift() after end event`),Oi.codes=e,Oi}function ni(){if(ji)return Ai;ji=!0;var e=ti().codes.ERR_INVALID_OPT_VALUE;function t(e,t,n){return e.highWaterMark==null?t?e[n]:null:e.highWaterMark}function n(n,r,i,a){var o=t(r,a,i);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new e(a?i:`highWaterMark`,o);return Math.floor(o)}return n.objectMode?16:16384}return Ai={getHighWaterMark:n},Ai}function ri(){if(Ni)return Mi;Ni=!0,Mi=e;function e(e,n){if(t(`noDeprecation`))return e;var r=!1;function i(){if(!r){if(t(`throwDeprecation`))throw Error(n);t(`traceDeprecation`)?console.trace(n):console.warn(n),r=!0}return e.apply(this||Pi,arguments)}return i}function t(e){try{if(!Pi.localStorage)return!1}catch{return!1}var t=Pi.localStorage[e];return t!=null&&String(t).toLowerCase()===`true`}return Mi}function ii(){if(Ii)return Fi;Ii=!0;var e=G;Fi=x;function t(e){var t=this;this.next=null,this.entry=null,this.finish=function(){pe(t,e)}}var n;x.WritableState=b;var r={deprecate:ri()},i=Qr(),a=yi.Buffer,o=Li.Uint8Array||function(){};function s(e){return a.from(e)}function c(e){return a.isBuffer(e)||e instanceof o}var l=ei(),u=ni().getHighWaterMark,d=ti().codes,f=d.ERR_INVALID_ARG_TYPE,p=d.ERR_METHOD_NOT_IMPLEMENTED,m=d.ERR_MULTIPLE_CALLBACK,h=d.ERR_STREAM_CANNOT_PIPE,g=d.ERR_STREAM_DESTROYED,_=d.ERR_STREAM_NULL_VALUES,ee=d.ERR_STREAM_WRITE_AFTER_END,te=d.ERR_UNKNOWN_ENCODING,v=l.errorOrDestroy;Zr()(x,i);function y(){}function b(e,r,i){n||=ai(),e||={},typeof i!=`boolean`&&(i=r instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=u(this,e,`writableHighWaterMark`,i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){se(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}b.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},(function(){try{Object.defineProperty(b.prototype,"buffer",{get:r.deprecate((function(){return this.getBuffer()}),`_writableState.buffer is deprecated. Use _writableState.getBuffer instead.`,`DEP0003`)})}catch{}})();var ne;typeof Symbol==`function`&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==`function`?(ne=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(e){return!!ne.call(this,e)||this===x&&e&&e._writableState instanceof b}})):ne=function(e){return e instanceof this};function x(e){n||=ai();var t=this instanceof n;if(!t&&!ne.call(x,this))return new x(e);this._writableState=new b(e,this,t),this.writable=!0,e&&(typeof e.write==`function`&&(this._write=e.write),typeof e.writev==`function`&&(this._writev=e.writev),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.final==`function`&&(this._final=e.final)),i.call(this)}x.prototype.pipe=function(){v(this,new h)};function S(t,n){var r=new ee;v(t,r),e.nextTick(n,r)}function re(t,n,r,i){var a;return r===null?a=new _:typeof r==`string`||n.objectMode||(a=new f(`chunk`,[`string`,`Buffer`],r)),!a||(v(t,a),e.nextTick(i,a),!1)}x.prototype.write=function(e,t,n){var r=this._writableState,i=!1,o=!r.objectMode&&c(e);return o&&!a.isBuffer(e)&&(e=s(e)),typeof t==`function`&&(n=t,t=null),o?t=`buffer`:t||=r.defaultEncoding,typeof n!=`function`&&(n=y),r.ending?S(this,n):(o||re(this,r,e,n))&&(r.pendingcb++,i=C(this,r,o,e,t,n)),i},x.prototype.cork=function(){this._writableState.corked++},x.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||ue(this,e))},x.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=e.toLowerCase()),!([`hex`,`utf8`,`utf-8`,`ascii`,`binary`,`base64`,`ucs2`,`ucs-2`,`utf16le`,`utf-16le`,`raw`].indexOf((e+``).toLowerCase())>-1))throw new te(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function ie(e,t,n){return e.objectMode||!1===e.decodeStrings||typeof t!=`string`||(t=a.from(t,n)),t}Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function C(e,t,n,r,i,a){if(!n){var o=ie(t,r,i);r!==o&&(n=!0,i=`buffer`,r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length0){if(typeof t==`string`||s.objectMode||Object.getPrototypeOf(t)===i.prototype||(t=o(t)),r)s.endEmitted?y(e,new _):ie(e,s,t,!0);else if(s.ended)y(e,new h);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||t.length!==0?ie(e,s,t,!1):ue(e,s)):ie(e,s,t,!1)}}else r||(s.reading=!1,ue(e,s))}return!s.ended&&(s.length=w?e=w:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function oe(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e===e?(e>t.highWaterMark&&(t.highWaterMark=ae(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}S.prototype.read=function(e){l(`read`,e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark===0?t.length>0:t.length>=t.highWaterMark)||t.ended))return l(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?k(this):ce(this),null;if(e=oe(e,t),e===0&&t.ended)return t.length===0&&k(this),null;var r=t.needReadable;l(`need readable`,r),(t.length===0||t.length-e0?O(e,t):null;return i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&k(this)),i!==null&&this.emit(`data`,i),i};function se(e,t){if(l(`onEofChunk`),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?ce(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,le(e)))}}function ce(t){var n=t._readableState;l(`emitReadable`,n.needReadable,n.emittedReadable),n.needReadable=!1,n.emittedReadable||(l(`emitReadable`,n.flowing),n.emittedReadable=!0,e.nextTick(le,t))}function le(e){var t=e._readableState;l(`emitReadable_`,t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit(`readable`),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,me(e)}function ue(t,n){n.readingMore||(n.readingMore=!0,e.nextTick(T,t,n))}function T(e,t){for(;!t.reading&&!t.ended&&(t.length1&&A(a.pipes,t)!==-1)&&!d&&(l(`false write response, pause`,a.awaitDrain),a.awaitDrain++),i.pause())}function m(e){l(`onerror`,e),_(),t.removeListener(`error`,m),n(t,`error`)===0&&y(t,e)}ne(t,`error`,m);function h(){t.removeListener(`finish`,g),_()}t.once(`close`,h);function g(){l(`onfinish`),t.removeListener(`close`,h),_()}t.once(`finish`,g);function _(){l(`unpipe`),i.unpipe(t)}return t.emit(`pipe`,i),a.flowing||(l(`pipe resume`),i.resume()),t};function E(e){return function(){var t=e._readableState;l(`pipeOnDrain`,t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&n(e,`data`)&&(t.flowing=!0,me(e))}}S.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes||(e||=t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(`unpipe`,this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,!1!==a.flowing&&this.resume()):t===`readable`&&!a.endEmitted&&!a.readableListening&&(a.readableListening=a.needReadable=!0,a.flowing=!1,a.emittedReadable=!1,l(`on readable`,a.length,a.reading),a.length?ce(this):a.reading||e.nextTick(D,this)),i},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(t,n){var i=r.prototype.removeListener.call(this,t,n);return t===`readable`&&e.nextTick(de,this),i},S.prototype.removeAllListeners=function(t){var n=r.prototype.removeAllListeners.apply(this,arguments);return t!==`readable`&&t!==void 0||e.nextTick(de,this),n};function de(e){var t=e._readableState;t.readableListening=e.listenerCount(`readable`)>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount(`data`)>0&&e.resume()}function D(e){l(`readable nexttick read 0`),e.read(0)}S.prototype.resume=function(){var e=this._readableState;return e.flowing||(l(`resume`),e.flowing=!e.readableListening,fe(this,e)),e.paused=!1,this};function fe(t,n){n.resumeScheduled||(n.resumeScheduled=!0,e.nextTick(pe,t,n))}function pe(e,t){l(`resume`,t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(`resume`),me(e),t.flowing&&!t.reading&&e.read(0)}S.prototype.pause=function(){return l(`call pause flowing=%j`,this._readableState.flowing),!1!==this._readableState.flowing&&(l(`pause`),this._readableState.flowing=!1,this.emit(`pause`)),this._readableState.paused=!0,this};function me(e){var t=e._readableState;for(l(`flow`,t.flowing);t.flowing&&e.read()!==null;);}S.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on(`end`,(function(){if(l(`wrapped end`),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on(`data`,(function(i){l(`wrapped data`),n.decoder&&(i=n.decoder.write(i)),(!n.objectMode||i!=null)&&(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)this[i]===void 0&&typeof e[i]==`function`&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a=t.length?(n=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function k(t){var n=t._readableState;l(`endReadable`,n.endEmitted),n.endEmitted||(n.ended=!0,e.nextTick(he,n,t))}function he(e,t){if(l(`endReadableNT`,e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit(`end`),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}typeof Symbol==`function`&&(S.from=function(e,t){return v===void 0&&(v=ci()),v(S,e,t)});function A(e,t){for(var n=0,r=e.length;n0,(function(e){n||=e,e&&i.forEach(c),o||(i.forEach(c),t(n))}))}));return e.reduce(l)}return $i=d,$i}var pi,mi,hi,gi,_i,vi,yi,bi,xi,Si,Ci,wi,Ti,Ei,Di,Oi,ki,Ai,ji,Mi,Ni,Pi,Fi,Ii,Li,Ri,zi,Bi,Vi,Hi,Ui,Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi,Qi,$i,ea;function ta(){return(ta=t((()=>{n(),ke(),Nn(),Mn(),Rn(),qr(),pi={},mi=!1,hi={},gi=!1,_i={},vi=!1,yi=Xr(),yi.Buffer,yi.INSPECT_MAX_BYTES,yi.kMaxLength,bi={},xi=!1,Si={},Ci=!1,wi={},Ti=!1,Ei={},Di=!1,Oi={},ki=!1,Ai={},ji=!1,Mi={},Ni=!1,Pi=typeof globalThis<`u`?globalThis:typeof self<`u`?self:p,Fi={},Ii=!1,Li=typeof globalThis<`u`?globalThis:typeof self<`u`?self:p,Ri={},zi=!1,Bi={},Vi=!1,Hi={},Ui=!1,Wi={},Gi=!1,Ki={},qi=!1,Ji=typeof globalThis<`u`?globalThis:typeof self<`u`?self:p,Yi={},Xi=!1,Zi={},Qi=!1,$i={},ea=!1})))()}function na(){if(ia)return ra;ia=!0,ra=t;var e=P.EventEmitter;Zr()(t,e),t.Readable=li(),t.Writable=ii(),t.Duplex=ai(),t.Transform=ui(),t.PassThrough=di(),t.finished=oi(),t.pipeline=fi(),t.Stream=t;function t(){e.call(this||aa)}return t.prototype.pipe=function(t,n){var r=this||aa;function i(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}r.on(`data`,i);function a(){r.readable&&r.resume&&r.resume()}t.on(`drain`,a),!t._isStdio&&(!n||!1!==n.end)&&(r.on(`end`,s),r.on(`close`,c));var o=!1;function s(){o||(o=!0,t.end())}function c(){o||(o=!0,typeof t.destroy==`function`&&t.destroy())}function l(t){if(u(),e.listenerCount(this||aa,`error`)===0)throw t}r.on(`error`,l),t.on(`error`,l);function u(){r.removeListener(`data`,i),t.removeListener(`drain`,a),r.removeListener(`end`,s),r.removeListener(`close`,c),r.removeListener(`error`,l),t.removeListener(`error`,l),r.removeListener(`end`,u),r.removeListener(`close`,u),t.removeListener(`close`,u)}return r.on(`end`,u),r.on(`close`,u),t.on(`close`,u),t.emit(`pipe`,r),t},ra}var ra,ia,aa,$;function oa(){return(oa=t((()=>{n(),Ie(),ta(),ke(),ra={},ia=!1,aa=typeof globalThis<`u`?globalThis:typeof self<`u`?self:p,$=na()})))()}var sa=/* @__PURE__ */ e({TextDecoder:()=>Pa,TextEncoder:()=>Na,_extend:()=>ca,callbackify:()=>la,debuglog:()=>ua,default:()=>U,deprecate:()=>da,format:()=>fa,inherits:()=>pa,inspect:()=>ma,isArray:()=>ha,isBoolean:()=>ga,isBuffer:()=>_a,isDate:()=>va,isError:()=>ya,isFunction:()=>ba,isNull:()=>xa,isNullOrUndefined:()=>Sa,isNumber:()=>Ca,isObject:()=>wa,isPrimitive:()=>Ta,isRegExp:()=>Ea,isString:()=>Da,isSymbol:()=>Oa,isUndefined:()=>ka,log:()=>Aa,promisify:()=>ja,types:()=>Ma}),ca,la,ua,da,fa,pa,ma,ha,ga,_a,va,ya,ba,xa,Sa,Ca,wa,Ta,Ea,Da,Oa,ka,Aa,ja,Ma,Na,Pa;function Fa(){return(Fa=t((()=>{Nn(),Mn(),Ze(),ca=U._extend,la=U.callbackify,ua=U.debuglog,da=U.deprecate,fa=U.format,pa=U.inherits,ma=U.inspect,ha=U.isArray,ga=U.isBoolean,_a=U.isBuffer,va=U.isDate,ya=U.isError,ba=U.isFunction,xa=U.isNull,Sa=U.isNullOrUndefined,Ca=U.isNumber,wa=U.isObject,Ta=U.isPrimitive,Ea=U.isRegExp,Da=U.isString,Oa=U.isSymbol,ka=U.isUndefined,Aa=U.log,ja=U.promisify,Ma=U.types,Na=U.TextEncoder=globalThis.TextEncoder,Pa=U.TextDecoder=globalThis.TextDecoder})))()}var Ia=/* @__PURE__ */ e({Duplex:()=>za,PassThrough:()=>Va,Readable:()=>La,Stream:()=>Wa,Transform:()=>Ba,Writable:()=>Ra,default:()=>$,finished:()=>Ha,pipeline:()=>Ua,promises:()=>Ga}),La,Ra,za,Ba,Va,Ha,Ua,Wa,Ga;function Ka(){return(Ka=t((()=>{oa(),Fa(),Ie(),ke(),ta(),Nn(),Mn(),Ze(),Rn(),qr(),La=$.Readable,La.wrap=function(e,t){return t=Object.assign({objectMode:e.readableObjectMode!=null||e.objectMode!=null||!0},t),t.destroy=function(t,n){e.destroy(t),n(t)},new La(t).wrap(e)},Ra=$.Writable,za=$.Duplex,Ba=$.Transform,Va=$.PassThrough,Ha=$.finished,Ua=$.pipeline,Wa=$.Stream,Ga={finished:ja($.finished),pipeline:ja($.pipeline)}})))()}function qa(e,t){return t.some((([t,n])=>t<=e&&e<=n))}function Ja(e){return typeof e==`string`&&qa(e.charCodeAt(0),[[12352,12447],[19968,40959],[44032,55203],[131072,191456]])}function Ya(e){return` \r `.includes(e)}function Xa(e){return typeof e==`string`&&qa(e.charCodeAt(0),[[33,47],[58,64],[91,96],[123,126],[12288,12351],[65280,65519]])}function Za(e,t={}){let n=0,r=0,i=e.length-1,a=t.wordsPerMinute||200,o=t.wordBound||Ya;for(;o(e[r]);)r++;for(;o(e[i]);)i--;let s=`${e}\n`;for(let e=r;e<=i;e++)if((Ja(s[e])||!o(s[e])&&(o(s[e+1])||Ja(s[e+1])))&&n++,Ja(s[e]))for(;e<=i&&(Xa(s[e+1])||o(s[e+1]));)e++;let c=n/a,l=Math.round(60*c*1e3);return{text:Math.ceil(c.toFixed(2))+` min read`,minutes:c,time:l,words:n}}function Qa(e){if(!(this instanceof Qa))return new Qa(e);ao.call(this,{objectMode:!0}),this.options=e||{},this.stats={minutes:0,time:0,words:0}}var $a,eo,to,no,ro,io,ao,oo,so,co,lo;function uo(){return(uo=t((()=>{Ka(),Fa(),$a={},$a=Za,eo=$a,to=`default`in Ia?$:Ia,no=`default`in sa?U:sa,ro={},io=eo,ao=to.Transform,oo=no,oo.inherits(Qa,ao),Qa.prototype._transform=function(e,t,n){let r=io(e.toString(t),this.options);this.stats.minutes+=r.minutes,this.stats.time+=r.time,this.stats.words+=r.words,n()},Qa.prototype._flush=function(e){this.stats.text=Math.ceil(this.stats.minutes.toFixed(2))+` min read`,this.push(this.stats),e()},ro=Qa,so=ro,co={},co.default=co=eo,co.readingTimeStream=so,lo=co,co.readingTimeStream})))()}function fo(e){return e?typeof e==`string`?[e]:Array.isArray(e)?e.flatMap(fo):e.props&&e.props.children?(Array.isArray(e.props.children)?e.props.children:[e.props.children]).flatMap(fo):[]:[]}function po(e){let t=!1,n=[];e.formatted?(n=fo(e.formattedText),t=!(!e.formattedText||n.length==0)):(n.push(e.plainText),t=e.plainText!==``);let r=lo(n.join(` `),{wordsPerMinute:e.wpm});return/*#__PURE__*/ u(`p`,{style:{color:e.fontColor,userSelect:e.textSelect?`auto`:`none`,margin:0,...e.font},children:t?`${e.prefix} ${Math.max(Math.round(r.minutes),1)} ${e.suffix}`:`No text content connected.`})}function mo(){return(mo=t((()=>{f(),b(),uo(),po.displayName=`Article Read Time`,v(po,{formatted:{type:C.Boolean,defaultValue:!0},formattedText:{type:C.RichText,title:`Text`,hidden(e){return!e.formatted}},plainText:{type:C.String,displayTextArea:!0,title:`Text`,hidden(e){return e.formatted}},wpm:{type:C.Number,defaultValue:200,step:1,min:1,title:`WPM`,description:`Words per minute`},fontColor:{type:C.Color,defaultValue:`#000`},font:{type:`font`,controls:`extended`,defaultFontType:`sans-serif`,defaultValue:{fontSize:14,lineHeight:1.4}},prefix:{type:C.String},suffix:{type:C.String,defaultValue:` min read`},textSelect:{type:C.Boolean,defaultValue:!0}})})))()}export{ge as i,mo as n,A as r,po as t}; //# sourceMappingURL=ArticleReadTime.CMUzYEOy.mjs.map