@botpress/webchat 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +7 -7
- package/dist/hooks/useWebchatStore.d.ts +1 -1
- package/dist/{index-d69c3138.js → index-37291b06.js} +26 -25
- package/dist/{index-9fb68c18.js → index-71c4fbd6.js} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +19 -18
- package/dist/index.umd.cjs +17 -17
- package/package.json +1 -1
package/dist/index.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(bt,C){typeof exports=="object"&&typeof module<"u"?C(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],C):(bt=typeof globalThis<"u"?globalThis:bt||self,C(bt.Webchat={},bt.React,bt.ReactDOM))})(this,function(bt,C,Yi){"use strict";var mRe=Object.defineProperty;var yRe=(bt,C,Yi)=>C in bt?mRe(bt,C,{enumerable:!0,configurable:!0,writable:!0,value:Yi}):bt[C]=Yi;var R=(bt,C,Yi)=>(yRe(bt,typeof C!="symbol"?C+"":C,Yi),Yi);function Lx(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}function TF(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const z=Lx(C),$F=Lx(Yi);var se=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Oo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Jf(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var tg={exports:{}},Ll={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -24,7 +24,7 @@ Check the render method of \``+Z+"`."}return""}}function He(Z){{if(Z!==void 0){v
|
|
|
24
24
|
|
|
25
25
|
Check your code at `+Ce+":"+ze+"."}return""}}var Xe={};function Re(Z){{var Ce=je();if(!Ce){var ze=typeof Z=="string"?Z:Z.displayName||Z.name;ze&&(Ce=`
|
|
26
26
|
|
|
27
|
-
Check the top-level render call using <`+ze+">.")}return Ce}}function We(Z,Ce){{if(!Z._store||Z._store.validated||Z.key!=null)return;Z._store.validated=!0;var ze=Re(Ce);if(Xe[ze])return;Xe[ze]=!0;var yt="";Z&&Z._owner&&Z._owner!==on.current&&(yt=" It was passed a child from "+Q(Z._owner.type)+"."),Mn(Z),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ze,yt),Mn(null)}}function bt(Z,Ce){{if(typeof Z!="object")return;if(ot(Z))for(var ze=0;ze<Z.length;ze++){var yt=Z[ze];N(yt)&&We(yt,Ce)}else if(N(Z))Z._store&&(Z._store.validated=!0);else if(Z){var Kt=w(Z);if(typeof Kt=="function"&&Kt!==Z.entries)for(var un=Kt.call(Z),Ft;!(Ft=un.next()).done;)N(Ft.value)&&We(Ft.value,Ce)}}}function Pt(Z){{var Ce=Z.type;if(Ce==null||typeof Ce=="string")return;var ze;if(typeof Ce=="function")ze=Ce.propTypes;else if(typeof Ce=="object"&&(Ce.$$typeof===l||Ce.$$typeof===p))ze=Ce.propTypes;else return;if(ze){var yt=Q(Ce);et(ze,Z.props,"prop",yt,Z)}else if(Ce.PropTypes!==void 0&&!sr){sr=!0;var Kt=Q(Ce);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Kt||"Unknown")}typeof Ce.getDefaultProps=="function"&&!Ce.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Jt(Z){{for(var Ce=Object.keys(Z.props),ze=0;ze<Ce.length;ze++){var yt=Ce[ze];if(yt!=="children"&&yt!=="key"){Mn(Z),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",yt),Mn(null);break}}Z.ref!==null&&(Mn(Z),b("Invalid attribute `ref` supplied to `React.Fragment`."),Mn(null))}}function bn(Z,Ce,ze,yt,Kt,un){{var Ft=M(Z);if(!Ft){var Tt="";(Z===void 0||typeof Z=="object"&&Z!==null&&Object.keys(Z).length===0)&&(Tt+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var jn=He(Kt);jn?Tt+=jn:Tt+=je();var On;Z===null?On="null":ot(Z)?On="array":Z!==void 0&&Z.$$typeof===t?(On="<"+(Q(Z.type)||"Unknown")+" />",Tt=" Did you accidentally export a JSX literal instead of a component?"):On=typeof Z,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",On,Tt)}var Tn=At(Z,Ce,ze,Kt,un);if(Tn==null)return Tn;if(Ft){var Xr=Ce.children;if(Xr!==void 0)if(yt)if(ot(Xr)){for(var Zi=0;Zi<Xr.length;Zi++)bt(Xr[Zi],Z);Object.freeze&&Object.freeze(Xr)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else bt(Xr,Z)}return Z===r?Jt(Tn):Pt(Tn),Tn}}function Rn(Z,Ce,ze){return bn(Z,Ce,ze,!0)}function mr(Z,Ce,ze){return bn(Z,Ce,ze,!1)}var ta=mr,xl=Rn;Fl.Fragment=r,Fl.jsx=ta,Fl.jsxs=xl}()),Fl}process.env.NODE_ENV==="production"?tg.exports=kF():tg.exports=IF();var X=tg.exports;function Bt(){return Bt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bt.apply(this,arguments)}function Xf(e,t=[]){let n=[];function r(o,a){const s=C.createContext(a),l=n.length;n=[...n,a];function c(p){const{scope:m,children:h,...y}=p,v=(m==null?void 0:m[e][l])||s,w=C.useMemo(()=>y,Object.values(y));return C.createElement(v.Provider,{value:w},h)}function d(p,m){const h=(m==null?void 0:m[e][l])||s,y=C.useContext(h);if(y)return y;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${o}\``)}return c.displayName=o+"Provider",[c,d]}const i=()=>{const o=n.map(a=>C.createContext(a));return function(s){const l=(s==null?void 0:s[e])||o;return C.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[r,PF(i,...t)]}function PF(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const a=r.reduce((s,{useScope:l,scopeName:c})=>{const p=l(o)[`__scope${c}`];return{...s,...p}},{});return C.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Pr(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}const Xs=globalThis!=null&&globalThis.document?C.useLayoutEffect:()=>{};function ts(){return ts=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ts.apply(null,arguments)}function RF(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Ux(...e){return t=>e.forEach(n=>RF(n,t))}function ii(...e){return C.useCallback(Ux(...e),e)}const ng=C.forwardRef((e,t)=>{const{children:n,...r}=e,i=C.Children.toArray(n),o=i.find(DF);if(o){const a=o.props.children,s=i.map(l=>l===o?C.Children.count(a)>1?C.Children.only(null):C.isValidElement(a)?a.props.children:null:l);return C.createElement(rg,ts({},r,{ref:t}),C.isValidElement(a)?C.cloneElement(a,void 0,s):null)}return C.createElement(rg,ts({},r,{ref:t}),n)});ng.displayName="Slot";const rg=C.forwardRef((e,t)=>{const{children:n,...r}=e;return C.isValidElement(n)?C.cloneElement(n,{...MF(r,n.props),ref:t?Ux(t,n.ref):n.ref}):C.Children.count(n)>1?C.Children.only(null):null});rg.displayName="SlotClone";const NF=({children:e})=>C.createElement(C.Fragment,null,e);function DF(e){return C.isValidElement(e)&&e.type===NF}function MF(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...s)=>{o(...s),i(...s)}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}const lr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const n=C.forwardRef((r,i)=>{const{asChild:o,...a}=r,s=o?ng:t;return C.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),C.createElement(s,ts({},a,{ref:i}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function jF(e,t){e&&Yi.flushSync(()=>e.dispatchEvent(t))}const Bx="Avatar",[LF,vRe]=Xf(Bx),[FF,zx]=LF(Bx),Zx=C.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[i,o]=C.useState("idle");return C.createElement(FF,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:o},C.createElement(lr.span,Bt({},r,{ref:t})))}),qF="AvatarImage",Hx=C.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...o}=e,a=zx(qF,n),s=BF(r),l=Pr(c=>{i(c),a.onImageLoadingStatusChange(c)});return Xs(()=>{s!=="idle"&&l(s)},[s,l]),s==="loaded"?C.createElement(lr.img,Bt({},o,{ref:t,src:r})):null}),UF="AvatarFallback",Wx=C.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...i}=e,o=zx(UF,n),[a,s]=C.useState(r===void 0);return C.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(l)}},[r]),a&&o.imageLoadingStatus!=="loaded"?C.createElement(lr.span,Bt({},i,{ref:t})):null});function BF(e){const[t,n]=C.useState("idle");return C.useEffect(()=>{if(!e){n("error");return}let r=!0;const i=new window.Image,o=a=>()=>{r&&n(a)};return n("loading"),i.onload=o("loaded"),i.onerror=o("error"),i.src=e,()=>{r=!1}},[e]),t}let ig=class{constructor(){R(this,"eventMap");this.eventMap={}}on(t,n){var r;return this.eventMap[t]||(this.eventMap[t]=new Set),(r=this.eventMap[t])==null||r.add(n),()=>{var i;(i=this.eventMap[t])==null||i.delete(n)}}emit(t,n){var r,i;(r=this.eventMap[t])==null||r.forEach(o=>{o(n)}),(i=this.eventMap["*"])==null||i.forEach(o=>{o({type:t,payload:n})})}};const zF=new ig;function Vx(e,t){let n=0;if(e.length==0)return n;for(let r=0;r<e.length;r++){const i=e.charCodeAt(r);n=(n<<5)-n+i,n=n&n}return Math.abs(n)%t}const og=C.forwardRef(({userId:e,src:t,container:n,image:r,fallback:i,...o},a)=>{const s=Vx(e??"",15);return X.jsxs(Zx,{ref:a,"data-color":s,...n,...o,children:[X.jsx(Hx,{src:t,...r}),X.jsx(Wx,{...i,children:typeof o.children=="string"?o.children[0]:o.children})]})});function bRe(){}function _Re(){}function ZF(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const HF=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,WF=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,VF={};function Kx(e,t){return((t||VF).jsx?WF:HF).test(e)}const KF=/[ \t\n\f\r]/g;function GF(e){return typeof e=="object"?e.type==="text"?Gx(e.value):!1:Gx(e)}function Gx(e){return e.replace(KF,"")===""}let ql=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};ql.prototype.property={},ql.prototype.normal={},ql.prototype.space=null;function Yx(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new ql(n,r,t)}function ag(e){return e.toLowerCase()}class vi{constructor(t,n){this.property=t,this.attribute=n}}vi.prototype.space=null,vi.prototype.boolean=!1,vi.prototype.booleanish=!1,vi.prototype.overloadedBoolean=!1,vi.prototype.number=!1,vi.prototype.commaSeparated=!1,vi.prototype.spaceSeparated=!1,vi.prototype.commaOrSpaceSeparated=!1,vi.prototype.mustUseProperty=!1,vi.prototype.defined=!1;let YF=0;const Mt=ns(),Bn=ns(),Jx=ns(),ke=ns(),En=ns(),Qs=ns(),oi=ns();function ns(){return 2**++YF}const sg=Object.freeze(Object.defineProperty({__proto__:null,boolean:Mt,booleanish:Bn,commaOrSpaceSeparated:oi,commaSeparated:Qs,number:ke,overloadedBoolean:Jx,spaceSeparated:En},Symbol.toStringTag,{value:"Module"})),ug=Object.keys(sg);class lg extends vi{constructor(t,n,r,i){let o=-1;if(super(t,n),Xx(this,"space",i),typeof r=="number")for(;++o<ug.length;){const a=ug[o];Xx(this,ug[o],(r&sg[a])===sg[a])}}}lg.prototype.defined=!0;function Xx(e,t,n){n&&(e[t]=n)}const JF={}.hasOwnProperty;function eu(e){const t={},n={};let r;for(r in e.properties)if(JF.call(e.properties,r)){const i=e.properties[r],o=new lg(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[ag(r)]=r,n[ag(o.attribute)]=r}return new ql(t,n,e.space)}const Qx=eu({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),e1=eu({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function t1(e,t){return t in e?e[t]:t}function n1(e,t){return t1(e,t.toLowerCase())}const r1=eu({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:n1,properties:{xmlns:null,xmlnsXLink:null}}),i1=eu({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Bn,ariaAutoComplete:null,ariaBusy:Bn,ariaChecked:Bn,ariaColCount:ke,ariaColIndex:ke,ariaColSpan:ke,ariaControls:En,ariaCurrent:null,ariaDescribedBy:En,ariaDetails:null,ariaDisabled:Bn,ariaDropEffect:En,ariaErrorMessage:null,ariaExpanded:Bn,ariaFlowTo:En,ariaGrabbed:Bn,ariaHasPopup:null,ariaHidden:Bn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:En,ariaLevel:ke,ariaLive:null,ariaModal:Bn,ariaMultiLine:Bn,ariaMultiSelectable:Bn,ariaOrientation:null,ariaOwns:En,ariaPlaceholder:null,ariaPosInSet:ke,ariaPressed:Bn,ariaReadOnly:Bn,ariaRelevant:null,ariaRequired:Bn,ariaRoleDescription:En,ariaRowCount:ke,ariaRowIndex:ke,ariaRowSpan:ke,ariaSelected:Bn,ariaSetSize:ke,ariaSort:null,ariaValueMax:ke,ariaValueMin:ke,ariaValueNow:ke,ariaValueText:null,role:null}}),XF=eu({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:n1,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Qs,acceptCharset:En,accessKey:En,action:null,allow:null,allowFullScreen:Mt,allowPaymentRequest:Mt,allowUserMedia:Mt,alt:null,as:null,async:Mt,autoCapitalize:null,autoComplete:En,autoFocus:Mt,autoPlay:Mt,capture:Mt,charSet:null,checked:Mt,cite:null,className:En,cols:ke,colSpan:null,content:null,contentEditable:Bn,controls:Mt,controlsList:En,coords:ke|Qs,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Mt,defer:Mt,dir:null,dirName:null,disabled:Mt,download:Jx,draggable:Bn,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Mt,formTarget:null,headers:En,height:ke,hidden:Mt,high:ke,href:null,hrefLang:null,htmlFor:En,httpEquiv:En,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:Mt,itemId:null,itemProp:En,itemRef:En,itemScope:Mt,itemType:En,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Mt,low:ke,manifest:null,max:null,maxLength:ke,media:null,method:null,min:null,minLength:ke,multiple:Mt,muted:Mt,name:null,nonce:null,noModule:Mt,noValidate:Mt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Mt,optimum:ke,pattern:null,ping:En,placeholder:null,playsInline:Mt,poster:null,preload:null,readOnly:Mt,referrerPolicy:null,rel:En,required:Mt,reversed:Mt,rows:ke,rowSpan:ke,sandbox:En,scope:null,scoped:Mt,seamless:Mt,selected:Mt,shape:null,size:ke,sizes:null,slot:null,span:ke,spellCheck:Bn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ke,step:null,style:null,tabIndex:ke,target:null,title:null,translate:null,type:null,typeMustMatch:Mt,useMap:null,value:Bn,width:ke,wrap:null,align:null,aLink:null,archive:En,axis:null,background:null,bgColor:null,border:ke,borderColor:null,bottomMargin:ke,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Mt,declare:Mt,event:null,face:null,frame:null,frameBorder:null,hSpace:ke,leftMargin:ke,link:null,longDesc:null,lowSrc:null,marginHeight:ke,marginWidth:ke,noResize:Mt,noHref:Mt,noShade:Mt,noWrap:Mt,object:null,profile:null,prompt:null,rev:null,rightMargin:ke,rules:null,scheme:null,scrolling:Bn,standby:null,summary:null,text:null,topMargin:ke,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ke,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Mt,disableRemotePlayback:Mt,prefix:null,property:null,results:ke,security:null,unselectable:null}}),QF=eu({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:t1,properties:{about:oi,accentHeight:ke,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ke,amplitude:ke,arabicForm:null,ascent:ke,attributeName:null,attributeType:null,azimuth:ke,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ke,by:null,calcMode:null,capHeight:ke,className:En,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ke,diffuseConstant:ke,direction:null,display:null,dur:null,divisor:ke,dominantBaseline:null,download:Mt,dx:null,dy:null,edgeMode:null,editable:null,elevation:ke,enableBackground:null,end:null,event:null,exponent:ke,externalResourcesRequired:null,fill:null,fillOpacity:ke,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Qs,g2:Qs,glyphName:Qs,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ke,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ke,horizOriginX:ke,horizOriginY:ke,id:null,ideographic:ke,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ke,k:ke,k1:ke,k2:ke,k3:ke,k4:ke,kernelMatrix:oi,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ke,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ke,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ke,overlineThickness:ke,paintOrder:null,panose1:null,path:null,pathLength:ke,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:En,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ke,pointsAtY:ke,pointsAtZ:ke,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:oi,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:oi,rev:oi,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:oi,requiredFeatures:oi,requiredFonts:oi,requiredFormats:oi,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ke,specularExponent:ke,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ke,strikethroughThickness:ke,string:null,stroke:null,strokeDashArray:oi,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ke,strokeOpacity:ke,strokeWidth:null,style:null,surfaceScale:ke,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:oi,tabIndex:ke,tableValues:null,target:null,targetX:ke,targetY:ke,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:oi,to:null,transform:null,u1:null,u2:null,underlinePosition:ke,underlineThickness:ke,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ke,values:null,vAlphabetic:ke,vMathematical:ke,vectorEffect:null,vHanging:ke,vIdeographic:ke,version:null,vertAdvY:ke,vertOriginX:ke,vertOriginY:ke,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ke,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),e3=/^data[-\w.:]+$/i,o1=/-[a-z]/g,t3=/[A-Z]/g;function n3(e,t){const n=ag(t);let r=t,i=vi;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&e3.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(o1,i3);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!o1.test(o)){let a=o.replace(t3,r3);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=lg}return new i(r,t)}function r3(e){return"-"+e.toLowerCase()}function i3(e){return e.charAt(1).toUpperCase()}const o3={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},a3=Yx([e1,Qx,r1,i1,XF],"html"),cg=Yx([e1,Qx,r1,i1,QF],"svg");function s3(e){return e.join(" ").trim()}var a1={},s1=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,u3=/\n/g,l3=/^\s*/,c3=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,f3=/^:\s*/,d3=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,p3=/^[;\s]*/,h3=/^\s+|\s+$/g,m3=`
|
|
27
|
+
Check the top-level render call using <`+ze+">.")}return Ce}}function We(Z,Ce){{if(!Z._store||Z._store.validated||Z.key!=null)return;Z._store.validated=!0;var ze=Re(Ce);if(Xe[ze])return;Xe[ze]=!0;var yt="";Z&&Z._owner&&Z._owner!==on.current&&(yt=" It was passed a child from "+Q(Z._owner.type)+"."),Mn(Z),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ze,yt),Mn(null)}}function _t(Z,Ce){{if(typeof Z!="object")return;if(ot(Z))for(var ze=0;ze<Z.length;ze++){var yt=Z[ze];N(yt)&&We(yt,Ce)}else if(N(Z))Z._store&&(Z._store.validated=!0);else if(Z){var Kt=w(Z);if(typeof Kt=="function"&&Kt!==Z.entries)for(var un=Kt.call(Z),Ft;!(Ft=un.next()).done;)N(Ft.value)&&We(Ft.value,Ce)}}}function Pt(Z){{var Ce=Z.type;if(Ce==null||typeof Ce=="string")return;var ze;if(typeof Ce=="function")ze=Ce.propTypes;else if(typeof Ce=="object"&&(Ce.$$typeof===l||Ce.$$typeof===p))ze=Ce.propTypes;else return;if(ze){var yt=Q(Ce);et(ze,Z.props,"prop",yt,Z)}else if(Ce.PropTypes!==void 0&&!sr){sr=!0;var Kt=Q(Ce);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Kt||"Unknown")}typeof Ce.getDefaultProps=="function"&&!Ce.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Jt(Z){{for(var Ce=Object.keys(Z.props),ze=0;ze<Ce.length;ze++){var yt=Ce[ze];if(yt!=="children"&&yt!=="key"){Mn(Z),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",yt),Mn(null);break}}Z.ref!==null&&(Mn(Z),b("Invalid attribute `ref` supplied to `React.Fragment`."),Mn(null))}}function bn(Z,Ce,ze,yt,Kt,un){{var Ft=M(Z);if(!Ft){var Tt="";(Z===void 0||typeof Z=="object"&&Z!==null&&Object.keys(Z).length===0)&&(Tt+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var jn=He(Kt);jn?Tt+=jn:Tt+=je();var On;Z===null?On="null":ot(Z)?On="array":Z!==void 0&&Z.$$typeof===t?(On="<"+(Q(Z.type)||"Unknown")+" />",Tt=" Did you accidentally export a JSX literal instead of a component?"):On=typeof Z,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",On,Tt)}var Tn=At(Z,Ce,ze,Kt,un);if(Tn==null)return Tn;if(Ft){var Xr=Ce.children;if(Xr!==void 0)if(yt)if(ot(Xr)){for(var Zi=0;Zi<Xr.length;Zi++)_t(Xr[Zi],Z);Object.freeze&&Object.freeze(Xr)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else _t(Xr,Z)}return Z===r?Jt(Tn):Pt(Tn),Tn}}function Rn(Z,Ce,ze){return bn(Z,Ce,ze,!0)}function mr(Z,Ce,ze){return bn(Z,Ce,ze,!1)}var ta=mr,xl=Rn;Fl.Fragment=r,Fl.jsx=ta,Fl.jsxs=xl}()),Fl}process.env.NODE_ENV==="production"?tg.exports=kF():tg.exports=IF();var X=tg.exports;function Bt(){return Bt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bt.apply(this,arguments)}function Xf(e,t=[]){let n=[];function r(o,a){const s=C.createContext(a),l=n.length;n=[...n,a];function c(p){const{scope:m,children:h,...y}=p,v=(m==null?void 0:m[e][l])||s,w=C.useMemo(()=>y,Object.values(y));return C.createElement(v.Provider,{value:w},h)}function d(p,m){const h=(m==null?void 0:m[e][l])||s,y=C.useContext(h);if(y)return y;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${o}\``)}return c.displayName=o+"Provider",[c,d]}const i=()=>{const o=n.map(a=>C.createContext(a));return function(s){const l=(s==null?void 0:s[e])||o;return C.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[r,PF(i,...t)]}function PF(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const a=r.reduce((s,{useScope:l,scopeName:c})=>{const p=l(o)[`__scope${c}`];return{...s,...p}},{});return C.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Pr(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}const Xs=globalThis!=null&&globalThis.document?C.useLayoutEffect:()=>{};function ts(){return ts=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ts.apply(null,arguments)}function RF(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Ux(...e){return t=>e.forEach(n=>RF(n,t))}function ii(...e){return C.useCallback(Ux(...e),e)}const ng=C.forwardRef((e,t)=>{const{children:n,...r}=e,i=C.Children.toArray(n),o=i.find(DF);if(o){const a=o.props.children,s=i.map(l=>l===o?C.Children.count(a)>1?C.Children.only(null):C.isValidElement(a)?a.props.children:null:l);return C.createElement(rg,ts({},r,{ref:t}),C.isValidElement(a)?C.cloneElement(a,void 0,s):null)}return C.createElement(rg,ts({},r,{ref:t}),n)});ng.displayName="Slot";const rg=C.forwardRef((e,t)=>{const{children:n,...r}=e;return C.isValidElement(n)?C.cloneElement(n,{...MF(r,n.props),ref:t?Ux(t,n.ref):n.ref}):C.Children.count(n)>1?C.Children.only(null):null});rg.displayName="SlotClone";const NF=({children:e})=>C.createElement(C.Fragment,null,e);function DF(e){return C.isValidElement(e)&&e.type===NF}function MF(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...s)=>{o(...s),i(...s)}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}const lr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const n=C.forwardRef((r,i)=>{const{asChild:o,...a}=r,s=o?ng:t;return C.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),C.createElement(s,ts({},a,{ref:i}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function jF(e,t){e&&Yi.flushSync(()=>e.dispatchEvent(t))}const Bx="Avatar",[LF,vRe]=Xf(Bx),[FF,zx]=LF(Bx),Zx=C.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[i,o]=C.useState("idle");return C.createElement(FF,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:o},C.createElement(lr.span,Bt({},r,{ref:t})))}),qF="AvatarImage",Hx=C.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...o}=e,a=zx(qF,n),s=BF(r),l=Pr(c=>{i(c),a.onImageLoadingStatusChange(c)});return Xs(()=>{s!=="idle"&&l(s)},[s,l]),s==="loaded"?C.createElement(lr.img,Bt({},o,{ref:t,src:r})):null}),UF="AvatarFallback",Wx=C.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...i}=e,o=zx(UF,n),[a,s]=C.useState(r===void 0);return C.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(l)}},[r]),a&&o.imageLoadingStatus!=="loaded"?C.createElement(lr.span,Bt({},i,{ref:t})):null});function BF(e){const[t,n]=C.useState("idle");return C.useEffect(()=>{if(!e){n("error");return}let r=!0;const i=new window.Image,o=a=>()=>{r&&n(a)};return n("loading"),i.onload=o("loaded"),i.onerror=o("error"),i.src=e,()=>{r=!1}},[e]),t}let ig=class{constructor(){R(this,"eventMap");this.eventMap={}}on(t,n){var r;return this.eventMap[t]||(this.eventMap[t]=new Set),(r=this.eventMap[t])==null||r.add(n),()=>{var i;(i=this.eventMap[t])==null||i.delete(n)}}emit(t,n){var r,i;(r=this.eventMap[t])==null||r.forEach(o=>{o(n)}),(i=this.eventMap["*"])==null||i.forEach(o=>{o({type:t,payload:n})})}};const zF=new ig;function Vx(e,t){let n=0;if(e.length==0)return n;for(let r=0;r<e.length;r++){const i=e.charCodeAt(r);n=(n<<5)-n+i,n=n&n}return Math.abs(n)%t}const og=C.forwardRef(({userId:e,src:t,container:n,image:r,fallback:i,...o},a)=>{const s=Vx(e??"",15);return X.jsxs(Zx,{ref:a,"data-color":s,...n,...o,children:[X.jsx(Hx,{src:t,...r}),X.jsx(Wx,{...i,children:typeof o.children=="string"?o.children[0]:o.children})]})});function bRe(){}function _Re(){}function ZF(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const HF=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,WF=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,VF={};function Kx(e,t){return((t||VF).jsx?WF:HF).test(e)}const KF=/[ \t\n\f\r]/g;function GF(e){return typeof e=="object"?e.type==="text"?Gx(e.value):!1:Gx(e)}function Gx(e){return e.replace(KF,"")===""}let ql=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};ql.prototype.property={},ql.prototype.normal={},ql.prototype.space=null;function Yx(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new ql(n,r,t)}function ag(e){return e.toLowerCase()}class vi{constructor(t,n){this.property=t,this.attribute=n}}vi.prototype.space=null,vi.prototype.boolean=!1,vi.prototype.booleanish=!1,vi.prototype.overloadedBoolean=!1,vi.prototype.number=!1,vi.prototype.commaSeparated=!1,vi.prototype.spaceSeparated=!1,vi.prototype.commaOrSpaceSeparated=!1,vi.prototype.mustUseProperty=!1,vi.prototype.defined=!1;let YF=0;const Mt=ns(),Bn=ns(),Jx=ns(),ke=ns(),En=ns(),Qs=ns(),oi=ns();function ns(){return 2**++YF}const sg=Object.freeze(Object.defineProperty({__proto__:null,boolean:Mt,booleanish:Bn,commaOrSpaceSeparated:oi,commaSeparated:Qs,number:ke,overloadedBoolean:Jx,spaceSeparated:En},Symbol.toStringTag,{value:"Module"})),ug=Object.keys(sg);class lg extends vi{constructor(t,n,r,i){let o=-1;if(super(t,n),Xx(this,"space",i),typeof r=="number")for(;++o<ug.length;){const a=ug[o];Xx(this,ug[o],(r&sg[a])===sg[a])}}}lg.prototype.defined=!0;function Xx(e,t,n){n&&(e[t]=n)}const JF={}.hasOwnProperty;function eu(e){const t={},n={};let r;for(r in e.properties)if(JF.call(e.properties,r)){const i=e.properties[r],o=new lg(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[ag(r)]=r,n[ag(o.attribute)]=r}return new ql(t,n,e.space)}const Qx=eu({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),e1=eu({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function t1(e,t){return t in e?e[t]:t}function n1(e,t){return t1(e,t.toLowerCase())}const r1=eu({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:n1,properties:{xmlns:null,xmlnsXLink:null}}),i1=eu({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Bn,ariaAutoComplete:null,ariaBusy:Bn,ariaChecked:Bn,ariaColCount:ke,ariaColIndex:ke,ariaColSpan:ke,ariaControls:En,ariaCurrent:null,ariaDescribedBy:En,ariaDetails:null,ariaDisabled:Bn,ariaDropEffect:En,ariaErrorMessage:null,ariaExpanded:Bn,ariaFlowTo:En,ariaGrabbed:Bn,ariaHasPopup:null,ariaHidden:Bn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:En,ariaLevel:ke,ariaLive:null,ariaModal:Bn,ariaMultiLine:Bn,ariaMultiSelectable:Bn,ariaOrientation:null,ariaOwns:En,ariaPlaceholder:null,ariaPosInSet:ke,ariaPressed:Bn,ariaReadOnly:Bn,ariaRelevant:null,ariaRequired:Bn,ariaRoleDescription:En,ariaRowCount:ke,ariaRowIndex:ke,ariaRowSpan:ke,ariaSelected:Bn,ariaSetSize:ke,ariaSort:null,ariaValueMax:ke,ariaValueMin:ke,ariaValueNow:ke,ariaValueText:null,role:null}}),XF=eu({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:n1,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Qs,acceptCharset:En,accessKey:En,action:null,allow:null,allowFullScreen:Mt,allowPaymentRequest:Mt,allowUserMedia:Mt,alt:null,as:null,async:Mt,autoCapitalize:null,autoComplete:En,autoFocus:Mt,autoPlay:Mt,capture:Mt,charSet:null,checked:Mt,cite:null,className:En,cols:ke,colSpan:null,content:null,contentEditable:Bn,controls:Mt,controlsList:En,coords:ke|Qs,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Mt,defer:Mt,dir:null,dirName:null,disabled:Mt,download:Jx,draggable:Bn,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Mt,formTarget:null,headers:En,height:ke,hidden:Mt,high:ke,href:null,hrefLang:null,htmlFor:En,httpEquiv:En,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:Mt,itemId:null,itemProp:En,itemRef:En,itemScope:Mt,itemType:En,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Mt,low:ke,manifest:null,max:null,maxLength:ke,media:null,method:null,min:null,minLength:ke,multiple:Mt,muted:Mt,name:null,nonce:null,noModule:Mt,noValidate:Mt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Mt,optimum:ke,pattern:null,ping:En,placeholder:null,playsInline:Mt,poster:null,preload:null,readOnly:Mt,referrerPolicy:null,rel:En,required:Mt,reversed:Mt,rows:ke,rowSpan:ke,sandbox:En,scope:null,scoped:Mt,seamless:Mt,selected:Mt,shape:null,size:ke,sizes:null,slot:null,span:ke,spellCheck:Bn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ke,step:null,style:null,tabIndex:ke,target:null,title:null,translate:null,type:null,typeMustMatch:Mt,useMap:null,value:Bn,width:ke,wrap:null,align:null,aLink:null,archive:En,axis:null,background:null,bgColor:null,border:ke,borderColor:null,bottomMargin:ke,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Mt,declare:Mt,event:null,face:null,frame:null,frameBorder:null,hSpace:ke,leftMargin:ke,link:null,longDesc:null,lowSrc:null,marginHeight:ke,marginWidth:ke,noResize:Mt,noHref:Mt,noShade:Mt,noWrap:Mt,object:null,profile:null,prompt:null,rev:null,rightMargin:ke,rules:null,scheme:null,scrolling:Bn,standby:null,summary:null,text:null,topMargin:ke,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ke,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Mt,disableRemotePlayback:Mt,prefix:null,property:null,results:ke,security:null,unselectable:null}}),QF=eu({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:t1,properties:{about:oi,accentHeight:ke,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ke,amplitude:ke,arabicForm:null,ascent:ke,attributeName:null,attributeType:null,azimuth:ke,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ke,by:null,calcMode:null,capHeight:ke,className:En,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ke,diffuseConstant:ke,direction:null,display:null,dur:null,divisor:ke,dominantBaseline:null,download:Mt,dx:null,dy:null,edgeMode:null,editable:null,elevation:ke,enableBackground:null,end:null,event:null,exponent:ke,externalResourcesRequired:null,fill:null,fillOpacity:ke,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Qs,g2:Qs,glyphName:Qs,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ke,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ke,horizOriginX:ke,horizOriginY:ke,id:null,ideographic:ke,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ke,k:ke,k1:ke,k2:ke,k3:ke,k4:ke,kernelMatrix:oi,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ke,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ke,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ke,overlineThickness:ke,paintOrder:null,panose1:null,path:null,pathLength:ke,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:En,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ke,pointsAtY:ke,pointsAtZ:ke,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:oi,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:oi,rev:oi,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:oi,requiredFeatures:oi,requiredFonts:oi,requiredFormats:oi,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ke,specularExponent:ke,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ke,strikethroughThickness:ke,string:null,stroke:null,strokeDashArray:oi,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ke,strokeOpacity:ke,strokeWidth:null,style:null,surfaceScale:ke,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:oi,tabIndex:ke,tableValues:null,target:null,targetX:ke,targetY:ke,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:oi,to:null,transform:null,u1:null,u2:null,underlinePosition:ke,underlineThickness:ke,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ke,values:null,vAlphabetic:ke,vMathematical:ke,vectorEffect:null,vHanging:ke,vIdeographic:ke,version:null,vertAdvY:ke,vertOriginX:ke,vertOriginY:ke,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ke,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),e3=/^data[-\w.:]+$/i,o1=/-[a-z]/g,t3=/[A-Z]/g;function n3(e,t){const n=ag(t);let r=t,i=vi;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&e3.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(o1,i3);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!o1.test(o)){let a=o.replace(t3,r3);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=lg}return new i(r,t)}function r3(e){return"-"+e.toLowerCase()}function i3(e){return e.charAt(1).toUpperCase()}const o3={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},a3=Yx([e1,Qx,r1,i1,XF],"html"),cg=Yx([e1,Qx,r1,i1,QF],"svg");function s3(e){return e.join(" ").trim()}var a1={},s1=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,u3=/\n/g,l3=/^\s*/,c3=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,f3=/^:\s*/,d3=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,p3=/^[;\s]*/,h3=/^\s+|\s+$/g,m3=`
|
|
28
28
|
`,u1="/",l1="*",rs="",y3="comment",g3="declaration",v3=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(y){var v=y.match(u3);v&&(n+=v.length);var w=y.lastIndexOf(m3);r=~w?y.length-w:r+y.length}function o(){var y={line:n,column:r};return function(v){return v.position=new a(y),c(),v}}function a(y){this.start=y,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function s(y){var v=new Error(t.source+":"+n+":"+r+": "+y);if(v.reason=y,v.filename=t.source,v.line=n,v.column=r,v.source=e,!t.silent)throw v}function l(y){var v=y.exec(e);if(v){var w=v[0];return i(w),e=e.slice(w.length),v}}function c(){l(l3)}function d(y){var v;for(y=y||[];v=p();)v!==!1&&y.push(v);return y}function p(){var y=o();if(!(u1!=e.charAt(0)||l1!=e.charAt(1))){for(var v=2;rs!=e.charAt(v)&&(l1!=e.charAt(v)||u1!=e.charAt(v+1));)++v;if(v+=2,rs===e.charAt(v-1))return s("End of comment missing");var w=e.slice(2,v-2);return r+=2,i(w),e=e.slice(v),r+=2,y({type:y3,comment:w})}}function m(){var y=o(),v=l(c3);if(v){if(p(),!l(f3))return s("property missing ':'");var w=l(d3),_=y({type:g3,property:c1(v[0].replace(s1,rs)),value:w?c1(w[0].replace(s1,rs)):rs});return l(p3),_}}function h(){var y=[];d(y);for(var v;v=m();)v!==!1&&(y.push(v),d(y));return y}return c(),h()};function c1(e){return e?e.replace(h3,rs):rs}var b3=se&&se.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a1,"__esModule",{value:!0});var _3=b3(v3);function w3(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,_3.default)(e),i=typeof t=="function";return r.forEach(function(o){if(o.type==="declaration"){var a=o.property,s=o.value;i?t(a,s,o):s&&(n=n||{},n[a]=s)}}),n}var f1=a1.default=w3;const x3=f1.default||f1,d1=p1("end"),fg=p1("start");function p1(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function S3(e){const t=fg(e),n=d1(e);if(t&&n)return{start:t,end:n}}function Ul(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?h1(e.position):"start"in e||"end"in e?h1(e):"line"in e||"column"in e?dg(e):""}function dg(e){return m1(e&&e.line)+":"+m1(e&&e.column)}function h1(e){return dg(e&&e.start)+"-"+dg(e&&e.end)}function m1(e){return e&&typeof e=="number"?e:1}class vr extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},a=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(a=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const s=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=Ul(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}vr.prototype.file="",vr.prototype.name="",vr.prototype.reason="",vr.prototype.message="",vr.prototype.stack="",vr.prototype.column=void 0,vr.prototype.line=void 0,vr.prototype.ancestors=void 0,vr.prototype.cause=void 0,vr.prototype.fatal=void 0,vr.prototype.place=void 0,vr.prototype.ruleId=void 0,vr.prototype.source=void 0;const pg={}.hasOwnProperty,E3=new Map,A3=/[A-Z]/g,C3=/-([a-z])/g,O3=new Set(["table","tbody","thead","tfoot","tr"]),T3=new Set(["td","th"]),y1="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function $3(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=j3(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=M3(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?cg:a3,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=g1(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function g1(e,t,n){if(t.type==="element")return k3(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return I3(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return R3(e,t,n);if(t.type==="mdxjsEsm")return P3(e,t);if(t.type==="root")return N3(e,t,n);if(t.type==="text")return D3(e,t)}function k3(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=cg,e.schema=i),e.ancestors.push(t);const o=b1(e,t.tagName,!1),a=L3(e,t);let s=mg(e,t);return O3.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!GF(l):!0})),v1(e,a,o,t),hg(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function I3(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Bl(e,t.position)}function P3(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Bl(e,t.position)}function R3(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=cg,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:b1(e,t.name,!0),a=F3(e,t),s=mg(e,t);return v1(e,a,o,t),hg(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function N3(e,t,n){const r={};return hg(r,mg(e,t)),e.create(t,e.Fragment,r,n)}function D3(e,t){return t.value}function v1(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function hg(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function M3(e,t,n){return r;function r(i,o,a,s){const c=Array.isArray(a.children)?n:t;return s?c(o,a,s):c(o,a)}}function j3(e,t){return n;function n(r,i,o,a){const s=Array.isArray(o.children),l=fg(r);return t(i,o,a,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function L3(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&pg.call(t.properties,i)){const o=q3(e,i,t.properties[i]);if(o){const[a,s]=o;e.tableCellAlignToStyle&&a==="align"&&typeof s=="string"&&T3.has(t.tagName)?r=s:n[a]=s}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function F3(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const a=o.expression;a.type;const s=a.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else Bl(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,o=e.evaluater.evaluateExpression(s.expression)}else Bl(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function mg(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:E3;for(;++r<t.children.length;){const o=t.children[r];let a;if(e.passKeys){const l=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(l){const c=i.get(l)||0;a=l+"-"+c,i.set(l,c+1)}}const s=g1(e,o,a);s!==void 0&&n.push(s)}return n}function q3(e,t,n){const r=n3(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?ZF(n):s3(n)),r.property==="style"){let i=typeof n=="object"?n:U3(e,String(n));return e.stylePropertyNameCase==="css"&&(i=B3(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?o3[r.property]||r.property:r.attribute,n]}}function U3(e,t){const n={};try{x3(t,r)}catch(i){if(!e.ignoreInvalidStyle){const o=i,a=new vr("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=y1+"#cannot-parse-style-attribute",a}}return n;function r(i,o){let a=i;a.slice(0,2)!=="--"&&(a.slice(0,4)==="-ms-"&&(a="ms-"+a.slice(4)),a=a.replace(C3,Z3)),n[a]=o}}function b1(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,a;for(;++o<i.length;){const s=Kx(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};a=a?{type:"MemberExpression",object:a,property:s,computed:!!(o&&s.type==="Literal"),optional:!1}:s}r=a}else r=Kx(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return pg.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Bl(e)}function Bl(e,t){const n=new vr("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=y1+"#cannot-handle-mdx-estrees-without-createevaluater",n}function B3(e){const t={};let n;for(n in e)pg.call(e,n)&&(t[z3(n)]=e[n]);return t}function z3(e){let t=e.replace(A3,H3);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Z3(e,t){return t.toUpperCase()}function H3(e){return"-"+e.toLowerCase()}const yg={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},W3={};function gg(e,t){const n=t||W3,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return _1(e,r,i)}function _1(e,t,n){if(V3(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return w1(e.children,t,n)}return Array.isArray(e)?w1(e,t,n):""}function w1(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=_1(e[i],t,n);return r.join("")}function V3(e){return!!(e&&typeof e=="object")}const x1=document.createElement("i");function vg(e){const t="&"+e+";";x1.innerHTML=t;const n=x1.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ai(e,t,n,r){const i=e.length;let o=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}function bi(e,t){return e.length>0?(ai(e,e.length,0,t),e):t}const S1={}.hasOwnProperty;function E1(e){const t={};let n=-1;for(;++n<e.length;)K3(t,e[n]);return t}function K3(e,t){let n;for(n in t){const i=(S1.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){S1.call(i,a)||(i[a]=[]);const s=o[a];G3(i[a],Array.isArray(s)?s:s?[s]:[])}}}function G3(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ai(e,0,0,r)}function A1(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Pi(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Rr=fa(/[A-Za-z]/),br=fa(/[\dA-Za-z]/),Y3=fa(/[#-'*+\--9=?A-Z^-~]/);function Qf(e){return e!==null&&(e<32||e===127)}const bg=fa(/\d/),J3=fa(/[\dA-Fa-f]/),X3=fa(/[!-/:-@[-`{-~]/);function ht(e){return e!==null&&e<-2}function mn(e){return e!==null&&(e<0||e===32)}function zt(e){return e===-2||e===-1||e===32}const ed=fa(/\p{P}|\p{S}/u),is=fa(/\s/);function fa(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function tu(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(o===37&&br(e.charCodeAt(n+1))&&br(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const s=e.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(a=String.fromCharCode(o,s),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Qt(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return zt(l)?(e.enter(n),s(l)):t(l)}function s(l){return zt(l)&&o++<i?(e.consume(l),s):(e.exit(n),t(l))}}const Q3={tokenize:eq};function eq(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Qt(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),o(s)}function o(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,a(s)}function a(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return ht(s)?(e.consume(s),e.exit("chunkText"),o):(e.consume(s),a)}}const tq={tokenize:nq},C1={tokenize:rq};function nq(e){const t=this,n=[];let r=0,i,o,a;return s;function s(S){if(r<n.length){const A=n[r];return t.containerState=A[1],e.attempt(A[0].continuation,l,c)(S)}return c(S)}function l(S){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&b();const A=t.events.length;let E=A,T;for(;E--;)if(t.events[E][0]==="exit"&&t.events[E][1].type==="chunkFlow"){T=t.events[E][1].end;break}_(r);let j=A;for(;j<t.events.length;)t.events[j][1].end=Object.assign({},T),j++;return ai(t.events,E+1,0,t.events.slice(A)),t.events.length=j,c(S)}return s(S)}function c(S){if(r===n.length){if(!i)return m(S);if(i.currentConstruct&&i.currentConstruct.concrete)return y(S);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(C1,d,p)(S)}function d(S){return i&&b(),_(r),m(S)}function p(S){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,y(S)}function m(S){return t.containerState={},e.attempt(C1,h,y)(S)}function h(S){return r++,n.push([t.currentConstruct,t.containerState]),m(S)}function y(S){if(S===null){i&&b(),_(0),e.consume(S);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:i}),v(S)}function v(S){if(S===null){w(e.exit("chunkFlow"),!0),_(0),e.consume(S);return}return ht(S)?(e.consume(S),w(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(S),v)}function w(S,A){const E=t.sliceStream(S);if(A&&E.push(null),S.previous=o,o&&(o.next=S),o=S,i.defineSkip(S.start),i.write(E),t.parser.lazy[S.start.line]){let T=i.events.length;for(;T--;)if(i.events[T][1].start.offset<a&&(!i.events[T][1].end||i.events[T][1].end.offset>a))return;const j=t.events.length;let q=j,L,M;for(;q--;)if(t.events[q][0]==="exit"&&t.events[q][1].type==="chunkFlow"){if(L){M=t.events[q][1].end;break}L=!0}for(_(r),T=j;T<t.events.length;)t.events[T][1].end=Object.assign({},M),T++;ai(t.events,q+1,0,t.events.slice(j)),t.events.length=T}}function _(S){let A=n.length;for(;A-- >S;){const E=n[A];t.containerState=E[1],E[0].exit.call(t,e)}n.length=S}function b(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function rq(e,t,n){return Qt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function td(e){if(e===null||mn(e)||is(e))return 1;if(ed(e))return 2}function nd(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const _g={name:"attention",tokenize:oq,resolveAll:iq};function iq(e,t){let n=-1,r,i,o,a,s,l,c,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const p=Object.assign({},e[r][1].end),m=Object.assign({},e[n][1].start);O1(p,-l),O1(m,l),a={type:l>1?"strongSequence":"emphasisSequence",start:p,end:Object.assign({},e[r][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:m},o={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},a.start),e[n][1].start=Object.assign({},s.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=bi(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=bi(c,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),c=bi(c,nd(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=bi(c,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,c=bi(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,ai(e,r-1,n-r+3,c),n=r+c.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function oq(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=td(r);let o;return a;function a(l){return o=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===o)return e.consume(l),s;const c=e.exit("attentionSequence"),d=td(l),p=!d||d===2&&i||n.includes(l),m=!i||i===2&&d||n.includes(r);return c._open=!!(o===42?p:p&&(i||!m)),c._close=!!(o===42?m:m&&(d||!p)),t(l)}}function O1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const aq={name:"autolink",tokenize:sq};function sq(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return Rr(h)?(e.consume(h),a):c(h)}function a(h){return h===43||h===45||h===46||br(h)?(r=1,s(h)):c(h)}function s(h){return h===58?(e.consume(h),r=0,l):(h===43||h===45||h===46||br(h))&&r++<32?(e.consume(h),s):(r=0,c(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||Qf(h)?n(h):(e.consume(h),l)}function c(h){return h===64?(e.consume(h),d):Y3(h)?(e.consume(h),c):n(h)}function d(h){return br(h)?p(h):n(h)}function p(h){return h===46?(e.consume(h),r=0,d):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):m(h)}function m(h){if((h===45||br(h))&&r++<63){const y=h===45?m:p;return e.consume(h),y}return n(h)}}const zl={tokenize:uq,partial:!0};function uq(e,t,n){return r;function r(o){return zt(o)?Qt(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||ht(o)?t(o):n(o)}}const T1={name:"blockQuote",tokenize:lq,continuation:{tokenize:cq},exit:fq};function lq(e,t,n){const r=this;return i;function i(a){if(a===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),o}return n(a)}function o(a){return zt(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function cq(e,t,n){const r=this;return i;function i(a){return zt(a)?Qt(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):o(a)}function o(a){return e.attempt(T1,t,n)(a)}}function fq(e){e.exit("blockQuote")}const $1={name:"characterEscape",tokenize:dq};function dq(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return X3(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const k1={name:"characterReference",tokenize:pq};function pq(e,t,n){const r=this;let i=0,o,a;return s;function s(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),l}function l(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),o=31,a=br,d(p))}function c(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=J3,d):(e.enter("characterReferenceValue"),o=7,a=bg,d(p))}function d(p){if(p===59&&i){const m=e.exit("characterReferenceValue");return a===br&&!vg(r.sliceSerialize(m))?n(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(p)&&i++<o?(e.consume(p),d):n(p)}}const I1={tokenize:mq,partial:!0},P1={name:"codeFenced",tokenize:hq,concrete:!0};function hq(e,t,n){const r=this,i={tokenize:E,partial:!0};let o=0,a=0,s;return l;function l(T){return c(T)}function c(T){const j=r.events[r.events.length-1];return o=j&&j[1].type==="linePrefix"?j[2].sliceSerialize(j[1],!0).length:0,s=T,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(T)}function d(T){return T===s?(a++,e.consume(T),d):a<3?n(T):(e.exit("codeFencedFenceSequence"),zt(T)?Qt(e,p,"whitespace")(T):p(T))}function p(T){return T===null||ht(T)?(e.exit("codeFencedFence"),r.interrupt?t(T):e.check(I1,v,A)(T)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(T))}function m(T){return T===null||ht(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(T)):zt(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Qt(e,h,"whitespace")(T)):T===96&&T===s?n(T):(e.consume(T),m)}function h(T){return T===null||ht(T)?p(T):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(T))}function y(T){return T===null||ht(T)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(T)):T===96&&T===s?n(T):(e.consume(T),y)}function v(T){return e.attempt(i,A,w)(T)}function w(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),_}function _(T){return o>0&&zt(T)?Qt(e,b,"linePrefix",o+1)(T):b(T)}function b(T){return T===null||ht(T)?e.check(I1,v,A)(T):(e.enter("codeFlowValue"),S(T))}function S(T){return T===null||ht(T)?(e.exit("codeFlowValue"),b(T)):(e.consume(T),S)}function A(T){return e.exit("codeFenced"),t(T)}function E(T,j,q){let L=0;return M;function M(V){return T.enter("lineEnding"),T.consume(V),T.exit("lineEnding"),H}function H(V){return T.enter("codeFencedFence"),zt(V)?Qt(T,re,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):re(V)}function re(V){return V===s?(T.enter("codeFencedFenceSequence"),Q(V)):q(V)}function Q(V){return V===s?(L++,T.consume(V),Q):L>=a?(T.exit("codeFencedFenceSequence"),zt(V)?Qt(T,G,"whitespace")(V):G(V)):q(V)}function G(V){return V===null||ht(V)?(T.exit("codeFencedFence"),j(V)):q(V)}}}function mq(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const wg={name:"codeIndented",tokenize:gq},yq={tokenize:vq,partial:!0};function gq(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),Qt(e,o,"linePrefix",4+1)(c)}function o(c){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?a(c):n(c)}function a(c){return c===null?l(c):ht(c)?e.attempt(yq,a,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||ht(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function vq(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):ht(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):Qt(e,o,"linePrefix",4+1)(a)}function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):ht(a)?i(a):n(a)}}const bq={name:"codeText",tokenize:xq,resolve:_q,previous:wq};function _q(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function wq(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function xq(e,t,n){let r=0,i,o;return a;function a(p){return e.enter("codeText"),e.enter("codeTextSequence"),s(p)}function s(p){return p===96?(e.consume(p),r++,s):(e.exit("codeTextSequence"),l(p))}function l(p){return p===null?n(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),l):p===96?(o=e.enter("codeTextSequence"),i=0,d(p)):ht(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(p))}function c(p){return p===null||p===32||p===96||ht(p)?(e.exit("codeTextData"),l(p)):(e.consume(p),c)}function d(p){return p===96?(e.consume(p),i++,d):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(o.type="codeTextData",c(p))}}function R1(e){const t={};let n=-1,r,i,o,a,s,l,c;for(;++n<e.length;){for(;n in t;)n=t[n];if(r=e[n],n&&r[1].type==="chunkFlow"&&e[n-1][1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Sq(e,n)),n=t[n],c=!0);else if(r[1]._container){for(o=n,i=void 0;o--&&(a=e[o],a[1].type==="lineEnding"||a[1].type==="lineEndingBlank");)a[0]==="enter"&&(i&&(e[i][1].type="lineEndingBlank"),a[1].type="lineEnding",i=o);i&&(r[1].end=Object.assign({},e[i][1].start),s=e.slice(i,n),s.unshift(r),ai(e,i,n-i+1,s))}}return!c}function Sq(e,t){const n=e[t][1],r=e[t][2];let i=t-1;const o=[],a=n._tokenizer||r.parser[n.contentType](n.start),s=a.events,l=[],c={};let d,p,m=-1,h=n,y=0,v=0;const w=[v];for(;h;){for(;e[++i][1]!==h;);o.push(i),h._tokenizer||(d=r.sliceStream(h),h.next||d.push(null),p&&a.defineSkip(h.start),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(d),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),p=h,h=h.next}for(h=n;++m<s.length;)s[m][0]==="exit"&&s[m-1][0]==="enter"&&s[m][1].type===s[m-1][1].type&&s[m][1].start.line!==s[m][1].end.line&&(v=m+1,w.push(v),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(a.events=[],h?(h._tokenizer=void 0,h.previous=void 0):w.pop(),m=w.length;m--;){const _=s.slice(w[m],w[m+1]),b=o.pop();l.unshift([b,b+_.length-1]),ai(e,b,2,_)}for(m=-1;++m<l.length;)c[y+l[m][0]]=y+l[m][1],y+=l[m][1]-l[m][0]-1;return c}const Eq={tokenize:Oq,resolve:Cq},Aq={tokenize:Tq,partial:!0};function Cq(e){return R1(e),e}function Oq(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?o(s):ht(s)?e.check(Aq,a,o)(s):(e.consume(s),i)}function o(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function a(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function Tq(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Qt(e,o,"linePrefix")}function o(a){if(a===null||ht(a))return n(a);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function N1(e,t,n,r,i,o,a,s,l){const c=l||Number.POSITIVE_INFINITY;let d=0;return p;function p(_){return _===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(_),e.exit(o),m):_===null||_===32||_===41||Qf(_)?n(_):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(_))}function m(_){return _===62?(e.enter(o),e.consume(_),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(_))}function h(_){return _===62?(e.exit("chunkString"),e.exit(s),m(_)):_===null||_===60||ht(_)?n(_):(e.consume(_),_===92?y:h)}function y(_){return _===60||_===62||_===92?(e.consume(_),h):h(_)}function v(_){return!d&&(_===null||_===41||mn(_))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(_)):d<c&&_===40?(e.consume(_),d++,v):_===41?(e.consume(_),d--,v):_===null||_===32||_===40||Qf(_)?n(_):(e.consume(_),_===92?w:v)}function w(_){return _===40||_===41||_===92?(e.consume(_),v):v(_)}}function D1(e,t,n,r,i,o){const a=this;let s=0,l;return c;function c(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),d}function d(h){return s>999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):ht(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),p(h))}function p(h){return h===null||h===91||h===93||ht(h)||s++>999?(e.exit("chunkString"),d(h)):(e.consume(h),l||(l=!zt(h)),h===92?m:p)}function m(h){return h===91||h===92||h===93?(e.consume(h),s++,p):p(h)}}function M1(e,t,n,r,i,o){let a;return s;function s(m){return m===34||m===39||m===40?(e.enter(r),e.enter(i),e.consume(m),e.exit(i),a=m===40?41:m,l):n(m)}function l(m){return m===a?(e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):(e.enter(o),c(m))}function c(m){return m===a?(e.exit(o),l(a)):m===null?n(m):ht(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Qt(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===a||m===null||ht(m)?(e.exit("chunkString"),c(m)):(e.consume(m),m===92?p:d)}function p(m){return m===a||m===92?(e.consume(m),d):d(m)}}function Zl(e,t){let n;return r;function r(i){return ht(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):zt(i)?Qt(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const $q={name:"definition",tokenize:Iq},kq={tokenize:Pq,partial:!0};function Iq(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),a(h)}function a(h){return D1.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=Pi(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return mn(h)?Zl(e,c)(h):c(h)}function c(h){return N1(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function d(h){return e.attempt(kq,p,p)(h)}function p(h){return zt(h)?Qt(e,m,"whitespace")(h):m(h)}function m(h){return h===null||ht(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function Pq(e,t,n){return r;function r(s){return mn(s)?Zl(e,i)(s):n(s)}function i(s){return M1(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return zt(s)?Qt(e,a,"whitespace")(s):a(s)}function a(s){return s===null||ht(s)?t(s):n(s)}}const Rq={name:"hardBreakEscape",tokenize:Nq};function Nq(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return ht(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const Dq={name:"headingAtx",tokenize:jq,resolve:Mq};function Mq(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},ai(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function jq(e,t,n){let r=0;return i;function i(d){return e.enter("atxHeading"),o(d)}function o(d){return e.enter("atxHeadingSequence"),a(d)}function a(d){return d===35&&r++<6?(e.consume(d),a):d===null||mn(d)?(e.exit("atxHeadingSequence"),s(d)):n(d)}function s(d){return d===35?(e.enter("atxHeadingSequence"),l(d)):d===null||ht(d)?(e.exit("atxHeading"),t(d)):zt(d)?Qt(e,s,"whitespace")(d):(e.enter("atxHeadingText"),c(d))}function l(d){return d===35?(e.consume(d),l):(e.exit("atxHeadingSequence"),s(d))}function c(d){return d===null||d===35||mn(d)?(e.exit("atxHeadingText"),s(d)):(e.consume(d),c)}}const Lq=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],j1=["pre","script","style","textarea"],Fq={name:"htmlFlow",tokenize:zq,resolveTo:Bq,concrete:!0},qq={tokenize:Hq,partial:!0},Uq={tokenize:Zq,partial:!0};function Bq(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function zq(e,t,n){const r=this;let i,o,a,s,l;return c;function c(D){return d(D)}function d(D){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(D),p}function p(D){return D===33?(e.consume(D),m):D===47?(e.consume(D),o=!0,v):D===63?(e.consume(D),i=3,r.interrupt?t:P):Rr(D)?(e.consume(D),a=String.fromCharCode(D),w):n(D)}function m(D){return D===45?(e.consume(D),i=2,h):D===91?(e.consume(D),i=5,s=0,y):Rr(D)?(e.consume(D),i=4,r.interrupt?t:P):n(D)}function h(D){return D===45?(e.consume(D),r.interrupt?t:P):n(D)}function y(D){const De="CDATA[";return D===De.charCodeAt(s++)?(e.consume(D),s===De.length?r.interrupt?t:re:y):n(D)}function v(D){return Rr(D)?(e.consume(D),a=String.fromCharCode(D),w):n(D)}function w(D){if(D===null||D===47||D===62||mn(D)){const De=D===47,qe=a.toLowerCase();return!De&&!o&&j1.includes(qe)?(i=1,r.interrupt?t(D):re(D)):Lq.includes(a.toLowerCase())?(i=6,De?(e.consume(D),_):r.interrupt?t(D):re(D)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(D):o?b(D):S(D))}return D===45||br(D)?(e.consume(D),a+=String.fromCharCode(D),w):n(D)}function _(D){return D===62?(e.consume(D),r.interrupt?t:re):n(D)}function b(D){return zt(D)?(e.consume(D),b):M(D)}function S(D){return D===47?(e.consume(D),M):D===58||D===95||Rr(D)?(e.consume(D),A):zt(D)?(e.consume(D),S):M(D)}function A(D){return D===45||D===46||D===58||D===95||br(D)?(e.consume(D),A):E(D)}function E(D){return D===61?(e.consume(D),T):zt(D)?(e.consume(D),E):S(D)}function T(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),l=D,j):zt(D)?(e.consume(D),T):q(D)}function j(D){return D===l?(e.consume(D),l=null,L):D===null||ht(D)?n(D):(e.consume(D),j)}function q(D){return D===null||D===34||D===39||D===47||D===60||D===61||D===62||D===96||mn(D)?E(D):(e.consume(D),q)}function L(D){return D===47||D===62||zt(D)?S(D):n(D)}function M(D){return D===62?(e.consume(D),H):n(D)}function H(D){return D===null||ht(D)?re(D):zt(D)?(e.consume(D),H):n(D)}function re(D){return D===45&&i===2?(e.consume(D),F):D===60&&i===1?(e.consume(D),Y):D===62&&i===4?(e.consume(D),ue):D===63&&i===3?(e.consume(D),P):D===93&&i===5?(e.consume(D),ce):ht(D)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(qq,Oe,Q)(D)):D===null||ht(D)?(e.exit("htmlFlowData"),Q(D)):(e.consume(D),re)}function Q(D){return e.check(Uq,G,Oe)(D)}function G(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),V}function V(D){return D===null||ht(D)?Q(D):(e.enter("htmlFlowData"),re(D))}function F(D){return D===45?(e.consume(D),P):re(D)}function Y(D){return D===47?(e.consume(D),a="",ne):re(D)}function ne(D){if(D===62){const De=a.toLowerCase();return j1.includes(De)?(e.consume(D),ue):re(D)}return Rr(D)&&a.length<8?(e.consume(D),a+=String.fromCharCode(D),ne):re(D)}function ce(D){return D===93?(e.consume(D),P):re(D)}function P(D){return D===62?(e.consume(D),ue):D===45&&i===2?(e.consume(D),P):re(D)}function ue(D){return D===null||ht(D)?(e.exit("htmlFlowData"),Oe(D)):(e.consume(D),ue)}function Oe(D){return e.exit("htmlFlow"),t(D)}}function Zq(e,t,n){const r=this;return i;function i(a){return ht(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):n(a)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function Hq(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(zl,t,n)}}const Wq={name:"htmlText",tokenize:Vq};function Vq(e,t,n){const r=this;let i,o,a;return s;function s(P){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(P),l}function l(P){return P===33?(e.consume(P),c):P===47?(e.consume(P),E):P===63?(e.consume(P),S):Rr(P)?(e.consume(P),q):n(P)}function c(P){return P===45?(e.consume(P),d):P===91?(e.consume(P),o=0,y):Rr(P)?(e.consume(P),b):n(P)}function d(P){return P===45?(e.consume(P),h):n(P)}function p(P){return P===null?n(P):P===45?(e.consume(P),m):ht(P)?(a=p,Y(P)):(e.consume(P),p)}function m(P){return P===45?(e.consume(P),h):p(P)}function h(P){return P===62?F(P):P===45?m(P):p(P)}function y(P){const ue="CDATA[";return P===ue.charCodeAt(o++)?(e.consume(P),o===ue.length?v:y):n(P)}function v(P){return P===null?n(P):P===93?(e.consume(P),w):ht(P)?(a=v,Y(P)):(e.consume(P),v)}function w(P){return P===93?(e.consume(P),_):v(P)}function _(P){return P===62?F(P):P===93?(e.consume(P),_):v(P)}function b(P){return P===null||P===62?F(P):ht(P)?(a=b,Y(P)):(e.consume(P),b)}function S(P){return P===null?n(P):P===63?(e.consume(P),A):ht(P)?(a=S,Y(P)):(e.consume(P),S)}function A(P){return P===62?F(P):S(P)}function E(P){return Rr(P)?(e.consume(P),T):n(P)}function T(P){return P===45||br(P)?(e.consume(P),T):j(P)}function j(P){return ht(P)?(a=j,Y(P)):zt(P)?(e.consume(P),j):F(P)}function q(P){return P===45||br(P)?(e.consume(P),q):P===47||P===62||mn(P)?L(P):n(P)}function L(P){return P===47?(e.consume(P),F):P===58||P===95||Rr(P)?(e.consume(P),M):ht(P)?(a=L,Y(P)):zt(P)?(e.consume(P),L):F(P)}function M(P){return P===45||P===46||P===58||P===95||br(P)?(e.consume(P),M):H(P)}function H(P){return P===61?(e.consume(P),re):ht(P)?(a=H,Y(P)):zt(P)?(e.consume(P),H):L(P)}function re(P){return P===null||P===60||P===61||P===62||P===96?n(P):P===34||P===39?(e.consume(P),i=P,Q):ht(P)?(a=re,Y(P)):zt(P)?(e.consume(P),re):(e.consume(P),G)}function Q(P){return P===i?(e.consume(P),i=void 0,V):P===null?n(P):ht(P)?(a=Q,Y(P)):(e.consume(P),Q)}function G(P){return P===null||P===34||P===39||P===60||P===61||P===96?n(P):P===47||P===62||mn(P)?L(P):(e.consume(P),G)}function V(P){return P===47||P===62||mn(P)?L(P):n(P)}function F(P){return P===62?(e.consume(P),e.exit("htmlTextData"),e.exit("htmlText"),t):n(P)}function Y(P){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),ne}function ne(P){return zt(P)?Qt(e,ce,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):ce(P)}function ce(P){return e.enter("htmlTextData"),a(P)}}const xg={name:"labelEnd",tokenize:Qq,resolveTo:Xq,resolveAll:Jq},Kq={tokenize:eU},Gq={tokenize:tU},Yq={tokenize:nU};function Jq(e){let t=-1;for(;++t<e.length;){const n=e[t][1];(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd")&&(e.splice(t+1,n.type==="labelImage"?4:2),n.type="data",t++)}return e}function Xq(e,t){let n=e.length,r=0,i,o,a,s;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const l={type:e[o][1].type==="labelLink"?"link":"image",start:Object.assign({},e[o][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[o][1].start),end:Object.assign({},e[a][1].end)},d={type:"labelText",start:Object.assign({},e[o+r+2][1].end),end:Object.assign({},e[a-2][1].start)};return s=[["enter",l,t],["enter",c,t]],s=bi(s,e.slice(o+1,o+r+3)),s=bi(s,[["enter",d,t]]),s=bi(s,nd(t.parser.constructs.insideSpan.null,e.slice(o+r+4,a-3),t)),s=bi(s,[["exit",d,t],e[a-2],e[a-1],["exit",c,t]]),s=bi(s,e.slice(a+1)),s=bi(s,[["exit",l,t]]),ai(e,o,e.length,s),e}function Qq(e,t,n){const r=this;let i=r.events.length,o,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return s;function s(m){return o?o._inactive?p(m):(a=r.parser.defined.includes(Pi(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),l):n(m)}function l(m){return m===40?e.attempt(Kq,d,a?d:p)(m):m===91?e.attempt(Gq,d,a?c:p)(m):a?d(m):p(m)}function c(m){return e.attempt(Yq,d,p)(m)}function d(m){return t(m)}function p(m){return o._balanced=!0,n(m)}}function eU(e,t,n){return r;function r(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),i}function i(p){return mn(p)?Zl(e,o)(p):o(p)}function o(p){return p===41?d(p):N1(e,a,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function a(p){return mn(p)?Zl(e,l)(p):d(p)}function s(p){return n(p)}function l(p){return p===34||p===39||p===40?M1(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):d(p)}function c(p){return mn(p)?Zl(e,d)(p):d(p)}function d(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):n(p)}}function tU(e,t,n){const r=this;return i;function i(s){return D1.call(r,e,o,a,"reference","referenceMarker","referenceString")(s)}function o(s){return r.parser.defined.includes(Pi(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function a(s){return n(s)}}function nU(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const rU={name:"labelStartImage",tokenize:iU,resolveAll:xg.resolveAll};function iU(e,t,n){const r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),o}function o(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),a):n(s)}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const oU={name:"labelStartLink",tokenize:aU,resolveAll:xg.resolveAll};function aU(e,t,n){const r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),o}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const Sg={name:"lineEnding",tokenize:sU};function sU(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Qt(e,t,"linePrefix")}}const rd={name:"thematicBreak",tokenize:uU};function uU(e,t,n){let r=0,i;return o;function o(c){return e.enter("thematicBreak"),a(c)}function a(c){return i=c,s(c)}function s(c){return c===i?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||ht(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===i?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),zt(c)?Qt(e,s,"whitespace")(c):s(c))}}const Br={name:"list",tokenize:fU,continuation:{tokenize:dU},exit:hU},lU={tokenize:mU,partial:!0},cU={tokenize:pU,partial:!0};function fU(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return s;function s(h){const y=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:bg(h)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(rd,n,c)(h):c(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return bg(h)&&++a<10?(e.consume(h),l):(!r.interrupt||a<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),c(h)):n(h)}function c(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(zl,r.interrupt?n:d,e.attempt(lU,m,p))}function d(h){return r.containerState.initialBlankLine=!0,o++,m(h)}function p(h){return zt(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),m):n(h)}function m(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function dU(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(zl,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Qt(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!zt(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(cU,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Qt(e,e.attempt(Br,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function pU(e,t,n){const r=this;return Qt(e,i,"listItemIndent",r.containerState.size+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(o):n(o)}}function hU(e){e.exit(this.containerState.type)}function mU(e,t,n){const r=this;return Qt(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(o){const a=r.events[r.events.length-1];return!zt(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const L1={name:"setextUnderline",tokenize:gU,resolveTo:yU};function yU(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const a={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[o][1].end)):e[r][1]=a,e.push(["exit",a,t]),e}function gU(e,t,n){const r=this;let i;return o;function o(c){let d=r.events.length,p;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){p=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||p)?(e.enter("setextHeadingLine"),i=c,a(c)):n(c)}function a(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),zt(c)?Qt(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||ht(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const vU={tokenize:bU};function bU(e){const t=this,n=e.attempt(zl,r,e.attempt(this.parser.constructs.flowInitial,i,Qt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Eq,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const _U={resolveAll:q1()},wU=F1("string"),xU=F1("text");function F1(e){return{tokenize:t,resolveAll:q1(e==="text"?SU:void 0)};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,a,s);return a;function a(d){return c(d)?o(d):s(d)}function s(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),l}function l(d){return c(d)?(n.exit("data"),o(d)):(n.consume(d),l)}function c(d){if(d===null)return!0;const p=i[d];let m=-1;if(p)for(;++m<p.length;){const h=p[m];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function q1(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function SU(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,a=-1,s=0,l;for(;o--;){const c=i[o];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)s++,a--;if(a)break;a=-1}else if(c===-2)l=!0,s++;else if(c!==-1){o++;break}}if(s){const c={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-s,offset:r.end.offset-s,_index:r.start._index+o,_bufferIndex:o?a:r.start._bufferIndex+a},end:Object.assign({},r.end)};r.end=Object.assign({},c.start),r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}function EU(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},o=[];let a=[],s=[];const l={consume:b,enter:S,exit:A,attempt:j(E),check:j(T),interrupt:j(T,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:h,sliceSerialize:m,now:y,defineSkip:v,write:p};let d=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function p(H){return a=bi(a,H),w(),a[a.length-1]!==null?[]:(q(t,0),c.events=nd(o,c.events,c),c.events)}function m(H,re){return CU(h(H),re)}function h(H){return AU(a,H)}function y(){const{line:H,column:re,offset:Q,_index:G,_bufferIndex:V}=r;return{line:H,column:re,offset:Q,_index:G,_bufferIndex:V}}function v(H){i[H.line]=H.column,M()}function w(){let H;for(;r._index<a.length;){const re=a[r._index];if(typeof re=="string")for(H=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===H&&r._bufferIndex<re.length;)_(re.charCodeAt(r._bufferIndex));else _(re)}}function _(H){d=d(H)}function b(H){ht(H)?(r.line++,r.column=1,r.offset+=H===-3?2:1,M()):H!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=H}function S(H,re){const Q=re||{};return Q.type=H,Q.start=y(),c.events.push(["enter",Q,c]),s.push(Q),Q}function A(H){const re=s.pop();return re.end=y(),c.events.push(["exit",re,c]),re}function E(H,re){q(H,re.from)}function T(H,re){re.restore()}function j(H,re){return Q;function Q(G,V,F){let Y,ne,ce,P;return Array.isArray(G)?Oe(G):"tokenize"in G?Oe([G]):ue(G);function ue(Me){return Je;function Je(rt){const Ke=rt!==null&&Me[rt],Pe=rt!==null&&Me.null,Ae=[...Array.isArray(Ke)?Ke:Ke?[Ke]:[],...Array.isArray(Pe)?Pe:Pe?[Pe]:[]];return Oe(Ae)(rt)}}function Oe(Me){return Y=Me,ne=0,Me.length===0?F:D(Me[ne])}function D(Me){return Je;function Je(rt){return P=L(),ce=Me,Me.partial||(c.currentConstruct=Me),Me.name&&c.parser.constructs.disable.null.includes(Me.name)?qe():Me.tokenize.call(re?Object.assign(Object.create(c),re):c,l,De,qe)(rt)}}function De(Me){return H(ce,P),V}function qe(Me){return P.restore(),++ne<Y.length?D(Y[ne]):F}}}function q(H,re){H.resolveAll&&!o.includes(H)&&o.push(H),H.resolve&&ai(c.events,re,c.events.length-re,H.resolve(c.events.slice(re),c)),H.resolveTo&&(c.events=H.resolveTo(c.events,c))}function L(){const H=y(),re=c.previous,Q=c.currentConstruct,G=c.events.length,V=Array.from(s);return{restore:F,from:G};function F(){r=H,c.previous=re,c.currentConstruct=Q,c.events.length=G,s=V,M()}}function M(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function AU(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,o)];else{if(a=e.slice(n,i),r>-1){const s=a[0];typeof s=="string"?a[0]=s.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function CU(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let a;if(typeof o=="string")a=o;else switch(o){case-5:{a="\r";break}case-4:{a=`
|
|
29
29
|
`;break}case-3:{a=`\r
|
|
30
30
|
`;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(o)}i=o===-2,r.push(a)}return r.join("")}const OU=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:$q},disable:{null:[]},document:{42:Br,43:Br,45:Br,48:Br,49:Br,50:Br,51:Br,52:Br,53:Br,54:Br,55:Br,56:Br,57:Br,62:T1},flow:{35:Dq,42:rd,45:[L1,rd],60:Fq,61:L1,95:rd,96:P1,126:P1},flowInitial:{[-2]:wg,[-1]:wg,32:wg},insideSpan:{null:[_g,_U]},string:{38:k1,92:$1},text:{[-5]:Sg,[-4]:Sg,[-3]:Sg,33:rU,38:k1,42:_g,60:[aq,Wq],91:oU,92:[Rq,$1],93:xg,95:_g,96:bq}},Symbol.toStringTag,{value:"Module"}));function TU(e){const n=E1([OU,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:i(Q3),document:i(tq),flow:i(vU),string:i(wU),text:i(xU)};return r;function i(o){return a;function a(s){return EU(r,o,s)}}}function $U(e){for(;!R1(e););return e}const U1=/[\0\t\n\r]/g;function kU(){let e=1,t="",n=!0,r;return i;function i(o,a,s){const l=[];let c,d,p,m,h;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(a||void 0).decode(o)),p=0,t="",n&&(o.charCodeAt(0)===65279&&p++,n=void 0);p<o.length;){if(U1.lastIndex=p,c=U1.exec(o),m=c&&c.index!==void 0?c.index:o.length,h=o.charCodeAt(m),!c){t=o.slice(p);break}if(h===10&&p===m&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),p<m&&(l.push(o.slice(p,m)),e+=m-p),h){case 0:{l.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,l.push(-2);e++<d;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}p=m+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const IU=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function PU(e){return e.replace(IU,RU)}function RU(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return A1(n.slice(o?2:1),o?16:10)}return vg(n)||e}const B1={}.hasOwnProperty;function NU(e,t,n){return typeof t!="string"&&(n=t,t=void 0),DU(n)($U(TU(n).document().write(kU()(e,t,!0))))}function DU(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Te),autolinkProtocol:L,autolinkEmail:L,atxHeading:o(Ze),blockQuote:o(Ke),characterEscape:L,characterReference:L,codeFenced:o(Pe),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:o(Pe,a),codeText:o(Ae,a),codeTextData:L,data:L,codeFlowValue:L,definition:o(Fe),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:o($e),hardBreakEscape:o(lt),hardBreakTrailing:o(lt),htmlFlow:o(K,a),htmlFlowData:L,htmlText:o(K,a),htmlTextData:L,image:o(de),label:a,link:o(Te),listItem:o(et),listItemValue:m,listOrdered:o(Se,p),listUnordered:o(Se),paragraph:o(Ue),reference:D,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:o(Ze),strong:o(ot),thematicBreak:o(mt)},exit:{atxHeading:l(),atxHeadingSequence:E,autolink:l(),autolinkEmail:rt,autolinkProtocol:Je,blockQuote:l(),characterEscapeValue:M,characterReferenceMarkerHexadecimal:qe,characterReferenceMarkerNumeric:qe,characterReferenceValue:Me,codeFenced:l(w),codeFencedFence:v,codeFencedFenceInfo:h,codeFencedFenceMeta:y,codeFlowValue:M,codeIndented:l(_),codeText:l(V),codeTextData:M,data:M,definition:l(),definitionDestinationString:A,definitionLabelString:b,definitionTitleString:S,emphasis:l(),hardBreakEscape:l(re),hardBreakTrailing:l(re),htmlFlow:l(Q),htmlFlowData:M,htmlText:l(G),htmlTextData:M,image:l(Y),label:ce,labelText:ne,lineEnding:H,link:l(F),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:De,resourceDestinationString:P,resourceTitleString:ue,resource:Oe,setextHeading:l(q),setextHeadingLineSequence:j,setextHeadingText:T,strong:l(),thematicBreak:l()}};z1(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ie){let ye={type:"root",children:[]};const xe={stack:[ye],tokenStack:[],config:t,enter:s,exit:c,buffer:a,resume:d,data:n},Be=[];let ct=-1;for(;++ct<ie.length;)if(ie[ct][1].type==="listOrdered"||ie[ct][1].type==="listUnordered")if(ie[ct][0]==="enter")Be.push(ct);else{const pn=Be.pop();ct=i(ie,pn,ct)}for(ct=-1;++ct<ie.length;){const pn=t[ie[ct][0]];B1.call(pn,ie[ct][1].type)&&pn[ie[ct][1].type].call(Object.assign({sliceSerialize:ie[ct][2].sliceSerialize},xe),ie[ct][1])}if(xe.tokenStack.length>0){const pn=xe.tokenStack[xe.tokenStack.length-1];(pn[1]||Z1).call(xe,void 0,pn[0])}for(ye.position={start:da(ie.length>0?ie[0][1].start:{line:1,column:1,offset:0}),end:da(ie.length>0?ie[ie.length-2][1].end:{line:1,column:1,offset:0})},ct=-1;++ct<t.transforms.length;)ye=t.transforms[ct](ye)||ye;return ye}function i(ie,ye,xe){let Be=ye-1,ct=-1,pn=!1,rn,Yt,cn,Cn;for(;++Be<=xe;){const ee=ie[Be];switch(ee[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ee[0]==="enter"?ct++:ct--,Cn=void 0;break}case"lineEndingBlank":{ee[0]==="enter"&&(rn&&!Cn&&!ct&&!cn&&(cn=Be),Cn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Cn=void 0}if(!ct&&ee[0]==="enter"&&ee[1].type==="listItemPrefix"||ct===-1&&ee[0]==="exit"&&(ee[1].type==="listUnordered"||ee[1].type==="listOrdered")){if(rn){let ae=Be;for(Yt=void 0;ae--;){const ft=ie[ae];if(ft[1].type==="lineEnding"||ft[1].type==="lineEndingBlank"){if(ft[0]==="exit")continue;Yt&&(ie[Yt][1].type="lineEndingBlank",pn=!0),ft[1].type="lineEnding",Yt=ae}else if(!(ft[1].type==="linePrefix"||ft[1].type==="blockQuotePrefix"||ft[1].type==="blockQuotePrefixWhitespace"||ft[1].type==="blockQuoteMarker"||ft[1].type==="listItemIndent"))break}cn&&(!Yt||cn<Yt)&&(rn._spread=!0),rn.end=Object.assign({},Yt?ie[Yt][1].start:ee[1].end),ie.splice(Yt||Be,0,["exit",rn,ee[2]]),Be++,xe++}if(ee[1].type==="listItemPrefix"){const ae={type:"listItem",_spread:!1,start:Object.assign({},ee[1].start),end:void 0};rn=ae,ie.splice(Be,0,["enter",ae,ee[2]]),Be++,xe++,cn=void 0,Cn=!0}}}return ie[ye][1]._spread=pn,xe}function o(ie,ye){return xe;function xe(Be){s.call(this,ie(Be),Be),ye&&ye.call(this,Be)}}function a(){this.stack.push({type:"fragment",children:[]})}function s(ie,ye,xe){this.stack[this.stack.length-1].children.push(ie),this.stack.push(ie),this.tokenStack.push([ye,xe]),ie.position={start:da(ye.start),end:void 0}}function l(ie){return ye;function ye(xe){ie&&ie.call(this,xe),c.call(this,xe)}}function c(ie,ye){const xe=this.stack.pop(),Be=this.tokenStack.pop();if(Be)Be[0].type!==ie.type&&(ye?ye.call(this,ie,Be[0]):(Be[1]||Z1).call(this,ie,Be[0]));else throw new Error("Cannot close `"+ie.type+"` ("+Ul({start:ie.start,end:ie.end})+"): it’s not open");xe.position.end=da(ie.end)}function d(){return gg(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function m(ie){if(this.data.expectingFirstListItemValue){const ye=this.stack[this.stack.length-2];ye.start=Number.parseInt(this.sliceSerialize(ie),10),this.data.expectingFirstListItemValue=void 0}}function h(){const ie=this.resume(),ye=this.stack[this.stack.length-1];ye.lang=ie}function y(){const ie=this.resume(),ye=this.stack[this.stack.length-1];ye.meta=ie}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function w(){const ie=this.resume(),ye=this.stack[this.stack.length-1];ye.value=ie.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function _(){const ie=this.resume(),ye=this.stack[this.stack.length-1];ye.value=ie.replace(/(\r?\n|\r)$/g,"")}function b(ie){const ye=this.resume(),xe=this.stack[this.stack.length-1];xe.label=ye,xe.identifier=Pi(this.sliceSerialize(ie)).toLowerCase()}function S(){const ie=this.resume(),ye=this.stack[this.stack.length-1];ye.title=ie}function A(){const ie=this.resume(),ye=this.stack[this.stack.length-1];ye.url=ie}function E(ie){const ye=this.stack[this.stack.length-1];if(!ye.depth){const xe=this.sliceSerialize(ie).length;ye.depth=xe}}function T(){this.data.setextHeadingSlurpLineEnding=!0}function j(ie){const ye=this.stack[this.stack.length-1];ye.depth=this.sliceSerialize(ie).codePointAt(0)===61?1:2}function q(){this.data.setextHeadingSlurpLineEnding=void 0}function L(ie){const xe=this.stack[this.stack.length-1].children;let Be=xe[xe.length-1];(!Be||Be.type!=="text")&&(Be=It(),Be.position={start:da(ie.start),end:void 0},xe.push(Be)),this.stack.push(Be)}function M(ie){const ye=this.stack.pop();ye.value+=this.sliceSerialize(ie),ye.position.end=da(ie.end)}function H(ie){const ye=this.stack[this.stack.length-1];if(this.data.atHardBreak){const xe=ye.children[ye.children.length-1];xe.position.end=da(ie.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ye.type)&&(L.call(this,ie),M.call(this,ie))}function re(){this.data.atHardBreak=!0}function Q(){const ie=this.resume(),ye=this.stack[this.stack.length-1];ye.value=ie}function G(){const ie=this.resume(),ye=this.stack[this.stack.length-1];ye.value=ie}function V(){const ie=this.resume(),ye=this.stack[this.stack.length-1];ye.value=ie}function F(){const ie=this.stack[this.stack.length-1];if(this.data.inReference){const ye=this.data.referenceType||"shortcut";ie.type+="Reference",ie.referenceType=ye,delete ie.url,delete ie.title}else delete ie.identifier,delete ie.label;this.data.referenceType=void 0}function Y(){const ie=this.stack[this.stack.length-1];if(this.data.inReference){const ye=this.data.referenceType||"shortcut";ie.type+="Reference",ie.referenceType=ye,delete ie.url,delete ie.title}else delete ie.identifier,delete ie.label;this.data.referenceType=void 0}function ne(ie){const ye=this.sliceSerialize(ie),xe=this.stack[this.stack.length-2];xe.label=PU(ye),xe.identifier=Pi(ye).toLowerCase()}function ce(){const ie=this.stack[this.stack.length-1],ye=this.resume(),xe=this.stack[this.stack.length-1];if(this.data.inReference=!0,xe.type==="link"){const Be=ie.children;xe.children=Be}else xe.alt=ye}function P(){const ie=this.resume(),ye=this.stack[this.stack.length-1];ye.url=ie}function ue(){const ie=this.resume(),ye=this.stack[this.stack.length-1];ye.title=ie}function Oe(){this.data.inReference=void 0}function D(){this.data.referenceType="collapsed"}function De(ie){const ye=this.resume(),xe=this.stack[this.stack.length-1];xe.label=ye,xe.identifier=Pi(this.sliceSerialize(ie)).toLowerCase(),this.data.referenceType="full"}function qe(ie){this.data.characterReferenceType=ie.type}function Me(ie){const ye=this.sliceSerialize(ie),xe=this.data.characterReferenceType;let Be;xe?(Be=A1(ye,xe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Be=vg(ye);const ct=this.stack.pop();ct.value+=Be,ct.position.end=da(ie.end)}function Je(ie){M.call(this,ie);const ye=this.stack[this.stack.length-1];ye.url=this.sliceSerialize(ie)}function rt(ie){M.call(this,ie);const ye=this.stack[this.stack.length-1];ye.url="mailto:"+this.sliceSerialize(ie)}function Ke(){return{type:"blockquote",children:[]}}function Pe(){return{type:"code",lang:null,meta:null,value:""}}function Ae(){return{type:"inlineCode",value:""}}function Fe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function $e(){return{type:"emphasis",children:[]}}function Ze(){return{type:"heading",depth:0,children:[]}}function lt(){return{type:"break"}}function K(){return{type:"html",value:""}}function de(){return{type:"image",title:null,url:"",alt:null}}function Te(){return{type:"link",title:null,url:"",children:[]}}function Se(ie){return{type:"list",ordered:ie.type==="listOrdered",start:null,spread:ie._spread,children:[]}}function et(ie){return{type:"listItem",spread:ie._spread,checked:null,children:[]}}function Ue(){return{type:"paragraph",children:[]}}function ot(){return{type:"strong",children:[]}}function It(){return{type:"text",value:""}}function mt(){return{type:"thematicBreak"}}}function da(e){return{line:e.line,column:e.column,offset:e.offset}}function z1(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?z1(e,r):MU(e,r)}}function MU(e,t){let n;for(n in t)if(B1.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Z1(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ul({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ul({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ul({start:t.start,end:t.end})+") is still open")}function jU(e){const t=this;t.parser=n;function n(r){return NU(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function LU(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function FU(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
@@ -58,26 +58,26 @@ Check the top-level render call using <`+ze+">.")}return Ce}}function We(Z,Ce){{
|
|
|
58
58
|
* Released under MIT license <https://lodash.com/license>
|
|
59
59
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
60
60
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
61
|
-
*/Gd.exports,function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,d="__lodash_placeholder__",p=1,m=2,h=4,y=1,v=2,w=1,_=2,b=4,S=8,A=16,E=32,T=64,j=128,q=256,L=512,M=30,H="...",re=800,Q=16,G=1,V=2,F=3,Y=1/0,ne=9007199254740991,ce=17976931348623157e292,P=0/0,ue=4294967295,Oe=ue-1,D=ue>>>1,De=[["ary",j],["bind",w],["bindKey",_],["curry",S],["curryRight",A],["flip",L],["partial",E],["partialRight",T],["rearg",q]],qe="[object Arguments]",Me="[object Array]",Je="[object AsyncFunction]",rt="[object Boolean]",Ke="[object Date]",Pe="[object DOMException]",Ae="[object Error]",Fe="[object Function]",$e="[object GeneratorFunction]",Ze="[object Map]",lt="[object Number]",K="[object Null]",de="[object Object]",Te="[object Promise]",Se="[object Proxy]",et="[object RegExp]",Ue="[object Set]",ot="[object String]",It="[object Symbol]",mt="[object Undefined]",ie="[object WeakMap]",ye="[object WeakSet]",xe="[object ArrayBuffer]",Be="[object DataView]",ct="[object Float32Array]",pn="[object Float64Array]",rn="[object Int8Array]",Yt="[object Int16Array]",cn="[object Int32Array]",Cn="[object Uint8Array]",ee="[object Uint8ClampedArray]",ae="[object Uint16Array]",ft="[object Uint32Array]",At=/\b__p \+= '';/g,on=/\b(__p \+=) '' \+/g,pt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Mn=/&(?:amp|lt|gt|quot|#39);/g,sr=/[&<>"']/g,N=RegExp(Mn.source),je=RegExp(sr.source),He=/<%-([\s\S]+?)%>/g,Xe=/<%([\s\S]+?)%>/g,Re=/<%=([\s\S]+?)%>/g,We=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bt=/^\w*$/,Pt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Jt=/[\\^$.*+?()[\]{}|]/g,bn=RegExp(Jt.source),Rn=/^\s+/,mr=/\s/,ta=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,xl=/\{\n\/\* \[wrapped with (.+)\] \*/,Z=/,? & /,Ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ze=/[()=,{}\[\]\/\s]/,yt=/\\(\\)?/g,Kt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,un=/\w*$/,Ft=/^[-+]0x[0-9a-f]+$/i,Tt=/^0b[01]+$/i,jn=/^\[object .+?Constructor\]$/,On=/^0o[0-7]+$/i,Tn=/^(?:0|[1-9]\d*)$/,Xr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zi=/($^)/,dy=/['\n\r\u2028\u2029\\]/g,Qr="\\ud800-\\udfff",uCe="\\u0300-\\u036f",lCe="\\ufe20-\\ufe2f",cCe="\\u20d0-\\u20ff",YM=uCe+lCe+cCe,JM="\\u2700-\\u27bf",XM="a-z\\xdf-\\xf6\\xf8-\\xff",fCe="\\xac\\xb1\\xd7\\xf7",dCe="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",pCe="\\u2000-\\u206f",hCe=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",QM="A-Z\\xc0-\\xd6\\xd8-\\xde",ej="\\ufe0e\\ufe0f",tj=fCe+dCe+pCe+hCe,xw="['’]",mCe="["+Qr+"]",nj="["+tj+"]",py="["+YM+"]",rj="\\d+",yCe="["+JM+"]",ij="["+XM+"]",oj="[^"+Qr+tj+rj+JM+XM+QM+"]",Sw="\\ud83c[\\udffb-\\udfff]",gCe="(?:"+py+"|"+Sw+")",aj="[^"+Qr+"]",Ew="(?:\\ud83c[\\udde6-\\uddff]){2}",Aw="[\\ud800-\\udbff][\\udc00-\\udfff]",Sl="["+QM+"]",sj="\\u200d",uj="(?:"+ij+"|"+oj+")",vCe="(?:"+Sl+"|"+oj+")",lj="(?:"+xw+"(?:d|ll|m|re|s|t|ve))?",cj="(?:"+xw+"(?:D|LL|M|RE|S|T|VE))?",fj=gCe+"?",dj="["+ej+"]?",bCe="(?:"+sj+"(?:"+[aj,Ew,Aw].join("|")+")"+dj+fj+")*",_Ce="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",wCe="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",pj=dj+fj+bCe,xCe="(?:"+[yCe,Ew,Aw].join("|")+")"+pj,SCe="(?:"+[aj+py+"?",py,Ew,Aw,mCe].join("|")+")",ECe=RegExp(xw,"g"),ACe=RegExp(py,"g"),Cw=RegExp(Sw+"(?="+Sw+")|"+SCe+pj,"g"),CCe=RegExp([Sl+"?"+ij+"+"+lj+"(?="+[nj,Sl,"$"].join("|")+")",vCe+"+"+cj+"(?="+[nj,Sl+uj,"$"].join("|")+")",Sl+"?"+uj+"+"+lj,Sl+"+"+cj,wCe,_Ce,rj,xCe].join("|"),"g"),OCe=RegExp("["+sj+Qr+YM+ej+"]"),TCe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$Ce=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],kCe=-1,$n={};$n[ct]=$n[pn]=$n[rn]=$n[Yt]=$n[cn]=$n[Cn]=$n[ee]=$n[ae]=$n[ft]=!0,$n[qe]=$n[Me]=$n[xe]=$n[rt]=$n[Be]=$n[Ke]=$n[Ae]=$n[Fe]=$n[Ze]=$n[lt]=$n[de]=$n[et]=$n[Ue]=$n[ot]=$n[ie]=!1;var Sn={};Sn[qe]=Sn[Me]=Sn[xe]=Sn[Be]=Sn[rt]=Sn[Ke]=Sn[ct]=Sn[pn]=Sn[rn]=Sn[Yt]=Sn[cn]=Sn[Ze]=Sn[lt]=Sn[de]=Sn[et]=Sn[Ue]=Sn[ot]=Sn[It]=Sn[Cn]=Sn[ee]=Sn[ae]=Sn[ft]=!0,Sn[Ae]=Sn[Fe]=Sn[ie]=!1;var ICe={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},PCe={"&":"&","<":"<",">":">",'"':""","'":"'"},RCe={"&":"&","<":"<",">":">",""":'"',"'":"'"},NCe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},DCe=parseFloat,MCe=parseInt,hj=typeof se=="object"&&se&&se.Object===Object&&se,jCe=typeof self=="object"&&self&&self.Object===Object&&self,yr=hj||jCe||Function("return this")(),Ow=t&&!t.nodeType&&t,zs=Ow&&!0&&e&&!e.nodeType&&e,mj=zs&&zs.exports===Ow,Tw=mj&&hj.process,Ei=function(){try{var J=zs&&zs.require&&zs.require("util").types;return J||Tw&&Tw.binding&&Tw.binding("util")}catch{}}(),yj=Ei&&Ei.isArrayBuffer,gj=Ei&&Ei.isDate,vj=Ei&&Ei.isMap,bj=Ei&&Ei.isRegExp,_j=Ei&&Ei.isSet,wj=Ei&&Ei.isTypedArray;function di(J,ge,le){switch(le.length){case 0:return J.call(ge);case 1:return J.call(ge,le[0]);case 2:return J.call(ge,le[0],le[1]);case 3:return J.call(ge,le[0],le[1],le[2])}return J.apply(ge,le)}function LCe(J,ge,le,nt){for(var kt=-1,ln=J==null?0:J.length;++kt<ln;){var tr=J[kt];ge(nt,tr,le(tr),J)}return nt}function Ai(J,ge){for(var le=-1,nt=J==null?0:J.length;++le<nt&&ge(J[le],le,J)!==!1;);return J}function FCe(J,ge){for(var le=J==null?0:J.length;le--&&ge(J[le],le,J)!==!1;);return J}function xj(J,ge){for(var le=-1,nt=J==null?0:J.length;++le<nt;)if(!ge(J[le],le,J))return!1;return!0}function Wa(J,ge){for(var le=-1,nt=J==null?0:J.length,kt=0,ln=[];++le<nt;){var tr=J[le];ge(tr,le,J)&&(ln[kt++]=tr)}return ln}function hy(J,ge){var le=J==null?0:J.length;return!!le&&El(J,ge,0)>-1}function $w(J,ge,le){for(var nt=-1,kt=J==null?0:J.length;++nt<kt;)if(le(ge,J[nt]))return!0;return!1}function kn(J,ge){for(var le=-1,nt=J==null?0:J.length,kt=Array(nt);++le<nt;)kt[le]=ge(J[le],le,J);return kt}function Va(J,ge){for(var le=-1,nt=ge.length,kt=J.length;++le<nt;)J[kt+le]=ge[le];return J}function kw(J,ge,le,nt){var kt=-1,ln=J==null?0:J.length;for(nt&&ln&&(le=J[++kt]);++kt<ln;)le=ge(le,J[kt],kt,J);return le}function qCe(J,ge,le,nt){var kt=J==null?0:J.length;for(nt&&kt&&(le=J[--kt]);kt--;)le=ge(le,J[kt],kt,J);return le}function Iw(J,ge){for(var le=-1,nt=J==null?0:J.length;++le<nt;)if(ge(J[le],le,J))return!0;return!1}var UCe=Pw("length");function BCe(J){return J.split("")}function zCe(J){return J.match(Ce)||[]}function Sj(J,ge,le){var nt;return le(J,function(kt,ln,tr){if(ge(kt,ln,tr))return nt=ln,!1}),nt}function my(J,ge,le,nt){for(var kt=J.length,ln=le+(nt?1:-1);nt?ln--:++ln<kt;)if(ge(J[ln],ln,J))return ln;return-1}function El(J,ge,le){return ge===ge?tOe(J,ge,le):my(J,Ej,le)}function ZCe(J,ge,le,nt){for(var kt=le-1,ln=J.length;++kt<ln;)if(nt(J[kt],ge))return kt;return-1}function Ej(J){return J!==J}function Aj(J,ge){var le=J==null?0:J.length;return le?Nw(J,ge)/le:P}function Pw(J){return function(ge){return ge==null?n:ge[J]}}function Rw(J){return function(ge){return J==null?n:J[ge]}}function Cj(J,ge,le,nt,kt){return kt(J,function(ln,tr,_n){le=nt?(nt=!1,ln):ge(le,ln,tr,_n)}),le}function HCe(J,ge){var le=J.length;for(J.sort(ge);le--;)J[le]=J[le].value;return J}function Nw(J,ge){for(var le,nt=-1,kt=J.length;++nt<kt;){var ln=ge(J[nt]);ln!==n&&(le=le===n?ln:le+ln)}return le}function Dw(J,ge){for(var le=-1,nt=Array(J);++le<J;)nt[le]=ge(le);return nt}function WCe(J,ge){return kn(ge,function(le){return[le,J[le]]})}function Oj(J){return J&&J.slice(0,Ij(J)+1).replace(Rn,"")}function pi(J){return function(ge){return J(ge)}}function Mw(J,ge){return kn(ge,function(le){return J[le]})}function Df(J,ge){return J.has(ge)}function Tj(J,ge){for(var le=-1,nt=J.length;++le<nt&&El(ge,J[le],0)>-1;);return le}function $j(J,ge){for(var le=J.length;le--&&El(ge,J[le],0)>-1;);return le}function VCe(J,ge){for(var le=J.length,nt=0;le--;)J[le]===ge&&++nt;return nt}var KCe=Rw(ICe),GCe=Rw(PCe);function YCe(J){return"\\"+NCe[J]}function JCe(J,ge){return J==null?n:J[ge]}function Al(J){return OCe.test(J)}function XCe(J){return TCe.test(J)}function QCe(J){for(var ge,le=[];!(ge=J.next()).done;)le.push(ge.value);return le}function jw(J){var ge=-1,le=Array(J.size);return J.forEach(function(nt,kt){le[++ge]=[kt,nt]}),le}function kj(J,ge){return function(le){return J(ge(le))}}function Ka(J,ge){for(var le=-1,nt=J.length,kt=0,ln=[];++le<nt;){var tr=J[le];(tr===ge||tr===d)&&(J[le]=d,ln[kt++]=le)}return ln}function yy(J){var ge=-1,le=Array(J.size);return J.forEach(function(nt){le[++ge]=nt}),le}function eOe(J){var ge=-1,le=Array(J.size);return J.forEach(function(nt){le[++ge]=[nt,nt]}),le}function tOe(J,ge,le){for(var nt=le-1,kt=J.length;++nt<kt;)if(J[nt]===ge)return nt;return-1}function nOe(J,ge,le){for(var nt=le+1;nt--;)if(J[nt]===ge)return nt;return nt}function Cl(J){return Al(J)?iOe(J):UCe(J)}function Hi(J){return Al(J)?oOe(J):BCe(J)}function Ij(J){for(var ge=J.length;ge--&&mr.test(J.charAt(ge)););return ge}var rOe=Rw(RCe);function iOe(J){for(var ge=Cw.lastIndex=0;Cw.test(J);)++ge;return ge}function oOe(J){return J.match(Cw)||[]}function aOe(J){return J.match(CCe)||[]}var sOe=function J(ge){ge=ge==null?yr:Ol.defaults(yr.Object(),ge,Ol.pick(yr,$Ce));var le=ge.Array,nt=ge.Date,kt=ge.Error,ln=ge.Function,tr=ge.Math,_n=ge.Object,Lw=ge.RegExp,uOe=ge.String,Ci=ge.TypeError,gy=le.prototype,lOe=ln.prototype,Tl=_n.prototype,vy=ge["__core-js_shared__"],by=lOe.toString,hn=Tl.hasOwnProperty,cOe=0,Pj=function(){var u=/[^.]+$/.exec(vy&&vy.keys&&vy.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}(),_y=Tl.toString,fOe=by.call(_n),dOe=yr._,pOe=Lw("^"+by.call(hn).replace(Jt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wy=mj?ge.Buffer:n,Ga=ge.Symbol,xy=ge.Uint8Array,Rj=wy?wy.allocUnsafe:n,Sy=kj(_n.getPrototypeOf,_n),Nj=_n.create,Dj=Tl.propertyIsEnumerable,Ey=gy.splice,Mj=Ga?Ga.isConcatSpreadable:n,Mf=Ga?Ga.iterator:n,Zs=Ga?Ga.toStringTag:n,Ay=function(){try{var u=Gs(_n,"defineProperty");return u({},"",{}),u}catch{}}(),hOe=ge.clearTimeout!==yr.clearTimeout&&ge.clearTimeout,mOe=nt&&nt.now!==yr.Date.now&&nt.now,yOe=ge.setTimeout!==yr.setTimeout&&ge.setTimeout,Cy=tr.ceil,Oy=tr.floor,Fw=_n.getOwnPropertySymbols,gOe=wy?wy.isBuffer:n,jj=ge.isFinite,vOe=gy.join,bOe=kj(_n.keys,_n),nr=tr.max,kr=tr.min,_Oe=nt.now,wOe=ge.parseInt,Lj=tr.random,xOe=gy.reverse,qw=Gs(ge,"DataView"),jf=Gs(ge,"Map"),Uw=Gs(ge,"Promise"),$l=Gs(ge,"Set"),Lf=Gs(ge,"WeakMap"),Ff=Gs(_n,"create"),Ty=Lf&&new Lf,kl={},SOe=Ys(qw),EOe=Ys(jf),AOe=Ys(Uw),COe=Ys($l),OOe=Ys(Lf),$y=Ga?Ga.prototype:n,qf=$y?$y.valueOf:n,Fj=$y?$y.toString:n;function $(u){if(Ln(u)&&!Rt(u)&&!(u instanceof Gt)){if(u instanceof Oi)return u;if(hn.call(u,"__wrapped__"))return qL(u)}return new Oi(u)}var Il=function(){function u(){}return function(f){if(!Nn(f))return{};if(Nj)return Nj(f);u.prototype=f;var g=new u;return u.prototype=n,g}}();function ky(){}function Oi(u,f){this.__wrapped__=u,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=n}$.templateSettings={escape:He,evaluate:Xe,interpolate:Re,variable:"",imports:{_:$}},$.prototype=ky.prototype,$.prototype.constructor=$,Oi.prototype=Il(ky.prototype),Oi.prototype.constructor=Oi;function Gt(u){this.__wrapped__=u,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ue,this.__views__=[]}function TOe(){var u=new Gt(this.__wrapped__);return u.__actions__=ei(this.__actions__),u.__dir__=this.__dir__,u.__filtered__=this.__filtered__,u.__iteratees__=ei(this.__iteratees__),u.__takeCount__=this.__takeCount__,u.__views__=ei(this.__views__),u}function $Oe(){if(this.__filtered__){var u=new Gt(this);u.__dir__=-1,u.__filtered__=!0}else u=this.clone(),u.__dir__*=-1;return u}function kOe(){var u=this.__wrapped__.value(),f=this.__dir__,g=Rt(u),x=f<0,O=g?u.length:0,I=BTe(0,O,this.__views__),U=I.start,W=I.end,te=W-U,be=x?W:U-1,we=this.__iteratees__,Ee=we.length,Ve=0,at=kr(te,this.__takeCount__);if(!g||!x&&O==te&&at==te)return lL(u,this.__actions__);var _t=[];e:for(;te--&&Ve<at;){be+=f;for(var qt=-1,wt=u[be];++qt<Ee;){var Ht=we[qt],Xt=Ht.iteratee,yi=Ht.type,Ur=Xt(wt);if(yi==V)wt=Ur;else if(!Ur){if(yi==G)continue e;break e}}_t[Ve++]=wt}return _t}Gt.prototype=Il(ky.prototype),Gt.prototype.constructor=Gt;function Hs(u){var f=-1,g=u==null?0:u.length;for(this.clear();++f<g;){var x=u[f];this.set(x[0],x[1])}}function IOe(){this.__data__=Ff?Ff(null):{},this.size=0}function POe(u){var f=this.has(u)&&delete this.__data__[u];return this.size-=f?1:0,f}function ROe(u){var f=this.__data__;if(Ff){var g=f[u];return g===l?n:g}return hn.call(f,u)?f[u]:n}function NOe(u){var f=this.__data__;return Ff?f[u]!==n:hn.call(f,u)}function DOe(u,f){var g=this.__data__;return this.size+=this.has(u)?0:1,g[u]=Ff&&f===n?l:f,this}Hs.prototype.clear=IOe,Hs.prototype.delete=POe,Hs.prototype.get=ROe,Hs.prototype.has=NOe,Hs.prototype.set=DOe;function na(u){var f=-1,g=u==null?0:u.length;for(this.clear();++f<g;){var x=u[f];this.set(x[0],x[1])}}function MOe(){this.__data__=[],this.size=0}function jOe(u){var f=this.__data__,g=Iy(f,u);if(g<0)return!1;var x=f.length-1;return g==x?f.pop():Ey.call(f,g,1),--this.size,!0}function LOe(u){var f=this.__data__,g=Iy(f,u);return g<0?n:f[g][1]}function FOe(u){return Iy(this.__data__,u)>-1}function qOe(u,f){var g=this.__data__,x=Iy(g,u);return x<0?(++this.size,g.push([u,f])):g[x][1]=f,this}na.prototype.clear=MOe,na.prototype.delete=jOe,na.prototype.get=LOe,na.prototype.has=FOe,na.prototype.set=qOe;function ra(u){var f=-1,g=u==null?0:u.length;for(this.clear();++f<g;){var x=u[f];this.set(x[0],x[1])}}function UOe(){this.size=0,this.__data__={hash:new Hs,map:new(jf||na),string:new Hs}}function BOe(u){var f=zy(this,u).delete(u);return this.size-=f?1:0,f}function zOe(u){return zy(this,u).get(u)}function ZOe(u){return zy(this,u).has(u)}function HOe(u,f){var g=zy(this,u),x=g.size;return g.set(u,f),this.size+=g.size==x?0:1,this}ra.prototype.clear=UOe,ra.prototype.delete=BOe,ra.prototype.get=zOe,ra.prototype.has=ZOe,ra.prototype.set=HOe;function Ws(u){var f=-1,g=u==null?0:u.length;for(this.__data__=new ra;++f<g;)this.add(u[f])}function WOe(u){return this.__data__.set(u,l),this}function VOe(u){return this.__data__.has(u)}Ws.prototype.add=Ws.prototype.push=WOe,Ws.prototype.has=VOe;function Wi(u){var f=this.__data__=new na(u);this.size=f.size}function KOe(){this.__data__=new na,this.size=0}function GOe(u){var f=this.__data__,g=f.delete(u);return this.size=f.size,g}function YOe(u){return this.__data__.get(u)}function JOe(u){return this.__data__.has(u)}function XOe(u,f){var g=this.__data__;if(g instanceof na){var x=g.__data__;if(!jf||x.length<i-1)return x.push([u,f]),this.size=++g.size,this;g=this.__data__=new ra(x)}return g.set(u,f),this.size=g.size,this}Wi.prototype.clear=KOe,Wi.prototype.delete=GOe,Wi.prototype.get=YOe,Wi.prototype.has=JOe,Wi.prototype.set=XOe;function qj(u,f){var g=Rt(u),x=!g&&Js(u),O=!g&&!x&&es(u),I=!g&&!x&&!O&&Dl(u),U=g||x||O||I,W=U?Dw(u.length,uOe):[],te=W.length;for(var be in u)(f||hn.call(u,be))&&!(U&&(be=="length"||O&&(be=="offset"||be=="parent")||I&&(be=="buffer"||be=="byteLength"||be=="byteOffset")||sa(be,te)))&&W.push(be);return W}function Uj(u){var f=u.length;return f?u[Xw(0,f-1)]:n}function QOe(u,f){return Zy(ei(u),Vs(f,0,u.length))}function eTe(u){return Zy(ei(u))}function Bw(u,f,g){(g!==n&&!Vi(u[f],g)||g===n&&!(f in u))&&ia(u,f,g)}function Uf(u,f,g){var x=u[f];(!(hn.call(u,f)&&Vi(x,g))||g===n&&!(f in u))&&ia(u,f,g)}function Iy(u,f){for(var g=u.length;g--;)if(Vi(u[g][0],f))return g;return-1}function tTe(u,f,g,x){return Ya(u,function(O,I,U){f(x,O,g(O),U)}),x}function Bj(u,f){return u&&Ao(f,ur(f),u)}function nTe(u,f){return u&&Ao(f,ni(f),u)}function ia(u,f,g){f=="__proto__"&&Ay?Ay(u,f,{configurable:!0,enumerable:!0,value:g,writable:!0}):u[f]=g}function zw(u,f){for(var g=-1,x=f.length,O=le(x),I=u==null;++g<x;)O[g]=I?n:Sx(u,f[g]);return O}function Vs(u,f,g){return u===u&&(g!==n&&(u=u<=g?u:g),f!==n&&(u=u>=f?u:f)),u}function Ti(u,f,g,x,O,I){var U,W=f&p,te=f&m,be=f&h;if(g&&(U=O?g(u,x,O,I):g(u)),U!==n)return U;if(!Nn(u))return u;var we=Rt(u);if(we){if(U=ZTe(u),!W)return ei(u,U)}else{var Ee=Ir(u),Ve=Ee==Fe||Ee==$e;if(es(u))return dL(u,W);if(Ee==de||Ee==qe||Ve&&!O){if(U=te||Ve?{}:IL(u),!W)return te?RTe(u,nTe(U,u)):PTe(u,Bj(U,u))}else{if(!Sn[Ee])return O?u:{};U=HTe(u,Ee,W)}}I||(I=new Wi);var at=I.get(u);if(at)return at;I.set(u,U),aF(u)?u.forEach(function(wt){U.add(Ti(wt,f,g,wt,u,I))}):iF(u)&&u.forEach(function(wt,Ht){U.set(Ht,Ti(wt,f,g,Ht,u,I))});var _t=be?te?lx:ux:te?ni:ur,qt=we?n:_t(u);return Ai(qt||u,function(wt,Ht){qt&&(Ht=wt,wt=u[Ht]),Uf(U,Ht,Ti(wt,f,g,Ht,u,I))}),U}function rTe(u){var f=ur(u);return function(g){return zj(g,u,f)}}function zj(u,f,g){var x=g.length;if(u==null)return!x;for(u=_n(u);x--;){var O=g[x],I=f[O],U=u[O];if(U===n&&!(O in u)||!I(U))return!1}return!0}function Zj(u,f,g){if(typeof u!="function")throw new Ci(a);return Kf(function(){u.apply(n,g)},f)}function Bf(u,f,g,x){var O=-1,I=hy,U=!0,W=u.length,te=[],be=f.length;if(!W)return te;g&&(f=kn(f,pi(g))),x?(I=$w,U=!1):f.length>=i&&(I=Df,U=!1,f=new Ws(f));e:for(;++O<W;){var we=u[O],Ee=g==null?we:g(we);if(we=x||we!==0?we:0,U&&Ee===Ee){for(var Ve=be;Ve--;)if(f[Ve]===Ee)continue e;te.push(we)}else I(f,Ee,x)||te.push(we)}return te}var Ya=gL(Eo),Hj=gL(Hw,!0);function iTe(u,f){var g=!0;return Ya(u,function(x,O,I){return g=!!f(x,O,I),g}),g}function Py(u,f,g){for(var x=-1,O=u.length;++x<O;){var I=u[x],U=f(I);if(U!=null&&(W===n?U===U&&!mi(U):g(U,W)))var W=U,te=I}return te}function oTe(u,f,g,x){var O=u.length;for(g=Dt(g),g<0&&(g=-g>O?0:O+g),x=x===n||x>O?O:Dt(x),x<0&&(x+=O),x=g>x?0:uF(x);g<x;)u[g++]=f;return u}function Wj(u,f){var g=[];return Ya(u,function(x,O,I){f(x,O,I)&&g.push(x)}),g}function gr(u,f,g,x,O){var I=-1,U=u.length;for(g||(g=VTe),O||(O=[]);++I<U;){var W=u[I];f>0&&g(W)?f>1?gr(W,f-1,g,x,O):Va(O,W):x||(O[O.length]=W)}return O}var Zw=vL(),Vj=vL(!0);function Eo(u,f){return u&&Zw(u,f,ur)}function Hw(u,f){return u&&Vj(u,f,ur)}function Ry(u,f){return Wa(f,function(g){return ua(u[g])})}function Ks(u,f){f=Xa(f,u);for(var g=0,x=f.length;u!=null&&g<x;)u=u[Co(f[g++])];return g&&g==x?u:n}function Kj(u,f,g){var x=f(u);return Rt(u)?x:Va(x,g(u))}function Fr(u){return u==null?u===n?mt:K:Zs&&Zs in _n(u)?UTe(u):e$e(u)}function Ww(u,f){return u>f}function aTe(u,f){return u!=null&&hn.call(u,f)}function sTe(u,f){return u!=null&&f in _n(u)}function uTe(u,f,g){return u>=kr(f,g)&&u<nr(f,g)}function Vw(u,f,g){for(var x=g?$w:hy,O=u[0].length,I=u.length,U=I,W=le(I),te=1/0,be=[];U--;){var we=u[U];U&&f&&(we=kn(we,pi(f))),te=kr(we.length,te),W[U]=!g&&(f||O>=120&&we.length>=120)?new Ws(U&&we):n}we=u[0];var Ee=-1,Ve=W[0];e:for(;++Ee<O&&be.length<te;){var at=we[Ee],_t=f?f(at):at;if(at=g||at!==0?at:0,!(Ve?Df(Ve,_t):x(be,_t,g))){for(U=I;--U;){var qt=W[U];if(!(qt?Df(qt,_t):x(u[U],_t,g)))continue e}Ve&&Ve.push(_t),be.push(at)}}return be}function lTe(u,f,g,x){return Eo(u,function(O,I,U){f(x,g(O),I,U)}),x}function zf(u,f,g){f=Xa(f,u),u=DL(u,f);var x=u==null?u:u[Co(ki(f))];return x==null?n:di(x,u,g)}function Gj(u){return Ln(u)&&Fr(u)==qe}function cTe(u){return Ln(u)&&Fr(u)==xe}function fTe(u){return Ln(u)&&Fr(u)==Ke}function Zf(u,f,g,x,O){return u===f?!0:u==null||f==null||!Ln(u)&&!Ln(f)?u!==u&&f!==f:dTe(u,f,g,x,Zf,O)}function dTe(u,f,g,x,O,I){var U=Rt(u),W=Rt(f),te=U?Me:Ir(u),be=W?Me:Ir(f);te=te==qe?de:te,be=be==qe?de:be;var we=te==de,Ee=be==de,Ve=te==be;if(Ve&&es(u)){if(!es(f))return!1;U=!0,we=!1}if(Ve&&!we)return I||(I=new Wi),U||Dl(u)?TL(u,f,g,x,O,I):FTe(u,f,te,g,x,O,I);if(!(g&y)){var at=we&&hn.call(u,"__wrapped__"),_t=Ee&&hn.call(f,"__wrapped__");if(at||_t){var qt=at?u.value():u,wt=_t?f.value():f;return I||(I=new Wi),O(qt,wt,g,x,I)}}return Ve?(I||(I=new Wi),qTe(u,f,g,x,O,I)):!1}function pTe(u){return Ln(u)&&Ir(u)==Ze}function Kw(u,f,g,x){var O=g.length,I=O,U=!x;if(u==null)return!I;for(u=_n(u);O--;){var W=g[O];if(U&&W[2]?W[1]!==u[W[0]]:!(W[0]in u))return!1}for(;++O<I;){W=g[O];var te=W[0],be=u[te],we=W[1];if(U&&W[2]){if(be===n&&!(te in u))return!1}else{var Ee=new Wi;if(x)var Ve=x(be,we,te,u,f,Ee);if(!(Ve===n?Zf(we,be,y|v,x,Ee):Ve))return!1}}return!0}function Yj(u){if(!Nn(u)||GTe(u))return!1;var f=ua(u)?pOe:jn;return f.test(Ys(u))}function hTe(u){return Ln(u)&&Fr(u)==et}function mTe(u){return Ln(u)&&Ir(u)==Ue}function yTe(u){return Ln(u)&&Yy(u.length)&&!!$n[Fr(u)]}function Jj(u){return typeof u=="function"?u:u==null?ri:typeof u=="object"?Rt(u)?eL(u[0],u[1]):Qj(u):bF(u)}function Gw(u){if(!Vf(u))return bOe(u);var f=[];for(var g in _n(u))hn.call(u,g)&&g!="constructor"&&f.push(g);return f}function gTe(u){if(!Nn(u))return QTe(u);var f=Vf(u),g=[];for(var x in u)x=="constructor"&&(f||!hn.call(u,x))||g.push(x);return g}function Yw(u,f){return u<f}function Xj(u,f){var g=-1,x=ti(u)?le(u.length):[];return Ya(u,function(O,I,U){x[++g]=f(O,I,U)}),x}function Qj(u){var f=fx(u);return f.length==1&&f[0][2]?RL(f[0][0],f[0][1]):function(g){return g===u||Kw(g,u,f)}}function eL(u,f){return px(u)&&PL(f)?RL(Co(u),f):function(g){var x=Sx(g,u);return x===n&&x===f?Ex(g,u):Zf(f,x,y|v)}}function Ny(u,f,g,x,O){u!==f&&Zw(f,function(I,U){if(O||(O=new Wi),Nn(I))vTe(u,f,U,g,Ny,x,O);else{var W=x?x(mx(u,U),I,U+"",u,f,O):n;W===n&&(W=I),Bw(u,U,W)}},ni)}function vTe(u,f,g,x,O,I,U){var W=mx(u,g),te=mx(f,g),be=U.get(te);if(be){Bw(u,g,be);return}var we=I?I(W,te,g+"",u,f,U):n,Ee=we===n;if(Ee){var Ve=Rt(te),at=!Ve&&es(te),_t=!Ve&&!at&&Dl(te);we=te,Ve||at||_t?Rt(W)?we=W:qn(W)?we=ei(W):at?(Ee=!1,we=dL(te,!0)):_t?(Ee=!1,we=pL(te,!0)):we=[]:Gf(te)||Js(te)?(we=W,Js(W)?we=lF(W):(!Nn(W)||ua(W))&&(we=IL(te))):Ee=!1}Ee&&(U.set(te,we),O(we,te,x,I,U),U.delete(te)),Bw(u,g,we)}function tL(u,f){var g=u.length;if(g)return f+=f<0?g:0,sa(f,g)?u[f]:n}function nL(u,f,g){f.length?f=kn(f,function(I){return Rt(I)?function(U){return Ks(U,I.length===1?I[0]:I)}:I}):f=[ri];var x=-1;f=kn(f,pi(vt()));var O=Xj(u,function(I,U,W){var te=kn(f,function(be){return be(I)});return{criteria:te,index:++x,value:I}});return HCe(O,function(I,U){return ITe(I,U,g)})}function bTe(u,f){return rL(u,f,function(g,x){return Ex(u,x)})}function rL(u,f,g){for(var x=-1,O=f.length,I={};++x<O;){var U=f[x],W=Ks(u,U);g(W,U)&&Hf(I,Xa(U,u),W)}return I}function _Te(u){return function(f){return Ks(f,u)}}function Jw(u,f,g,x){var O=x?ZCe:El,I=-1,U=f.length,W=u;for(u===f&&(f=ei(f)),g&&(W=kn(u,pi(g)));++I<U;)for(var te=0,be=f[I],we=g?g(be):be;(te=O(W,we,te,x))>-1;)W!==u&&Ey.call(W,te,1),Ey.call(u,te,1);return u}function iL(u,f){for(var g=u?f.length:0,x=g-1;g--;){var O=f[g];if(g==x||O!==I){var I=O;sa(O)?Ey.call(u,O,1):tx(u,O)}}return u}function Xw(u,f){return u+Oy(Lj()*(f-u+1))}function wTe(u,f,g,x){for(var O=-1,I=nr(Cy((f-u)/(g||1)),0),U=le(I);I--;)U[x?I:++O]=u,u+=g;return U}function Qw(u,f){var g="";if(!u||f<1||f>ne)return g;do f%2&&(g+=u),f=Oy(f/2),f&&(u+=u);while(f);return g}function Ut(u,f){return yx(NL(u,f,ri),u+"")}function xTe(u){return Uj(Ml(u))}function STe(u,f){var g=Ml(u);return Zy(g,Vs(f,0,g.length))}function Hf(u,f,g,x){if(!Nn(u))return u;f=Xa(f,u);for(var O=-1,I=f.length,U=I-1,W=u;W!=null&&++O<I;){var te=Co(f[O]),be=g;if(te==="__proto__"||te==="constructor"||te==="prototype")return u;if(O!=U){var we=W[te];be=x?x(we,te,W):n,be===n&&(be=Nn(we)?we:sa(f[O+1])?[]:{})}Uf(W,te,be),W=W[te]}return u}var oL=Ty?function(u,f){return Ty.set(u,f),u}:ri,ETe=Ay?function(u,f){return Ay(u,"toString",{configurable:!0,enumerable:!1,value:Cx(f),writable:!0})}:ri;function ATe(u){return Zy(Ml(u))}function $i(u,f,g){var x=-1,O=u.length;f<0&&(f=-f>O?0:O+f),g=g>O?O:g,g<0&&(g+=O),O=f>g?0:g-f>>>0,f>>>=0;for(var I=le(O);++x<O;)I[x]=u[x+f];return I}function CTe(u,f){var g;return Ya(u,function(x,O,I){return g=f(x,O,I),!g}),!!g}function Dy(u,f,g){var x=0,O=u==null?x:u.length;if(typeof f=="number"&&f===f&&O<=D){for(;x<O;){var I=x+O>>>1,U=u[I];U!==null&&!mi(U)&&(g?U<=f:U<f)?x=I+1:O=I}return O}return ex(u,f,ri,g)}function ex(u,f,g,x){var O=0,I=u==null?0:u.length;if(I===0)return 0;f=g(f);for(var U=f!==f,W=f===null,te=mi(f),be=f===n;O<I;){var we=Oy((O+I)/2),Ee=g(u[we]),Ve=Ee!==n,at=Ee===null,_t=Ee===Ee,qt=mi(Ee);if(U)var wt=x||_t;else be?wt=_t&&(x||Ve):W?wt=_t&&Ve&&(x||!at):te?wt=_t&&Ve&&!at&&(x||!qt):at||qt?wt=!1:wt=x?Ee<=f:Ee<f;wt?O=we+1:I=we}return kr(I,Oe)}function aL(u,f){for(var g=-1,x=u.length,O=0,I=[];++g<x;){var U=u[g],W=f?f(U):U;if(!g||!Vi(W,te)){var te=W;I[O++]=U===0?0:U}}return I}function sL(u){return typeof u=="number"?u:mi(u)?P:+u}function hi(u){if(typeof u=="string")return u;if(Rt(u))return kn(u,hi)+"";if(mi(u))return Fj?Fj.call(u):"";var f=u+"";return f=="0"&&1/u==-Y?"-0":f}function Ja(u,f,g){var x=-1,O=hy,I=u.length,U=!0,W=[],te=W;if(g)U=!1,O=$w;else if(I>=i){var be=f?null:jTe(u);if(be)return yy(be);U=!1,O=Df,te=new Ws}else te=f?[]:W;e:for(;++x<I;){var we=u[x],Ee=f?f(we):we;if(we=g||we!==0?we:0,U&&Ee===Ee){for(var Ve=te.length;Ve--;)if(te[Ve]===Ee)continue e;f&&te.push(Ee),W.push(we)}else O(te,Ee,g)||(te!==W&&te.push(Ee),W.push(we))}return W}function tx(u,f){return f=Xa(f,u),u=DL(u,f),u==null||delete u[Co(ki(f))]}function uL(u,f,g,x){return Hf(u,f,g(Ks(u,f)),x)}function My(u,f,g,x){for(var O=u.length,I=x?O:-1;(x?I--:++I<O)&&f(u[I],I,u););return g?$i(u,x?0:I,x?I+1:O):$i(u,x?I+1:0,x?O:I)}function lL(u,f){var g=u;return g instanceof Gt&&(g=g.value()),kw(f,function(x,O){return O.func.apply(O.thisArg,Va([x],O.args))},g)}function nx(u,f,g){var x=u.length;if(x<2)return x?Ja(u[0]):[];for(var O=-1,I=le(x);++O<x;)for(var U=u[O],W=-1;++W<x;)W!=O&&(I[O]=Bf(I[O]||U,u[W],f,g));return Ja(gr(I,1),f,g)}function cL(u,f,g){for(var x=-1,O=u.length,I=f.length,U={};++x<O;){var W=x<I?f[x]:n;g(U,u[x],W)}return U}function rx(u){return qn(u)?u:[]}function ix(u){return typeof u=="function"?u:ri}function Xa(u,f){return Rt(u)?u:px(u,f)?[u]:FL(fn(u))}var OTe=Ut;function Qa(u,f,g){var x=u.length;return g=g===n?x:g,!f&&g>=x?u:$i(u,f,g)}var fL=hOe||function(u){return yr.clearTimeout(u)};function dL(u,f){if(f)return u.slice();var g=u.length,x=Rj?Rj(g):new u.constructor(g);return u.copy(x),x}function ox(u){var f=new u.constructor(u.byteLength);return new xy(f).set(new xy(u)),f}function TTe(u,f){var g=f?ox(u.buffer):u.buffer;return new u.constructor(g,u.byteOffset,u.byteLength)}function $Te(u){var f=new u.constructor(u.source,un.exec(u));return f.lastIndex=u.lastIndex,f}function kTe(u){return qf?_n(qf.call(u)):{}}function pL(u,f){var g=f?ox(u.buffer):u.buffer;return new u.constructor(g,u.byteOffset,u.length)}function hL(u,f){if(u!==f){var g=u!==n,x=u===null,O=u===u,I=mi(u),U=f!==n,W=f===null,te=f===f,be=mi(f);if(!W&&!be&&!I&&u>f||I&&U&&te&&!W&&!be||x&&U&&te||!g&&te||!O)return 1;if(!x&&!I&&!be&&u<f||be&&g&&O&&!x&&!I||W&&g&&O||!U&&O||!te)return-1}return 0}function ITe(u,f,g){for(var x=-1,O=u.criteria,I=f.criteria,U=O.length,W=g.length;++x<U;){var te=hL(O[x],I[x]);if(te){if(x>=W)return te;var be=g[x];return te*(be=="desc"?-1:1)}}return u.index-f.index}function mL(u,f,g,x){for(var O=-1,I=u.length,U=g.length,W=-1,te=f.length,be=nr(I-U,0),we=le(te+be),Ee=!x;++W<te;)we[W]=f[W];for(;++O<U;)(Ee||O<I)&&(we[g[O]]=u[O]);for(;be--;)we[W++]=u[O++];return we}function yL(u,f,g,x){for(var O=-1,I=u.length,U=-1,W=g.length,te=-1,be=f.length,we=nr(I-W,0),Ee=le(we+be),Ve=!x;++O<we;)Ee[O]=u[O];for(var at=O;++te<be;)Ee[at+te]=f[te];for(;++U<W;)(Ve||O<I)&&(Ee[at+g[U]]=u[O++]);return Ee}function ei(u,f){var g=-1,x=u.length;for(f||(f=le(x));++g<x;)f[g]=u[g];return f}function Ao(u,f,g,x){var O=!g;g||(g={});for(var I=-1,U=f.length;++I<U;){var W=f[I],te=x?x(g[W],u[W],W,g,u):n;te===n&&(te=u[W]),O?ia(g,W,te):Uf(g,W,te)}return g}function PTe(u,f){return Ao(u,dx(u),f)}function RTe(u,f){return Ao(u,$L(u),f)}function jy(u,f){return function(g,x){var O=Rt(g)?LCe:tTe,I=f?f():{};return O(g,u,vt(x,2),I)}}function Pl(u){return Ut(function(f,g){var x=-1,O=g.length,I=O>1?g[O-1]:n,U=O>2?g[2]:n;for(I=u.length>3&&typeof I=="function"?(O--,I):n,U&&qr(g[0],g[1],U)&&(I=O<3?n:I,O=1),f=_n(f);++x<O;){var W=g[x];W&&u(f,W,x,I)}return f})}function gL(u,f){return function(g,x){if(g==null)return g;if(!ti(g))return u(g,x);for(var O=g.length,I=f?O:-1,U=_n(g);(f?I--:++I<O)&&x(U[I],I,U)!==!1;);return g}}function vL(u){return function(f,g,x){for(var O=-1,I=_n(f),U=x(f),W=U.length;W--;){var te=U[u?W:++O];if(g(I[te],te,I)===!1)break}return f}}function NTe(u,f,g){var x=f&w,O=Wf(u);function I(){var U=this&&this!==yr&&this instanceof I?O:u;return U.apply(x?g:this,arguments)}return I}function bL(u){return function(f){f=fn(f);var g=Al(f)?Hi(f):n,x=g?g[0]:f.charAt(0),O=g?Qa(g,1).join(""):f.slice(1);return x[u]()+O}}function Rl(u){return function(f){return kw(gF(yF(f).replace(ECe,"")),u,"")}}function Wf(u){return function(){var f=arguments;switch(f.length){case 0:return new u;case 1:return new u(f[0]);case 2:return new u(f[0],f[1]);case 3:return new u(f[0],f[1],f[2]);case 4:return new u(f[0],f[1],f[2],f[3]);case 5:return new u(f[0],f[1],f[2],f[3],f[4]);case 6:return new u(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new u(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var g=Il(u.prototype),x=u.apply(g,f);return Nn(x)?x:g}}function DTe(u,f,g){var x=Wf(u);function O(){for(var I=arguments.length,U=le(I),W=I,te=Nl(O);W--;)U[W]=arguments[W];var be=I<3&&U[0]!==te&&U[I-1]!==te?[]:Ka(U,te);if(I-=be.length,I<g)return EL(u,f,Ly,O.placeholder,n,U,be,n,n,g-I);var we=this&&this!==yr&&this instanceof O?x:u;return di(we,this,U)}return O}function _L(u){return function(f,g,x){var O=_n(f);if(!ti(f)){var I=vt(g,3);f=ur(f),g=function(W){return I(O[W],W,O)}}var U=u(f,g,x);return U>-1?O[I?f[U]:U]:n}}function wL(u){return aa(function(f){var g=f.length,x=g,O=Oi.prototype.thru;for(u&&f.reverse();x--;){var I=f[x];if(typeof I!="function")throw new Ci(a);if(O&&!U&&By(I)=="wrapper")var U=new Oi([],!0)}for(x=U?x:g;++x<g;){I=f[x];var W=By(I),te=W=="wrapper"?cx(I):n;te&&hx(te[0])&&te[1]==(j|S|E|q)&&!te[4].length&&te[9]==1?U=U[By(te[0])].apply(U,te[3]):U=I.length==1&&hx(I)?U[W]():U.thru(I)}return function(){var be=arguments,we=be[0];if(U&&be.length==1&&Rt(we))return U.plant(we).value();for(var Ee=0,Ve=g?f[Ee].apply(this,be):we;++Ee<g;)Ve=f[Ee].call(this,Ve);return Ve}})}function Ly(u,f,g,x,O,I,U,W,te,be){var we=f&j,Ee=f&w,Ve=f&_,at=f&(S|A),_t=f&L,qt=Ve?n:Wf(u);function wt(){for(var Ht=arguments.length,Xt=le(Ht),yi=Ht;yi--;)Xt[yi]=arguments[yi];if(at)var Ur=Nl(wt),gi=VCe(Xt,Ur);if(x&&(Xt=mL(Xt,x,O,at)),I&&(Xt=yL(Xt,I,U,at)),Ht-=gi,at&&Ht<be){var Un=Ka(Xt,Ur);return EL(u,f,Ly,wt.placeholder,g,Xt,Un,W,te,be-Ht)}var Ki=Ee?g:this,ca=Ve?Ki[u]:u;return Ht=Xt.length,W?Xt=t$e(Xt,W):_t&&Ht>1&&Xt.reverse(),we&&te<Ht&&(Xt.length=te),this&&this!==yr&&this instanceof wt&&(ca=qt||Wf(ca)),ca.apply(Ki,Xt)}return wt}function xL(u,f){return function(g,x){return lTe(g,u,f(x),{})}}function Fy(u,f){return function(g,x){var O;if(g===n&&x===n)return f;if(g!==n&&(O=g),x!==n){if(O===n)return x;typeof g=="string"||typeof x=="string"?(g=hi(g),x=hi(x)):(g=sL(g),x=sL(x)),O=u(g,x)}return O}}function ax(u){return aa(function(f){return f=kn(f,pi(vt())),Ut(function(g){var x=this;return u(f,function(O){return di(O,x,g)})})})}function qy(u,f){f=f===n?" ":hi(f);var g=f.length;if(g<2)return g?Qw(f,u):f;var x=Qw(f,Cy(u/Cl(f)));return Al(f)?Qa(Hi(x),0,u).join(""):x.slice(0,u)}function MTe(u,f,g,x){var O=f&w,I=Wf(u);function U(){for(var W=-1,te=arguments.length,be=-1,we=x.length,Ee=le(we+te),Ve=this&&this!==yr&&this instanceof U?I:u;++be<we;)Ee[be]=x[be];for(;te--;)Ee[be++]=arguments[++W];return di(Ve,O?g:this,Ee)}return U}function SL(u){return function(f,g,x){return x&&typeof x!="number"&&qr(f,g,x)&&(g=x=n),f=la(f),g===n?(g=f,f=0):g=la(g),x=x===n?f<g?1:-1:la(x),wTe(f,g,x,u)}}function Uy(u){return function(f,g){return typeof f=="string"&&typeof g=="string"||(f=Ii(f),g=Ii(g)),u(f,g)}}function EL(u,f,g,x,O,I,U,W,te,be){var we=f&S,Ee=we?U:n,Ve=we?n:U,at=we?I:n,_t=we?n:I;f|=we?E:T,f&=~(we?T:E),f&b||(f&=~(w|_));var qt=[u,f,O,at,Ee,_t,Ve,W,te,be],wt=g.apply(n,qt);return hx(u)&&ML(wt,qt),wt.placeholder=x,jL(wt,u,f)}function sx(u){var f=tr[u];return function(g,x){if(g=Ii(g),x=x==null?0:kr(Dt(x),292),x&&jj(g)){var O=(fn(g)+"e").split("e"),I=f(O[0]+"e"+(+O[1]+x));return O=(fn(I)+"e").split("e"),+(O[0]+"e"+(+O[1]-x))}return f(g)}}var jTe=$l&&1/yy(new $l([,-0]))[1]==Y?function(u){return new $l(u)}:$x;function AL(u){return function(f){var g=Ir(f);return g==Ze?jw(f):g==Ue?eOe(f):WCe(f,u(f))}}function oa(u,f,g,x,O,I,U,W){var te=f&_;if(!te&&typeof u!="function")throw new Ci(a);var be=x?x.length:0;if(be||(f&=~(E|T),x=O=n),U=U===n?U:nr(Dt(U),0),W=W===n?W:Dt(W),be-=O?O.length:0,f&T){var we=x,Ee=O;x=O=n}var Ve=te?n:cx(u),at=[u,f,g,x,O,we,Ee,I,U,W];if(Ve&&XTe(at,Ve),u=at[0],f=at[1],g=at[2],x=at[3],O=at[4],W=at[9]=at[9]===n?te?0:u.length:nr(at[9]-be,0),!W&&f&(S|A)&&(f&=~(S|A)),!f||f==w)var _t=NTe(u,f,g);else f==S||f==A?_t=DTe(u,f,W):(f==E||f==(w|E))&&!O.length?_t=MTe(u,f,g,x):_t=Ly.apply(n,at);var qt=Ve?oL:ML;return jL(qt(_t,at),u,f)}function CL(u,f,g,x){return u===n||Vi(u,Tl[g])&&!hn.call(x,g)?f:u}function OL(u,f,g,x,O,I){return Nn(u)&&Nn(f)&&(I.set(f,u),Ny(u,f,n,OL,I),I.delete(f)),u}function LTe(u){return Gf(u)?n:u}function TL(u,f,g,x,O,I){var U=g&y,W=u.length,te=f.length;if(W!=te&&!(U&&te>W))return!1;var be=I.get(u),we=I.get(f);if(be&&we)return be==f&&we==u;var Ee=-1,Ve=!0,at=g&v?new Ws:n;for(I.set(u,f),I.set(f,u);++Ee<W;){var _t=u[Ee],qt=f[Ee];if(x)var wt=U?x(qt,_t,Ee,f,u,I):x(_t,qt,Ee,u,f,I);if(wt!==n){if(wt)continue;Ve=!1;break}if(at){if(!Iw(f,function(Ht,Xt){if(!Df(at,Xt)&&(_t===Ht||O(_t,Ht,g,x,I)))return at.push(Xt)})){Ve=!1;break}}else if(!(_t===qt||O(_t,qt,g,x,I))){Ve=!1;break}}return I.delete(u),I.delete(f),Ve}function FTe(u,f,g,x,O,I,U){switch(g){case Be:if(u.byteLength!=f.byteLength||u.byteOffset!=f.byteOffset)return!1;u=u.buffer,f=f.buffer;case xe:return!(u.byteLength!=f.byteLength||!I(new xy(u),new xy(f)));case rt:case Ke:case lt:return Vi(+u,+f);case Ae:return u.name==f.name&&u.message==f.message;case et:case ot:return u==f+"";case Ze:var W=jw;case Ue:var te=x&y;if(W||(W=yy),u.size!=f.size&&!te)return!1;var be=U.get(u);if(be)return be==f;x|=v,U.set(u,f);var we=TL(W(u),W(f),x,O,I,U);return U.delete(u),we;case It:if(qf)return qf.call(u)==qf.call(f)}return!1}function qTe(u,f,g,x,O,I){var U=g&y,W=ux(u),te=W.length,be=ux(f),we=be.length;if(te!=we&&!U)return!1;for(var Ee=te;Ee--;){var Ve=W[Ee];if(!(U?Ve in f:hn.call(f,Ve)))return!1}var at=I.get(u),_t=I.get(f);if(at&&_t)return at==f&&_t==u;var qt=!0;I.set(u,f),I.set(f,u);for(var wt=U;++Ee<te;){Ve=W[Ee];var Ht=u[Ve],Xt=f[Ve];if(x)var yi=U?x(Xt,Ht,Ve,f,u,I):x(Ht,Xt,Ve,u,f,I);if(!(yi===n?Ht===Xt||O(Ht,Xt,g,x,I):yi)){qt=!1;break}wt||(wt=Ve=="constructor")}if(qt&&!wt){var Ur=u.constructor,gi=f.constructor;Ur!=gi&&"constructor"in u&&"constructor"in f&&!(typeof Ur=="function"&&Ur instanceof Ur&&typeof gi=="function"&&gi instanceof gi)&&(qt=!1)}return I.delete(u),I.delete(f),qt}function aa(u){return yx(NL(u,n,zL),u+"")}function ux(u){return Kj(u,ur,dx)}function lx(u){return Kj(u,ni,$L)}var cx=Ty?function(u){return Ty.get(u)}:$x;function By(u){for(var f=u.name+"",g=kl[f],x=hn.call(kl,f)?g.length:0;x--;){var O=g[x],I=O.func;if(I==null||I==u)return O.name}return f}function Nl(u){var f=hn.call($,"placeholder")?$:u;return f.placeholder}function vt(){var u=$.iteratee||Ox;return u=u===Ox?Jj:u,arguments.length?u(arguments[0],arguments[1]):u}function zy(u,f){var g=u.__data__;return KTe(f)?g[typeof f=="string"?"string":"hash"]:g.map}function fx(u){for(var f=ur(u),g=f.length;g--;){var x=f[g],O=u[x];f[g]=[x,O,PL(O)]}return f}function Gs(u,f){var g=JCe(u,f);return Yj(g)?g:n}function UTe(u){var f=hn.call(u,Zs),g=u[Zs];try{u[Zs]=n;var x=!0}catch{}var O=_y.call(u);return x&&(f?u[Zs]=g:delete u[Zs]),O}var dx=Fw?function(u){return u==null?[]:(u=_n(u),Wa(Fw(u),function(f){return Dj.call(u,f)}))}:kx,$L=Fw?function(u){for(var f=[];u;)Va(f,dx(u)),u=Sy(u);return f}:kx,Ir=Fr;(qw&&Ir(new qw(new ArrayBuffer(1)))!=Be||jf&&Ir(new jf)!=Ze||Uw&&Ir(Uw.resolve())!=Te||$l&&Ir(new $l)!=Ue||Lf&&Ir(new Lf)!=ie)&&(Ir=function(u){var f=Fr(u),g=f==de?u.constructor:n,x=g?Ys(g):"";if(x)switch(x){case SOe:return Be;case EOe:return Ze;case AOe:return Te;case COe:return Ue;case OOe:return ie}return f});function BTe(u,f,g){for(var x=-1,O=g.length;++x<O;){var I=g[x],U=I.size;switch(I.type){case"drop":u+=U;break;case"dropRight":f-=U;break;case"take":f=kr(f,u+U);break;case"takeRight":u=nr(u,f-U);break}}return{start:u,end:f}}function zTe(u){var f=u.match(xl);return f?f[1].split(Z):[]}function kL(u,f,g){f=Xa(f,u);for(var x=-1,O=f.length,I=!1;++x<O;){var U=Co(f[x]);if(!(I=u!=null&&g(u,U)))break;u=u[U]}return I||++x!=O?I:(O=u==null?0:u.length,!!O&&Yy(O)&&sa(U,O)&&(Rt(u)||Js(u)))}function ZTe(u){var f=u.length,g=new u.constructor(f);return f&&typeof u[0]=="string"&&hn.call(u,"index")&&(g.index=u.index,g.input=u.input),g}function IL(u){return typeof u.constructor=="function"&&!Vf(u)?Il(Sy(u)):{}}function HTe(u,f,g){var x=u.constructor;switch(f){case xe:return ox(u);case rt:case Ke:return new x(+u);case Be:return TTe(u,g);case ct:case pn:case rn:case Yt:case cn:case Cn:case ee:case ae:case ft:return pL(u,g);case Ze:return new x;case lt:case ot:return new x(u);case et:return $Te(u);case Ue:return new x;case It:return kTe(u)}}function WTe(u,f){var g=f.length;if(!g)return u;var x=g-1;return f[x]=(g>1?"& ":"")+f[x],f=f.join(g>2?", ":" "),u.replace(ta,`{
|
|
61
|
+
*/Gd.exports,function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,d="__lodash_placeholder__",p=1,m=2,h=4,y=1,v=2,w=1,_=2,b=4,S=8,A=16,E=32,T=64,j=128,q=256,L=512,M=30,H="...",re=800,Q=16,G=1,V=2,F=3,Y=1/0,ne=9007199254740991,ce=17976931348623157e292,P=0/0,ue=4294967295,Oe=ue-1,D=ue>>>1,De=[["ary",j],["bind",w],["bindKey",_],["curry",S],["curryRight",A],["flip",L],["partial",E],["partialRight",T],["rearg",q]],qe="[object Arguments]",Me="[object Array]",Je="[object AsyncFunction]",rt="[object Boolean]",Ke="[object Date]",Pe="[object DOMException]",Ae="[object Error]",Fe="[object Function]",$e="[object GeneratorFunction]",Ze="[object Map]",lt="[object Number]",K="[object Null]",de="[object Object]",Te="[object Promise]",Se="[object Proxy]",et="[object RegExp]",Ue="[object Set]",ot="[object String]",It="[object Symbol]",mt="[object Undefined]",ie="[object WeakMap]",ye="[object WeakSet]",xe="[object ArrayBuffer]",Be="[object DataView]",ct="[object Float32Array]",pn="[object Float64Array]",rn="[object Int8Array]",Yt="[object Int16Array]",cn="[object Int32Array]",Cn="[object Uint8Array]",ee="[object Uint8ClampedArray]",ae="[object Uint16Array]",ft="[object Uint32Array]",At=/\b__p \+= '';/g,on=/\b(__p \+=) '' \+/g,pt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Mn=/&(?:amp|lt|gt|quot|#39);/g,sr=/[&<>"']/g,N=RegExp(Mn.source),je=RegExp(sr.source),He=/<%-([\s\S]+?)%>/g,Xe=/<%([\s\S]+?)%>/g,Re=/<%=([\s\S]+?)%>/g,We=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_t=/^\w*$/,Pt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Jt=/[\\^$.*+?()[\]{}|]/g,bn=RegExp(Jt.source),Rn=/^\s+/,mr=/\s/,ta=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,xl=/\{\n\/\* \[wrapped with (.+)\] \*/,Z=/,? & /,Ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ze=/[()=,{}\[\]\/\s]/,yt=/\\(\\)?/g,Kt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,un=/\w*$/,Ft=/^[-+]0x[0-9a-f]+$/i,Tt=/^0b[01]+$/i,jn=/^\[object .+?Constructor\]$/,On=/^0o[0-7]+$/i,Tn=/^(?:0|[1-9]\d*)$/,Xr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zi=/($^)/,dy=/['\n\r\u2028\u2029\\]/g,Qr="\\ud800-\\udfff",uCe="\\u0300-\\u036f",lCe="\\ufe20-\\ufe2f",cCe="\\u20d0-\\u20ff",YM=uCe+lCe+cCe,JM="\\u2700-\\u27bf",XM="a-z\\xdf-\\xf6\\xf8-\\xff",fCe="\\xac\\xb1\\xd7\\xf7",dCe="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",pCe="\\u2000-\\u206f",hCe=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",QM="A-Z\\xc0-\\xd6\\xd8-\\xde",ej="\\ufe0e\\ufe0f",tj=fCe+dCe+pCe+hCe,xw="['’]",mCe="["+Qr+"]",nj="["+tj+"]",py="["+YM+"]",rj="\\d+",yCe="["+JM+"]",ij="["+XM+"]",oj="[^"+Qr+tj+rj+JM+XM+QM+"]",Sw="\\ud83c[\\udffb-\\udfff]",gCe="(?:"+py+"|"+Sw+")",aj="[^"+Qr+"]",Ew="(?:\\ud83c[\\udde6-\\uddff]){2}",Aw="[\\ud800-\\udbff][\\udc00-\\udfff]",Sl="["+QM+"]",sj="\\u200d",uj="(?:"+ij+"|"+oj+")",vCe="(?:"+Sl+"|"+oj+")",lj="(?:"+xw+"(?:d|ll|m|re|s|t|ve))?",cj="(?:"+xw+"(?:D|LL|M|RE|S|T|VE))?",fj=gCe+"?",dj="["+ej+"]?",bCe="(?:"+sj+"(?:"+[aj,Ew,Aw].join("|")+")"+dj+fj+")*",_Ce="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",wCe="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",pj=dj+fj+bCe,xCe="(?:"+[yCe,Ew,Aw].join("|")+")"+pj,SCe="(?:"+[aj+py+"?",py,Ew,Aw,mCe].join("|")+")",ECe=RegExp(xw,"g"),ACe=RegExp(py,"g"),Cw=RegExp(Sw+"(?="+Sw+")|"+SCe+pj,"g"),CCe=RegExp([Sl+"?"+ij+"+"+lj+"(?="+[nj,Sl,"$"].join("|")+")",vCe+"+"+cj+"(?="+[nj,Sl+uj,"$"].join("|")+")",Sl+"?"+uj+"+"+lj,Sl+"+"+cj,wCe,_Ce,rj,xCe].join("|"),"g"),OCe=RegExp("["+sj+Qr+YM+ej+"]"),TCe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$Ce=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],kCe=-1,$n={};$n[ct]=$n[pn]=$n[rn]=$n[Yt]=$n[cn]=$n[Cn]=$n[ee]=$n[ae]=$n[ft]=!0,$n[qe]=$n[Me]=$n[xe]=$n[rt]=$n[Be]=$n[Ke]=$n[Ae]=$n[Fe]=$n[Ze]=$n[lt]=$n[de]=$n[et]=$n[Ue]=$n[ot]=$n[ie]=!1;var Sn={};Sn[qe]=Sn[Me]=Sn[xe]=Sn[Be]=Sn[rt]=Sn[Ke]=Sn[ct]=Sn[pn]=Sn[rn]=Sn[Yt]=Sn[cn]=Sn[Ze]=Sn[lt]=Sn[de]=Sn[et]=Sn[Ue]=Sn[ot]=Sn[It]=Sn[Cn]=Sn[ee]=Sn[ae]=Sn[ft]=!0,Sn[Ae]=Sn[Fe]=Sn[ie]=!1;var ICe={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},PCe={"&":"&","<":"<",">":">",'"':""","'":"'"},RCe={"&":"&","<":"<",">":">",""":'"',"'":"'"},NCe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},DCe=parseFloat,MCe=parseInt,hj=typeof se=="object"&&se&&se.Object===Object&&se,jCe=typeof self=="object"&&self&&self.Object===Object&&self,yr=hj||jCe||Function("return this")(),Ow=t&&!t.nodeType&&t,zs=Ow&&!0&&e&&!e.nodeType&&e,mj=zs&&zs.exports===Ow,Tw=mj&&hj.process,Ei=function(){try{var J=zs&&zs.require&&zs.require("util").types;return J||Tw&&Tw.binding&&Tw.binding("util")}catch{}}(),yj=Ei&&Ei.isArrayBuffer,gj=Ei&&Ei.isDate,vj=Ei&&Ei.isMap,bj=Ei&&Ei.isRegExp,_j=Ei&&Ei.isSet,wj=Ei&&Ei.isTypedArray;function di(J,ge,le){switch(le.length){case 0:return J.call(ge);case 1:return J.call(ge,le[0]);case 2:return J.call(ge,le[0],le[1]);case 3:return J.call(ge,le[0],le[1],le[2])}return J.apply(ge,le)}function LCe(J,ge,le,nt){for(var kt=-1,ln=J==null?0:J.length;++kt<ln;){var tr=J[kt];ge(nt,tr,le(tr),J)}return nt}function Ai(J,ge){for(var le=-1,nt=J==null?0:J.length;++le<nt&&ge(J[le],le,J)!==!1;);return J}function FCe(J,ge){for(var le=J==null?0:J.length;le--&&ge(J[le],le,J)!==!1;);return J}function xj(J,ge){for(var le=-1,nt=J==null?0:J.length;++le<nt;)if(!ge(J[le],le,J))return!1;return!0}function Wa(J,ge){for(var le=-1,nt=J==null?0:J.length,kt=0,ln=[];++le<nt;){var tr=J[le];ge(tr,le,J)&&(ln[kt++]=tr)}return ln}function hy(J,ge){var le=J==null?0:J.length;return!!le&&El(J,ge,0)>-1}function $w(J,ge,le){for(var nt=-1,kt=J==null?0:J.length;++nt<kt;)if(le(ge,J[nt]))return!0;return!1}function kn(J,ge){for(var le=-1,nt=J==null?0:J.length,kt=Array(nt);++le<nt;)kt[le]=ge(J[le],le,J);return kt}function Va(J,ge){for(var le=-1,nt=ge.length,kt=J.length;++le<nt;)J[kt+le]=ge[le];return J}function kw(J,ge,le,nt){var kt=-1,ln=J==null?0:J.length;for(nt&&ln&&(le=J[++kt]);++kt<ln;)le=ge(le,J[kt],kt,J);return le}function qCe(J,ge,le,nt){var kt=J==null?0:J.length;for(nt&&kt&&(le=J[--kt]);kt--;)le=ge(le,J[kt],kt,J);return le}function Iw(J,ge){for(var le=-1,nt=J==null?0:J.length;++le<nt;)if(ge(J[le],le,J))return!0;return!1}var UCe=Pw("length");function BCe(J){return J.split("")}function zCe(J){return J.match(Ce)||[]}function Sj(J,ge,le){var nt;return le(J,function(kt,ln,tr){if(ge(kt,ln,tr))return nt=ln,!1}),nt}function my(J,ge,le,nt){for(var kt=J.length,ln=le+(nt?1:-1);nt?ln--:++ln<kt;)if(ge(J[ln],ln,J))return ln;return-1}function El(J,ge,le){return ge===ge?tOe(J,ge,le):my(J,Ej,le)}function ZCe(J,ge,le,nt){for(var kt=le-1,ln=J.length;++kt<ln;)if(nt(J[kt],ge))return kt;return-1}function Ej(J){return J!==J}function Aj(J,ge){var le=J==null?0:J.length;return le?Nw(J,ge)/le:P}function Pw(J){return function(ge){return ge==null?n:ge[J]}}function Rw(J){return function(ge){return J==null?n:J[ge]}}function Cj(J,ge,le,nt,kt){return kt(J,function(ln,tr,_n){le=nt?(nt=!1,ln):ge(le,ln,tr,_n)}),le}function HCe(J,ge){var le=J.length;for(J.sort(ge);le--;)J[le]=J[le].value;return J}function Nw(J,ge){for(var le,nt=-1,kt=J.length;++nt<kt;){var ln=ge(J[nt]);ln!==n&&(le=le===n?ln:le+ln)}return le}function Dw(J,ge){for(var le=-1,nt=Array(J);++le<J;)nt[le]=ge(le);return nt}function WCe(J,ge){return kn(ge,function(le){return[le,J[le]]})}function Oj(J){return J&&J.slice(0,Ij(J)+1).replace(Rn,"")}function pi(J){return function(ge){return J(ge)}}function Mw(J,ge){return kn(ge,function(le){return J[le]})}function Df(J,ge){return J.has(ge)}function Tj(J,ge){for(var le=-1,nt=J.length;++le<nt&&El(ge,J[le],0)>-1;);return le}function $j(J,ge){for(var le=J.length;le--&&El(ge,J[le],0)>-1;);return le}function VCe(J,ge){for(var le=J.length,nt=0;le--;)J[le]===ge&&++nt;return nt}var KCe=Rw(ICe),GCe=Rw(PCe);function YCe(J){return"\\"+NCe[J]}function JCe(J,ge){return J==null?n:J[ge]}function Al(J){return OCe.test(J)}function XCe(J){return TCe.test(J)}function QCe(J){for(var ge,le=[];!(ge=J.next()).done;)le.push(ge.value);return le}function jw(J){var ge=-1,le=Array(J.size);return J.forEach(function(nt,kt){le[++ge]=[kt,nt]}),le}function kj(J,ge){return function(le){return J(ge(le))}}function Ka(J,ge){for(var le=-1,nt=J.length,kt=0,ln=[];++le<nt;){var tr=J[le];(tr===ge||tr===d)&&(J[le]=d,ln[kt++]=le)}return ln}function yy(J){var ge=-1,le=Array(J.size);return J.forEach(function(nt){le[++ge]=nt}),le}function eOe(J){var ge=-1,le=Array(J.size);return J.forEach(function(nt){le[++ge]=[nt,nt]}),le}function tOe(J,ge,le){for(var nt=le-1,kt=J.length;++nt<kt;)if(J[nt]===ge)return nt;return-1}function nOe(J,ge,le){for(var nt=le+1;nt--;)if(J[nt]===ge)return nt;return nt}function Cl(J){return Al(J)?iOe(J):UCe(J)}function Hi(J){return Al(J)?oOe(J):BCe(J)}function Ij(J){for(var ge=J.length;ge--&&mr.test(J.charAt(ge)););return ge}var rOe=Rw(RCe);function iOe(J){for(var ge=Cw.lastIndex=0;Cw.test(J);)++ge;return ge}function oOe(J){return J.match(Cw)||[]}function aOe(J){return J.match(CCe)||[]}var sOe=function J(ge){ge=ge==null?yr:Ol.defaults(yr.Object(),ge,Ol.pick(yr,$Ce));var le=ge.Array,nt=ge.Date,kt=ge.Error,ln=ge.Function,tr=ge.Math,_n=ge.Object,Lw=ge.RegExp,uOe=ge.String,Ci=ge.TypeError,gy=le.prototype,lOe=ln.prototype,Tl=_n.prototype,vy=ge["__core-js_shared__"],by=lOe.toString,hn=Tl.hasOwnProperty,cOe=0,Pj=function(){var u=/[^.]+$/.exec(vy&&vy.keys&&vy.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}(),_y=Tl.toString,fOe=by.call(_n),dOe=yr._,pOe=Lw("^"+by.call(hn).replace(Jt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wy=mj?ge.Buffer:n,Ga=ge.Symbol,xy=ge.Uint8Array,Rj=wy?wy.allocUnsafe:n,Sy=kj(_n.getPrototypeOf,_n),Nj=_n.create,Dj=Tl.propertyIsEnumerable,Ey=gy.splice,Mj=Ga?Ga.isConcatSpreadable:n,Mf=Ga?Ga.iterator:n,Zs=Ga?Ga.toStringTag:n,Ay=function(){try{var u=Gs(_n,"defineProperty");return u({},"",{}),u}catch{}}(),hOe=ge.clearTimeout!==yr.clearTimeout&&ge.clearTimeout,mOe=nt&&nt.now!==yr.Date.now&&nt.now,yOe=ge.setTimeout!==yr.setTimeout&&ge.setTimeout,Cy=tr.ceil,Oy=tr.floor,Fw=_n.getOwnPropertySymbols,gOe=wy?wy.isBuffer:n,jj=ge.isFinite,vOe=gy.join,bOe=kj(_n.keys,_n),nr=tr.max,kr=tr.min,_Oe=nt.now,wOe=ge.parseInt,Lj=tr.random,xOe=gy.reverse,qw=Gs(ge,"DataView"),jf=Gs(ge,"Map"),Uw=Gs(ge,"Promise"),$l=Gs(ge,"Set"),Lf=Gs(ge,"WeakMap"),Ff=Gs(_n,"create"),Ty=Lf&&new Lf,kl={},SOe=Ys(qw),EOe=Ys(jf),AOe=Ys(Uw),COe=Ys($l),OOe=Ys(Lf),$y=Ga?Ga.prototype:n,qf=$y?$y.valueOf:n,Fj=$y?$y.toString:n;function $(u){if(Ln(u)&&!Rt(u)&&!(u instanceof Gt)){if(u instanceof Oi)return u;if(hn.call(u,"__wrapped__"))return qL(u)}return new Oi(u)}var Il=function(){function u(){}return function(f){if(!Nn(f))return{};if(Nj)return Nj(f);u.prototype=f;var g=new u;return u.prototype=n,g}}();function ky(){}function Oi(u,f){this.__wrapped__=u,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=n}$.templateSettings={escape:He,evaluate:Xe,interpolate:Re,variable:"",imports:{_:$}},$.prototype=ky.prototype,$.prototype.constructor=$,Oi.prototype=Il(ky.prototype),Oi.prototype.constructor=Oi;function Gt(u){this.__wrapped__=u,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ue,this.__views__=[]}function TOe(){var u=new Gt(this.__wrapped__);return u.__actions__=ei(this.__actions__),u.__dir__=this.__dir__,u.__filtered__=this.__filtered__,u.__iteratees__=ei(this.__iteratees__),u.__takeCount__=this.__takeCount__,u.__views__=ei(this.__views__),u}function $Oe(){if(this.__filtered__){var u=new Gt(this);u.__dir__=-1,u.__filtered__=!0}else u=this.clone(),u.__dir__*=-1;return u}function kOe(){var u=this.__wrapped__.value(),f=this.__dir__,g=Rt(u),x=f<0,O=g?u.length:0,I=BTe(0,O,this.__views__),U=I.start,W=I.end,te=W-U,be=x?W:U-1,we=this.__iteratees__,Ee=we.length,Ve=0,at=kr(te,this.__takeCount__);if(!g||!x&&O==te&&at==te)return lL(u,this.__actions__);var wt=[];e:for(;te--&&Ve<at;){be+=f;for(var qt=-1,xt=u[be];++qt<Ee;){var Ht=we[qt],Xt=Ht.iteratee,yi=Ht.type,Ur=Xt(xt);if(yi==V)xt=Ur;else if(!Ur){if(yi==G)continue e;break e}}wt[Ve++]=xt}return wt}Gt.prototype=Il(ky.prototype),Gt.prototype.constructor=Gt;function Hs(u){var f=-1,g=u==null?0:u.length;for(this.clear();++f<g;){var x=u[f];this.set(x[0],x[1])}}function IOe(){this.__data__=Ff?Ff(null):{},this.size=0}function POe(u){var f=this.has(u)&&delete this.__data__[u];return this.size-=f?1:0,f}function ROe(u){var f=this.__data__;if(Ff){var g=f[u];return g===l?n:g}return hn.call(f,u)?f[u]:n}function NOe(u){var f=this.__data__;return Ff?f[u]!==n:hn.call(f,u)}function DOe(u,f){var g=this.__data__;return this.size+=this.has(u)?0:1,g[u]=Ff&&f===n?l:f,this}Hs.prototype.clear=IOe,Hs.prototype.delete=POe,Hs.prototype.get=ROe,Hs.prototype.has=NOe,Hs.prototype.set=DOe;function na(u){var f=-1,g=u==null?0:u.length;for(this.clear();++f<g;){var x=u[f];this.set(x[0],x[1])}}function MOe(){this.__data__=[],this.size=0}function jOe(u){var f=this.__data__,g=Iy(f,u);if(g<0)return!1;var x=f.length-1;return g==x?f.pop():Ey.call(f,g,1),--this.size,!0}function LOe(u){var f=this.__data__,g=Iy(f,u);return g<0?n:f[g][1]}function FOe(u){return Iy(this.__data__,u)>-1}function qOe(u,f){var g=this.__data__,x=Iy(g,u);return x<0?(++this.size,g.push([u,f])):g[x][1]=f,this}na.prototype.clear=MOe,na.prototype.delete=jOe,na.prototype.get=LOe,na.prototype.has=FOe,na.prototype.set=qOe;function ra(u){var f=-1,g=u==null?0:u.length;for(this.clear();++f<g;){var x=u[f];this.set(x[0],x[1])}}function UOe(){this.size=0,this.__data__={hash:new Hs,map:new(jf||na),string:new Hs}}function BOe(u){var f=zy(this,u).delete(u);return this.size-=f?1:0,f}function zOe(u){return zy(this,u).get(u)}function ZOe(u){return zy(this,u).has(u)}function HOe(u,f){var g=zy(this,u),x=g.size;return g.set(u,f),this.size+=g.size==x?0:1,this}ra.prototype.clear=UOe,ra.prototype.delete=BOe,ra.prototype.get=zOe,ra.prototype.has=ZOe,ra.prototype.set=HOe;function Ws(u){var f=-1,g=u==null?0:u.length;for(this.__data__=new ra;++f<g;)this.add(u[f])}function WOe(u){return this.__data__.set(u,l),this}function VOe(u){return this.__data__.has(u)}Ws.prototype.add=Ws.prototype.push=WOe,Ws.prototype.has=VOe;function Wi(u){var f=this.__data__=new na(u);this.size=f.size}function KOe(){this.__data__=new na,this.size=0}function GOe(u){var f=this.__data__,g=f.delete(u);return this.size=f.size,g}function YOe(u){return this.__data__.get(u)}function JOe(u){return this.__data__.has(u)}function XOe(u,f){var g=this.__data__;if(g instanceof na){var x=g.__data__;if(!jf||x.length<i-1)return x.push([u,f]),this.size=++g.size,this;g=this.__data__=new ra(x)}return g.set(u,f),this.size=g.size,this}Wi.prototype.clear=KOe,Wi.prototype.delete=GOe,Wi.prototype.get=YOe,Wi.prototype.has=JOe,Wi.prototype.set=XOe;function qj(u,f){var g=Rt(u),x=!g&&Js(u),O=!g&&!x&&es(u),I=!g&&!x&&!O&&Dl(u),U=g||x||O||I,W=U?Dw(u.length,uOe):[],te=W.length;for(var be in u)(f||hn.call(u,be))&&!(U&&(be=="length"||O&&(be=="offset"||be=="parent")||I&&(be=="buffer"||be=="byteLength"||be=="byteOffset")||sa(be,te)))&&W.push(be);return W}function Uj(u){var f=u.length;return f?u[Xw(0,f-1)]:n}function QOe(u,f){return Zy(ei(u),Vs(f,0,u.length))}function eTe(u){return Zy(ei(u))}function Bw(u,f,g){(g!==n&&!Vi(u[f],g)||g===n&&!(f in u))&&ia(u,f,g)}function Uf(u,f,g){var x=u[f];(!(hn.call(u,f)&&Vi(x,g))||g===n&&!(f in u))&&ia(u,f,g)}function Iy(u,f){for(var g=u.length;g--;)if(Vi(u[g][0],f))return g;return-1}function tTe(u,f,g,x){return Ya(u,function(O,I,U){f(x,O,g(O),U)}),x}function Bj(u,f){return u&&Ao(f,ur(f),u)}function nTe(u,f){return u&&Ao(f,ni(f),u)}function ia(u,f,g){f=="__proto__"&&Ay?Ay(u,f,{configurable:!0,enumerable:!0,value:g,writable:!0}):u[f]=g}function zw(u,f){for(var g=-1,x=f.length,O=le(x),I=u==null;++g<x;)O[g]=I?n:Sx(u,f[g]);return O}function Vs(u,f,g){return u===u&&(g!==n&&(u=u<=g?u:g),f!==n&&(u=u>=f?u:f)),u}function Ti(u,f,g,x,O,I){var U,W=f&p,te=f&m,be=f&h;if(g&&(U=O?g(u,x,O,I):g(u)),U!==n)return U;if(!Nn(u))return u;var we=Rt(u);if(we){if(U=ZTe(u),!W)return ei(u,U)}else{var Ee=Ir(u),Ve=Ee==Fe||Ee==$e;if(es(u))return dL(u,W);if(Ee==de||Ee==qe||Ve&&!O){if(U=te||Ve?{}:IL(u),!W)return te?RTe(u,nTe(U,u)):PTe(u,Bj(U,u))}else{if(!Sn[Ee])return O?u:{};U=HTe(u,Ee,W)}}I||(I=new Wi);var at=I.get(u);if(at)return at;I.set(u,U),aF(u)?u.forEach(function(xt){U.add(Ti(xt,f,g,xt,u,I))}):iF(u)&&u.forEach(function(xt,Ht){U.set(Ht,Ti(xt,f,g,Ht,u,I))});var wt=be?te?lx:ux:te?ni:ur,qt=we?n:wt(u);return Ai(qt||u,function(xt,Ht){qt&&(Ht=xt,xt=u[Ht]),Uf(U,Ht,Ti(xt,f,g,Ht,u,I))}),U}function rTe(u){var f=ur(u);return function(g){return zj(g,u,f)}}function zj(u,f,g){var x=g.length;if(u==null)return!x;for(u=_n(u);x--;){var O=g[x],I=f[O],U=u[O];if(U===n&&!(O in u)||!I(U))return!1}return!0}function Zj(u,f,g){if(typeof u!="function")throw new Ci(a);return Kf(function(){u.apply(n,g)},f)}function Bf(u,f,g,x){var O=-1,I=hy,U=!0,W=u.length,te=[],be=f.length;if(!W)return te;g&&(f=kn(f,pi(g))),x?(I=$w,U=!1):f.length>=i&&(I=Df,U=!1,f=new Ws(f));e:for(;++O<W;){var we=u[O],Ee=g==null?we:g(we);if(we=x||we!==0?we:0,U&&Ee===Ee){for(var Ve=be;Ve--;)if(f[Ve]===Ee)continue e;te.push(we)}else I(f,Ee,x)||te.push(we)}return te}var Ya=gL(Eo),Hj=gL(Hw,!0);function iTe(u,f){var g=!0;return Ya(u,function(x,O,I){return g=!!f(x,O,I),g}),g}function Py(u,f,g){for(var x=-1,O=u.length;++x<O;){var I=u[x],U=f(I);if(U!=null&&(W===n?U===U&&!mi(U):g(U,W)))var W=U,te=I}return te}function oTe(u,f,g,x){var O=u.length;for(g=Dt(g),g<0&&(g=-g>O?0:O+g),x=x===n||x>O?O:Dt(x),x<0&&(x+=O),x=g>x?0:uF(x);g<x;)u[g++]=f;return u}function Wj(u,f){var g=[];return Ya(u,function(x,O,I){f(x,O,I)&&g.push(x)}),g}function gr(u,f,g,x,O){var I=-1,U=u.length;for(g||(g=VTe),O||(O=[]);++I<U;){var W=u[I];f>0&&g(W)?f>1?gr(W,f-1,g,x,O):Va(O,W):x||(O[O.length]=W)}return O}var Zw=vL(),Vj=vL(!0);function Eo(u,f){return u&&Zw(u,f,ur)}function Hw(u,f){return u&&Vj(u,f,ur)}function Ry(u,f){return Wa(f,function(g){return ua(u[g])})}function Ks(u,f){f=Xa(f,u);for(var g=0,x=f.length;u!=null&&g<x;)u=u[Co(f[g++])];return g&&g==x?u:n}function Kj(u,f,g){var x=f(u);return Rt(u)?x:Va(x,g(u))}function Fr(u){return u==null?u===n?mt:K:Zs&&Zs in _n(u)?UTe(u):e$e(u)}function Ww(u,f){return u>f}function aTe(u,f){return u!=null&&hn.call(u,f)}function sTe(u,f){return u!=null&&f in _n(u)}function uTe(u,f,g){return u>=kr(f,g)&&u<nr(f,g)}function Vw(u,f,g){for(var x=g?$w:hy,O=u[0].length,I=u.length,U=I,W=le(I),te=1/0,be=[];U--;){var we=u[U];U&&f&&(we=kn(we,pi(f))),te=kr(we.length,te),W[U]=!g&&(f||O>=120&&we.length>=120)?new Ws(U&&we):n}we=u[0];var Ee=-1,Ve=W[0];e:for(;++Ee<O&&be.length<te;){var at=we[Ee],wt=f?f(at):at;if(at=g||at!==0?at:0,!(Ve?Df(Ve,wt):x(be,wt,g))){for(U=I;--U;){var qt=W[U];if(!(qt?Df(qt,wt):x(u[U],wt,g)))continue e}Ve&&Ve.push(wt),be.push(at)}}return be}function lTe(u,f,g,x){return Eo(u,function(O,I,U){f(x,g(O),I,U)}),x}function zf(u,f,g){f=Xa(f,u),u=DL(u,f);var x=u==null?u:u[Co(ki(f))];return x==null?n:di(x,u,g)}function Gj(u){return Ln(u)&&Fr(u)==qe}function cTe(u){return Ln(u)&&Fr(u)==xe}function fTe(u){return Ln(u)&&Fr(u)==Ke}function Zf(u,f,g,x,O){return u===f?!0:u==null||f==null||!Ln(u)&&!Ln(f)?u!==u&&f!==f:dTe(u,f,g,x,Zf,O)}function dTe(u,f,g,x,O,I){var U=Rt(u),W=Rt(f),te=U?Me:Ir(u),be=W?Me:Ir(f);te=te==qe?de:te,be=be==qe?de:be;var we=te==de,Ee=be==de,Ve=te==be;if(Ve&&es(u)){if(!es(f))return!1;U=!0,we=!1}if(Ve&&!we)return I||(I=new Wi),U||Dl(u)?TL(u,f,g,x,O,I):FTe(u,f,te,g,x,O,I);if(!(g&y)){var at=we&&hn.call(u,"__wrapped__"),wt=Ee&&hn.call(f,"__wrapped__");if(at||wt){var qt=at?u.value():u,xt=wt?f.value():f;return I||(I=new Wi),O(qt,xt,g,x,I)}}return Ve?(I||(I=new Wi),qTe(u,f,g,x,O,I)):!1}function pTe(u){return Ln(u)&&Ir(u)==Ze}function Kw(u,f,g,x){var O=g.length,I=O,U=!x;if(u==null)return!I;for(u=_n(u);O--;){var W=g[O];if(U&&W[2]?W[1]!==u[W[0]]:!(W[0]in u))return!1}for(;++O<I;){W=g[O];var te=W[0],be=u[te],we=W[1];if(U&&W[2]){if(be===n&&!(te in u))return!1}else{var Ee=new Wi;if(x)var Ve=x(be,we,te,u,f,Ee);if(!(Ve===n?Zf(we,be,y|v,x,Ee):Ve))return!1}}return!0}function Yj(u){if(!Nn(u)||GTe(u))return!1;var f=ua(u)?pOe:jn;return f.test(Ys(u))}function hTe(u){return Ln(u)&&Fr(u)==et}function mTe(u){return Ln(u)&&Ir(u)==Ue}function yTe(u){return Ln(u)&&Yy(u.length)&&!!$n[Fr(u)]}function Jj(u){return typeof u=="function"?u:u==null?ri:typeof u=="object"?Rt(u)?eL(u[0],u[1]):Qj(u):bF(u)}function Gw(u){if(!Vf(u))return bOe(u);var f=[];for(var g in _n(u))hn.call(u,g)&&g!="constructor"&&f.push(g);return f}function gTe(u){if(!Nn(u))return QTe(u);var f=Vf(u),g=[];for(var x in u)x=="constructor"&&(f||!hn.call(u,x))||g.push(x);return g}function Yw(u,f){return u<f}function Xj(u,f){var g=-1,x=ti(u)?le(u.length):[];return Ya(u,function(O,I,U){x[++g]=f(O,I,U)}),x}function Qj(u){var f=fx(u);return f.length==1&&f[0][2]?RL(f[0][0],f[0][1]):function(g){return g===u||Kw(g,u,f)}}function eL(u,f){return px(u)&&PL(f)?RL(Co(u),f):function(g){var x=Sx(g,u);return x===n&&x===f?Ex(g,u):Zf(f,x,y|v)}}function Ny(u,f,g,x,O){u!==f&&Zw(f,function(I,U){if(O||(O=new Wi),Nn(I))vTe(u,f,U,g,Ny,x,O);else{var W=x?x(mx(u,U),I,U+"",u,f,O):n;W===n&&(W=I),Bw(u,U,W)}},ni)}function vTe(u,f,g,x,O,I,U){var W=mx(u,g),te=mx(f,g),be=U.get(te);if(be){Bw(u,g,be);return}var we=I?I(W,te,g+"",u,f,U):n,Ee=we===n;if(Ee){var Ve=Rt(te),at=!Ve&&es(te),wt=!Ve&&!at&&Dl(te);we=te,Ve||at||wt?Rt(W)?we=W:qn(W)?we=ei(W):at?(Ee=!1,we=dL(te,!0)):wt?(Ee=!1,we=pL(te,!0)):we=[]:Gf(te)||Js(te)?(we=W,Js(W)?we=lF(W):(!Nn(W)||ua(W))&&(we=IL(te))):Ee=!1}Ee&&(U.set(te,we),O(we,te,x,I,U),U.delete(te)),Bw(u,g,we)}function tL(u,f){var g=u.length;if(g)return f+=f<0?g:0,sa(f,g)?u[f]:n}function nL(u,f,g){f.length?f=kn(f,function(I){return Rt(I)?function(U){return Ks(U,I.length===1?I[0]:I)}:I}):f=[ri];var x=-1;f=kn(f,pi(vt()));var O=Xj(u,function(I,U,W){var te=kn(f,function(be){return be(I)});return{criteria:te,index:++x,value:I}});return HCe(O,function(I,U){return ITe(I,U,g)})}function bTe(u,f){return rL(u,f,function(g,x){return Ex(u,x)})}function rL(u,f,g){for(var x=-1,O=f.length,I={};++x<O;){var U=f[x],W=Ks(u,U);g(W,U)&&Hf(I,Xa(U,u),W)}return I}function _Te(u){return function(f){return Ks(f,u)}}function Jw(u,f,g,x){var O=x?ZCe:El,I=-1,U=f.length,W=u;for(u===f&&(f=ei(f)),g&&(W=kn(u,pi(g)));++I<U;)for(var te=0,be=f[I],we=g?g(be):be;(te=O(W,we,te,x))>-1;)W!==u&&Ey.call(W,te,1),Ey.call(u,te,1);return u}function iL(u,f){for(var g=u?f.length:0,x=g-1;g--;){var O=f[g];if(g==x||O!==I){var I=O;sa(O)?Ey.call(u,O,1):tx(u,O)}}return u}function Xw(u,f){return u+Oy(Lj()*(f-u+1))}function wTe(u,f,g,x){for(var O=-1,I=nr(Cy((f-u)/(g||1)),0),U=le(I);I--;)U[x?I:++O]=u,u+=g;return U}function Qw(u,f){var g="";if(!u||f<1||f>ne)return g;do f%2&&(g+=u),f=Oy(f/2),f&&(u+=u);while(f);return g}function Ut(u,f){return yx(NL(u,f,ri),u+"")}function xTe(u){return Uj(Ml(u))}function STe(u,f){var g=Ml(u);return Zy(g,Vs(f,0,g.length))}function Hf(u,f,g,x){if(!Nn(u))return u;f=Xa(f,u);for(var O=-1,I=f.length,U=I-1,W=u;W!=null&&++O<I;){var te=Co(f[O]),be=g;if(te==="__proto__"||te==="constructor"||te==="prototype")return u;if(O!=U){var we=W[te];be=x?x(we,te,W):n,be===n&&(be=Nn(we)?we:sa(f[O+1])?[]:{})}Uf(W,te,be),W=W[te]}return u}var oL=Ty?function(u,f){return Ty.set(u,f),u}:ri,ETe=Ay?function(u,f){return Ay(u,"toString",{configurable:!0,enumerable:!1,value:Cx(f),writable:!0})}:ri;function ATe(u){return Zy(Ml(u))}function $i(u,f,g){var x=-1,O=u.length;f<0&&(f=-f>O?0:O+f),g=g>O?O:g,g<0&&(g+=O),O=f>g?0:g-f>>>0,f>>>=0;for(var I=le(O);++x<O;)I[x]=u[x+f];return I}function CTe(u,f){var g;return Ya(u,function(x,O,I){return g=f(x,O,I),!g}),!!g}function Dy(u,f,g){var x=0,O=u==null?x:u.length;if(typeof f=="number"&&f===f&&O<=D){for(;x<O;){var I=x+O>>>1,U=u[I];U!==null&&!mi(U)&&(g?U<=f:U<f)?x=I+1:O=I}return O}return ex(u,f,ri,g)}function ex(u,f,g,x){var O=0,I=u==null?0:u.length;if(I===0)return 0;f=g(f);for(var U=f!==f,W=f===null,te=mi(f),be=f===n;O<I;){var we=Oy((O+I)/2),Ee=g(u[we]),Ve=Ee!==n,at=Ee===null,wt=Ee===Ee,qt=mi(Ee);if(U)var xt=x||wt;else be?xt=wt&&(x||Ve):W?xt=wt&&Ve&&(x||!at):te?xt=wt&&Ve&&!at&&(x||!qt):at||qt?xt=!1:xt=x?Ee<=f:Ee<f;xt?O=we+1:I=we}return kr(I,Oe)}function aL(u,f){for(var g=-1,x=u.length,O=0,I=[];++g<x;){var U=u[g],W=f?f(U):U;if(!g||!Vi(W,te)){var te=W;I[O++]=U===0?0:U}}return I}function sL(u){return typeof u=="number"?u:mi(u)?P:+u}function hi(u){if(typeof u=="string")return u;if(Rt(u))return kn(u,hi)+"";if(mi(u))return Fj?Fj.call(u):"";var f=u+"";return f=="0"&&1/u==-Y?"-0":f}function Ja(u,f,g){var x=-1,O=hy,I=u.length,U=!0,W=[],te=W;if(g)U=!1,O=$w;else if(I>=i){var be=f?null:jTe(u);if(be)return yy(be);U=!1,O=Df,te=new Ws}else te=f?[]:W;e:for(;++x<I;){var we=u[x],Ee=f?f(we):we;if(we=g||we!==0?we:0,U&&Ee===Ee){for(var Ve=te.length;Ve--;)if(te[Ve]===Ee)continue e;f&&te.push(Ee),W.push(we)}else O(te,Ee,g)||(te!==W&&te.push(Ee),W.push(we))}return W}function tx(u,f){return f=Xa(f,u),u=DL(u,f),u==null||delete u[Co(ki(f))]}function uL(u,f,g,x){return Hf(u,f,g(Ks(u,f)),x)}function My(u,f,g,x){for(var O=u.length,I=x?O:-1;(x?I--:++I<O)&&f(u[I],I,u););return g?$i(u,x?0:I,x?I+1:O):$i(u,x?I+1:0,x?O:I)}function lL(u,f){var g=u;return g instanceof Gt&&(g=g.value()),kw(f,function(x,O){return O.func.apply(O.thisArg,Va([x],O.args))},g)}function nx(u,f,g){var x=u.length;if(x<2)return x?Ja(u[0]):[];for(var O=-1,I=le(x);++O<x;)for(var U=u[O],W=-1;++W<x;)W!=O&&(I[O]=Bf(I[O]||U,u[W],f,g));return Ja(gr(I,1),f,g)}function cL(u,f,g){for(var x=-1,O=u.length,I=f.length,U={};++x<O;){var W=x<I?f[x]:n;g(U,u[x],W)}return U}function rx(u){return qn(u)?u:[]}function ix(u){return typeof u=="function"?u:ri}function Xa(u,f){return Rt(u)?u:px(u,f)?[u]:FL(fn(u))}var OTe=Ut;function Qa(u,f,g){var x=u.length;return g=g===n?x:g,!f&&g>=x?u:$i(u,f,g)}var fL=hOe||function(u){return yr.clearTimeout(u)};function dL(u,f){if(f)return u.slice();var g=u.length,x=Rj?Rj(g):new u.constructor(g);return u.copy(x),x}function ox(u){var f=new u.constructor(u.byteLength);return new xy(f).set(new xy(u)),f}function TTe(u,f){var g=f?ox(u.buffer):u.buffer;return new u.constructor(g,u.byteOffset,u.byteLength)}function $Te(u){var f=new u.constructor(u.source,un.exec(u));return f.lastIndex=u.lastIndex,f}function kTe(u){return qf?_n(qf.call(u)):{}}function pL(u,f){var g=f?ox(u.buffer):u.buffer;return new u.constructor(g,u.byteOffset,u.length)}function hL(u,f){if(u!==f){var g=u!==n,x=u===null,O=u===u,I=mi(u),U=f!==n,W=f===null,te=f===f,be=mi(f);if(!W&&!be&&!I&&u>f||I&&U&&te&&!W&&!be||x&&U&&te||!g&&te||!O)return 1;if(!x&&!I&&!be&&u<f||be&&g&&O&&!x&&!I||W&&g&&O||!U&&O||!te)return-1}return 0}function ITe(u,f,g){for(var x=-1,O=u.criteria,I=f.criteria,U=O.length,W=g.length;++x<U;){var te=hL(O[x],I[x]);if(te){if(x>=W)return te;var be=g[x];return te*(be=="desc"?-1:1)}}return u.index-f.index}function mL(u,f,g,x){for(var O=-1,I=u.length,U=g.length,W=-1,te=f.length,be=nr(I-U,0),we=le(te+be),Ee=!x;++W<te;)we[W]=f[W];for(;++O<U;)(Ee||O<I)&&(we[g[O]]=u[O]);for(;be--;)we[W++]=u[O++];return we}function yL(u,f,g,x){for(var O=-1,I=u.length,U=-1,W=g.length,te=-1,be=f.length,we=nr(I-W,0),Ee=le(we+be),Ve=!x;++O<we;)Ee[O]=u[O];for(var at=O;++te<be;)Ee[at+te]=f[te];for(;++U<W;)(Ve||O<I)&&(Ee[at+g[U]]=u[O++]);return Ee}function ei(u,f){var g=-1,x=u.length;for(f||(f=le(x));++g<x;)f[g]=u[g];return f}function Ao(u,f,g,x){var O=!g;g||(g={});for(var I=-1,U=f.length;++I<U;){var W=f[I],te=x?x(g[W],u[W],W,g,u):n;te===n&&(te=u[W]),O?ia(g,W,te):Uf(g,W,te)}return g}function PTe(u,f){return Ao(u,dx(u),f)}function RTe(u,f){return Ao(u,$L(u),f)}function jy(u,f){return function(g,x){var O=Rt(g)?LCe:tTe,I=f?f():{};return O(g,u,vt(x,2),I)}}function Pl(u){return Ut(function(f,g){var x=-1,O=g.length,I=O>1?g[O-1]:n,U=O>2?g[2]:n;for(I=u.length>3&&typeof I=="function"?(O--,I):n,U&&qr(g[0],g[1],U)&&(I=O<3?n:I,O=1),f=_n(f);++x<O;){var W=g[x];W&&u(f,W,x,I)}return f})}function gL(u,f){return function(g,x){if(g==null)return g;if(!ti(g))return u(g,x);for(var O=g.length,I=f?O:-1,U=_n(g);(f?I--:++I<O)&&x(U[I],I,U)!==!1;);return g}}function vL(u){return function(f,g,x){for(var O=-1,I=_n(f),U=x(f),W=U.length;W--;){var te=U[u?W:++O];if(g(I[te],te,I)===!1)break}return f}}function NTe(u,f,g){var x=f&w,O=Wf(u);function I(){var U=this&&this!==yr&&this instanceof I?O:u;return U.apply(x?g:this,arguments)}return I}function bL(u){return function(f){f=fn(f);var g=Al(f)?Hi(f):n,x=g?g[0]:f.charAt(0),O=g?Qa(g,1).join(""):f.slice(1);return x[u]()+O}}function Rl(u){return function(f){return kw(gF(yF(f).replace(ECe,"")),u,"")}}function Wf(u){return function(){var f=arguments;switch(f.length){case 0:return new u;case 1:return new u(f[0]);case 2:return new u(f[0],f[1]);case 3:return new u(f[0],f[1],f[2]);case 4:return new u(f[0],f[1],f[2],f[3]);case 5:return new u(f[0],f[1],f[2],f[3],f[4]);case 6:return new u(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new u(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var g=Il(u.prototype),x=u.apply(g,f);return Nn(x)?x:g}}function DTe(u,f,g){var x=Wf(u);function O(){for(var I=arguments.length,U=le(I),W=I,te=Nl(O);W--;)U[W]=arguments[W];var be=I<3&&U[0]!==te&&U[I-1]!==te?[]:Ka(U,te);if(I-=be.length,I<g)return EL(u,f,Ly,O.placeholder,n,U,be,n,n,g-I);var we=this&&this!==yr&&this instanceof O?x:u;return di(we,this,U)}return O}function _L(u){return function(f,g,x){var O=_n(f);if(!ti(f)){var I=vt(g,3);f=ur(f),g=function(W){return I(O[W],W,O)}}var U=u(f,g,x);return U>-1?O[I?f[U]:U]:n}}function wL(u){return aa(function(f){var g=f.length,x=g,O=Oi.prototype.thru;for(u&&f.reverse();x--;){var I=f[x];if(typeof I!="function")throw new Ci(a);if(O&&!U&&By(I)=="wrapper")var U=new Oi([],!0)}for(x=U?x:g;++x<g;){I=f[x];var W=By(I),te=W=="wrapper"?cx(I):n;te&&hx(te[0])&&te[1]==(j|S|E|q)&&!te[4].length&&te[9]==1?U=U[By(te[0])].apply(U,te[3]):U=I.length==1&&hx(I)?U[W]():U.thru(I)}return function(){var be=arguments,we=be[0];if(U&&be.length==1&&Rt(we))return U.plant(we).value();for(var Ee=0,Ve=g?f[Ee].apply(this,be):we;++Ee<g;)Ve=f[Ee].call(this,Ve);return Ve}})}function Ly(u,f,g,x,O,I,U,W,te,be){var we=f&j,Ee=f&w,Ve=f&_,at=f&(S|A),wt=f&L,qt=Ve?n:Wf(u);function xt(){for(var Ht=arguments.length,Xt=le(Ht),yi=Ht;yi--;)Xt[yi]=arguments[yi];if(at)var Ur=Nl(xt),gi=VCe(Xt,Ur);if(x&&(Xt=mL(Xt,x,O,at)),I&&(Xt=yL(Xt,I,U,at)),Ht-=gi,at&&Ht<be){var Un=Ka(Xt,Ur);return EL(u,f,Ly,xt.placeholder,g,Xt,Un,W,te,be-Ht)}var Ki=Ee?g:this,ca=Ve?Ki[u]:u;return Ht=Xt.length,W?Xt=t$e(Xt,W):wt&&Ht>1&&Xt.reverse(),we&&te<Ht&&(Xt.length=te),this&&this!==yr&&this instanceof xt&&(ca=qt||Wf(ca)),ca.apply(Ki,Xt)}return xt}function xL(u,f){return function(g,x){return lTe(g,u,f(x),{})}}function Fy(u,f){return function(g,x){var O;if(g===n&&x===n)return f;if(g!==n&&(O=g),x!==n){if(O===n)return x;typeof g=="string"||typeof x=="string"?(g=hi(g),x=hi(x)):(g=sL(g),x=sL(x)),O=u(g,x)}return O}}function ax(u){return aa(function(f){return f=kn(f,pi(vt())),Ut(function(g){var x=this;return u(f,function(O){return di(O,x,g)})})})}function qy(u,f){f=f===n?" ":hi(f);var g=f.length;if(g<2)return g?Qw(f,u):f;var x=Qw(f,Cy(u/Cl(f)));return Al(f)?Qa(Hi(x),0,u).join(""):x.slice(0,u)}function MTe(u,f,g,x){var O=f&w,I=Wf(u);function U(){for(var W=-1,te=arguments.length,be=-1,we=x.length,Ee=le(we+te),Ve=this&&this!==yr&&this instanceof U?I:u;++be<we;)Ee[be]=x[be];for(;te--;)Ee[be++]=arguments[++W];return di(Ve,O?g:this,Ee)}return U}function SL(u){return function(f,g,x){return x&&typeof x!="number"&&qr(f,g,x)&&(g=x=n),f=la(f),g===n?(g=f,f=0):g=la(g),x=x===n?f<g?1:-1:la(x),wTe(f,g,x,u)}}function Uy(u){return function(f,g){return typeof f=="string"&&typeof g=="string"||(f=Ii(f),g=Ii(g)),u(f,g)}}function EL(u,f,g,x,O,I,U,W,te,be){var we=f&S,Ee=we?U:n,Ve=we?n:U,at=we?I:n,wt=we?n:I;f|=we?E:T,f&=~(we?T:E),f&b||(f&=~(w|_));var qt=[u,f,O,at,Ee,wt,Ve,W,te,be],xt=g.apply(n,qt);return hx(u)&&ML(xt,qt),xt.placeholder=x,jL(xt,u,f)}function sx(u){var f=tr[u];return function(g,x){if(g=Ii(g),x=x==null?0:kr(Dt(x),292),x&&jj(g)){var O=(fn(g)+"e").split("e"),I=f(O[0]+"e"+(+O[1]+x));return O=(fn(I)+"e").split("e"),+(O[0]+"e"+(+O[1]-x))}return f(g)}}var jTe=$l&&1/yy(new $l([,-0]))[1]==Y?function(u){return new $l(u)}:$x;function AL(u){return function(f){var g=Ir(f);return g==Ze?jw(f):g==Ue?eOe(f):WCe(f,u(f))}}function oa(u,f,g,x,O,I,U,W){var te=f&_;if(!te&&typeof u!="function")throw new Ci(a);var be=x?x.length:0;if(be||(f&=~(E|T),x=O=n),U=U===n?U:nr(Dt(U),0),W=W===n?W:Dt(W),be-=O?O.length:0,f&T){var we=x,Ee=O;x=O=n}var Ve=te?n:cx(u),at=[u,f,g,x,O,we,Ee,I,U,W];if(Ve&&XTe(at,Ve),u=at[0],f=at[1],g=at[2],x=at[3],O=at[4],W=at[9]=at[9]===n?te?0:u.length:nr(at[9]-be,0),!W&&f&(S|A)&&(f&=~(S|A)),!f||f==w)var wt=NTe(u,f,g);else f==S||f==A?wt=DTe(u,f,W):(f==E||f==(w|E))&&!O.length?wt=MTe(u,f,g,x):wt=Ly.apply(n,at);var qt=Ve?oL:ML;return jL(qt(wt,at),u,f)}function CL(u,f,g,x){return u===n||Vi(u,Tl[g])&&!hn.call(x,g)?f:u}function OL(u,f,g,x,O,I){return Nn(u)&&Nn(f)&&(I.set(f,u),Ny(u,f,n,OL,I),I.delete(f)),u}function LTe(u){return Gf(u)?n:u}function TL(u,f,g,x,O,I){var U=g&y,W=u.length,te=f.length;if(W!=te&&!(U&&te>W))return!1;var be=I.get(u),we=I.get(f);if(be&&we)return be==f&&we==u;var Ee=-1,Ve=!0,at=g&v?new Ws:n;for(I.set(u,f),I.set(f,u);++Ee<W;){var wt=u[Ee],qt=f[Ee];if(x)var xt=U?x(qt,wt,Ee,f,u,I):x(wt,qt,Ee,u,f,I);if(xt!==n){if(xt)continue;Ve=!1;break}if(at){if(!Iw(f,function(Ht,Xt){if(!Df(at,Xt)&&(wt===Ht||O(wt,Ht,g,x,I)))return at.push(Xt)})){Ve=!1;break}}else if(!(wt===qt||O(wt,qt,g,x,I))){Ve=!1;break}}return I.delete(u),I.delete(f),Ve}function FTe(u,f,g,x,O,I,U){switch(g){case Be:if(u.byteLength!=f.byteLength||u.byteOffset!=f.byteOffset)return!1;u=u.buffer,f=f.buffer;case xe:return!(u.byteLength!=f.byteLength||!I(new xy(u),new xy(f)));case rt:case Ke:case lt:return Vi(+u,+f);case Ae:return u.name==f.name&&u.message==f.message;case et:case ot:return u==f+"";case Ze:var W=jw;case Ue:var te=x&y;if(W||(W=yy),u.size!=f.size&&!te)return!1;var be=U.get(u);if(be)return be==f;x|=v,U.set(u,f);var we=TL(W(u),W(f),x,O,I,U);return U.delete(u),we;case It:if(qf)return qf.call(u)==qf.call(f)}return!1}function qTe(u,f,g,x,O,I){var U=g&y,W=ux(u),te=W.length,be=ux(f),we=be.length;if(te!=we&&!U)return!1;for(var Ee=te;Ee--;){var Ve=W[Ee];if(!(U?Ve in f:hn.call(f,Ve)))return!1}var at=I.get(u),wt=I.get(f);if(at&&wt)return at==f&&wt==u;var qt=!0;I.set(u,f),I.set(f,u);for(var xt=U;++Ee<te;){Ve=W[Ee];var Ht=u[Ve],Xt=f[Ve];if(x)var yi=U?x(Xt,Ht,Ve,f,u,I):x(Ht,Xt,Ve,u,f,I);if(!(yi===n?Ht===Xt||O(Ht,Xt,g,x,I):yi)){qt=!1;break}xt||(xt=Ve=="constructor")}if(qt&&!xt){var Ur=u.constructor,gi=f.constructor;Ur!=gi&&"constructor"in u&&"constructor"in f&&!(typeof Ur=="function"&&Ur instanceof Ur&&typeof gi=="function"&&gi instanceof gi)&&(qt=!1)}return I.delete(u),I.delete(f),qt}function aa(u){return yx(NL(u,n,zL),u+"")}function ux(u){return Kj(u,ur,dx)}function lx(u){return Kj(u,ni,$L)}var cx=Ty?function(u){return Ty.get(u)}:$x;function By(u){for(var f=u.name+"",g=kl[f],x=hn.call(kl,f)?g.length:0;x--;){var O=g[x],I=O.func;if(I==null||I==u)return O.name}return f}function Nl(u){var f=hn.call($,"placeholder")?$:u;return f.placeholder}function vt(){var u=$.iteratee||Ox;return u=u===Ox?Jj:u,arguments.length?u(arguments[0],arguments[1]):u}function zy(u,f){var g=u.__data__;return KTe(f)?g[typeof f=="string"?"string":"hash"]:g.map}function fx(u){for(var f=ur(u),g=f.length;g--;){var x=f[g],O=u[x];f[g]=[x,O,PL(O)]}return f}function Gs(u,f){var g=JCe(u,f);return Yj(g)?g:n}function UTe(u){var f=hn.call(u,Zs),g=u[Zs];try{u[Zs]=n;var x=!0}catch{}var O=_y.call(u);return x&&(f?u[Zs]=g:delete u[Zs]),O}var dx=Fw?function(u){return u==null?[]:(u=_n(u),Wa(Fw(u),function(f){return Dj.call(u,f)}))}:kx,$L=Fw?function(u){for(var f=[];u;)Va(f,dx(u)),u=Sy(u);return f}:kx,Ir=Fr;(qw&&Ir(new qw(new ArrayBuffer(1)))!=Be||jf&&Ir(new jf)!=Ze||Uw&&Ir(Uw.resolve())!=Te||$l&&Ir(new $l)!=Ue||Lf&&Ir(new Lf)!=ie)&&(Ir=function(u){var f=Fr(u),g=f==de?u.constructor:n,x=g?Ys(g):"";if(x)switch(x){case SOe:return Be;case EOe:return Ze;case AOe:return Te;case COe:return Ue;case OOe:return ie}return f});function BTe(u,f,g){for(var x=-1,O=g.length;++x<O;){var I=g[x],U=I.size;switch(I.type){case"drop":u+=U;break;case"dropRight":f-=U;break;case"take":f=kr(f,u+U);break;case"takeRight":u=nr(u,f-U);break}}return{start:u,end:f}}function zTe(u){var f=u.match(xl);return f?f[1].split(Z):[]}function kL(u,f,g){f=Xa(f,u);for(var x=-1,O=f.length,I=!1;++x<O;){var U=Co(f[x]);if(!(I=u!=null&&g(u,U)))break;u=u[U]}return I||++x!=O?I:(O=u==null?0:u.length,!!O&&Yy(O)&&sa(U,O)&&(Rt(u)||Js(u)))}function ZTe(u){var f=u.length,g=new u.constructor(f);return f&&typeof u[0]=="string"&&hn.call(u,"index")&&(g.index=u.index,g.input=u.input),g}function IL(u){return typeof u.constructor=="function"&&!Vf(u)?Il(Sy(u)):{}}function HTe(u,f,g){var x=u.constructor;switch(f){case xe:return ox(u);case rt:case Ke:return new x(+u);case Be:return TTe(u,g);case ct:case pn:case rn:case Yt:case cn:case Cn:case ee:case ae:case ft:return pL(u,g);case Ze:return new x;case lt:case ot:return new x(u);case et:return $Te(u);case Ue:return new x;case It:return kTe(u)}}function WTe(u,f){var g=f.length;if(!g)return u;var x=g-1;return f[x]=(g>1?"& ":"")+f[x],f=f.join(g>2?", ":" "),u.replace(ta,`{
|
|
62
62
|
/* [wrapped with `+f+`] */
|
|
63
|
-
`)}function VTe(u){return Rt(u)||Js(u)||!!(Mj&&u&&u[Mj])}function sa(u,f){var g=typeof u;return f=f??ne,!!f&&(g=="number"||g!="symbol"&&Tn.test(u))&&u>-1&&u%1==0&&u<f}function qr(u,f,g){if(!Nn(g))return!1;var x=typeof f;return(x=="number"?ti(g)&&sa(f,g.length):x=="string"&&f in g)?Vi(g[f],u):!1}function px(u,f){if(Rt(u))return!1;var g=typeof u;return g=="number"||g=="symbol"||g=="boolean"||u==null||mi(u)?!0:bt.test(u)||!We.test(u)||f!=null&&u in _n(f)}function KTe(u){var f=typeof u;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?u!=="__proto__":u===null}function hx(u){var f=By(u),g=$[f];if(typeof g!="function"||!(f in Gt.prototype))return!1;if(u===g)return!0;var x=cx(g);return!!x&&u===x[0]}function GTe(u){return!!Pj&&Pj in u}var YTe=vy?ua:Ix;function Vf(u){var f=u&&u.constructor,g=typeof f=="function"&&f.prototype||Tl;return u===g}function PL(u){return u===u&&!Nn(u)}function RL(u,f){return function(g){return g==null?!1:g[u]===f&&(f!==n||u in _n(g))}}function JTe(u){var f=Ky(u,function(x){return g.size===c&&g.clear(),x}),g=f.cache;return f}function XTe(u,f){var g=u[1],x=f[1],O=g|x,I=O<(w|_|j),U=x==j&&g==S||x==j&&g==q&&u[7].length<=f[8]||x==(j|q)&&f[7].length<=f[8]&&g==S;if(!(I||U))return u;x&w&&(u[2]=f[2],O|=g&w?0:b);var W=f[3];if(W){var te=u[3];u[3]=te?mL(te,W,f[4]):W,u[4]=te?Ka(u[3],d):f[4]}return W=f[5],W&&(te=u[5],u[5]=te?yL(te,W,f[6]):W,u[6]=te?Ka(u[5],d):f[6]),W=f[7],W&&(u[7]=W),x&j&&(u[8]=u[8]==null?f[8]:kr(u[8],f[8])),u[9]==null&&(u[9]=f[9]),u[0]=f[0],u[1]=O,u}function QTe(u){var f=[];if(u!=null)for(var g in _n(u))f.push(g);return f}function e$e(u){return _y.call(u)}function NL(u,f,g){return f=nr(f===n?u.length-1:f,0),function(){for(var x=arguments,O=-1,I=nr(x.length-f,0),U=le(I);++O<I;)U[O]=x[f+O];O=-1;for(var W=le(f+1);++O<f;)W[O]=x[O];return W[f]=g(U),di(u,this,W)}}function DL(u,f){return f.length<2?u:Ks(u,$i(f,0,-1))}function t$e(u,f){for(var g=u.length,x=kr(f.length,g),O=ei(u);x--;){var I=f[x];u[x]=sa(I,g)?O[I]:n}return u}function mx(u,f){if(!(f==="constructor"&&typeof u[f]=="function")&&f!="__proto__")return u[f]}var ML=LL(oL),Kf=yOe||function(u,f){return yr.setTimeout(u,f)},yx=LL(ETe);function jL(u,f,g){var x=f+"";return yx(u,WTe(x,n$e(zTe(x),g)))}function LL(u){var f=0,g=0;return function(){var x=_Oe(),O=Q-(x-g);if(g=x,O>0){if(++f>=re)return arguments[0]}else f=0;return u.apply(n,arguments)}}function Zy(u,f){var g=-1,x=u.length,O=x-1;for(f=f===n?x:f;++g<f;){var I=Xw(g,O),U=u[I];u[I]=u[g],u[g]=U}return u.length=f,u}var FL=JTe(function(u){var f=[];return u.charCodeAt(0)===46&&f.push(""),u.replace(Pt,function(g,x,O,I){f.push(O?I.replace(yt,"$1"):x||g)}),f});function Co(u){if(typeof u=="string"||mi(u))return u;var f=u+"";return f=="0"&&1/u==-Y?"-0":f}function Ys(u){if(u!=null){try{return by.call(u)}catch{}try{return u+""}catch{}}return""}function n$e(u,f){return Ai(De,function(g){var x="_."+g[0];f&g[1]&&!hy(u,x)&&u.push(x)}),u.sort()}function qL(u){if(u instanceof Gt)return u.clone();var f=new Oi(u.__wrapped__,u.__chain__);return f.__actions__=ei(u.__actions__),f.__index__=u.__index__,f.__values__=u.__values__,f}function r$e(u,f,g){(g?qr(u,f,g):f===n)?f=1:f=nr(Dt(f),0);var x=u==null?0:u.length;if(!x||f<1)return[];for(var O=0,I=0,U=le(Cy(x/f));O<x;)U[I++]=$i(u,O,O+=f);return U}function i$e(u){for(var f=-1,g=u==null?0:u.length,x=0,O=[];++f<g;){var I=u[f];I&&(O[x++]=I)}return O}function o$e(){var u=arguments.length;if(!u)return[];for(var f=le(u-1),g=arguments[0],x=u;x--;)f[x-1]=arguments[x];return Va(Rt(g)?ei(g):[g],gr(f,1))}var a$e=Ut(function(u,f){return qn(u)?Bf(u,gr(f,1,qn,!0)):[]}),s$e=Ut(function(u,f){var g=ki(f);return qn(g)&&(g=n),qn(u)?Bf(u,gr(f,1,qn,!0),vt(g,2)):[]}),u$e=Ut(function(u,f){var g=ki(f);return qn(g)&&(g=n),qn(u)?Bf(u,gr(f,1,qn,!0),n,g):[]});function l$e(u,f,g){var x=u==null?0:u.length;return x?(f=g||f===n?1:Dt(f),$i(u,f<0?0:f,x)):[]}function c$e(u,f,g){var x=u==null?0:u.length;return x?(f=g||f===n?1:Dt(f),f=x-f,$i(u,0,f<0?0:f)):[]}function f$e(u,f){return u&&u.length?My(u,vt(f,3),!0,!0):[]}function d$e(u,f){return u&&u.length?My(u,vt(f,3),!0):[]}function p$e(u,f,g,x){var O=u==null?0:u.length;return O?(g&&typeof g!="number"&&qr(u,f,g)&&(g=0,x=O),oTe(u,f,g,x)):[]}function UL(u,f,g){var x=u==null?0:u.length;if(!x)return-1;var O=g==null?0:Dt(g);return O<0&&(O=nr(x+O,0)),my(u,vt(f,3),O)}function BL(u,f,g){var x=u==null?0:u.length;if(!x)return-1;var O=x-1;return g!==n&&(O=Dt(g),O=g<0?nr(x+O,0):kr(O,x-1)),my(u,vt(f,3),O,!0)}function zL(u){var f=u==null?0:u.length;return f?gr(u,1):[]}function h$e(u){var f=u==null?0:u.length;return f?gr(u,Y):[]}function m$e(u,f){var g=u==null?0:u.length;return g?(f=f===n?1:Dt(f),gr(u,f)):[]}function y$e(u){for(var f=-1,g=u==null?0:u.length,x={};++f<g;){var O=u[f];x[O[0]]=O[1]}return x}function ZL(u){return u&&u.length?u[0]:n}function g$e(u,f,g){var x=u==null?0:u.length;if(!x)return-1;var O=g==null?0:Dt(g);return O<0&&(O=nr(x+O,0)),El(u,f,O)}function v$e(u){var f=u==null?0:u.length;return f?$i(u,0,-1):[]}var b$e=Ut(function(u){var f=kn(u,rx);return f.length&&f[0]===u[0]?Vw(f):[]}),_$e=Ut(function(u){var f=ki(u),g=kn(u,rx);return f===ki(g)?f=n:g.pop(),g.length&&g[0]===u[0]?Vw(g,vt(f,2)):[]}),w$e=Ut(function(u){var f=ki(u),g=kn(u,rx);return f=typeof f=="function"?f:n,f&&g.pop(),g.length&&g[0]===u[0]?Vw(g,n,f):[]});function x$e(u,f){return u==null?"":vOe.call(u,f)}function ki(u){var f=u==null?0:u.length;return f?u[f-1]:n}function S$e(u,f,g){var x=u==null?0:u.length;if(!x)return-1;var O=x;return g!==n&&(O=Dt(g),O=O<0?nr(x+O,0):kr(O,x-1)),f===f?nOe(u,f,O):my(u,Ej,O,!0)}function E$e(u,f){return u&&u.length?tL(u,Dt(f)):n}var A$e=Ut(HL);function HL(u,f){return u&&u.length&&f&&f.length?Jw(u,f):u}function C$e(u,f,g){return u&&u.length&&f&&f.length?Jw(u,f,vt(g,2)):u}function O$e(u,f,g){return u&&u.length&&f&&f.length?Jw(u,f,n,g):u}var T$e=aa(function(u,f){var g=u==null?0:u.length,x=zw(u,f);return iL(u,kn(f,function(O){return sa(O,g)?+O:O}).sort(hL)),x});function $$e(u,f){var g=[];if(!(u&&u.length))return g;var x=-1,O=[],I=u.length;for(f=vt(f,3);++x<I;){var U=u[x];f(U,x,u)&&(g.push(U),O.push(x))}return iL(u,O),g}function gx(u){return u==null?u:xOe.call(u)}function k$e(u,f,g){var x=u==null?0:u.length;return x?(g&&typeof g!="number"&&qr(u,f,g)?(f=0,g=x):(f=f==null?0:Dt(f),g=g===n?x:Dt(g)),$i(u,f,g)):[]}function I$e(u,f){return Dy(u,f)}function P$e(u,f,g){return ex(u,f,vt(g,2))}function R$e(u,f){var g=u==null?0:u.length;if(g){var x=Dy(u,f);if(x<g&&Vi(u[x],f))return x}return-1}function N$e(u,f){return Dy(u,f,!0)}function D$e(u,f,g){return ex(u,f,vt(g,2),!0)}function M$e(u,f){var g=u==null?0:u.length;if(g){var x=Dy(u,f,!0)-1;if(Vi(u[x],f))return x}return-1}function j$e(u){return u&&u.length?aL(u):[]}function L$e(u,f){return u&&u.length?aL(u,vt(f,2)):[]}function F$e(u){var f=u==null?0:u.length;return f?$i(u,1,f):[]}function q$e(u,f,g){return u&&u.length?(f=g||f===n?1:Dt(f),$i(u,0,f<0?0:f)):[]}function U$e(u,f,g){var x=u==null?0:u.length;return x?(f=g||f===n?1:Dt(f),f=x-f,$i(u,f<0?0:f,x)):[]}function B$e(u,f){return u&&u.length?My(u,vt(f,3),!1,!0):[]}function z$e(u,f){return u&&u.length?My(u,vt(f,3)):[]}var Z$e=Ut(function(u){return Ja(gr(u,1,qn,!0))}),H$e=Ut(function(u){var f=ki(u);return qn(f)&&(f=n),Ja(gr(u,1,qn,!0),vt(f,2))}),W$e=Ut(function(u){var f=ki(u);return f=typeof f=="function"?f:n,Ja(gr(u,1,qn,!0),n,f)});function V$e(u){return u&&u.length?Ja(u):[]}function K$e(u,f){return u&&u.length?Ja(u,vt(f,2)):[]}function G$e(u,f){return f=typeof f=="function"?f:n,u&&u.length?Ja(u,n,f):[]}function vx(u){if(!(u&&u.length))return[];var f=0;return u=Wa(u,function(g){if(qn(g))return f=nr(g.length,f),!0}),Dw(f,function(g){return kn(u,Pw(g))})}function WL(u,f){if(!(u&&u.length))return[];var g=vx(u);return f==null?g:kn(g,function(x){return di(f,n,x)})}var Y$e=Ut(function(u,f){return qn(u)?Bf(u,f):[]}),J$e=Ut(function(u){return nx(Wa(u,qn))}),X$e=Ut(function(u){var f=ki(u);return qn(f)&&(f=n),nx(Wa(u,qn),vt(f,2))}),Q$e=Ut(function(u){var f=ki(u);return f=typeof f=="function"?f:n,nx(Wa(u,qn),n,f)}),eke=Ut(vx);function tke(u,f){return cL(u||[],f||[],Uf)}function nke(u,f){return cL(u||[],f||[],Hf)}var rke=Ut(function(u){var f=u.length,g=f>1?u[f-1]:n;return g=typeof g=="function"?(u.pop(),g):n,WL(u,g)});function VL(u){var f=$(u);return f.__chain__=!0,f}function ike(u,f){return f(u),u}function Hy(u,f){return f(u)}var oke=aa(function(u){var f=u.length,g=f?u[0]:0,x=this.__wrapped__,O=function(I){return zw(I,u)};return f>1||this.__actions__.length||!(x instanceof Gt)||!sa(g)?this.thru(O):(x=x.slice(g,+g+(f?1:0)),x.__actions__.push({func:Hy,args:[O],thisArg:n}),new Oi(x,this.__chain__).thru(function(I){return f&&!I.length&&I.push(n),I}))});function ake(){return VL(this)}function ske(){return new Oi(this.value(),this.__chain__)}function uke(){this.__values__===n&&(this.__values__=sF(this.value()));var u=this.__index__>=this.__values__.length,f=u?n:this.__values__[this.__index__++];return{done:u,value:f}}function lke(){return this}function cke(u){for(var f,g=this;g instanceof ky;){var x=qL(g);x.__index__=0,x.__values__=n,f?O.__wrapped__=x:f=x;var O=x;g=g.__wrapped__}return O.__wrapped__=u,f}function fke(){var u=this.__wrapped__;if(u instanceof Gt){var f=u;return this.__actions__.length&&(f=new Gt(this)),f=f.reverse(),f.__actions__.push({func:Hy,args:[gx],thisArg:n}),new Oi(f,this.__chain__)}return this.thru(gx)}function dke(){return lL(this.__wrapped__,this.__actions__)}var pke=jy(function(u,f,g){hn.call(u,g)?++u[g]:ia(u,g,1)});function hke(u,f,g){var x=Rt(u)?xj:iTe;return g&&qr(u,f,g)&&(f=n),x(u,vt(f,3))}function mke(u,f){var g=Rt(u)?Wa:Wj;return g(u,vt(f,3))}var yke=_L(UL),gke=_L(BL);function vke(u,f){return gr(Wy(u,f),1)}function bke(u,f){return gr(Wy(u,f),Y)}function _ke(u,f,g){return g=g===n?1:Dt(g),gr(Wy(u,f),g)}function KL(u,f){var g=Rt(u)?Ai:Ya;return g(u,vt(f,3))}function GL(u,f){var g=Rt(u)?FCe:Hj;return g(u,vt(f,3))}var wke=jy(function(u,f,g){hn.call(u,g)?u[g].push(f):ia(u,g,[f])});function xke(u,f,g,x){u=ti(u)?u:Ml(u),g=g&&!x?Dt(g):0;var O=u.length;return g<0&&(g=nr(O+g,0)),Jy(u)?g<=O&&u.indexOf(f,g)>-1:!!O&&El(u,f,g)>-1}var Ske=Ut(function(u,f,g){var x=-1,O=typeof f=="function",I=ti(u)?le(u.length):[];return Ya(u,function(U){I[++x]=O?di(f,U,g):zf(U,f,g)}),I}),Eke=jy(function(u,f,g){ia(u,g,f)});function Wy(u,f){var g=Rt(u)?kn:Xj;return g(u,vt(f,3))}function Ake(u,f,g,x){return u==null?[]:(Rt(f)||(f=f==null?[]:[f]),g=x?n:g,Rt(g)||(g=g==null?[]:[g]),nL(u,f,g))}var Cke=jy(function(u,f,g){u[g?0:1].push(f)},function(){return[[],[]]});function Oke(u,f,g){var x=Rt(u)?kw:Cj,O=arguments.length<3;return x(u,vt(f,4),g,O,Ya)}function Tke(u,f,g){var x=Rt(u)?qCe:Cj,O=arguments.length<3;return x(u,vt(f,4),g,O,Hj)}function $ke(u,f){var g=Rt(u)?Wa:Wj;return g(u,Gy(vt(f,3)))}function kke(u){var f=Rt(u)?Uj:xTe;return f(u)}function Ike(u,f,g){(g?qr(u,f,g):f===n)?f=1:f=Dt(f);var x=Rt(u)?QOe:STe;return x(u,f)}function Pke(u){var f=Rt(u)?eTe:ATe;return f(u)}function Rke(u){if(u==null)return 0;if(ti(u))return Jy(u)?Cl(u):u.length;var f=Ir(u);return f==Ze||f==Ue?u.size:Gw(u).length}function Nke(u,f,g){var x=Rt(u)?Iw:CTe;return g&&qr(u,f,g)&&(f=n),x(u,vt(f,3))}var Dke=Ut(function(u,f){if(u==null)return[];var g=f.length;return g>1&&qr(u,f[0],f[1])?f=[]:g>2&&qr(f[0],f[1],f[2])&&(f=[f[0]]),nL(u,gr(f,1),[])}),Vy=mOe||function(){return yr.Date.now()};function Mke(u,f){if(typeof f!="function")throw new Ci(a);return u=Dt(u),function(){if(--u<1)return f.apply(this,arguments)}}function YL(u,f,g){return f=g?n:f,f=u&&f==null?u.length:f,oa(u,j,n,n,n,n,f)}function JL(u,f){var g;if(typeof f!="function")throw new Ci(a);return u=Dt(u),function(){return--u>0&&(g=f.apply(this,arguments)),u<=1&&(f=n),g}}var bx=Ut(function(u,f,g){var x=w;if(g.length){var O=Ka(g,Nl(bx));x|=E}return oa(u,x,f,g,O)}),XL=Ut(function(u,f,g){var x=w|_;if(g.length){var O=Ka(g,Nl(XL));x|=E}return oa(f,x,u,g,O)});function QL(u,f,g){f=g?n:f;var x=oa(u,S,n,n,n,n,n,f);return x.placeholder=QL.placeholder,x}function eF(u,f,g){f=g?n:f;var x=oa(u,A,n,n,n,n,n,f);return x.placeholder=eF.placeholder,x}function tF(u,f,g){var x,O,I,U,W,te,be=0,we=!1,Ee=!1,Ve=!0;if(typeof u!="function")throw new Ci(a);f=Ii(f)||0,Nn(g)&&(we=!!g.leading,Ee="maxWait"in g,I=Ee?nr(Ii(g.maxWait)||0,f):I,Ve="trailing"in g?!!g.trailing:Ve);function at(Un){var Ki=x,ca=O;return x=O=n,be=Un,U=u.apply(ca,Ki),U}function _t(Un){return be=Un,W=Kf(Ht,f),we?at(Un):U}function qt(Un){var Ki=Un-te,ca=Un-be,_F=f-Ki;return Ee?kr(_F,I-ca):_F}function wt(Un){var Ki=Un-te,ca=Un-be;return te===n||Ki>=f||Ki<0||Ee&&ca>=I}function Ht(){var Un=Vy();if(wt(Un))return Xt(Un);W=Kf(Ht,qt(Un))}function Xt(Un){return W=n,Ve&&x?at(Un):(x=O=n,U)}function yi(){W!==n&&fL(W),be=0,x=te=O=W=n}function Ur(){return W===n?U:Xt(Vy())}function gi(){var Un=Vy(),Ki=wt(Un);if(x=arguments,O=this,te=Un,Ki){if(W===n)return _t(te);if(Ee)return fL(W),W=Kf(Ht,f),at(te)}return W===n&&(W=Kf(Ht,f)),U}return gi.cancel=yi,gi.flush=Ur,gi}var jke=Ut(function(u,f){return Zj(u,1,f)}),Lke=Ut(function(u,f,g){return Zj(u,Ii(f)||0,g)});function Fke(u){return oa(u,L)}function Ky(u,f){if(typeof u!="function"||f!=null&&typeof f!="function")throw new Ci(a);var g=function(){var x=arguments,O=f?f.apply(this,x):x[0],I=g.cache;if(I.has(O))return I.get(O);var U=u.apply(this,x);return g.cache=I.set(O,U)||I,U};return g.cache=new(Ky.Cache||ra),g}Ky.Cache=ra;function Gy(u){if(typeof u!="function")throw new Ci(a);return function(){var f=arguments;switch(f.length){case 0:return!u.call(this);case 1:return!u.call(this,f[0]);case 2:return!u.call(this,f[0],f[1]);case 3:return!u.call(this,f[0],f[1],f[2])}return!u.apply(this,f)}}function qke(u){return JL(2,u)}var Uke=OTe(function(u,f){f=f.length==1&&Rt(f[0])?kn(f[0],pi(vt())):kn(gr(f,1),pi(vt()));var g=f.length;return Ut(function(x){for(var O=-1,I=kr(x.length,g);++O<I;)x[O]=f[O].call(this,x[O]);return di(u,this,x)})}),_x=Ut(function(u,f){var g=Ka(f,Nl(_x));return oa(u,E,n,f,g)}),nF=Ut(function(u,f){var g=Ka(f,Nl(nF));return oa(u,T,n,f,g)}),Bke=aa(function(u,f){return oa(u,q,n,n,n,f)});function zke(u,f){if(typeof u!="function")throw new Ci(a);return f=f===n?f:Dt(f),Ut(u,f)}function Zke(u,f){if(typeof u!="function")throw new Ci(a);return f=f==null?0:nr(Dt(f),0),Ut(function(g){var x=g[f],O=Qa(g,0,f);return x&&Va(O,x),di(u,this,O)})}function Hke(u,f,g){var x=!0,O=!0;if(typeof u!="function")throw new Ci(a);return Nn(g)&&(x="leading"in g?!!g.leading:x,O="trailing"in g?!!g.trailing:O),tF(u,f,{leading:x,maxWait:f,trailing:O})}function Wke(u){return YL(u,1)}function Vke(u,f){return _x(ix(f),u)}function Kke(){if(!arguments.length)return[];var u=arguments[0];return Rt(u)?u:[u]}function Gke(u){return Ti(u,h)}function Yke(u,f){return f=typeof f=="function"?f:n,Ti(u,h,f)}function Jke(u){return Ti(u,p|h)}function Xke(u,f){return f=typeof f=="function"?f:n,Ti(u,p|h,f)}function Qke(u,f){return f==null||zj(u,f,ur(f))}function Vi(u,f){return u===f||u!==u&&f!==f}var eIe=Uy(Ww),tIe=Uy(function(u,f){return u>=f}),Js=Gj(function(){return arguments}())?Gj:function(u){return Ln(u)&&hn.call(u,"callee")&&!Dj.call(u,"callee")},Rt=le.isArray,nIe=yj?pi(yj):cTe;function ti(u){return u!=null&&Yy(u.length)&&!ua(u)}function qn(u){return Ln(u)&&ti(u)}function rIe(u){return u===!0||u===!1||Ln(u)&&Fr(u)==rt}var es=gOe||Ix,iIe=gj?pi(gj):fTe;function oIe(u){return Ln(u)&&u.nodeType===1&&!Gf(u)}function aIe(u){if(u==null)return!0;if(ti(u)&&(Rt(u)||typeof u=="string"||typeof u.splice=="function"||es(u)||Dl(u)||Js(u)))return!u.length;var f=Ir(u);if(f==Ze||f==Ue)return!u.size;if(Vf(u))return!Gw(u).length;for(var g in u)if(hn.call(u,g))return!1;return!0}function sIe(u,f){return Zf(u,f)}function uIe(u,f,g){g=typeof g=="function"?g:n;var x=g?g(u,f):n;return x===n?Zf(u,f,n,g):!!x}function wx(u){if(!Ln(u))return!1;var f=Fr(u);return f==Ae||f==Pe||typeof u.message=="string"&&typeof u.name=="string"&&!Gf(u)}function lIe(u){return typeof u=="number"&&jj(u)}function ua(u){if(!Nn(u))return!1;var f=Fr(u);return f==Fe||f==$e||f==Je||f==Se}function rF(u){return typeof u=="number"&&u==Dt(u)}function Yy(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=ne}function Nn(u){var f=typeof u;return u!=null&&(f=="object"||f=="function")}function Ln(u){return u!=null&&typeof u=="object"}var iF=vj?pi(vj):pTe;function cIe(u,f){return u===f||Kw(u,f,fx(f))}function fIe(u,f,g){return g=typeof g=="function"?g:n,Kw(u,f,fx(f),g)}function dIe(u){return oF(u)&&u!=+u}function pIe(u){if(YTe(u))throw new kt(o);return Yj(u)}function hIe(u){return u===null}function mIe(u){return u==null}function oF(u){return typeof u=="number"||Ln(u)&&Fr(u)==lt}function Gf(u){if(!Ln(u)||Fr(u)!=de)return!1;var f=Sy(u);if(f===null)return!0;var g=hn.call(f,"constructor")&&f.constructor;return typeof g=="function"&&g instanceof g&&by.call(g)==fOe}var xx=bj?pi(bj):hTe;function yIe(u){return rF(u)&&u>=-ne&&u<=ne}var aF=_j?pi(_j):mTe;function Jy(u){return typeof u=="string"||!Rt(u)&&Ln(u)&&Fr(u)==ot}function mi(u){return typeof u=="symbol"||Ln(u)&&Fr(u)==It}var Dl=wj?pi(wj):yTe;function gIe(u){return u===n}function vIe(u){return Ln(u)&&Ir(u)==ie}function bIe(u){return Ln(u)&&Fr(u)==ye}var _Ie=Uy(Yw),wIe=Uy(function(u,f){return u<=f});function sF(u){if(!u)return[];if(ti(u))return Jy(u)?Hi(u):ei(u);if(Mf&&u[Mf])return QCe(u[Mf]());var f=Ir(u),g=f==Ze?jw:f==Ue?yy:Ml;return g(u)}function la(u){if(!u)return u===0?u:0;if(u=Ii(u),u===Y||u===-Y){var f=u<0?-1:1;return f*ce}return u===u?u:0}function Dt(u){var f=la(u),g=f%1;return f===f?g?f-g:f:0}function uF(u){return u?Vs(Dt(u),0,ue):0}function Ii(u){if(typeof u=="number")return u;if(mi(u))return P;if(Nn(u)){var f=typeof u.valueOf=="function"?u.valueOf():u;u=Nn(f)?f+"":f}if(typeof u!="string")return u===0?u:+u;u=Oj(u);var g=Tt.test(u);return g||On.test(u)?MCe(u.slice(2),g?2:8):Ft.test(u)?P:+u}function lF(u){return Ao(u,ni(u))}function xIe(u){return u?Vs(Dt(u),-ne,ne):u===0?u:0}function fn(u){return u==null?"":hi(u)}var SIe=Pl(function(u,f){if(Vf(f)||ti(f)){Ao(f,ur(f),u);return}for(var g in f)hn.call(f,g)&&Uf(u,g,f[g])}),cF=Pl(function(u,f){Ao(f,ni(f),u)}),Xy=Pl(function(u,f,g,x){Ao(f,ni(f),u,x)}),EIe=Pl(function(u,f,g,x){Ao(f,ur(f),u,x)}),AIe=aa(zw);function CIe(u,f){var g=Il(u);return f==null?g:Bj(g,f)}var OIe=Ut(function(u,f){u=_n(u);var g=-1,x=f.length,O=x>2?f[2]:n;for(O&&qr(f[0],f[1],O)&&(x=1);++g<x;)for(var I=f[g],U=ni(I),W=-1,te=U.length;++W<te;){var be=U[W],we=u[be];(we===n||Vi(we,Tl[be])&&!hn.call(u,be))&&(u[be]=I[be])}return u}),TIe=Ut(function(u){return u.push(n,OL),di(fF,n,u)});function $Ie(u,f){return Sj(u,vt(f,3),Eo)}function kIe(u,f){return Sj(u,vt(f,3),Hw)}function IIe(u,f){return u==null?u:Zw(u,vt(f,3),ni)}function PIe(u,f){return u==null?u:Vj(u,vt(f,3),ni)}function RIe(u,f){return u&&Eo(u,vt(f,3))}function NIe(u,f){return u&&Hw(u,vt(f,3))}function DIe(u){return u==null?[]:Ry(u,ur(u))}function MIe(u){return u==null?[]:Ry(u,ni(u))}function Sx(u,f,g){var x=u==null?n:Ks(u,f);return x===n?g:x}function jIe(u,f){return u!=null&&kL(u,f,aTe)}function Ex(u,f){return u!=null&&kL(u,f,sTe)}var LIe=xL(function(u,f,g){f!=null&&typeof f.toString!="function"&&(f=_y.call(f)),u[f]=g},Cx(ri)),FIe=xL(function(u,f,g){f!=null&&typeof f.toString!="function"&&(f=_y.call(f)),hn.call(u,f)?u[f].push(g):u[f]=[g]},vt),qIe=Ut(zf);function ur(u){return ti(u)?qj(u):Gw(u)}function ni(u){return ti(u)?qj(u,!0):gTe(u)}function UIe(u,f){var g={};return f=vt(f,3),Eo(u,function(x,O,I){ia(g,f(x,O,I),x)}),g}function BIe(u,f){var g={};return f=vt(f,3),Eo(u,function(x,O,I){ia(g,O,f(x,O,I))}),g}var zIe=Pl(function(u,f,g){Ny(u,f,g)}),fF=Pl(function(u,f,g,x){Ny(u,f,g,x)}),ZIe=aa(function(u,f){var g={};if(u==null)return g;var x=!1;f=kn(f,function(I){return I=Xa(I,u),x||(x=I.length>1),I}),Ao(u,lx(u),g),x&&(g=Ti(g,p|m|h,LTe));for(var O=f.length;O--;)tx(g,f[O]);return g});function HIe(u,f){return dF(u,Gy(vt(f)))}var WIe=aa(function(u,f){return u==null?{}:bTe(u,f)});function dF(u,f){if(u==null)return{};var g=kn(lx(u),function(x){return[x]});return f=vt(f),rL(u,g,function(x,O){return f(x,O[0])})}function VIe(u,f,g){f=Xa(f,u);var x=-1,O=f.length;for(O||(O=1,u=n);++x<O;){var I=u==null?n:u[Co(f[x])];I===n&&(x=O,I=g),u=ua(I)?I.call(u):I}return u}function KIe(u,f,g){return u==null?u:Hf(u,f,g)}function GIe(u,f,g,x){return x=typeof x=="function"?x:n,u==null?u:Hf(u,f,g,x)}var pF=AL(ur),hF=AL(ni);function YIe(u,f,g){var x=Rt(u),O=x||es(u)||Dl(u);if(f=vt(f,4),g==null){var I=u&&u.constructor;O?g=x?new I:[]:Nn(u)?g=ua(I)?Il(Sy(u)):{}:g={}}return(O?Ai:Eo)(u,function(U,W,te){return f(g,U,W,te)}),g}function JIe(u,f){return u==null?!0:tx(u,f)}function XIe(u,f,g){return u==null?u:uL(u,f,ix(g))}function QIe(u,f,g,x){return x=typeof x=="function"?x:n,u==null?u:uL(u,f,ix(g),x)}function Ml(u){return u==null?[]:Mw(u,ur(u))}function ePe(u){return u==null?[]:Mw(u,ni(u))}function tPe(u,f,g){return g===n&&(g=f,f=n),g!==n&&(g=Ii(g),g=g===g?g:0),f!==n&&(f=Ii(f),f=f===f?f:0),Vs(Ii(u),f,g)}function nPe(u,f,g){return f=la(f),g===n?(g=f,f=0):g=la(g),u=Ii(u),uTe(u,f,g)}function rPe(u,f,g){if(g&&typeof g!="boolean"&&qr(u,f,g)&&(f=g=n),g===n&&(typeof f=="boolean"?(g=f,f=n):typeof u=="boolean"&&(g=u,u=n)),u===n&&f===n?(u=0,f=1):(u=la(u),f===n?(f=u,u=0):f=la(f)),u>f){var x=u;u=f,f=x}if(g||u%1||f%1){var O=Lj();return kr(u+O*(f-u+DCe("1e-"+((O+"").length-1))),f)}return Xw(u,f)}var iPe=Rl(function(u,f,g){return f=f.toLowerCase(),u+(g?mF(f):f)});function mF(u){return Ax(fn(u).toLowerCase())}function yF(u){return u=fn(u),u&&u.replace(Xr,KCe).replace(ACe,"")}function oPe(u,f,g){u=fn(u),f=hi(f);var x=u.length;g=g===n?x:Vs(Dt(g),0,x);var O=g;return g-=f.length,g>=0&&u.slice(g,O)==f}function aPe(u){return u=fn(u),u&&je.test(u)?u.replace(sr,GCe):u}function sPe(u){return u=fn(u),u&&bn.test(u)?u.replace(Jt,"\\$&"):u}var uPe=Rl(function(u,f,g){return u+(g?"-":"")+f.toLowerCase()}),lPe=Rl(function(u,f,g){return u+(g?" ":"")+f.toLowerCase()}),cPe=bL("toLowerCase");function fPe(u,f,g){u=fn(u),f=Dt(f);var x=f?Cl(u):0;if(!f||x>=f)return u;var O=(f-x)/2;return qy(Oy(O),g)+u+qy(Cy(O),g)}function dPe(u,f,g){u=fn(u),f=Dt(f);var x=f?Cl(u):0;return f&&x<f?u+qy(f-x,g):u}function pPe(u,f,g){u=fn(u),f=Dt(f);var x=f?Cl(u):0;return f&&x<f?qy(f-x,g)+u:u}function hPe(u,f,g){return g||f==null?f=0:f&&(f=+f),wOe(fn(u).replace(Rn,""),f||0)}function mPe(u,f,g){return(g?qr(u,f,g):f===n)?f=1:f=Dt(f),Qw(fn(u),f)}function yPe(){var u=arguments,f=fn(u[0]);return u.length<3?f:f.replace(u[1],u[2])}var gPe=Rl(function(u,f,g){return u+(g?"_":"")+f.toLowerCase()});function vPe(u,f,g){return g&&typeof g!="number"&&qr(u,f,g)&&(f=g=n),g=g===n?ue:g>>>0,g?(u=fn(u),u&&(typeof f=="string"||f!=null&&!xx(f))&&(f=hi(f),!f&&Al(u))?Qa(Hi(u),0,g):u.split(f,g)):[]}var bPe=Rl(function(u,f,g){return u+(g?" ":"")+Ax(f)});function _Pe(u,f,g){return u=fn(u),g=g==null?0:Vs(Dt(g),0,u.length),f=hi(f),u.slice(g,g+f.length)==f}function wPe(u,f,g){var x=$.templateSettings;g&&qr(u,f,g)&&(f=n),u=fn(u),f=Xy({},f,x,CL);var O=Xy({},f.imports,x.imports,CL),I=ur(O),U=Mw(O,I),W,te,be=0,we=f.interpolate||Zi,Ee="__p += '",Ve=Lw((f.escape||Zi).source+"|"+we.source+"|"+(we===Re?Kt:Zi).source+"|"+(f.evaluate||Zi).source+"|$","g"),at="//# sourceURL="+(hn.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++kCe+"]")+`
|
|
64
|
-
`;u.replace(Ve,function(
|
|
63
|
+
`)}function VTe(u){return Rt(u)||Js(u)||!!(Mj&&u&&u[Mj])}function sa(u,f){var g=typeof u;return f=f??ne,!!f&&(g=="number"||g!="symbol"&&Tn.test(u))&&u>-1&&u%1==0&&u<f}function qr(u,f,g){if(!Nn(g))return!1;var x=typeof f;return(x=="number"?ti(g)&&sa(f,g.length):x=="string"&&f in g)?Vi(g[f],u):!1}function px(u,f){if(Rt(u))return!1;var g=typeof u;return g=="number"||g=="symbol"||g=="boolean"||u==null||mi(u)?!0:_t.test(u)||!We.test(u)||f!=null&&u in _n(f)}function KTe(u){var f=typeof u;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?u!=="__proto__":u===null}function hx(u){var f=By(u),g=$[f];if(typeof g!="function"||!(f in Gt.prototype))return!1;if(u===g)return!0;var x=cx(g);return!!x&&u===x[0]}function GTe(u){return!!Pj&&Pj in u}var YTe=vy?ua:Ix;function Vf(u){var f=u&&u.constructor,g=typeof f=="function"&&f.prototype||Tl;return u===g}function PL(u){return u===u&&!Nn(u)}function RL(u,f){return function(g){return g==null?!1:g[u]===f&&(f!==n||u in _n(g))}}function JTe(u){var f=Ky(u,function(x){return g.size===c&&g.clear(),x}),g=f.cache;return f}function XTe(u,f){var g=u[1],x=f[1],O=g|x,I=O<(w|_|j),U=x==j&&g==S||x==j&&g==q&&u[7].length<=f[8]||x==(j|q)&&f[7].length<=f[8]&&g==S;if(!(I||U))return u;x&w&&(u[2]=f[2],O|=g&w?0:b);var W=f[3];if(W){var te=u[3];u[3]=te?mL(te,W,f[4]):W,u[4]=te?Ka(u[3],d):f[4]}return W=f[5],W&&(te=u[5],u[5]=te?yL(te,W,f[6]):W,u[6]=te?Ka(u[5],d):f[6]),W=f[7],W&&(u[7]=W),x&j&&(u[8]=u[8]==null?f[8]:kr(u[8],f[8])),u[9]==null&&(u[9]=f[9]),u[0]=f[0],u[1]=O,u}function QTe(u){var f=[];if(u!=null)for(var g in _n(u))f.push(g);return f}function e$e(u){return _y.call(u)}function NL(u,f,g){return f=nr(f===n?u.length-1:f,0),function(){for(var x=arguments,O=-1,I=nr(x.length-f,0),U=le(I);++O<I;)U[O]=x[f+O];O=-1;for(var W=le(f+1);++O<f;)W[O]=x[O];return W[f]=g(U),di(u,this,W)}}function DL(u,f){return f.length<2?u:Ks(u,$i(f,0,-1))}function t$e(u,f){for(var g=u.length,x=kr(f.length,g),O=ei(u);x--;){var I=f[x];u[x]=sa(I,g)?O[I]:n}return u}function mx(u,f){if(!(f==="constructor"&&typeof u[f]=="function")&&f!="__proto__")return u[f]}var ML=LL(oL),Kf=yOe||function(u,f){return yr.setTimeout(u,f)},yx=LL(ETe);function jL(u,f,g){var x=f+"";return yx(u,WTe(x,n$e(zTe(x),g)))}function LL(u){var f=0,g=0;return function(){var x=_Oe(),O=Q-(x-g);if(g=x,O>0){if(++f>=re)return arguments[0]}else f=0;return u.apply(n,arguments)}}function Zy(u,f){var g=-1,x=u.length,O=x-1;for(f=f===n?x:f;++g<f;){var I=Xw(g,O),U=u[I];u[I]=u[g],u[g]=U}return u.length=f,u}var FL=JTe(function(u){var f=[];return u.charCodeAt(0)===46&&f.push(""),u.replace(Pt,function(g,x,O,I){f.push(O?I.replace(yt,"$1"):x||g)}),f});function Co(u){if(typeof u=="string"||mi(u))return u;var f=u+"";return f=="0"&&1/u==-Y?"-0":f}function Ys(u){if(u!=null){try{return by.call(u)}catch{}try{return u+""}catch{}}return""}function n$e(u,f){return Ai(De,function(g){var x="_."+g[0];f&g[1]&&!hy(u,x)&&u.push(x)}),u.sort()}function qL(u){if(u instanceof Gt)return u.clone();var f=new Oi(u.__wrapped__,u.__chain__);return f.__actions__=ei(u.__actions__),f.__index__=u.__index__,f.__values__=u.__values__,f}function r$e(u,f,g){(g?qr(u,f,g):f===n)?f=1:f=nr(Dt(f),0);var x=u==null?0:u.length;if(!x||f<1)return[];for(var O=0,I=0,U=le(Cy(x/f));O<x;)U[I++]=$i(u,O,O+=f);return U}function i$e(u){for(var f=-1,g=u==null?0:u.length,x=0,O=[];++f<g;){var I=u[f];I&&(O[x++]=I)}return O}function o$e(){var u=arguments.length;if(!u)return[];for(var f=le(u-1),g=arguments[0],x=u;x--;)f[x-1]=arguments[x];return Va(Rt(g)?ei(g):[g],gr(f,1))}var a$e=Ut(function(u,f){return qn(u)?Bf(u,gr(f,1,qn,!0)):[]}),s$e=Ut(function(u,f){var g=ki(f);return qn(g)&&(g=n),qn(u)?Bf(u,gr(f,1,qn,!0),vt(g,2)):[]}),u$e=Ut(function(u,f){var g=ki(f);return qn(g)&&(g=n),qn(u)?Bf(u,gr(f,1,qn,!0),n,g):[]});function l$e(u,f,g){var x=u==null?0:u.length;return x?(f=g||f===n?1:Dt(f),$i(u,f<0?0:f,x)):[]}function c$e(u,f,g){var x=u==null?0:u.length;return x?(f=g||f===n?1:Dt(f),f=x-f,$i(u,0,f<0?0:f)):[]}function f$e(u,f){return u&&u.length?My(u,vt(f,3),!0,!0):[]}function d$e(u,f){return u&&u.length?My(u,vt(f,3),!0):[]}function p$e(u,f,g,x){var O=u==null?0:u.length;return O?(g&&typeof g!="number"&&qr(u,f,g)&&(g=0,x=O),oTe(u,f,g,x)):[]}function UL(u,f,g){var x=u==null?0:u.length;if(!x)return-1;var O=g==null?0:Dt(g);return O<0&&(O=nr(x+O,0)),my(u,vt(f,3),O)}function BL(u,f,g){var x=u==null?0:u.length;if(!x)return-1;var O=x-1;return g!==n&&(O=Dt(g),O=g<0?nr(x+O,0):kr(O,x-1)),my(u,vt(f,3),O,!0)}function zL(u){var f=u==null?0:u.length;return f?gr(u,1):[]}function h$e(u){var f=u==null?0:u.length;return f?gr(u,Y):[]}function m$e(u,f){var g=u==null?0:u.length;return g?(f=f===n?1:Dt(f),gr(u,f)):[]}function y$e(u){for(var f=-1,g=u==null?0:u.length,x={};++f<g;){var O=u[f];x[O[0]]=O[1]}return x}function ZL(u){return u&&u.length?u[0]:n}function g$e(u,f,g){var x=u==null?0:u.length;if(!x)return-1;var O=g==null?0:Dt(g);return O<0&&(O=nr(x+O,0)),El(u,f,O)}function v$e(u){var f=u==null?0:u.length;return f?$i(u,0,-1):[]}var b$e=Ut(function(u){var f=kn(u,rx);return f.length&&f[0]===u[0]?Vw(f):[]}),_$e=Ut(function(u){var f=ki(u),g=kn(u,rx);return f===ki(g)?f=n:g.pop(),g.length&&g[0]===u[0]?Vw(g,vt(f,2)):[]}),w$e=Ut(function(u){var f=ki(u),g=kn(u,rx);return f=typeof f=="function"?f:n,f&&g.pop(),g.length&&g[0]===u[0]?Vw(g,n,f):[]});function x$e(u,f){return u==null?"":vOe.call(u,f)}function ki(u){var f=u==null?0:u.length;return f?u[f-1]:n}function S$e(u,f,g){var x=u==null?0:u.length;if(!x)return-1;var O=x;return g!==n&&(O=Dt(g),O=O<0?nr(x+O,0):kr(O,x-1)),f===f?nOe(u,f,O):my(u,Ej,O,!0)}function E$e(u,f){return u&&u.length?tL(u,Dt(f)):n}var A$e=Ut(HL);function HL(u,f){return u&&u.length&&f&&f.length?Jw(u,f):u}function C$e(u,f,g){return u&&u.length&&f&&f.length?Jw(u,f,vt(g,2)):u}function O$e(u,f,g){return u&&u.length&&f&&f.length?Jw(u,f,n,g):u}var T$e=aa(function(u,f){var g=u==null?0:u.length,x=zw(u,f);return iL(u,kn(f,function(O){return sa(O,g)?+O:O}).sort(hL)),x});function $$e(u,f){var g=[];if(!(u&&u.length))return g;var x=-1,O=[],I=u.length;for(f=vt(f,3);++x<I;){var U=u[x];f(U,x,u)&&(g.push(U),O.push(x))}return iL(u,O),g}function gx(u){return u==null?u:xOe.call(u)}function k$e(u,f,g){var x=u==null?0:u.length;return x?(g&&typeof g!="number"&&qr(u,f,g)?(f=0,g=x):(f=f==null?0:Dt(f),g=g===n?x:Dt(g)),$i(u,f,g)):[]}function I$e(u,f){return Dy(u,f)}function P$e(u,f,g){return ex(u,f,vt(g,2))}function R$e(u,f){var g=u==null?0:u.length;if(g){var x=Dy(u,f);if(x<g&&Vi(u[x],f))return x}return-1}function N$e(u,f){return Dy(u,f,!0)}function D$e(u,f,g){return ex(u,f,vt(g,2),!0)}function M$e(u,f){var g=u==null?0:u.length;if(g){var x=Dy(u,f,!0)-1;if(Vi(u[x],f))return x}return-1}function j$e(u){return u&&u.length?aL(u):[]}function L$e(u,f){return u&&u.length?aL(u,vt(f,2)):[]}function F$e(u){var f=u==null?0:u.length;return f?$i(u,1,f):[]}function q$e(u,f,g){return u&&u.length?(f=g||f===n?1:Dt(f),$i(u,0,f<0?0:f)):[]}function U$e(u,f,g){var x=u==null?0:u.length;return x?(f=g||f===n?1:Dt(f),f=x-f,$i(u,f<0?0:f,x)):[]}function B$e(u,f){return u&&u.length?My(u,vt(f,3),!1,!0):[]}function z$e(u,f){return u&&u.length?My(u,vt(f,3)):[]}var Z$e=Ut(function(u){return Ja(gr(u,1,qn,!0))}),H$e=Ut(function(u){var f=ki(u);return qn(f)&&(f=n),Ja(gr(u,1,qn,!0),vt(f,2))}),W$e=Ut(function(u){var f=ki(u);return f=typeof f=="function"?f:n,Ja(gr(u,1,qn,!0),n,f)});function V$e(u){return u&&u.length?Ja(u):[]}function K$e(u,f){return u&&u.length?Ja(u,vt(f,2)):[]}function G$e(u,f){return f=typeof f=="function"?f:n,u&&u.length?Ja(u,n,f):[]}function vx(u){if(!(u&&u.length))return[];var f=0;return u=Wa(u,function(g){if(qn(g))return f=nr(g.length,f),!0}),Dw(f,function(g){return kn(u,Pw(g))})}function WL(u,f){if(!(u&&u.length))return[];var g=vx(u);return f==null?g:kn(g,function(x){return di(f,n,x)})}var Y$e=Ut(function(u,f){return qn(u)?Bf(u,f):[]}),J$e=Ut(function(u){return nx(Wa(u,qn))}),X$e=Ut(function(u){var f=ki(u);return qn(f)&&(f=n),nx(Wa(u,qn),vt(f,2))}),Q$e=Ut(function(u){var f=ki(u);return f=typeof f=="function"?f:n,nx(Wa(u,qn),n,f)}),eke=Ut(vx);function tke(u,f){return cL(u||[],f||[],Uf)}function nke(u,f){return cL(u||[],f||[],Hf)}var rke=Ut(function(u){var f=u.length,g=f>1?u[f-1]:n;return g=typeof g=="function"?(u.pop(),g):n,WL(u,g)});function VL(u){var f=$(u);return f.__chain__=!0,f}function ike(u,f){return f(u),u}function Hy(u,f){return f(u)}var oke=aa(function(u){var f=u.length,g=f?u[0]:0,x=this.__wrapped__,O=function(I){return zw(I,u)};return f>1||this.__actions__.length||!(x instanceof Gt)||!sa(g)?this.thru(O):(x=x.slice(g,+g+(f?1:0)),x.__actions__.push({func:Hy,args:[O],thisArg:n}),new Oi(x,this.__chain__).thru(function(I){return f&&!I.length&&I.push(n),I}))});function ake(){return VL(this)}function ske(){return new Oi(this.value(),this.__chain__)}function uke(){this.__values__===n&&(this.__values__=sF(this.value()));var u=this.__index__>=this.__values__.length,f=u?n:this.__values__[this.__index__++];return{done:u,value:f}}function lke(){return this}function cke(u){for(var f,g=this;g instanceof ky;){var x=qL(g);x.__index__=0,x.__values__=n,f?O.__wrapped__=x:f=x;var O=x;g=g.__wrapped__}return O.__wrapped__=u,f}function fke(){var u=this.__wrapped__;if(u instanceof Gt){var f=u;return this.__actions__.length&&(f=new Gt(this)),f=f.reverse(),f.__actions__.push({func:Hy,args:[gx],thisArg:n}),new Oi(f,this.__chain__)}return this.thru(gx)}function dke(){return lL(this.__wrapped__,this.__actions__)}var pke=jy(function(u,f,g){hn.call(u,g)?++u[g]:ia(u,g,1)});function hke(u,f,g){var x=Rt(u)?xj:iTe;return g&&qr(u,f,g)&&(f=n),x(u,vt(f,3))}function mke(u,f){var g=Rt(u)?Wa:Wj;return g(u,vt(f,3))}var yke=_L(UL),gke=_L(BL);function vke(u,f){return gr(Wy(u,f),1)}function bke(u,f){return gr(Wy(u,f),Y)}function _ke(u,f,g){return g=g===n?1:Dt(g),gr(Wy(u,f),g)}function KL(u,f){var g=Rt(u)?Ai:Ya;return g(u,vt(f,3))}function GL(u,f){var g=Rt(u)?FCe:Hj;return g(u,vt(f,3))}var wke=jy(function(u,f,g){hn.call(u,g)?u[g].push(f):ia(u,g,[f])});function xke(u,f,g,x){u=ti(u)?u:Ml(u),g=g&&!x?Dt(g):0;var O=u.length;return g<0&&(g=nr(O+g,0)),Jy(u)?g<=O&&u.indexOf(f,g)>-1:!!O&&El(u,f,g)>-1}var Ske=Ut(function(u,f,g){var x=-1,O=typeof f=="function",I=ti(u)?le(u.length):[];return Ya(u,function(U){I[++x]=O?di(f,U,g):zf(U,f,g)}),I}),Eke=jy(function(u,f,g){ia(u,g,f)});function Wy(u,f){var g=Rt(u)?kn:Xj;return g(u,vt(f,3))}function Ake(u,f,g,x){return u==null?[]:(Rt(f)||(f=f==null?[]:[f]),g=x?n:g,Rt(g)||(g=g==null?[]:[g]),nL(u,f,g))}var Cke=jy(function(u,f,g){u[g?0:1].push(f)},function(){return[[],[]]});function Oke(u,f,g){var x=Rt(u)?kw:Cj,O=arguments.length<3;return x(u,vt(f,4),g,O,Ya)}function Tke(u,f,g){var x=Rt(u)?qCe:Cj,O=arguments.length<3;return x(u,vt(f,4),g,O,Hj)}function $ke(u,f){var g=Rt(u)?Wa:Wj;return g(u,Gy(vt(f,3)))}function kke(u){var f=Rt(u)?Uj:xTe;return f(u)}function Ike(u,f,g){(g?qr(u,f,g):f===n)?f=1:f=Dt(f);var x=Rt(u)?QOe:STe;return x(u,f)}function Pke(u){var f=Rt(u)?eTe:ATe;return f(u)}function Rke(u){if(u==null)return 0;if(ti(u))return Jy(u)?Cl(u):u.length;var f=Ir(u);return f==Ze||f==Ue?u.size:Gw(u).length}function Nke(u,f,g){var x=Rt(u)?Iw:CTe;return g&&qr(u,f,g)&&(f=n),x(u,vt(f,3))}var Dke=Ut(function(u,f){if(u==null)return[];var g=f.length;return g>1&&qr(u,f[0],f[1])?f=[]:g>2&&qr(f[0],f[1],f[2])&&(f=[f[0]]),nL(u,gr(f,1),[])}),Vy=mOe||function(){return yr.Date.now()};function Mke(u,f){if(typeof f!="function")throw new Ci(a);return u=Dt(u),function(){if(--u<1)return f.apply(this,arguments)}}function YL(u,f,g){return f=g?n:f,f=u&&f==null?u.length:f,oa(u,j,n,n,n,n,f)}function JL(u,f){var g;if(typeof f!="function")throw new Ci(a);return u=Dt(u),function(){return--u>0&&(g=f.apply(this,arguments)),u<=1&&(f=n),g}}var bx=Ut(function(u,f,g){var x=w;if(g.length){var O=Ka(g,Nl(bx));x|=E}return oa(u,x,f,g,O)}),XL=Ut(function(u,f,g){var x=w|_;if(g.length){var O=Ka(g,Nl(XL));x|=E}return oa(f,x,u,g,O)});function QL(u,f,g){f=g?n:f;var x=oa(u,S,n,n,n,n,n,f);return x.placeholder=QL.placeholder,x}function eF(u,f,g){f=g?n:f;var x=oa(u,A,n,n,n,n,n,f);return x.placeholder=eF.placeholder,x}function tF(u,f,g){var x,O,I,U,W,te,be=0,we=!1,Ee=!1,Ve=!0;if(typeof u!="function")throw new Ci(a);f=Ii(f)||0,Nn(g)&&(we=!!g.leading,Ee="maxWait"in g,I=Ee?nr(Ii(g.maxWait)||0,f):I,Ve="trailing"in g?!!g.trailing:Ve);function at(Un){var Ki=x,ca=O;return x=O=n,be=Un,U=u.apply(ca,Ki),U}function wt(Un){return be=Un,W=Kf(Ht,f),we?at(Un):U}function qt(Un){var Ki=Un-te,ca=Un-be,_F=f-Ki;return Ee?kr(_F,I-ca):_F}function xt(Un){var Ki=Un-te,ca=Un-be;return te===n||Ki>=f||Ki<0||Ee&&ca>=I}function Ht(){var Un=Vy();if(xt(Un))return Xt(Un);W=Kf(Ht,qt(Un))}function Xt(Un){return W=n,Ve&&x?at(Un):(x=O=n,U)}function yi(){W!==n&&fL(W),be=0,x=te=O=W=n}function Ur(){return W===n?U:Xt(Vy())}function gi(){var Un=Vy(),Ki=xt(Un);if(x=arguments,O=this,te=Un,Ki){if(W===n)return wt(te);if(Ee)return fL(W),W=Kf(Ht,f),at(te)}return W===n&&(W=Kf(Ht,f)),U}return gi.cancel=yi,gi.flush=Ur,gi}var jke=Ut(function(u,f){return Zj(u,1,f)}),Lke=Ut(function(u,f,g){return Zj(u,Ii(f)||0,g)});function Fke(u){return oa(u,L)}function Ky(u,f){if(typeof u!="function"||f!=null&&typeof f!="function")throw new Ci(a);var g=function(){var x=arguments,O=f?f.apply(this,x):x[0],I=g.cache;if(I.has(O))return I.get(O);var U=u.apply(this,x);return g.cache=I.set(O,U)||I,U};return g.cache=new(Ky.Cache||ra),g}Ky.Cache=ra;function Gy(u){if(typeof u!="function")throw new Ci(a);return function(){var f=arguments;switch(f.length){case 0:return!u.call(this);case 1:return!u.call(this,f[0]);case 2:return!u.call(this,f[0],f[1]);case 3:return!u.call(this,f[0],f[1],f[2])}return!u.apply(this,f)}}function qke(u){return JL(2,u)}var Uke=OTe(function(u,f){f=f.length==1&&Rt(f[0])?kn(f[0],pi(vt())):kn(gr(f,1),pi(vt()));var g=f.length;return Ut(function(x){for(var O=-1,I=kr(x.length,g);++O<I;)x[O]=f[O].call(this,x[O]);return di(u,this,x)})}),_x=Ut(function(u,f){var g=Ka(f,Nl(_x));return oa(u,E,n,f,g)}),nF=Ut(function(u,f){var g=Ka(f,Nl(nF));return oa(u,T,n,f,g)}),Bke=aa(function(u,f){return oa(u,q,n,n,n,f)});function zke(u,f){if(typeof u!="function")throw new Ci(a);return f=f===n?f:Dt(f),Ut(u,f)}function Zke(u,f){if(typeof u!="function")throw new Ci(a);return f=f==null?0:nr(Dt(f),0),Ut(function(g){var x=g[f],O=Qa(g,0,f);return x&&Va(O,x),di(u,this,O)})}function Hke(u,f,g){var x=!0,O=!0;if(typeof u!="function")throw new Ci(a);return Nn(g)&&(x="leading"in g?!!g.leading:x,O="trailing"in g?!!g.trailing:O),tF(u,f,{leading:x,maxWait:f,trailing:O})}function Wke(u){return YL(u,1)}function Vke(u,f){return _x(ix(f),u)}function Kke(){if(!arguments.length)return[];var u=arguments[0];return Rt(u)?u:[u]}function Gke(u){return Ti(u,h)}function Yke(u,f){return f=typeof f=="function"?f:n,Ti(u,h,f)}function Jke(u){return Ti(u,p|h)}function Xke(u,f){return f=typeof f=="function"?f:n,Ti(u,p|h,f)}function Qke(u,f){return f==null||zj(u,f,ur(f))}function Vi(u,f){return u===f||u!==u&&f!==f}var eIe=Uy(Ww),tIe=Uy(function(u,f){return u>=f}),Js=Gj(function(){return arguments}())?Gj:function(u){return Ln(u)&&hn.call(u,"callee")&&!Dj.call(u,"callee")},Rt=le.isArray,nIe=yj?pi(yj):cTe;function ti(u){return u!=null&&Yy(u.length)&&!ua(u)}function qn(u){return Ln(u)&&ti(u)}function rIe(u){return u===!0||u===!1||Ln(u)&&Fr(u)==rt}var es=gOe||Ix,iIe=gj?pi(gj):fTe;function oIe(u){return Ln(u)&&u.nodeType===1&&!Gf(u)}function aIe(u){if(u==null)return!0;if(ti(u)&&(Rt(u)||typeof u=="string"||typeof u.splice=="function"||es(u)||Dl(u)||Js(u)))return!u.length;var f=Ir(u);if(f==Ze||f==Ue)return!u.size;if(Vf(u))return!Gw(u).length;for(var g in u)if(hn.call(u,g))return!1;return!0}function sIe(u,f){return Zf(u,f)}function uIe(u,f,g){g=typeof g=="function"?g:n;var x=g?g(u,f):n;return x===n?Zf(u,f,n,g):!!x}function wx(u){if(!Ln(u))return!1;var f=Fr(u);return f==Ae||f==Pe||typeof u.message=="string"&&typeof u.name=="string"&&!Gf(u)}function lIe(u){return typeof u=="number"&&jj(u)}function ua(u){if(!Nn(u))return!1;var f=Fr(u);return f==Fe||f==$e||f==Je||f==Se}function rF(u){return typeof u=="number"&&u==Dt(u)}function Yy(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=ne}function Nn(u){var f=typeof u;return u!=null&&(f=="object"||f=="function")}function Ln(u){return u!=null&&typeof u=="object"}var iF=vj?pi(vj):pTe;function cIe(u,f){return u===f||Kw(u,f,fx(f))}function fIe(u,f,g){return g=typeof g=="function"?g:n,Kw(u,f,fx(f),g)}function dIe(u){return oF(u)&&u!=+u}function pIe(u){if(YTe(u))throw new kt(o);return Yj(u)}function hIe(u){return u===null}function mIe(u){return u==null}function oF(u){return typeof u=="number"||Ln(u)&&Fr(u)==lt}function Gf(u){if(!Ln(u)||Fr(u)!=de)return!1;var f=Sy(u);if(f===null)return!0;var g=hn.call(f,"constructor")&&f.constructor;return typeof g=="function"&&g instanceof g&&by.call(g)==fOe}var xx=bj?pi(bj):hTe;function yIe(u){return rF(u)&&u>=-ne&&u<=ne}var aF=_j?pi(_j):mTe;function Jy(u){return typeof u=="string"||!Rt(u)&&Ln(u)&&Fr(u)==ot}function mi(u){return typeof u=="symbol"||Ln(u)&&Fr(u)==It}var Dl=wj?pi(wj):yTe;function gIe(u){return u===n}function vIe(u){return Ln(u)&&Ir(u)==ie}function bIe(u){return Ln(u)&&Fr(u)==ye}var _Ie=Uy(Yw),wIe=Uy(function(u,f){return u<=f});function sF(u){if(!u)return[];if(ti(u))return Jy(u)?Hi(u):ei(u);if(Mf&&u[Mf])return QCe(u[Mf]());var f=Ir(u),g=f==Ze?jw:f==Ue?yy:Ml;return g(u)}function la(u){if(!u)return u===0?u:0;if(u=Ii(u),u===Y||u===-Y){var f=u<0?-1:1;return f*ce}return u===u?u:0}function Dt(u){var f=la(u),g=f%1;return f===f?g?f-g:f:0}function uF(u){return u?Vs(Dt(u),0,ue):0}function Ii(u){if(typeof u=="number")return u;if(mi(u))return P;if(Nn(u)){var f=typeof u.valueOf=="function"?u.valueOf():u;u=Nn(f)?f+"":f}if(typeof u!="string")return u===0?u:+u;u=Oj(u);var g=Tt.test(u);return g||On.test(u)?MCe(u.slice(2),g?2:8):Ft.test(u)?P:+u}function lF(u){return Ao(u,ni(u))}function xIe(u){return u?Vs(Dt(u),-ne,ne):u===0?u:0}function fn(u){return u==null?"":hi(u)}var SIe=Pl(function(u,f){if(Vf(f)||ti(f)){Ao(f,ur(f),u);return}for(var g in f)hn.call(f,g)&&Uf(u,g,f[g])}),cF=Pl(function(u,f){Ao(f,ni(f),u)}),Xy=Pl(function(u,f,g,x){Ao(f,ni(f),u,x)}),EIe=Pl(function(u,f,g,x){Ao(f,ur(f),u,x)}),AIe=aa(zw);function CIe(u,f){var g=Il(u);return f==null?g:Bj(g,f)}var OIe=Ut(function(u,f){u=_n(u);var g=-1,x=f.length,O=x>2?f[2]:n;for(O&&qr(f[0],f[1],O)&&(x=1);++g<x;)for(var I=f[g],U=ni(I),W=-1,te=U.length;++W<te;){var be=U[W],we=u[be];(we===n||Vi(we,Tl[be])&&!hn.call(u,be))&&(u[be]=I[be])}return u}),TIe=Ut(function(u){return u.push(n,OL),di(fF,n,u)});function $Ie(u,f){return Sj(u,vt(f,3),Eo)}function kIe(u,f){return Sj(u,vt(f,3),Hw)}function IIe(u,f){return u==null?u:Zw(u,vt(f,3),ni)}function PIe(u,f){return u==null?u:Vj(u,vt(f,3),ni)}function RIe(u,f){return u&&Eo(u,vt(f,3))}function NIe(u,f){return u&&Hw(u,vt(f,3))}function DIe(u){return u==null?[]:Ry(u,ur(u))}function MIe(u){return u==null?[]:Ry(u,ni(u))}function Sx(u,f,g){var x=u==null?n:Ks(u,f);return x===n?g:x}function jIe(u,f){return u!=null&&kL(u,f,aTe)}function Ex(u,f){return u!=null&&kL(u,f,sTe)}var LIe=xL(function(u,f,g){f!=null&&typeof f.toString!="function"&&(f=_y.call(f)),u[f]=g},Cx(ri)),FIe=xL(function(u,f,g){f!=null&&typeof f.toString!="function"&&(f=_y.call(f)),hn.call(u,f)?u[f].push(g):u[f]=[g]},vt),qIe=Ut(zf);function ur(u){return ti(u)?qj(u):Gw(u)}function ni(u){return ti(u)?qj(u,!0):gTe(u)}function UIe(u,f){var g={};return f=vt(f,3),Eo(u,function(x,O,I){ia(g,f(x,O,I),x)}),g}function BIe(u,f){var g={};return f=vt(f,3),Eo(u,function(x,O,I){ia(g,O,f(x,O,I))}),g}var zIe=Pl(function(u,f,g){Ny(u,f,g)}),fF=Pl(function(u,f,g,x){Ny(u,f,g,x)}),ZIe=aa(function(u,f){var g={};if(u==null)return g;var x=!1;f=kn(f,function(I){return I=Xa(I,u),x||(x=I.length>1),I}),Ao(u,lx(u),g),x&&(g=Ti(g,p|m|h,LTe));for(var O=f.length;O--;)tx(g,f[O]);return g});function HIe(u,f){return dF(u,Gy(vt(f)))}var WIe=aa(function(u,f){return u==null?{}:bTe(u,f)});function dF(u,f){if(u==null)return{};var g=kn(lx(u),function(x){return[x]});return f=vt(f),rL(u,g,function(x,O){return f(x,O[0])})}function VIe(u,f,g){f=Xa(f,u);var x=-1,O=f.length;for(O||(O=1,u=n);++x<O;){var I=u==null?n:u[Co(f[x])];I===n&&(x=O,I=g),u=ua(I)?I.call(u):I}return u}function KIe(u,f,g){return u==null?u:Hf(u,f,g)}function GIe(u,f,g,x){return x=typeof x=="function"?x:n,u==null?u:Hf(u,f,g,x)}var pF=AL(ur),hF=AL(ni);function YIe(u,f,g){var x=Rt(u),O=x||es(u)||Dl(u);if(f=vt(f,4),g==null){var I=u&&u.constructor;O?g=x?new I:[]:Nn(u)?g=ua(I)?Il(Sy(u)):{}:g={}}return(O?Ai:Eo)(u,function(U,W,te){return f(g,U,W,te)}),g}function JIe(u,f){return u==null?!0:tx(u,f)}function XIe(u,f,g){return u==null?u:uL(u,f,ix(g))}function QIe(u,f,g,x){return x=typeof x=="function"?x:n,u==null?u:uL(u,f,ix(g),x)}function Ml(u){return u==null?[]:Mw(u,ur(u))}function ePe(u){return u==null?[]:Mw(u,ni(u))}function tPe(u,f,g){return g===n&&(g=f,f=n),g!==n&&(g=Ii(g),g=g===g?g:0),f!==n&&(f=Ii(f),f=f===f?f:0),Vs(Ii(u),f,g)}function nPe(u,f,g){return f=la(f),g===n?(g=f,f=0):g=la(g),u=Ii(u),uTe(u,f,g)}function rPe(u,f,g){if(g&&typeof g!="boolean"&&qr(u,f,g)&&(f=g=n),g===n&&(typeof f=="boolean"?(g=f,f=n):typeof u=="boolean"&&(g=u,u=n)),u===n&&f===n?(u=0,f=1):(u=la(u),f===n?(f=u,u=0):f=la(f)),u>f){var x=u;u=f,f=x}if(g||u%1||f%1){var O=Lj();return kr(u+O*(f-u+DCe("1e-"+((O+"").length-1))),f)}return Xw(u,f)}var iPe=Rl(function(u,f,g){return f=f.toLowerCase(),u+(g?mF(f):f)});function mF(u){return Ax(fn(u).toLowerCase())}function yF(u){return u=fn(u),u&&u.replace(Xr,KCe).replace(ACe,"")}function oPe(u,f,g){u=fn(u),f=hi(f);var x=u.length;g=g===n?x:Vs(Dt(g),0,x);var O=g;return g-=f.length,g>=0&&u.slice(g,O)==f}function aPe(u){return u=fn(u),u&&je.test(u)?u.replace(sr,GCe):u}function sPe(u){return u=fn(u),u&&bn.test(u)?u.replace(Jt,"\\$&"):u}var uPe=Rl(function(u,f,g){return u+(g?"-":"")+f.toLowerCase()}),lPe=Rl(function(u,f,g){return u+(g?" ":"")+f.toLowerCase()}),cPe=bL("toLowerCase");function fPe(u,f,g){u=fn(u),f=Dt(f);var x=f?Cl(u):0;if(!f||x>=f)return u;var O=(f-x)/2;return qy(Oy(O),g)+u+qy(Cy(O),g)}function dPe(u,f,g){u=fn(u),f=Dt(f);var x=f?Cl(u):0;return f&&x<f?u+qy(f-x,g):u}function pPe(u,f,g){u=fn(u),f=Dt(f);var x=f?Cl(u):0;return f&&x<f?qy(f-x,g)+u:u}function hPe(u,f,g){return g||f==null?f=0:f&&(f=+f),wOe(fn(u).replace(Rn,""),f||0)}function mPe(u,f,g){return(g?qr(u,f,g):f===n)?f=1:f=Dt(f),Qw(fn(u),f)}function yPe(){var u=arguments,f=fn(u[0]);return u.length<3?f:f.replace(u[1],u[2])}var gPe=Rl(function(u,f,g){return u+(g?"_":"")+f.toLowerCase()});function vPe(u,f,g){return g&&typeof g!="number"&&qr(u,f,g)&&(f=g=n),g=g===n?ue:g>>>0,g?(u=fn(u),u&&(typeof f=="string"||f!=null&&!xx(f))&&(f=hi(f),!f&&Al(u))?Qa(Hi(u),0,g):u.split(f,g)):[]}var bPe=Rl(function(u,f,g){return u+(g?" ":"")+Ax(f)});function _Pe(u,f,g){return u=fn(u),g=g==null?0:Vs(Dt(g),0,u.length),f=hi(f),u.slice(g,g+f.length)==f}function wPe(u,f,g){var x=$.templateSettings;g&&qr(u,f,g)&&(f=n),u=fn(u),f=Xy({},f,x,CL);var O=Xy({},f.imports,x.imports,CL),I=ur(O),U=Mw(O,I),W,te,be=0,we=f.interpolate||Zi,Ee="__p += '",Ve=Lw((f.escape||Zi).source+"|"+we.source+"|"+(we===Re?Kt:Zi).source+"|"+(f.evaluate||Zi).source+"|$","g"),at="//# sourceURL="+(hn.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++kCe+"]")+`
|
|
64
|
+
`;u.replace(Ve,function(xt,Ht,Xt,yi,Ur,gi){return Xt||(Xt=yi),Ee+=u.slice(be,gi).replace(dy,YCe),Ht&&(W=!0,Ee+=`' +
|
|
65
65
|
__e(`+Ht+`) +
|
|
66
66
|
'`),Ur&&(te=!0,Ee+=`';
|
|
67
67
|
`+Ur+`;
|
|
68
68
|
__p += '`),Xt&&(Ee+=`' +
|
|
69
69
|
((__t = (`+Xt+`)) == null ? '' : __t) +
|
|
70
|
-
'`),be=gi+
|
|
71
|
-
`;var
|
|
70
|
+
'`),be=gi+xt.length,xt}),Ee+=`';
|
|
71
|
+
`;var wt=hn.call(f,"variable")&&f.variable;if(!wt)Ee=`with (obj) {
|
|
72
72
|
`+Ee+`
|
|
73
73
|
}
|
|
74
|
-
`;else if(ze.test(
|
|
75
|
-
`+(
|
|
74
|
+
`;else if(ze.test(wt))throw new kt(s);Ee=(te?Ee.replace(At,""):Ee).replace(on,"$1").replace(pt,"$1;"),Ee="function("+(wt||"obj")+`) {
|
|
75
|
+
`+(wt?"":`obj || (obj = {});
|
|
76
76
|
`)+"var __t, __p = ''"+(W?", __e = _.escape":"")+(te?`, __j = Array.prototype.join;
|
|
77
77
|
function print() { __p += __j.call(arguments, '') }
|
|
78
78
|
`:`;
|
|
79
79
|
`)+Ee+`return __p
|
|
80
|
-
}`;var qt=vF(function(){return ln(I,at+"return "+Ee).apply(n,U)});if(qt.source=Ee,wx(qt))throw qt;return qt}function xPe(u){return fn(u).toLowerCase()}function SPe(u){return fn(u).toUpperCase()}function EPe(u,f,g){if(u=fn(u),u&&(g||f===n))return Oj(u);if(!u||!(f=hi(f)))return u;var x=Hi(u),O=Hi(f),I=Tj(x,O),U=$j(x,O)+1;return Qa(x,I,U).join("")}function APe(u,f,g){if(u=fn(u),u&&(g||f===n))return u.slice(0,Ij(u)+1);if(!u||!(f=hi(f)))return u;var x=Hi(u),O=$j(x,Hi(f))+1;return Qa(x,0,O).join("")}function CPe(u,f,g){if(u=fn(u),u&&(g||f===n))return u.replace(Rn,"");if(!u||!(f=hi(f)))return u;var x=Hi(u),O=Tj(x,Hi(f));return Qa(x,O).join("")}function OPe(u,f){var g=M,x=H;if(Nn(f)){var O="separator"in f?f.separator:O;g="length"in f?Dt(f.length):g,x="omission"in f?hi(f.omission):x}u=fn(u);var I=u.length;if(Al(u)){var U=Hi(u);I=U.length}if(g>=I)return u;var W=g-Cl(x);if(W<1)return x;var te=U?Qa(U,0,W).join(""):u.slice(0,W);if(O===n)return te+x;if(U&&(W+=te.length-W),xx(O)){if(u.slice(W).search(O)){var be,we=te;for(O.global||(O=Lw(O.source,fn(un.exec(O))+"g")),O.lastIndex=0;be=O.exec(we);)var Ee=be.index;te=te.slice(0,Ee===n?W:Ee)}}else if(u.indexOf(hi(O),W)!=W){var Ve=te.lastIndexOf(O);Ve>-1&&(te=te.slice(0,Ve))}return te+x}function TPe(u){return u=fn(u),u&&N.test(u)?u.replace(Mn,rOe):u}var $Pe=Rl(function(u,f,g){return u+(g?" ":"")+f.toUpperCase()}),Ax=bL("toUpperCase");function gF(u,f,g){return u=fn(u),f=g?n:f,f===n?XCe(u)?aOe(u):zCe(u):u.match(f)||[]}var vF=Ut(function(u,f){try{return di(u,n,f)}catch(g){return wx(g)?g:new kt(g)}}),kPe=aa(function(u,f){return Ai(f,function(g){g=Co(g),ia(u,g,bx(u[g],u))}),u});function IPe(u){var f=u==null?0:u.length,g=vt();return u=f?kn(u,function(x){if(typeof x[1]!="function")throw new Ci(a);return[g(x[0]),x[1]]}):[],Ut(function(x){for(var O=-1;++O<f;){var I=u[O];if(di(I[0],this,x))return di(I[1],this,x)}})}function PPe(u){return rTe(Ti(u,p))}function Cx(u){return function(){return u}}function RPe(u,f){return u==null||u!==u?f:u}var NPe=wL(),DPe=wL(!0);function ri(u){return u}function Ox(u){return Jj(typeof u=="function"?u:Ti(u,p))}function MPe(u){return Qj(Ti(u,p))}function jPe(u,f){return eL(u,Ti(f,p))}var LPe=Ut(function(u,f){return function(g){return zf(g,u,f)}}),FPe=Ut(function(u,f){return function(g){return zf(u,g,f)}});function Tx(u,f,g){var x=ur(f),O=Ry(f,x);g==null&&!(Nn(f)&&(O.length||!x.length))&&(g=f,f=u,u=this,O=Ry(f,ur(f)));var I=!(Nn(g)&&"chain"in g)||!!g.chain,U=ua(u);return Ai(O,function(W){var te=f[W];u[W]=te,U&&(u.prototype[W]=function(){var be=this.__chain__;if(I||be){var we=u(this.__wrapped__),Ee=we.__actions__=ei(this.__actions__);return Ee.push({func:te,args:arguments,thisArg:u}),we.__chain__=be,we}return te.apply(u,Va([this.value()],arguments))})}),u}function qPe(){return yr._===this&&(yr._=dOe),this}function $x(){}function UPe(u){return u=Dt(u),Ut(function(f){return tL(f,u)})}var BPe=ax(kn),zPe=ax(xj),ZPe=ax(Iw);function bF(u){return px(u)?Pw(Co(u)):_Te(u)}function HPe(u){return function(f){return u==null?n:Ks(u,f)}}var WPe=SL(),VPe=SL(!0);function kx(){return[]}function Ix(){return!1}function KPe(){return{}}function GPe(){return""}function YPe(){return!0}function JPe(u,f){if(u=Dt(u),u<1||u>ne)return[];var g=ue,x=kr(u,ue);f=vt(f),u-=ue;for(var O=Dw(x,f);++g<u;)f(g);return O}function XPe(u){return Rt(u)?kn(u,Co):mi(u)?[u]:ei(FL(fn(u)))}function QPe(u){var f=++cOe;return fn(u)+f}var eRe=Fy(function(u,f){return u+f},0),tRe=sx("ceil"),nRe=Fy(function(u,f){return u/f},1),rRe=sx("floor");function iRe(u){return u&&u.length?Py(u,ri,Ww):n}function oRe(u,f){return u&&u.length?Py(u,vt(f,2),Ww):n}function aRe(u){return Aj(u,ri)}function sRe(u,f){return Aj(u,vt(f,2))}function uRe(u){return u&&u.length?Py(u,ri,Yw):n}function lRe(u,f){return u&&u.length?Py(u,vt(f,2),Yw):n}var cRe=Fy(function(u,f){return u*f},1),fRe=sx("round"),dRe=Fy(function(u,f){return u-f},0);function pRe(u){return u&&u.length?Nw(u,ri):0}function hRe(u,f){return u&&u.length?Nw(u,vt(f,2)):0}return $.after=Mke,$.ary=YL,$.assign=SIe,$.assignIn=cF,$.assignInWith=Xy,$.assignWith=EIe,$.at=AIe,$.before=JL,$.bind=bx,$.bindAll=kPe,$.bindKey=XL,$.castArray=Kke,$.chain=VL,$.chunk=r$e,$.compact=i$e,$.concat=o$e,$.cond=IPe,$.conforms=PPe,$.constant=Cx,$.countBy=pke,$.create=CIe,$.curry=QL,$.curryRight=eF,$.debounce=tF,$.defaults=OIe,$.defaultsDeep=TIe,$.defer=jke,$.delay=Lke,$.difference=a$e,$.differenceBy=s$e,$.differenceWith=u$e,$.drop=l$e,$.dropRight=c$e,$.dropRightWhile=f$e,$.dropWhile=d$e,$.fill=p$e,$.filter=mke,$.flatMap=vke,$.flatMapDeep=bke,$.flatMapDepth=_ke,$.flatten=zL,$.flattenDeep=h$e,$.flattenDepth=m$e,$.flip=Fke,$.flow=NPe,$.flowRight=DPe,$.fromPairs=y$e,$.functions=DIe,$.functionsIn=MIe,$.groupBy=wke,$.initial=v$e,$.intersection=b$e,$.intersectionBy=_$e,$.intersectionWith=w$e,$.invert=LIe,$.invertBy=FIe,$.invokeMap=Ske,$.iteratee=Ox,$.keyBy=Eke,$.keys=ur,$.keysIn=ni,$.map=Wy,$.mapKeys=UIe,$.mapValues=BIe,$.matches=MPe,$.matchesProperty=jPe,$.memoize=Ky,$.merge=zIe,$.mergeWith=fF,$.method=LPe,$.methodOf=FPe,$.mixin=Tx,$.negate=Gy,$.nthArg=UPe,$.omit=ZIe,$.omitBy=HIe,$.once=qke,$.orderBy=Ake,$.over=BPe,$.overArgs=Uke,$.overEvery=zPe,$.overSome=ZPe,$.partial=_x,$.partialRight=nF,$.partition=Cke,$.pick=WIe,$.pickBy=dF,$.property=bF,$.propertyOf=HPe,$.pull=A$e,$.pullAll=HL,$.pullAllBy=C$e,$.pullAllWith=O$e,$.pullAt=T$e,$.range=WPe,$.rangeRight=VPe,$.rearg=Bke,$.reject=$ke,$.remove=$$e,$.rest=zke,$.reverse=gx,$.sampleSize=Ike,$.set=KIe,$.setWith=GIe,$.shuffle=Pke,$.slice=k$e,$.sortBy=Dke,$.sortedUniq=j$e,$.sortedUniqBy=L$e,$.split=vPe,$.spread=Zke,$.tail=F$e,$.take=q$e,$.takeRight=U$e,$.takeRightWhile=B$e,$.takeWhile=z$e,$.tap=ike,$.throttle=Hke,$.thru=Hy,$.toArray=sF,$.toPairs=pF,$.toPairsIn=hF,$.toPath=XPe,$.toPlainObject=lF,$.transform=YIe,$.unary=Wke,$.union=Z$e,$.unionBy=H$e,$.unionWith=W$e,$.uniq=V$e,$.uniqBy=K$e,$.uniqWith=G$e,$.unset=JIe,$.unzip=vx,$.unzipWith=WL,$.update=XIe,$.updateWith=QIe,$.values=Ml,$.valuesIn=ePe,$.without=Y$e,$.words=gF,$.wrap=Vke,$.xor=J$e,$.xorBy=X$e,$.xorWith=Q$e,$.zip=eke,$.zipObject=tke,$.zipObjectDeep=nke,$.zipWith=rke,$.entries=pF,$.entriesIn=hF,$.extend=cF,$.extendWith=Xy,Tx($,$),$.add=eRe,$.attempt=vF,$.camelCase=iPe,$.capitalize=mF,$.ceil=tRe,$.clamp=tPe,$.clone=Gke,$.cloneDeep=Jke,$.cloneDeepWith=Xke,$.cloneWith=Yke,$.conformsTo=Qke,$.deburr=yF,$.defaultTo=RPe,$.divide=nRe,$.endsWith=oPe,$.eq=Vi,$.escape=aPe,$.escapeRegExp=sPe,$.every=hke,$.find=yke,$.findIndex=UL,$.findKey=$Ie,$.findLast=gke,$.findLastIndex=BL,$.findLastKey=kIe,$.floor=rRe,$.forEach=KL,$.forEachRight=GL,$.forIn=IIe,$.forInRight=PIe,$.forOwn=RIe,$.forOwnRight=NIe,$.get=Sx,$.gt=eIe,$.gte=tIe,$.has=jIe,$.hasIn=Ex,$.head=ZL,$.identity=ri,$.includes=xke,$.indexOf=g$e,$.inRange=nPe,$.invoke=qIe,$.isArguments=Js,$.isArray=Rt,$.isArrayBuffer=nIe,$.isArrayLike=ti,$.isArrayLikeObject=qn,$.isBoolean=rIe,$.isBuffer=es,$.isDate=iIe,$.isElement=oIe,$.isEmpty=aIe,$.isEqual=sIe,$.isEqualWith=uIe,$.isError=wx,$.isFinite=lIe,$.isFunction=ua,$.isInteger=rF,$.isLength=Yy,$.isMap=iF,$.isMatch=cIe,$.isMatchWith=fIe,$.isNaN=dIe,$.isNative=pIe,$.isNil=mIe,$.isNull=hIe,$.isNumber=oF,$.isObject=Nn,$.isObjectLike=Ln,$.isPlainObject=Gf,$.isRegExp=xx,$.isSafeInteger=yIe,$.isSet=aF,$.isString=Jy,$.isSymbol=mi,$.isTypedArray=Dl,$.isUndefined=gIe,$.isWeakMap=vIe,$.isWeakSet=bIe,$.join=x$e,$.kebabCase=uPe,$.last=ki,$.lastIndexOf=S$e,$.lowerCase=lPe,$.lowerFirst=cPe,$.lt=_Ie,$.lte=wIe,$.max=iRe,$.maxBy=oRe,$.mean=aRe,$.meanBy=sRe,$.min=uRe,$.minBy=lRe,$.stubArray=kx,$.stubFalse=Ix,$.stubObject=KPe,$.stubString=GPe,$.stubTrue=YPe,$.multiply=cRe,$.nth=E$e,$.noConflict=qPe,$.noop=$x,$.now=Vy,$.pad=fPe,$.padEnd=dPe,$.padStart=pPe,$.parseInt=hPe,$.random=rPe,$.reduce=Oke,$.reduceRight=Tke,$.repeat=mPe,$.replace=yPe,$.result=VIe,$.round=fRe,$.runInContext=J,$.sample=kke,$.size=Rke,$.snakeCase=gPe,$.some=Nke,$.sortedIndex=I$e,$.sortedIndexBy=P$e,$.sortedIndexOf=R$e,$.sortedLastIndex=N$e,$.sortedLastIndexBy=D$e,$.sortedLastIndexOf=M$e,$.startCase=bPe,$.startsWith=_Pe,$.subtract=dRe,$.sum=pRe,$.sumBy=hRe,$.template=wPe,$.times=JPe,$.toFinite=la,$.toInteger=Dt,$.toLength=uF,$.toLower=xPe,$.toNumber=Ii,$.toSafeInteger=xIe,$.toString=fn,$.toUpper=SPe,$.trim=EPe,$.trimEnd=APe,$.trimStart=CPe,$.truncate=OPe,$.unescape=TPe,$.uniqueId=QPe,$.upperCase=$Pe,$.upperFirst=Ax,$.each=KL,$.eachRight=GL,$.first=ZL,Tx($,function(){var u={};return Eo($,function(f,g){hn.call($.prototype,g)||(u[g]=f)}),u}(),{chain:!1}),$.VERSION=r,Ai(["bind","bindKey","curry","curryRight","partial","partialRight"],function(u){$[u].placeholder=$}),Ai(["drop","take"],function(u,f){Gt.prototype[u]=function(g){g=g===n?1:nr(Dt(g),0);var x=this.__filtered__&&!f?new Gt(this):this.clone();return x.__filtered__?x.__takeCount__=kr(g,x.__takeCount__):x.__views__.push({size:kr(g,ue),type:u+(x.__dir__<0?"Right":"")}),x},Gt.prototype[u+"Right"]=function(g){return this.reverse()[u](g).reverse()}}),Ai(["filter","map","takeWhile"],function(u,f){var g=f+1,x=g==G||g==F;Gt.prototype[u]=function(O){var I=this.clone();return I.__iteratees__.push({iteratee:vt(O,3),type:g}),I.__filtered__=I.__filtered__||x,I}}),Ai(["head","last"],function(u,f){var g="take"+(f?"Right":"");Gt.prototype[u]=function(){return this[g](1).value()[0]}}),Ai(["initial","tail"],function(u,f){var g="drop"+(f?"":"Right");Gt.prototype[u]=function(){return this.__filtered__?new Gt(this):this[g](1)}}),Gt.prototype.compact=function(){return this.filter(ri)},Gt.prototype.find=function(u){return this.filter(u).head()},Gt.prototype.findLast=function(u){return this.reverse().find(u)},Gt.prototype.invokeMap=Ut(function(u,f){return typeof u=="function"?new Gt(this):this.map(function(g){return zf(g,u,f)})}),Gt.prototype.reject=function(u){return this.filter(Gy(vt(u)))},Gt.prototype.slice=function(u,f){u=Dt(u);var g=this;return g.__filtered__&&(u>0||f<0)?new Gt(g):(u<0?g=g.takeRight(-u):u&&(g=g.drop(u)),f!==n&&(f=Dt(f),g=f<0?g.dropRight(-f):g.take(f-u)),g)},Gt.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},Gt.prototype.toArray=function(){return this.take(ue)},Eo(Gt.prototype,function(u,f){var g=/^(?:filter|find|map|reject)|While$/.test(f),x=/^(?:head|last)$/.test(f),O=$[x?"take"+(f=="last"?"Right":""):f],I=x||/^find/.test(f);O&&($.prototype[f]=function(){var U=this.__wrapped__,W=x?[1]:arguments,te=U instanceof Gt,be=W[0],we=te||Rt(U),Ee=function(Ht){var Xt=O.apply($,Va([Ht],W));return x&&Ve?Xt[0]:Xt};we&&g&&typeof be=="function"&&be.length!=1&&(te=we=!1);var Ve=this.__chain__,at=!!this.__actions__.length,_t=I&&!Ve,qt=te&&!at;if(!I&&we){U=qt?U:new Gt(this);var wt=u.apply(U,W);return wt.__actions__.push({func:Hy,args:[Ee],thisArg:n}),new Oi(wt,Ve)}return _t&&qt?u.apply(this,W):(wt=this.thru(Ee),_t?x?wt.value()[0]:wt.value():wt)})}),Ai(["pop","push","shift","sort","splice","unshift"],function(u){var f=gy[u],g=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",x=/^(?:pop|shift)$/.test(u);$.prototype[u]=function(){var O=arguments;if(x&&!this.__chain__){var I=this.value();return f.apply(Rt(I)?I:[],O)}return this[g](function(U){return f.apply(Rt(U)?U:[],O)})}}),Eo(Gt.prototype,function(u,f){var g=$[f];if(g){var x=g.name+"";hn.call(kl,x)||(kl[x]=[]),kl[x].push({name:f,func:g})}}),kl[Ly(n,_).name]=[{name:"wrapper",func:n}],Gt.prototype.clone=TOe,Gt.prototype.reverse=$Oe,Gt.prototype.value=kOe,$.prototype.at=oke,$.prototype.chain=ake,$.prototype.commit=ske,$.prototype.next=uke,$.prototype.plant=cke,$.prototype.reverse=fke,$.prototype.toJSON=$.prototype.valueOf=$.prototype.value=dke,$.prototype.first=$.prototype.head,Mf&&($.prototype[Mf]=lke),$},Ol=sOe();zs?((zs.exports=Ol)._=Ol,Ow._=Ol):yr._=Ol}).call(se)}(Gd,Gd.exports);var vie=Gd.exports,bie=Object.create,wu=Object.defineProperty,_ie=Object.defineProperties,wie=Object.getOwnPropertyDescriptor,xie=Object.getOwnPropertyDescriptors,Sie=Object.getOwnPropertyNames,Yd=Object.getOwnPropertySymbols,Eie=Object.getPrototypeOf,jv=Object.prototype.hasOwnProperty,RC=Object.prototype.propertyIsEnumerable,NC=(e,t,n)=>t in e?wu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,B=(e,t)=>{for(var n in t||(t={}))jv.call(t,n)&&NC(e,n,t[n]);if(Yd)for(var n of Yd(t))RC.call(t,n)&&NC(e,n,t[n]);return e},fe=(e,t)=>_ie(e,xie(t)),k=(e,t)=>wu(e,"name",{value:t,configurable:!0}),DC=(e,t)=>{var n={};for(var r in e)jv.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Yd)for(var r of Yd(e))t.indexOf(r)<0&&RC.call(e,r)&&(n[r]=e[r]);return n},MC=(e,t)=>{for(var n in t)wu(e,n,{get:t[n],enumerable:!0})},jC=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Sie(t))!jv.call(e,i)&&i!==n&&wu(e,i,{get:()=>t[i],enumerable:!(r=wie(t,i))||r.enumerable});return e},yn=(e,t,n)=>(n=e!=null?bie(Eie(e)):{},jC(t||!e||!e.__esModule?wu(n,"default",{value:e,enumerable:!0}):n,e)),Aie=e=>jC(wu({},"__esModule",{value:!0}),e),LC={};MC(LC,{BRAND:()=>LO,DIRTY:()=>vs,EMPTY_PATH:()=>MO,INVALID:()=>gt,NEVER:()=>g$,OK:()=>_r,ParseInputLazyPath:()=>wi,ParseStatus:()=>Dr,Schema:()=>Ct,UntitledDeclarationError:()=>_O,ZodAny:()=>Iu,ZodArray:()=>Pu,ZodBigInt:()=>hc,ZodBoolean:()=>mc,ZodBranded:()=>yc,ZodCatch:()=>bp,ZodDate:()=>wp,ZodDefault:()=>Sp,ZodDiscriminatedUnion:()=>Yv,ZodEffects:()=>Mo,ZodEnum:()=>No,ZodError:()=>ao,ZodFirstPartyTypeKind:()=>Wv,ZodFunction:()=>Xv,ZodIntersection:()=>Cp,ZodIssueCode:()=>Ie,ZodLazy:()=>Tp,ZodLiteral:()=>vc,ZodMap:()=>Qv,ZodNaN:()=>eb,ZodNativeEnum:()=>bc,ZodNever:()=>ga,ZodNull:()=>_c,ZodNullable:()=>Do,ZodNumber:()=>wc,ZodObject:()=>_s,ZodOptional:()=>Di,ZodParsedType:()=>Ge,ZodPipeline:()=>Lp,ZodPromise:()=>xc,ZodReadonly:()=>Up,ZodRecord:()=>tb,ZodSchema:()=>Ct,ZodSet:()=>nb,ZodString:()=>dr,ZodSymbol:()=>ib,ZodTemplateLiteral:()=>Xp,ZodTemplateLiteralUnsupportedCheckError:()=>fp,ZodTemplateLiteralUnsupportedTypeError:()=>Vv,ZodTransformer:()=>Mo,ZodTuple:()=>ws,ZodType:()=>Ct,ZodUndefined:()=>Ac,ZodUnion:()=>Cc,ZodUnknown:()=>Nu,ZodVoid:()=>ob,ZuiForm:()=>Joe,addIssueToContext:()=>Ye,agent:()=>ET,aimodel:()=>$T,any:()=>qT,array:()=>ZT,bigint:()=>DT,boolean:()=>fb,coerce:()=>y$,conversation:()=>wT,createZodEnum:()=>gc,cuid2Regex:()=>Zp,cuidRegex:()=>zp,custom:()=>Gv,datasource:()=>kT,date:()=>MT,datetimeRegex:()=>Kp,defaultErrorMap:()=>Du,discriminatedUnion:()=>KT,effect:()=>ah,emailRegex:()=>Vp,enum:()=>r$,errorUtil:()=>ut,event:()=>AT,fromJsonSchema:()=>h$,fromObject:()=>m$,function:()=>e$,getErrorMap:()=>$u,getParsedType:()=>Po,instanceof:()=>RT,intent:()=>TT,intersection:()=>GT,ipv4Regex:()=>Sc,ipv6Regex:()=>Ec,isAborted:()=>dp,isAsync:()=>pc,isDirty:()=>pp,isEmojiRegex:()=>WO,isValid:()=>ku,jsonSchemaToZui:()=>Ic,knowledgebase:()=>IT,late:()=>PT,lazy:()=>t$,literal:()=>n$,makeIssue:()=>dc,map:()=>XT,message:()=>ST,nan:()=>NT,nativeEnum:()=>i$,never:()=>BT,null:()=>FT,nullable:()=>s$,number:()=>cb,object:()=>HT,objectToZui:()=>Mu,objectUtil:()=>lp,oboolean:()=>p$,onumber:()=>d$,optional:()=>a$,ostring:()=>f$,pipeline:()=>l$,preprocess:()=>u$,processCreateParams:()=>Ot,promise:()=>o$,quotelessJson:()=>PO,record:()=>JT,set:()=>QT,setErrorMap:()=>Kv,strictObject:()=>WT,string:()=>lb,symbol:()=>jT,table:()=>CT,tablerow:()=>OT,templateLiteral:()=>c$,transformer:()=>ah,transforms:()=>Xoe,tuple:()=>YT,ulidRegex:()=>Hp,undefined:()=>LT,union:()=>VT,unknown:()=>UT,user:()=>xT,util:()=>Wt,uuidRegex:()=>Wp,variable:()=>_T,void:()=>zT,z:()=>zn,zuiToJsonSchema:()=>oh});var Jd=Aie(LC),zn={};MC(zn,{BRAND:()=>LO,DIRTY:()=>vs,EMPTY_PATH:()=>MO,INVALID:()=>gt,NEVER:()=>g$,OK:()=>_r,ParseInputLazyPath:()=>wi,ParseStatus:()=>Dr,Schema:()=>Ct,ZodAny:()=>Iu,ZodArray:()=>Pu,ZodBigInt:()=>hc,ZodBoolean:()=>mc,ZodBranded:()=>yc,ZodCatch:()=>bp,ZodDate:()=>wp,ZodDefault:()=>Sp,ZodDiscriminatedUnion:()=>Yv,ZodEffects:()=>Mo,ZodEnum:()=>No,ZodError:()=>ao,ZodFirstPartyTypeKind:()=>Wv,ZodFunction:()=>Xv,ZodIntersection:()=>Cp,ZodIssueCode:()=>Ie,ZodLazy:()=>Tp,ZodLiteral:()=>vc,ZodMap:()=>Qv,ZodNaN:()=>eb,ZodNativeEnum:()=>bc,ZodNever:()=>ga,ZodNull:()=>_c,ZodNullable:()=>Do,ZodNumber:()=>wc,ZodObject:()=>_s,ZodOptional:()=>Di,ZodParsedType:()=>Ge,ZodPipeline:()=>Lp,ZodPromise:()=>xc,ZodReadonly:()=>Up,ZodRecord:()=>tb,ZodSchema:()=>Ct,ZodSet:()=>nb,ZodString:()=>dr,ZodSymbol:()=>ib,ZodTemplateLiteral:()=>Xp,ZodTemplateLiteralUnsupportedCheckError:()=>fp,ZodTemplateLiteralUnsupportedTypeError:()=>Vv,ZodTransformer:()=>Mo,ZodTuple:()=>ws,ZodType:()=>Ct,ZodUndefined:()=>Ac,ZodUnion:()=>Cc,ZodUnknown:()=>Nu,ZodVoid:()=>ob,addIssueToContext:()=>Ye,agent:()=>ET,aimodel:()=>$T,any:()=>qT,array:()=>ZT,bigint:()=>DT,boolean:()=>fb,coerce:()=>y$,conversation:()=>wT,createZodEnum:()=>gc,cuid2Regex:()=>Zp,cuidRegex:()=>zp,custom:()=>Gv,datasource:()=>kT,date:()=>MT,datetimeRegex:()=>Kp,defaultErrorMap:()=>Du,discriminatedUnion:()=>KT,effect:()=>ah,emailRegex:()=>Vp,enum:()=>r$,errorUtil:()=>ut,event:()=>AT,fromJsonSchema:()=>h$,fromObject:()=>m$,function:()=>e$,getErrorMap:()=>$u,getParsedType:()=>Po,instanceof:()=>RT,intent:()=>TT,intersection:()=>GT,ipv4Regex:()=>Sc,ipv6Regex:()=>Ec,isAborted:()=>dp,isAsync:()=>pc,isDirty:()=>pp,isEmojiRegex:()=>WO,isValid:()=>ku,jsonSchemaToZui:()=>Ic,knowledgebase:()=>IT,late:()=>PT,lazy:()=>t$,literal:()=>n$,makeIssue:()=>dc,map:()=>XT,message:()=>ST,nan:()=>NT,nativeEnum:()=>i$,never:()=>BT,null:()=>FT,nullable:()=>s$,number:()=>cb,object:()=>HT,objectToZui:()=>Mu,objectUtil:()=>lp,oboolean:()=>p$,onumber:()=>d$,optional:()=>a$,ostring:()=>f$,pipeline:()=>l$,preprocess:()=>u$,processCreateParams:()=>Ot,promise:()=>o$,quotelessJson:()=>PO,record:()=>JT,set:()=>QT,setErrorMap:()=>Kv,strictObject:()=>WT,string:()=>lb,symbol:()=>jT,table:()=>CT,tablerow:()=>OT,templateLiteral:()=>c$,transformer:()=>ah,tuple:()=>YT,ulidRegex:()=>Hp,undefined:()=>LT,union:()=>VT,unknown:()=>UT,user:()=>xT,util:()=>Wt,uuidRegex:()=>Wp,variable:()=>_T,void:()=>zT,zuiToJsonSchema:()=>oh});var gn="x-zui",Cie=yn(AG,1),Oie=yn(cY,1),Tie=yn(eC,1),$ie=yn(UX,1),kie=yn(Wd,1),Iie=yn(bC,1);function sc(e){return"comment"in e&&e.comment!=null&&e.comment!==""||"deprecated"in e&&e.deprecated===!0}k(sc,"hasComment");function xu(e){return"standaloneName"in e&&e.standaloneName!=null&&e.standaloneName!==""}k(xu,"hasStandaloneName");var Su={type:"ANY"},Pie={keyName:"[k: string]",type:"ANY"},Eu={type:"UNKNOWN"},Rie={keyName:"[k: string]",type:"UNKNOWN"},Nie=yn(bee,1),FC=yn(hs,1),Die=yn(_te,1),Mie=yn($te,1),jie=yn(Wd,1),Lie=yn(hs,1),uc=Symbol("Parent"),qC=(0,jie.default)(e=>{const t=e[uc];return t?qC(t):e});function UC(e){return e===!0||e===!1}k(UC,"isBoolean");function BC(e){return!(0,Lie.default)(e)}k(BC,"isPrimitive");function Xd(e){return Array.isArray(e.type)||"anyOf"in e||"oneOf"in e}k(Xd,"isCompound");var zC=k((e,t)=>{const n=e.split("/").pop()||"";return t?n.replaceAll(t,""):n},"basename"),Fie=k(e=>{const t=zC(e),n=t.lastIndexOf(".");return n===-1?"":t.slice(n)},"extname"),qie=new Set(["id","$defs","$id","$schema","title","description","default","multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","items","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","definitions","properties","patternProperties","dependencies","enum","type","allOf","anyOf","oneOf","not"]);function ms(e,t,n){Object.keys(e).forEach(r=>{e[r]&&typeof e[r]=="object"&&!Array.isArray(e[r])&&ko(e[r],t,n,r)})}k(ms,"traverseObjectKeys");function Au(e,t,n){e.forEach((r,i)=>ko(r,t,n,i.toString()))}k(Au,"traverseArray");function ko(e,t,n=new Set,r){if(!n.has(e)){if(n.add(e),t(e,r??null),e.anyOf&&Au(e.anyOf,t,n),e.allOf&&Au(e.allOf,t,n),e.oneOf&&Au(e.oneOf,t,n),e.properties&&ms(e.properties,t,n),e.patternProperties&&ms(e.patternProperties,t,n),e.additionalProperties&&typeof e.additionalProperties=="object"&&ko(e.additionalProperties,t,n),e.items){const{items:i}=e;Array.isArray(i)?Au(i,t,n):ko(i,t,n)}e.additionalItems&&typeof e.additionalItems=="object"&&ko(e.additionalItems,t,n),e.dependencies&&(Array.isArray(e.dependencies)?Au(e.dependencies,t,n):ms(e.dependencies,t,n)),e.definitions&&ms(e.definitions,t,n),e.$defs&&ms(e.$defs,t,n),e.not&&ko(e.not,t,n),Object.keys(e).filter(i=>!qie.has(i)).forEach(i=>{const o=e[i];o&&typeof o=="object"&&ms(o,t,n)})}}k(ko,"traverse");function Lv(e=""){return ZC(zC(e))}k(Lv,"justName");function ZC(e){return e.replace(Fie(e),"")}k(ZC,"stripExtension");function Io(e){return(0,Mie.default)((0,Nie.default)(e).replace(/(^\s*[^a-zA-Z_$])|([^a-zA-Z_$\d])/g," ").replace(/^_[a-z]/g,t=>t.toUpperCase()).replace(/_[a-z]/g,t=>t.substr(1,t.length).toUpperCase()).replace(/([\d$]+[a-zA-Z])/g,t=>t.toUpperCase()).replace(/\s+([a-zA-Z])/g,t=>(0,Die.default)(t.toUpperCase())).replace(/\s/g,""))}k(Io,"toSafeString");function HC(e,t){let n=Io(e);if(n||(n="NoName"),t.has(n)){let r=1,i=`${n}${r}`;for(;t.has(i);)i=`${n}${r}`,r++;n=i}return t.add(n),n}k(HC,"generateName");function WC(...e){if(!process.env.VERBOSE)return console.error(e);console.error(...e)}k(WC,"error");function fr(e,t,...n){if(!process.env.VERBOSE)return;let r=null;n.length>1&&typeof n[n.length-1]!="string"&&(r=n.splice(n.length-1,1)),console.info(t,...n),r&&console.dir(r,{depth:6,maxArrayLength:6})}k(fr,"log");function VC(e){const t="* /";if(!(e===null||typeof e!="object"))for(const n of Object.keys(e))n==="description"&&typeof e[n]=="string"&&(e[n]=e[n].replace(/\*\//g,t))}k(VC,"escapeBlockComment");function KC(e){if(!("default"in e))return e;switch(e.type){case"array":if(Array.isArray(e.default))return e;break;case"boolean":if(typeof e.default=="boolean")return e;break;case"integer":case"number":if(typeof e.default=="number")return e;break;case"string":if(typeof e.default=="string")return e;break;case"null":if(e.default===null)return e;break;case"object":if((0,FC.default)(e.default))return e;break}return delete e.default,e}k(KC,"maybeStripDefault");function GC(e){return"$id"in e&&delete e.$id,"description"in e&&delete e.description,"name"in e&&delete e.name,e}k(GC,"maybeStripNameHints");function YC(e,...t){return e?`${e}
|
|
80
|
+
}`;var qt=vF(function(){return ln(I,at+"return "+Ee).apply(n,U)});if(qt.source=Ee,wx(qt))throw qt;return qt}function xPe(u){return fn(u).toLowerCase()}function SPe(u){return fn(u).toUpperCase()}function EPe(u,f,g){if(u=fn(u),u&&(g||f===n))return Oj(u);if(!u||!(f=hi(f)))return u;var x=Hi(u),O=Hi(f),I=Tj(x,O),U=$j(x,O)+1;return Qa(x,I,U).join("")}function APe(u,f,g){if(u=fn(u),u&&(g||f===n))return u.slice(0,Ij(u)+1);if(!u||!(f=hi(f)))return u;var x=Hi(u),O=$j(x,Hi(f))+1;return Qa(x,0,O).join("")}function CPe(u,f,g){if(u=fn(u),u&&(g||f===n))return u.replace(Rn,"");if(!u||!(f=hi(f)))return u;var x=Hi(u),O=Tj(x,Hi(f));return Qa(x,O).join("")}function OPe(u,f){var g=M,x=H;if(Nn(f)){var O="separator"in f?f.separator:O;g="length"in f?Dt(f.length):g,x="omission"in f?hi(f.omission):x}u=fn(u);var I=u.length;if(Al(u)){var U=Hi(u);I=U.length}if(g>=I)return u;var W=g-Cl(x);if(W<1)return x;var te=U?Qa(U,0,W).join(""):u.slice(0,W);if(O===n)return te+x;if(U&&(W+=te.length-W),xx(O)){if(u.slice(W).search(O)){var be,we=te;for(O.global||(O=Lw(O.source,fn(un.exec(O))+"g")),O.lastIndex=0;be=O.exec(we);)var Ee=be.index;te=te.slice(0,Ee===n?W:Ee)}}else if(u.indexOf(hi(O),W)!=W){var Ve=te.lastIndexOf(O);Ve>-1&&(te=te.slice(0,Ve))}return te+x}function TPe(u){return u=fn(u),u&&N.test(u)?u.replace(Mn,rOe):u}var $Pe=Rl(function(u,f,g){return u+(g?" ":"")+f.toUpperCase()}),Ax=bL("toUpperCase");function gF(u,f,g){return u=fn(u),f=g?n:f,f===n?XCe(u)?aOe(u):zCe(u):u.match(f)||[]}var vF=Ut(function(u,f){try{return di(u,n,f)}catch(g){return wx(g)?g:new kt(g)}}),kPe=aa(function(u,f){return Ai(f,function(g){g=Co(g),ia(u,g,bx(u[g],u))}),u});function IPe(u){var f=u==null?0:u.length,g=vt();return u=f?kn(u,function(x){if(typeof x[1]!="function")throw new Ci(a);return[g(x[0]),x[1]]}):[],Ut(function(x){for(var O=-1;++O<f;){var I=u[O];if(di(I[0],this,x))return di(I[1],this,x)}})}function PPe(u){return rTe(Ti(u,p))}function Cx(u){return function(){return u}}function RPe(u,f){return u==null||u!==u?f:u}var NPe=wL(),DPe=wL(!0);function ri(u){return u}function Ox(u){return Jj(typeof u=="function"?u:Ti(u,p))}function MPe(u){return Qj(Ti(u,p))}function jPe(u,f){return eL(u,Ti(f,p))}var LPe=Ut(function(u,f){return function(g){return zf(g,u,f)}}),FPe=Ut(function(u,f){return function(g){return zf(u,g,f)}});function Tx(u,f,g){var x=ur(f),O=Ry(f,x);g==null&&!(Nn(f)&&(O.length||!x.length))&&(g=f,f=u,u=this,O=Ry(f,ur(f)));var I=!(Nn(g)&&"chain"in g)||!!g.chain,U=ua(u);return Ai(O,function(W){var te=f[W];u[W]=te,U&&(u.prototype[W]=function(){var be=this.__chain__;if(I||be){var we=u(this.__wrapped__),Ee=we.__actions__=ei(this.__actions__);return Ee.push({func:te,args:arguments,thisArg:u}),we.__chain__=be,we}return te.apply(u,Va([this.value()],arguments))})}),u}function qPe(){return yr._===this&&(yr._=dOe),this}function $x(){}function UPe(u){return u=Dt(u),Ut(function(f){return tL(f,u)})}var BPe=ax(kn),zPe=ax(xj),ZPe=ax(Iw);function bF(u){return px(u)?Pw(Co(u)):_Te(u)}function HPe(u){return function(f){return u==null?n:Ks(u,f)}}var WPe=SL(),VPe=SL(!0);function kx(){return[]}function Ix(){return!1}function KPe(){return{}}function GPe(){return""}function YPe(){return!0}function JPe(u,f){if(u=Dt(u),u<1||u>ne)return[];var g=ue,x=kr(u,ue);f=vt(f),u-=ue;for(var O=Dw(x,f);++g<u;)f(g);return O}function XPe(u){return Rt(u)?kn(u,Co):mi(u)?[u]:ei(FL(fn(u)))}function QPe(u){var f=++cOe;return fn(u)+f}var eRe=Fy(function(u,f){return u+f},0),tRe=sx("ceil"),nRe=Fy(function(u,f){return u/f},1),rRe=sx("floor");function iRe(u){return u&&u.length?Py(u,ri,Ww):n}function oRe(u,f){return u&&u.length?Py(u,vt(f,2),Ww):n}function aRe(u){return Aj(u,ri)}function sRe(u,f){return Aj(u,vt(f,2))}function uRe(u){return u&&u.length?Py(u,ri,Yw):n}function lRe(u,f){return u&&u.length?Py(u,vt(f,2),Yw):n}var cRe=Fy(function(u,f){return u*f},1),fRe=sx("round"),dRe=Fy(function(u,f){return u-f},0);function pRe(u){return u&&u.length?Nw(u,ri):0}function hRe(u,f){return u&&u.length?Nw(u,vt(f,2)):0}return $.after=Mke,$.ary=YL,$.assign=SIe,$.assignIn=cF,$.assignInWith=Xy,$.assignWith=EIe,$.at=AIe,$.before=JL,$.bind=bx,$.bindAll=kPe,$.bindKey=XL,$.castArray=Kke,$.chain=VL,$.chunk=r$e,$.compact=i$e,$.concat=o$e,$.cond=IPe,$.conforms=PPe,$.constant=Cx,$.countBy=pke,$.create=CIe,$.curry=QL,$.curryRight=eF,$.debounce=tF,$.defaults=OIe,$.defaultsDeep=TIe,$.defer=jke,$.delay=Lke,$.difference=a$e,$.differenceBy=s$e,$.differenceWith=u$e,$.drop=l$e,$.dropRight=c$e,$.dropRightWhile=f$e,$.dropWhile=d$e,$.fill=p$e,$.filter=mke,$.flatMap=vke,$.flatMapDeep=bke,$.flatMapDepth=_ke,$.flatten=zL,$.flattenDeep=h$e,$.flattenDepth=m$e,$.flip=Fke,$.flow=NPe,$.flowRight=DPe,$.fromPairs=y$e,$.functions=DIe,$.functionsIn=MIe,$.groupBy=wke,$.initial=v$e,$.intersection=b$e,$.intersectionBy=_$e,$.intersectionWith=w$e,$.invert=LIe,$.invertBy=FIe,$.invokeMap=Ske,$.iteratee=Ox,$.keyBy=Eke,$.keys=ur,$.keysIn=ni,$.map=Wy,$.mapKeys=UIe,$.mapValues=BIe,$.matches=MPe,$.matchesProperty=jPe,$.memoize=Ky,$.merge=zIe,$.mergeWith=fF,$.method=LPe,$.methodOf=FPe,$.mixin=Tx,$.negate=Gy,$.nthArg=UPe,$.omit=ZIe,$.omitBy=HIe,$.once=qke,$.orderBy=Ake,$.over=BPe,$.overArgs=Uke,$.overEvery=zPe,$.overSome=ZPe,$.partial=_x,$.partialRight=nF,$.partition=Cke,$.pick=WIe,$.pickBy=dF,$.property=bF,$.propertyOf=HPe,$.pull=A$e,$.pullAll=HL,$.pullAllBy=C$e,$.pullAllWith=O$e,$.pullAt=T$e,$.range=WPe,$.rangeRight=VPe,$.rearg=Bke,$.reject=$ke,$.remove=$$e,$.rest=zke,$.reverse=gx,$.sampleSize=Ike,$.set=KIe,$.setWith=GIe,$.shuffle=Pke,$.slice=k$e,$.sortBy=Dke,$.sortedUniq=j$e,$.sortedUniqBy=L$e,$.split=vPe,$.spread=Zke,$.tail=F$e,$.take=q$e,$.takeRight=U$e,$.takeRightWhile=B$e,$.takeWhile=z$e,$.tap=ike,$.throttle=Hke,$.thru=Hy,$.toArray=sF,$.toPairs=pF,$.toPairsIn=hF,$.toPath=XPe,$.toPlainObject=lF,$.transform=YIe,$.unary=Wke,$.union=Z$e,$.unionBy=H$e,$.unionWith=W$e,$.uniq=V$e,$.uniqBy=K$e,$.uniqWith=G$e,$.unset=JIe,$.unzip=vx,$.unzipWith=WL,$.update=XIe,$.updateWith=QIe,$.values=Ml,$.valuesIn=ePe,$.without=Y$e,$.words=gF,$.wrap=Vke,$.xor=J$e,$.xorBy=X$e,$.xorWith=Q$e,$.zip=eke,$.zipObject=tke,$.zipObjectDeep=nke,$.zipWith=rke,$.entries=pF,$.entriesIn=hF,$.extend=cF,$.extendWith=Xy,Tx($,$),$.add=eRe,$.attempt=vF,$.camelCase=iPe,$.capitalize=mF,$.ceil=tRe,$.clamp=tPe,$.clone=Gke,$.cloneDeep=Jke,$.cloneDeepWith=Xke,$.cloneWith=Yke,$.conformsTo=Qke,$.deburr=yF,$.defaultTo=RPe,$.divide=nRe,$.endsWith=oPe,$.eq=Vi,$.escape=aPe,$.escapeRegExp=sPe,$.every=hke,$.find=yke,$.findIndex=UL,$.findKey=$Ie,$.findLast=gke,$.findLastIndex=BL,$.findLastKey=kIe,$.floor=rRe,$.forEach=KL,$.forEachRight=GL,$.forIn=IIe,$.forInRight=PIe,$.forOwn=RIe,$.forOwnRight=NIe,$.get=Sx,$.gt=eIe,$.gte=tIe,$.has=jIe,$.hasIn=Ex,$.head=ZL,$.identity=ri,$.includes=xke,$.indexOf=g$e,$.inRange=nPe,$.invoke=qIe,$.isArguments=Js,$.isArray=Rt,$.isArrayBuffer=nIe,$.isArrayLike=ti,$.isArrayLikeObject=qn,$.isBoolean=rIe,$.isBuffer=es,$.isDate=iIe,$.isElement=oIe,$.isEmpty=aIe,$.isEqual=sIe,$.isEqualWith=uIe,$.isError=wx,$.isFinite=lIe,$.isFunction=ua,$.isInteger=rF,$.isLength=Yy,$.isMap=iF,$.isMatch=cIe,$.isMatchWith=fIe,$.isNaN=dIe,$.isNative=pIe,$.isNil=mIe,$.isNull=hIe,$.isNumber=oF,$.isObject=Nn,$.isObjectLike=Ln,$.isPlainObject=Gf,$.isRegExp=xx,$.isSafeInteger=yIe,$.isSet=aF,$.isString=Jy,$.isSymbol=mi,$.isTypedArray=Dl,$.isUndefined=gIe,$.isWeakMap=vIe,$.isWeakSet=bIe,$.join=x$e,$.kebabCase=uPe,$.last=ki,$.lastIndexOf=S$e,$.lowerCase=lPe,$.lowerFirst=cPe,$.lt=_Ie,$.lte=wIe,$.max=iRe,$.maxBy=oRe,$.mean=aRe,$.meanBy=sRe,$.min=uRe,$.minBy=lRe,$.stubArray=kx,$.stubFalse=Ix,$.stubObject=KPe,$.stubString=GPe,$.stubTrue=YPe,$.multiply=cRe,$.nth=E$e,$.noConflict=qPe,$.noop=$x,$.now=Vy,$.pad=fPe,$.padEnd=dPe,$.padStart=pPe,$.parseInt=hPe,$.random=rPe,$.reduce=Oke,$.reduceRight=Tke,$.repeat=mPe,$.replace=yPe,$.result=VIe,$.round=fRe,$.runInContext=J,$.sample=kke,$.size=Rke,$.snakeCase=gPe,$.some=Nke,$.sortedIndex=I$e,$.sortedIndexBy=P$e,$.sortedIndexOf=R$e,$.sortedLastIndex=N$e,$.sortedLastIndexBy=D$e,$.sortedLastIndexOf=M$e,$.startCase=bPe,$.startsWith=_Pe,$.subtract=dRe,$.sum=pRe,$.sumBy=hRe,$.template=wPe,$.times=JPe,$.toFinite=la,$.toInteger=Dt,$.toLength=uF,$.toLower=xPe,$.toNumber=Ii,$.toSafeInteger=xIe,$.toString=fn,$.toUpper=SPe,$.trim=EPe,$.trimEnd=APe,$.trimStart=CPe,$.truncate=OPe,$.unescape=TPe,$.uniqueId=QPe,$.upperCase=$Pe,$.upperFirst=Ax,$.each=KL,$.eachRight=GL,$.first=ZL,Tx($,function(){var u={};return Eo($,function(f,g){hn.call($.prototype,g)||(u[g]=f)}),u}(),{chain:!1}),$.VERSION=r,Ai(["bind","bindKey","curry","curryRight","partial","partialRight"],function(u){$[u].placeholder=$}),Ai(["drop","take"],function(u,f){Gt.prototype[u]=function(g){g=g===n?1:nr(Dt(g),0);var x=this.__filtered__&&!f?new Gt(this):this.clone();return x.__filtered__?x.__takeCount__=kr(g,x.__takeCount__):x.__views__.push({size:kr(g,ue),type:u+(x.__dir__<0?"Right":"")}),x},Gt.prototype[u+"Right"]=function(g){return this.reverse()[u](g).reverse()}}),Ai(["filter","map","takeWhile"],function(u,f){var g=f+1,x=g==G||g==F;Gt.prototype[u]=function(O){var I=this.clone();return I.__iteratees__.push({iteratee:vt(O,3),type:g}),I.__filtered__=I.__filtered__||x,I}}),Ai(["head","last"],function(u,f){var g="take"+(f?"Right":"");Gt.prototype[u]=function(){return this[g](1).value()[0]}}),Ai(["initial","tail"],function(u,f){var g="drop"+(f?"":"Right");Gt.prototype[u]=function(){return this.__filtered__?new Gt(this):this[g](1)}}),Gt.prototype.compact=function(){return this.filter(ri)},Gt.prototype.find=function(u){return this.filter(u).head()},Gt.prototype.findLast=function(u){return this.reverse().find(u)},Gt.prototype.invokeMap=Ut(function(u,f){return typeof u=="function"?new Gt(this):this.map(function(g){return zf(g,u,f)})}),Gt.prototype.reject=function(u){return this.filter(Gy(vt(u)))},Gt.prototype.slice=function(u,f){u=Dt(u);var g=this;return g.__filtered__&&(u>0||f<0)?new Gt(g):(u<0?g=g.takeRight(-u):u&&(g=g.drop(u)),f!==n&&(f=Dt(f),g=f<0?g.dropRight(-f):g.take(f-u)),g)},Gt.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},Gt.prototype.toArray=function(){return this.take(ue)},Eo(Gt.prototype,function(u,f){var g=/^(?:filter|find|map|reject)|While$/.test(f),x=/^(?:head|last)$/.test(f),O=$[x?"take"+(f=="last"?"Right":""):f],I=x||/^find/.test(f);O&&($.prototype[f]=function(){var U=this.__wrapped__,W=x?[1]:arguments,te=U instanceof Gt,be=W[0],we=te||Rt(U),Ee=function(Ht){var Xt=O.apply($,Va([Ht],W));return x&&Ve?Xt[0]:Xt};we&&g&&typeof be=="function"&&be.length!=1&&(te=we=!1);var Ve=this.__chain__,at=!!this.__actions__.length,wt=I&&!Ve,qt=te&&!at;if(!I&&we){U=qt?U:new Gt(this);var xt=u.apply(U,W);return xt.__actions__.push({func:Hy,args:[Ee],thisArg:n}),new Oi(xt,Ve)}return wt&&qt?u.apply(this,W):(xt=this.thru(Ee),wt?x?xt.value()[0]:xt.value():xt)})}),Ai(["pop","push","shift","sort","splice","unshift"],function(u){var f=gy[u],g=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",x=/^(?:pop|shift)$/.test(u);$.prototype[u]=function(){var O=arguments;if(x&&!this.__chain__){var I=this.value();return f.apply(Rt(I)?I:[],O)}return this[g](function(U){return f.apply(Rt(U)?U:[],O)})}}),Eo(Gt.prototype,function(u,f){var g=$[f];if(g){var x=g.name+"";hn.call(kl,x)||(kl[x]=[]),kl[x].push({name:f,func:g})}}),kl[Ly(n,_).name]=[{name:"wrapper",func:n}],Gt.prototype.clone=TOe,Gt.prototype.reverse=$Oe,Gt.prototype.value=kOe,$.prototype.at=oke,$.prototype.chain=ake,$.prototype.commit=ske,$.prototype.next=uke,$.prototype.plant=cke,$.prototype.reverse=fke,$.prototype.toJSON=$.prototype.valueOf=$.prototype.value=dke,$.prototype.first=$.prototype.head,Mf&&($.prototype[Mf]=lke),$},Ol=sOe();zs?((zs.exports=Ol)._=Ol,Ow._=Ol):yr._=Ol}).call(se)}(Gd,Gd.exports);var vie=Gd.exports,bie=Object.create,wu=Object.defineProperty,_ie=Object.defineProperties,wie=Object.getOwnPropertyDescriptor,xie=Object.getOwnPropertyDescriptors,Sie=Object.getOwnPropertyNames,Yd=Object.getOwnPropertySymbols,Eie=Object.getPrototypeOf,jv=Object.prototype.hasOwnProperty,RC=Object.prototype.propertyIsEnumerable,NC=(e,t,n)=>t in e?wu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,B=(e,t)=>{for(var n in t||(t={}))jv.call(t,n)&&NC(e,n,t[n]);if(Yd)for(var n of Yd(t))RC.call(t,n)&&NC(e,n,t[n]);return e},fe=(e,t)=>_ie(e,xie(t)),k=(e,t)=>wu(e,"name",{value:t,configurable:!0}),DC=(e,t)=>{var n={};for(var r in e)jv.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Yd)for(var r of Yd(e))t.indexOf(r)<0&&RC.call(e,r)&&(n[r]=e[r]);return n},MC=(e,t)=>{for(var n in t)wu(e,n,{get:t[n],enumerable:!0})},jC=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Sie(t))!jv.call(e,i)&&i!==n&&wu(e,i,{get:()=>t[i],enumerable:!(r=wie(t,i))||r.enumerable});return e},yn=(e,t,n)=>(n=e!=null?bie(Eie(e)):{},jC(t||!e||!e.__esModule?wu(n,"default",{value:e,enumerable:!0}):n,e)),Aie=e=>jC(wu({},"__esModule",{value:!0}),e),LC={};MC(LC,{BRAND:()=>LO,DIRTY:()=>vs,EMPTY_PATH:()=>MO,INVALID:()=>gt,NEVER:()=>g$,OK:()=>_r,ParseInputLazyPath:()=>wi,ParseStatus:()=>Dr,Schema:()=>Ct,UntitledDeclarationError:()=>_O,ZodAny:()=>Iu,ZodArray:()=>Pu,ZodBigInt:()=>hc,ZodBoolean:()=>mc,ZodBranded:()=>yc,ZodCatch:()=>bp,ZodDate:()=>wp,ZodDefault:()=>Sp,ZodDiscriminatedUnion:()=>Yv,ZodEffects:()=>Mo,ZodEnum:()=>No,ZodError:()=>ao,ZodFirstPartyTypeKind:()=>Wv,ZodFunction:()=>Xv,ZodIntersection:()=>Cp,ZodIssueCode:()=>Ie,ZodLazy:()=>Tp,ZodLiteral:()=>vc,ZodMap:()=>Qv,ZodNaN:()=>eb,ZodNativeEnum:()=>bc,ZodNever:()=>ga,ZodNull:()=>_c,ZodNullable:()=>Do,ZodNumber:()=>wc,ZodObject:()=>_s,ZodOptional:()=>Di,ZodParsedType:()=>Ge,ZodPipeline:()=>Lp,ZodPromise:()=>xc,ZodReadonly:()=>Up,ZodRecord:()=>tb,ZodSchema:()=>Ct,ZodSet:()=>nb,ZodString:()=>dr,ZodSymbol:()=>ib,ZodTemplateLiteral:()=>Xp,ZodTemplateLiteralUnsupportedCheckError:()=>fp,ZodTemplateLiteralUnsupportedTypeError:()=>Vv,ZodTransformer:()=>Mo,ZodTuple:()=>ws,ZodType:()=>Ct,ZodUndefined:()=>Ac,ZodUnion:()=>Cc,ZodUnknown:()=>Nu,ZodVoid:()=>ob,ZuiForm:()=>Joe,addIssueToContext:()=>Ye,agent:()=>ET,aimodel:()=>$T,any:()=>qT,array:()=>ZT,bigint:()=>DT,boolean:()=>fb,coerce:()=>y$,conversation:()=>wT,createZodEnum:()=>gc,cuid2Regex:()=>Zp,cuidRegex:()=>zp,custom:()=>Gv,datasource:()=>kT,date:()=>MT,datetimeRegex:()=>Kp,defaultErrorMap:()=>Du,discriminatedUnion:()=>KT,effect:()=>ah,emailRegex:()=>Vp,enum:()=>r$,errorUtil:()=>ut,event:()=>AT,fromJsonSchema:()=>h$,fromObject:()=>m$,function:()=>e$,getErrorMap:()=>$u,getParsedType:()=>Po,instanceof:()=>RT,intent:()=>TT,intersection:()=>GT,ipv4Regex:()=>Sc,ipv6Regex:()=>Ec,isAborted:()=>dp,isAsync:()=>pc,isDirty:()=>pp,isEmojiRegex:()=>WO,isValid:()=>ku,jsonSchemaToZui:()=>Ic,knowledgebase:()=>IT,late:()=>PT,lazy:()=>t$,literal:()=>n$,makeIssue:()=>dc,map:()=>XT,message:()=>ST,nan:()=>NT,nativeEnum:()=>i$,never:()=>BT,null:()=>FT,nullable:()=>s$,number:()=>cb,object:()=>HT,objectToZui:()=>Mu,objectUtil:()=>lp,oboolean:()=>p$,onumber:()=>d$,optional:()=>a$,ostring:()=>f$,pipeline:()=>l$,preprocess:()=>u$,processCreateParams:()=>Ot,promise:()=>o$,quotelessJson:()=>PO,record:()=>JT,set:()=>QT,setErrorMap:()=>Kv,strictObject:()=>WT,string:()=>lb,symbol:()=>jT,table:()=>CT,tablerow:()=>OT,templateLiteral:()=>c$,transformer:()=>ah,transforms:()=>Xoe,tuple:()=>YT,ulidRegex:()=>Hp,undefined:()=>LT,union:()=>VT,unknown:()=>UT,user:()=>xT,util:()=>Wt,uuidRegex:()=>Wp,variable:()=>_T,void:()=>zT,z:()=>zn,zuiToJsonSchema:()=>oh});var Jd=Aie(LC),zn={};MC(zn,{BRAND:()=>LO,DIRTY:()=>vs,EMPTY_PATH:()=>MO,INVALID:()=>gt,NEVER:()=>g$,OK:()=>_r,ParseInputLazyPath:()=>wi,ParseStatus:()=>Dr,Schema:()=>Ct,ZodAny:()=>Iu,ZodArray:()=>Pu,ZodBigInt:()=>hc,ZodBoolean:()=>mc,ZodBranded:()=>yc,ZodCatch:()=>bp,ZodDate:()=>wp,ZodDefault:()=>Sp,ZodDiscriminatedUnion:()=>Yv,ZodEffects:()=>Mo,ZodEnum:()=>No,ZodError:()=>ao,ZodFirstPartyTypeKind:()=>Wv,ZodFunction:()=>Xv,ZodIntersection:()=>Cp,ZodIssueCode:()=>Ie,ZodLazy:()=>Tp,ZodLiteral:()=>vc,ZodMap:()=>Qv,ZodNaN:()=>eb,ZodNativeEnum:()=>bc,ZodNever:()=>ga,ZodNull:()=>_c,ZodNullable:()=>Do,ZodNumber:()=>wc,ZodObject:()=>_s,ZodOptional:()=>Di,ZodParsedType:()=>Ge,ZodPipeline:()=>Lp,ZodPromise:()=>xc,ZodReadonly:()=>Up,ZodRecord:()=>tb,ZodSchema:()=>Ct,ZodSet:()=>nb,ZodString:()=>dr,ZodSymbol:()=>ib,ZodTemplateLiteral:()=>Xp,ZodTemplateLiteralUnsupportedCheckError:()=>fp,ZodTemplateLiteralUnsupportedTypeError:()=>Vv,ZodTransformer:()=>Mo,ZodTuple:()=>ws,ZodType:()=>Ct,ZodUndefined:()=>Ac,ZodUnion:()=>Cc,ZodUnknown:()=>Nu,ZodVoid:()=>ob,addIssueToContext:()=>Ye,agent:()=>ET,aimodel:()=>$T,any:()=>qT,array:()=>ZT,bigint:()=>DT,boolean:()=>fb,coerce:()=>y$,conversation:()=>wT,createZodEnum:()=>gc,cuid2Regex:()=>Zp,cuidRegex:()=>zp,custom:()=>Gv,datasource:()=>kT,date:()=>MT,datetimeRegex:()=>Kp,defaultErrorMap:()=>Du,discriminatedUnion:()=>KT,effect:()=>ah,emailRegex:()=>Vp,enum:()=>r$,errorUtil:()=>ut,event:()=>AT,fromJsonSchema:()=>h$,fromObject:()=>m$,function:()=>e$,getErrorMap:()=>$u,getParsedType:()=>Po,instanceof:()=>RT,intent:()=>TT,intersection:()=>GT,ipv4Regex:()=>Sc,ipv6Regex:()=>Ec,isAborted:()=>dp,isAsync:()=>pc,isDirty:()=>pp,isEmojiRegex:()=>WO,isValid:()=>ku,jsonSchemaToZui:()=>Ic,knowledgebase:()=>IT,late:()=>PT,lazy:()=>t$,literal:()=>n$,makeIssue:()=>dc,map:()=>XT,message:()=>ST,nan:()=>NT,nativeEnum:()=>i$,never:()=>BT,null:()=>FT,nullable:()=>s$,number:()=>cb,object:()=>HT,objectToZui:()=>Mu,objectUtil:()=>lp,oboolean:()=>p$,onumber:()=>d$,optional:()=>a$,ostring:()=>f$,pipeline:()=>l$,preprocess:()=>u$,processCreateParams:()=>Ot,promise:()=>o$,quotelessJson:()=>PO,record:()=>JT,set:()=>QT,setErrorMap:()=>Kv,strictObject:()=>WT,string:()=>lb,symbol:()=>jT,table:()=>CT,tablerow:()=>OT,templateLiteral:()=>c$,transformer:()=>ah,tuple:()=>YT,ulidRegex:()=>Hp,undefined:()=>LT,union:()=>VT,unknown:()=>UT,user:()=>xT,util:()=>Wt,uuidRegex:()=>Wp,variable:()=>_T,void:()=>zT,zuiToJsonSchema:()=>oh});var gn="x-zui",Cie=yn(AG,1),Oie=yn(cY,1),Tie=yn(eC,1),$ie=yn(UX,1),kie=yn(Wd,1),Iie=yn(bC,1);function sc(e){return"comment"in e&&e.comment!=null&&e.comment!==""||"deprecated"in e&&e.deprecated===!0}k(sc,"hasComment");function xu(e){return"standaloneName"in e&&e.standaloneName!=null&&e.standaloneName!==""}k(xu,"hasStandaloneName");var Su={type:"ANY"},Pie={keyName:"[k: string]",type:"ANY"},Eu={type:"UNKNOWN"},Rie={keyName:"[k: string]",type:"UNKNOWN"},Nie=yn(bee,1),FC=yn(hs,1),Die=yn(_te,1),Mie=yn($te,1),jie=yn(Wd,1),Lie=yn(hs,1),uc=Symbol("Parent"),qC=(0,jie.default)(e=>{const t=e[uc];return t?qC(t):e});function UC(e){return e===!0||e===!1}k(UC,"isBoolean");function BC(e){return!(0,Lie.default)(e)}k(BC,"isPrimitive");function Xd(e){return Array.isArray(e.type)||"anyOf"in e||"oneOf"in e}k(Xd,"isCompound");var zC=k((e,t)=>{const n=e.split("/").pop()||"";return t?n.replaceAll(t,""):n},"basename"),Fie=k(e=>{const t=zC(e),n=t.lastIndexOf(".");return n===-1?"":t.slice(n)},"extname"),qie=new Set(["id","$defs","$id","$schema","title","description","default","multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","items","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","definitions","properties","patternProperties","dependencies","enum","type","allOf","anyOf","oneOf","not"]);function ms(e,t,n){Object.keys(e).forEach(r=>{e[r]&&typeof e[r]=="object"&&!Array.isArray(e[r])&&ko(e[r],t,n,r)})}k(ms,"traverseObjectKeys");function Au(e,t,n){e.forEach((r,i)=>ko(r,t,n,i.toString()))}k(Au,"traverseArray");function ko(e,t,n=new Set,r){if(!n.has(e)){if(n.add(e),t(e,r??null),e.anyOf&&Au(e.anyOf,t,n),e.allOf&&Au(e.allOf,t,n),e.oneOf&&Au(e.oneOf,t,n),e.properties&&ms(e.properties,t,n),e.patternProperties&&ms(e.patternProperties,t,n),e.additionalProperties&&typeof e.additionalProperties=="object"&&ko(e.additionalProperties,t,n),e.items){const{items:i}=e;Array.isArray(i)?Au(i,t,n):ko(i,t,n)}e.additionalItems&&typeof e.additionalItems=="object"&&ko(e.additionalItems,t,n),e.dependencies&&(Array.isArray(e.dependencies)?Au(e.dependencies,t,n):ms(e.dependencies,t,n)),e.definitions&&ms(e.definitions,t,n),e.$defs&&ms(e.$defs,t,n),e.not&&ko(e.not,t,n),Object.keys(e).filter(i=>!qie.has(i)).forEach(i=>{const o=e[i];o&&typeof o=="object"&&ms(o,t,n)})}}k(ko,"traverse");function Lv(e=""){return ZC(zC(e))}k(Lv,"justName");function ZC(e){return e.replace(Fie(e),"")}k(ZC,"stripExtension");function Io(e){return(0,Mie.default)((0,Nie.default)(e).replace(/(^\s*[^a-zA-Z_$])|([^a-zA-Z_$\d])/g," ").replace(/^_[a-z]/g,t=>t.toUpperCase()).replace(/_[a-z]/g,t=>t.substr(1,t.length).toUpperCase()).replace(/([\d$]+[a-zA-Z])/g,t=>t.toUpperCase()).replace(/\s+([a-zA-Z])/g,t=>(0,Die.default)(t.toUpperCase())).replace(/\s/g,""))}k(Io,"toSafeString");function HC(e,t){let n=Io(e);if(n||(n="NoName"),t.has(n)){let r=1,i=`${n}${r}`;for(;t.has(i);)i=`${n}${r}`,r++;n=i}return t.add(n),n}k(HC,"generateName");function WC(...e){if(!process.env.VERBOSE)return console.error(e);console.error(...e)}k(WC,"error");function fr(e,t,...n){if(!process.env.VERBOSE)return;let r=null;n.length>1&&typeof n[n.length-1]!="string"&&(r=n.splice(n.length-1,1)),console.info(t,...n),r&&console.dir(r,{depth:6,maxArrayLength:6})}k(fr,"log");function VC(e){const t="* /";if(!(e===null||typeof e!="object"))for(const n of Object.keys(e))n==="description"&&typeof e[n]=="string"&&(e[n]=e[n].replace(/\*\//g,t))}k(VC,"escapeBlockComment");function KC(e){if(!("default"in e))return e;switch(e.type){case"array":if(Array.isArray(e.default))return e;break;case"boolean":if(typeof e.default=="boolean")return e;break;case"integer":case"number":if(typeof e.default=="number")return e;break;case"string":if(typeof e.default=="string")return e;break;case"null":if(e.default===null)return e;break;case"object":if((0,FC.default)(e.default))return e;break}return delete e.default,e}k(KC,"maybeStripDefault");function GC(e){return"$id"in e&&delete e.$id,"description"in e&&delete e.description,"name"in e&&delete e.name,e}k(GC,"maybeStripNameHints");function YC(e,...t){return e?`${e}
|
|
81
81
|
|
|
82
82
|
${t.join(`
|
|
83
83
|
`)}`:t.join(`
|
|
@@ -183,10 +183,10 @@ ${ap(e.value)}`.trim();case St.ZodFirstPartyTypeKind.ZodEnum:return s.values.map
|
|
|
183
183
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[X$]=this[X$]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=Nc(a);r[s]||(Kae(i,a),r[s]=!0)}return _e.isArray(t)?t.forEach(o):o(t),this}};mh.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),_e.reduceDescriptors(mh.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),_e.freezeMethods(mh);const Lo=mh;function Eb(e,t){const n=this||xb,r=t||n,i=Lo.from(r.headers);let o=r.data;return _e.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Q$(e){return!!(e&&e.__CANCEL__)}function Dc(e,t,n){en.call(this,e??"canceled",en.ERR_CANCELED,t,n),this.name="CanceledError"}_e.inherits(Dc,en,{__CANCEL__:!0});function Gae(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new en("Request failed with status code "+n.status,[en.ERR_BAD_REQUEST,en.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Yae=uo.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];_e.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),_e.isString(r)&&a.push("path="+r),_e.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Jae(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Xae(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ek(e,t){return e&&!Jae(t)?Xae(e,t):t}const Qae=uo.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let a=o;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(a){const s=_e.isString(a)?i(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function ese(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function tse(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),d=r[o];a||(a=c),n[i]=l,r[i]=c;let p=o,m=0;for(;p!==i;)m+=n[p++],p=p%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-a<t)return;const h=d&&c-d;return h?Math.round(m*1e3/h):void 0}}function tk(e,t){let n=0;const r=tse(50,250);return i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-n,l=r(s),c=o<=a;n=o;const d={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&c?(a-o)/l:void 0,event:i};d[t?"download":"upload"]=!0,e(d)}}const Ab={http:Pae,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){let i=e.data;const o=Lo.from(e.headers).normalize();let{responseType:a,withXSRFToken:s}=e,l;function c(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let d;if(_e.isFormData(i)){if(uo.hasStandardBrowserEnv||uo.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((d=o.getContentType())!==!1){const[v,...w]=d?d.split(";").map(_=>_.trim()).filter(Boolean):[];o.setContentType([v||"multipart/form-data",...w].join("; "))}}let p=new XMLHttpRequest;if(e.auth){const v=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(v+":"+w))}const m=ek(e.baseURL,e.url);p.open(e.method.toUpperCase(),V$(m,e.params,e.paramsSerializer),!0),p.timeout=e.timeout;function h(){if(!p)return;const v=Lo.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),_={data:!a||a==="text"||a==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:v,config:e,request:p};Gae(function(S){n(S),c()},function(S){r(S),c()},_),p=null}if("onloadend"in p?p.onloadend=h:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(h)},p.onabort=function(){p&&(r(new en("Request aborted",en.ECONNABORTED,e,p)),p=null)},p.onerror=function(){r(new en("Network Error",en.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let w=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const _=e.transitional||G$;e.timeoutErrorMessage&&(w=e.timeoutErrorMessage),r(new en(w,_.clarifyTimeoutError?en.ETIMEDOUT:en.ECONNABORTED,e,p)),p=null},uo.hasStandardBrowserEnv&&(s&&_e.isFunction(s)&&(s=s(e)),s||s!==!1&&Qae(m))){const v=e.xsrfHeaderName&&e.xsrfCookieName&&Yae.read(e.xsrfCookieName);v&&o.set(e.xsrfHeaderName,v)}i===void 0&&o.setContentType(null),"setRequestHeader"in p&&_e.forEach(o.toJSON(),function(w,_){p.setRequestHeader(_,w)}),_e.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),a&&a!=="json"&&(p.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&p.addEventListener("progress",tk(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&p.upload&&p.upload.addEventListener("progress",tk(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=v=>{p&&(r(!v||v.type?new Dc(null,e,p):v),p.abort(),p=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const y=ese(m);if(y&&uo.protocols.indexOf(y)===-1){r(new en("Unsupported protocol "+y+":",en.ERR_BAD_REQUEST,e));return}p.send(i||null)})}};_e.forEach(Ab,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const nk=e=>`- ${e}`,nse=e=>_e.isFunction(e)||e===null||e===!1,rk={getAdapter:e=>{e=_e.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){n=e[o];let a;if(r=n,!nse(n)&&(r=Ab[(a=String(n)).toLowerCase()],r===void 0))throw new en(`Unknown adapter '${a}'`);if(r)break;i[a||"#"+o]=r}if(!r){const o=Object.entries(i).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since :
|
|
184
184
|
`+o.map(nk).join(`
|
|
185
185
|
`):" "+nk(o[0]):"as no adapter specified";throw new en("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:Ab};function Cb(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Dc(null,e)}function ik(e){return Cb(e),e.headers=Lo.from(e.headers),e.data=Eb.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),rk.getAdapter(e.adapter||xb.adapter)(e).then(function(r){return Cb(e),r.data=Eb.call(e,e.transformResponse,r),r.headers=Lo.from(r.headers),r},function(r){return Q$(r)||(Cb(e),r&&r.response&&(r.response.data=Eb.call(e,e.transformResponse,r.response),r.response.headers=Lo.from(r.response.headers))),Promise.reject(r)})}const ok=e=>e instanceof Lo?{...e}:e;function Fu(e,t){t=t||{};const n={};function r(c,d,p){return _e.isPlainObject(c)&&_e.isPlainObject(d)?_e.merge.call({caseless:p},c,d):_e.isPlainObject(d)?_e.merge({},d):_e.isArray(d)?d.slice():d}function i(c,d,p){if(_e.isUndefined(d)){if(!_e.isUndefined(c))return r(void 0,c,p)}else return r(c,d,p)}function o(c,d){if(!_e.isUndefined(d))return r(void 0,d)}function a(c,d){if(_e.isUndefined(d)){if(!_e.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function s(c,d,p){if(p in t)return r(c,d);if(p in e)return r(void 0,c)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,d)=>i(ok(c),ok(d),!0)};return _e.forEach(Object.keys(Object.assign({},e,t)),function(d){const p=l[d]||i,m=p(e[d],t[d],d);_e.isUndefined(m)&&p!==s||(n[d]=m)}),n}const ak="1.6.8",Ob={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ob[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const sk={};Ob.transitional=function(t,n,r){function i(o,a){return"[Axios v"+ak+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new en(i(a," has been removed"+(n?" in "+n:"")),en.ERR_DEPRECATED);return n&&!sk[a]&&(sk[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}};function rse(e,t,n){if(typeof e!="object")throw new en("options must be an object",en.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new en("option "+o+" must be "+l,en.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new en("Unknown option "+o,en.ERR_BAD_OPTION)}}const Tb={assertOptions:rse,validators:Ob},ba=Tb.validators;let yh=class{constructor(t){this.defaults=t,this.interceptors={request:new K$,response:new K$}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
186
|
-
`+o):r.stack=o}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Fu(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Tb.assertOptions(r,{silentJSONParsing:ba.transitional(ba.boolean),forcedJSONParsing:ba.transitional(ba.boolean),clarifyTimeoutError:ba.transitional(ba.boolean)},!1),i!=null&&(_e.isFunction(i)?n.paramsSerializer={serialize:i}:Tb.assertOptions(i,{encode:ba.function,serialize:ba.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&_e.merge(o.common,o[n.method]);o&&_e.forEach(["delete","get","head","post","put","patch","common"],y=>{delete o[y]}),n.headers=Lo.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let d,p=0,m;if(!l){const y=[ik.bind(this),void 0];for(y.unshift.apply(y,s),y.push.apply(y,c),m=y.length,d=Promise.resolve(n);p<m;)d=d.then(y[p++],y[p++]);return d}m=s.length;let h=n;for(p=0;p<m;){const y=s[p++],v=s[p++];try{h=y(h)}catch(w){v.call(this,w);break}}try{d=ik.call(this,h)}catch(y){return Promise.reject(y)}for(p=0,m=c.length;p<m;)d=d.then(c[p++],c[p++]);return d}getUri(t){t=Fu(this.defaults,t);const n=ek(t.baseURL,t.url);return V$(n,t.params,t.paramsSerializer)}};_e.forEach(["delete","get","head","options"],function(t){yh.prototype[t]=function(n,r){return this.request(Fu(r||{},{method:t,url:n,data:(r||{}).data}))}}),_e.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,s){return this.request(Fu(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}yh.prototype[t]=n(),yh.prototype[t+"Form"]=n(!0)});const gh=yh,ise=class OF{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new Dc(o,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new OF(function(i){t=i}),cancel:t}}};function ose(e){return function(n){return e.apply(null,n)}}function ase(e){return _e.isObject(e)&&e.isAxiosError===!0}const $b={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries($b).forEach(([e,t])=>{$b[t]=e});const sse=$b;function uk(e){const t=new gh(e),n=I$(gh.prototype.request,t);return _e.extend(n,gh.prototype,t,{allOwnKeys:!0}),_e.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return uk(Fu(e,i))},n}const Wn=uk(xb);Wn.Axios=gh,Wn.CanceledError=Dc,Wn.CancelToken=ise,Wn.isCancel=Q$,Wn.VERSION=ak,Wn.toFormData=ph,Wn.AxiosError=en,Wn.Cancel=Wn.CanceledError,Wn.all=function(t){return Promise.all(t)},Wn.spread=ose,Wn.isAxiosError=ase,Wn.mergeConfig=Fu,Wn.AxiosHeaders=Lo,Wn.formToJSON=e=>J$(_e.isHTMLForm(e)?new FormData(e):e),Wn.getAdapter=rk.getAdapter,Wn.HttpStatusCode=sse,Wn.default=Wn;const qu=Wn,{Axios:use,AxiosError:lse,CanceledError:cse,isCancel:fse,CancelToken:dse,VERSION:pse,all:hse,Cancel:mse,isAxiosError:yse,spread:gse,toFormData:vse,AxiosHeaders:bse,HttpStatusCode:_se,formToJSON:wse,getAdapter:xse,mergeConfig:Sse}=qu,Ese=Object.freeze(Object.defineProperty({__proto__:null,Axios:use,AxiosError:lse,AxiosHeaders:bse,Cancel:mse,CancelToken:dse,CanceledError:cse,HttpStatusCode:_se,VERSION:pse,all:hse,default:qu,formToJSON:wse,getAdapter:xse,isAxiosError:yse,isCancel:fse,mergeConfig:Sse,spread:gse,toFormData:vse},Symbol.toStringTag,{value:"Module"}));var Uu={};Object.defineProperty(Uu,"__esModule",{value:!0});var Ase=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cse=typeof window<"u"&&typeof window.document<"u",Ose=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,Tse=(typeof self>"u"?"undefined":Ase(self))==="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope",$se=typeof window<"u"&&window.name==="nodejs"||typeof navigator<"u"&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),kse=typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u",lk=Uu.isBrowser=Cse;Uu.isWebWorker=Tse;var kb=Uu.isNode=Ose;Uu.isJsDom=$se,Uu.isDeno=kse;var Ise=Object.create,ck=Object.defineProperty,Pse=Object.getOwnPropertyDescriptor,Rse=Object.getOwnPropertyNames,Nse=Object.getPrototypeOf,Dse=Object.prototype.hasOwnProperty,Xn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Mse=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Rse(t))!Dse.call(e,i)&&i!==n&&ck(e,i,{get:()=>t[i],enumerable:!(r=Pse(t,i))||r.enumerable});return e},Ib=(e,t,n)=>(n=e!=null?Ise(Nse(e)):{},Mse(t||!e||!e.__esModule?ck(n,"default",{value:e,enumerable:!0}):n,e)),jse=Xn(()=>{}),Lse=Xn(()=>{}),Fse=Xn((e,t)=>{t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var n={},r=Symbol("test"),i=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var o=42;n[r]=o;for(r in n)return!1;if(typeof Object.keys=="function"&&Object.keys(n).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(n).length!==0)return!1;var a=Object.getOwnPropertySymbols(n);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(n,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(n,r);if(s.value!==o||s.enumerable!==!0)return!1}return!0}}),qse=Xn((e,t)=>{var n=typeof Symbol<"u"&&Symbol,r=Fse();t.exports=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:r()}}),Use=Xn((e,t)=>{var n={foo:{}},r=Object;t.exports=function(){return{__proto__:n}.foo===n.foo&&!({__proto__:null}instanceof r)}}),Bse=Xn((e,t)=>{var n="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,i=Object.prototype.toString,o="[object Function]";t.exports=function(a){var s=this;if(typeof s!="function"||i.call(s)!==o)throw new TypeError(n+s);for(var l=r.call(arguments,1),c,d=function(){if(this instanceof c){var v=s.apply(this,l.concat(r.call(arguments)));return Object(v)===v?v:this}else return s.apply(a,l.concat(r.call(arguments)))},p=Math.max(0,s.length-l.length),m=[],h=0;h<p;h++)m.push("$"+h);if(c=Function("binder","return function ("+m.join(",")+"){ return binder.apply(this,arguments); }")(d),s.prototype){var y=function(){};y.prototype=s.prototype,c.prototype=new y,y.prototype=null}return c}}),Pb=Xn((e,t)=>{var n=Bse();t.exports=Function.prototype.bind||n}),zse=Xn((e,t)=>{var n=Pb();t.exports=n.call(Function.call,Object.prototype.hasOwnProperty)}),Rb=Xn((e,t)=>{var n,r=SyntaxError,i=Function,o=TypeError,a=function(G){try{return i('"use strict"; return ('+G+").constructor;")()}catch{}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch{s=null}var l=function(){throw new o},c=s?function(){try{return arguments.callee,l}catch{try{return s(arguments,"callee").get}catch{return l}}}():l,d=qse()(),p=Use()(),m=Object.getPrototypeOf||(p?function(G){return G.__proto__}:null),h={},y=typeof Uint8Array>"u"||!m?n:m(Uint8Array),v={"%AggregateError%":typeof AggregateError>"u"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?n:ArrayBuffer,"%ArrayIteratorPrototype%":d&&m?m([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":typeof Atomics>"u"?n:Atomics,"%BigInt%":typeof BigInt>"u"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?n:Float32Array,"%Float64Array%":typeof Float64Array>"u"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":h,"%Int8Array%":typeof Int8Array>"u"?n:Int8Array,"%Int16Array%":typeof Int16Array>"u"?n:Int16Array,"%Int32Array%":typeof Int32Array>"u"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d&&m?m(m([][Symbol.iterator]())):n,"%JSON%":typeof JSON=="object"?JSON:n,"%Map%":typeof Map>"u"?n:Map,"%MapIteratorPrototype%":typeof Map>"u"||!d||!m?n:m(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?n:Promise,"%Proxy%":typeof Proxy>"u"?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?n:Set,"%SetIteratorPrototype%":typeof Set>"u"||!d||!m?n:m(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d&&m?m(""[Symbol.iterator]()):n,"%Symbol%":d?Symbol:n,"%SyntaxError%":r,"%ThrowTypeError%":c,"%TypedArray%":y,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array>"u"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?n:WeakMap,"%WeakRef%":typeof WeakRef>"u"?n:WeakRef,"%WeakSet%":typeof WeakSet>"u"?n:WeakSet};if(m)try{null.error}catch(G){w=m(m(G)),v["%Error.prototype%"]=w}var w,_=function G(V){var F;if(V==="%AsyncFunction%")F=a("async function () {}");else if(V==="%GeneratorFunction%")F=a("function* () {}");else if(V==="%AsyncGeneratorFunction%")F=a("async function* () {}");else if(V==="%AsyncGenerator%"){var Y=G("%AsyncGeneratorFunction%");Y&&(F=Y.prototype)}else if(V==="%AsyncIteratorPrototype%"){var ne=G("%AsyncGenerator%");ne&&m&&(F=m(ne.prototype))}return v[V]=F,F},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},S=Pb(),A=zse(),E=S.call(Function.call,Array.prototype.concat),T=S.call(Function.apply,Array.prototype.splice),j=S.call(Function.call,String.prototype.replace),q=S.call(Function.call,String.prototype.slice),L=S.call(Function.call,RegExp.prototype.exec),M=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,H=/\\(\\)?/g,re=function(G){var V=q(G,0,1),F=q(G,-1);if(V==="%"&&F!=="%")throw new r("invalid intrinsic syntax, expected closing `%`");if(F==="%"&&V!=="%")throw new r("invalid intrinsic syntax, expected opening `%`");var Y=[];return j(G,M,function(ne,ce,P,ue){Y[Y.length]=P?j(ue,H,"$1"):ce||ne}),Y},Q=function(G,V){var F=G,Y;if(A(b,F)&&(Y=b[F],F="%"+Y[0]+"%"),A(v,F)){var ne=v[F];if(ne===h&&(ne=_(F)),typeof ne>"u"&&!V)throw new o("intrinsic "+G+" exists, but is not available. Please file an issue!");return{alias:Y,name:F,value:ne}}throw new r("intrinsic "+G+" does not exist!")};t.exports=function(G,V){if(typeof G!="string"||G.length===0)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof V!="boolean")throw new o('"allowMissing" argument must be a boolean');if(L(/^%?[^%]*%?$/,G)===null)throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var F=re(G),Y=F.length>0?F[0]:"",ne=Q("%"+Y+"%",V),ce=ne.name,P=ne.value,ue=!1,Oe=ne.alias;Oe&&(Y=Oe[0],T(F,E([0,1],Oe)));for(var D=1,De=!0;D<F.length;D+=1){var qe=F[D],Me=q(qe,0,1),Je=q(qe,-1);if((Me==='"'||Me==="'"||Me==="`"||Je==='"'||Je==="'"||Je==="`")&&Me!==Je)throw new r("property names with quotes must have matching quotes");if((qe==="constructor"||!De)&&(ue=!0),Y+="."+qe,ce="%"+Y+"%",A(v,ce))P=v[ce];else if(P!=null){if(!(qe in P)){if(!V)throw new o("base intrinsic for "+G+" exists, but the property is not available.");return}if(s&&D+1>=F.length){var rt=s(P,qe);De=!!rt,De&&"get"in rt&&!("originalValue"in rt.get)?P=rt.get:P=P[qe]}else De=A(P,qe),P=P[qe];De&&!ue&&(v[ce]=P)}}return P}}),Zse=Xn((e,t)=>{var n=Pb(),r=Rb(),i=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||n.call(o,i),s=r("%Object.getOwnPropertyDescriptor%",!0),l=r("%Object.defineProperty%",!0),c=r("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}t.exports=function(p){var m=a(n,o,arguments);if(s&&l){var h=s(m,"length");h.configurable&&l(m,"length",{value:1+c(0,p.length-(arguments.length-1))})}return m};var d=function(){return a(n,i,arguments)};l?l(t.exports,"apply",{value:d}):t.exports.apply=d}),Hse=Xn((e,t)=>{var n=Rb(),r=Zse(),i=r(n("String.prototype.indexOf"));t.exports=function(o,a){var s=n(o,!!a);return typeof s=="function"&&i(o,".prototype.")>-1?r(s):s}}),Wse=Xn(()=>{}),Vse=Xn((e,t)=>{var n=typeof Map=="function"&&Map.prototype,r=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&r&&typeof r.get=="function"?r.get:null,o=n&&Map.prototype.forEach,a=typeof Set=="function"&&Set.prototype,s=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=a&&s&&typeof s.get=="function"?s.get:null,c=a&&Set.prototype.forEach,d=typeof WeakMap=="function"&&WeakMap.prototype,p=d?WeakMap.prototype.has:null,m=typeof WeakSet=="function"&&WeakSet.prototype,h=m?WeakSet.prototype.has:null,y=typeof WeakRef=="function"&&WeakRef.prototype,v=y?WeakRef.prototype.deref:null,w=Boolean.prototype.valueOf,_=Object.prototype.toString,b=Function.prototype.toString,S=String.prototype.match,A=String.prototype.slice,E=String.prototype.replace,T=String.prototype.toUpperCase,j=String.prototype.toLowerCase,q=RegExp.prototype.test,L=Array.prototype.concat,M=Array.prototype.join,H=Array.prototype.slice,re=Math.floor,Q=typeof BigInt=="function"?BigInt.prototype.valueOf:null,G=Object.getOwnPropertySymbols,V=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,F=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Y=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===F||"symbol")?Symbol.toStringTag:null,ne=Object.prototype.propertyIsEnumerable,ce=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ee){return ee.__proto__}:null);function P(ee,ae){if(ee===1/0||ee===-1/0||ee!==ee||ee&&ee>-1e3&&ee<1e3||q.call(/e/,ae))return ae;var ft=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ee=="number"){var At=ee<0?-re(-ee):re(ee);if(At!==ee){var on=String(At),pt=A.call(ae,on.length+1);return E.call(on,ft,"$&_")+"."+E.call(E.call(pt,/([0-9]{3})/g,"$&_"),/_$/,"")}}return E.call(ae,ft,"$&_")}var ue=Wse(),Oe=ue.custom,D=$e(Oe)?Oe:null;t.exports=function ee(ae,ft,At,on){var pt=ft||{};if(K(pt,"quoteStyle")&&pt.quoteStyle!=="single"&&pt.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(K(pt,"maxStringLength")&&(typeof pt.maxStringLength=="number"?pt.maxStringLength<0&&pt.maxStringLength!==1/0:pt.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Mn=K(pt,"customInspect")?pt.customInspect:!0;if(typeof Mn!="boolean"&&Mn!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(K(pt,"indent")&&pt.indent!==null&&pt.indent!==" "&&!(parseInt(pt.indent,10)===pt.indent&&pt.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(K(pt,"numericSeparator")&&typeof pt.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var sr=pt.numericSeparator;if(typeof ae>"u")return"undefined";if(ae===null)return"null";if(typeof ae=="boolean")return ae?"true":"false";if(typeof ae=="string")return ye(ae,pt);if(typeof ae=="number"){if(ae===0)return 1/0/ae>0?"0":"-0";var N=String(ae);return sr?P(ae,N):N}if(typeof ae=="bigint"){var je=String(ae)+"n";return sr?P(ae,je):je}var He=typeof pt.depth>"u"?5:pt.depth;if(typeof At>"u"&&(At=0),At>=He&&He>0&&typeof ae=="object")return Me(ae)?"[Array]":"[Object]";var Xe=Yt(pt,At);if(typeof on>"u")on=[];else if(Se(on,ae)>=0)return"[Circular]";function Re(Tt,jn,On){if(jn&&(on=H.call(on),on.push(jn)),On){var Tn={depth:pt.depth};return K(pt,"quoteStyle")&&(Tn.quoteStyle=pt.quoteStyle),ee(Tt,Tn,At+1,on)}return ee(Tt,pt,At+1,on)}if(typeof ae=="function"&&!rt(ae)){var We=Te(ae),bt=Cn(ae,Re);return"[Function"+(We?": "+We:" (anonymous)")+"]"+(bt.length>0?" { "+M.call(bt,", ")+" }":"")}if($e(ae)){var Pt=F?E.call(String(ae),/^(Symbol\(.*\))_[^)]*$/,"$1"):V.call(ae);return typeof ae=="object"&&!F?Be(Pt):Pt}if(ie(ae)){for(var Jt="<"+j.call(String(ae.nodeName)),bn=ae.attributes||[],Rn=0;Rn<bn.length;Rn++)Jt+=" "+bn[Rn].name+"="+De(qe(bn[Rn].value),"double",pt);return Jt+=">",ae.childNodes&&ae.childNodes.length&&(Jt+="..."),Jt+="</"+j.call(String(ae.nodeName))+">",Jt}if(Me(ae)){if(ae.length===0)return"[]";var mr=Cn(ae,Re);return Xe&&!rn(mr)?"["+cn(mr,Xe)+"]":"[ "+M.call(mr,", ")+" ]"}if(Ke(ae)){var ta=Cn(ae,Re);return!("cause"in Error.prototype)&&"cause"in ae&&!ne.call(ae,"cause")?"{ ["+String(ae)+"] "+M.call(L.call("[cause]: "+Re(ae.cause),ta),", ")+" }":ta.length===0?"["+String(ae)+"]":"{ ["+String(ae)+"] "+M.call(ta,", ")+" }"}if(typeof ae=="object"&&Mn){if(D&&typeof ae[D]=="function"&&ue)return ue(ae,{depth:He-At});if(Mn!=="symbol"&&typeof ae.inspect=="function")return ae.inspect()}if(et(ae)){var xl=[];return o&&o.call(ae,function(Tt,jn){xl.push(Re(jn,ae,!0)+" => "+Re(Tt,ae))}),pn("Map",i.call(ae),xl,Xe)}if(It(ae)){var Z=[];return c&&c.call(ae,function(Tt){Z.push(Re(Tt,ae))}),pn("Set",l.call(ae),Z,Xe)}if(Ue(ae))return ct("WeakMap");if(mt(ae))return ct("WeakSet");if(ot(ae))return ct("WeakRef");if(Ae(ae))return Be(Re(Number(ae)));if(Ze(ae))return Be(Re(Q.call(ae)));if(Fe(ae))return Be(w.call(ae));if(Pe(ae))return Be(Re(String(ae)));if(!Je(ae)&&!rt(ae)){var Ce=Cn(ae,Re),ze=ce?ce(ae)===Object.prototype:ae instanceof Object||ae.constructor===Object,yt=ae instanceof Object?"":"null prototype",Kt=!ze&&Y&&Object(ae)===ae&&Y in ae?A.call(de(ae),8,-1):yt?"Object":"",un=ze||typeof ae.constructor!="function"?"":ae.constructor.name?ae.constructor.name+" ":"",Ft=un+(Kt||yt?"["+M.call(L.call([],Kt||[],yt||[]),": ")+"] ":"");return Ce.length===0?Ft+"{}":Xe?Ft+"{"+cn(Ce,Xe)+"}":Ft+"{ "+M.call(Ce,", ")+" }"}return String(ae)};function De(ee,ae,ft){var At=(ft.quoteStyle||ae)==="double"?'"':"'";return At+ee+At}function qe(ee){return E.call(String(ee),/"/g,""")}function Me(ee){return de(ee)==="[object Array]"&&(!Y||!(typeof ee=="object"&&Y in ee))}function Je(ee){return de(ee)==="[object Date]"&&(!Y||!(typeof ee=="object"&&Y in ee))}function rt(ee){return de(ee)==="[object RegExp]"&&(!Y||!(typeof ee=="object"&&Y in ee))}function Ke(ee){return de(ee)==="[object Error]"&&(!Y||!(typeof ee=="object"&&Y in ee))}function Pe(ee){return de(ee)==="[object String]"&&(!Y||!(typeof ee=="object"&&Y in ee))}function Ae(ee){return de(ee)==="[object Number]"&&(!Y||!(typeof ee=="object"&&Y in ee))}function Fe(ee){return de(ee)==="[object Boolean]"&&(!Y||!(typeof ee=="object"&&Y in ee))}function $e(ee){if(F)return ee&&typeof ee=="object"&&ee instanceof Symbol;if(typeof ee=="symbol")return!0;if(!ee||typeof ee!="object"||!V)return!1;try{return V.call(ee),!0}catch{}return!1}function Ze(ee){if(!ee||typeof ee!="object"||!Q)return!1;try{return Q.call(ee),!0}catch{}return!1}var lt=Object.prototype.hasOwnProperty||function(ee){return ee in this};function K(ee,ae){return lt.call(ee,ae)}function de(ee){return _.call(ee)}function Te(ee){if(ee.name)return ee.name;var ae=S.call(b.call(ee),/^function\s*([\w$]+)/);return ae?ae[1]:null}function Se(ee,ae){if(ee.indexOf)return ee.indexOf(ae);for(var ft=0,At=ee.length;ft<At;ft++)if(ee[ft]===ae)return ft;return-1}function et(ee){if(!i||!ee||typeof ee!="object")return!1;try{i.call(ee);try{l.call(ee)}catch{return!0}return ee instanceof Map}catch{}return!1}function Ue(ee){if(!p||!ee||typeof ee!="object")return!1;try{p.call(ee,p);try{h.call(ee,h)}catch{return!0}return ee instanceof WeakMap}catch{}return!1}function ot(ee){if(!v||!ee||typeof ee!="object")return!1;try{return v.call(ee),!0}catch{}return!1}function It(ee){if(!l||!ee||typeof ee!="object")return!1;try{l.call(ee);try{i.call(ee)}catch{return!0}return ee instanceof Set}catch{}return!1}function mt(ee){if(!h||!ee||typeof ee!="object")return!1;try{h.call(ee,h);try{p.call(ee,p)}catch{return!0}return ee instanceof WeakSet}catch{}return!1}function ie(ee){return!ee||typeof ee!="object"?!1:typeof HTMLElement<"u"&&ee instanceof HTMLElement?!0:typeof ee.nodeName=="string"&&typeof ee.getAttribute=="function"}function ye(ee,ae){if(ee.length>ae.maxStringLength){var ft=ee.length-ae.maxStringLength,At="... "+ft+" more character"+(ft>1?"s":"");return ye(A.call(ee,0,ae.maxStringLength),ae)+At}var on=E.call(E.call(ee,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,xe);return De(on,"single",ae)}function xe(ee){var ae=ee.charCodeAt(0),ft={8:"b",9:"t",10:"n",12:"f",13:"r"}[ae];return ft?"\\"+ft:"\\x"+(ae<16?"0":"")+T.call(ae.toString(16))}function Be(ee){return"Object("+ee+")"}function ct(ee){return ee+" { ? }"}function pn(ee,ae,ft,At){var on=At?cn(ft,At):M.call(ft,", ");return ee+" ("+ae+") {"+on+"}"}function rn(ee){for(var ae=0;ae<ee.length;ae++)if(Se(ee[ae],`
|
|
186
|
+
`+o):r.stack=o}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Fu(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Tb.assertOptions(r,{silentJSONParsing:ba.transitional(ba.boolean),forcedJSONParsing:ba.transitional(ba.boolean),clarifyTimeoutError:ba.transitional(ba.boolean)},!1),i!=null&&(_e.isFunction(i)?n.paramsSerializer={serialize:i}:Tb.assertOptions(i,{encode:ba.function,serialize:ba.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&_e.merge(o.common,o[n.method]);o&&_e.forEach(["delete","get","head","post","put","patch","common"],y=>{delete o[y]}),n.headers=Lo.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let d,p=0,m;if(!l){const y=[ik.bind(this),void 0];for(y.unshift.apply(y,s),y.push.apply(y,c),m=y.length,d=Promise.resolve(n);p<m;)d=d.then(y[p++],y[p++]);return d}m=s.length;let h=n;for(p=0;p<m;){const y=s[p++],v=s[p++];try{h=y(h)}catch(w){v.call(this,w);break}}try{d=ik.call(this,h)}catch(y){return Promise.reject(y)}for(p=0,m=c.length;p<m;)d=d.then(c[p++],c[p++]);return d}getUri(t){t=Fu(this.defaults,t);const n=ek(t.baseURL,t.url);return V$(n,t.params,t.paramsSerializer)}};_e.forEach(["delete","get","head","options"],function(t){yh.prototype[t]=function(n,r){return this.request(Fu(r||{},{method:t,url:n,data:(r||{}).data}))}}),_e.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,s){return this.request(Fu(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}yh.prototype[t]=n(),yh.prototype[t+"Form"]=n(!0)});const gh=yh,ise=class OF{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new Dc(o,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new OF(function(i){t=i}),cancel:t}}};function ose(e){return function(n){return e.apply(null,n)}}function ase(e){return _e.isObject(e)&&e.isAxiosError===!0}const $b={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries($b).forEach(([e,t])=>{$b[t]=e});const sse=$b;function uk(e){const t=new gh(e),n=I$(gh.prototype.request,t);return _e.extend(n,gh.prototype,t,{allOwnKeys:!0}),_e.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return uk(Fu(e,i))},n}const Wn=uk(xb);Wn.Axios=gh,Wn.CanceledError=Dc,Wn.CancelToken=ise,Wn.isCancel=Q$,Wn.VERSION=ak,Wn.toFormData=ph,Wn.AxiosError=en,Wn.Cancel=Wn.CanceledError,Wn.all=function(t){return Promise.all(t)},Wn.spread=ose,Wn.isAxiosError=ase,Wn.mergeConfig=Fu,Wn.AxiosHeaders=Lo,Wn.formToJSON=e=>J$(_e.isHTMLForm(e)?new FormData(e):e),Wn.getAdapter=rk.getAdapter,Wn.HttpStatusCode=sse,Wn.default=Wn;const qu=Wn,{Axios:use,AxiosError:lse,CanceledError:cse,isCancel:fse,CancelToken:dse,VERSION:pse,all:hse,Cancel:mse,isAxiosError:yse,spread:gse,toFormData:vse,AxiosHeaders:bse,HttpStatusCode:_se,formToJSON:wse,getAdapter:xse,mergeConfig:Sse}=qu,Ese=Object.freeze(Object.defineProperty({__proto__:null,Axios:use,AxiosError:lse,AxiosHeaders:bse,Cancel:mse,CancelToken:dse,CanceledError:cse,HttpStatusCode:_se,VERSION:pse,all:hse,default:qu,formToJSON:wse,getAdapter:xse,isAxiosError:yse,isCancel:fse,mergeConfig:Sse,spread:gse,toFormData:vse},Symbol.toStringTag,{value:"Module"}));var Uu={};Object.defineProperty(Uu,"__esModule",{value:!0});var Ase=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cse=typeof window<"u"&&typeof window.document<"u",Ose=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,Tse=(typeof self>"u"?"undefined":Ase(self))==="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope",$se=typeof window<"u"&&window.name==="nodejs"||typeof navigator<"u"&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),kse=typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u",lk=Uu.isBrowser=Cse;Uu.isWebWorker=Tse;var kb=Uu.isNode=Ose;Uu.isJsDom=$se,Uu.isDeno=kse;var Ise=Object.create,ck=Object.defineProperty,Pse=Object.getOwnPropertyDescriptor,Rse=Object.getOwnPropertyNames,Nse=Object.getPrototypeOf,Dse=Object.prototype.hasOwnProperty,Xn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Mse=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Rse(t))!Dse.call(e,i)&&i!==n&&ck(e,i,{get:()=>t[i],enumerable:!(r=Pse(t,i))||r.enumerable});return e},Ib=(e,t,n)=>(n=e!=null?Ise(Nse(e)):{},Mse(t||!e||!e.__esModule?ck(n,"default",{value:e,enumerable:!0}):n,e)),jse=Xn(()=>{}),Lse=Xn(()=>{}),Fse=Xn((e,t)=>{t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var n={},r=Symbol("test"),i=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var o=42;n[r]=o;for(r in n)return!1;if(typeof Object.keys=="function"&&Object.keys(n).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(n).length!==0)return!1;var a=Object.getOwnPropertySymbols(n);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(n,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(n,r);if(s.value!==o||s.enumerable!==!0)return!1}return!0}}),qse=Xn((e,t)=>{var n=typeof Symbol<"u"&&Symbol,r=Fse();t.exports=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:r()}}),Use=Xn((e,t)=>{var n={foo:{}},r=Object;t.exports=function(){return{__proto__:n}.foo===n.foo&&!({__proto__:null}instanceof r)}}),Bse=Xn((e,t)=>{var n="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,i=Object.prototype.toString,o="[object Function]";t.exports=function(a){var s=this;if(typeof s!="function"||i.call(s)!==o)throw new TypeError(n+s);for(var l=r.call(arguments,1),c,d=function(){if(this instanceof c){var v=s.apply(this,l.concat(r.call(arguments)));return Object(v)===v?v:this}else return s.apply(a,l.concat(r.call(arguments)))},p=Math.max(0,s.length-l.length),m=[],h=0;h<p;h++)m.push("$"+h);if(c=Function("binder","return function ("+m.join(",")+"){ return binder.apply(this,arguments); }")(d),s.prototype){var y=function(){};y.prototype=s.prototype,c.prototype=new y,y.prototype=null}return c}}),Pb=Xn((e,t)=>{var n=Bse();t.exports=Function.prototype.bind||n}),zse=Xn((e,t)=>{var n=Pb();t.exports=n.call(Function.call,Object.prototype.hasOwnProperty)}),Rb=Xn((e,t)=>{var n,r=SyntaxError,i=Function,o=TypeError,a=function(G){try{return i('"use strict"; return ('+G+").constructor;")()}catch{}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch{s=null}var l=function(){throw new o},c=s?function(){try{return arguments.callee,l}catch{try{return s(arguments,"callee").get}catch{return l}}}():l,d=qse()(),p=Use()(),m=Object.getPrototypeOf||(p?function(G){return G.__proto__}:null),h={},y=typeof Uint8Array>"u"||!m?n:m(Uint8Array),v={"%AggregateError%":typeof AggregateError>"u"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?n:ArrayBuffer,"%ArrayIteratorPrototype%":d&&m?m([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":typeof Atomics>"u"?n:Atomics,"%BigInt%":typeof BigInt>"u"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?n:Float32Array,"%Float64Array%":typeof Float64Array>"u"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":h,"%Int8Array%":typeof Int8Array>"u"?n:Int8Array,"%Int16Array%":typeof Int16Array>"u"?n:Int16Array,"%Int32Array%":typeof Int32Array>"u"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d&&m?m(m([][Symbol.iterator]())):n,"%JSON%":typeof JSON=="object"?JSON:n,"%Map%":typeof Map>"u"?n:Map,"%MapIteratorPrototype%":typeof Map>"u"||!d||!m?n:m(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?n:Promise,"%Proxy%":typeof Proxy>"u"?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?n:Set,"%SetIteratorPrototype%":typeof Set>"u"||!d||!m?n:m(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d&&m?m(""[Symbol.iterator]()):n,"%Symbol%":d?Symbol:n,"%SyntaxError%":r,"%ThrowTypeError%":c,"%TypedArray%":y,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array>"u"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?n:WeakMap,"%WeakRef%":typeof WeakRef>"u"?n:WeakRef,"%WeakSet%":typeof WeakSet>"u"?n:WeakSet};if(m)try{null.error}catch(G){w=m(m(G)),v["%Error.prototype%"]=w}var w,_=function G(V){var F;if(V==="%AsyncFunction%")F=a("async function () {}");else if(V==="%GeneratorFunction%")F=a("function* () {}");else if(V==="%AsyncGeneratorFunction%")F=a("async function* () {}");else if(V==="%AsyncGenerator%"){var Y=G("%AsyncGeneratorFunction%");Y&&(F=Y.prototype)}else if(V==="%AsyncIteratorPrototype%"){var ne=G("%AsyncGenerator%");ne&&m&&(F=m(ne.prototype))}return v[V]=F,F},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},S=Pb(),A=zse(),E=S.call(Function.call,Array.prototype.concat),T=S.call(Function.apply,Array.prototype.splice),j=S.call(Function.call,String.prototype.replace),q=S.call(Function.call,String.prototype.slice),L=S.call(Function.call,RegExp.prototype.exec),M=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,H=/\\(\\)?/g,re=function(G){var V=q(G,0,1),F=q(G,-1);if(V==="%"&&F!=="%")throw new r("invalid intrinsic syntax, expected closing `%`");if(F==="%"&&V!=="%")throw new r("invalid intrinsic syntax, expected opening `%`");var Y=[];return j(G,M,function(ne,ce,P,ue){Y[Y.length]=P?j(ue,H,"$1"):ce||ne}),Y},Q=function(G,V){var F=G,Y;if(A(b,F)&&(Y=b[F],F="%"+Y[0]+"%"),A(v,F)){var ne=v[F];if(ne===h&&(ne=_(F)),typeof ne>"u"&&!V)throw new o("intrinsic "+G+" exists, but is not available. Please file an issue!");return{alias:Y,name:F,value:ne}}throw new r("intrinsic "+G+" does not exist!")};t.exports=function(G,V){if(typeof G!="string"||G.length===0)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof V!="boolean")throw new o('"allowMissing" argument must be a boolean');if(L(/^%?[^%]*%?$/,G)===null)throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var F=re(G),Y=F.length>0?F[0]:"",ne=Q("%"+Y+"%",V),ce=ne.name,P=ne.value,ue=!1,Oe=ne.alias;Oe&&(Y=Oe[0],T(F,E([0,1],Oe)));for(var D=1,De=!0;D<F.length;D+=1){var qe=F[D],Me=q(qe,0,1),Je=q(qe,-1);if((Me==='"'||Me==="'"||Me==="`"||Je==='"'||Je==="'"||Je==="`")&&Me!==Je)throw new r("property names with quotes must have matching quotes");if((qe==="constructor"||!De)&&(ue=!0),Y+="."+qe,ce="%"+Y+"%",A(v,ce))P=v[ce];else if(P!=null){if(!(qe in P)){if(!V)throw new o("base intrinsic for "+G+" exists, but the property is not available.");return}if(s&&D+1>=F.length){var rt=s(P,qe);De=!!rt,De&&"get"in rt&&!("originalValue"in rt.get)?P=rt.get:P=P[qe]}else De=A(P,qe),P=P[qe];De&&!ue&&(v[ce]=P)}}return P}}),Zse=Xn((e,t)=>{var n=Pb(),r=Rb(),i=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||n.call(o,i),s=r("%Object.getOwnPropertyDescriptor%",!0),l=r("%Object.defineProperty%",!0),c=r("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}t.exports=function(p){var m=a(n,o,arguments);if(s&&l){var h=s(m,"length");h.configurable&&l(m,"length",{value:1+c(0,p.length-(arguments.length-1))})}return m};var d=function(){return a(n,i,arguments)};l?l(t.exports,"apply",{value:d}):t.exports.apply=d}),Hse=Xn((e,t)=>{var n=Rb(),r=Zse(),i=r(n("String.prototype.indexOf"));t.exports=function(o,a){var s=n(o,!!a);return typeof s=="function"&&i(o,".prototype.")>-1?r(s):s}}),Wse=Xn(()=>{}),Vse=Xn((e,t)=>{var n=typeof Map=="function"&&Map.prototype,r=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&r&&typeof r.get=="function"?r.get:null,o=n&&Map.prototype.forEach,a=typeof Set=="function"&&Set.prototype,s=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=a&&s&&typeof s.get=="function"?s.get:null,c=a&&Set.prototype.forEach,d=typeof WeakMap=="function"&&WeakMap.prototype,p=d?WeakMap.prototype.has:null,m=typeof WeakSet=="function"&&WeakSet.prototype,h=m?WeakSet.prototype.has:null,y=typeof WeakRef=="function"&&WeakRef.prototype,v=y?WeakRef.prototype.deref:null,w=Boolean.prototype.valueOf,_=Object.prototype.toString,b=Function.prototype.toString,S=String.prototype.match,A=String.prototype.slice,E=String.prototype.replace,T=String.prototype.toUpperCase,j=String.prototype.toLowerCase,q=RegExp.prototype.test,L=Array.prototype.concat,M=Array.prototype.join,H=Array.prototype.slice,re=Math.floor,Q=typeof BigInt=="function"?BigInt.prototype.valueOf:null,G=Object.getOwnPropertySymbols,V=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,F=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Y=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===F||"symbol")?Symbol.toStringTag:null,ne=Object.prototype.propertyIsEnumerable,ce=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ee){return ee.__proto__}:null);function P(ee,ae){if(ee===1/0||ee===-1/0||ee!==ee||ee&&ee>-1e3&&ee<1e3||q.call(/e/,ae))return ae;var ft=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ee=="number"){var At=ee<0?-re(-ee):re(ee);if(At!==ee){var on=String(At),pt=A.call(ae,on.length+1);return E.call(on,ft,"$&_")+"."+E.call(E.call(pt,/([0-9]{3})/g,"$&_"),/_$/,"")}}return E.call(ae,ft,"$&_")}var ue=Wse(),Oe=ue.custom,D=$e(Oe)?Oe:null;t.exports=function ee(ae,ft,At,on){var pt=ft||{};if(K(pt,"quoteStyle")&&pt.quoteStyle!=="single"&&pt.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(K(pt,"maxStringLength")&&(typeof pt.maxStringLength=="number"?pt.maxStringLength<0&&pt.maxStringLength!==1/0:pt.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Mn=K(pt,"customInspect")?pt.customInspect:!0;if(typeof Mn!="boolean"&&Mn!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(K(pt,"indent")&&pt.indent!==null&&pt.indent!==" "&&!(parseInt(pt.indent,10)===pt.indent&&pt.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(K(pt,"numericSeparator")&&typeof pt.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var sr=pt.numericSeparator;if(typeof ae>"u")return"undefined";if(ae===null)return"null";if(typeof ae=="boolean")return ae?"true":"false";if(typeof ae=="string")return ye(ae,pt);if(typeof ae=="number"){if(ae===0)return 1/0/ae>0?"0":"-0";var N=String(ae);return sr?P(ae,N):N}if(typeof ae=="bigint"){var je=String(ae)+"n";return sr?P(ae,je):je}var He=typeof pt.depth>"u"?5:pt.depth;if(typeof At>"u"&&(At=0),At>=He&&He>0&&typeof ae=="object")return Me(ae)?"[Array]":"[Object]";var Xe=Yt(pt,At);if(typeof on>"u")on=[];else if(Se(on,ae)>=0)return"[Circular]";function Re(Tt,jn,On){if(jn&&(on=H.call(on),on.push(jn)),On){var Tn={depth:pt.depth};return K(pt,"quoteStyle")&&(Tn.quoteStyle=pt.quoteStyle),ee(Tt,Tn,At+1,on)}return ee(Tt,pt,At+1,on)}if(typeof ae=="function"&&!rt(ae)){var We=Te(ae),_t=Cn(ae,Re);return"[Function"+(We?": "+We:" (anonymous)")+"]"+(_t.length>0?" { "+M.call(_t,", ")+" }":"")}if($e(ae)){var Pt=F?E.call(String(ae),/^(Symbol\(.*\))_[^)]*$/,"$1"):V.call(ae);return typeof ae=="object"&&!F?Be(Pt):Pt}if(ie(ae)){for(var Jt="<"+j.call(String(ae.nodeName)),bn=ae.attributes||[],Rn=0;Rn<bn.length;Rn++)Jt+=" "+bn[Rn].name+"="+De(qe(bn[Rn].value),"double",pt);return Jt+=">",ae.childNodes&&ae.childNodes.length&&(Jt+="..."),Jt+="</"+j.call(String(ae.nodeName))+">",Jt}if(Me(ae)){if(ae.length===0)return"[]";var mr=Cn(ae,Re);return Xe&&!rn(mr)?"["+cn(mr,Xe)+"]":"[ "+M.call(mr,", ")+" ]"}if(Ke(ae)){var ta=Cn(ae,Re);return!("cause"in Error.prototype)&&"cause"in ae&&!ne.call(ae,"cause")?"{ ["+String(ae)+"] "+M.call(L.call("[cause]: "+Re(ae.cause),ta),", ")+" }":ta.length===0?"["+String(ae)+"]":"{ ["+String(ae)+"] "+M.call(ta,", ")+" }"}if(typeof ae=="object"&&Mn){if(D&&typeof ae[D]=="function"&&ue)return ue(ae,{depth:He-At});if(Mn!=="symbol"&&typeof ae.inspect=="function")return ae.inspect()}if(et(ae)){var xl=[];return o&&o.call(ae,function(Tt,jn){xl.push(Re(jn,ae,!0)+" => "+Re(Tt,ae))}),pn("Map",i.call(ae),xl,Xe)}if(It(ae)){var Z=[];return c&&c.call(ae,function(Tt){Z.push(Re(Tt,ae))}),pn("Set",l.call(ae),Z,Xe)}if(Ue(ae))return ct("WeakMap");if(mt(ae))return ct("WeakSet");if(ot(ae))return ct("WeakRef");if(Ae(ae))return Be(Re(Number(ae)));if(Ze(ae))return Be(Re(Q.call(ae)));if(Fe(ae))return Be(w.call(ae));if(Pe(ae))return Be(Re(String(ae)));if(!Je(ae)&&!rt(ae)){var Ce=Cn(ae,Re),ze=ce?ce(ae)===Object.prototype:ae instanceof Object||ae.constructor===Object,yt=ae instanceof Object?"":"null prototype",Kt=!ze&&Y&&Object(ae)===ae&&Y in ae?A.call(de(ae),8,-1):yt?"Object":"",un=ze||typeof ae.constructor!="function"?"":ae.constructor.name?ae.constructor.name+" ":"",Ft=un+(Kt||yt?"["+M.call(L.call([],Kt||[],yt||[]),": ")+"] ":"");return Ce.length===0?Ft+"{}":Xe?Ft+"{"+cn(Ce,Xe)+"}":Ft+"{ "+M.call(Ce,", ")+" }"}return String(ae)};function De(ee,ae,ft){var At=(ft.quoteStyle||ae)==="double"?'"':"'";return At+ee+At}function qe(ee){return E.call(String(ee),/"/g,""")}function Me(ee){return de(ee)==="[object Array]"&&(!Y||!(typeof ee=="object"&&Y in ee))}function Je(ee){return de(ee)==="[object Date]"&&(!Y||!(typeof ee=="object"&&Y in ee))}function rt(ee){return de(ee)==="[object RegExp]"&&(!Y||!(typeof ee=="object"&&Y in ee))}function Ke(ee){return de(ee)==="[object Error]"&&(!Y||!(typeof ee=="object"&&Y in ee))}function Pe(ee){return de(ee)==="[object String]"&&(!Y||!(typeof ee=="object"&&Y in ee))}function Ae(ee){return de(ee)==="[object Number]"&&(!Y||!(typeof ee=="object"&&Y in ee))}function Fe(ee){return de(ee)==="[object Boolean]"&&(!Y||!(typeof ee=="object"&&Y in ee))}function $e(ee){if(F)return ee&&typeof ee=="object"&&ee instanceof Symbol;if(typeof ee=="symbol")return!0;if(!ee||typeof ee!="object"||!V)return!1;try{return V.call(ee),!0}catch{}return!1}function Ze(ee){if(!ee||typeof ee!="object"||!Q)return!1;try{return Q.call(ee),!0}catch{}return!1}var lt=Object.prototype.hasOwnProperty||function(ee){return ee in this};function K(ee,ae){return lt.call(ee,ae)}function de(ee){return _.call(ee)}function Te(ee){if(ee.name)return ee.name;var ae=S.call(b.call(ee),/^function\s*([\w$]+)/);return ae?ae[1]:null}function Se(ee,ae){if(ee.indexOf)return ee.indexOf(ae);for(var ft=0,At=ee.length;ft<At;ft++)if(ee[ft]===ae)return ft;return-1}function et(ee){if(!i||!ee||typeof ee!="object")return!1;try{i.call(ee);try{l.call(ee)}catch{return!0}return ee instanceof Map}catch{}return!1}function Ue(ee){if(!p||!ee||typeof ee!="object")return!1;try{p.call(ee,p);try{h.call(ee,h)}catch{return!0}return ee instanceof WeakMap}catch{}return!1}function ot(ee){if(!v||!ee||typeof ee!="object")return!1;try{return v.call(ee),!0}catch{}return!1}function It(ee){if(!l||!ee||typeof ee!="object")return!1;try{l.call(ee);try{i.call(ee)}catch{return!0}return ee instanceof Set}catch{}return!1}function mt(ee){if(!h||!ee||typeof ee!="object")return!1;try{h.call(ee,h);try{p.call(ee,p)}catch{return!0}return ee instanceof WeakSet}catch{}return!1}function ie(ee){return!ee||typeof ee!="object"?!1:typeof HTMLElement<"u"&&ee instanceof HTMLElement?!0:typeof ee.nodeName=="string"&&typeof ee.getAttribute=="function"}function ye(ee,ae){if(ee.length>ae.maxStringLength){var ft=ee.length-ae.maxStringLength,At="... "+ft+" more character"+(ft>1?"s":"");return ye(A.call(ee,0,ae.maxStringLength),ae)+At}var on=E.call(E.call(ee,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,xe);return De(on,"single",ae)}function xe(ee){var ae=ee.charCodeAt(0),ft={8:"b",9:"t",10:"n",12:"f",13:"r"}[ae];return ft?"\\"+ft:"\\x"+(ae<16?"0":"")+T.call(ae.toString(16))}function Be(ee){return"Object("+ee+")"}function ct(ee){return ee+" { ? }"}function pn(ee,ae,ft,At){var on=At?cn(ft,At):M.call(ft,", ");return ee+" ("+ae+") {"+on+"}"}function rn(ee){for(var ae=0;ae<ee.length;ae++)if(Se(ee[ae],`
|
|
187
187
|
`)>=0)return!1;return!0}function Yt(ee,ae){var ft;if(ee.indent===" ")ft=" ";else if(typeof ee.indent=="number"&&ee.indent>0)ft=M.call(Array(ee.indent+1)," ");else return null;return{base:ft,prev:M.call(Array(ae+1),ft)}}function cn(ee,ae){if(ee.length===0)return"";var ft=`
|
|
188
188
|
`+ae.prev+ae.base;return ft+M.call(ee,","+ft)+`
|
|
189
|
-
`+ae.prev}function Cn(ee,ae){var ft=Me(ee),At=[];if(ft){At.length=ee.length;for(var on=0;on<ee.length;on++)At[on]=K(ee,on)?ae(ee[on],ee):""}var pt=typeof G=="function"?G(ee):[],Mn;if(F){Mn={};for(var sr=0;sr<pt.length;sr++)Mn["$"+pt[sr]]=pt[sr]}for(var N in ee)K(ee,N)&&(ft&&String(Number(N))===N&&N<ee.length||F&&Mn["$"+N]instanceof Symbol||(q.call(/[^\w$]/,N)?At.push(ae(N,ee)+": "+ae(ee[N],ee)):At.push(N+": "+ae(ee[N],ee))));if(typeof G=="function")for(var je=0;je<pt.length;je++)ne.call(ee,pt[je])&&At.push("["+ae(pt[je])+"]: "+ae(ee[pt[je]],ee));return At}}),Kse=Xn((e,t)=>{var n=Rb(),r=Hse(),i=Vse(),o=n("%TypeError%"),a=n("%WeakMap%",!0),s=n("%Map%",!0),l=r("WeakMap.prototype.get",!0),c=r("WeakMap.prototype.set",!0),d=r("WeakMap.prototype.has",!0),p=r("Map.prototype.get",!0),m=r("Map.prototype.set",!0),h=r("Map.prototype.has",!0),y=function(b,S){for(var A=b,E;(E=A.next)!==null;A=E)if(E.key===S)return A.next=E.next,E.next=b.next,b.next=E,E},v=function(b,S){var A=y(b,S);return A&&A.value},w=function(b,S,A){var E=y(b,S);E?E.value=A:b.next={key:S,next:b.next,value:A}},_=function(b,S){return!!y(b,S)};t.exports=function(){var b,S,A,E={assert:function(T){if(!E.has(T))throw new o("Side channel does not contain "+i(T))},get:function(T){if(a&&T&&(typeof T=="object"||typeof T=="function")){if(b)return l(b,T)}else if(s){if(S)return p(S,T)}else if(A)return v(A,T)},has:function(T){if(a&&T&&(typeof T=="object"||typeof T=="function")){if(b)return d(b,T)}else if(s){if(S)return h(S,T)}else if(A)return _(A,T);return!1},set:function(T,j){a&&T&&(typeof T=="object"||typeof T=="function")?(b||(b=new a),c(b,T,j)):s?(S||(S=new s),m(S,T,j)):(A||(A={key:{},next:null}),w(A,T,j))}};return E}}),Nb=Xn((e,t)=>{var n=String.prototype.replace,r=/%20/g,i={RFC1738:"RFC1738",RFC3986:"RFC3986"};t.exports={default:i.RFC3986,formatters:{RFC1738:function(o){return n.call(o,r,"+")},RFC3986:function(o){return String(o)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}}),fk=Xn((e,t)=>{var n=Nb(),r=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var _=[],b=0;b<256;++b)_.push("%"+((b<16?"0":"")+b.toString(16)).toUpperCase());return _}(),a=function(_){for(;_.length>1;){var b=_.pop(),S=b.obj[b.prop];if(i(S)){for(var A=[],E=0;E<S.length;++E)typeof S[E]<"u"&&A.push(S[E]);b.obj[b.prop]=A}}},s=function(_,b){for(var S=b&&b.plainObjects?Object.create(null):{},A=0;A<_.length;++A)typeof _[A]<"u"&&(S[A]=_[A]);return S},l=function _(b,S,A){if(!S)return b;if(typeof S!="object"){if(i(b))b.push(S);else if(b&&typeof b=="object")(A&&(A.plainObjects||A.allowPrototypes)||!r.call(Object.prototype,S))&&(b[S]=!0);else return[b,S];return b}if(!b||typeof b!="object")return[b].concat(S);var E=b;return i(b)&&!i(S)&&(E=s(b,A)),i(b)&&i(S)?(S.forEach(function(T,j){if(r.call(b,j)){var q=b[j];q&&typeof q=="object"&&T&&typeof T=="object"?b[j]=_(q,T,A):b.push(T)}else b[j]=T}),b):Object.keys(S).reduce(function(T,j){var q=S[j];return r.call(T,j)?T[j]=_(T[j],q,A):T[j]=q,T},E)},c=function(_,b){return Object.keys(b).reduce(function(S,A){return S[A]=b[A],S},_)},d=function(_,b,S){var A=_.replace(/\+/g," ");if(S==="iso-8859-1")return A.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(A)}catch{return A}},p=function(_,b,S,A,E){if(_.length===0)return _;var T=_;if(typeof _=="symbol"?T=Symbol.prototype.toString.call(_):typeof _!="string"&&(T=String(_)),S==="iso-8859-1")return escape(T).replace(/%u[0-9a-f]{4}/gi,function(M){return"%26%23"+parseInt(M.slice(2),16)+"%3B"});for(var j="",q=0;q<T.length;++q){var L=T.charCodeAt(q);if(L===45||L===46||L===95||L===126||L>=48&&L<=57||L>=65&&L<=90||L>=97&&L<=122||E===n.RFC1738&&(L===40||L===41)){j+=T.charAt(q);continue}if(L<128){j=j+o[L];continue}if(L<2048){j=j+(o[192|L>>6]+o[128|L&63]);continue}if(L<55296||L>=57344){j=j+(o[224|L>>12]+o[128|L>>6&63]+o[128|L&63]);continue}q+=1,L=65536+((L&1023)<<10|T.charCodeAt(q)&1023),j+=o[240|L>>18]+o[128|L>>12&63]+o[128|L>>6&63]+o[128|L&63]}return j},m=function(_){for(var b=[{obj:{o:_},prop:"o"}],S=[],A=0;A<b.length;++A)for(var E=b[A],T=E.obj[E.prop],j=Object.keys(T),q=0;q<j.length;++q){var L=j[q],M=T[L];typeof M=="object"&&M!==null&&S.indexOf(M)===-1&&(b.push({obj:T,prop:L}),S.push(M))}return a(b),_},h=function(_){return Object.prototype.toString.call(_)==="[object RegExp]"},y=function(_){return!_||typeof _!="object"?!1:!!(_.constructor&&_.constructor.isBuffer&&_.constructor.isBuffer(_))},v=function(_,b){return[].concat(_,b)},w=function(_,b){if(i(_)){for(var S=[],A=0;A<_.length;A+=1)S.push(b(_[A]));return S}return b(_)};t.exports={arrayToObject:s,assign:c,combine:v,compact:m,decode:d,encode:p,isBuffer:y,isRegExp:h,maybeMap:w,merge:l}}),Gse=Xn((e,t)=>{var n=Kse(),r=fk(),i=Nb(),o=Object.prototype.hasOwnProperty,a={brackets:function(b){return b+"[]"},comma:"comma",indices:function(b,S){return b+"["+S+"]"},repeat:function(b){return b}},s=Array.isArray,l=String.prototype.split,c=Array.prototype.push,d=function(b,S){c.apply(b,s(S)?S:[S])},p=Date.prototype.toISOString,m=i.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:m,formatter:i.formatters[m],indices:!1,serializeDate:function(b){return p.call(b)},skipNulls:!1,strictNullHandling:!1},y=function(b){return typeof b=="string"||typeof b=="number"||typeof b=="boolean"||typeof b=="symbol"||typeof b=="bigint"},v={},w=function b(S,A,E,T,j,q,L,M,H,re,Q,G,V,F,Y,ne){for(var ce=S,P=ne,ue=0,Oe=!1;(P=P.get(v))!==void 0&&!Oe;){var D=P.get(S);if(ue+=1,typeof D<"u"){if(D===ue)throw new RangeError("Cyclic object value");Oe=!0}typeof P.get(v)>"u"&&(ue=0)}if(typeof M=="function"?ce=M(A,ce):ce instanceof Date?ce=Q(ce):E==="comma"&&s(ce)&&(ce=r.maybeMap(ce,function(de){return de instanceof Date?Q(de):de})),ce===null){if(j)return L&&!F?L(A,h.encoder,Y,"key",G):A;ce=""}if(y(ce)||r.isBuffer(ce)){if(L){var De=F?A:L(A,h.encoder,Y,"key",G);if(E==="comma"&&F){for(var qe=l.call(String(ce),","),Me="",Je=0;Je<qe.length;++Je)Me+=(Je===0?"":",")+V(L(qe[Je],h.encoder,Y,"value",G));return[V(De)+(T&&s(ce)&&qe.length===1?"[]":"")+"="+Me]}return[V(De)+"="+V(L(ce,h.encoder,Y,"value",G))]}return[V(A)+"="+V(String(ce))]}var rt=[];if(typeof ce>"u")return rt;var Ke;if(E==="comma"&&s(ce))Ke=[{value:ce.length>0?ce.join(",")||null:void 0}];else if(s(M))Ke=M;else{var Pe=Object.keys(ce);Ke=H?Pe.sort(H):Pe}for(var Ae=T&&s(ce)&&ce.length===1?A+"[]":A,Fe=0;Fe<Ke.length;++Fe){var $e=Ke[Fe],Ze=typeof $e=="object"&&typeof $e.value<"u"?$e.value:ce[$e];if(!(q&&Ze===null)){var lt=s(ce)?typeof E=="function"?E(Ae,$e):Ae:Ae+(re?"."+$e:"["+$e+"]");ne.set(S,ue);var K=n();K.set(v,ne),d(rt,b(Ze,lt,E,T,j,q,L,M,H,re,Q,G,V,F,Y,K))}}return rt},_=function(b){if(!b)return h;if(b.encoder!==null&&typeof b.encoder<"u"&&typeof b.encoder!="function")throw new TypeError("Encoder has to be a function.");var S=b.charset||h.charset;if(typeof b.charset<"u"&&b.charset!=="utf-8"&&b.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var A=i.default;if(typeof b.format<"u"){if(!o.call(i.formatters,b.format))throw new TypeError("Unknown format option provided.");A=b.format}var E=i.formatters[A],T=h.filter;return(typeof b.filter=="function"||s(b.filter))&&(T=b.filter),{addQueryPrefix:typeof b.addQueryPrefix=="boolean"?b.addQueryPrefix:h.addQueryPrefix,allowDots:typeof b.allowDots>"u"?h.allowDots:!!b.allowDots,charset:S,charsetSentinel:typeof b.charsetSentinel=="boolean"?b.charsetSentinel:h.charsetSentinel,delimiter:typeof b.delimiter>"u"?h.delimiter:b.delimiter,encode:typeof b.encode=="boolean"?b.encode:h.encode,encoder:typeof b.encoder=="function"?b.encoder:h.encoder,encodeValuesOnly:typeof b.encodeValuesOnly=="boolean"?b.encodeValuesOnly:h.encodeValuesOnly,filter:T,format:A,formatter:E,serializeDate:typeof b.serializeDate=="function"?b.serializeDate:h.serializeDate,skipNulls:typeof b.skipNulls=="boolean"?b.skipNulls:h.skipNulls,sort:typeof b.sort=="function"?b.sort:null,strictNullHandling:typeof b.strictNullHandling=="boolean"?b.strictNullHandling:h.strictNullHandling}};t.exports=function(b,S){var A=b,E=_(S),T,j;typeof E.filter=="function"?(j=E.filter,A=j("",A)):s(E.filter)&&(j=E.filter,T=j);var q=[];if(typeof A!="object"||A===null)return"";var L;S&&S.arrayFormat in a?L=S.arrayFormat:S&&"indices"in S?L=S.indices?"indices":"repeat":L="indices";var M=a[L];if(S&&"commaRoundTrip"in S&&typeof S.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var H=M==="comma"&&S&&S.commaRoundTrip;T||(T=Object.keys(A)),E.sort&&T.sort(E.sort);for(var re=n(),Q=0;Q<T.length;++Q){var G=T[Q];E.skipNulls&&A[G]===null||d(q,w(A[G],G,M,H,E.strictNullHandling,E.skipNulls,E.encode?E.encoder:null,E.filter,E.sort,E.allowDots,E.serializeDate,E.format,E.formatter,E.encodeValuesOnly,E.charset,re))}var V=q.join(E.delimiter),F=E.addQueryPrefix===!0?"?":"";return E.charsetSentinel&&(E.charset==="iso-8859-1"?F+="utf8=%26%2310003%3B&":F+="utf8=%E2%9C%93&"),V.length>0?F+V:""}}),Yse=Xn((e,t)=>{var n=fk(),r=Object.prototype.hasOwnProperty,i=Array.isArray,o={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(y){return y.replace(/&#(\d+);/g,function(v,w){return String.fromCharCode(parseInt(w,10))})},s=function(y,v){return y&&typeof y=="string"&&v.comma&&y.indexOf(",")>-1?y.split(","):y},l="utf8=%26%2310003%3B",c="utf8=%E2%9C%93",d=function(y,v){var w={},_=v.ignoreQueryPrefix?y.replace(/^\?/,""):y,b=v.parameterLimit===1/0?void 0:v.parameterLimit,S=_.split(v.delimiter,b),A=-1,E,T=v.charset;if(v.charsetSentinel)for(E=0;E<S.length;++E)S[E].indexOf("utf8=")===0&&(S[E]===c?T="utf-8":S[E]===l&&(T="iso-8859-1"),A=E,E=S.length);for(E=0;E<S.length;++E)if(E!==A){var j=S[E],q=j.indexOf("]="),L=q===-1?j.indexOf("="):q+1,M,H;L===-1?(M=v.decoder(j,o.decoder,T,"key"),H=v.strictNullHandling?null:""):(M=v.decoder(j.slice(0,L),o.decoder,T,"key"),H=n.maybeMap(s(j.slice(L+1),v),function(re){return v.decoder(re,o.decoder,T,"value")})),H&&v.interpretNumericEntities&&T==="iso-8859-1"&&(H=a(H)),j.indexOf("[]=")>-1&&(H=i(H)?[H]:H),r.call(w,M)?w[M]=n.combine(w[M],H):w[M]=H}return w},p=function(y,v,w,_){for(var b=_?v:s(v,w),S=y.length-1;S>=0;--S){var A,E=y[S];if(E==="[]"&&w.parseArrays)A=[].concat(b);else{A=w.plainObjects?Object.create(null):{};var T=E.charAt(0)==="["&&E.charAt(E.length-1)==="]"?E.slice(1,-1):E,j=parseInt(T,10);!w.parseArrays&&T===""?A={0:b}:!isNaN(j)&&E!==T&&String(j)===T&&j>=0&&w.parseArrays&&j<=w.arrayLimit?(A=[],A[j]=b):T!=="__proto__"&&(A[T]=b)}b=A}return b},m=function(y,v,w,_){if(y){var b=w.allowDots?y.replace(/\.([^.[]+)/g,"[$1]"):y,S=/(\[[^[\]]*])/,A=/(\[[^[\]]*])/g,E=w.depth>0&&S.exec(b),T=E?b.slice(0,E.index):b,j=[];if(T){if(!w.plainObjects&&r.call(Object.prototype,T)&&!w.allowPrototypes)return;j.push(T)}for(var q=0;w.depth>0&&(E=A.exec(b))!==null&&q<w.depth;){if(q+=1,!w.plainObjects&&r.call(Object.prototype,E[1].slice(1,-1))&&!w.allowPrototypes)return;j.push(E[1])}return E&&j.push("["+b.slice(E.index)+"]"),p(j,v,w,_)}},h=function(y){if(!y)return o;if(y.decoder!==null&&y.decoder!==void 0&&typeof y.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof y.charset<"u"&&y.charset!=="utf-8"&&y.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var v=typeof y.charset>"u"?o.charset:y.charset;return{allowDots:typeof y.allowDots>"u"?o.allowDots:!!y.allowDots,allowPrototypes:typeof y.allowPrototypes=="boolean"?y.allowPrototypes:o.allowPrototypes,allowSparse:typeof y.allowSparse=="boolean"?y.allowSparse:o.allowSparse,arrayLimit:typeof y.arrayLimit=="number"?y.arrayLimit:o.arrayLimit,charset:v,charsetSentinel:typeof y.charsetSentinel=="boolean"?y.charsetSentinel:o.charsetSentinel,comma:typeof y.comma=="boolean"?y.comma:o.comma,decoder:typeof y.decoder=="function"?y.decoder:o.decoder,delimiter:typeof y.delimiter=="string"||n.isRegExp(y.delimiter)?y.delimiter:o.delimiter,depth:typeof y.depth=="number"||y.depth===!1?+y.depth:o.depth,ignoreQueryPrefix:y.ignoreQueryPrefix===!0,interpretNumericEntities:typeof y.interpretNumericEntities=="boolean"?y.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:typeof y.parameterLimit=="number"?y.parameterLimit:o.parameterLimit,parseArrays:y.parseArrays!==!1,plainObjects:typeof y.plainObjects=="boolean"?y.plainObjects:o.plainObjects,strictNullHandling:typeof y.strictNullHandling=="boolean"?y.strictNullHandling:o.strictNullHandling}};t.exports=function(y,v){var w=h(v);if(y===""||y===null||typeof y>"u")return w.plainObjects?Object.create(null):{};for(var _=typeof y=="string"?d(y,w):y,b=w.plainObjects?Object.create(null):{},S=Object.keys(_),A=0;A<S.length;++A){var E=S[A],T=m(E,_[E],w,typeof y=="string");b=n.merge(b,T,w)}return w.allowSparse===!0?b:n.compact(b)}}),Jse=Xn((e,t)=>{var n=Gse(),r=Yse(),i=Nb();t.exports={formats:i,parse:r,stringify:n}}),Xse={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Db=typeof window<"u"&&typeof window.document<"u"?window.crypto:mb;Db.getRandomValues||(Db=Xse);var xn=class extends Error{constructor(t,n,r,i,o,a){super(i);R(this,"isApiError",!0);this.code=t,this.description=n,this.type=r,this.message=i,this.error=o,this.id=a,this.id||(this.id=xn.generateId())}format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message}}static generateId(){let t=this.getPrefix(),n=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],r=4,i=Array.from(Db.getRandomValues(new Uint8Array(r))).map(o=>o.toString(16).padStart(2,"0")).join("").toUpperCase();return`${t}_${n}x${i}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},Qse=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,dk=e=>e instanceof xn||Qse(e)&&e.isApiError===!0,Bu=class extends xn{constructor(t,n,r){super(500,"An unknown error occurred","Unknown",t,n,r)}},pk=class extends xn{constructor(e,t,n){super(500,"An internal error occurred","Internal",e,t,n)}},hk=class extends xn{constructor(e,t,n){super(401,"The request requires to be authenticated.","Unauthorized",e,t,n)}},mk=class extends xn{constructor(e,t,n){super(403,"The requested action can't be peform by this resource.","Forbidden",e,t,n)}},yk=class extends xn{constructor(e,t,n){super(413,"The request payload is too large.","PayloadTooLarge",e,t,n)}},gk=class extends xn{constructor(e,t,n){super(400,"The request payload is invalid.","InvalidPayload",e,t,n)}},vk=class extends xn{constructor(e,t,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",e,t,n)}},bk=class extends xn{constructor(e,t,n){super(405,"The requested method does not exist.","MethodNotFound",e,t,n)}},_k=class extends xn{constructor(t,n,r){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,r)}},wk=class extends xn{constructor(e,t,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",e,t,n)}},xk=class extends xn{constructor(t,n,r){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,n,r)}},Sk=class extends xn{constructor(e,t,n){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",e,t,n)}},Ek=class extends xn{constructor(e,t,n){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",e,t,n)}},Ak=class extends xn{constructor(t,n,r){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,n,r)}},Ck=class extends xn{constructor(e,t,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",e,t,n)}},Ok=class extends xn{constructor(e,t,n){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",e,t,n)}},Tk=class extends xn{constructor(e,t,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",e,t,n)}},$k=class extends xn{constructor(t,n,r){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,n,r)}},kk=class extends xn{constructor(e,t,n){super(409,"The record attempted to be created already exists.","AlreadyExists",e,t,n)}},Ik=class extends xn{constructor(e,t,n){super(429,"The request has been rate limited.","RateLimited",e,t,n)}},Pk=class extends xn{constructor(e,t,n){super(402,"A payment is required to perform this request.","PaymentRequired",e,t,n)}},Rk=class extends xn{constructor(e,t,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",e,t,n)}},Nk=class extends xn{constructor(e,t,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",e,t,n)}},Dk=class extends xn{constructor(e,t,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",e,t,n)}},eue={Unknown:Bu,Internal:pk,Unauthorized:hk,Forbidden:mk,PayloadTooLarge:yk,InvalidPayload:gk,UnsupportedMediaType:vk,MethodNotFound:bk,ResourceNotFound:_k,InvalidJsonSchema:wk,InvalidDataFormat:xk,InvalidIdentifier:Sk,RelationConflict:Ek,ReferenceConstraint:Ak,ResourceLockedConflict:Ck,ReferenceNotFound:Ok,InvalidQuery:Tk,Runtime:$k,AlreadyExists:kk,RateLimited:Ik,PaymentRequired:Pk,QuotaExceeded:Rk,LimitExceeded:Nk,BreakingChanges:Dk},Mb=e=>dk(e)?e:e instanceof Error?new Bu(e.message,e):typeof e=="string"?new Bu(e):tue(e);function tue(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=eue[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN"):new Bu(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new Bu("An invalid error occurred: "+JSON.stringify(e))}var Mc=class extends Error{constructor(t,n,r){super(t),this.innerError=n,this.file=r,this.name="FileUploadError"}},nue=Ib(jse()),rue=Ib(Lse()),iue="https://api.botpress.cloud",oue=6e4,aue="BP_API_URL",sue="BP_BOT_ID",uue="BP_INTEGRATION_ID",lue="BP_WORKSPACE_ID",cue="BP_TOKEN";function fue(e){let t=due(e),n={};t.workspaceId&&(n["x-workspace-id"]=t.workspaceId),t.botId&&(n["x-bot-id"]=t.botId),t.integrationId&&(n["x-integration-id"]=t.integrationId),t.token&&(n.Authorization=`Bearer ${t.token}`),n={...n,...t.headers};let r=t.apiUrl??iue,i=t.timeout??oue;return{apiUrl:r,timeout:i,withCredentials:lk,headers:n}}function due(e){return lk?e:kb?pue(e):e}function pue(e){let t={...e,apiUrl:e.apiUrl??process.env[aue],botId:e.botId??process.env[sue],integrationId:e.integrationId??process.env[uue],workspaceId:e.workspaceId??process.env[lue]},n=t.token??process.env[cue];return n&&(t.token=n),t}var hue=Ib(Jse()),mue=e=>e[1]!==void 0,pe=e=>{let{method:t,path:n,query:r,headers:i,body:o}=e,a=Object.entries(i).filter(mue),s=Object.fromEntries(a),l=hue.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),c=l?[n,l].join("?"):n;return{method:t,url:c,headers:s,data:o}},yue=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}}),gue=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),vue=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName},params:{},body:{}}),bue=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}}),_ue=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}}),wue=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),xue=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}}),Sue=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}}),Eue=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}}),Aue=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}}),Cue=e=>({path:"/v1/chat/events",headers:{},query:{},params:{},body:{type:e.type,payload:e.payload,schedule:e.schedule,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId}}),Oue=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),Tue=e=>({path:"/v1/chat/events",headers:{},query:{nextToken:e.nextToken,type:e.type,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId,status:e.status},params:{},body:{}}),$ue=e=>({path:"/v1/chat/messages",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule}}),kue=e=>({path:"/v1/chat/messages/get-or-create",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule}}),Iue=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),Pue=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags}}),Rue=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}}),Nue=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),Due=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}}),Mue=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),jue=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}}),Lue=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}}),Fue=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,name:e.name,pictureUrl:e.pictureUrl}}),que=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),Uue=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{}}),Bue=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}}),zue=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/get-or-set`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}}),Zue=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload}}),Hue=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}}),Wue=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier}}),Vue=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),Kue=e=>({path:"/v1/chat/tasks",headers:{},query:{},params:{},body:{title:e.title,description:e.description,type:e.type,data:e.data,parentTaskId:e.parentTaskId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags}}),Gue=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{title:e.title,description:e.description,data:e.data,timeoutAt:e.timeoutAt,status:e.status,tags:e.tags}}),Yue=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),Jue=e=>({path:"/v1/chat/tasks",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentTaskId:e.parentTaskId,status:e.status,type:e.type},params:{},body:{}}),Xue=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}}),Que=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}}),ele=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}}),tle=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}}),nle=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}}),rle=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}}),ile=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),ole=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}}),ale=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}}),sle=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}}),ule=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),lle=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}}),cle=e=>({path:"/v1/admin/bots",headers:{},query:{},params:{},body:{states:e.states,events:e.events,recurringEvents:e.recurringEvents,subscriptions:e.subscriptions,actions:e.actions,configuration:e.configuration,user:e.user,conversation:e.conversation,message:e.message,code:e.code,name:e.name,medias:e.medias,url:e.url,dev:e.dev}}),fle=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,blocked:e.blocked,alwaysAlive:e.alwaysAlive,user:e.user,message:e.message,conversation:e.conversation,events:e.events,actions:e.actions,states:e.states,recurringEvents:e.recurringEvents,integrations:e.integrations,subscriptions:e.subscriptions,code:e.code,name:e.name,medias:e.medias}}),dle=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}}),ple=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}}),hle=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),mle=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),yle=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,nextToken:e.nextToken},params:{id:e.id},body:{}}),gle=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}}),vle=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}}),ble=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}}),_le=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}}),wle=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}}),xle=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}}),Sle=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/payment-method`,headers:{},query:{},params:{id:e.id},body:{stripePaymentMethodId:e.stripePaymentMethodId}}),Ele=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}}),Ale=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}}),Cle=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}}),Ole=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}}),Tle=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}}),$le=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),kle=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}}),Ile=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages/by-bot`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}}),Ple=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}}),Rle=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}}),Nle=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}}),Dle=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,spendingLimit:e.spendingLimit,about:e.about,profilePicture:e.profilePicture,contactEmail:e.contactEmail,website:e.website,socialAccounts:e.socialAccounts,isPublic:e.isPublic,handle:e.handle}}),Mle=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}}),jle=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken},params:{},body:{}}),Lle=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}}),Fle=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),qle=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}}),Ule=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}}),Ble=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}}),zle=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),Zle=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}}),Hle=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}}),Wle=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}}),Vle=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}}),Kle=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),Gle=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,interfaces:e.interfaces,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,entities:e.entities,identifier:e.identifier,channels:e.channels,user:e.user,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}}),Yle=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,channels:e.channels,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public}}),Jle=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version,dev:e.dev},params:{},body:{}}),Xle=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),Qle=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,nextToken:e.nextToken},params:{id:e.id},body:{}}),ece=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}}),tce=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),nce=e=>({path:"/v1/admin/interfaces",headers:{},query:{},params:{},body:{name:e.name,version:e.version,events:e.events,actions:e.actions,entities:e.entities}}),rce=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),ice=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}}),oce=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{events:e.events,actions:e.actions,entities:e.entities}}),ace=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),sce=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken},params:{},body:{}}),uce=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}}),lce=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}}),cce=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}}),fce=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}}),dce=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}}),pce=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}}),hce=e=>({path:"/v1/files",headers:{},query:{},params:{},body:{key:e.key,tags:e.tags,size:e.size,index:e.index,accessPolicies:e.accessPolicies,contentType:e.contentType}}),mce=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),yce=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}}),gce=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),vce=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,accessPolicies:e.accessPolicies}}),bce=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit},params:{},body:{}}),_ce=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}}),wce=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}}),xce=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}}),Sce=e=>({path:"/v1/tables",headers:{},query:{},params:{},body:{name:e.name,factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}}),Ece=e=>({path:`/v1/tables/${encodeURIComponent(e.sourceTableId)}/duplicate`,headers:{},query:{},params:{sourceTableId:e.sourceTableId},body:{tableName:e.tableName,schemaOnly:e.schemaOnly,factor:e.factor}}),Ace=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{name:e.name,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}}),Cce=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}}),Oce=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}}),Tce=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}}),$ce=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/find`,headers:{},query:{},params:{table:e.table},body:{limit:e.limit,offset:e.offset,filter:e.filter,group:e.group,search:e.search,orderBy:e.orderBy,orderDirection:e.orderDirection}}),kce=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}}),Ice=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/delete`,headers:{},query:{},params:{table:e.table},body:{ids:e.ids,filter:e.filter,deleteAllRows:e.deleteAllRows}}),Pce=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}}),Rce=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/upsert`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,keyColumn:e.keyColumn,waitComputed:e.waitComputed}}),Nce=class{constructor(t,n={}){R(this,"createConversation",async t=>{let{path:n,headers:r,query:i,body:o}=yue(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getConversation",async t=>{let{path:n,headers:r,query:i,body:o}=gue(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listConversations",async t=>{let{path:n,headers:r,query:i,body:o}=vue(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getOrCreateConversation",async t=>{let{path:n,headers:r,query:i,body:o}=bue(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"updateConversation",async t=>{let{path:n,headers:r,query:i,body:o}=_ue(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"deleteConversation",async t=>{let{path:n,headers:r,query:i,body:o}=wue(t),a=(this.props.toAxiosRequest??pe)({method:"delete",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listParticipants",async t=>{let{path:n,headers:r,query:i,body:o}=xue(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"addParticipant",async t=>{let{path:n,headers:r,query:i,body:o}=Sue(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getParticipant",async t=>{let{path:n,headers:r,query:i,body:o}=Eue(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"removeParticipant",async t=>{let{path:n,headers:r,query:i,body:o}=Aue(t),a=(this.props.toAxiosRequest??pe)({method:"delete",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"createEvent",async t=>{let{path:n,headers:r,query:i,body:o}=Cue(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getEvent",async t=>{let{path:n,headers:r,query:i,body:o}=Oue(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listEvents",async t=>{let{path:n,headers:r,query:i,body:o}=Tue(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"createMessage",async t=>{let{path:n,headers:r,query:i,body:o}=$ue(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getOrCreateMessage",async t=>{let{path:n,headers:r,query:i,body:o}=kue(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getMessage",async t=>{let{path:n,headers:r,query:i,body:o}=Iue(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"updateMessage",async t=>{let{path:n,headers:r,query:i,body:o}=Pue(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listMessages",async t=>{let{path:n,headers:r,query:i,body:o}=Rue(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"deleteMessage",async t=>{let{path:n,headers:r,query:i,body:o}=Nue(t),a=(this.props.toAxiosRequest??pe)({method:"delete",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"createUser",async t=>{let{path:n,headers:r,query:i,body:o}=Due(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getUser",async t=>{let{path:n,headers:r,query:i,body:o}=Mue(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listUsers",async t=>{let{path:n,headers:r,query:i,body:o}=jue(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getOrCreateUser",async t=>{let{path:n,headers:r,query:i,body:o}=Lue(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"updateUser",async t=>{let{path:n,headers:r,query:i,body:o}=Fue(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"deleteUser",async t=>{let{path:n,headers:r,query:i,body:o}=que(t),a=(this.props.toAxiosRequest??pe)({method:"delete",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getState",async t=>{let{path:n,headers:r,query:i,body:o}=Uue(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"setState",async t=>{let{path:n,headers:r,query:i,body:o}=Bue(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getOrSetState",async t=>{let{path:n,headers:r,query:i,body:o}=zue(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"patchState",async t=>{let{path:n,headers:r,query:i,body:o}=Zue(t),a=(this.props.toAxiosRequest??pe)({method:"patch",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"callAction",async t=>{let{path:n,headers:r,query:i,body:o}=Hue(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"configureIntegration",async t=>{let{path:n,headers:r,query:i,body:o}=Wue(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getTask",async t=>{let{path:n,headers:r,query:i,body:o}=Vue(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"createTask",async t=>{let{path:n,headers:r,query:i,body:o}=Kue(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"updateTask",async t=>{let{path:n,headers:r,query:i,body:o}=Gue(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"deleteTask",async t=>{let{path:n,headers:r,query:i,body:o}=Yue(t),a=(this.props.toAxiosRequest??pe)({method:"delete",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listTasks",async t=>{let{path:n,headers:r,query:i,body:o}=Jue(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"trackAnalytics",async t=>{let{path:n,headers:r,query:i,body:o}=Xue(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"runVrl",async t=>{let{path:n,headers:r,query:i,body:o}=Que(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getAccount",async t=>{let{path:n,headers:r,query:i,body:o}=ele(),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"updateAccount",async t=>{let{path:n,headers:r,query:i,body:o}=tle(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listPersonalAccessTokens",async t=>{let{path:n,headers:r,query:i,body:o}=nle(),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"createPersonalAccessToken",async t=>{let{path:n,headers:r,query:i,body:o}=rle(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"deletePersonalAccessToken",async t=>{let{path:n,headers:r,query:i,body:o}=ile(t),a=(this.props.toAxiosRequest??pe)({method:"delete",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"setAccountPreference",async t=>{let{path:n,headers:r,query:i,body:o}=ole(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getAccountPreference",async t=>{let{path:n,headers:r,query:i,body:o}=ale(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listPublicIntegrations",async t=>{let{path:n,headers:r,query:i,body:o}=sle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getPublicIntegrationById",async t=>{let{path:n,headers:r,query:i,body:o}=ule(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getPublicIntegration",async t=>{let{path:n,headers:r,query:i,body:o}=lle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"createBot",async t=>{let{path:n,headers:r,query:i,body:o}=cle(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"updateBot",async t=>{let{path:n,headers:r,query:i,body:o}=fle(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"transferBot",async t=>{let{path:n,headers:r,query:i,body:o}=dle(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listBots",async t=>{let{path:n,headers:r,query:i,body:o}=ple(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getBot",async t=>{let{path:n,headers:r,query:i,body:o}=hle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"deleteBot",async t=>{let{path:n,headers:r,query:i,body:o}=mle(t),a=(this.props.toAxiosRequest??pe)({method:"delete",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getBotLogs",async t=>{let{path:n,headers:r,query:i,body:o}=yle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getBotWebchat",async t=>{let{path:n,headers:r,query:i,body:o}=gle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getBotAnalytics",async t=>{let{path:n,headers:r,query:i,body:o}=vle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getBotIssue",async t=>{let{path:n,headers:r,query:i,body:o}=ble(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listBotIssues",async t=>{let{path:n,headers:r,query:i,body:o}=_le(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"deleteBotIssue",async t=>{let{path:n,headers:r,query:i,body:o}=wle(t),a=(this.props.toAxiosRequest??pe)({method:"delete",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listBotIssueEvents",async t=>{let{path:n,headers:r,query:i,body:o}=xle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"setWorkspacePaymentMethod",async t=>{let{path:n,headers:r,query:i,body:o}=Sle(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listWorkspaceInvoices",async t=>{let{path:n,headers:r,query:i,body:o}=Ele(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getUpcomingInvoice",async t=>{let{path:n,headers:r,query:i,body:o}=Ale(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"chargeWorkspaceUnpaidInvoices",async t=>{let{path:n,headers:r,query:i,body:o}=Cle(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"createWorkspace",async t=>{let{path:n,headers:r,query:i,body:o}=Ole(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getPublicWorkspace",async t=>{let{path:n,headers:r,query:i,body:o}=Tle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getWorkspace",async t=>{let{path:n,headers:r,query:i,body:o}=$le(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listWorkspaceUsages",async t=>{let{path:n,headers:r,query:i,body:o}=kle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"breakDownWorkspaceUsageByBot",async t=>{let{path:n,headers:r,query:i,body:o}=Ile(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getAllWorkspaceQuotaCompletion",async t=>{let{path:n,headers:r,query:i,body:o}=Ple(),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getWorkspaceQuota",async t=>{let{path:n,headers:r,query:i,body:o}=Rle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listWorkspaceQuotas",async t=>{let{path:n,headers:r,query:i,body:o}=Nle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"updateWorkspace",async t=>{let{path:n,headers:r,query:i,body:o}=Dle(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"checkHandleAvailability",async t=>{let{path:n,headers:r,query:i,body:o}=Mle(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listWorkspaces",async t=>{let{path:n,headers:r,query:i,body:o}=jle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listPublicWorkspaces",async t=>{let{path:n,headers:r,query:i,body:o}=Lle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"deleteWorkspace",async t=>{let{path:n,headers:r,query:i,body:o}=Fle(t),a=(this.props.toAxiosRequest??pe)({method:"delete",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getAuditRecords",async t=>{let{path:n,headers:r,query:i,body:o}=qle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listWorkspaceMembers",async t=>{let{path:n,headers:r,query:i,body:o}=Ule(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getWorkspaceMember",async t=>{let{path:n,headers:r,query:i,body:o}=Ble(),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"deleteWorkspaceMember",async t=>{let{path:n,headers:r,query:i,body:o}=zle(t),a=(this.props.toAxiosRequest??pe)({method:"delete",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"createWorkspaceMember",async t=>{let{path:n,headers:r,query:i,body:o}=Zle(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"updateWorkspaceMember",async t=>{let{path:n,headers:r,query:i,body:o}=Hle(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listIntegrationApiKeys",async t=>{let{path:n,headers:r,query:i,body:o}=Wle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"createIntegrationApiKey",async t=>{let{path:n,headers:r,query:i,body:o}=Vle(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"deleteIntegrationApiKey",async t=>{let{path:n,headers:r,query:i,body:o}=Kle(t),a=(this.props.toAxiosRequest??pe)({method:"delete",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"createIntegration",async t=>{let{path:n,headers:r,query:i,body:o}=Gle(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"updateIntegration",async t=>{let{path:n,headers:r,query:i,body:o}=Yle(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listIntegrations",async t=>{let{path:n,headers:r,query:i,body:o}=Jle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getIntegration",async t=>{let{path:n,headers:r,query:i,body:o}=Xle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getIntegrationLogs",async t=>{let{path:n,headers:r,query:i,body:o}=Qle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getIntegrationByName",async t=>{let{path:n,headers:r,query:i,body:o}=ece(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"deleteIntegration",async t=>{let{path:n,headers:r,query:i,body:o}=tce(t),a=(this.props.toAxiosRequest??pe)({method:"delete",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"createInterface",async t=>{let{path:n,headers:r,query:i,body:o}=nce(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getInterface",async t=>{let{path:n,headers:r,query:i,body:o}=rce(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getInterfaceByName",async t=>{let{path:n,headers:r,query:i,body:o}=ice(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"updateInterface",async t=>{let{path:n,headers:r,query:i,body:o}=oce(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"deleteInterface",async t=>{let{path:n,headers:r,query:i,body:o}=ace(t),a=(this.props.toAxiosRequest??pe)({method:"delete",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listInterfaces",async t=>{let{path:n,headers:r,query:i,body:o}=sce(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getUsage",async t=>{let{path:n,headers:r,query:i,body:o}=uce(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getMultipleUsages",async t=>{let{path:n,headers:r,query:i,body:o}=lce(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listUsageHistory",async t=>{let{path:n,headers:r,query:i,body:o}=cce(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"changeAISpendQuota",async t=>{let{path:n,headers:r,query:i,body:o}=fce(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listActivities",async t=>{let{path:n,headers:r,query:i,body:o}=dce(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"introspect",async t=>{let{path:n,headers:r,query:i,body:o}=pce(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"upsertFile",async t=>{let{path:n,headers:r,query:i,body:o}=hce(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"deleteFile",async t=>{let{path:n,headers:r,query:i,body:o}=mce(t),a=(this.props.toAxiosRequest??pe)({method:"delete",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listFiles",async t=>{let{path:n,headers:r,query:i,body:o}=yce(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getFile",async t=>{let{path:n,headers:r,query:i,body:o}=gce(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"updateFileMetadata",async t=>{let{path:n,headers:r,query:i,body:o}=vce(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"searchFiles",async t=>{let{path:n,headers:r,query:i,body:o}=bce(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listTables",async t=>{let{path:n,headers:r,query:i,body:o}=_ce(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getTable",async t=>{let{path:n,headers:r,query:i,body:o}=wce(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getOrCreateTable",async t=>{let{path:n,headers:r,query:i,body:o}=xce(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"createTable",async t=>{let{path:n,headers:r,query:i,body:o}=Sce(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"duplicateTable",async t=>{let{path:n,headers:r,query:i,body:o}=Ece(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"updateTable",async t=>{let{path:n,headers:r,query:i,body:o}=Ace(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"renameTableColumn",async t=>{let{path:n,headers:r,query:i,body:o}=Cce(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"deleteTable",async t=>{let{path:n,headers:r,query:i,body:o}=Oce(t),a=(this.props.toAxiosRequest??pe)({method:"delete",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getTableRow",async t=>{let{path:n,headers:r,query:i,body:o}=Tce(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"findTableRows",async t=>{let{path:n,headers:r,query:i,body:o}=$ce(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"createTableRows",async t=>{let{path:n,headers:r,query:i,body:o}=kce(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"deleteTableRows",async t=>{let{path:n,headers:r,query:i,body:o}=Ice(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"updateTableRows",async t=>{let{path:n,headers:r,query:i,body:o}=Pce(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"upsertTableRows",async t=>{let{path:n,headers:r,query:i,body:o}=Rce(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});this.axiosInstance=t,this.props=n}};function he(e){var t;return qu.isAxiosError(e)&&((t=e.response)!=null&&t.data)?Mb(e.response.data):Mb(e)}var Mk=100*1024*1024,Dce=Mk,Mce=Mk,jce=class extends Nce{constructor(t={}){let n=fue(t),{apiUrl:r,headers:i,withCredentials:o,timeout:a}=n,s=qu.create({baseURL:r,headers:i,withCredentials:o,timeout:a,maxBodyLength:Dce,maxContentLength:Mce,httpAgent:kb?new nue.default.Agent({keepAlive:!0}):void 0,httpsAgent:kb?new rue.default.Agent({keepAlive:!0}):void 0});super(s);R(this,"config");R(this,"uploadFile",async({key:t,index:n,tags:r,contentType:i,accessPolicies:o,content:a,url:s})=>{if(s&&a)throw new Mc("Cannot provide both content and URL, please provide only one of them");if(s&&(a=await qu.get(s,{responseType:"arraybuffer"}).then(d=>d.data).catch(d=>{throw new Mc(`Failed to download file from provided URL: ${d.message}`,d)})),!a)throw new Mc("No content was provided for the file");let l=a instanceof Buffer?a:Buffer.from(a),{file:c}=await this.upsertFile({key:t,tags:r,index:n,accessPolicies:o,contentType:i,size:l.byteLength});try{await qu.put(c.uploadUrl,l,{maxBodyLength:1/0})}catch(d){throw new Mc(`Failed to upload file: ${d.message}`,d,c)}return{file:c}});this.config=n}};const jb=Jf(Object.freeze(Object.defineProperty({__proto__:null,AlreadyExistsError:kk,BreakingChangesError:Dk,Client:jce,ForbiddenError:mk,InternalError:pk,InvalidDataFormatError:xk,InvalidIdentifierError:Sk,InvalidJsonSchemaError:wk,InvalidPayloadError:gk,InvalidQueryError:Tk,LimitExceededError:Nk,MethodNotFoundError:bk,PayloadTooLargeError:yk,PaymentRequiredError:Pk,QuotaExceededError:Rk,RateLimitedError:Ik,ReferenceConstraintError:Ak,ReferenceNotFoundError:Ok,RelationConflictError:Ek,ResourceLockedConflictError:Ck,ResourceNotFoundError:_k,RuntimeError:$k,UnauthorizedError:hk,UnknownError:Bu,UnsupportedMediaTypeError:vk,UploadFileError:Mc,axios:Ese,errorFrom:Mb,isApiError:dk},Symbol.toStringTag,{value:"Module"})));(function(e){var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,o=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,s=(N,je)=>{for(var He in je)n(N,He,{get:je[He],enumerable:!0})},l=(N,je,He,Xe)=>{if(je&&typeof je=="object"||typeof je=="function")for(let Re of i(je))!a.call(N,Re)&&Re!==He&&n(N,Re,{get:()=>je[Re],enumerable:!(Xe=r(je,Re))||Xe.enumerable});return N},c=(N,je,He)=>(l(N,je,"default"),He&&l(He,je,"default")),d=(N,je,He)=>(He=N!=null?t(o(N)):{},l(je||!N||!N.__esModule?n(He,"default",{value:N,enumerable:!0}):He,N)),p=N=>l(n({},"__esModule",{value:!0}),N),m={};s(m,{Bot:()=>sr,BotSpecificClient:()=>cn,Integration:()=>rn,IntegrationDefinition:()=>K,IntegrationSpecificClient:()=>Te,RuntimeError:()=>Fe.RuntimeError,botIdHeader:()=>Y,botUserIdHeader:()=>ne,configurationHeader:()=>ue,integrationIdHeader:()=>ce,isApiError:()=>Fe.isApiError,messages:()=>h,operationHeader:()=>Oe,parseBody:()=>Me,serve:()=>Je,studioComponentDefinitions:()=>_,typeHeader:()=>D,webhookIdHeader:()=>P}),e.exports=p(m);var h={};s(h,{defaults:()=>F});var y={};s(y,{default:()=>b,studioComponentDefinitions:()=>_});var v=Jd;c(y,Jd);var w=v.z.object({allowDynamicVariable:v.z.boolean().optional(),horizontal:v.z.boolean().optional()}),_={string:{text:{id:"text",params:w.extend({multiLine:v.z.boolean().optional(),growVertically:v.z.boolean().optional(),suggestions:v.z.array(v.z.string()).optional()})},dropdown:{id:"dropdown",params:w.extend({filterable:v.z.boolean().optional()})},radiogroup:{id:"radiogroup",params:w.extend({})},date:{id:"date",params:w.extend({dateFormat:v.z.string().optional(),minDate:v.z.string().optional(),maxDate:v.z.string().optional(),defaultTimezone:v.z.string().optional(),disableTimezoneSelection:v.z.boolean().optional(),highlightCurrentDay:v.z.boolean().optional(),showShortcutButtons:v.z.boolean().optional(),showOutsideDaysOfMonth:v.z.boolean().optional(),firstDayOfWeek:v.z.number().optional(),canChangeMonth:v.z.boolean().optional(),showWeekNumbers:v.z.boolean().optional()})},time:{id:"time",params:w.extend({useAMPM:v.z.boolean().optional(),timeFormat:v.z.string().optional(),minTime:v.z.string().optional(),maxTime:v.z.string().optional(),showArrowButtons:v.z.boolean().optional(),precision:v.z.enum(["minute","second","millisecond"]).optional()})},richtext:{id:"richtext",params:v.z.object({allowDynamicVariable:v.z.boolean().optional(),resizable:v.z.boolean().optional()})},json:{id:"json",params:w.extend({showPreview:v.z.boolean().optional(),showValidationError:v.z.boolean().optional()})},file:{id:"file",params:w.extend({fileTypes:v.z.array(v.z.enum(["image","audio","video"])).optional(),showUploadedFiles:v.z.boolean().optional()})}},number:{number:{id:"number",params:w.extend({allowNumericCharactersOnly:v.z.boolean().optional(),stepSize:v.z.number().optional()})},slider:{id:"slider",params:v.z.object({horizontal:v.z.boolean().optional(),stepSize:v.z.number().optional()})}},boolean:{switch:{id:"switch",params:w}},array:{options:{id:"options",params:w},strings:{id:"strings",params:w},daterange:{id:"daterange",params:v.z.object({dateFormat:v.z.string().optional(),minDate:v.z.string().optional(),maxDate:v.z.string().optional(),defaultTimezone:v.z.string().optional(),allowSingleDayRange:v.z.boolean().optional(),highlightCurrentDay:v.z.boolean().optional(),showOutsideDaysOfMonth:v.z.boolean().optional(),firstDayOfWeek:v.z.number().optional(),canChangeMonth:v.z.boolean().optional(),showWeekNumbers:v.z.boolean().optional()})}},object:{collapsible:{id:"collapsible",params:v.z.object({defaultOpen:v.z.boolean().optional()})},modal:{id:"modal",params:v.z.object({title:v.z.string().optional(),buttonLabel:v.z.string().optional(),closeButtonLabel:v.z.string().optional()})},popover:{id:"popover",params:v.z.object({buttonLabel:v.z.string().optional()})}},discriminatedUnion:{}},b=v.z,S=y.z.string().min(1),A=y.z.object({text:S}),E=y.z.object({markdown:S}),T=y.z.object({imageUrl:S}),j=y.z.object({audioUrl:S}),q=y.z.object({videoUrl:S}),L=y.z.object({fileUrl:S,title:S.optional()}),M=y.z.object({latitude:y.z.number(),longitude:y.z.number(),address:y.z.string().optional(),title:y.z.string().optional()}),H=y.z.object({title:S,subtitle:S.optional(),imageUrl:S.optional(),actions:y.z.array(y.z.object({action:y.z.enum(["postback","url","say"]),label:S,value:S}))}),re=y.z.object({text:S,options:y.z.array(y.z.object({label:S,value:S}))}),Q=y.z.object({items:y.z.array(H)}),G=y.z.discriminatedUnion("type",[y.z.object({type:y.z.literal("text"),payload:A}),y.z.object({type:y.z.literal("markdown"),payload:E}),y.z.object({type:y.z.literal("image"),payload:T}),y.z.object({type:y.z.literal("audio"),payload:j}),y.z.object({type:y.z.literal("video"),payload:q}),y.z.object({type:y.z.literal("file"),payload:L}),y.z.object({type:y.z.literal("location"),payload:M})]),V=y.z.object({items:y.z.array(G)}),F={text:{schema:A},markdown:{schema:E},image:{schema:T},audio:{schema:j},video:{schema:q},file:{schema:L},location:{schema:M},carousel:{schema:Q},card:{schema:H},dropdown:{schema:re},choice:{schema:re},bloc:{schema:V}},Y="x-bot-id",ne="x-bot-user-id",ce="x-integration-id",P="x-webhook-id",ue="x-bp-configuration",Oe="x-bp-operation",D="x-bp-type",De=As,qe=console;function Me(N){if(!N.body)throw new Error("Missing body");return JSON.parse(N.body)}async function Je(N,je=8072,He=Ae){let Xe=(0,De.createServer)(async(Re,We)=>{try{let bt=await rt(Re);if(bt.path==="/health"){We.writeHead(200).end("ok");return}let Pt=await N(bt);We.writeHead((Pt==null?void 0:Pt.status)??200,(Pt==null?void 0:Pt.headers)??{}).end((Pt==null?void 0:Pt.body)??"{}")}catch(bt){qe.error("Error while handling request",{error:(bt==null?void 0:bt.message)??"Internal error occured"}),We.writeHead(500).end(JSON.stringify({error:(bt==null?void 0:bt.message)??"Internal error occured"}))}});return Xe.listen(je,()=>He(je)),Xe}async function rt(N){var Re;let je=await Pe(N),He={};for(let We=0;We<N.rawHeaders.length;We+=2){let bt=N.rawHeaders[We].toLowerCase(),Pt=N.rawHeaders[We+1];He[bt]=Pt}let Xe=new URL(N.url??"",N.headers.host?`http://${N.headers.host}`:"http://botpress.cloud");return{body:je,path:Xe.pathname,query:Ke(Xe.search,"?"),headers:He,method:((Re=N.method)==null?void 0:Re.toUpperCase())??"GET"}}function Ke(N,je){return N.indexOf(je)===0?N.slice(je.length):N}async function Pe(N){return new Promise((je,He)=>{if(N.method!=="POST"&&N.method!=="PUT"&&N.method!=="PATCH")return je(void 0);let Xe="";N.on("data",Re=>Xe+=Re.toString()),N.on("error",Re=>He(Re)),N.on("end",()=>je(Xe))})}function Ae(N){qe.info(`Listening on port ${N}`)}c(m,y,e.exports);var Fe=jb,$e=Jd,Ze=$e.z.enum(["webhook_received","message_created","action_triggered","register","unregister","ping","create_user","create_conversation"]),lt=N=>{let je=N[Y],He=N[ne],Xe=N[ce],Re=N[P],We=N[ue],bt=Ze.parse(N[Oe]);if(!je)throw new Error("Missing bot headers");if(!He)throw new Error("Missing bot user headers");if(!Xe)throw new Error("Missing integration headers");if(!Re)throw new Error("Missing webhook headers");if(!We)throw new Error("Missing configuration headers");if(!bt)throw new Error("Missing operation headers");return{botId:je,botUserId:He,integrationId:Xe,webhookId:Re,operation:bt,configuration:We?JSON.parse(Buffer.from(We,"base64").toString("utf-8")):{}}},K=class{constructor(N){R(this,"name");R(this,"version");R(this,"title");R(this,"description");R(this,"icon");R(this,"readme");R(this,"configuration");R(this,"events");R(this,"actions");R(this,"channels");R(this,"states");R(this,"user");R(this,"secrets");R(this,"identifier");R(this,"entities");this.props=N,this.name=N.name,this.version=N.version,this.icon=N.icon,this.readme=N.readme,this.title=N.title,this.identifier=N.identifier,this.description=N.description,this.configuration=N.configuration,this.events=N.events,this.actions=N.actions,this.channels=N.channels,this.states=N.states,this.user=N.user,this.secrets=N.secrets,this.entities=N.entities}clone(N){return new K({...this,...N})}},de=jb,Te=class{constructor(N){R(this,"createConversation",N=>this.client.createConversation(N));R(this,"getConversation",N=>this.client.getConversation(N));R(this,"listConversations",N=>this.client.listConversations(N));R(this,"getOrCreateConversation",N=>this.client.getOrCreateConversation(N));R(this,"updateConversation",N=>this.client.updateConversation(N));R(this,"deleteConversation",N=>this.client.deleteConversation(N));R(this,"listParticipants",N=>this.client.listParticipants(N));R(this,"addParticipant",N=>this.client.addParticipant(N));R(this,"getParticipant",N=>this.client.getParticipant(N));R(this,"removeParticipant",N=>this.client.removeParticipant(N));R(this,"createEvent",N=>this.client.createEvent(N));R(this,"getEvent",N=>this.client.getEvent(N));R(this,"listEvents",N=>this.client.listEvents(N));R(this,"createMessage",N=>this.client.createMessage(N));R(this,"getOrCreateMessage",N=>this.client.getOrCreateMessage(N));R(this,"getMessage",N=>this.client.getMessage(N));R(this,"updateMessage",N=>this.client.updateMessage(N));R(this,"listMessages",N=>this.client.listMessages(N));R(this,"deleteMessage",N=>this.client.deleteMessage(N));R(this,"createUser",N=>this.client.createUser(N));R(this,"getUser",N=>this.client.getUser(N));R(this,"listUsers",N=>this.client.listUsers(N));R(this,"getOrCreateUser",N=>this.client.getOrCreateUser(N));R(this,"updateUser",N=>this.client.updateUser(N));R(this,"deleteUser",N=>this.client.deleteUser(N));R(this,"getState",N=>this.client.getState(N));R(this,"setState",N=>this.client.setState(N));R(this,"getOrSetState",N=>this.client.getOrSetState(N));R(this,"patchState",N=>this.client.patchState(N));R(this,"configureIntegration",N=>this.client.configureIntegration(N));R(this,"uploadFile",N=>this.client.uploadFile(N));R(this,"upsertFile",N=>this.client.upsertFile(N));R(this,"deleteFile",N=>this.client.deleteFile(N));R(this,"listFiles",N=>this.client.listFiles(N));R(this,"getFile",N=>this.client.getFile(N));R(this,"updateFileMetadata",N=>this.client.updateFileMetadata(N));this.client=N}},Se=d(As),et=N=>{if(process.env.BP_LOG_FORMAT==="json")return JSON.stringify({msg:Se.default.format(...N),visible_to_bot_owner:!0});{let[je,...He]=N;return Se.default.format(`[For Bot Owner] ${je}`,...He)}},Ue={forBot:()=>({info:(...N)=>{console.info(et(N))},warn:(...N)=>{console.warn(et(N))},error:(...N)=>{console.error(et(N))},debug:(...N)=>{console.debug(et(N))}})},ot=N=>async je=>{let He=lt(je.headers),Xe=new Te(new de.Client({botId:He.botId,integrationId:He.integrationId})),Re={ctx:He,req:je,client:Xe,logger:Ue,instance:N};try{let We;switch(He.operation){case"webhook_received":We=await mt(Re);break;case"register":We=await ie(Re);break;case"unregister":We=await ye(Re);break;case"message_created":We=await ct(Re);break;case"action_triggered":We=await pn(Re);break;case"ping":We=await It(Re);break;case"create_user":We=await xe(Re);break;case"create_conversation":We=await Be(Re);break;default:throw new Error(`Unknown operation ${He.operation}`)}return We?{...We,status:We.status??200}:{status:200}}catch(We){if((0,de.isApiError)(We)){let bt=new de.RuntimeError(We.message,We);return{status:bt.code,body:JSON.stringify(bt.toJSON())}}throw We}},It=async N=>{},mt=async({client:N,ctx:je,req:He,logger:Xe,instance:Re})=>{let{req:We}=Me(He);return Re.webhook({client:N,ctx:je,req:We,logger:Xe})},ie=async({client:N,ctx:je,req:He,logger:Xe,instance:Re})=>{if(!Re.register)return;let{webhookUrl:We}=Me(He);await Re.register({client:N,ctx:je,webhookUrl:We,logger:Xe})},ye=async({client:N,ctx:je,req:He,logger:Xe,instance:Re})=>{if(!Re.unregister)return;let{webhookUrl:We}=Me(He);await Re.unregister({ctx:je,webhookUrl:We,client:N,logger:Xe})},xe=async({client:N,ctx:je,req:He,logger:Xe,instance:Re})=>{if(!Re.createUser)return;let{tags:We}=Me(He);return await Re.createUser({ctx:je,client:N,tags:We,logger:Xe})},Be=async({client:N,ctx:je,req:He,logger:Xe,instance:Re})=>{if(!Re.createConversation)return;let{channel:We,tags:bt}=Me(He);return await Re.createConversation({ctx:je,client:N,channel:We,tags:bt,logger:Xe})},ct=async({ctx:N,req:je,client:He,logger:Xe,instance:Re})=>{let{conversation:We,user:bt,type:Pt,payload:Jt,message:bn}=Me(je),Rn=Re.channels[We.channel];if(!Rn)throw new Error(`Channel ${We.channel} not found`);let mr=Rn.messages[Pt];if(!mr)throw new Error(`Message of type ${Pt} not found in channel ${We.channel}`);await mr({ctx:N,conversation:We,message:bn,user:bt,type:Pt,client:He,payload:Jt,ack:async({tags:ta})=>{await He.updateMessage({id:bn.id,tags:ta})},logger:Xe})},pn=async({req:N,ctx:je,client:He,logger:Xe,instance:Re})=>{let{input:We,type:bt}=Me(N);if(!bt)throw new Error("Missing action type");let Pt=Re.actions[bt];if(!Pt)throw new Error(`Action ${bt} not found`);let Jt=await Pt({ctx:je,input:We,client:He,type:bt,logger:Xe});return{body:JSON.stringify({output:Jt})}},rn=class{constructor(N){R(this,"props");R(this,"actions");R(this,"channels");R(this,"register");R(this,"unregister");R(this,"createUser");R(this,"createConversation");R(this,"webhook");R(this,"handler",ot(this));R(this,"start",N=>Je(this.handler,N));this.props=N,this.actions=N.actions,this.channels=N.channels,this.register=N.register,this.unregister=N.unregister,this.createUser=N.createUser,this.createConversation=N.createConversation,this.webhook=N.handler}},Yt=d(jb),cn=class{constructor(N){R(this,"getConversation",N=>this.client.getConversation(N));R(this,"listConversations",N=>this.client.listConversations(N));R(this,"updateConversation",N=>this.client.updateConversation(N));R(this,"deleteConversation",N=>this.client.deleteConversation(N));R(this,"listParticipants",N=>this.client.listParticipants(N));R(this,"addParticipant",N=>this.client.addParticipant(N));R(this,"getParticipant",N=>this.client.getParticipant(N));R(this,"removeParticipant",N=>this.client.removeParticipant(N));R(this,"getEvent",N=>this.client.getEvent(N));R(this,"listEvents",N=>this.client.listEvents(N));R(this,"createMessage",N=>this.client.createMessage(N));R(this,"getOrCreateMessage",N=>this.client.getOrCreateMessage(N));R(this,"getMessage",N=>this.client.getMessage(N));R(this,"updateMessage",N=>this.client.updateMessage(N));R(this,"listMessages",N=>this.client.listMessages(N));R(this,"deleteMessage",N=>this.client.deleteMessage(N));R(this,"getUser",N=>this.client.getUser(N));R(this,"listUsers",N=>this.client.listUsers(N));R(this,"updateUser",N=>this.client.updateUser(N));R(this,"deleteUser",N=>this.client.deleteUser(N));R(this,"getState",N=>this.client.getState(N).then(je=>({state:{...je.state,payload:je.state.payload}})));R(this,"setState",N=>this.client.setState(N).then(je=>({state:{...je.state,payload:je.state.payload}})));R(this,"getOrSetState",N=>this.client.getOrSetState(N).then(je=>({state:{...je.state,payload:je.state.payload}})));R(this,"patchState",N=>this.client.patchState(N).then(je=>({state:{...je.state,payload:je.state.payload}})));R(this,"callAction",N=>this.client.callAction(N));R(this,"uploadFile",N=>this.client.uploadFile(N));R(this,"upsertFile",N=>this.client.upsertFile(N));R(this,"deleteFile",N=>this.client.deleteFile(N));R(this,"listFiles",N=>this.client.listFiles(N));R(this,"getFile",N=>this.client.getFile(N));R(this,"updateFileMetadata",N=>this.client.updateFileMetadata(N));R(this,"searchFiles",N=>this.client.searchFiles(N));R(this,"createConversation",N=>this.client.createConversation(N));R(this,"getOrCreateConversation",N=>this.client.getOrCreateConversation(N));R(this,"createUser",N=>this.client.createUser(N));R(this,"getOrCreateUser",N=>this.client.getOrCreateUser(N));this.client=N}},Cn=Jd,ee=Cn.z.enum(["event_received","register","unregister","ping","action_triggered"]),ae=N=>{let je=N[Y],He=N[ue],Xe=N[D],Re=ee.parse(N[Oe]);if(!je)throw new Error("Missing bot headers");if(!Xe)throw new Error("Missing type headers");if(!He)throw new Error("Missing configuration headers");if(!Re)throw new Error("Missing operation headers");return{botId:je,operation:Re,type:Xe,configuration:He?JSON.parse(Buffer.from(He,"base64").toString("utf-8")):{}}},ft=N=>async je=>{let He=ae(je.headers);He.operation!=="ping"&&qe.info(`Received ${He.operation} operation for bot ${He.botId} of type ${He.type}`);let Xe=new cn(new Yt.Client({botId:He.botId})),Re={req:je,ctx:He,client:Xe,instance:N};switch(He.operation){case"action_triggered":throw new Error(`Operation ${He.operation} not supported yet`);case"event_received":await Mn(Re);break;case"register":await on();break;case"unregister":await pt();break;case"ping":await At();break;default:throw new Error(`Unknown operation ${He.operation}`)}return{status:200}},At=async N=>{},on=async N=>{},pt=async N=>{},Mn=async({ctx:N,req:je,client:He,instance:Xe})=>{qe.debug(`Received event ${N.type}`);let Re=Me(je),We=Re.event;switch(N.type){case"message_created":let bt={user:We.payload.user,conversation:We.payload.conversation,message:We.payload.message,states:We.payload.states,event:We};await Promise.all(Xe.messageHandlers.map(bn=>bn({client:He,ctx:N,...bt})));break;case"state_expired":let Pt={state:We.payload.state};await Promise.all(Xe.stateExpiredHandlers.map(bn=>bn({client:He,ctx:N,...Pt})));break;default:let Jt={event:Re.event};await Promise.all(Xe.eventHandlers.map(bn=>bn({client:He,ctx:N,...Jt})))}},sr=class{constructor(N){R(this,"_state",{messageHandlers:[],eventHandlers:[],stateExpiredHandlers:[]});R(this,"props");R(this,"message",N=>{this._state.messageHandlers.push(N)});R(this,"event",N=>{this._state.eventHandlers.push(N)});R(this,"stateExpired",N=>{this._state.stateExpiredHandlers.push(N)});R(this,"handler",ft(this._state));R(this,"start",N=>Je(this.handler,N));this.props=N}}})(RE);var me=RE.exports;const{defaults:lo}=me.messages,Mi={className:me.z.string().describe("CSS className to apply to the message").optional()},jk=lo.audio.schema.extend({...Mi,type:me.z.literal("audio")}),Lb=lo.card.schema.extend({type:me.z.literal("card"),subtitle:me.z.string().optional(),imageUrl:me.z.string().optional(),...Mi}),Lce=Lb.omit({type:!0}),Lk=me.z.object({items:me.z.array(Lce),...Mi,type:me.z.literal("carousel")}),Fk=lo.choice.schema.extend({text:me.z.string(),...Mi,type:me.z.literal("choice"),disableFreeText:me.z.boolean().optional()}),qk=lo.dropdown.schema.extend({text:me.z.string(),...Mi,type:me.z.literal("dropdown")}),Uk=lo.file.schema.extend({...Mi,type:me.z.literal("file")}),Bk=lo.image.schema.extend({...Mi,type:me.z.literal("image")}),zk=lo.location.schema.extend({...Mi,type:me.z.literal("location")}),Zk=lo.markdown.schema.extend({...Mi,type:me.z.literal("markdown")}),Hk=lo.text.schema.extend({...Mi,type:me.z.literal("text")}),Wk=lo.video.schema.extend({...Mi,type:me.z.literal("video")}),Vk=me.z.union([jk,Lb,Lk,Fk,qk,Uk,Bk,zk,Zk,Hk,Wk]),Kk=me.z.object({type:me.z.literal("webchat_visibility"),data:me.z.object({visibility:me.z.union([me.z.literal("show"),me.z.literal("hide"),me.z.literal("toggle")])})}),Gk=me.z.object({type:me.z.literal("webchat_config"),data:me.z.object({config:me.z.record(me.z.any())})}),Yk=me.z.object({type:me.z.literal("custom"),data:me.z.object({event:me.z.record(me.z.any())})}),Jk=me.z.union([Kk,Gk,Yk]),Fce=Jk,qce=me.z.object({type:me.z.literal("message_created"),data:Vk}),Uce=Object.freeze(Object.defineProperty({__proto__:null,audioSchema:jk,cardSchema:Lb,carouselSchema:Lk,choiceSchema:Fk,customSchema:Yk,dropdownSchema:qk,fileSchema:Uk,imageSchema:Bk,locationSchema:zk,markdownSchema:Zk,messageCreatedSchema:qce,messageSchema:Vk,textSchema:Hk,triggerSchema:Jk,triggerSignalSchema:Fce,videoSchema:Wk,webchatConfigSchema:Gk,webchatVisibilitySchema:Kk},Symbol.toStringTag,{value:"Module"})),co=me.z.object({className:me.z.string().optional(),avatarUrl:me.z.string().url().optional()}),Xk=co.extend({type:me.z.literal("audio"),audio:me.z.string(),title:me.z.string().optional()}),Bce=me.z.union([me.z.object({title:me.z.string(),action:me.z.literal("Say something"),text:me.z.string()}),me.z.object({title:me.z.string(),action:me.z.literal("Open URL"),url:me.z.string()}),me.z.object({title:me.z.string(),action:me.z.literal("Postback"),payload:me.z.string()})]),Fb=co.extend({type:me.z.literal("card"),title:me.z.string(),subtitle:me.z.string().optional(),image:me.z.string().optional(),actions:me.z.array(Bce)}),Qk=co.extend({type:me.z.literal("carousel"),items:me.z.array(Fb)}),eI=co.extend({type:me.z.literal("dropdown"),message:me.z.string().optional(),options:me.z.array(me.z.object({label:me.z.string(),value:me.z.string()})),allowCreation:me.z.boolean().optional(),placeholderText:me.z.string().optional(),allowMultiple:me.z.boolean().optional(),buttonText:me.z.string().optional(),width:me.z.number().optional(),displayInKeyboard:me.z.boolean().optional(),markdown:me.z.boolean().optional(),text:me.z.string().optional()}),tI=co.extend({type:me.z.literal("file"),file:me.z.string(),title:me.z.string().optional()}),nI=co.extend({type:me.z.literal("image"),image:me.z.string()}),rI=co.extend({type:me.z.literal("location"),latitude:me.z.number(),longitude:me.z.number(),address:me.z.string().optional(),title:me.z.string().optional()}),iI=co.extend({type:me.z.literal("single-choice"),text:me.z.string(),disableFreeText:me.z.boolean().optional(),choices:me.z.array(me.z.object({title:me.z.string(),value:me.z.string()}))}),oI=co.extend({type:me.z.literal("text"),text:me.z.string(),markdown:me.z.boolean().optional()}),aI=co.extend({type:me.z.literal("video"),video:me.z.string(),title:me.z.string().optional()}),sI=me.z.object({type:me.z.literal("quick_reply"),text:me.z.string(),payload:me.z.string().optional()}),vh=me.z.union([Xk,Fb,Qk,eI,tI,nI,rI,iI,oI,aI,sI]),uI=me.z.object({type:me.z.literal("webchat-visibility"),visibility:me.z.union([me.z.literal("show"),me.z.literal("hide"),me.z.literal("toggle")])}),lI=me.z.object({type:me.z.literal("webchat-config"),config:me.z.record(me.z.any())}),cI=me.z.object({type:me.z.literal("custom-event"),event:me.z.record(me.z.any())}),fI=me.z.union([uI,lI,cI]),zce=me.z.object({type:me.z.literal("trigger"),trigger:fI}),Zce=Object.freeze(Object.defineProperty({__proto__:null,audioSchema:Xk,cardSchema:Fb,carouselSchame:Qk,customEventSchema:cI,dropdownSchema:eI,fileSchema:tI,imageSchema:nI,locationSchema:rI,messageSchema:vh,messageSignalSchema:vh,quickReplySchema:sI,singleChoiceSchema:iI,textSchema:oI,triggerSchema:fI,triggerSignalSchema:zce,videoSchema:aI,webchatConfigSchema:lI,webchatVisibilitySchema:uI},Symbol.toStringTag,{value:"Module"})),dI=e=>({type:"card",title:e.title,subtitle:e.subtitle,image:e.imageUrl,actions:e.actions.map(Hce)}),Hce=e=>{switch(e.action){case"postback":return{title:e.label,action:"Postback",payload:e.value};case"url":return{title:e.label,action:"Open URL",url:e.value};case"say":return{title:e.label,action:"Say something",text:e.value};default:throw new Error(`Unknown action type ${e.action}`)}},pI=e=>({...e,type:"audio",audio:e.audioUrl}),hI=e=>dI(e),mI=e=>({...e,type:"carousel",items:e.items.map(dI)}),yI=e=>({...e,type:"single-choice",text:e.text,choices:e.options.map(t=>({title:t.label,value:t.value})),disableFreeText:e.disableFreeText}),gI=e=>({...e,type:"dropdown",message:e.text,options:e.options.map(t=>({label:t.label,value:t.value}))}),vI=e=>({...e,type:"file",file:e.fileUrl,title:e.title}),bI=e=>({...e,type:"image",image:e.imageUrl}),_I=e=>({...e,type:"location",latitude:e.latitude,longitude:e.longitude}),wI=e=>({...e,type:"text",text:e.markdown,markdown:!0}),xI=e=>({...e,type:"text",text:e.text,markdown:!0}),SI=e=>({...e,type:"video",video:e.videoUrl}),Wce=e=>{switch(e.type){case"audio":return pI(e);case"card":return hI(e);case"carousel":return mI(e);case"choice":return yI(e);case"dropdown":return gI(e);case"file":return vI(e);case"image":return bI(e);case"location":return _I(e);case"markdown":return wI(e);case"text":return xI(e);case"video":return SI(e);default:throw new Error("Unsuported message type")}},EI=e=>({type:"webchat-visibility",visibility:e.data.visibility}),AI=e=>({type:"webchat-config",config:e.data.config}),CI=e=>({type:"custom-event",event:e.data.event}),Vce=Object.freeze(Object.defineProperty({__proto__:null,audioAdapter:pI,cardAdapter:hI,carouselAdapter:mI,choiceAdapter:yI,customAdapter:CI,dropdownAdapter:gI,fileAdapter:vI,imageAdapter:bI,locationAdapter:_I,markdownAdapter:wI,messageAdapter:Wce,textAdapter:xI,triggerAdapter:e=>{switch(e.type){case"webchat_visibility":return EI(e);case"webchat_config":return AI(e);case"custom":return CI(e);default:throw new Error("unknown trigger type")}},videoAdapter:SI,webchatConfigAdapter:AI,webchatVisibilityAdapter:EI},Symbol.toStringTag,{value:"Module"})),OI=e=>({type:"card",title:e.title,subtitle:e.subtitle,imageUrl:e.image,actions:e.actions.map(Kce)}),Kce=e=>{switch(e.action){case"Postback":return{label:e.title,action:"postback",value:e.payload};case"Open URL":return{label:e.title,action:"url",value:e.url};case"Say something":return{label:e.title,action:"say",value:e.text};default:throw new Error("Unknown action type")}},Gce=e=>({...e,type:"audio",audioUrl:e.audio}),Yce=e=>OI(e),Jce=e=>({...e,type:"carousel",items:e.items.map(OI)}),Xce=e=>({...e,type:"dropdown",text:e.message??"",options:e.options.map(t=>({label:t.label,value:t.value}))}),Qce=e=>({...e,type:"file",fileUrl:e.file,title:e.title}),efe=e=>({...e,type:"image",imageUrl:e.image}),tfe=e=>({...e,type:"location",latitude:e.latitude,longitude:e.longitude}),nfe=e=>({...e,type:"choice",text:e.text,options:e.choices.map(t=>({label:t.title,value:t.value})),disableFreeText:e.disableFreeText}),rfe=e=>({...e,type:"text",text:e.text}),ife=e=>({...e,type:"video",videoUrl:e.video}),ofe=e=>({...e,type:"text",text:e.text??e.payload}),afe=Object.freeze(Object.defineProperty({__proto__:null,messaging:Zce,messagingToWebChat:Object.freeze(Object.defineProperty({__proto__:null,messageAdapter:e=>{switch(e.type){case"audio":return Gce(e);case"card":return Yce(e);case"carousel":return Jce(e);case"dropdown":return Xce(e);case"file":return Qce(e);case"image":return efe(e);case"location":return tfe(e);case"single-choice":return nfe(e);case"text":return rfe(e);case"video":return ife(e);case"quick_reply":return ofe(e);default:throw new Error("Unsuported message type")}}},Symbol.toStringTag,{value:"Module"})),webchat:Uce,webchatToMessaging:Vce},Symbol.toStringTag,{value:"Module"}));let bh;const sfe=new Uint8Array(16);function ufe(){if(!bh&&(bh=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!bh))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return bh(sfe)}const pr=[];for(let e=0;e<256;++e)pr.push((e+256).toString(16).slice(1));function lfe(e,t=0){return pr[e[t+0]]+pr[e[t+1]]+pr[e[t+2]]+pr[e[t+3]]+"-"+pr[e[t+4]]+pr[e[t+5]]+"-"+pr[e[t+6]]+pr[e[t+7]]+"-"+pr[e[t+8]]+pr[e[t+9]]+"-"+pr[e[t+10]]+pr[e[t+11]]+pr[e[t+12]]+pr[e[t+13]]+pr[e[t+14]]+pr[e[t+15]]}const TI={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function cfe(e,t,n){if(TI.randomUUID&&!t&&!e)return TI.randomUUID();e=e||{};const r=e.random||(e.rng||ufe)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return lfe(r)}const _h=e=>({block:e,type:"bubble"}),ffe=e=>e.action==="Say something"?{type:"button",variant:"action",text:e.title,buttonValue:e.text,reusable:!0}:e.action==="Open URL"?{type:"button",variant:"link",text:e.title,buttonValue:e.url,reusable:!0}:{type:"button",variant:"action",text:e.title,buttonValue:e.payload,reusable:!0},$I=({title:e,image:t,actions:n,subtitle:r})=>{const i=[];return t&&i.push({type:"image",url:t}),e&&i.push({type:"text",text:`## ${e}`}),r&&i.push({type:"text",text:r}),n.length>0&&i.push({type:"row",blocks:n.map(ffe)}),{type:"column",horizontalAlignment:"center",blocks:[...i]}},dfe=({choices:e,text:t})=>{const n=cfe(),r=_h({type:"text",text:t});return e.length===0?r:{type:"column",horizontalAlignment:"left",blocks:[r,{type:"row",blocks:e.map(({title:i,value:o})=>({type:"button",variant:"action",text:i,buttonValue:o,groupId:n}))}]}},pfe=({options:e,text:t})=>{const n=[{type:"dropdown",label:t??"Select an option",options:e}];return t&&n.unshift({type:"text",text:t}),{type:"column",blocks:n}},kI=({type:e,audio:t})=>({payload:{type:e,url:t}}),II=e=>({payload:_h($I(e))}),PI=({items:e})=>({payload:{type:"carousel",blocks:e.map($I)}}),RI=e=>({disableInput:e.disableFreeText,payload:dfe(e)}),NI=e=>({disableInput:!0,payload:_h(pfe(e))}),DI=({file:e,...t})=>({payload:{url:e,...t}}),MI=({type:e,image:t})=>({payload:{type:e,url:t}}),jI=({type:e,latitude:t,longitude:n,title:r,address:i})=>({payload:{type:e,latitude:t,longitude:n,title:r??i??"View on map"}}),hfe=({text:e,payload:t})=>({payload:{type:"text",text:e??t}}),qb=({type:e,text:t})=>({payload:_h({type:e,text:t})}),LI=({type:e,video:t})=>({payload:{type:e,url:t}}),FI=e=>{switch(e.type){case"audio":return kI(e);case"card":return II(e);case"carousel":return PI(e);case"single-choice":return RI(e);case"dropdown":return NI(e);case"file":return DI(e);case"image":return MI(e);case"location":return jI(e);case"quick_reply":return hfe(e);case"text":return qb(e);case"video":return LI(e);default:throw new Error("Unsuported message type")}},{webchatToMessaging:ji}=afe,mfe=e=>{const t=ji.audioAdapter(e);return kI(t)},yfe=e=>{const t=ji.cardAdapter(e);return II(t)},gfe=e=>{const t=ji.carouselAdapter(e);return PI(t)},vfe=e=>{const t=ji.choiceAdapter(e);return RI(t)},bfe=e=>{const t=ji.dropdownAdapter(e);return NI(t)},_fe=e=>{const t=ji.fileAdapter(e);return DI(t)},wfe=e=>{const t=ji.imageAdapter(e);return MI(t)},xfe=e=>{const t=ji.locationAdapter(e);return jI(t)},Sfe=e=>{const t=ji.markdownAdapter(e);return qb(t)},Efe=e=>{const t=ji.textAdapter(e);return qb(t)},Afe=e=>{const t=ji.videoAdapter(e);return LI(t)},Cfe=e=>{switch(e.type){case"audio":return mfe(e);case"card":return yfe(e);case"carousel":return gfe(e);case"choice":return vfe(e);case"dropdown":return bfe(e);case"file":return _fe(e);case"image":return wfe(e);case"location":return xfe(e);case"markdown":return Sfe(e);case"text":return Efe(e);case"video":return Afe(e);default:throw new Error("Unsuported message type")}};class Ofe{constructor(t){R(this,"socket");R(this,"clientId");R(this,"apiUrl");R(this,"userId");R(this,"conversationId");R(this,"userToken");R(this,"connected",!1);R(this,"emitter");R(this,"on");R(this,"mode","messaging");this.socket=new YS.MessagingSocket(t),this.emitter=new ig,this.clientId=t.clientId,this.apiUrl=t.url,this.on=this.emitter.on.bind(this.emitter),this.socket.on("message",n=>{const r=n.payload;if(r.type==="trigger")switch(r.trigger.type){case"webchat-visibility":this.emitter.emit("webchatVisibility",r.trigger.visibility);break;case"webchat-config":this.emitter.emit("webchatConfig",r.trigger.config);break;case"custom-event":this.emitter.emit("customEvent",r.trigger.event);break}else{const i=vh.parse(r),{payload:o,disableInput:a}=FI(i);this.emitter.emit("message",{...n,payload:o,disableInput:a})}}),this.socket.on("conversation",n=>{this.emitter.emit("conversation",n)})}async connect(t,n){if(this.connected)return;this.connected=!0;const r=await this.socket.connect(t,n).catch(i=>{throw this.connected=!1,i});return this.userId=r.userId,this.userToken=r.userToken,r}async disconnect(){await this.socket.disconnect(),this.connected=!1}async getUser(){throw new Error("Get user is not supported in messaging mode")}async updateUser(){throw new Error("Update user is not supported in messaging mode")}async sendFile(t){throw new Error("Send file is not supported in messaging mode")}async sendMessage(t){this.conversationId||await this.newConversation(),await this.socket.sendText(t),this.emitter.emit("messageSent",t)}async sendEvent(t){this.conversationId||await this.newConversation(),await this.socket.sendPayload({type:"trigger",payload:t})}async switchConversation(t){await this.socket.switchConversation(t),this.conversationId=t}async conversationExists(t){return(await this.socket.listConversations()).some(r=>r.id===t)}async newConversation(){const{id:t}=await this.socket.createConversation();await this.socket.startConversation(),this.conversationId=t}async listMessages(t){return(await this.socket.listMessages(t)).map(r=>{const i=vh.parse(r.payload),{payload:o,disableInput:a}=FI(i);return{...r,payload:o,disableInput:a}})}}function qI(e,t){return function(){return e.apply(t,arguments)}}const{toString:UI}=Object.prototype,{getPrototypeOf:Ub}=Object,Bb=(e=>t=>{const n=UI.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Fo=e=>(e=e.toLowerCase(),t=>Bb(t)===e),wh=e=>t=>typeof t===e,{isArray:zu}=Array,jc=wh("undefined");function Tfe(e){return e!==null&&!jc(e)&&e.constructor!==null&&!jc(e.constructor)&&Cs(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const BI=Fo("ArrayBuffer");function $fe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&BI(e.buffer),t}const kfe=wh("string"),Cs=wh("function"),zI=wh("number"),zb=e=>e!==null&&typeof e=="object",Ife=e=>e===!0||e===!1,xh=e=>{if(Bb(e)!=="object")return!1;const t=Ub(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Pfe=Fo("Date"),Rfe=Fo("File"),Nfe=Fo("Blob"),Dfe=Fo("FileList"),Mfe=e=>zb(e)&&Cs(e.pipe),jfe=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||UI.call(e)===t||Cs(e.toString)&&e.toString()===t)},Lfe=Fo("URLSearchParams"),Ffe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Lc(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),zu(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let s;for(r=0;r<a;r++)s=o[r],t.call(null,e[s],s,e)}}function ZI(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const HI=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),WI=e=>!jc(e)&&e!==HI;function Zb(){const{caseless:e}=WI(this)&&this||{},t={},n=(r,i)=>{const o=e&&ZI(t,i)||i;xh(t[o])&&xh(r)?t[o]=Zb(t[o],r):xh(r)?t[o]=Zb({},r):zu(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Lc(arguments[r],n);return t}const qfe=(e,t,n,{allOwnKeys:r}={})=>(Lc(t,(i,o)=>{n&&Cs(i)?e[o]=qI(i,n):e[o]=i},{allOwnKeys:r}),e),Ufe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Bfe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},zfe=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Ub(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Zfe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Hfe=e=>{if(!e)return null;if(zu(e))return e;let t=e.length;if(!zI(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Wfe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ub(Uint8Array)),Vfe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},Kfe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Gfe=Fo("HTMLFormElement"),Yfe=e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),VI=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Jfe=Fo("RegExp"),KI=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Lc(n,(i,o)=>{t(i,o,e)!==!1&&(r[o]=i)}),Object.defineProperties(e,r)},ve={isArray:zu,isArrayBuffer:BI,isBuffer:Tfe,isFormData:jfe,isArrayBufferView:$fe,isString:kfe,isNumber:zI,isBoolean:Ife,isObject:zb,isPlainObject:xh,isUndefined:jc,isDate:Pfe,isFile:Rfe,isBlob:Nfe,isRegExp:Jfe,isFunction:Cs,isStream:Mfe,isURLSearchParams:Lfe,isTypedArray:Wfe,isFileList:Dfe,forEach:Lc,merge:Zb,extend:qfe,trim:Ffe,stripBOM:Ufe,inherits:Bfe,toFlatObject:zfe,kindOf:Bb,kindOfTest:Fo,endsWith:Zfe,toArray:Hfe,forEachEntry:Vfe,matchAll:Kfe,isHTMLForm:Gfe,hasOwnProperty:VI,hasOwnProp:VI,reduceDescriptors:KI,freezeMethods:e=>{KI(e,(t,n)=>{if(Cs(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Cs(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return zu(e)?r(e):r(String(e).split(t)),n},toCamelCase:Yfe,noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:ZI,global:HI,isContextDefined:WI,toJSONObject:e=>{const t=new Array(10),n=(r,i)=>{if(zb(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=zu(r)?[]:{};return Lc(r,(a,s)=>{const l=n(a,i+1);!jc(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)}};function nn(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}ve.inherits(nn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ve.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const GI=nn.prototype,YI={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{YI[e]={value:e}}),Object.defineProperties(nn,YI),Object.defineProperty(GI,"isAxiosError",{value:!0}),nn.from=(e,t,n,r,i,o)=>{const a=Object.create(GI);return ve.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),nn.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};var Xfe=typeof self=="object"?self.FormData:window.FormData;const Qfe=Oo(Xfe);function Hb(e){return ve.isPlainObject(e)||ve.isArray(e)}function JI(e){return ve.endsWith(e,"[]")?e.slice(0,-2):e}function XI(e,t,n){return e?e.concat(t).map(function(i,o){return i=JI(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function ede(e){return ve.isArray(e)&&!e.some(Hb)}const tde=ve.toFlatObject(ve,{},null,function(t){return/^is[A-Z]/.test(t)});function nde(e){return e&&ve.isFunction(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator]}function Sh(e,t,n){if(!ve.isObject(e))throw new TypeError("target must be an object");t=t||new(Qfe||FormData),n=ve.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,w){return!ve.isUndefined(w[v])});const r=n.metaTokens,i=n.visitor||d,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&nde(t);if(!ve.isFunction(i))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(ve.isDate(y))return y.toISOString();if(!l&&ve.isBlob(y))throw new nn("Blob is not supported. Use a Buffer instead.");return ve.isArrayBuffer(y)||ve.isTypedArray(y)?l&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,v,w){let _=y;if(y&&!w&&typeof y=="object"){if(ve.endsWith(v,"{}"))v=r?v:v.slice(0,-2),y=JSON.stringify(y);else if(ve.isArray(y)&&ede(y)||ve.isFileList(y)||ve.endsWith(v,"[]")&&(_=ve.toArray(y)))return v=JI(v),_.forEach(function(S,A){!(ve.isUndefined(S)||S===null)&&t.append(a===!0?XI([v],A,o):a===null?v:v+"[]",c(S))}),!1}return Hb(y)?!0:(t.append(XI(w,v,o),c(y)),!1)}const p=[],m=Object.assign(tde,{defaultVisitor:d,convertValue:c,isVisitable:Hb});function h(y,v){if(!ve.isUndefined(y)){if(p.indexOf(y)!==-1)throw Error("Circular reference detected in "+v.join("."));p.push(y),ve.forEach(y,function(_,b){(!(ve.isUndefined(_)||_===null)&&i.call(t,_,ve.isString(b)?b.trim():b,v,m))===!0&&h(_,v?v.concat(b):[b])}),p.pop()}}if(!ve.isObject(e))throw new TypeError("data must be an object");return h(e),t}function QI(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Wb(e,t){this._pairs=[],e&&Sh(e,this,t)}const eP=Wb.prototype;eP.append=function(t,n){this._pairs.push([t,n])},eP.toString=function(t){const n=t?function(r){return t.call(this,r,QI)}:QI;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function rde(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function tP(e,t,n){if(!t)return e;const r=n&&n.encode||rde,i=n&&n.serialize;let o;if(i?o=i(t,n):o=ve.isURLSearchParams(t)?t.toString():new Wb(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class ide{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ve.forEach(this.handlers,function(r){r!==null&&t(r)})}}const nP=ide,rP={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ode=typeof URLSearchParams<"u"?URLSearchParams:Wb,ade=FormData,sde=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),ude=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),fo={isBrowser:!0,classes:{URLSearchParams:ode,FormData:ade,Blob},isStandardBrowserEnv:sde,isStandardBrowserWebWorkerEnv:ude,protocols:["http","https","file","blob","url","data"]};function lde(e,t){return Sh(e,new fo.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return fo.isNode&&ve.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function cde(e){return ve.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function fde(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function iP(e){function t(n,r,i,o){let a=n[o++];const s=Number.isFinite(+a),l=o>=n.length;return a=!a&&ve.isArray(i)?i.length:a,l?(ve.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!ve.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&ve.isArray(i[a])&&(i[a]=fde(i[a])),!s)}if(ve.isFormData(e)&&ve.isFunction(e.entries)){const n={};return ve.forEachEntry(e,(r,i)=>{t(cde(r),i,n,0)}),n}return null}const dde={"Content-Type":void 0};function pde(e,t,n){if(ve.isString(e))try{return(t||JSON.parse)(e),ve.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Eh={transitional:rP,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=ve.isObject(t);if(o&&ve.isHTMLForm(t)&&(t=new FormData(t)),ve.isFormData(t))return i&&i?JSON.stringify(iP(t)):t;if(ve.isArrayBuffer(t)||ve.isBuffer(t)||ve.isStream(t)||ve.isFile(t)||ve.isBlob(t))return t;if(ve.isArrayBufferView(t))return t.buffer;if(ve.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return lde(t,this.formSerializer).toString();if((s=ve.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Sh(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),pde(t)):t}],transformResponse:[function(t){const n=this.transitional||Eh.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&ve.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?nn.from(s,nn.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:fo.classes.FormData,Blob:fo.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ve.forEach(["delete","get","head"],function(t){Eh.headers[t]={}}),ve.forEach(["post","put","patch"],function(t){Eh.headers[t]=ve.merge(dde)});const Vb=Eh,hde=ve.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),mde=e=>{const t={};let n,r,i;return e&&e.split(`
|
|
189
|
+
`+ae.prev}function Cn(ee,ae){var ft=Me(ee),At=[];if(ft){At.length=ee.length;for(var on=0;on<ee.length;on++)At[on]=K(ee,on)?ae(ee[on],ee):""}var pt=typeof G=="function"?G(ee):[],Mn;if(F){Mn={};for(var sr=0;sr<pt.length;sr++)Mn["$"+pt[sr]]=pt[sr]}for(var N in ee)K(ee,N)&&(ft&&String(Number(N))===N&&N<ee.length||F&&Mn["$"+N]instanceof Symbol||(q.call(/[^\w$]/,N)?At.push(ae(N,ee)+": "+ae(ee[N],ee)):At.push(N+": "+ae(ee[N],ee))));if(typeof G=="function")for(var je=0;je<pt.length;je++)ne.call(ee,pt[je])&&At.push("["+ae(pt[je])+"]: "+ae(ee[pt[je]],ee));return At}}),Kse=Xn((e,t)=>{var n=Rb(),r=Hse(),i=Vse(),o=n("%TypeError%"),a=n("%WeakMap%",!0),s=n("%Map%",!0),l=r("WeakMap.prototype.get",!0),c=r("WeakMap.prototype.set",!0),d=r("WeakMap.prototype.has",!0),p=r("Map.prototype.get",!0),m=r("Map.prototype.set",!0),h=r("Map.prototype.has",!0),y=function(b,S){for(var A=b,E;(E=A.next)!==null;A=E)if(E.key===S)return A.next=E.next,E.next=b.next,b.next=E,E},v=function(b,S){var A=y(b,S);return A&&A.value},w=function(b,S,A){var E=y(b,S);E?E.value=A:b.next={key:S,next:b.next,value:A}},_=function(b,S){return!!y(b,S)};t.exports=function(){var b,S,A,E={assert:function(T){if(!E.has(T))throw new o("Side channel does not contain "+i(T))},get:function(T){if(a&&T&&(typeof T=="object"||typeof T=="function")){if(b)return l(b,T)}else if(s){if(S)return p(S,T)}else if(A)return v(A,T)},has:function(T){if(a&&T&&(typeof T=="object"||typeof T=="function")){if(b)return d(b,T)}else if(s){if(S)return h(S,T)}else if(A)return _(A,T);return!1},set:function(T,j){a&&T&&(typeof T=="object"||typeof T=="function")?(b||(b=new a),c(b,T,j)):s?(S||(S=new s),m(S,T,j)):(A||(A={key:{},next:null}),w(A,T,j))}};return E}}),Nb=Xn((e,t)=>{var n=String.prototype.replace,r=/%20/g,i={RFC1738:"RFC1738",RFC3986:"RFC3986"};t.exports={default:i.RFC3986,formatters:{RFC1738:function(o){return n.call(o,r,"+")},RFC3986:function(o){return String(o)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}}),fk=Xn((e,t)=>{var n=Nb(),r=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var _=[],b=0;b<256;++b)_.push("%"+((b<16?"0":"")+b.toString(16)).toUpperCase());return _}(),a=function(_){for(;_.length>1;){var b=_.pop(),S=b.obj[b.prop];if(i(S)){for(var A=[],E=0;E<S.length;++E)typeof S[E]<"u"&&A.push(S[E]);b.obj[b.prop]=A}}},s=function(_,b){for(var S=b&&b.plainObjects?Object.create(null):{},A=0;A<_.length;++A)typeof _[A]<"u"&&(S[A]=_[A]);return S},l=function _(b,S,A){if(!S)return b;if(typeof S!="object"){if(i(b))b.push(S);else if(b&&typeof b=="object")(A&&(A.plainObjects||A.allowPrototypes)||!r.call(Object.prototype,S))&&(b[S]=!0);else return[b,S];return b}if(!b||typeof b!="object")return[b].concat(S);var E=b;return i(b)&&!i(S)&&(E=s(b,A)),i(b)&&i(S)?(S.forEach(function(T,j){if(r.call(b,j)){var q=b[j];q&&typeof q=="object"&&T&&typeof T=="object"?b[j]=_(q,T,A):b.push(T)}else b[j]=T}),b):Object.keys(S).reduce(function(T,j){var q=S[j];return r.call(T,j)?T[j]=_(T[j],q,A):T[j]=q,T},E)},c=function(_,b){return Object.keys(b).reduce(function(S,A){return S[A]=b[A],S},_)},d=function(_,b,S){var A=_.replace(/\+/g," ");if(S==="iso-8859-1")return A.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(A)}catch{return A}},p=function(_,b,S,A,E){if(_.length===0)return _;var T=_;if(typeof _=="symbol"?T=Symbol.prototype.toString.call(_):typeof _!="string"&&(T=String(_)),S==="iso-8859-1")return escape(T).replace(/%u[0-9a-f]{4}/gi,function(M){return"%26%23"+parseInt(M.slice(2),16)+"%3B"});for(var j="",q=0;q<T.length;++q){var L=T.charCodeAt(q);if(L===45||L===46||L===95||L===126||L>=48&&L<=57||L>=65&&L<=90||L>=97&&L<=122||E===n.RFC1738&&(L===40||L===41)){j+=T.charAt(q);continue}if(L<128){j=j+o[L];continue}if(L<2048){j=j+(o[192|L>>6]+o[128|L&63]);continue}if(L<55296||L>=57344){j=j+(o[224|L>>12]+o[128|L>>6&63]+o[128|L&63]);continue}q+=1,L=65536+((L&1023)<<10|T.charCodeAt(q)&1023),j+=o[240|L>>18]+o[128|L>>12&63]+o[128|L>>6&63]+o[128|L&63]}return j},m=function(_){for(var b=[{obj:{o:_},prop:"o"}],S=[],A=0;A<b.length;++A)for(var E=b[A],T=E.obj[E.prop],j=Object.keys(T),q=0;q<j.length;++q){var L=j[q],M=T[L];typeof M=="object"&&M!==null&&S.indexOf(M)===-1&&(b.push({obj:T,prop:L}),S.push(M))}return a(b),_},h=function(_){return Object.prototype.toString.call(_)==="[object RegExp]"},y=function(_){return!_||typeof _!="object"?!1:!!(_.constructor&&_.constructor.isBuffer&&_.constructor.isBuffer(_))},v=function(_,b){return[].concat(_,b)},w=function(_,b){if(i(_)){for(var S=[],A=0;A<_.length;A+=1)S.push(b(_[A]));return S}return b(_)};t.exports={arrayToObject:s,assign:c,combine:v,compact:m,decode:d,encode:p,isBuffer:y,isRegExp:h,maybeMap:w,merge:l}}),Gse=Xn((e,t)=>{var n=Kse(),r=fk(),i=Nb(),o=Object.prototype.hasOwnProperty,a={brackets:function(b){return b+"[]"},comma:"comma",indices:function(b,S){return b+"["+S+"]"},repeat:function(b){return b}},s=Array.isArray,l=String.prototype.split,c=Array.prototype.push,d=function(b,S){c.apply(b,s(S)?S:[S])},p=Date.prototype.toISOString,m=i.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:m,formatter:i.formatters[m],indices:!1,serializeDate:function(b){return p.call(b)},skipNulls:!1,strictNullHandling:!1},y=function(b){return typeof b=="string"||typeof b=="number"||typeof b=="boolean"||typeof b=="symbol"||typeof b=="bigint"},v={},w=function b(S,A,E,T,j,q,L,M,H,re,Q,G,V,F,Y,ne){for(var ce=S,P=ne,ue=0,Oe=!1;(P=P.get(v))!==void 0&&!Oe;){var D=P.get(S);if(ue+=1,typeof D<"u"){if(D===ue)throw new RangeError("Cyclic object value");Oe=!0}typeof P.get(v)>"u"&&(ue=0)}if(typeof M=="function"?ce=M(A,ce):ce instanceof Date?ce=Q(ce):E==="comma"&&s(ce)&&(ce=r.maybeMap(ce,function(de){return de instanceof Date?Q(de):de})),ce===null){if(j)return L&&!F?L(A,h.encoder,Y,"key",G):A;ce=""}if(y(ce)||r.isBuffer(ce)){if(L){var De=F?A:L(A,h.encoder,Y,"key",G);if(E==="comma"&&F){for(var qe=l.call(String(ce),","),Me="",Je=0;Je<qe.length;++Je)Me+=(Je===0?"":",")+V(L(qe[Je],h.encoder,Y,"value",G));return[V(De)+(T&&s(ce)&&qe.length===1?"[]":"")+"="+Me]}return[V(De)+"="+V(L(ce,h.encoder,Y,"value",G))]}return[V(A)+"="+V(String(ce))]}var rt=[];if(typeof ce>"u")return rt;var Ke;if(E==="comma"&&s(ce))Ke=[{value:ce.length>0?ce.join(",")||null:void 0}];else if(s(M))Ke=M;else{var Pe=Object.keys(ce);Ke=H?Pe.sort(H):Pe}for(var Ae=T&&s(ce)&&ce.length===1?A+"[]":A,Fe=0;Fe<Ke.length;++Fe){var $e=Ke[Fe],Ze=typeof $e=="object"&&typeof $e.value<"u"?$e.value:ce[$e];if(!(q&&Ze===null)){var lt=s(ce)?typeof E=="function"?E(Ae,$e):Ae:Ae+(re?"."+$e:"["+$e+"]");ne.set(S,ue);var K=n();K.set(v,ne),d(rt,b(Ze,lt,E,T,j,q,L,M,H,re,Q,G,V,F,Y,K))}}return rt},_=function(b){if(!b)return h;if(b.encoder!==null&&typeof b.encoder<"u"&&typeof b.encoder!="function")throw new TypeError("Encoder has to be a function.");var S=b.charset||h.charset;if(typeof b.charset<"u"&&b.charset!=="utf-8"&&b.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var A=i.default;if(typeof b.format<"u"){if(!o.call(i.formatters,b.format))throw new TypeError("Unknown format option provided.");A=b.format}var E=i.formatters[A],T=h.filter;return(typeof b.filter=="function"||s(b.filter))&&(T=b.filter),{addQueryPrefix:typeof b.addQueryPrefix=="boolean"?b.addQueryPrefix:h.addQueryPrefix,allowDots:typeof b.allowDots>"u"?h.allowDots:!!b.allowDots,charset:S,charsetSentinel:typeof b.charsetSentinel=="boolean"?b.charsetSentinel:h.charsetSentinel,delimiter:typeof b.delimiter>"u"?h.delimiter:b.delimiter,encode:typeof b.encode=="boolean"?b.encode:h.encode,encoder:typeof b.encoder=="function"?b.encoder:h.encoder,encodeValuesOnly:typeof b.encodeValuesOnly=="boolean"?b.encodeValuesOnly:h.encodeValuesOnly,filter:T,format:A,formatter:E,serializeDate:typeof b.serializeDate=="function"?b.serializeDate:h.serializeDate,skipNulls:typeof b.skipNulls=="boolean"?b.skipNulls:h.skipNulls,sort:typeof b.sort=="function"?b.sort:null,strictNullHandling:typeof b.strictNullHandling=="boolean"?b.strictNullHandling:h.strictNullHandling}};t.exports=function(b,S){var A=b,E=_(S),T,j;typeof E.filter=="function"?(j=E.filter,A=j("",A)):s(E.filter)&&(j=E.filter,T=j);var q=[];if(typeof A!="object"||A===null)return"";var L;S&&S.arrayFormat in a?L=S.arrayFormat:S&&"indices"in S?L=S.indices?"indices":"repeat":L="indices";var M=a[L];if(S&&"commaRoundTrip"in S&&typeof S.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var H=M==="comma"&&S&&S.commaRoundTrip;T||(T=Object.keys(A)),E.sort&&T.sort(E.sort);for(var re=n(),Q=0;Q<T.length;++Q){var G=T[Q];E.skipNulls&&A[G]===null||d(q,w(A[G],G,M,H,E.strictNullHandling,E.skipNulls,E.encode?E.encoder:null,E.filter,E.sort,E.allowDots,E.serializeDate,E.format,E.formatter,E.encodeValuesOnly,E.charset,re))}var V=q.join(E.delimiter),F=E.addQueryPrefix===!0?"?":"";return E.charsetSentinel&&(E.charset==="iso-8859-1"?F+="utf8=%26%2310003%3B&":F+="utf8=%E2%9C%93&"),V.length>0?F+V:""}}),Yse=Xn((e,t)=>{var n=fk(),r=Object.prototype.hasOwnProperty,i=Array.isArray,o={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(y){return y.replace(/&#(\d+);/g,function(v,w){return String.fromCharCode(parseInt(w,10))})},s=function(y,v){return y&&typeof y=="string"&&v.comma&&y.indexOf(",")>-1?y.split(","):y},l="utf8=%26%2310003%3B",c="utf8=%E2%9C%93",d=function(y,v){var w={},_=v.ignoreQueryPrefix?y.replace(/^\?/,""):y,b=v.parameterLimit===1/0?void 0:v.parameterLimit,S=_.split(v.delimiter,b),A=-1,E,T=v.charset;if(v.charsetSentinel)for(E=0;E<S.length;++E)S[E].indexOf("utf8=")===0&&(S[E]===c?T="utf-8":S[E]===l&&(T="iso-8859-1"),A=E,E=S.length);for(E=0;E<S.length;++E)if(E!==A){var j=S[E],q=j.indexOf("]="),L=q===-1?j.indexOf("="):q+1,M,H;L===-1?(M=v.decoder(j,o.decoder,T,"key"),H=v.strictNullHandling?null:""):(M=v.decoder(j.slice(0,L),o.decoder,T,"key"),H=n.maybeMap(s(j.slice(L+1),v),function(re){return v.decoder(re,o.decoder,T,"value")})),H&&v.interpretNumericEntities&&T==="iso-8859-1"&&(H=a(H)),j.indexOf("[]=")>-1&&(H=i(H)?[H]:H),r.call(w,M)?w[M]=n.combine(w[M],H):w[M]=H}return w},p=function(y,v,w,_){for(var b=_?v:s(v,w),S=y.length-1;S>=0;--S){var A,E=y[S];if(E==="[]"&&w.parseArrays)A=[].concat(b);else{A=w.plainObjects?Object.create(null):{};var T=E.charAt(0)==="["&&E.charAt(E.length-1)==="]"?E.slice(1,-1):E,j=parseInt(T,10);!w.parseArrays&&T===""?A={0:b}:!isNaN(j)&&E!==T&&String(j)===T&&j>=0&&w.parseArrays&&j<=w.arrayLimit?(A=[],A[j]=b):T!=="__proto__"&&(A[T]=b)}b=A}return b},m=function(y,v,w,_){if(y){var b=w.allowDots?y.replace(/\.([^.[]+)/g,"[$1]"):y,S=/(\[[^[\]]*])/,A=/(\[[^[\]]*])/g,E=w.depth>0&&S.exec(b),T=E?b.slice(0,E.index):b,j=[];if(T){if(!w.plainObjects&&r.call(Object.prototype,T)&&!w.allowPrototypes)return;j.push(T)}for(var q=0;w.depth>0&&(E=A.exec(b))!==null&&q<w.depth;){if(q+=1,!w.plainObjects&&r.call(Object.prototype,E[1].slice(1,-1))&&!w.allowPrototypes)return;j.push(E[1])}return E&&j.push("["+b.slice(E.index)+"]"),p(j,v,w,_)}},h=function(y){if(!y)return o;if(y.decoder!==null&&y.decoder!==void 0&&typeof y.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof y.charset<"u"&&y.charset!=="utf-8"&&y.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var v=typeof y.charset>"u"?o.charset:y.charset;return{allowDots:typeof y.allowDots>"u"?o.allowDots:!!y.allowDots,allowPrototypes:typeof y.allowPrototypes=="boolean"?y.allowPrototypes:o.allowPrototypes,allowSparse:typeof y.allowSparse=="boolean"?y.allowSparse:o.allowSparse,arrayLimit:typeof y.arrayLimit=="number"?y.arrayLimit:o.arrayLimit,charset:v,charsetSentinel:typeof y.charsetSentinel=="boolean"?y.charsetSentinel:o.charsetSentinel,comma:typeof y.comma=="boolean"?y.comma:o.comma,decoder:typeof y.decoder=="function"?y.decoder:o.decoder,delimiter:typeof y.delimiter=="string"||n.isRegExp(y.delimiter)?y.delimiter:o.delimiter,depth:typeof y.depth=="number"||y.depth===!1?+y.depth:o.depth,ignoreQueryPrefix:y.ignoreQueryPrefix===!0,interpretNumericEntities:typeof y.interpretNumericEntities=="boolean"?y.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:typeof y.parameterLimit=="number"?y.parameterLimit:o.parameterLimit,parseArrays:y.parseArrays!==!1,plainObjects:typeof y.plainObjects=="boolean"?y.plainObjects:o.plainObjects,strictNullHandling:typeof y.strictNullHandling=="boolean"?y.strictNullHandling:o.strictNullHandling}};t.exports=function(y,v){var w=h(v);if(y===""||y===null||typeof y>"u")return w.plainObjects?Object.create(null):{};for(var _=typeof y=="string"?d(y,w):y,b=w.plainObjects?Object.create(null):{},S=Object.keys(_),A=0;A<S.length;++A){var E=S[A],T=m(E,_[E],w,typeof y=="string");b=n.merge(b,T,w)}return w.allowSparse===!0?b:n.compact(b)}}),Jse=Xn((e,t)=>{var n=Gse(),r=Yse(),i=Nb();t.exports={formats:i,parse:r,stringify:n}}),Xse={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},Db=typeof window<"u"&&typeof window.document<"u"?window.crypto:mb;Db.getRandomValues||(Db=Xse);var xn=class extends Error{constructor(t,n,r,i,o,a){super(i);R(this,"isApiError",!0);this.code=t,this.description=n,this.type=r,this.message=i,this.error=o,this.id=a,this.id||(this.id=xn.generateId())}format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message}}static generateId(){let t=this.getPrefix(),n=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],r=4,i=Array.from(Db.getRandomValues(new Uint8Array(r))).map(o=>o.toString(16).padStart(2,"0")).join("").toUpperCase();return`${t}_${n}x${i}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},Qse=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,dk=e=>e instanceof xn||Qse(e)&&e.isApiError===!0,Bu=class extends xn{constructor(t,n,r){super(500,"An unknown error occurred","Unknown",t,n,r)}},pk=class extends xn{constructor(e,t,n){super(500,"An internal error occurred","Internal",e,t,n)}},hk=class extends xn{constructor(e,t,n){super(401,"The request requires to be authenticated.","Unauthorized",e,t,n)}},mk=class extends xn{constructor(e,t,n){super(403,"The requested action can't be peform by this resource.","Forbidden",e,t,n)}},yk=class extends xn{constructor(e,t,n){super(413,"The request payload is too large.","PayloadTooLarge",e,t,n)}},gk=class extends xn{constructor(e,t,n){super(400,"The request payload is invalid.","InvalidPayload",e,t,n)}},vk=class extends xn{constructor(e,t,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",e,t,n)}},bk=class extends xn{constructor(e,t,n){super(405,"The requested method does not exist.","MethodNotFound",e,t,n)}},_k=class extends xn{constructor(t,n,r){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,r)}},wk=class extends xn{constructor(e,t,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",e,t,n)}},xk=class extends xn{constructor(t,n,r){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,n,r)}},Sk=class extends xn{constructor(e,t,n){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",e,t,n)}},Ek=class extends xn{constructor(e,t,n){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",e,t,n)}},Ak=class extends xn{constructor(t,n,r){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,n,r)}},Ck=class extends xn{constructor(e,t,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",e,t,n)}},Ok=class extends xn{constructor(e,t,n){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",e,t,n)}},Tk=class extends xn{constructor(e,t,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",e,t,n)}},$k=class extends xn{constructor(t,n,r){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,n,r)}},kk=class extends xn{constructor(e,t,n){super(409,"The record attempted to be created already exists.","AlreadyExists",e,t,n)}},Ik=class extends xn{constructor(e,t,n){super(429,"The request has been rate limited.","RateLimited",e,t,n)}},Pk=class extends xn{constructor(e,t,n){super(402,"A payment is required to perform this request.","PaymentRequired",e,t,n)}},Rk=class extends xn{constructor(e,t,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",e,t,n)}},Nk=class extends xn{constructor(e,t,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",e,t,n)}},Dk=class extends xn{constructor(e,t,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",e,t,n)}},eue={Unknown:Bu,Internal:pk,Unauthorized:hk,Forbidden:mk,PayloadTooLarge:yk,InvalidPayload:gk,UnsupportedMediaType:vk,MethodNotFound:bk,ResourceNotFound:_k,InvalidJsonSchema:wk,InvalidDataFormat:xk,InvalidIdentifier:Sk,RelationConflict:Ek,ReferenceConstraint:Ak,ResourceLockedConflict:Ck,ReferenceNotFound:Ok,InvalidQuery:Tk,Runtime:$k,AlreadyExists:kk,RateLimited:Ik,PaymentRequired:Pk,QuotaExceeded:Rk,LimitExceeded:Nk,BreakingChanges:Dk},Mb=e=>dk(e)?e:e instanceof Error?new Bu(e.message,e):typeof e=="string"?new Bu(e):tue(e);function tue(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=eue[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN"):new Bu(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new Bu("An invalid error occurred: "+JSON.stringify(e))}var Mc=class extends Error{constructor(t,n,r){super(t),this.innerError=n,this.file=r,this.name="FileUploadError"}},nue=Ib(jse()),rue=Ib(Lse()),iue="https://api.botpress.cloud",oue=6e4,aue="BP_API_URL",sue="BP_BOT_ID",uue="BP_INTEGRATION_ID",lue="BP_WORKSPACE_ID",cue="BP_TOKEN";function fue(e){let t=due(e),n={};t.workspaceId&&(n["x-workspace-id"]=t.workspaceId),t.botId&&(n["x-bot-id"]=t.botId),t.integrationId&&(n["x-integration-id"]=t.integrationId),t.token&&(n.Authorization=`Bearer ${t.token}`),n={...n,...t.headers};let r=t.apiUrl??iue,i=t.timeout??oue;return{apiUrl:r,timeout:i,withCredentials:lk,headers:n}}function due(e){return lk?e:kb?pue(e):e}function pue(e){let t={...e,apiUrl:e.apiUrl??process.env[aue],botId:e.botId??process.env[sue],integrationId:e.integrationId??process.env[uue],workspaceId:e.workspaceId??process.env[lue]},n=t.token??process.env[cue];return n&&(t.token=n),t}var hue=Ib(Jse()),mue=e=>e[1]!==void 0,pe=e=>{let{method:t,path:n,query:r,headers:i,body:o}=e,a=Object.entries(i).filter(mue),s=Object.fromEntries(a),l=hue.default.stringify(r,{encode:!0,arrayFormat:"repeat",allowDots:!0}),c=l?[n,l].join("?"):n;return{method:t,url:c,headers:s,data:o}},yue=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}}),gue=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),vue=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName},params:{},body:{}}),bue=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}}),_ue=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}}),wue=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),xue=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}}),Sue=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}}),Eue=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}}),Aue=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}}),Cue=e=>({path:"/v1/chat/events",headers:{},query:{},params:{},body:{type:e.type,payload:e.payload,schedule:e.schedule,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId}}),Oue=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),Tue=e=>({path:"/v1/chat/events",headers:{},query:{nextToken:e.nextToken,type:e.type,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId,status:e.status},params:{},body:{}}),$ue=e=>({path:"/v1/chat/messages",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule}}),kue=e=>({path:"/v1/chat/messages/get-or-create",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule}}),Iue=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),Pue=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags}}),Rue=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}}),Nue=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),Due=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}}),Mue=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),jue=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}}),Lue=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}}),Fue=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,name:e.name,pictureUrl:e.pictureUrl}}),que=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),Uue=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{}}),Bue=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}}),zue=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/get-or-set`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}}),Zue=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload}}),Hue=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}}),Wue=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier}}),Vue=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),Kue=e=>({path:"/v1/chat/tasks",headers:{},query:{},params:{},body:{title:e.title,description:e.description,type:e.type,data:e.data,parentTaskId:e.parentTaskId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags}}),Gue=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{title:e.title,description:e.description,data:e.data,timeoutAt:e.timeoutAt,status:e.status,tags:e.tags}}),Yue=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),Jue=e=>({path:"/v1/chat/tasks",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentTaskId:e.parentTaskId,status:e.status,type:e.type},params:{},body:{}}),Xue=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}}),Que=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}}),ele=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}}),tle=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}}),nle=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}}),rle=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}}),ile=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),ole=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}}),ale=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}}),sle=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}}),ule=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),lle=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}}),cle=e=>({path:"/v1/admin/bots",headers:{},query:{},params:{},body:{states:e.states,events:e.events,recurringEvents:e.recurringEvents,subscriptions:e.subscriptions,actions:e.actions,configuration:e.configuration,user:e.user,conversation:e.conversation,message:e.message,code:e.code,name:e.name,medias:e.medias,url:e.url,dev:e.dev}}),fle=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,blocked:e.blocked,alwaysAlive:e.alwaysAlive,user:e.user,message:e.message,conversation:e.conversation,events:e.events,actions:e.actions,states:e.states,recurringEvents:e.recurringEvents,integrations:e.integrations,subscriptions:e.subscriptions,code:e.code,name:e.name,medias:e.medias}}),dle=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}}),ple=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}}),hle=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),mle=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),yle=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,nextToken:e.nextToken},params:{id:e.id},body:{}}),gle=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}}),vle=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}}),ble=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}}),_le=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}}),wle=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}}),xle=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}}),Sle=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/payment-method`,headers:{},query:{},params:{id:e.id},body:{stripePaymentMethodId:e.stripePaymentMethodId}}),Ele=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}}),Ale=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}}),Cle=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}}),Ole=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}}),Tle=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}}),$le=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),kle=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}}),Ile=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages/by-bot`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}}),Ple=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}}),Rle=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}}),Nle=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}}),Dle=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,spendingLimit:e.spendingLimit,about:e.about,profilePicture:e.profilePicture,contactEmail:e.contactEmail,website:e.website,socialAccounts:e.socialAccounts,isPublic:e.isPublic,handle:e.handle}}),Mle=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}}),jle=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken},params:{},body:{}}),Lle=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}}),Fle=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),qle=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}}),Ule=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}}),Ble=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}}),zle=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),Zle=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}}),Hle=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}}),Wle=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}}),Vle=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}}),Kle=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),Gle=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,interfaces:e.interfaces,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,entities:e.entities,identifier:e.identifier,channels:e.channels,user:e.user,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}}),Yle=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,channels:e.channels,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public}}),Jle=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version,dev:e.dev},params:{},body:{}}),Xle=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),Qle=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,nextToken:e.nextToken},params:{id:e.id},body:{}}),ece=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}}),tce=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),nce=e=>({path:"/v1/admin/interfaces",headers:{},query:{},params:{},body:{name:e.name,version:e.version,events:e.events,actions:e.actions,entities:e.entities}}),rce=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),ice=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}}),oce=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{events:e.events,actions:e.actions,entities:e.entities}}),ace=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),sce=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken},params:{},body:{}}),uce=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}}),lce=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}}),cce=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}}),fce=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}}),dce=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}}),pce=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}}),hce=e=>({path:"/v1/files",headers:{},query:{},params:{},body:{key:e.key,tags:e.tags,size:e.size,index:e.index,accessPolicies:e.accessPolicies,contentType:e.contentType}}),mce=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),yce=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,tags:e.tags},params:{},body:{}}),gce=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}}),vce=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,accessPolicies:e.accessPolicies}}),bce=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit},params:{},body:{}}),_ce=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}}),wce=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}}),xce=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}}),Sce=e=>({path:"/v1/tables",headers:{},query:{},params:{},body:{name:e.name,factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}}),Ece=e=>({path:`/v1/tables/${encodeURIComponent(e.sourceTableId)}/duplicate`,headers:{},query:{},params:{sourceTableId:e.sourceTableId},body:{tableName:e.tableName,schemaOnly:e.schemaOnly,factor:e.factor}}),Ace=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{name:e.name,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}}),Cce=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}}),Oce=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}}),Tce=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}}),$ce=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/find`,headers:{},query:{},params:{table:e.table},body:{limit:e.limit,offset:e.offset,filter:e.filter,group:e.group,search:e.search,orderBy:e.orderBy,orderDirection:e.orderDirection}}),kce=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}}),Ice=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/delete`,headers:{},query:{},params:{table:e.table},body:{ids:e.ids,filter:e.filter,deleteAllRows:e.deleteAllRows}}),Pce=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}}),Rce=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/upsert`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,keyColumn:e.keyColumn,waitComputed:e.waitComputed}}),Nce=class{constructor(t,n={}){R(this,"createConversation",async t=>{let{path:n,headers:r,query:i,body:o}=yue(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getConversation",async t=>{let{path:n,headers:r,query:i,body:o}=gue(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listConversations",async t=>{let{path:n,headers:r,query:i,body:o}=vue(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getOrCreateConversation",async t=>{let{path:n,headers:r,query:i,body:o}=bue(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"updateConversation",async t=>{let{path:n,headers:r,query:i,body:o}=_ue(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"deleteConversation",async t=>{let{path:n,headers:r,query:i,body:o}=wue(t),a=(this.props.toAxiosRequest??pe)({method:"delete",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listParticipants",async t=>{let{path:n,headers:r,query:i,body:o}=xue(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"addParticipant",async t=>{let{path:n,headers:r,query:i,body:o}=Sue(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getParticipant",async t=>{let{path:n,headers:r,query:i,body:o}=Eue(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"removeParticipant",async t=>{let{path:n,headers:r,query:i,body:o}=Aue(t),a=(this.props.toAxiosRequest??pe)({method:"delete",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"createEvent",async t=>{let{path:n,headers:r,query:i,body:o}=Cue(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getEvent",async t=>{let{path:n,headers:r,query:i,body:o}=Oue(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listEvents",async t=>{let{path:n,headers:r,query:i,body:o}=Tue(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"createMessage",async t=>{let{path:n,headers:r,query:i,body:o}=$ue(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getOrCreateMessage",async t=>{let{path:n,headers:r,query:i,body:o}=kue(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getMessage",async t=>{let{path:n,headers:r,query:i,body:o}=Iue(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"updateMessage",async t=>{let{path:n,headers:r,query:i,body:o}=Pue(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listMessages",async t=>{let{path:n,headers:r,query:i,body:o}=Rue(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"deleteMessage",async t=>{let{path:n,headers:r,query:i,body:o}=Nue(t),a=(this.props.toAxiosRequest??pe)({method:"delete",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"createUser",async t=>{let{path:n,headers:r,query:i,body:o}=Due(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getUser",async t=>{let{path:n,headers:r,query:i,body:o}=Mue(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listUsers",async t=>{let{path:n,headers:r,query:i,body:o}=jue(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getOrCreateUser",async t=>{let{path:n,headers:r,query:i,body:o}=Lue(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"updateUser",async t=>{let{path:n,headers:r,query:i,body:o}=Fue(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"deleteUser",async t=>{let{path:n,headers:r,query:i,body:o}=que(t),a=(this.props.toAxiosRequest??pe)({method:"delete",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getState",async t=>{let{path:n,headers:r,query:i,body:o}=Uue(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"setState",async t=>{let{path:n,headers:r,query:i,body:o}=Bue(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getOrSetState",async t=>{let{path:n,headers:r,query:i,body:o}=zue(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"patchState",async t=>{let{path:n,headers:r,query:i,body:o}=Zue(t),a=(this.props.toAxiosRequest??pe)({method:"patch",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"callAction",async t=>{let{path:n,headers:r,query:i,body:o}=Hue(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"configureIntegration",async t=>{let{path:n,headers:r,query:i,body:o}=Wue(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getTask",async t=>{let{path:n,headers:r,query:i,body:o}=Vue(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"createTask",async t=>{let{path:n,headers:r,query:i,body:o}=Kue(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"updateTask",async t=>{let{path:n,headers:r,query:i,body:o}=Gue(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"deleteTask",async t=>{let{path:n,headers:r,query:i,body:o}=Yue(t),a=(this.props.toAxiosRequest??pe)({method:"delete",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listTasks",async t=>{let{path:n,headers:r,query:i,body:o}=Jue(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"trackAnalytics",async t=>{let{path:n,headers:r,query:i,body:o}=Xue(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"runVrl",async t=>{let{path:n,headers:r,query:i,body:o}=Que(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getAccount",async t=>{let{path:n,headers:r,query:i,body:o}=ele(),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"updateAccount",async t=>{let{path:n,headers:r,query:i,body:o}=tle(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listPersonalAccessTokens",async t=>{let{path:n,headers:r,query:i,body:o}=nle(),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"createPersonalAccessToken",async t=>{let{path:n,headers:r,query:i,body:o}=rle(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"deletePersonalAccessToken",async t=>{let{path:n,headers:r,query:i,body:o}=ile(t),a=(this.props.toAxiosRequest??pe)({method:"delete",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"setAccountPreference",async t=>{let{path:n,headers:r,query:i,body:o}=ole(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getAccountPreference",async t=>{let{path:n,headers:r,query:i,body:o}=ale(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listPublicIntegrations",async t=>{let{path:n,headers:r,query:i,body:o}=sle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getPublicIntegrationById",async t=>{let{path:n,headers:r,query:i,body:o}=ule(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getPublicIntegration",async t=>{let{path:n,headers:r,query:i,body:o}=lle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"createBot",async t=>{let{path:n,headers:r,query:i,body:o}=cle(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"updateBot",async t=>{let{path:n,headers:r,query:i,body:o}=fle(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"transferBot",async t=>{let{path:n,headers:r,query:i,body:o}=dle(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listBots",async t=>{let{path:n,headers:r,query:i,body:o}=ple(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getBot",async t=>{let{path:n,headers:r,query:i,body:o}=hle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"deleteBot",async t=>{let{path:n,headers:r,query:i,body:o}=mle(t),a=(this.props.toAxiosRequest??pe)({method:"delete",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getBotLogs",async t=>{let{path:n,headers:r,query:i,body:o}=yle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getBotWebchat",async t=>{let{path:n,headers:r,query:i,body:o}=gle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getBotAnalytics",async t=>{let{path:n,headers:r,query:i,body:o}=vle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getBotIssue",async t=>{let{path:n,headers:r,query:i,body:o}=ble(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listBotIssues",async t=>{let{path:n,headers:r,query:i,body:o}=_le(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"deleteBotIssue",async t=>{let{path:n,headers:r,query:i,body:o}=wle(t),a=(this.props.toAxiosRequest??pe)({method:"delete",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listBotIssueEvents",async t=>{let{path:n,headers:r,query:i,body:o}=xle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"setWorkspacePaymentMethod",async t=>{let{path:n,headers:r,query:i,body:o}=Sle(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listWorkspaceInvoices",async t=>{let{path:n,headers:r,query:i,body:o}=Ele(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getUpcomingInvoice",async t=>{let{path:n,headers:r,query:i,body:o}=Ale(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"chargeWorkspaceUnpaidInvoices",async t=>{let{path:n,headers:r,query:i,body:o}=Cle(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"createWorkspace",async t=>{let{path:n,headers:r,query:i,body:o}=Ole(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getPublicWorkspace",async t=>{let{path:n,headers:r,query:i,body:o}=Tle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getWorkspace",async t=>{let{path:n,headers:r,query:i,body:o}=$le(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listWorkspaceUsages",async t=>{let{path:n,headers:r,query:i,body:o}=kle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"breakDownWorkspaceUsageByBot",async t=>{let{path:n,headers:r,query:i,body:o}=Ile(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getAllWorkspaceQuotaCompletion",async t=>{let{path:n,headers:r,query:i,body:o}=Ple(),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getWorkspaceQuota",async t=>{let{path:n,headers:r,query:i,body:o}=Rle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listWorkspaceQuotas",async t=>{let{path:n,headers:r,query:i,body:o}=Nle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"updateWorkspace",async t=>{let{path:n,headers:r,query:i,body:o}=Dle(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"checkHandleAvailability",async t=>{let{path:n,headers:r,query:i,body:o}=Mle(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listWorkspaces",async t=>{let{path:n,headers:r,query:i,body:o}=jle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listPublicWorkspaces",async t=>{let{path:n,headers:r,query:i,body:o}=Lle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"deleteWorkspace",async t=>{let{path:n,headers:r,query:i,body:o}=Fle(t),a=(this.props.toAxiosRequest??pe)({method:"delete",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getAuditRecords",async t=>{let{path:n,headers:r,query:i,body:o}=qle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listWorkspaceMembers",async t=>{let{path:n,headers:r,query:i,body:o}=Ule(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getWorkspaceMember",async t=>{let{path:n,headers:r,query:i,body:o}=Ble(),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"deleteWorkspaceMember",async t=>{let{path:n,headers:r,query:i,body:o}=zle(t),a=(this.props.toAxiosRequest??pe)({method:"delete",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"createWorkspaceMember",async t=>{let{path:n,headers:r,query:i,body:o}=Zle(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"updateWorkspaceMember",async t=>{let{path:n,headers:r,query:i,body:o}=Hle(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listIntegrationApiKeys",async t=>{let{path:n,headers:r,query:i,body:o}=Wle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"createIntegrationApiKey",async t=>{let{path:n,headers:r,query:i,body:o}=Vle(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"deleteIntegrationApiKey",async t=>{let{path:n,headers:r,query:i,body:o}=Kle(t),a=(this.props.toAxiosRequest??pe)({method:"delete",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"createIntegration",async t=>{let{path:n,headers:r,query:i,body:o}=Gle(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"updateIntegration",async t=>{let{path:n,headers:r,query:i,body:o}=Yle(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listIntegrations",async t=>{let{path:n,headers:r,query:i,body:o}=Jle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getIntegration",async t=>{let{path:n,headers:r,query:i,body:o}=Xle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getIntegrationLogs",async t=>{let{path:n,headers:r,query:i,body:o}=Qle(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getIntegrationByName",async t=>{let{path:n,headers:r,query:i,body:o}=ece(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"deleteIntegration",async t=>{let{path:n,headers:r,query:i,body:o}=tce(t),a=(this.props.toAxiosRequest??pe)({method:"delete",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"createInterface",async t=>{let{path:n,headers:r,query:i,body:o}=nce(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getInterface",async t=>{let{path:n,headers:r,query:i,body:o}=rce(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getInterfaceByName",async t=>{let{path:n,headers:r,query:i,body:o}=ice(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"updateInterface",async t=>{let{path:n,headers:r,query:i,body:o}=oce(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"deleteInterface",async t=>{let{path:n,headers:r,query:i,body:o}=ace(t),a=(this.props.toAxiosRequest??pe)({method:"delete",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listInterfaces",async t=>{let{path:n,headers:r,query:i,body:o}=sce(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getUsage",async t=>{let{path:n,headers:r,query:i,body:o}=uce(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getMultipleUsages",async t=>{let{path:n,headers:r,query:i,body:o}=lce(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listUsageHistory",async t=>{let{path:n,headers:r,query:i,body:o}=cce(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"changeAISpendQuota",async t=>{let{path:n,headers:r,query:i,body:o}=fce(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listActivities",async t=>{let{path:n,headers:r,query:i,body:o}=dce(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"introspect",async t=>{let{path:n,headers:r,query:i,body:o}=pce(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"upsertFile",async t=>{let{path:n,headers:r,query:i,body:o}=hce(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"deleteFile",async t=>{let{path:n,headers:r,query:i,body:o}=mce(t),a=(this.props.toAxiosRequest??pe)({method:"delete",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listFiles",async t=>{let{path:n,headers:r,query:i,body:o}=yce(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getFile",async t=>{let{path:n,headers:r,query:i,body:o}=gce(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"updateFileMetadata",async t=>{let{path:n,headers:r,query:i,body:o}=vce(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"searchFiles",async t=>{let{path:n,headers:r,query:i,body:o}=bce(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"listTables",async t=>{let{path:n,headers:r,query:i,body:o}=_ce(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getTable",async t=>{let{path:n,headers:r,query:i,body:o}=wce(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getOrCreateTable",async t=>{let{path:n,headers:r,query:i,body:o}=xce(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"createTable",async t=>{let{path:n,headers:r,query:i,body:o}=Sce(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"duplicateTable",async t=>{let{path:n,headers:r,query:i,body:o}=Ece(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"updateTable",async t=>{let{path:n,headers:r,query:i,body:o}=Ace(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"renameTableColumn",async t=>{let{path:n,headers:r,query:i,body:o}=Cce(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"deleteTable",async t=>{let{path:n,headers:r,query:i,body:o}=Oce(t),a=(this.props.toAxiosRequest??pe)({method:"delete",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"getTableRow",async t=>{let{path:n,headers:r,query:i,body:o}=Tce(t),a=(this.props.toAxiosRequest??pe)({method:"get",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"findTableRows",async t=>{let{path:n,headers:r,query:i,body:o}=$ce(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"createTableRows",async t=>{let{path:n,headers:r,query:i,body:o}=kce(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"deleteTableRows",async t=>{let{path:n,headers:r,query:i,body:o}=Ice(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"updateTableRows",async t=>{let{path:n,headers:r,query:i,body:o}=Pce(t),a=(this.props.toAxiosRequest??pe)({method:"put",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});R(this,"upsertTableRows",async t=>{let{path:n,headers:r,query:i,body:o}=Rce(t),a=(this.props.toAxiosRequest??pe)({method:"post",path:n,headers:{...r},query:{...i},body:o});return this.axiosInstance.request(a).then(s=>s.data).catch(s=>{throw he(s)})});this.axiosInstance=t,this.props=n}};function he(e){var t;return qu.isAxiosError(e)&&((t=e.response)!=null&&t.data)?Mb(e.response.data):Mb(e)}var Mk=100*1024*1024,Dce=Mk,Mce=Mk,jce=class extends Nce{constructor(t={}){let n=fue(t),{apiUrl:r,headers:i,withCredentials:o,timeout:a}=n,s=qu.create({baseURL:r,headers:i,withCredentials:o,timeout:a,maxBodyLength:Dce,maxContentLength:Mce,httpAgent:kb?new nue.default.Agent({keepAlive:!0}):void 0,httpsAgent:kb?new rue.default.Agent({keepAlive:!0}):void 0});super(s);R(this,"config");R(this,"uploadFile",async({key:t,index:n,tags:r,contentType:i,accessPolicies:o,content:a,url:s})=>{if(s&&a)throw new Mc("Cannot provide both content and URL, please provide only one of them");if(s&&(a=await qu.get(s,{responseType:"arraybuffer"}).then(d=>d.data).catch(d=>{throw new Mc(`Failed to download file from provided URL: ${d.message}`,d)})),!a)throw new Mc("No content was provided for the file");let l=a instanceof Buffer?a:Buffer.from(a),{file:c}=await this.upsertFile({key:t,tags:r,index:n,accessPolicies:o,contentType:i,size:l.byteLength});try{await qu.put(c.uploadUrl,l,{maxBodyLength:1/0})}catch(d){throw new Mc(`Failed to upload file: ${d.message}`,d,c)}return{file:c}});this.config=n}};const jb=Jf(Object.freeze(Object.defineProperty({__proto__:null,AlreadyExistsError:kk,BreakingChangesError:Dk,Client:jce,ForbiddenError:mk,InternalError:pk,InvalidDataFormatError:xk,InvalidIdentifierError:Sk,InvalidJsonSchemaError:wk,InvalidPayloadError:gk,InvalidQueryError:Tk,LimitExceededError:Nk,MethodNotFoundError:bk,PayloadTooLargeError:yk,PaymentRequiredError:Pk,QuotaExceededError:Rk,RateLimitedError:Ik,ReferenceConstraintError:Ak,ReferenceNotFoundError:Ok,RelationConflictError:Ek,ResourceLockedConflictError:Ck,ResourceNotFoundError:_k,RuntimeError:$k,UnauthorizedError:hk,UnknownError:Bu,UnsupportedMediaTypeError:vk,UploadFileError:Mc,axios:Ese,errorFrom:Mb,isApiError:dk},Symbol.toStringTag,{value:"Module"})));(function(e){var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,o=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,s=(N,je)=>{for(var He in je)n(N,He,{get:je[He],enumerable:!0})},l=(N,je,He,Xe)=>{if(je&&typeof je=="object"||typeof je=="function")for(let Re of i(je))!a.call(N,Re)&&Re!==He&&n(N,Re,{get:()=>je[Re],enumerable:!(Xe=r(je,Re))||Xe.enumerable});return N},c=(N,je,He)=>(l(N,je,"default"),He&&l(He,je,"default")),d=(N,je,He)=>(He=N!=null?t(o(N)):{},l(je||!N||!N.__esModule?n(He,"default",{value:N,enumerable:!0}):He,N)),p=N=>l(n({},"__esModule",{value:!0}),N),m={};s(m,{Bot:()=>sr,BotSpecificClient:()=>cn,Integration:()=>rn,IntegrationDefinition:()=>K,IntegrationSpecificClient:()=>Te,RuntimeError:()=>Fe.RuntimeError,botIdHeader:()=>Y,botUserIdHeader:()=>ne,configurationHeader:()=>ue,integrationIdHeader:()=>ce,isApiError:()=>Fe.isApiError,messages:()=>h,operationHeader:()=>Oe,parseBody:()=>Me,serve:()=>Je,studioComponentDefinitions:()=>_,typeHeader:()=>D,webhookIdHeader:()=>P}),e.exports=p(m);var h={};s(h,{defaults:()=>F});var y={};s(y,{default:()=>b,studioComponentDefinitions:()=>_});var v=Jd;c(y,Jd);var w=v.z.object({allowDynamicVariable:v.z.boolean().optional(),horizontal:v.z.boolean().optional()}),_={string:{text:{id:"text",params:w.extend({multiLine:v.z.boolean().optional(),growVertically:v.z.boolean().optional(),suggestions:v.z.array(v.z.string()).optional()})},dropdown:{id:"dropdown",params:w.extend({filterable:v.z.boolean().optional()})},radiogroup:{id:"radiogroup",params:w.extend({})},date:{id:"date",params:w.extend({dateFormat:v.z.string().optional(),minDate:v.z.string().optional(),maxDate:v.z.string().optional(),defaultTimezone:v.z.string().optional(),disableTimezoneSelection:v.z.boolean().optional(),highlightCurrentDay:v.z.boolean().optional(),showShortcutButtons:v.z.boolean().optional(),showOutsideDaysOfMonth:v.z.boolean().optional(),firstDayOfWeek:v.z.number().optional(),canChangeMonth:v.z.boolean().optional(),showWeekNumbers:v.z.boolean().optional()})},time:{id:"time",params:w.extend({useAMPM:v.z.boolean().optional(),timeFormat:v.z.string().optional(),minTime:v.z.string().optional(),maxTime:v.z.string().optional(),showArrowButtons:v.z.boolean().optional(),precision:v.z.enum(["minute","second","millisecond"]).optional()})},richtext:{id:"richtext",params:v.z.object({allowDynamicVariable:v.z.boolean().optional(),resizable:v.z.boolean().optional()})},json:{id:"json",params:w.extend({showPreview:v.z.boolean().optional(),showValidationError:v.z.boolean().optional()})},file:{id:"file",params:w.extend({fileTypes:v.z.array(v.z.enum(["image","audio","video"])).optional(),showUploadedFiles:v.z.boolean().optional()})}},number:{number:{id:"number",params:w.extend({allowNumericCharactersOnly:v.z.boolean().optional(),stepSize:v.z.number().optional()})},slider:{id:"slider",params:v.z.object({horizontal:v.z.boolean().optional(),stepSize:v.z.number().optional()})}},boolean:{switch:{id:"switch",params:w}},array:{options:{id:"options",params:w},strings:{id:"strings",params:w},daterange:{id:"daterange",params:v.z.object({dateFormat:v.z.string().optional(),minDate:v.z.string().optional(),maxDate:v.z.string().optional(),defaultTimezone:v.z.string().optional(),allowSingleDayRange:v.z.boolean().optional(),highlightCurrentDay:v.z.boolean().optional(),showOutsideDaysOfMonth:v.z.boolean().optional(),firstDayOfWeek:v.z.number().optional(),canChangeMonth:v.z.boolean().optional(),showWeekNumbers:v.z.boolean().optional()})}},object:{collapsible:{id:"collapsible",params:v.z.object({defaultOpen:v.z.boolean().optional()})},modal:{id:"modal",params:v.z.object({title:v.z.string().optional(),buttonLabel:v.z.string().optional(),closeButtonLabel:v.z.string().optional()})},popover:{id:"popover",params:v.z.object({buttonLabel:v.z.string().optional()})}},discriminatedUnion:{}},b=v.z,S=y.z.string().min(1),A=y.z.object({text:S}),E=y.z.object({markdown:S}),T=y.z.object({imageUrl:S}),j=y.z.object({audioUrl:S}),q=y.z.object({videoUrl:S}),L=y.z.object({fileUrl:S,title:S.optional()}),M=y.z.object({latitude:y.z.number(),longitude:y.z.number(),address:y.z.string().optional(),title:y.z.string().optional()}),H=y.z.object({title:S,subtitle:S.optional(),imageUrl:S.optional(),actions:y.z.array(y.z.object({action:y.z.enum(["postback","url","say"]),label:S,value:S}))}),re=y.z.object({text:S,options:y.z.array(y.z.object({label:S,value:S}))}),Q=y.z.object({items:y.z.array(H)}),G=y.z.discriminatedUnion("type",[y.z.object({type:y.z.literal("text"),payload:A}),y.z.object({type:y.z.literal("markdown"),payload:E}),y.z.object({type:y.z.literal("image"),payload:T}),y.z.object({type:y.z.literal("audio"),payload:j}),y.z.object({type:y.z.literal("video"),payload:q}),y.z.object({type:y.z.literal("file"),payload:L}),y.z.object({type:y.z.literal("location"),payload:M})]),V=y.z.object({items:y.z.array(G)}),F={text:{schema:A},markdown:{schema:E},image:{schema:T},audio:{schema:j},video:{schema:q},file:{schema:L},location:{schema:M},carousel:{schema:Q},card:{schema:H},dropdown:{schema:re},choice:{schema:re},bloc:{schema:V}},Y="x-bot-id",ne="x-bot-user-id",ce="x-integration-id",P="x-webhook-id",ue="x-bp-configuration",Oe="x-bp-operation",D="x-bp-type",De=As,qe=console;function Me(N){if(!N.body)throw new Error("Missing body");return JSON.parse(N.body)}async function Je(N,je=8072,He=Ae){let Xe=(0,De.createServer)(async(Re,We)=>{try{let _t=await rt(Re);if(_t.path==="/health"){We.writeHead(200).end("ok");return}let Pt=await N(_t);We.writeHead((Pt==null?void 0:Pt.status)??200,(Pt==null?void 0:Pt.headers)??{}).end((Pt==null?void 0:Pt.body)??"{}")}catch(_t){qe.error("Error while handling request",{error:(_t==null?void 0:_t.message)??"Internal error occured"}),We.writeHead(500).end(JSON.stringify({error:(_t==null?void 0:_t.message)??"Internal error occured"}))}});return Xe.listen(je,()=>He(je)),Xe}async function rt(N){var Re;let je=await Pe(N),He={};for(let We=0;We<N.rawHeaders.length;We+=2){let _t=N.rawHeaders[We].toLowerCase(),Pt=N.rawHeaders[We+1];He[_t]=Pt}let Xe=new URL(N.url??"",N.headers.host?`http://${N.headers.host}`:"http://botpress.cloud");return{body:je,path:Xe.pathname,query:Ke(Xe.search,"?"),headers:He,method:((Re=N.method)==null?void 0:Re.toUpperCase())??"GET"}}function Ke(N,je){return N.indexOf(je)===0?N.slice(je.length):N}async function Pe(N){return new Promise((je,He)=>{if(N.method!=="POST"&&N.method!=="PUT"&&N.method!=="PATCH")return je(void 0);let Xe="";N.on("data",Re=>Xe+=Re.toString()),N.on("error",Re=>He(Re)),N.on("end",()=>je(Xe))})}function Ae(N){qe.info(`Listening on port ${N}`)}c(m,y,e.exports);var Fe=jb,$e=Jd,Ze=$e.z.enum(["webhook_received","message_created","action_triggered","register","unregister","ping","create_user","create_conversation"]),lt=N=>{let je=N[Y],He=N[ne],Xe=N[ce],Re=N[P],We=N[ue],_t=Ze.parse(N[Oe]);if(!je)throw new Error("Missing bot headers");if(!He)throw new Error("Missing bot user headers");if(!Xe)throw new Error("Missing integration headers");if(!Re)throw new Error("Missing webhook headers");if(!We)throw new Error("Missing configuration headers");if(!_t)throw new Error("Missing operation headers");return{botId:je,botUserId:He,integrationId:Xe,webhookId:Re,operation:_t,configuration:We?JSON.parse(Buffer.from(We,"base64").toString("utf-8")):{}}},K=class{constructor(N){R(this,"name");R(this,"version");R(this,"title");R(this,"description");R(this,"icon");R(this,"readme");R(this,"configuration");R(this,"events");R(this,"actions");R(this,"channels");R(this,"states");R(this,"user");R(this,"secrets");R(this,"identifier");R(this,"entities");this.props=N,this.name=N.name,this.version=N.version,this.icon=N.icon,this.readme=N.readme,this.title=N.title,this.identifier=N.identifier,this.description=N.description,this.configuration=N.configuration,this.events=N.events,this.actions=N.actions,this.channels=N.channels,this.states=N.states,this.user=N.user,this.secrets=N.secrets,this.entities=N.entities}clone(N){return new K({...this,...N})}},de=jb,Te=class{constructor(N){R(this,"createConversation",N=>this.client.createConversation(N));R(this,"getConversation",N=>this.client.getConversation(N));R(this,"listConversations",N=>this.client.listConversations(N));R(this,"getOrCreateConversation",N=>this.client.getOrCreateConversation(N));R(this,"updateConversation",N=>this.client.updateConversation(N));R(this,"deleteConversation",N=>this.client.deleteConversation(N));R(this,"listParticipants",N=>this.client.listParticipants(N));R(this,"addParticipant",N=>this.client.addParticipant(N));R(this,"getParticipant",N=>this.client.getParticipant(N));R(this,"removeParticipant",N=>this.client.removeParticipant(N));R(this,"createEvent",N=>this.client.createEvent(N));R(this,"getEvent",N=>this.client.getEvent(N));R(this,"listEvents",N=>this.client.listEvents(N));R(this,"createMessage",N=>this.client.createMessage(N));R(this,"getOrCreateMessage",N=>this.client.getOrCreateMessage(N));R(this,"getMessage",N=>this.client.getMessage(N));R(this,"updateMessage",N=>this.client.updateMessage(N));R(this,"listMessages",N=>this.client.listMessages(N));R(this,"deleteMessage",N=>this.client.deleteMessage(N));R(this,"createUser",N=>this.client.createUser(N));R(this,"getUser",N=>this.client.getUser(N));R(this,"listUsers",N=>this.client.listUsers(N));R(this,"getOrCreateUser",N=>this.client.getOrCreateUser(N));R(this,"updateUser",N=>this.client.updateUser(N));R(this,"deleteUser",N=>this.client.deleteUser(N));R(this,"getState",N=>this.client.getState(N));R(this,"setState",N=>this.client.setState(N));R(this,"getOrSetState",N=>this.client.getOrSetState(N));R(this,"patchState",N=>this.client.patchState(N));R(this,"configureIntegration",N=>this.client.configureIntegration(N));R(this,"uploadFile",N=>this.client.uploadFile(N));R(this,"upsertFile",N=>this.client.upsertFile(N));R(this,"deleteFile",N=>this.client.deleteFile(N));R(this,"listFiles",N=>this.client.listFiles(N));R(this,"getFile",N=>this.client.getFile(N));R(this,"updateFileMetadata",N=>this.client.updateFileMetadata(N));this.client=N}},Se=d(As),et=N=>{if(process.env.BP_LOG_FORMAT==="json")return JSON.stringify({msg:Se.default.format(...N),visible_to_bot_owner:!0});{let[je,...He]=N;return Se.default.format(`[For Bot Owner] ${je}`,...He)}},Ue={forBot:()=>({info:(...N)=>{console.info(et(N))},warn:(...N)=>{console.warn(et(N))},error:(...N)=>{console.error(et(N))},debug:(...N)=>{console.debug(et(N))}})},ot=N=>async je=>{let He=lt(je.headers),Xe=new Te(new de.Client({botId:He.botId,integrationId:He.integrationId})),Re={ctx:He,req:je,client:Xe,logger:Ue,instance:N};try{let We;switch(He.operation){case"webhook_received":We=await mt(Re);break;case"register":We=await ie(Re);break;case"unregister":We=await ye(Re);break;case"message_created":We=await ct(Re);break;case"action_triggered":We=await pn(Re);break;case"ping":We=await It(Re);break;case"create_user":We=await xe(Re);break;case"create_conversation":We=await Be(Re);break;default:throw new Error(`Unknown operation ${He.operation}`)}return We?{...We,status:We.status??200}:{status:200}}catch(We){if((0,de.isApiError)(We)){let _t=new de.RuntimeError(We.message,We);return{status:_t.code,body:JSON.stringify(_t.toJSON())}}throw We}},It=async N=>{},mt=async({client:N,ctx:je,req:He,logger:Xe,instance:Re})=>{let{req:We}=Me(He);return Re.webhook({client:N,ctx:je,req:We,logger:Xe})},ie=async({client:N,ctx:je,req:He,logger:Xe,instance:Re})=>{if(!Re.register)return;let{webhookUrl:We}=Me(He);await Re.register({client:N,ctx:je,webhookUrl:We,logger:Xe})},ye=async({client:N,ctx:je,req:He,logger:Xe,instance:Re})=>{if(!Re.unregister)return;let{webhookUrl:We}=Me(He);await Re.unregister({ctx:je,webhookUrl:We,client:N,logger:Xe})},xe=async({client:N,ctx:je,req:He,logger:Xe,instance:Re})=>{if(!Re.createUser)return;let{tags:We}=Me(He);return await Re.createUser({ctx:je,client:N,tags:We,logger:Xe})},Be=async({client:N,ctx:je,req:He,logger:Xe,instance:Re})=>{if(!Re.createConversation)return;let{channel:We,tags:_t}=Me(He);return await Re.createConversation({ctx:je,client:N,channel:We,tags:_t,logger:Xe})},ct=async({ctx:N,req:je,client:He,logger:Xe,instance:Re})=>{let{conversation:We,user:_t,type:Pt,payload:Jt,message:bn}=Me(je),Rn=Re.channels[We.channel];if(!Rn)throw new Error(`Channel ${We.channel} not found`);let mr=Rn.messages[Pt];if(!mr)throw new Error(`Message of type ${Pt} not found in channel ${We.channel}`);await mr({ctx:N,conversation:We,message:bn,user:_t,type:Pt,client:He,payload:Jt,ack:async({tags:ta})=>{await He.updateMessage({id:bn.id,tags:ta})},logger:Xe})},pn=async({req:N,ctx:je,client:He,logger:Xe,instance:Re})=>{let{input:We,type:_t}=Me(N);if(!_t)throw new Error("Missing action type");let Pt=Re.actions[_t];if(!Pt)throw new Error(`Action ${_t} not found`);let Jt=await Pt({ctx:je,input:We,client:He,type:_t,logger:Xe});return{body:JSON.stringify({output:Jt})}},rn=class{constructor(N){R(this,"props");R(this,"actions");R(this,"channels");R(this,"register");R(this,"unregister");R(this,"createUser");R(this,"createConversation");R(this,"webhook");R(this,"handler",ot(this));R(this,"start",N=>Je(this.handler,N));this.props=N,this.actions=N.actions,this.channels=N.channels,this.register=N.register,this.unregister=N.unregister,this.createUser=N.createUser,this.createConversation=N.createConversation,this.webhook=N.handler}},Yt=d(jb),cn=class{constructor(N){R(this,"getConversation",N=>this.client.getConversation(N));R(this,"listConversations",N=>this.client.listConversations(N));R(this,"updateConversation",N=>this.client.updateConversation(N));R(this,"deleteConversation",N=>this.client.deleteConversation(N));R(this,"listParticipants",N=>this.client.listParticipants(N));R(this,"addParticipant",N=>this.client.addParticipant(N));R(this,"getParticipant",N=>this.client.getParticipant(N));R(this,"removeParticipant",N=>this.client.removeParticipant(N));R(this,"getEvent",N=>this.client.getEvent(N));R(this,"listEvents",N=>this.client.listEvents(N));R(this,"createMessage",N=>this.client.createMessage(N));R(this,"getOrCreateMessage",N=>this.client.getOrCreateMessage(N));R(this,"getMessage",N=>this.client.getMessage(N));R(this,"updateMessage",N=>this.client.updateMessage(N));R(this,"listMessages",N=>this.client.listMessages(N));R(this,"deleteMessage",N=>this.client.deleteMessage(N));R(this,"getUser",N=>this.client.getUser(N));R(this,"listUsers",N=>this.client.listUsers(N));R(this,"updateUser",N=>this.client.updateUser(N));R(this,"deleteUser",N=>this.client.deleteUser(N));R(this,"getState",N=>this.client.getState(N).then(je=>({state:{...je.state,payload:je.state.payload}})));R(this,"setState",N=>this.client.setState(N).then(je=>({state:{...je.state,payload:je.state.payload}})));R(this,"getOrSetState",N=>this.client.getOrSetState(N).then(je=>({state:{...je.state,payload:je.state.payload}})));R(this,"patchState",N=>this.client.patchState(N).then(je=>({state:{...je.state,payload:je.state.payload}})));R(this,"callAction",N=>this.client.callAction(N));R(this,"uploadFile",N=>this.client.uploadFile(N));R(this,"upsertFile",N=>this.client.upsertFile(N));R(this,"deleteFile",N=>this.client.deleteFile(N));R(this,"listFiles",N=>this.client.listFiles(N));R(this,"getFile",N=>this.client.getFile(N));R(this,"updateFileMetadata",N=>this.client.updateFileMetadata(N));R(this,"searchFiles",N=>this.client.searchFiles(N));R(this,"createConversation",N=>this.client.createConversation(N));R(this,"getOrCreateConversation",N=>this.client.getOrCreateConversation(N));R(this,"createUser",N=>this.client.createUser(N));R(this,"getOrCreateUser",N=>this.client.getOrCreateUser(N));this.client=N}},Cn=Jd,ee=Cn.z.enum(["event_received","register","unregister","ping","action_triggered"]),ae=N=>{let je=N[Y],He=N[ue],Xe=N[D],Re=ee.parse(N[Oe]);if(!je)throw new Error("Missing bot headers");if(!Xe)throw new Error("Missing type headers");if(!He)throw new Error("Missing configuration headers");if(!Re)throw new Error("Missing operation headers");return{botId:je,operation:Re,type:Xe,configuration:He?JSON.parse(Buffer.from(He,"base64").toString("utf-8")):{}}},ft=N=>async je=>{let He=ae(je.headers);He.operation!=="ping"&&qe.info(`Received ${He.operation} operation for bot ${He.botId} of type ${He.type}`);let Xe=new cn(new Yt.Client({botId:He.botId})),Re={req:je,ctx:He,client:Xe,instance:N};switch(He.operation){case"action_triggered":throw new Error(`Operation ${He.operation} not supported yet`);case"event_received":await Mn(Re);break;case"register":await on();break;case"unregister":await pt();break;case"ping":await At();break;default:throw new Error(`Unknown operation ${He.operation}`)}return{status:200}},At=async N=>{},on=async N=>{},pt=async N=>{},Mn=async({ctx:N,req:je,client:He,instance:Xe})=>{qe.debug(`Received event ${N.type}`);let Re=Me(je),We=Re.event;switch(N.type){case"message_created":let _t={user:We.payload.user,conversation:We.payload.conversation,message:We.payload.message,states:We.payload.states,event:We};await Promise.all(Xe.messageHandlers.map(bn=>bn({client:He,ctx:N,..._t})));break;case"state_expired":let Pt={state:We.payload.state};await Promise.all(Xe.stateExpiredHandlers.map(bn=>bn({client:He,ctx:N,...Pt})));break;default:let Jt={event:Re.event};await Promise.all(Xe.eventHandlers.map(bn=>bn({client:He,ctx:N,...Jt})))}},sr=class{constructor(N){R(this,"_state",{messageHandlers:[],eventHandlers:[],stateExpiredHandlers:[]});R(this,"props");R(this,"message",N=>{this._state.messageHandlers.push(N)});R(this,"event",N=>{this._state.eventHandlers.push(N)});R(this,"stateExpired",N=>{this._state.stateExpiredHandlers.push(N)});R(this,"handler",ft(this._state));R(this,"start",N=>Je(this.handler,N));this.props=N}}})(RE);var me=RE.exports;const{defaults:lo}=me.messages,Mi={className:me.z.string().describe("CSS className to apply to the message").optional()},jk=lo.audio.schema.extend({...Mi,type:me.z.literal("audio")}),Lb=lo.card.schema.extend({type:me.z.literal("card"),subtitle:me.z.string().optional(),imageUrl:me.z.string().optional(),...Mi}),Lce=Lb.omit({type:!0}),Lk=me.z.object({items:me.z.array(Lce),...Mi,type:me.z.literal("carousel")}),Fk=lo.choice.schema.extend({text:me.z.string(),...Mi,type:me.z.literal("choice"),disableFreeText:me.z.boolean().optional()}),qk=lo.dropdown.schema.extend({text:me.z.string(),...Mi,type:me.z.literal("dropdown")}),Uk=lo.file.schema.extend({...Mi,type:me.z.literal("file")}),Bk=lo.image.schema.extend({...Mi,type:me.z.literal("image")}),zk=lo.location.schema.extend({...Mi,type:me.z.literal("location")}),Zk=lo.markdown.schema.extend({...Mi,type:me.z.literal("markdown")}),Hk=lo.text.schema.extend({...Mi,type:me.z.literal("text")}),Wk=lo.video.schema.extend({...Mi,type:me.z.literal("video")}),Vk=me.z.union([jk,Lb,Lk,Fk,qk,Uk,Bk,zk,Zk,Hk,Wk]),Kk=me.z.object({type:me.z.literal("webchat_visibility"),data:me.z.object({visibility:me.z.union([me.z.literal("show"),me.z.literal("hide"),me.z.literal("toggle")])})}),Gk=me.z.object({type:me.z.literal("webchat_config"),data:me.z.object({config:me.z.record(me.z.any())})}),Yk=me.z.object({type:me.z.literal("custom"),data:me.z.object({event:me.z.record(me.z.any())})}),Jk=me.z.union([Kk,Gk,Yk]),Fce=Jk,qce=me.z.object({type:me.z.literal("message_created"),data:Vk}),Uce=Object.freeze(Object.defineProperty({__proto__:null,audioSchema:jk,cardSchema:Lb,carouselSchema:Lk,choiceSchema:Fk,customSchema:Yk,dropdownSchema:qk,fileSchema:Uk,imageSchema:Bk,locationSchema:zk,markdownSchema:Zk,messageCreatedSchema:qce,messageSchema:Vk,textSchema:Hk,triggerSchema:Jk,triggerSignalSchema:Fce,videoSchema:Wk,webchatConfigSchema:Gk,webchatVisibilitySchema:Kk},Symbol.toStringTag,{value:"Module"})),co=me.z.object({className:me.z.string().optional(),avatarUrl:me.z.string().url().optional()}),Xk=co.extend({type:me.z.literal("audio"),audio:me.z.string(),title:me.z.string().optional()}),Bce=me.z.union([me.z.object({title:me.z.string(),action:me.z.literal("Say something"),text:me.z.string()}),me.z.object({title:me.z.string(),action:me.z.literal("Open URL"),url:me.z.string()}),me.z.object({title:me.z.string(),action:me.z.literal("Postback"),payload:me.z.string()})]),Fb=co.extend({type:me.z.literal("card"),title:me.z.string(),subtitle:me.z.string().optional(),image:me.z.string().optional(),actions:me.z.array(Bce)}),Qk=co.extend({type:me.z.literal("carousel"),items:me.z.array(Fb)}),eI=co.extend({type:me.z.literal("dropdown"),message:me.z.string().optional(),options:me.z.array(me.z.object({label:me.z.string(),value:me.z.string()})),allowCreation:me.z.boolean().optional(),placeholderText:me.z.string().optional(),allowMultiple:me.z.boolean().optional(),buttonText:me.z.string().optional(),width:me.z.number().optional(),displayInKeyboard:me.z.boolean().optional(),markdown:me.z.boolean().optional(),text:me.z.string().optional()}),tI=co.extend({type:me.z.literal("file"),file:me.z.string(),title:me.z.string().optional()}),nI=co.extend({type:me.z.literal("image"),image:me.z.string()}),rI=co.extend({type:me.z.literal("location"),latitude:me.z.number(),longitude:me.z.number(),address:me.z.string().optional(),title:me.z.string().optional()}),iI=co.extend({type:me.z.literal("single-choice"),text:me.z.string(),disableFreeText:me.z.boolean().optional(),choices:me.z.array(me.z.object({title:me.z.string(),value:me.z.string()}))}),oI=co.extend({type:me.z.literal("text"),text:me.z.string(),markdown:me.z.boolean().optional()}),aI=co.extend({type:me.z.literal("video"),video:me.z.string(),title:me.z.string().optional()}),sI=me.z.object({type:me.z.literal("quick_reply"),text:me.z.string(),payload:me.z.string().optional()}),vh=me.z.union([Xk,Fb,Qk,eI,tI,nI,rI,iI,oI,aI,sI]),uI=me.z.object({type:me.z.literal("webchat-visibility"),visibility:me.z.union([me.z.literal("show"),me.z.literal("hide"),me.z.literal("toggle")])}),lI=me.z.object({type:me.z.literal("webchat-config"),config:me.z.record(me.z.any())}),cI=me.z.object({type:me.z.literal("custom-event"),event:me.z.record(me.z.any())}),fI=me.z.union([uI,lI,cI]),zce=me.z.object({type:me.z.literal("trigger"),trigger:fI}),Zce=Object.freeze(Object.defineProperty({__proto__:null,audioSchema:Xk,cardSchema:Fb,carouselSchame:Qk,customEventSchema:cI,dropdownSchema:eI,fileSchema:tI,imageSchema:nI,locationSchema:rI,messageSchema:vh,messageSignalSchema:vh,quickReplySchema:sI,singleChoiceSchema:iI,textSchema:oI,triggerSchema:fI,triggerSignalSchema:zce,videoSchema:aI,webchatConfigSchema:lI,webchatVisibilitySchema:uI},Symbol.toStringTag,{value:"Module"})),dI=e=>({type:"card",title:e.title,subtitle:e.subtitle,image:e.imageUrl,actions:e.actions.map(Hce)}),Hce=e=>{switch(e.action){case"postback":return{title:e.label,action:"Postback",payload:e.value};case"url":return{title:e.label,action:"Open URL",url:e.value};case"say":return{title:e.label,action:"Say something",text:e.value};default:throw new Error(`Unknown action type ${e.action}`)}},pI=e=>({...e,type:"audio",audio:e.audioUrl}),hI=e=>dI(e),mI=e=>({...e,type:"carousel",items:e.items.map(dI)}),yI=e=>({...e,type:"single-choice",text:e.text,choices:e.options.map(t=>({title:t.label,value:t.value})),disableFreeText:e.disableFreeText}),gI=e=>({...e,type:"dropdown",message:e.text,options:e.options.map(t=>({label:t.label,value:t.value}))}),vI=e=>({...e,type:"file",file:e.fileUrl,title:e.title}),bI=e=>({...e,type:"image",image:e.imageUrl}),_I=e=>({...e,type:"location",latitude:e.latitude,longitude:e.longitude}),wI=e=>({...e,type:"text",text:e.markdown,markdown:!0}),xI=e=>({...e,type:"text",text:e.text,markdown:!0}),SI=e=>({...e,type:"video",video:e.videoUrl}),Wce=e=>{switch(e.type){case"audio":return pI(e);case"card":return hI(e);case"carousel":return mI(e);case"choice":return yI(e);case"dropdown":return gI(e);case"file":return vI(e);case"image":return bI(e);case"location":return _I(e);case"markdown":return wI(e);case"text":return xI(e);case"video":return SI(e);default:throw new Error("Unsuported message type")}},EI=e=>({type:"webchat-visibility",visibility:e.data.visibility}),AI=e=>({type:"webchat-config",config:e.data.config}),CI=e=>({type:"custom-event",event:e.data.event}),Vce=Object.freeze(Object.defineProperty({__proto__:null,audioAdapter:pI,cardAdapter:hI,carouselAdapter:mI,choiceAdapter:yI,customAdapter:CI,dropdownAdapter:gI,fileAdapter:vI,imageAdapter:bI,locationAdapter:_I,markdownAdapter:wI,messageAdapter:Wce,textAdapter:xI,triggerAdapter:e=>{switch(e.type){case"webchat_visibility":return EI(e);case"webchat_config":return AI(e);case"custom":return CI(e);default:throw new Error("unknown trigger type")}},videoAdapter:SI,webchatConfigAdapter:AI,webchatVisibilityAdapter:EI},Symbol.toStringTag,{value:"Module"})),OI=e=>({type:"card",title:e.title,subtitle:e.subtitle,imageUrl:e.image,actions:e.actions.map(Kce)}),Kce=e=>{switch(e.action){case"Postback":return{label:e.title,action:"postback",value:e.payload};case"Open URL":return{label:e.title,action:"url",value:e.url};case"Say something":return{label:e.title,action:"say",value:e.text};default:throw new Error("Unknown action type")}},Gce=e=>({...e,type:"audio",audioUrl:e.audio}),Yce=e=>OI(e),Jce=e=>({...e,type:"carousel",items:e.items.map(OI)}),Xce=e=>({...e,type:"dropdown",text:e.message??"",options:e.options.map(t=>({label:t.label,value:t.value}))}),Qce=e=>({...e,type:"file",fileUrl:e.file,title:e.title}),efe=e=>({...e,type:"image",imageUrl:e.image}),tfe=e=>({...e,type:"location",latitude:e.latitude,longitude:e.longitude}),nfe=e=>({...e,type:"choice",text:e.text,options:e.choices.map(t=>({label:t.title,value:t.value})),disableFreeText:e.disableFreeText}),rfe=e=>({...e,type:"text",text:e.text}),ife=e=>({...e,type:"video",videoUrl:e.video}),ofe=e=>({...e,type:"text",text:e.text??e.payload}),afe=Object.freeze(Object.defineProperty({__proto__:null,messaging:Zce,messagingToWebChat:Object.freeze(Object.defineProperty({__proto__:null,messageAdapter:e=>{switch(e.type){case"audio":return Gce(e);case"card":return Yce(e);case"carousel":return Jce(e);case"dropdown":return Xce(e);case"file":return Qce(e);case"image":return efe(e);case"location":return tfe(e);case"single-choice":return nfe(e);case"text":return rfe(e);case"video":return ife(e);case"quick_reply":return ofe(e);default:throw new Error("Unsuported message type")}}},Symbol.toStringTag,{value:"Module"})),webchat:Uce,webchatToMessaging:Vce},Symbol.toStringTag,{value:"Module"}));let bh;const sfe=new Uint8Array(16);function ufe(){if(!bh&&(bh=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!bh))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return bh(sfe)}const pr=[];for(let e=0;e<256;++e)pr.push((e+256).toString(16).slice(1));function lfe(e,t=0){return pr[e[t+0]]+pr[e[t+1]]+pr[e[t+2]]+pr[e[t+3]]+"-"+pr[e[t+4]]+pr[e[t+5]]+"-"+pr[e[t+6]]+pr[e[t+7]]+"-"+pr[e[t+8]]+pr[e[t+9]]+"-"+pr[e[t+10]]+pr[e[t+11]]+pr[e[t+12]]+pr[e[t+13]]+pr[e[t+14]]+pr[e[t+15]]}const TI={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function cfe(e,t,n){if(TI.randomUUID&&!t&&!e)return TI.randomUUID();e=e||{};const r=e.random||(e.rng||ufe)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return lfe(r)}const _h=e=>({block:e,type:"bubble"}),ffe=e=>e.action==="Say something"?{type:"button",variant:"action",text:e.title,buttonValue:e.text,reusable:!0}:e.action==="Open URL"?{type:"button",variant:"link",text:e.title,buttonValue:e.url,reusable:!0}:{type:"button",variant:"action",text:e.title,buttonValue:e.payload,reusable:!0},$I=({title:e,image:t,actions:n,subtitle:r})=>{const i=[];return t&&i.push({type:"image",url:t}),e&&i.push({type:"text",text:`## ${e}`}),r&&i.push({type:"text",text:r}),n.length>0&&i.push({type:"row",blocks:n.map(ffe)}),{type:"column",horizontalAlignment:"center",blocks:[...i]}},dfe=({choices:e,text:t})=>{const n=cfe(),r=_h({type:"text",text:t});return e.length===0?r:{type:"column",horizontalAlignment:"left",blocks:[r,{type:"row",blocks:e.map(({title:i,value:o})=>({type:"button",variant:"action",text:i,buttonValue:o,groupId:n}))}]}},pfe=({options:e,text:t})=>{const n=[{type:"dropdown",label:t??"Select an option",options:e}];return t&&n.unshift({type:"text",text:t}),{type:"column",blocks:n}},kI=({type:e,audio:t})=>({payload:{type:e,url:t}}),II=e=>({payload:_h($I(e))}),PI=({items:e})=>({payload:{type:"carousel",blocks:e.map($I)}}),RI=e=>({disableInput:e.disableFreeText,payload:dfe(e)}),NI=e=>({disableInput:!0,payload:_h(pfe(e))}),DI=({file:e,...t})=>({payload:{url:e,...t}}),MI=({type:e,image:t})=>({payload:{type:e,url:t}}),jI=({type:e,latitude:t,longitude:n,title:r,address:i})=>({payload:{type:e,latitude:t,longitude:n,title:r??i??"View on map"}}),hfe=({text:e,payload:t})=>({payload:{type:"text",text:e??t}}),qb=({type:e,text:t})=>({payload:_h({type:e,text:t})}),LI=({type:e,video:t})=>({payload:{type:e,url:t}}),FI=e=>{switch(e.type){case"audio":return kI(e);case"card":return II(e);case"carousel":return PI(e);case"single-choice":return RI(e);case"dropdown":return NI(e);case"file":return DI(e);case"image":return MI(e);case"location":return jI(e);case"quick_reply":return hfe(e);case"text":return qb(e);case"video":return LI(e);default:throw new Error("Unsuported message type")}},{webchatToMessaging:ji}=afe,mfe=e=>{const t=ji.audioAdapter(e);return kI(t)},yfe=e=>{const t=ji.cardAdapter(e);return II(t)},gfe=e=>{const t=ji.carouselAdapter(e);return PI(t)},vfe=e=>{const t=ji.choiceAdapter(e);return RI(t)},bfe=e=>{const t=ji.dropdownAdapter(e);return NI(t)},_fe=e=>{const t=ji.fileAdapter(e);return DI(t)},wfe=e=>{const t=ji.imageAdapter(e);return MI(t)},xfe=e=>{const t=ji.locationAdapter(e);return jI(t)},Sfe=e=>{const t=ji.markdownAdapter(e);return qb(t)},Efe=e=>{const t=ji.textAdapter(e);return qb(t)},Afe=e=>{const t=ji.videoAdapter(e);return LI(t)},Cfe=e=>{switch(e.type){case"audio":return mfe(e);case"card":return yfe(e);case"carousel":return gfe(e);case"choice":return vfe(e);case"dropdown":return bfe(e);case"file":return _fe(e);case"image":return wfe(e);case"location":return xfe(e);case"markdown":return Sfe(e);case"text":return Efe(e);case"video":return Afe(e);default:throw new Error("Unsuported message type")}};class Ofe{constructor(t){R(this,"socket");R(this,"clientId");R(this,"apiUrl");R(this,"userId");R(this,"conversationId");R(this,"userToken");R(this,"connected",!1);R(this,"emitter");R(this,"on");R(this,"mode","messaging");this.socket=new YS.MessagingSocket(t),this.emitter=new ig,this.clientId=t.clientId,this.apiUrl=t.url,this.on=this.emitter.on.bind(this.emitter),this.socket.on("message",n=>{const r=n.payload;if(r.type==="trigger")switch(r.trigger.type){case"webchat-visibility":this.emitter.emit("webchatVisibility",r.trigger.visibility);break;case"webchat-config":this.emitter.emit("webchatConfig",r.trigger.config);break;case"custom-event":this.emitter.emit("customEvent",r.trigger.event);break}else{const i=vh.parse(r),{payload:o,disableInput:a}=FI(i);this.emitter.emit("message",{...n,payload:o,disableInput:a})}}),this.socket.on("conversation",n=>{this.emitter.emit("conversation",n)})}async connect(t,n){if(this.connected)return;this.connected=!0;const r=await this.socket.connect(t,n).catch(i=>{throw this.connected=!1,i});return this.userId=r.userId,this.userToken=r.userToken,r}async disconnect(){await this.socket.disconnect(),this.connected=!1}async getUser(){throw new Error("Get user is not supported in messaging mode")}async updateUser(){throw new Error("Update user is not supported in messaging mode")}async sendFile(t){throw new Error("Send file is not supported in messaging mode")}async sendMessage(t){this.conversationId||await this.newConversation(),await this.socket.sendText(t),this.emitter.emit("messageSent",t)}async sendEvent(t){this.conversationId||await this.newConversation(),await this.socket.sendPayload({type:"trigger",payload:t})}async switchConversation(t){await this.socket.switchConversation(t),this.conversationId=t}async conversationExists(t){return(await this.socket.listConversations()).some(r=>r.id===t)}async newConversation(){const{id:t}=await this.socket.createConversation();await this.socket.startConversation(),this.conversationId=t}async listMessages(t){return(await this.socket.listMessages(t)).map(r=>{const i=vh.parse(r.payload),{payload:o,disableInput:a}=FI(i);return{...r,payload:o,disableInput:a}})}}function qI(e,t){return function(){return e.apply(t,arguments)}}const{toString:UI}=Object.prototype,{getPrototypeOf:Ub}=Object,Bb=(e=>t=>{const n=UI.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Fo=e=>(e=e.toLowerCase(),t=>Bb(t)===e),wh=e=>t=>typeof t===e,{isArray:zu}=Array,jc=wh("undefined");function Tfe(e){return e!==null&&!jc(e)&&e.constructor!==null&&!jc(e.constructor)&&Cs(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const BI=Fo("ArrayBuffer");function $fe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&BI(e.buffer),t}const kfe=wh("string"),Cs=wh("function"),zI=wh("number"),zb=e=>e!==null&&typeof e=="object",Ife=e=>e===!0||e===!1,xh=e=>{if(Bb(e)!=="object")return!1;const t=Ub(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Pfe=Fo("Date"),Rfe=Fo("File"),Nfe=Fo("Blob"),Dfe=Fo("FileList"),Mfe=e=>zb(e)&&Cs(e.pipe),jfe=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||UI.call(e)===t||Cs(e.toString)&&e.toString()===t)},Lfe=Fo("URLSearchParams"),Ffe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Lc(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),zu(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let s;for(r=0;r<a;r++)s=o[r],t.call(null,e[s],s,e)}}function ZI(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const HI=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),WI=e=>!jc(e)&&e!==HI;function Zb(){const{caseless:e}=WI(this)&&this||{},t={},n=(r,i)=>{const o=e&&ZI(t,i)||i;xh(t[o])&&xh(r)?t[o]=Zb(t[o],r):xh(r)?t[o]=Zb({},r):zu(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Lc(arguments[r],n);return t}const qfe=(e,t,n,{allOwnKeys:r}={})=>(Lc(t,(i,o)=>{n&&Cs(i)?e[o]=qI(i,n):e[o]=i},{allOwnKeys:r}),e),Ufe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Bfe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},zfe=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Ub(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Zfe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Hfe=e=>{if(!e)return null;if(zu(e))return e;let t=e.length;if(!zI(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Wfe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ub(Uint8Array)),Vfe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},Kfe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Gfe=Fo("HTMLFormElement"),Yfe=e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),VI=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Jfe=Fo("RegExp"),KI=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Lc(n,(i,o)=>{t(i,o,e)!==!1&&(r[o]=i)}),Object.defineProperties(e,r)},ve={isArray:zu,isArrayBuffer:BI,isBuffer:Tfe,isFormData:jfe,isArrayBufferView:$fe,isString:kfe,isNumber:zI,isBoolean:Ife,isObject:zb,isPlainObject:xh,isUndefined:jc,isDate:Pfe,isFile:Rfe,isBlob:Nfe,isRegExp:Jfe,isFunction:Cs,isStream:Mfe,isURLSearchParams:Lfe,isTypedArray:Wfe,isFileList:Dfe,forEach:Lc,merge:Zb,extend:qfe,trim:Ffe,stripBOM:Ufe,inherits:Bfe,toFlatObject:zfe,kindOf:Bb,kindOfTest:Fo,endsWith:Zfe,toArray:Hfe,forEachEntry:Vfe,matchAll:Kfe,isHTMLForm:Gfe,hasOwnProperty:VI,hasOwnProp:VI,reduceDescriptors:KI,freezeMethods:e=>{KI(e,(t,n)=>{if(Cs(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Cs(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return zu(e)?r(e):r(String(e).split(t)),n},toCamelCase:Yfe,noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:ZI,global:HI,isContextDefined:WI,toJSONObject:e=>{const t=new Array(10),n=(r,i)=>{if(zb(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=zu(r)?[]:{};return Lc(r,(a,s)=>{const l=n(a,i+1);!jc(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)}};function nn(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}ve.inherits(nn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ve.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const GI=nn.prototype,YI={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{YI[e]={value:e}}),Object.defineProperties(nn,YI),Object.defineProperty(GI,"isAxiosError",{value:!0}),nn.from=(e,t,n,r,i,o)=>{const a=Object.create(GI);return ve.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),nn.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};var Xfe=typeof self=="object"?self.FormData:window.FormData;const Qfe=Oo(Xfe);function Hb(e){return ve.isPlainObject(e)||ve.isArray(e)}function JI(e){return ve.endsWith(e,"[]")?e.slice(0,-2):e}function XI(e,t,n){return e?e.concat(t).map(function(i,o){return i=JI(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function ede(e){return ve.isArray(e)&&!e.some(Hb)}const tde=ve.toFlatObject(ve,{},null,function(t){return/^is[A-Z]/.test(t)});function nde(e){return e&&ve.isFunction(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator]}function Sh(e,t,n){if(!ve.isObject(e))throw new TypeError("target must be an object");t=t||new(Qfe||FormData),n=ve.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,w){return!ve.isUndefined(w[v])});const r=n.metaTokens,i=n.visitor||d,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&nde(t);if(!ve.isFunction(i))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(ve.isDate(y))return y.toISOString();if(!l&&ve.isBlob(y))throw new nn("Blob is not supported. Use a Buffer instead.");return ve.isArrayBuffer(y)||ve.isTypedArray(y)?l&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,v,w){let _=y;if(y&&!w&&typeof y=="object"){if(ve.endsWith(v,"{}"))v=r?v:v.slice(0,-2),y=JSON.stringify(y);else if(ve.isArray(y)&&ede(y)||ve.isFileList(y)||ve.endsWith(v,"[]")&&(_=ve.toArray(y)))return v=JI(v),_.forEach(function(S,A){!(ve.isUndefined(S)||S===null)&&t.append(a===!0?XI([v],A,o):a===null?v:v+"[]",c(S))}),!1}return Hb(y)?!0:(t.append(XI(w,v,o),c(y)),!1)}const p=[],m=Object.assign(tde,{defaultVisitor:d,convertValue:c,isVisitable:Hb});function h(y,v){if(!ve.isUndefined(y)){if(p.indexOf(y)!==-1)throw Error("Circular reference detected in "+v.join("."));p.push(y),ve.forEach(y,function(_,b){(!(ve.isUndefined(_)||_===null)&&i.call(t,_,ve.isString(b)?b.trim():b,v,m))===!0&&h(_,v?v.concat(b):[b])}),p.pop()}}if(!ve.isObject(e))throw new TypeError("data must be an object");return h(e),t}function QI(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Wb(e,t){this._pairs=[],e&&Sh(e,this,t)}const eP=Wb.prototype;eP.append=function(t,n){this._pairs.push([t,n])},eP.toString=function(t){const n=t?function(r){return t.call(this,r,QI)}:QI;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function rde(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function tP(e,t,n){if(!t)return e;const r=n&&n.encode||rde,i=n&&n.serialize;let o;if(i?o=i(t,n):o=ve.isURLSearchParams(t)?t.toString():new Wb(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class ide{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ve.forEach(this.handlers,function(r){r!==null&&t(r)})}}const nP=ide,rP={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ode=typeof URLSearchParams<"u"?URLSearchParams:Wb,ade=FormData,sde=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),ude=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),fo={isBrowser:!0,classes:{URLSearchParams:ode,FormData:ade,Blob},isStandardBrowserEnv:sde,isStandardBrowserWebWorkerEnv:ude,protocols:["http","https","file","blob","url","data"]};function lde(e,t){return Sh(e,new fo.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return fo.isNode&&ve.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function cde(e){return ve.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function fde(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function iP(e){function t(n,r,i,o){let a=n[o++];const s=Number.isFinite(+a),l=o>=n.length;return a=!a&&ve.isArray(i)?i.length:a,l?(ve.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!ve.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&ve.isArray(i[a])&&(i[a]=fde(i[a])),!s)}if(ve.isFormData(e)&&ve.isFunction(e.entries)){const n={};return ve.forEachEntry(e,(r,i)=>{t(cde(r),i,n,0)}),n}return null}const dde={"Content-Type":void 0};function pde(e,t,n){if(ve.isString(e))try{return(t||JSON.parse)(e),ve.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Eh={transitional:rP,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=ve.isObject(t);if(o&&ve.isHTMLForm(t)&&(t=new FormData(t)),ve.isFormData(t))return i&&i?JSON.stringify(iP(t)):t;if(ve.isArrayBuffer(t)||ve.isBuffer(t)||ve.isStream(t)||ve.isFile(t)||ve.isBlob(t))return t;if(ve.isArrayBufferView(t))return t.buffer;if(ve.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return lde(t,this.formSerializer).toString();if((s=ve.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Sh(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),pde(t)):t}],transformResponse:[function(t){const n=this.transitional||Eh.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&ve.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?nn.from(s,nn.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:fo.classes.FormData,Blob:fo.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ve.forEach(["delete","get","head"],function(t){Eh.headers[t]={}}),ve.forEach(["post","put","patch"],function(t){Eh.headers[t]=ve.merge(dde)});const Vb=Eh,hde=ve.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),mde=e=>{const t={};let n,r,i;return e&&e.split(`
|
|
190
190
|
`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&hde[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},oP=Symbol("internals");function Fc(e){return e&&String(e).trim().toLowerCase()}function Ah(e){return e===!1||e==null?e:ve.isArray(e)?e.map(Ah):String(e)}function yde(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}function gde(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function aP(e,t,n,r){if(ve.isFunction(r))return r.call(this,t,n);if(ve.isString(t)){if(ve.isString(r))return t.indexOf(r)!==-1;if(ve.isRegExp(r))return r.test(t)}}function vde(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function bde(e,t){const n=ve.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}class Ch{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,c){const d=Fc(l);if(!d)throw new Error("header name must be a non-empty string");const p=ve.findKey(i,d);(!p||i[p]===void 0||c===!0||c===void 0&&i[p]!==!1)&&(i[p||l]=Ah(s))}const a=(s,l)=>ve.forEach(s,(c,d)=>o(c,d,l));return ve.isPlainObject(t)||t instanceof this.constructor?a(t,n):ve.isString(t)&&(t=t.trim())&&!gde(t)?a(mde(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=Fc(t),t){const r=ve.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return yde(i);if(ve.isFunction(n))return n.call(this,i,r);if(ve.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Fc(t),t){const r=ve.findKey(this,t);return!!(r&&(!n||aP(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=Fc(a),a){const s=ve.findKey(r,a);s&&(!n||aP(r,r[s],s,n))&&(delete r[s],i=!0)}}return ve.isArray(t)?t.forEach(o):o(t),i}clear(){return Object.keys(this).forEach(this.delete.bind(this))}normalize(t){const n=this,r={};return ve.forEach(this,(i,o)=>{const a=ve.findKey(r,o);if(a){n[a]=Ah(i),delete n[o];return}const s=t?vde(o):String(o).trim();s!==o&&delete n[o],n[s]=Ah(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ve.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&ve.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
191
191
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[oP]=this[oP]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=Fc(a);r[s]||(bde(i,a),r[s]=!0)}return ve.isArray(t)?t.forEach(o):o(t),this}}Ch.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),ve.freezeMethods(Ch.prototype),ve.freezeMethods(Ch);const qo=Ch;function Kb(e,t){const n=this||Vb,r=t||n,i=qo.from(r.headers);let o=r.data;return ve.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function sP(e){return!!(e&&e.__CANCEL__)}function qc(e,t,n){nn.call(this,e??"canceled",nn.ERR_CANCELED,t,n),this.name="CanceledError"}ve.inherits(qc,nn,{__CANCEL__:!0});const _de=null;function wde(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new nn("Request failed with status code "+n.status,[nn.ERR_BAD_REQUEST,nn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const xde=fo.isStandardBrowserEnv?function(){return{write:function(n,r,i,o,a,s){const l=[];l.push(n+"="+encodeURIComponent(r)),ve.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),ve.isString(o)&&l.push("path="+o),ve.isString(a)&&l.push("domain="+a),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Sde(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ede(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function uP(e,t){return e&&!Sde(t)?Ede(e,t):t}const Ade=fo.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let a=o;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(a){const s=ve.isString(a)?i(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function Cde(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ode(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),d=r[o];a||(a=c),n[i]=l,r[i]=c;let p=o,m=0;for(;p!==i;)m+=n[p++],p=p%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-a<t)return;const h=d&&c-d;return h?Math.round(m*1e3/h):void 0}}function lP(e,t){let n=0;const r=Ode(50,250);return i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-n,l=r(s),c=o<=a;n=o;const d={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&c?(a-o)/l:void 0,event:i};d[t?"download":"upload"]=!0,e(d)}}const Oh={http:_de,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){let i=e.data;const o=qo.from(e.headers).normalize(),a=e.responseType;let s;function l(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}ve.isFormData(i)&&(fo.isStandardBrowserEnv||fo.isStandardBrowserWebWorkerEnv)&&o.setContentType(!1);let c=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(h+":"+y))}const d=uP(e.baseURL,e.url);c.open(e.method.toUpperCase(),tP(d,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function p(){if(!c)return;const h=qo.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),v={data:!a||a==="text"||a==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:h,config:e,request:c};wde(function(_){n(_),l()},function(_){r(_),l()},v),c=null}if("onloadend"in c?c.onloadend=p:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(p)},c.onabort=function(){c&&(r(new nn("Request aborted",nn.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new nn("Network Error",nn.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let y=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||rP;e.timeoutErrorMessage&&(y=e.timeoutErrorMessage),r(new nn(y,v.clarifyTimeoutError?nn.ETIMEDOUT:nn.ECONNABORTED,e,c)),c=null},fo.isStandardBrowserEnv){const h=(e.withCredentials||Ade(d))&&e.xsrfCookieName&&xde.read(e.xsrfCookieName);h&&o.set(e.xsrfHeaderName,h)}i===void 0&&o.setContentType(null),"setRequestHeader"in c&&ve.forEach(o.toJSON(),function(y,v){c.setRequestHeader(v,y)}),ve.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),a&&a!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",lP(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",lP(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=h=>{c&&(r(!h||h.type?new qc(null,e,c):h),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const m=Cde(d);if(m&&fo.protocols.indexOf(m)===-1){r(new nn("Unsupported protocol "+m+":",nn.ERR_BAD_REQUEST,e));return}c.send(i||null)})}};ve.forEach(Oh,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Tde={getAdapter:e=>{e=ve.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let i=0;i<t&&(n=e[i],!(r=ve.isString(n)?Oh[n.toLowerCase()]:n));i++);if(!r)throw r===!1?new nn(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(ve.hasOwnProp(Oh,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!ve.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:Oh};function Gb(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new qc(null,e)}function cP(e){return Gb(e),e.headers=qo.from(e.headers),e.data=Kb.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Tde.getAdapter(e.adapter||Vb.adapter)(e).then(function(r){return Gb(e),r.data=Kb.call(e,e.transformResponse,r),r.headers=qo.from(r.headers),r},function(r){return sP(r)||(Gb(e),r&&r.response&&(r.response.data=Kb.call(e,e.transformResponse,r.response),r.response.headers=qo.from(r.response.headers))),Promise.reject(r)})}const fP=e=>e instanceof qo?e.toJSON():e;function Zu(e,t){t=t||{};const n={};function r(c,d,p){return ve.isPlainObject(c)&&ve.isPlainObject(d)?ve.merge.call({caseless:p},c,d):ve.isPlainObject(d)?ve.merge({},d):ve.isArray(d)?d.slice():d}function i(c,d,p){if(ve.isUndefined(d)){if(!ve.isUndefined(c))return r(void 0,c,p)}else return r(c,d,p)}function o(c,d){if(!ve.isUndefined(d))return r(void 0,d)}function a(c,d){if(ve.isUndefined(d)){if(!ve.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function s(c,d,p){if(p in t)return r(c,d);if(p in e)return r(void 0,c)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,d)=>i(fP(c),fP(d),!0)};return ve.forEach(Object.keys(e).concat(Object.keys(t)),function(d){const p=l[d]||i,m=p(e[d],t[d],d);ve.isUndefined(m)&&p!==s||(n[d]=m)}),n}const dP="1.2.5",Yb={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Yb[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const pP={};Yb.transitional=function(t,n,r){function i(o,a){return"[Axios v"+dP+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new nn(i(a," has been removed"+(n?" in "+n:"")),nn.ERR_DEPRECATED);return n&&!pP[a]&&(pP[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}};function $de(e,t,n){if(typeof e!="object")throw new nn("options must be an object",nn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new nn("option "+o+" must be "+l,nn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new nn("Unknown option "+o,nn.ERR_BAD_OPTION)}}const Jb={assertOptions:$de,validators:Yb},_a=Jb.validators;class Th{constructor(t){this.defaults=t,this.interceptors={request:new nP,response:new nP}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Zu(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Jb.assertOptions(r,{silentJSONParsing:_a.transitional(_a.boolean),forcedJSONParsing:_a.transitional(_a.boolean),clarifyTimeoutError:_a.transitional(_a.boolean)},!1),i!==void 0&&Jb.assertOptions(i,{encode:_a.function,serialize:_a.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a;a=o&&ve.merge(o.common,o[n.method]),a&&ve.forEach(["delete","get","head","post","put","patch","common"],y=>{delete o[y]}),n.headers=qo.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let d,p=0,m;if(!l){const y=[cP.bind(this),void 0];for(y.unshift.apply(y,s),y.push.apply(y,c),m=y.length,d=Promise.resolve(n);p<m;)d=d.then(y[p++],y[p++]);return d}m=s.length;let h=n;for(p=0;p<m;){const y=s[p++],v=s[p++];try{h=y(h)}catch(w){v.call(this,w);break}}try{d=cP.call(this,h)}catch(y){return Promise.reject(y)}for(p=0,m=c.length;p<m;)d=d.then(c[p++],c[p++]);return d}getUri(t){t=Zu(this.defaults,t);const n=uP(t.baseURL,t.url);return tP(n,t.params,t.paramsSerializer)}}ve.forEach(["delete","get","head","options"],function(t){Th.prototype[t]=function(n,r){return this.request(Zu(r||{},{method:t,url:n,data:(r||{}).data}))}}),ve.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,s){return this.request(Zu(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}Th.prototype[t]=n(),Th.prototype[t+"Form"]=n(!0)});const $h=Th;class Xb{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new qc(o,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Xb(function(i){t=i}),cancel:t}}}const kde=Xb;function Ide(e){return function(n){return e.apply(null,n)}}function Pde(e){return ve.isObject(e)&&e.isAxiosError===!0}const Qb={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Qb).forEach(([e,t])=>{Qb[t]=e});const Rde=Qb;function hP(e){const t=new $h(e),n=qI($h.prototype.request,t);return ve.extend(n,$h.prototype,t,{allOwnKeys:!0}),ve.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return hP(Zu(e,i))},n}const Qn=hP(Vb);Qn.Axios=$h,Qn.CanceledError=qc,Qn.CancelToken=kde,Qn.isCancel=sP,Qn.VERSION=dP,Qn.toFormData=Sh,Qn.AxiosError=nn,Qn.Cancel=Qn.CanceledError,Qn.all=function(t){return Promise.all(t)},Qn.spread=Ide,Qn.isAxiosError=Pde,Qn.mergeConfig=Zu,Qn.AxiosHeaders=qo,Qn.formToJSON=e=>iP(ve.isHTMLForm(e)?new FormData(e):e),Qn.HttpStatusCode=Rde,Qn.default=Qn;const mP=Qn,Nde={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))};let e0=typeof window<"u"&&typeof window.document<"u"?window.crypto:mb;e0.getRandomValues||(e0=Nde);class vn extends Error{constructor(n,r,i,o,a,s){super(o);R(this,"isApiError",!0);this.code=n,this.description=r,this.type=i,this.message=o,this.error=a,this.id=s,this.id||(this.id=vn.generateId())}format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message}}static generateId(){const n=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],i=4,o=Array.from(e0.getRandomValues(new Uint8Array(i))).map(a=>a.toString(16).padStart(2,"0")).join("").toUpperCase();return`${n}_${r}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}}const Dde=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,t0=e=>e instanceof vn||Dde(e)&&e.isApiError===!0;class Uc extends vn{constructor(t,n,r){super(500,"An unknown error occurred","Unknown",t,n,r)}}class Mde extends vn{constructor(t,n,r){super(500,"An internal error occurred","Internal",t,n,r)}}class jde extends vn{constructor(t,n,r){super(401,"The request requires to be authenticated.","Unauthorized",t,n,r)}}class Lde extends vn{constructor(t,n,r){super(403,"The requested action can't be peform by this resource.","Forbidden",t,n,r)}}class Fde extends vn{constructor(t,n,r){super(413,"The request payload is too large.","PayloadTooLarge",t,n,r)}}class qde extends vn{constructor(t,n,r){super(400,"The request payload is invalid.","InvalidPayload",t,n,r)}}class Ude extends vn{constructor(t,n,r){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,n,r)}}class Bde extends vn{constructor(t,n,r){super(405,"The requested method does not exist.","MethodNotFound",t,n,r)}}class zde extends vn{constructor(t,n,r){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,r)}}class Zde extends vn{constructor(t,n,r){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,r)}}class Hde extends vn{constructor(t,n,r){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,n,r)}}class Wde extends vn{constructor(t,n,r){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,n,r)}}class Vde extends vn{constructor(t,n,r){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,n,r)}}class Kde extends vn{constructor(t,n,r){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,n,r)}}class Gde extends vn{constructor(t,n,r){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,n,r)}}class Yde extends vn{constructor(t,n,r){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,n,r)}}class Jde extends vn{constructor(t,n,r){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,n,r)}}class Xde extends vn{constructor(t,n,r){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,n,r)}}class Qde extends vn{constructor(t,n,r){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,r)}}class epe extends vn{constructor(t,n,r){super(429,"The request has been rate limited.","RateLimited",t,n,r)}}class tpe extends vn{constructor(t,n,r){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,r)}}class npe extends vn{constructor(t,n,r){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,n,r)}}class rpe extends vn{constructor(t,n,r){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,n,r)}}class ipe extends vn{constructor(t,n,r){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,n,r)}}const ope={Unknown:Uc,Internal:Mde,Unauthorized:jde,Forbidden:Lde,PayloadTooLarge:Fde,InvalidPayload:qde,UnsupportedMediaType:Ude,MethodNotFound:Bde,ResourceNotFound:zde,InvalidJsonSchema:Zde,InvalidDataFormat:Hde,InvalidIdentifier:Wde,RelationConflict:Vde,ReferenceConstraint:Kde,ResourceLockedConflict:Gde,ReferenceNotFound:Yde,InvalidQuery:Jde,Runtime:Xde,AlreadyExists:Qde,RateLimited:epe,PaymentRequired:tpe,QuotaExceeded:npe,LimitExceeded:rpe,BreakingChanges:ipe},yP=e=>t0(e)?e:e instanceof Error?new Uc(e.message,e):typeof e=="string"?new Uc(e):ape(e);function ape(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){const t=ope[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN"):new Uc(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new Uc("An invalid error occurred: "+JSON.stringify(e))}var spe=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;t[n]=i;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,n);if(a.value!==i||a.enumerable!==!0)return!1}return!0},gP=typeof Symbol<"u"&&Symbol,upe=spe,lpe=function(){return typeof gP!="function"||typeof Symbol!="function"||typeof gP("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:upe()},vP={foo:{}},cpe=Object,fpe=function(){return{__proto__:vP}.foo===vP.foo&&!({__proto__:null}instanceof cpe)},dpe="Function.prototype.bind called on incompatible ",ppe=Object.prototype.toString,hpe=Math.max,mpe="[object Function]",bP=function(t,n){for(var r=[],i=0;i<t.length;i+=1)r[i]=t[i];for(var o=0;o<n.length;o+=1)r[o+t.length]=n[o];return r},ype=function(t,n){for(var r=[],i=n||0,o=0;i<t.length;i+=1,o+=1)r[o]=t[i];return r},gpe=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n},vpe=function(t){var n=this;if(typeof n!="function"||ppe.apply(n)!==mpe)throw new TypeError(dpe+n);for(var r=ype(arguments,1),i,o=function(){if(this instanceof i){var d=n.apply(this,bP(r,arguments));return Object(d)===d?d:this}return n.apply(t,bP(r,arguments))},a=hpe(0,n.length-r.length),s=[],l=0;l<a;l++)s[l]="$"+l;if(i=Function("binder","return function ("+gpe(s,",")+"){ return binder.apply(this,arguments); }")(o),n.prototype){var c=function(){};c.prototype=n.prototype,i.prototype=new c,c.prototype=null}return i},bpe=vpe,n0=Function.prototype.bind||bpe,_pe=n0,wpe=_pe.call(Function.call,Object.prototype.hasOwnProperty),Vt,Hu=SyntaxError,_P=Function,Wu=TypeError,r0=function(e){try{return _P('"use strict"; return ('+e+").constructor;")()}catch{}},Os=Object.getOwnPropertyDescriptor;if(Os)try{Os({},"")}catch{Os=null}var i0=function(){throw new Wu},xpe=Os?function(){try{return arguments.callee,i0}catch{try{return Os(arguments,"callee").get}catch{return i0}}}():i0,Vu=lpe(),Spe=fpe(),or=Object.getPrototypeOf||(Spe?function(e){return e.__proto__}:null),Ku={},Epe=typeof Uint8Array>"u"||!or?Vt:or(Uint8Array),Ts={"%AggregateError%":typeof AggregateError>"u"?Vt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Vt:ArrayBuffer,"%ArrayIteratorPrototype%":Vu&&or?or([][Symbol.iterator]()):Vt,"%AsyncFromSyncIteratorPrototype%":Vt,"%AsyncFunction%":Ku,"%AsyncGenerator%":Ku,"%AsyncGeneratorFunction%":Ku,"%AsyncIteratorPrototype%":Ku,"%Atomics%":typeof Atomics>"u"?Vt:Atomics,"%BigInt%":typeof BigInt>"u"?Vt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Vt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Vt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Vt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Vt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Vt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Vt:FinalizationRegistry,"%Function%":_P,"%GeneratorFunction%":Ku,"%Int8Array%":typeof Int8Array>"u"?Vt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Vt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Vt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Vu&&or?or(or([][Symbol.iterator]())):Vt,"%JSON%":typeof JSON=="object"?JSON:Vt,"%Map%":typeof Map>"u"?Vt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Vu||!or?Vt:or(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Vt:Promise,"%Proxy%":typeof Proxy>"u"?Vt:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Vt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Vt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Vu||!or?Vt:or(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Vt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Vu&&or?or(""[Symbol.iterator]()):Vt,"%Symbol%":Vu?Symbol:Vt,"%SyntaxError%":Hu,"%ThrowTypeError%":xpe,"%TypedArray%":Epe,"%TypeError%":Wu,"%Uint8Array%":typeof Uint8Array>"u"?Vt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Vt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Vt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Vt:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Vt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Vt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Vt:WeakSet};if(or)try{null.error}catch(e){var Ape=or(or(e));Ts["%Error.prototype%"]=Ape}var Cpe=function e(t){var n;if(t==="%AsyncFunction%")n=r0("async function () {}");else if(t==="%GeneratorFunction%")n=r0("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=r0("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&or&&(n=or(i.prototype))}return Ts[t]=n,n},wP={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Bc=n0,kh=wpe,Ope=Bc.call(Function.call,Array.prototype.concat),Tpe=Bc.call(Function.apply,Array.prototype.splice),xP=Bc.call(Function.call,String.prototype.replace),Ih=Bc.call(Function.call,String.prototype.slice),$pe=Bc.call(Function.call,RegExp.prototype.exec),kpe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ipe=/\\(\\)?/g,Ppe=function(t){var n=Ih(t,0,1),r=Ih(t,-1);if(n==="%"&&r!=="%")throw new Hu("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new Hu("invalid intrinsic syntax, expected opening `%`");var i=[];return xP(t,kpe,function(o,a,s,l){i[i.length]=s?xP(l,Ipe,"$1"):a||o}),i},Rpe=function(t,n){var r=t,i;if(kh(wP,r)&&(i=wP[r],r="%"+i[0]+"%"),kh(Ts,r)){var o=Ts[r];if(o===Ku&&(o=Cpe(r)),typeof o>"u"&&!n)throw new Wu("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:o}}throw new Hu("intrinsic "+t+" does not exist!")},o0=function(t,n){if(typeof t!="string"||t.length===0)throw new Wu("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Wu('"allowMissing" argument must be a boolean');if($pe(/^%?[^%]*%?$/,t)===null)throw new Hu("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=Ppe(t),i=r.length>0?r[0]:"",o=Rpe("%"+i+"%",n),a=o.name,s=o.value,l=!1,c=o.alias;c&&(i=c[0],Tpe(r,Ope([0,1],c)));for(var d=1,p=!0;d<r.length;d+=1){var m=r[d],h=Ih(m,0,1),y=Ih(m,-1);if((h==='"'||h==="'"||h==="`"||y==='"'||y==="'"||y==="`")&&h!==y)throw new Hu("property names with quotes must have matching quotes");if((m==="constructor"||!p)&&(l=!0),i+="."+m,a="%"+i+"%",kh(Ts,a))s=Ts[a];else if(s!=null){if(!(m in s)){if(!n)throw new Wu("base intrinsic for "+t+" exists, but the property is not available.");return}if(Os&&d+1>=r.length){var v=Os(s,m);p=!!v,p&&"get"in v&&!("originalValue"in v.get)?s=v.get:s=s[m]}else p=kh(s,m),s=s[m];p&&!l&&(Ts[a]=s)}}return s},SP={exports:{}};(function(e){var t=n0,n=o0,r=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),o=n("%Reflect.apply%",!0)||t.call(i,r),a=n("%Object.getOwnPropertyDescriptor%",!0),s=n("%Object.defineProperty%",!0),l=n("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}e.exports=function(p){var m=o(t,i,arguments);if(a&&s){var h=a(m,"length");h.configurable&&s(m,"length",{value:1+l(0,p.length-(arguments.length-1))})}return m};var c=function(){return o(t,r,arguments)};s?s(e.exports,"apply",{value:c}):e.exports.apply=c})(SP);var Npe=SP.exports,EP=o0,AP=Npe,Dpe=AP(EP("String.prototype.indexOf")),Mpe=function(t,n){var r=EP(t,!!n);return typeof r=="function"&&Dpe(t,".prototype.")>-1?AP(r):r},a0=typeof Map=="function"&&Map.prototype,s0=Object.getOwnPropertyDescriptor&&a0?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ph=a0&&s0&&typeof s0.get=="function"?s0.get:null,CP=a0&&Map.prototype.forEach,u0=typeof Set=="function"&&Set.prototype,l0=Object.getOwnPropertyDescriptor&&u0?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Rh=u0&&l0&&typeof l0.get=="function"?l0.get:null,OP=u0&&Set.prototype.forEach,jpe=typeof WeakMap=="function"&&WeakMap.prototype,zc=jpe?WeakMap.prototype.has:null,Lpe=typeof WeakSet=="function"&&WeakSet.prototype,Zc=Lpe?WeakSet.prototype.has:null,Fpe=typeof WeakRef=="function"&&WeakRef.prototype,TP=Fpe?WeakRef.prototype.deref:null,qpe=Boolean.prototype.valueOf,Upe=Object.prototype.toString,Bpe=Function.prototype.toString,zpe=String.prototype.match,c0=String.prototype.slice,wa=String.prototype.replace,Zpe=String.prototype.toUpperCase,$P=String.prototype.toLowerCase,kP=RegExp.prototype.test,IP=Array.prototype.concat,po=Array.prototype.join,Hpe=Array.prototype.slice,PP=Math.floor,f0=typeof BigInt=="function"?BigInt.prototype.valueOf:null,d0=Object.getOwnPropertySymbols,p0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Gu=typeof Symbol=="function"&&typeof Symbol.iterator=="object",xr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Gu||"symbol")?Symbol.toStringTag:null,RP=Object.prototype.propertyIsEnumerable,NP=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function DP(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||kP.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-PP(-e):PP(e);if(r!==e){var i=String(r),o=c0.call(t,i.length+1);return wa.call(i,n,"$&_")+"."+wa.call(wa.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return wa.call(t,n,"$&_")}var h0=As,MP=h0.custom,jP=qP(MP)?MP:null,Wpe=function e(t,n,r,i){var o=n||{};if(xa(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(xa(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=xa(o,"customInspect")?o.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(xa(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(xa(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return BP(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return s?DP(t,l):l}if(typeof t=="bigint"){var c=String(t)+"n";return s?DP(t,c):c}var d=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=d&&d>0&&typeof t=="object")return m0(t)?"[Array]":"[Object]";var p=che(o,r);if(typeof i>"u")i=[];else if(UP(i,t)>=0)return"[Circular]";function m(Q,G,V){if(G&&(i=Hpe.call(i),i.push(G)),V){var F={depth:o.depth};return xa(o,"quoteStyle")&&(F.quoteStyle=o.quoteStyle),e(Q,F,r+1,i)}return e(Q,o,r+1,i)}if(typeof t=="function"&&!FP(t)){var h=the(t),y=Nh(t,m);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(y.length>0?" { "+po.call(y,", ")+" }":"")}if(qP(t)){var v=Gu?wa.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):p0.call(t);return typeof t=="object"&&!Gu?Hc(v):v}if(she(t)){for(var w="<"+$P.call(String(t.nodeName)),_=t.attributes||[],b=0;b<_.length;b++)w+=" "+_[b].name+"="+LP(Vpe(_[b].value),"double",o);return w+=">",t.childNodes&&t.childNodes.length&&(w+="..."),w+="</"+$P.call(String(t.nodeName))+">",w}if(m0(t)){if(t.length===0)return"[]";var S=Nh(t,m);return p&&!lhe(S)?"["+g0(S,p)+"]":"[ "+po.call(S,", ")+" ]"}if(Gpe(t)){var A=Nh(t,m);return!("cause"in Error.prototype)&&"cause"in t&&!RP.call(t,"cause")?"{ ["+String(t)+"] "+po.call(IP.call("[cause]: "+m(t.cause),A),", ")+" }":A.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+po.call(A,", ")+" }"}if(typeof t=="object"&&a){if(jP&&typeof t[jP]=="function"&&h0)return h0(t,{depth:d-r});if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(nhe(t)){var E=[];return CP&&CP.call(t,function(Q,G){E.push(m(G,t,!0)+" => "+m(Q,t))}),zP("Map",Ph.call(t),E,p)}if(ohe(t)){var T=[];return OP&&OP.call(t,function(Q){T.push(m(Q,t))}),zP("Set",Rh.call(t),T,p)}if(rhe(t))return y0("WeakMap");if(ahe(t))return y0("WeakSet");if(ihe(t))return y0("WeakRef");if(Jpe(t))return Hc(m(Number(t)));if(Qpe(t))return Hc(m(f0.call(t)));if(Xpe(t))return Hc(qpe.call(t));if(Ype(t))return Hc(m(String(t)));if(!Kpe(t)&&!FP(t)){var j=Nh(t,m),q=NP?NP(t)===Object.prototype:t instanceof Object||t.constructor===Object,L=t instanceof Object?"":"null prototype",M=!q&&xr&&Object(t)===t&&xr in t?c0.call(Sa(t),8,-1):L?"Object":"",H=q||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",re=H+(M||L?"["+po.call(IP.call([],M||[],L||[]),": ")+"] ":"");return j.length===0?re+"{}":p?re+"{"+g0(j,p)+"}":re+"{ "+po.call(j,", ")+" }"}return String(t)};function LP(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function Vpe(e){return wa.call(String(e),/"/g,""")}function m0(e){return Sa(e)==="[object Array]"&&(!xr||!(typeof e=="object"&&xr in e))}function Kpe(e){return Sa(e)==="[object Date]"&&(!xr||!(typeof e=="object"&&xr in e))}function FP(e){return Sa(e)==="[object RegExp]"&&(!xr||!(typeof e=="object"&&xr in e))}function Gpe(e){return Sa(e)==="[object Error]"&&(!xr||!(typeof e=="object"&&xr in e))}function Ype(e){return Sa(e)==="[object String]"&&(!xr||!(typeof e=="object"&&xr in e))}function Jpe(e){return Sa(e)==="[object Number]"&&(!xr||!(typeof e=="object"&&xr in e))}function Xpe(e){return Sa(e)==="[object Boolean]"&&(!xr||!(typeof e=="object"&&xr in e))}function qP(e){if(Gu)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!p0)return!1;try{return p0.call(e),!0}catch{}return!1}function Qpe(e){if(!e||typeof e!="object"||!f0)return!1;try{return f0.call(e),!0}catch{}return!1}var ehe=Object.prototype.hasOwnProperty||function(e){return e in this};function xa(e,t){return ehe.call(e,t)}function Sa(e){return Upe.call(e)}function the(e){if(e.name)return e.name;var t=zpe.call(Bpe.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function UP(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function nhe(e){if(!Ph||!e||typeof e!="object")return!1;try{Ph.call(e);try{Rh.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function rhe(e){if(!zc||!e||typeof e!="object")return!1;try{zc.call(e,zc);try{Zc.call(e,Zc)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function ihe(e){if(!TP||!e||typeof e!="object")return!1;try{return TP.call(e),!0}catch{}return!1}function ohe(e){if(!Rh||!e||typeof e!="object")return!1;try{Rh.call(e);try{Ph.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function ahe(e){if(!Zc||!e||typeof e!="object")return!1;try{Zc.call(e,Zc);try{zc.call(e,zc)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function she(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function BP(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return BP(c0.call(e,0,t.maxStringLength),t)+r}var i=wa.call(wa.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,uhe);return LP(i,"single",t)}function uhe(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+Zpe.call(t.toString(16))}function Hc(e){return"Object("+e+")"}function y0(e){return e+" { ? }"}function zP(e,t,n,r){var i=r?g0(n,r):po.call(n,", ");return e+" ("+t+") {"+i+"}"}function lhe(e){for(var t=0;t<e.length;t++)if(UP(e[t],`
|
|
192
192
|
`)>=0)return!1;return!0}function che(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=po.call(Array(e.indent+1)," ");else return null;return{base:n,prev:po.call(Array(t+1),n)}}function g0(e,t){if(e.length===0)return"";var n=`
|
|
@@ -196,11 +196,11 @@ ${ap(e.value)}`.trim();case St.ZodFirstPartyTypeKind.ZodEnum:return s.values.map
|
|
|
196
196
|
* Available under MIT License (MIT)
|
|
197
197
|
* https://github.com/Yaffle/EventSource/
|
|
198
198
|
*/(function(e,t){(function(n){var r=n.setTimeout,i=n.clearTimeout,o=n.XMLHttpRequest,a=n.XDomainRequest,s=n.ActiveXObject,l=n.EventSource,c=n.document,d=n.Promise,p=n.fetch,m=n.Response,h=n.TextDecoder,y=n.TextEncoder,v=n.AbortController;if(typeof window<"u"&&typeof c<"u"&&!("readyState"in c)&&c.body==null&&(c.readyState="loading",window.addEventListener("load",function(K){c.readyState="complete"},!1)),o==null&&s!=null&&(o=function(){return new s("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(K){function de(){}return de.prototype=K,new de}),Date.now||(Date.now=function(){return new Date().getTime()}),v==null){var w=p;p=function(K,de){var Te=de.signal;return w(K,{headers:de.headers,credentials:de.credentials,cache:de.cache}).then(function(Se){var et=Se.body.getReader();return Te._reader=et,Te._aborted&&Te._reader.cancel(),{status:Se.status,statusText:Se.statusText,headers:Se.headers,body:{getReader:function(){return et}}}})},v=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function _(){this.bitsNeeded=0,this.codePoint=0}_.prototype.decode=function(K){function de(ie,ye,xe){if(xe===1)return ie>=128>>ye&&ie<<ye<=2047;if(xe===2)return ie>=2048>>ye&&ie<<ye<=55295||ie>=57344>>ye&&ie<<ye<=65535;if(xe===3)return ie>=65536>>ye&&ie<<ye<=1114111;throw new Error}function Te(ie,ye){if(ie===6*1)return ye>>6>15?3:ye>31?2:1;if(ie===6*2)return ye>15?3:2;if(ie===6*3)return 3;throw new Error}for(var Se=65533,et="",Ue=this.bitsNeeded,ot=this.codePoint,It=0;It<K.length;It+=1){var mt=K[It];Ue!==0&&(mt<128||mt>191||!de(ot<<6|mt&63,Ue-6,Te(Ue,ot)))&&(Ue=0,ot=Se,et+=String.fromCharCode(ot)),Ue===0?(mt>=0&&mt<=127?(Ue=0,ot=mt):mt>=192&&mt<=223?(Ue=6*1,ot=mt&31):mt>=224&&mt<=239?(Ue=6*2,ot=mt&15):mt>=240&&mt<=247?(Ue=6*3,ot=mt&7):(Ue=0,ot=Se),Ue!==0&&!de(ot,Ue,Te(Ue,ot))&&(Ue=0,ot=Se)):(Ue-=6,ot=ot<<6|mt&63),Ue===0&&(ot<=65535?et+=String.fromCharCode(ot):(et+=String.fromCharCode(55296+(ot-65535-1>>10)),et+=String.fromCharCode(56320+(ot-65535-1&1023))))}return this.bitsNeeded=Ue,this.codePoint=ot,et};var b=function(){try{return new h().decode(new y().encode("test"),{stream:!0})==="test"}catch(K){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+K)}return!1};(h==null||y==null||!b())&&(h=_);var S=function(){};function A(K){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=S,this.onload=S,this.onerror=S,this.onreadystatechange=S,this._contentType="",this._xhr=K,this._sendTimeout=0,this._abort=S}A.prototype.open=function(K,de){this._abort(!0);var Te=this,Se=this._xhr,et=1,Ue=0;this._abort=function(xe){Te._sendTimeout!==0&&(i(Te._sendTimeout),Te._sendTimeout=0),(et===1||et===2||et===3)&&(et=4,Se.onload=S,Se.onerror=S,Se.onabort=S,Se.onprogress=S,Se.onreadystatechange=S,Se.abort(),Ue!==0&&(i(Ue),Ue=0),xe||(Te.readyState=4,Te.onabort(null),Te.onreadystatechange())),et=0};var ot=function(){if(et===1){var xe=0,Be="",ct=void 0;if("contentType"in Se)xe=200,Be="OK",ct=Se.contentType;else try{xe=Se.status,Be=Se.statusText,ct=Se.getResponseHeader("Content-Type")}catch{xe=0,Be="",ct=void 0}xe!==0&&(et=2,Te.readyState=2,Te.status=xe,Te.statusText=Be,Te._contentType=ct,Te.onreadystatechange())}},It=function(){if(ot(),et===2||et===3){et=3;var xe="";try{xe=Se.responseText}catch{}Te.readyState=3,Te.responseText=xe,Te.onprogress()}},mt=function(xe,Be){if((Be==null||Be.preventDefault==null)&&(Be={preventDefault:S}),It(),et===1||et===2||et===3){if(et=4,Ue!==0&&(i(Ue),Ue=0),Te.readyState=4,xe==="load")Te.onload(Be);else if(xe==="error")Te.onerror(Be);else if(xe==="abort")Te.onabort(Be);else throw new TypeError;Te.onreadystatechange()}},ie=function(xe){Se!=null&&(Se.readyState===4?(!("onload"in Se)||!("onerror"in Se)||!("onabort"in Se))&&mt(Se.responseText===""?"error":"load",xe):Se.readyState===3?"onprogress"in Se||It():Se.readyState===2&&ot())},ye=function(){Ue=r(function(){ye()},500),Se.readyState===3&&It()};"onload"in Se&&(Se.onload=function(xe){mt("load",xe)}),"onerror"in Se&&(Se.onerror=function(xe){mt("error",xe)}),"onabort"in Se&&(Se.onabort=function(xe){mt("abort",xe)}),"onprogress"in Se&&(Se.onprogress=It),"onreadystatechange"in Se&&(Se.onreadystatechange=function(xe){ie(xe)}),("contentType"in Se||!("ontimeout"in o.prototype))&&(de+=(de.indexOf("?")===-1?"?":"&")+"padding=true"),Se.open(K,de,!0),"readyState"in Se&&(Ue=r(function(){ye()},0))},A.prototype.abort=function(){this._abort(!1)},A.prototype.getResponseHeader=function(K){return this._contentType},A.prototype.setRequestHeader=function(K,de){var Te=this._xhr;"setRequestHeader"in Te&&Te.setRequestHeader(K,de)},A.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},A.prototype.send=function(){if((!("ontimeout"in o.prototype)||!("sendAsBinary"in o.prototype)&&!("mozAnon"in o.prototype))&&c!=null&&c.readyState!=null&&c.readyState!=="complete"){var K=this;K._sendTimeout=r(function(){K._sendTimeout=0,K.send()},4);return}var de=this._xhr;"withCredentials"in de&&(de.withCredentials=this.withCredentials);try{de.send(void 0)}catch(Te){throw Te}};function E(K){return K.replace(/[A-Z]/g,function(de){return String.fromCharCode(de.charCodeAt(0)+32)})}function T(K){for(var de=Object.create(null),Te=K.split(`\r
|
|
199
|
-
`),Se=0;Se<Te.length;Se+=1){var et=Te[Se],Ue=et.split(": "),ot=Ue.shift(),It=Ue.join(": ");de[E(ot)]=It}this._map=de}T.prototype.get=function(K){return this._map[E(K)]},o!=null&&o.HEADERS_RECEIVED==null&&(o.HEADERS_RECEIVED=2);function j(){}j.prototype.open=function(K,de,Te,Se,et,Ue,ot){K.open("GET",et);var It=0;K.onprogress=function(){var ie=K.responseText,ye=ie.slice(It);It+=ye.length,Te(ye)},K.onerror=function(ie){ie.preventDefault(),Se(new Error("NetworkError"))},K.onload=function(){Se(null)},K.onabort=function(){Se(null)},K.onreadystatechange=function(){if(K.readyState===o.HEADERS_RECEIVED){var ie=K.status,ye=K.statusText,xe=K.getResponseHeader("Content-Type"),Be=K.getAllResponseHeaders();de(ie,ye,xe,new T(Be))}},K.withCredentials=Ue;for(var mt in ot)Object.prototype.hasOwnProperty.call(ot,mt)&&K.setRequestHeader(mt,ot[mt]);return K.send(),K};function q(K){this._headers=K}q.prototype.get=function(K){return this._headers.get(K)};function L(){}L.prototype.open=function(K,de,Te,Se,et,Ue,ot){var It=null,mt=new v,ie=mt.signal,ye=new h;return p(et,{headers:ot,credentials:Ue?"include":"same-origin",signal:ie,cache:"no-store"}).then(function(xe){return It=xe.body.getReader(),de(xe.status,xe.statusText,xe.headers.get("Content-Type"),new q(xe.headers)),new d(function(Be,ct){var pn=function(){It.read().then(function(rn){if(rn.done)Be(void 0);else{var Yt=ye.decode(rn.value,{stream:!0});Te(Yt),pn()}}).catch(function(rn){ct(rn)})};pn()})}).catch(function(xe){if(xe.name!=="AbortError")return xe}).then(function(xe){Se(xe)}),{abort:function(){It!=null&&It.cancel(),mt.abort()}}};function M(){this._listeners=Object.create(null)}function H(K){r(function(){throw K},0)}M.prototype.dispatchEvent=function(K){K.target=this;var de=this._listeners[K.type];if(de!=null)for(var Te=de.length,Se=0;Se<Te;Se+=1){var et=de[Se];try{typeof et.handleEvent=="function"?et.handleEvent(K):et.call(this,K)}catch(Ue){H(Ue)}}},M.prototype.addEventListener=function(K,de){K=String(K);var Te=this._listeners,Se=Te[K];Se==null&&(Se=[],Te[K]=Se);for(var et=!1,Ue=0;Ue<Se.length;Ue+=1)Se[Ue]===de&&(et=!0);et||Se.push(de)},M.prototype.removeEventListener=function(K,de){K=String(K);var Te=this._listeners,Se=Te[K];if(Se!=null){for(var et=[],Ue=0;Ue<Se.length;Ue+=1)Se[Ue]!==de&&et.push(Se[Ue]);et.length===0?delete Te[K]:Te[K]=et}};function re(K){this.type=K,this.target=void 0}function Q(K,de){re.call(this,K),this.data=de.data,this.lastEventId=de.lastEventId}Q.prototype=Object.create(re.prototype);function G(K,de){re.call(this,K),this.status=de.status,this.statusText=de.statusText,this.headers=de.headers}G.prototype=Object.create(re.prototype);function V(K,de){re.call(this,K),this.error=de.error}V.prototype=Object.create(re.prototype);var F=-1,Y=0,ne=1,ce=2,P=-1,ue=0,Oe=1,D=2,De=3,qe=/^text\/event\-stream(;.*)?$/i,Me=1e3,Je=18e6,rt=function(K,de){var Te=K==null?de:parseInt(K,10);return Te!==Te&&(Te=de),Ke(Te)},Ke=function(K){return Math.min(Math.max(K,Me),Je)},Pe=function(K,de,Te){try{typeof de=="function"&&de.call(K,Te)}catch(Se){H(Se)}};function Ae(K,de){M.call(this),de=de||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,Ze(this,K,de)}function Fe(){return o!=null&&"withCredentials"in o.prototype||a==null?new o:new a}var $e=p!=null&&m!=null&&"body"in m.prototype;function Ze(K,de,Te){de=String(de);var Se=!!Te.withCredentials,et=Te.lastEventIdQueryParameterName||"lastEventId",Ue=Ke(1e3),ot=rt(Te.heartbeatTimeout,45e3),It="",mt=Ue,ie=!1,ye=0,xe=Te.headers||{},Be=Te.Transport,ct=$e&&Be==null?void 0:new A(Be!=null?new Be:Fe()),pn=Be!=null&&typeof Be!="string"?new Be:ct==null?new L:new j,rn=void 0,Yt=0,cn=F,Cn="",ee="",ae="",ft="",At=ue,on=0,pt=0,Mn=function(Xe,Re,We,
|
|
200
|
-
`.charCodeAt(0)||
|
|
201
|
-
`.charCodeAt(0))At=ue;else if(At===P&&(At=ue),
|
|
199
|
+
`),Se=0;Se<Te.length;Se+=1){var et=Te[Se],Ue=et.split(": "),ot=Ue.shift(),It=Ue.join(": ");de[E(ot)]=It}this._map=de}T.prototype.get=function(K){return this._map[E(K)]},o!=null&&o.HEADERS_RECEIVED==null&&(o.HEADERS_RECEIVED=2);function j(){}j.prototype.open=function(K,de,Te,Se,et,Ue,ot){K.open("GET",et);var It=0;K.onprogress=function(){var ie=K.responseText,ye=ie.slice(It);It+=ye.length,Te(ye)},K.onerror=function(ie){ie.preventDefault(),Se(new Error("NetworkError"))},K.onload=function(){Se(null)},K.onabort=function(){Se(null)},K.onreadystatechange=function(){if(K.readyState===o.HEADERS_RECEIVED){var ie=K.status,ye=K.statusText,xe=K.getResponseHeader("Content-Type"),Be=K.getAllResponseHeaders();de(ie,ye,xe,new T(Be))}},K.withCredentials=Ue;for(var mt in ot)Object.prototype.hasOwnProperty.call(ot,mt)&&K.setRequestHeader(mt,ot[mt]);return K.send(),K};function q(K){this._headers=K}q.prototype.get=function(K){return this._headers.get(K)};function L(){}L.prototype.open=function(K,de,Te,Se,et,Ue,ot){var It=null,mt=new v,ie=mt.signal,ye=new h;return p(et,{headers:ot,credentials:Ue?"include":"same-origin",signal:ie,cache:"no-store"}).then(function(xe){return It=xe.body.getReader(),de(xe.status,xe.statusText,xe.headers.get("Content-Type"),new q(xe.headers)),new d(function(Be,ct){var pn=function(){It.read().then(function(rn){if(rn.done)Be(void 0);else{var Yt=ye.decode(rn.value,{stream:!0});Te(Yt),pn()}}).catch(function(rn){ct(rn)})};pn()})}).catch(function(xe){if(xe.name!=="AbortError")return xe}).then(function(xe){Se(xe)}),{abort:function(){It!=null&&It.cancel(),mt.abort()}}};function M(){this._listeners=Object.create(null)}function H(K){r(function(){throw K},0)}M.prototype.dispatchEvent=function(K){K.target=this;var de=this._listeners[K.type];if(de!=null)for(var Te=de.length,Se=0;Se<Te;Se+=1){var et=de[Se];try{typeof et.handleEvent=="function"?et.handleEvent(K):et.call(this,K)}catch(Ue){H(Ue)}}},M.prototype.addEventListener=function(K,de){K=String(K);var Te=this._listeners,Se=Te[K];Se==null&&(Se=[],Te[K]=Se);for(var et=!1,Ue=0;Ue<Se.length;Ue+=1)Se[Ue]===de&&(et=!0);et||Se.push(de)},M.prototype.removeEventListener=function(K,de){K=String(K);var Te=this._listeners,Se=Te[K];if(Se!=null){for(var et=[],Ue=0;Ue<Se.length;Ue+=1)Se[Ue]!==de&&et.push(Se[Ue]);et.length===0?delete Te[K]:Te[K]=et}};function re(K){this.type=K,this.target=void 0}function Q(K,de){re.call(this,K),this.data=de.data,this.lastEventId=de.lastEventId}Q.prototype=Object.create(re.prototype);function G(K,de){re.call(this,K),this.status=de.status,this.statusText=de.statusText,this.headers=de.headers}G.prototype=Object.create(re.prototype);function V(K,de){re.call(this,K),this.error=de.error}V.prototype=Object.create(re.prototype);var F=-1,Y=0,ne=1,ce=2,P=-1,ue=0,Oe=1,D=2,De=3,qe=/^text\/event\-stream(;.*)?$/i,Me=1e3,Je=18e6,rt=function(K,de){var Te=K==null?de:parseInt(K,10);return Te!==Te&&(Te=de),Ke(Te)},Ke=function(K){return Math.min(Math.max(K,Me),Je)},Pe=function(K,de,Te){try{typeof de=="function"&&de.call(K,Te)}catch(Se){H(Se)}};function Ae(K,de){M.call(this),de=de||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,Ze(this,K,de)}function Fe(){return o!=null&&"withCredentials"in o.prototype||a==null?new o:new a}var $e=p!=null&&m!=null&&"body"in m.prototype;function Ze(K,de,Te){de=String(de);var Se=!!Te.withCredentials,et=Te.lastEventIdQueryParameterName||"lastEventId",Ue=Ke(1e3),ot=rt(Te.heartbeatTimeout,45e3),It="",mt=Ue,ie=!1,ye=0,xe=Te.headers||{},Be=Te.Transport,ct=$e&&Be==null?void 0:new A(Be!=null?new Be:Fe()),pn=Be!=null&&typeof Be!="string"?new Be:ct==null?new L:new j,rn=void 0,Yt=0,cn=F,Cn="",ee="",ae="",ft="",At=ue,on=0,pt=0,Mn=function(Xe,Re,We,_t){if(cn===Y)if(Xe===200&&We!=null&&qe.test(We)){cn=ne,ie=Date.now(),mt=Ue,K.readyState=ne;var Pt=new G("open",{status:Xe,statusText:Re,headers:_t});K.dispatchEvent(Pt),Pe(K,K.onopen,Pt)}else{var Jt="";Xe!==200?(Re&&(Re=Re.replace(/\s+/g," ")),Jt="EventSource's response has a status "+Xe+" "+Re+" that is not 200. Aborting the connection."):Jt="EventSource's response has a Content-Type specifying an unsupported type: "+(We==null?"-":We.replace(/\s+/g," "))+". Aborting the connection.",je();var Pt=new G("error",{status:Xe,statusText:Re,headers:_t});K.dispatchEvent(Pt),Pe(K,K.onerror,Pt),console.error(Jt)}},sr=function(Xe){if(cn===ne){for(var Re=-1,We=0;We<Xe.length;We+=1){var _t=Xe.charCodeAt(We);(_t===`
|
|
200
|
+
`.charCodeAt(0)||_t==="\r".charCodeAt(0))&&(Re=We)}var Pt=(Re!==-1?ft:"")+Xe.slice(0,Re+1);ft=(Re===-1?ft:"")+Xe.slice(Re+1),Xe!==""&&(ie=Date.now(),ye+=Xe.length);for(var Jt=0;Jt<Pt.length;Jt+=1){var _t=Pt.charCodeAt(Jt);if(At===P&&_t===`
|
|
201
|
+
`.charCodeAt(0))At=ue;else if(At===P&&(At=ue),_t==="\r".charCodeAt(0)||_t===`
|
|
202
202
|
`.charCodeAt(0)){if(At!==ue){At===Oe&&(pt=Jt+1);var bn=Pt.slice(on,pt-1),Rn=Pt.slice(pt+(pt<Jt&&Pt.charCodeAt(pt)===" ".charCodeAt(0)?1:0),Jt);bn==="data"?(Cn+=`
|
|
203
|
-
`,Cn+=Rn):bn==="id"?ee=Rn:bn==="event"?ae=Rn:bn==="retry"?(Ue=rt(Rn,Ue),mt=Ue):bn==="heartbeatTimeout"&&(ot=rt(Rn,ot),Yt!==0&&(i(Yt),Yt=r(function(){He()},ot)))}if(At===ue){if(Cn!==""){It=ee,ae===""&&(ae="message");var mr=new Q(ae,{data:Cn.slice(1),lastEventId:ee});if(K.dispatchEvent(mr),ae==="open"?Pe(K,K.onopen,mr):ae==="message"?Pe(K,K.onmessage,mr):ae==="error"&&Pe(K,K.onerror,mr),cn===ce)return}Cn="",ae=""}At=bt==="\r".charCodeAt(0)?P:ue}else At===ue&&(on=Jt,At=Oe),At===Oe?bt===":".charCodeAt(0)&&(pt=Jt+1,At=D):At===D&&(At=De)}}},N=function(Xe){if(cn===ne||cn===Y){cn=F,Yt!==0&&(i(Yt),Yt=0),Yt=r(function(){He()},mt),mt=Ke(Math.min(Ue*16,mt*2)),K.readyState=Y;var Re=new V("error",{error:Xe});K.dispatchEvent(Re),Pe(K,K.onerror,Re),Xe!=null&&console.error(Xe)}},je=function(){cn=ce,rn!=null&&(rn.abort(),rn=void 0),Yt!==0&&(i(Yt),Yt=0),K.readyState=ce},He=function(){if(Yt=0,cn!==F){if(!ie&&rn!=null)N(new Error("No activity within "+ot+" milliseconds. "+(cn===Y?"No response received.":ye+" chars received.")+" Reconnecting.")),rn!=null&&(rn.abort(),rn=void 0);else{var Xe=Math.max((ie||Date.now())+ot-Date.now(),1);ie=!1,Yt=r(function(){He()},Xe)}return}ie=!1,ye=0,Yt=r(function(){He()},ot),cn=Y,Cn="",ae="",ee=It,ft="",on=0,pt=0,At=ue;var Re=de;if(de.slice(0,5)!=="data:"&&de.slice(0,5)!=="blob:"&&It!==""){var We=de.indexOf("?");Re=We===-1?de:de.slice(0,We+1)+de.slice(We+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(Rn,mr){return mr===et?"":Rn}),Re+=(de.indexOf("?")===-1?"?":"&")+et+"="+encodeURIComponent(It)}var bt=K.withCredentials,Pt={};Pt.Accept="text/event-stream";var Jt=K.headers;if(Jt!=null)for(var bn in Jt)Object.prototype.hasOwnProperty.call(Jt,bn)&&(Pt[bn]=Jt[bn]);try{rn=pn.open(ct,Mn,sr,N,Re,bt,Pt)}catch(Rn){throw je(),Rn}};K.url=de,K.readyState=Y,K.withCredentials=Se,K.headers=xe,K._close=je,He()}Ae.prototype=Object.create(M.prototype),Ae.prototype.CONNECTING=Y,Ae.prototype.OPEN=ne,Ae.prototype.CLOSED=ce,Ae.prototype.close=function(){this._close()},Ae.CONNECTING=Y,Ae.OPEN=ne,Ae.CLOSED=ce,Ae.prototype.withCredentials=void 0;var lt=l;o!=null&&(l==null||!("withCredentials"in l.prototype))&&(lt=Ae),function(K){{var de=K(t);de!==void 0&&(e.exports=de)}}(function(K){K.EventSourcePolyfill=Ae,K.NativeEventSource=l,K.EventSource=lt})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:se:globalThis)})(A0,A0.exports);var Ame=A0.exports;const Cme=Oo(Ame),Ome=(e,t={})=>{const n=new Cme.EventSourcePolyfill(e,{headers:t.headers}),r=new JP;return n.onopen=i=>r.emit("open",i),n.onmessage=i=>r.emit("message",i),n.onerror=i=>r.emit("error",i),{emitter:r,source:n}},Tme=async(e,t={})=>{const{emitter:n,source:r}=Ome(e,t);return await new Promise((i,o)=>{n.on("open",()=>{i()}),n.on("error",a=>{o(a)})}).finally(()=>n.cleanup()),{on:n.on.bind(n),close:()=>{n.cleanup(),r.close()}}};var sn;(function(e){e.assertEqual=i=>i;function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const o={};for(const a of i)o[a]=a;return o},e.getValidEnumValues=i=>{const o=e.objectKeys(i).filter(s=>typeof i[i[s]]!="number"),a={};for(const s of o)a[s]=i[s];return e.objectValues(a)},e.objectValues=i=>e.objectKeys(i).map(function(o){return i[o]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const o=[];for(const a in i)Object.prototype.hasOwnProperty.call(i,a)&&o.push(a);return o},e.find=(i,o)=>{for(const a of i)if(o(a))return a},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function r(i,o=" | "){return i.map(a=>typeof a=="string"?`'${a}'`:a).join(o)}e.joinValues=r,e.jsonStringifyReplacer=(i,o)=>typeof o=="bigint"?o.toString():o})(sn||(sn={}));var C0;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(C0||(C0={}));const Qe=sn.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ea=e=>{switch(typeof e){case"undefined":return Qe.undefined;case"string":return Qe.string;case"number":return isNaN(e)?Qe.nan:Qe.number;case"boolean":return Qe.boolean;case"function":return Qe.function;case"bigint":return Qe.bigint;case"symbol":return Qe.symbol;case"object":return Array.isArray(e)?Qe.array:e===null?Qe.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Qe.promise:typeof Map<"u"&&e instanceof Map?Qe.map:typeof Set<"u"&&e instanceof Set?Qe.set:typeof Date<"u"&&e instanceof Date?Qe.date:Qe.object;default:return Qe.unknown}},Ne=sn.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),$me=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Li extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(o){return o.message},r={_errors:[]},i=o=>{for(const a of o.issues)if(a.code==="invalid_union")a.unionErrors.map(i);else if(a.code==="invalid_return_type")i(a.returnTypeError);else if(a.code==="invalid_arguments")i(a.argumentsError);else if(a.path.length===0)r._errors.push(n(a));else{let s=r,l=0;for(;l<a.path.length;){const c=a.path[l];l===a.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(n(a))):s[c]=s[c]||{_errors:[]},s=s[c],l++}}};return i(this),r}toString(){return this.message}get message(){return JSON.stringify(this.issues,sn.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Li.create=e=>new Li(e);const Vc=(e,t)=>{let n;switch(e.code){case Ne.invalid_type:e.received===Qe.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case Ne.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,sn.jsonStringifyReplacer)}`;break;case Ne.unrecognized_keys:n=`Unrecognized key(s) in object: ${sn.joinValues(e.keys,", ")}`;break;case Ne.invalid_union:n="Invalid input";break;case Ne.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${sn.joinValues(e.options)}`;break;case Ne.invalid_enum_value:n=`Invalid enum value. Expected ${sn.joinValues(e.options)}, received '${e.received}'`;break;case Ne.invalid_arguments:n="Invalid function arguments";break;case Ne.invalid_return_type:n="Invalid function return type";break;case Ne.invalid_date:n="Invalid date";break;case Ne.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:sn.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case Ne.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case Ne.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case Ne.custom:n="Invalid input";break;case Ne.invalid_intersection_types:n="Intersection results could not be merged";break;case Ne.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Ne.not_finite:n="Number must be finite";break;default:n=t.defaultError,sn.assertNever(e)}return{message:n}};let XP=Vc;function kme(e){XP=e}function Lh(){return XP}const Fh=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,o=[...n,...i.path||[]],a={...i,path:o};let s="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)s=c(a,{data:t,defaultError:s}).message;return{...i,path:o,message:i.message||s}},Ime=[];function tt(e,t){const n=Fh({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,Lh(),Vc].filter(r=>!!r)});e.common.issues.push(n)}class Er{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return $t;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n)r.push({key:await i.key,value:await i.value});return Er.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:o,value:a}=i;if(o.status==="aborted"||a.status==="aborted")return $t;o.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof a.value<"u"||i.alwaysSet)&&(r[o.value]=a.value)}return{status:t.value,value:r}}}const $t=Object.freeze({status:"aborted"}),QP=e=>({status:"dirty",value:e}),jr=e=>({status:"valid",value:e}),O0=e=>e.status==="aborted",T0=e=>e.status==="dirty",Kc=e=>e.status==="valid",qh=e=>typeof Promise<"u"&&e instanceof Promise;var dt;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(dt||(dt={}));class mo{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const eR=(e,t)=>{if(Kc(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Li(e.common.issues);return this._error=n,this._error}}};function Nt(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(a,s)=>a.code!=="invalid_type"?{message:s.defaultError}:typeof s.data>"u"?{message:r??s.defaultError}:{message:n??s.defaultError},description:i}}class jt{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Ea(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Ea(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Er,ctx:{common:t.parent.common,data:t.data,parsedType:Ea(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(qh(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const i={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ea(t)},o=this._parseSync({data:t,path:i.path,parent:i});return eR(i,o)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ea(t)},i=this._parse({data:t,path:r.path,parent:r}),o=await(qh(i)?i:Promise.resolve(i));return eR(r,o)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,o)=>{const a=t(i),s=()=>o.addIssue({code:Ne.custom,...r(i)});return typeof Promise<"u"&&a instanceof Promise?a.then(l=>l?!0:(s(),!1)):a?!0:(s(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new Ui({schema:this,typeName:Et.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return zo.create(this,this._def)}nullable(){return Rs.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return qi.create(this,this._def)}promise(){return tl.create(this,this._def)}or(t){return Xc.create([this,t],this._def)}and(t){return Qc.create(this,t,this._def)}transform(t){return new Ui({...Nt(this._def),schema:this,typeName:Et.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new of({...Nt(this._def),innerType:this,defaultValue:n,typeName:Et.ZodDefault})}brand(){return new nR({typeName:Et.ZodBranded,type:this,...Nt(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Wh({...Nt(this._def),innerType:this,catchValue:n,typeName:Et.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return af.create(this,t)}readonly(){return Kh.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Pme=/^c[^\s-]{8,}$/i,Rme=/^[a-z][a-z0-9]*$/,Nme=/^[0-9A-HJKMNP-TV-Z]{26}$/,Dme=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Mme=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,jme="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let $0;const Lme=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,Fme=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,qme=e=>e.precision?e.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):e.precision===0?e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function Ume(e,t){return!!((t==="v4"||!t)&&Lme.test(e)||(t==="v6"||!t)&&Fme.test(e))}class Fi extends jt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Qe.string){const o=this._getOrReturnCtx(t);return tt(o,{code:Ne.invalid_type,expected:Qe.string,received:o.parsedType}),$t}const r=new Er;let i;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(i=this._getOrReturnCtx(t,i),tt(i,{code:Ne.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")t.data.length>o.value&&(i=this._getOrReturnCtx(t,i),tt(i,{code:Ne.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const a=t.data.length>o.value,s=t.data.length<o.value;(a||s)&&(i=this._getOrReturnCtx(t,i),a?tt(i,{code:Ne.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):s&&tt(i,{code:Ne.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")Mme.test(t.data)||(i=this._getOrReturnCtx(t,i),tt(i,{validation:"email",code:Ne.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")$0||($0=new RegExp(jme,"u")),$0.test(t.data)||(i=this._getOrReturnCtx(t,i),tt(i,{validation:"emoji",code:Ne.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")Dme.test(t.data)||(i=this._getOrReturnCtx(t,i),tt(i,{validation:"uuid",code:Ne.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")Pme.test(t.data)||(i=this._getOrReturnCtx(t,i),tt(i,{validation:"cuid",code:Ne.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")Rme.test(t.data)||(i=this._getOrReturnCtx(t,i),tt(i,{validation:"cuid2",code:Ne.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")Nme.test(t.data)||(i=this._getOrReturnCtx(t,i),tt(i,{validation:"ulid",code:Ne.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),tt(i,{validation:"url",code:Ne.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),tt(i,{validation:"regex",code:Ne.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(i=this._getOrReturnCtx(t,i),tt(i,{code:Ne.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(i=this._getOrReturnCtx(t,i),tt(i,{code:Ne.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(i=this._getOrReturnCtx(t,i),tt(i,{code:Ne.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?qme(o).test(t.data)||(i=this._getOrReturnCtx(t,i),tt(i,{code:Ne.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="ip"?Ume(t.data,o.version)||(i=this._getOrReturnCtx(t,i),tt(i,{validation:"ip",code:Ne.invalid_string,message:o.message}),r.dirty()):sn.assertNever(o);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:Ne.invalid_string,...dt.errToObj(r)})}_addCheck(t){return new Fi({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...dt.errToObj(t)})}url(t){return this._addCheck({kind:"url",...dt.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...dt.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...dt.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...dt.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...dt.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...dt.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...dt.errToObj(t)})}datetime(t){var n;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,...dt.errToObj(t==null?void 0:t.message)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...dt.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...dt.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...dt.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...dt.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...dt.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...dt.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...dt.errToObj(n)})}nonempty(t){return this.min(1,dt.errToObj(t))}trim(){return new Fi({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Fi({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Fi({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Fi.create=e=>{var t;return new Fi({checks:[],typeName:Et.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Nt(e)})};function Bme(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,o=parseInt(e.toFixed(i).replace(".","")),a=parseInt(t.toFixed(i).replace(".",""));return o%a/Math.pow(10,i)}class Aa extends jt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Qe.number){const o=this._getOrReturnCtx(t);return tt(o,{code:Ne.invalid_type,expected:Qe.number,received:o.parsedType}),$t}let r;const i=new Er;for(const o of this._def.checks)o.kind==="int"?sn.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),tt(r,{code:Ne.invalid_type,expected:"integer",received:"float",message:o.message}),i.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),tt(r,{code:Ne.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),tt(r,{code:Ne.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="multipleOf"?Bme(t.data,o.value)!==0&&(r=this._getOrReturnCtx(t,r),tt(r,{code:Ne.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),tt(r,{code:Ne.not_finite,message:o.message}),i.dirty()):sn.assertNever(o);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,dt.toString(n))}gt(t,n){return this.setLimit("min",t,!1,dt.toString(n))}lte(t,n){return this.setLimit("max",t,!0,dt.toString(n))}lt(t,n){return this.setLimit("max",t,!1,dt.toString(n))}setLimit(t,n,r,i){return new Aa({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:dt.toString(i)}]})}_addCheck(t){return new Aa({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:dt.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:dt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:dt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:dt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:dt.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:dt.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:dt.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:dt.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:dt.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&sn.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Aa.create=e=>new Aa({checks:[],typeName:Et.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Nt(e)});class Ca extends jt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==Qe.bigint){const o=this._getOrReturnCtx(t);return tt(o,{code:Ne.invalid_type,expected:Qe.bigint,received:o.parsedType}),$t}let r;const i=new Er;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),tt(r,{code:Ne.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),tt(r,{code:Ne.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),tt(r,{code:Ne.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):sn.assertNever(o);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,dt.toString(n))}gt(t,n){return this.setLimit("min",t,!1,dt.toString(n))}lte(t,n){return this.setLimit("max",t,!0,dt.toString(n))}lt(t,n){return this.setLimit("max",t,!1,dt.toString(n))}setLimit(t,n,r,i){return new Ca({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:dt.toString(i)}]})}_addCheck(t){return new Ca({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:dt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:dt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:dt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:dt.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:dt.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Ca.create=e=>{var t;return new Ca({checks:[],typeName:Et.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Nt(e)})};class Gc extends jt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Qe.boolean){const r=this._getOrReturnCtx(t);return tt(r,{code:Ne.invalid_type,expected:Qe.boolean,received:r.parsedType}),$t}return jr(t.data)}}Gc.create=e=>new Gc({typeName:Et.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Nt(e)});class ks extends jt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Qe.date){const o=this._getOrReturnCtx(t);return tt(o,{code:Ne.invalid_type,expected:Qe.date,received:o.parsedType}),$t}if(isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return tt(o,{code:Ne.invalid_date}),$t}const r=new Er;let i;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(i=this._getOrReturnCtx(t,i),tt(i,{code:Ne.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(i=this._getOrReturnCtx(t,i),tt(i,{code:Ne.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):sn.assertNever(o);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new ks({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:dt.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:dt.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}ks.create=e=>new ks({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Et.ZodDate,...Nt(e)});class Uh extends jt{_parse(t){if(this._getType(t)!==Qe.symbol){const r=this._getOrReturnCtx(t);return tt(r,{code:Ne.invalid_type,expected:Qe.symbol,received:r.parsedType}),$t}return jr(t.data)}}Uh.create=e=>new Uh({typeName:Et.ZodSymbol,...Nt(e)});class Yc extends jt{_parse(t){if(this._getType(t)!==Qe.undefined){const r=this._getOrReturnCtx(t);return tt(r,{code:Ne.invalid_type,expected:Qe.undefined,received:r.parsedType}),$t}return jr(t.data)}}Yc.create=e=>new Yc({typeName:Et.ZodUndefined,...Nt(e)});class Jc extends jt{_parse(t){if(this._getType(t)!==Qe.null){const r=this._getOrReturnCtx(t);return tt(r,{code:Ne.invalid_type,expected:Qe.null,received:r.parsedType}),$t}return jr(t.data)}}Jc.create=e=>new Jc({typeName:Et.ZodNull,...Nt(e)});class Xu extends jt{constructor(){super(...arguments),this._any=!0}_parse(t){return jr(t.data)}}Xu.create=e=>new Xu({typeName:Et.ZodAny,...Nt(e)});class Is extends jt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return jr(t.data)}}Is.create=e=>new Is({typeName:Et.ZodUnknown,...Nt(e)});class Bo extends jt{_parse(t){const n=this._getOrReturnCtx(t);return tt(n,{code:Ne.invalid_type,expected:Qe.never,received:n.parsedType}),$t}}Bo.create=e=>new Bo({typeName:Et.ZodNever,...Nt(e)});class Bh extends jt{_parse(t){if(this._getType(t)!==Qe.undefined){const r=this._getOrReturnCtx(t);return tt(r,{code:Ne.invalid_type,expected:Qe.void,received:r.parsedType}),$t}return jr(t.data)}}Bh.create=e=>new Bh({typeName:Et.ZodVoid,...Nt(e)});class qi extends jt{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==Qe.array)return tt(n,{code:Ne.invalid_type,expected:Qe.array,received:n.parsedType}),$t;if(i.exactLength!==null){const a=n.data.length>i.exactLength.value,s=n.data.length<i.exactLength.value;(a||s)&&(tt(n,{code:a?Ne.too_big:Ne.too_small,minimum:s?i.exactLength.value:void 0,maximum:a?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(tt(n,{code:Ne.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(tt(n,{code:Ne.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((a,s)=>i.type._parseAsync(new mo(n,a,n.path,s)))).then(a=>Er.mergeArray(r,a));const o=[...n.data].map((a,s)=>i.type._parseSync(new mo(n,a,n.path,s)));return Er.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new qi({...this._def,minLength:{value:t,message:dt.toString(n)}})}max(t,n){return new qi({...this._def,maxLength:{value:t,message:dt.toString(n)}})}length(t,n){return new qi({...this._def,exactLength:{value:t,message:dt.toString(n)}})}nonempty(t){return this.min(1,t)}}qi.create=(e,t)=>new qi({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Et.ZodArray,...Nt(t)});function Qu(e){if(e instanceof Pn){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=zo.create(Qu(r))}return new Pn({...e._def,shape:()=>t})}else return e instanceof qi?new qi({...e._def,type:Qu(e.element)}):e instanceof zo?zo.create(Qu(e.unwrap())):e instanceof Rs?Rs.create(Qu(e.unwrap())):e instanceof yo?yo.create(e.items.map(t=>Qu(t))):e}class Pn extends jt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=sn.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==Qe.object){const c=this._getOrReturnCtx(t);return tt(c,{code:Ne.invalid_type,expected:Qe.object,received:c.parsedType}),$t}const{status:r,ctx:i}=this._processInputParams(t),{shape:o,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof Bo&&this._def.unknownKeys==="strip"))for(const c in i.data)a.includes(c)||s.push(c);const l=[];for(const c of a){const d=o[c],p=i.data[c];l.push({key:{status:"valid",value:c},value:d._parse(new mo(i,p,i.path,c)),alwaysSet:c in i.data})}if(this._def.catchall instanceof Bo){const c=this._def.unknownKeys;if(c==="passthrough")for(const d of s)l.push({key:{status:"valid",value:d},value:{status:"valid",value:i.data[d]}});else if(c==="strict")s.length>0&&(tt(i,{code:Ne.unrecognized_keys,keys:s}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const d of s){const p=i.data[d];l.push({key:{status:"valid",value:d},value:c._parse(new mo(i,p,i.path,d)),alwaysSet:d in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const c=[];for(const d of l){const p=await d.key;c.push({key:p,value:await d.value,alwaysSet:d.alwaysSet})}return c}).then(c=>Er.mergeObjectSync(r,c)):Er.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return dt.errToObj,new Pn({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var i,o,a,s;const l=(a=(o=(i=this._def).errorMap)===null||o===void 0?void 0:o.call(i,n,r).message)!==null&&a!==void 0?a:r.defaultError;return n.code==="unrecognized_keys"?{message:(s=dt.errToObj(t).message)!==null&&s!==void 0?s:l}:{message:l}}}:{}})}strip(){return new Pn({...this._def,unknownKeys:"strip"})}passthrough(){return new Pn({...this._def,unknownKeys:"passthrough"})}extend(t){return new Pn({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Pn({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Et.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Pn({...this._def,catchall:t})}pick(t){const n={};return sn.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Pn({...this._def,shape:()=>n})}omit(t){const n={};return sn.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new Pn({...this._def,shape:()=>n})}deepPartial(){return Qu(this)}partial(t){const n={};return sn.objectKeys(this.shape).forEach(r=>{const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}),new Pn({...this._def,shape:()=>n})}required(t){const n={};return sn.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof zo;)o=o._def.innerType;n[r]=o}}),new Pn({...this._def,shape:()=>n})}keyof(){return tR(sn.objectKeys(this.shape))}}Pn.create=(e,t)=>new Pn({shape:()=>e,unknownKeys:"strip",catchall:Bo.create(),typeName:Et.ZodObject,...Nt(t)}),Pn.strictCreate=(e,t)=>new Pn({shape:()=>e,unknownKeys:"strict",catchall:Bo.create(),typeName:Et.ZodObject,...Nt(t)}),Pn.lazycreate=(e,t)=>new Pn({shape:e,unknownKeys:"strip",catchall:Bo.create(),typeName:Et.ZodObject,...Nt(t)});class Xc extends jt{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(o){for(const s of o)if(s.result.status==="valid")return s.result;for(const s of o)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const a=o.map(s=>new Li(s.ctx.common.issues));return tt(n,{code:Ne.invalid_union,unionErrors:a}),$t}if(n.common.async)return Promise.all(r.map(async o=>{const a={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:a}),ctx:a}})).then(i);{let o;const a=[];for(const l of r){const c={...n,common:{...n.common,issues:[]},parent:null},d=l._parseSync({data:n.data,path:n.path,parent:c});if(d.status==="valid")return d;d.status==="dirty"&&!o&&(o={result:d,ctx:c}),c.common.issues.length&&a.push(c.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const s=a.map(l=>new Li(l));return tt(n,{code:Ne.invalid_union,unionErrors:s}),$t}}get options(){return this._def.options}}Xc.create=(e,t)=>new Xc({options:e,typeName:Et.ZodUnion,...Nt(t)});const zh=e=>e instanceof tf?zh(e.schema):e instanceof Ui?zh(e.innerType()):e instanceof nf?[e.value]:e instanceof Oa?e.options:e instanceof rf?Object.keys(e.enum):e instanceof of?zh(e._def.innerType):e instanceof Yc?[void 0]:e instanceof Jc?[null]:null;class Zh extends jt{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Qe.object)return tt(n,{code:Ne.invalid_type,expected:Qe.object,received:n.parsedType}),$t;const r=this.discriminator,i=n.data[r],o=this.optionsMap.get(i);return o?n.common.async?o._parseAsync({data:n.data,path:n.path,parent:n}):o._parseSync({data:n.data,path:n.path,parent:n}):(tt(n,{code:Ne.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),$t)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const i=new Map;for(const o of n){const a=zh(o.shape[t]);if(!a)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const s of a){if(i.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);i.set(s,o)}}return new Zh({typeName:Et.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...Nt(r)})}}function k0(e,t){const n=Ea(e),r=Ea(t);if(e===t)return{valid:!0,data:e};if(n===Qe.object&&r===Qe.object){const i=sn.objectKeys(t),o=sn.objectKeys(e).filter(s=>i.indexOf(s)!==-1),a={...e,...t};for(const s of o){const l=k0(e[s],t[s]);if(!l.valid)return{valid:!1};a[s]=l.data}return{valid:!0,data:a}}else if(n===Qe.array&&r===Qe.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let o=0;o<e.length;o++){const a=e[o],s=t[o],l=k0(a,s);if(!l.valid)return{valid:!1};i.push(l.data)}return{valid:!0,data:i}}else return n===Qe.date&&r===Qe.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Qc extends jt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(o,a)=>{if(O0(o)||O0(a))return $t;const s=k0(o.value,a.value);return s.valid?((T0(o)||T0(a))&&n.dirty(),{status:n.value,value:s.data}):(tt(r,{code:Ne.invalid_intersection_types}),$t)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,a])=>i(o,a)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Qc.create=(e,t,n)=>new Qc({left:e,right:t,typeName:Et.ZodIntersection,...Nt(n)});class yo extends jt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Qe.array)return tt(r,{code:Ne.invalid_type,expected:Qe.array,received:r.parsedType}),$t;if(r.data.length<this._def.items.length)return tt(r,{code:Ne.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),$t;!this._def.rest&&r.data.length>this._def.items.length&&(tt(r,{code:Ne.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((a,s)=>{const l=this._def.items[s]||this._def.rest;return l?l._parse(new mo(r,a,r.path,s)):null}).filter(a=>!!a);return r.common.async?Promise.all(o).then(a=>Er.mergeArray(n,a)):Er.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new yo({...this._def,rest:t})}}yo.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new yo({items:e,typeName:Et.ZodTuple,rest:null,...Nt(t)})};class ef extends jt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Qe.object)return tt(r,{code:Ne.invalid_type,expected:Qe.object,received:r.parsedType}),$t;const i=[],o=this._def.keyType,a=this._def.valueType;for(const s in r.data)i.push({key:o._parse(new mo(r,s,r.path,s)),value:a._parse(new mo(r,r.data[s],r.path,s))});return r.common.async?Er.mergeObjectAsync(n,i):Er.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof jt?new ef({keyType:t,valueType:n,typeName:Et.ZodRecord,...Nt(r)}):new ef({keyType:Fi.create(),valueType:t,typeName:Et.ZodRecord,...Nt(n)})}}class Hh extends jt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Qe.map)return tt(r,{code:Ne.invalid_type,expected:Qe.map,received:r.parsedType}),$t;const i=this._def.keyType,o=this._def.valueType,a=[...r.data.entries()].map(([s,l],c)=>({key:i._parse(new mo(r,s,r.path,[c,"key"])),value:o._parse(new mo(r,l,r.path,[c,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const l of a){const c=await l.key,d=await l.value;if(c.status==="aborted"||d.status==="aborted")return $t;(c.status==="dirty"||d.status==="dirty")&&n.dirty(),s.set(c.value,d.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const l of a){const c=l.key,d=l.value;if(c.status==="aborted"||d.status==="aborted")return $t;(c.status==="dirty"||d.status==="dirty")&&n.dirty(),s.set(c.value,d.value)}return{status:n.value,value:s}}}}Hh.create=(e,t,n)=>new Hh({valueType:t,keyType:e,typeName:Et.ZodMap,...Nt(n)});class Ps extends jt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Qe.set)return tt(r,{code:Ne.invalid_type,expected:Qe.set,received:r.parsedType}),$t;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(tt(r,{code:Ne.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&r.data.size>i.maxSize.value&&(tt(r,{code:Ne.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const o=this._def.valueType;function a(l){const c=new Set;for(const d of l){if(d.status==="aborted")return $t;d.status==="dirty"&&n.dirty(),c.add(d.value)}return{status:n.value,value:c}}const s=[...r.data.values()].map((l,c)=>o._parse(new mo(r,l,r.path,c)));return r.common.async?Promise.all(s).then(l=>a(l)):a(s)}min(t,n){return new Ps({...this._def,minSize:{value:t,message:dt.toString(n)}})}max(t,n){return new Ps({...this._def,maxSize:{value:t,message:dt.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Ps.create=(e,t)=>new Ps({valueType:e,minSize:null,maxSize:null,typeName:Et.ZodSet,...Nt(t)});class el extends jt{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Qe.function)return tt(n,{code:Ne.invalid_type,expected:Qe.function,received:n.parsedType}),$t;function r(s,l){return Fh({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Lh(),Vc].filter(c=>!!c),issueData:{code:Ne.invalid_arguments,argumentsError:l}})}function i(s,l){return Fh({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Lh(),Vc].filter(c=>!!c),issueData:{code:Ne.invalid_return_type,returnTypeError:l}})}const o={errorMap:n.common.contextualErrorMap},a=n.data;if(this._def.returns instanceof tl){const s=this;return jr(async function(...l){const c=new Li([]),d=await s._def.args.parseAsync(l,o).catch(h=>{throw c.addIssue(r(l,h)),c}),p=await Reflect.apply(a,this,d);return await s._def.returns._def.type.parseAsync(p,o).catch(h=>{throw c.addIssue(i(p,h)),c})})}else{const s=this;return jr(function(...l){const c=s._def.args.safeParse(l,o);if(!c.success)throw new Li([r(l,c.error)]);const d=Reflect.apply(a,this,c.data),p=s._def.returns.safeParse(d,o);if(!p.success)throw new Li([i(d,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new el({...this._def,args:yo.create(t).rest(Is.create())})}returns(t){return new el({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new el({args:t||yo.create([]).rest(Is.create()),returns:n||Is.create(),typeName:Et.ZodFunction,...Nt(r)})}}class tf extends jt{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}tf.create=(e,t)=>new tf({getter:e,typeName:Et.ZodLazy,...Nt(t)});class nf extends jt{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return tt(n,{received:n.data,code:Ne.invalid_literal,expected:this._def.value}),$t}return{status:"valid",value:t.data}}get value(){return this._def.value}}nf.create=(e,t)=>new nf({value:e,typeName:Et.ZodLiteral,...Nt(t)});function tR(e,t){return new Oa({values:e,typeName:Et.ZodEnum,...Nt(t)})}class Oa extends jt{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return tt(n,{expected:sn.joinValues(r),received:n.parsedType,code:Ne.invalid_type}),$t}if(this._def.values.indexOf(t.data)===-1){const n=this._getOrReturnCtx(t),r=this._def.values;return tt(n,{received:n.data,code:Ne.invalid_enum_value,options:r}),$t}return jr(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t){return Oa.create(t)}exclude(t){return Oa.create(this.options.filter(n=>!t.includes(n)))}}Oa.create=tR;class rf extends jt{_parse(t){const n=sn.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Qe.string&&r.parsedType!==Qe.number){const i=sn.objectValues(n);return tt(r,{expected:sn.joinValues(i),received:r.parsedType,code:Ne.invalid_type}),$t}if(n.indexOf(t.data)===-1){const i=sn.objectValues(n);return tt(r,{received:r.data,code:Ne.invalid_enum_value,options:i}),$t}return jr(t.data)}get enum(){return this._def.values}}rf.create=(e,t)=>new rf({values:e,typeName:Et.ZodNativeEnum,...Nt(t)});class tl extends jt{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Qe.promise&&n.common.async===!1)return tt(n,{code:Ne.invalid_type,expected:Qe.promise,received:n.parsedType}),$t;const r=n.parsedType===Qe.promise?n.data:Promise.resolve(n.data);return jr(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}tl.create=(e,t)=>new tl({type:e,typeName:Et.ZodPromise,...Nt(t)});class Ui extends jt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Et.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,o={addIssue:a=>{tt(r,a),a.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),i.type==="preprocess"){const a=i.transform(r.data,o);return r.common.issues.length?{status:"dirty",value:r.data}:r.common.async?Promise.resolve(a).then(s=>this._def.schema._parseAsync({data:s,path:r.path,parent:r})):this._def.schema._parseSync({data:a,path:r.path,parent:r})}if(i.type==="refinement"){const a=s=>{const l=i.refinement(s,o);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?$t:(s.status==="dirty"&&n.dirty(),a(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>s.status==="aborted"?$t:(s.status==="dirty"&&n.dirty(),a(s.value).then(()=>({status:n.value,value:s.value}))))}if(i.type==="transform")if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Kc(a))return a;const s=i.transform(a.value,o);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>Kc(a)?Promise.resolve(i.transform(a.value,o)).then(s=>({status:n.value,value:s})):a);sn.assertNever(i)}}Ui.create=(e,t,n)=>new Ui({schema:e,typeName:Et.ZodEffects,effect:t,...Nt(n)}),Ui.createWithPreprocess=(e,t,n)=>new Ui({schema:t,effect:{type:"preprocess",transform:e},typeName:Et.ZodEffects,...Nt(n)});class zo extends jt{_parse(t){return this._getType(t)===Qe.undefined?jr(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}zo.create=(e,t)=>new zo({innerType:e,typeName:Et.ZodOptional,...Nt(t)});class Rs extends jt{_parse(t){return this._getType(t)===Qe.null?jr(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Rs.create=(e,t)=>new Rs({innerType:e,typeName:Et.ZodNullable,...Nt(t)});class of extends jt{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Qe.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}of.create=(e,t)=>new of({innerType:e,typeName:Et.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Nt(t)});class Wh extends jt{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return qh(i)?i.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Li(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Li(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Wh.create=(e,t)=>new Wh({innerType:e,typeName:Et.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Nt(t)});class Vh extends jt{_parse(t){if(this._getType(t)!==Qe.nan){const r=this._getOrReturnCtx(t);return tt(r,{code:Ne.invalid_type,expected:Qe.nan,received:r.parsedType}),$t}return{status:"valid",value:t.data}}}Vh.create=e=>new Vh({typeName:Et.ZodNaN,...Nt(e)});const zme=Symbol("zod_brand");class nR extends jt{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class af extends jt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?$t:o.status==="dirty"?(n.dirty(),QP(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?$t:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new af({in:t,out:n,typeName:Et.ZodPipeline})}}class Kh extends jt{_parse(t){const n=this._def.innerType._parse(t);return Kc(n)&&(n.value=Object.freeze(n.value)),n}}Kh.create=(e,t)=>new Kh({innerType:e,typeName:Et.ZodReadonly,...Nt(t)});const rR=(e,t={},n)=>e?Xu.create().superRefine((r,i)=>{var o,a;if(!e(r)){const s=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,l=(a=(o=s.fatal)!==null&&o!==void 0?o:n)!==null&&a!==void 0?a:!0,c=typeof s=="string"?{message:s}:s;i.addIssue({code:"custom",...c,fatal:l})}}):Xu.create(),Zme={object:Pn.lazycreate};var Et;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Et||(Et={}));const Hme=(e,t={message:`Input not instance of ${e.name}`})=>rR(n=>n instanceof e,t),iR=Fi.create,oR=Aa.create,Wme=Vh.create,Vme=Ca.create,aR=Gc.create,Kme=ks.create,Gme=Uh.create,Yme=Yc.create,Jme=Jc.create,Xme=Xu.create,Qme=Is.create,eye=Bo.create,tye=Bh.create,nye=qi.create,rye=Pn.create,iye=Pn.strictCreate,oye=Xc.create,aye=Zh.create,sye=Qc.create,uye=yo.create,lye=ef.create,cye=Hh.create,fye=Ps.create,dye=el.create,pye=tf.create,hye=nf.create,mye=Oa.create,yye=rf.create,gye=tl.create,sR=Ui.create,vye=zo.create,bye=Rs.create,_ye=Ui.createWithPreprocess,wye=af.create;var oe=Object.freeze({__proto__:null,defaultErrorMap:Vc,setErrorMap:kme,getErrorMap:Lh,makeIssue:Fh,EMPTY_PATH:Ime,addIssueToContext:tt,ParseStatus:Er,INVALID:$t,DIRTY:QP,OK:jr,isAborted:O0,isDirty:T0,isValid:Kc,isAsync:qh,get util(){return sn},get objectUtil(){return C0},ZodParsedType:Qe,getParsedType:Ea,ZodType:jt,ZodString:Fi,ZodNumber:Aa,ZodBigInt:Ca,ZodBoolean:Gc,ZodDate:ks,ZodSymbol:Uh,ZodUndefined:Yc,ZodNull:Jc,ZodAny:Xu,ZodUnknown:Is,ZodNever:Bo,ZodVoid:Bh,ZodArray:qi,ZodObject:Pn,ZodUnion:Xc,ZodDiscriminatedUnion:Zh,ZodIntersection:Qc,ZodTuple:yo,ZodRecord:ef,ZodMap:Hh,ZodSet:Ps,ZodFunction:el,ZodLazy:tf,ZodLiteral:nf,ZodEnum:Oa,ZodNativeEnum:rf,ZodPromise:tl,ZodEffects:Ui,ZodTransformer:Ui,ZodOptional:zo,ZodNullable:Rs,ZodDefault:of,ZodCatch:Wh,ZodNaN:Vh,BRAND:zme,ZodBranded:nR,ZodPipeline:af,ZodReadonly:Kh,custom:rR,Schema:jt,ZodSchema:jt,late:Zme,get ZodFirstPartyTypeKind(){return Et},coerce:{string:e=>Fi.create({...e,coerce:!0}),number:e=>Aa.create({...e,coerce:!0}),boolean:e=>Gc.create({...e,coerce:!0}),bigint:e=>Ca.create({...e,coerce:!0}),date:e=>ks.create({...e,coerce:!0})},any:Xme,array:nye,bigint:Vme,boolean:aR,date:Kme,discriminatedUnion:aye,effect:sR,enum:mye,function:dye,instanceof:Hme,intersection:sye,lazy:pye,literal:hye,map:cye,nan:Wme,nativeEnum:yye,never:eye,null:Jme,nullable:bye,number:oR,object:rye,oboolean:()=>aR().optional(),onumber:()=>oR().optional(),optional:vye,ostring:()=>iR().optional(),pipeline:wye,preprocess:_ye,promise:gye,record:lye,set:fye,strictObject:iye,string:iR,symbol:Gme,transformer:sR,tuple:uye,undefined:Yme,union:oye,unknown:Qme,void:tye,NEVER:$t,ZodIssueCode:Ne,quotelessJson:$me,ZodError:Li});const xye=oe.object({type:oe.literal("message_created"),data:oe.object({id:oe.string(),createdAt:oe.string().datetime(),payload:oe.union([oe.object({audioUrl:oe.string().min(1),className:oe.string().describe("CSS className to apply to the message").optional(),type:oe.literal("audio")}),oe.object({title:oe.string().min(1),subtitle:oe.string().optional(),imageUrl:oe.string().optional(),actions:oe.array(oe.object({action:oe.enum(["postback","url","say"]),label:oe.string().min(1),value:oe.string().min(1)})),type:oe.literal("card"),className:oe.string().describe("CSS className to apply to the message").optional()}),oe.object({items:oe.array(oe.object({title:oe.string().min(1),subtitle:oe.string().optional(),imageUrl:oe.string().optional(),actions:oe.array(oe.object({action:oe.enum(["postback","url","say"]),label:oe.string().min(1),value:oe.string().min(1)})),className:oe.string().describe("CSS className to apply to the message").optional()})),className:oe.string().describe("CSS className to apply to the message").optional(),type:oe.literal("carousel")}),oe.object({text:oe.string(),options:oe.array(oe.object({label:oe.string().min(1),value:oe.string().min(1)})),className:oe.string().describe("CSS className to apply to the message").optional(),type:oe.literal("choice"),disableFreeText:oe.boolean().optional()}),oe.object({text:oe.string(),options:oe.array(oe.object({label:oe.string().min(1),value:oe.string().min(1)})),className:oe.string().describe("CSS className to apply to the message").optional(),type:oe.literal("dropdown")}),oe.object({fileUrl:oe.string().min(1),title:oe.string().min(1).optional(),className:oe.string().describe("CSS className to apply to the message").optional(),type:oe.literal("file")}),oe.object({imageUrl:oe.string().min(1),className:oe.string().describe("CSS className to apply to the message").optional(),type:oe.literal("image")}),oe.object({latitude:oe.number(),longitude:oe.number(),address:oe.string().optional(),title:oe.string().optional(),className:oe.string().describe("CSS className to apply to the message").optional(),type:oe.literal("location")}),oe.object({markdown:oe.string().min(1),className:oe.string().describe("CSS className to apply to the message").optional(),type:oe.literal("markdown")}),oe.object({text:oe.string().min(1),className:oe.string().describe("CSS className to apply to the message").optional(),type:oe.literal("text")}),oe.object({videoUrl:oe.string().min(1),className:oe.string().describe("CSS className to apply to the message").optional(),type:oe.literal("video")})]),userId:oe.string(),conversationId:oe.string()})}),Sye=oe.object({type:oe.literal("webchat_visibility"),data:oe.object({visibility:oe.enum(["show","hide","toggle"])})}),Eye=oe.object({type:oe.literal("webchat_config"),data:oe.object({config:oe.record(oe.any())})}),Aye=oe.object({type:oe.literal("custom"),data:oe.object({event:oe.record(oe.any())})}),Cye={messageCreated:xye,webchatVisibility:Sye,webchatConfig:Eye,custom:Aye},uR="unknown error",fy=class fy extends JP{constructor(n){super();R(this,"_state",{status:"disconnected"});R(this,"connect",async()=>{if(this._state.status==="connected")return;if(this._state.status==="connecting"){await this._state.connectionPromise;return}const n=this._connect();this._state={status:"connecting",connectionPromise:n},await n});R(this,"disconnect",async()=>{if(this._state.status==="disconnected")return;let n;this._state.status==="connecting"?n=await this._state.connectionPromise:n=this._state.source,this._disconnectSync(n)});R(this,"_connect",async()=>{const n=await Tme(`${this._props.url}/conversations/${this._props.conversationId}/listen`,{headers:{"x-user-key":this._props.userKey}});return n.on("message",this._handleMessage),n.on("error",this._handleError(n)),this._state={status:"connected",source:n},n});R(this,"_disconnectSync",n=>{n.close(),this._state={status:"disconnected"}});R(this,"_handleMessage",n=>{const r=this._parseSignal(n.data);this.emit(r.type,r.data)});R(this,"_handleError",n=>r=>{this._disconnectSync(n);const i=this._toError(r);this.emit("error",i)});R(this,"_parseSignal",n=>{for(const r of Object.values(Cye)){const i=this._safeJsonParse(n),o=r.safeParse(i);if(o.success)return o.data}return{type:"unknown",data:n}});R(this,"_safeJsonParse",n=>{try{return JSON.parse(n)}catch{return n}});R(this,"_toError",n=>{if(n instanceof Error)return n;if(typeof n=="string")return new Error(n);if(n===null)return new Error(uR);if(typeof n=="object"&&"message"in n)return this._toError(n.message);try{const r=JSON.stringify(n);return new Error(r)}catch{return new Error(uR)}});this._props=n}get status(){return this._state.status}};R(fy,"listen",async n=>{const r=new fy(n);return await r.connect(),r});let I0=fy;const lR=100*1024*1024,Oye=lR,Tye=lR,$ye=6e4;class kye{constructor(t){R(this,"_auto");R(this,"createConversation",t=>this._auto.createConversation(t));R(this,"getConversation",t=>this._auto.getConversation(t));R(this,"deleteConversation",t=>this._auto.deleteConversation(t));R(this,"listConversations",t=>this._auto.listConversations(t));R(this,"listConversationMessages",t=>this._auto.listConversationMessages(t));R(this,"addParticipant",t=>this._auto.addParticipant(t));R(this,"removeParticipant",t=>this._auto.removeParticipant(t));R(this,"getParticipant",t=>this._auto.getParticipant(t));R(this,"listParticipants",t=>this._auto.listParticipants(t));R(this,"createMessage",t=>this._auto.createMessage(t));R(this,"getMessage",t=>this._auto.getMessage(t));R(this,"deleteMessage",t=>this._auto.deleteMessage(t));R(this,"createFile",t=>this._auto.createFile(t));R(this,"createUser",t=>this._auto.createUser(t));R(this,"getUser",t=>this._auto.getUser(t));R(this,"updateUser",t=>this._auto.updateUser(t));R(this,"deleteUser",t=>this._auto.deleteUser(t));R(this,"createEvent",t=>this._auto.createEvent(t));R(this,"getEvent",t=>this._auto.getEvent(t));R(this,"listenConversation",async({id:t,"x-user-key":n})=>await I0.listen({url:this.props.apiUrl,conversationId:t,userKey:n}));this.props=t;const{apiUrl:n}=t,r={...t.headers},i=t.timeout??$ye,o=mP.create({baseURL:n,headers:r,withCredentials:!0,timeout:i,maxBodyLength:Oye,maxContentLength:Tye});this._auto=new Eme(o)}}const Gh={disconnected:0,user_creating:1,user_created:2,conversation_creating:3,conversation_created:4},Kr=(e,t)=>e.status===t,go=(e,t)=>Gh[e.status]<Gh[t],cR=(e,t)=>Gh[e.status]>=Gh[t];class vo extends Error{constructor(t){super(`Unexpected state: ${t.status}`),this.state=t}}const fR=["audio","file","image","video"],dR=e=>fR.includes(e);class Iye extends ig{constructor(n){super();R(this,"_client");R(this,"_webhookId");R(this,"_apiUrl");R(this,"_state",{status:"disconnected"});R(this,"mode","pushpin");R(this,"_initialConnect",async n=>{if(cR(this._state,"user_created"))throw new Error("Client is already connected. Please disconnect first.");if(Kr(this._state,"user_creating"))return;this._state={status:"user_creating"};const{user:{id:r},key:i}=await this._client.createUser({name:void 0,pictureUrl:void 0,userData:n});return this._state={status:"user_created",userId:r,userKey:i},{userId:r,userToken:i}});R(this,"_reConnect",async(n,r)=>{if(cR(this._state,"user_created")){if(this._state.userId!==n.userId)throw new Error("Client is already connected. Please disconnect first.");return n}return Kr(this._state,"user_creating")||(this._state={status:"user_created",userId:n.userId,userKey:n.userToken},await this._client.updateUser({"x-user-key":n.userToken,name:void 0,pictureUrl:void 0,userData:r})),n});R(this,"_mapMessage",n=>{const{payload:r,disableInput:i}=Cfe(n.payload);return{id:n.id,conversationId:n.conversationId,authorId:n.userId,sentOn:new Date(n.createdAt),payload:r,disableInput:i}});const r=`${n.apiUrl}/${n.clientId}`;this._webhookId=n.clientId,this._apiUrl=r,this._client=new kye({apiUrl:r})}get apiUrl(){return this._apiUrl}get clientId(){return this._webhookId}get userId(){if(!go(this._state,"user_created"))return this._state.userId}async getUser(){if(go(this._state,"user_created"))throw new vo(this._state);const{user:n}=await this._client.getUser({"x-user-key":this._state.userKey});return{data:n.data}}async updateUser(n){if(go(this._state,"user_created"))throw new vo(this._state);const{user:r}=await this._client.updateUser({"x-user-key":this._state.userKey,userData:n.data});return r}get conversationId(){if(!go(this._state,"conversation_created"))return this._state.conversationId}async connect(n,r){return n?await this.userExists(n)?this._reConnect(n,r):this._initialConnect(r):this._initialConnect(r)}async disconnect(){Kr(this._state,"conversation_created")?this._state.signalEmitter.cleanup():Kr(this._state,"conversation_creating")&&console.warn("zombie conversation..."),this._state={status:"disconnected"}}async sendFile(n){if(go(this._state,"user_created"))throw new vo(this._state);if(Kr(this._state,"conversation_creating"))throw new vo(this._state);let r;Kr(this._state,"conversation_created")?r=this._state:(this._state={status:"conversation_creating",userId:this._state.userId,userKey:this._state.userKey},r=await this._createNewConversation(this._state));const{size:i,name:o}=n,s=await(y=>new Promise((v,w)=>{const _=new FileReader;_.onload=b=>{var S;return v((S=b.target)==null?void 0:S.result)},_.onerror=b=>{var S;return w((S=b.target)==null?void 0:S.error)},_.readAsArrayBuffer(y)}))(n),{file:{uploadUrl:l,contentType:c,url:d}}=await this._client.createFile({"x-user-key":r.userKey,size:i,key:o,accessPolicies:["public_content"],index:!1});await fetch(l,{method:"PUT",body:s});const p=c.split("/").shift()??"",m=dR(p)?p:"file",h=m==="image"?{type:m,imageUrl:d}:m==="audio"?{type:m,audioUrl:d}:m==="video"?{type:m,videoUrl:d}:{type:m,fileUrl:d};return await this._client.createMessage({"x-user-key":r.userKey,conversationId:r.conversationId,payload:h}),this.emit("messageSent",d),{fileUrl:d,name:o,type:m}}async sendMessage(n){if(go(this._state,"user_created"))throw new vo(this._state);if(Kr(this._state,"conversation_creating"))throw new vo(this._state);let r;Kr(this._state,"conversation_created")?r=this._state:(this._state={status:"conversation_creating",userId:this._state.userId,userKey:this._state.userKey},r=await this._createNewConversation(this._state)),await this._client.createMessage({"x-user-key":r.userKey,conversationId:r.conversationId,payload:{type:"text",text:n}}),this.emit("messageSent",n)}async sendEvent(n){if(go(this._state,"user_created"))throw new vo(this._state);if(Kr(this._state,"conversation_creating"))throw new vo(this._state);let r;Kr(this._state,"conversation_created")?r=this._state:(this._state={status:"conversation_creating",userId:this._state.userId,userKey:this._state.userKey},r=await this._createNewConversation(this._state)),await this._client.createEvent({"x-user-key":r.userKey,conversationId:r.conversationId,payload:{type:"custom",data:n}})}async switchConversation(n){if(go(this._state,"user_created"))throw new vo(this._state);Kr(this._state,"conversation_created")&&this._state.conversationId===n||Kr(this._state,"conversation_creating")||(this._state={status:"conversation_creating",userId:this._state.userId,userKey:this._state.userKey},await this._connectConversation(this._state,n))}async conversationExists(n){if(go(this._state,"user_created"))return!1;try{return await this._client.getConversation({"x-user-key":this._state.userKey,id:n}),!0}catch(r){if(t0(r)&&r.code===404)return!1;throw r}}async userExists({userToken:n}){try{return await this._client.getUser({"x-user-key":n}),!0}catch(r){const i=o=>o.code===404||o.code===401;if(t0(r)&&i(r))return!1;throw r}}async newConversation(){if(go(this._state,"user_created"))throw new vo(this._state);Kr(this._state,"conversation_creating")||(this._state={status:"conversation_creating",userId:this._state.userId,userKey:this._state.userKey},await this._createNewConversation(this._state))}async _createNewConversation(n){const{conversation:{id:r}}=await this._client.createConversation({"x-user-key":n.userKey}),i=await this._connectConversation(n,r);return await this._client.createEvent({"x-user-key":n.userKey,conversationId:r,payload:{type:"conversation_started",data:{}}}),i}async listMessages(){if(!Kr(this._state,"conversation_created"))return[];const{conversationId:n,userKey:r}=this._state,i=[];let o;do{const a=await this._client.listConversationMessages({id:n,"x-user-key":r,nextToken:o});i.push(...a.messages),o=a.meta.nextToken}while(o);return i.map(this._mapMessage)}async _connectConversation(n,r){const i=await this._client.listenConversation({id:r,"x-user-key":n.userKey});return i.on("unknown",o=>{typeof o=="string"&&o==="ping"||console.debug("unknown event",o)}),i.on("message_created",o=>{o.userId!==n.userId&&this.emit("message",this._mapMessage(o))}),i.on("error",()=>{this._state={status:"user_created",userId:n.userId,userKey:n.userKey},this.emit("error",new Error("Connection to conversation lost"))}),i.on("webchat_visibility",o=>{this.emit("webchatVisibility",o.visibility)}),i.on("webchat_config",o=>{this.emit("webchatConfig",o.config)}),i.on("custom",o=>{this.emit("customEvent",o.event)}),this.emit("conversation",r),this._state={status:"conversation_created",userId:n.userId,userKey:n.userKey,conversationId:r,signalEmitter:i},this._state}}const pR=({clientId:e,apiUrl:t="https://webchat.botpress.cloud",mode:n="pushpin"})=>n==="messaging"?new Ofe({url:t,clientId:e}):new Iye({apiUrl:t,clientId:e}),Pye=({clientId:e,apiUrl:t="https://webchat.botpress.cloud",mode:n="pushpin"})=>{const[r]=C.useState(pR({clientId:e,apiUrl:t,mode:n}));return r};function Rye(e,t){const n=t?`The ${t} has been copied to your clipboard.`:"Copied to clipboard.";return navigator.clipboard.writeText(e).then(()=>Gge({title:n,type:"success"}))}const Nye=(e,t={})=>new Promise((n,r)=>{if(typeof window>"u")return r("Window is not defined");if(!e)return r("Url is not defined");let i=null;const o=new Image;o.addEventListener("load",()=>{i&&clearTimeout(i),n({width:o.naturalWidth,height:o.naturalHeight})}),o.addEventListener("error",a=>{i&&clearTimeout(i),r(`${a.type}: ${a.message}`)}),o.src=e,t.timeout&&(i=setTimeout(()=>r("Timeout"),t.timeout))});let Dye={data:""},Mye=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Dye,jye=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Lye=/\/\*[^]*?\*\/| +/g,hR=/\n+/g,Ta=(e,t)=>{let n="",r="",i="";for(let o in e){let a=e[o];o[0]=="@"?o[1]=="i"?n=o+" "+a+";":r+=o[1]=="f"?Ta(a,o):o+"{"+Ta(a,o[1]=="k"?"":t)+"}":typeof a=="object"?r+=Ta(a,t?t.replace(/([^,])+/g,s=>o.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,s):s?s+" "+l:l)):o):a!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Ta.p?Ta.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},Zo={},mR=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+mR(e[n]);return t}return e},Fye=(e,t,n,r,i)=>{let o=mR(e),a=Zo[o]||(Zo[o]=(l=>{let c=0,d=11;for(;c<l.length;)d=101*d+l.charCodeAt(c++)>>>0;return"go"+d})(o));if(!Zo[a]){let l=o!==e?e:(c=>{let d,p,m=[{}];for(;d=jye.exec(c.replace(Lye,""));)d[4]?m.shift():d[3]?(p=d[3].replace(hR," ").trim(),m.unshift(m[0][p]=m[0][p]||{})):m[0][d[1]]=d[2].replace(hR," ").trim();return m[0]})(e);Zo[a]=Ta(i?{["@keyframes "+a]:l}:l,n?"":"."+a)}let s=n&&Zo.g?Zo.g:null;return n&&(Zo.g=Zo[a]),((l,c,d,p)=>{p?c.data=c.data.replace(p,l):c.data.indexOf(l)===-1&&(c.data=d?l+c.data:c.data+l)})(Zo[a],t,r,s),a},qye=(e,t,n)=>e.reduce((r,i,o)=>{let a=t[o];if(a&&a.call){let s=a(n),l=s&&s.props&&s.props.className||/^go/.test(s)&&s;a=l?"."+l:s&&typeof s=="object"?s.props?"":Ta(s,""):s===!1?"":s}return r+i+(a??"")},"");function Yh(e){let t=this||{},n=e.call?e(t.p):e;return Fye(n.unshift?n.raw?qye(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,Mye(t.target),t.g,t.o,t.k)}let yR,P0,R0;Yh.bind({g:1});let Ho=Yh.bind({k:1});function Uye(e,t,n,r){Ta.p=t,yR=e,P0=n,R0=r}function $a(e,t){let n=this||{};return function(){let r=arguments;function i(o,a){let s=Object.assign({},o),l=s.className||i.className;n.p=Object.assign({theme:P0&&P0()},s),n.o=/ *go\d+/.test(l),s.className=Yh.apply(n,r)+(l?" "+l:""),t&&(s.ref=a);let c=e;return e[0]&&(c=s.as||e,delete s.as),R0&&c[0]&&R0(s),yR(c,s)}return t?t(i):i}}var Bye=e=>typeof e=="function",Jh=(e,t)=>Bye(e)?e(t):e,zye=(()=>{let e=0;return()=>(++e).toString()})(),gR=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Zye=20,Xh=new Map,Hye=1e3,vR=e=>{if(Xh.has(e))return;let t=setTimeout(()=>{Xh.delete(e),Ns({type:4,toastId:e})},Hye);Xh.set(e,t)},Wye=e=>{let t=Xh.get(e);t&&clearTimeout(t)},N0=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,Zye)};case 1:return t.toast.id&&Wye(t.toast.id),{...e,toasts:e.toasts.map(o=>o.id===t.toast.id?{...o,...t.toast}:o)};case 2:let{toast:n}=t;return e.toasts.find(o=>o.id===n.id)?N0(e,{type:1,toast:n}):N0(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?vR(r):e.toasts.forEach(o=>{vR(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===r||r===void 0?{...o,visible:!1}:o)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(o=>o.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(o=>({...o,pauseDuration:o.pauseDuration+i}))}}},Qh=[],em={toasts:[],pausedAt:void 0},Ns=e=>{em=N0(em,e),Qh.forEach(t=>{t(em)})},Vye={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Kye=(e={})=>{let[t,n]=C.useState(em);C.useEffect(()=>(Qh.push(n),()=>{let i=Qh.indexOf(n);i>-1&&Qh.splice(i,1)}),[t]);let r=t.toasts.map(i=>{var o,a;return{...e,...e[i.type],...i,duration:i.duration||((o=e[i.type])==null?void 0:o.duration)||(e==null?void 0:e.duration)||Vye[i.type],style:{...e.style,...(a=e[i.type])==null?void 0:a.style,...i.style}}});return{...t,toasts:r}},Gye=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||zye()}),sf=e=>(t,n)=>{let r=Gye(t,e,n);return Ns({type:2,toast:r}),r.id},Gr=(e,t)=>sf("blank")(e,t);Gr.error=sf("error"),Gr.success=sf("success"),Gr.loading=sf("loading"),Gr.custom=sf("custom"),Gr.dismiss=e=>{Ns({type:3,toastId:e})},Gr.remove=e=>Ns({type:4,toastId:e}),Gr.promise=(e,t,n)=>{let r=Gr.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(i=>(Gr.success(Jh(t.success,i),{id:r,...n,...n==null?void 0:n.success}),i)).catch(i=>{Gr.error(Jh(t.error,i),{id:r,...n,...n==null?void 0:n.error})}),e};var Yye=(e,t)=>{Ns({type:1,toast:{id:e,height:t}})},Jye=()=>{Ns({type:5,time:Date.now()})},Xye=e=>{let{toasts:t,pausedAt:n}=Kye(e);C.useEffect(()=>{if(n)return;let o=Date.now(),a=t.map(s=>{if(s.duration===1/0)return;let l=(s.duration||0)+s.pauseDuration-(o-s.createdAt);if(l<0){s.visible&&Gr.dismiss(s.id);return}return setTimeout(()=>Gr.dismiss(s.id),l)});return()=>{a.forEach(s=>s&&clearTimeout(s))}},[t,n]);let r=C.useCallback(()=>{n&&Ns({type:6,time:Date.now()})},[n]),i=C.useCallback((o,a)=>{let{reverseOrder:s=!1,gutter:l=8,defaultPosition:c}=a||{},d=t.filter(h=>(h.position||c)===(o.position||c)&&h.height),p=d.findIndex(h=>h.id===o.id),m=d.filter((h,y)=>y<p&&h.visible).length;return d.filter(h=>h.visible).slice(...s?[m+1]:[0,m]).reduce((h,y)=>h+(y.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:Yye,startPause:Jye,endPause:r,calculateOffset:i}}},Qye=Ho`
|
|
203
|
+
`,Cn+=Rn):bn==="id"?ee=Rn:bn==="event"?ae=Rn:bn==="retry"?(Ue=rt(Rn,Ue),mt=Ue):bn==="heartbeatTimeout"&&(ot=rt(Rn,ot),Yt!==0&&(i(Yt),Yt=r(function(){He()},ot)))}if(At===ue){if(Cn!==""){It=ee,ae===""&&(ae="message");var mr=new Q(ae,{data:Cn.slice(1),lastEventId:ee});if(K.dispatchEvent(mr),ae==="open"?Pe(K,K.onopen,mr):ae==="message"?Pe(K,K.onmessage,mr):ae==="error"&&Pe(K,K.onerror,mr),cn===ce)return}Cn="",ae=""}At=_t==="\r".charCodeAt(0)?P:ue}else At===ue&&(on=Jt,At=Oe),At===Oe?_t===":".charCodeAt(0)&&(pt=Jt+1,At=D):At===D&&(At=De)}}},N=function(Xe){if(cn===ne||cn===Y){cn=F,Yt!==0&&(i(Yt),Yt=0),Yt=r(function(){He()},mt),mt=Ke(Math.min(Ue*16,mt*2)),K.readyState=Y;var Re=new V("error",{error:Xe});K.dispatchEvent(Re),Pe(K,K.onerror,Re),Xe!=null&&console.error(Xe)}},je=function(){cn=ce,rn!=null&&(rn.abort(),rn=void 0),Yt!==0&&(i(Yt),Yt=0),K.readyState=ce},He=function(){if(Yt=0,cn!==F){if(!ie&&rn!=null)N(new Error("No activity within "+ot+" milliseconds. "+(cn===Y?"No response received.":ye+" chars received.")+" Reconnecting.")),rn!=null&&(rn.abort(),rn=void 0);else{var Xe=Math.max((ie||Date.now())+ot-Date.now(),1);ie=!1,Yt=r(function(){He()},Xe)}return}ie=!1,ye=0,Yt=r(function(){He()},ot),cn=Y,Cn="",ae="",ee=It,ft="",on=0,pt=0,At=ue;var Re=de;if(de.slice(0,5)!=="data:"&&de.slice(0,5)!=="blob:"&&It!==""){var We=de.indexOf("?");Re=We===-1?de:de.slice(0,We+1)+de.slice(We+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(Rn,mr){return mr===et?"":Rn}),Re+=(de.indexOf("?")===-1?"?":"&")+et+"="+encodeURIComponent(It)}var _t=K.withCredentials,Pt={};Pt.Accept="text/event-stream";var Jt=K.headers;if(Jt!=null)for(var bn in Jt)Object.prototype.hasOwnProperty.call(Jt,bn)&&(Pt[bn]=Jt[bn]);try{rn=pn.open(ct,Mn,sr,N,Re,_t,Pt)}catch(Rn){throw je(),Rn}};K.url=de,K.readyState=Y,K.withCredentials=Se,K.headers=xe,K._close=je,He()}Ae.prototype=Object.create(M.prototype),Ae.prototype.CONNECTING=Y,Ae.prototype.OPEN=ne,Ae.prototype.CLOSED=ce,Ae.prototype.close=function(){this._close()},Ae.CONNECTING=Y,Ae.OPEN=ne,Ae.CLOSED=ce,Ae.prototype.withCredentials=void 0;var lt=l;o!=null&&(l==null||!("withCredentials"in l.prototype))&&(lt=Ae),function(K){{var de=K(t);de!==void 0&&(e.exports=de)}}(function(K){K.EventSourcePolyfill=Ae,K.NativeEventSource=l,K.EventSource=lt})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:se:globalThis)})(A0,A0.exports);var Ame=A0.exports;const Cme=Oo(Ame),Ome=(e,t={})=>{const n=new Cme.EventSourcePolyfill(e,{headers:t.headers}),r=new JP;return n.onopen=i=>r.emit("open",i),n.onmessage=i=>r.emit("message",i),n.onerror=i=>r.emit("error",i),{emitter:r,source:n}},Tme=async(e,t={})=>{const{emitter:n,source:r}=Ome(e,t);return await new Promise((i,o)=>{n.on("open",()=>{i()}),n.on("error",a=>{o(a)})}).finally(()=>n.cleanup()),{on:n.on.bind(n),close:()=>{n.cleanup(),r.close()}}};var sn;(function(e){e.assertEqual=i=>i;function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const o={};for(const a of i)o[a]=a;return o},e.getValidEnumValues=i=>{const o=e.objectKeys(i).filter(s=>typeof i[i[s]]!="number"),a={};for(const s of o)a[s]=i[s];return e.objectValues(a)},e.objectValues=i=>e.objectKeys(i).map(function(o){return i[o]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const o=[];for(const a in i)Object.prototype.hasOwnProperty.call(i,a)&&o.push(a);return o},e.find=(i,o)=>{for(const a of i)if(o(a))return a},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function r(i,o=" | "){return i.map(a=>typeof a=="string"?`'${a}'`:a).join(o)}e.joinValues=r,e.jsonStringifyReplacer=(i,o)=>typeof o=="bigint"?o.toString():o})(sn||(sn={}));var C0;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(C0||(C0={}));const Qe=sn.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ea=e=>{switch(typeof e){case"undefined":return Qe.undefined;case"string":return Qe.string;case"number":return isNaN(e)?Qe.nan:Qe.number;case"boolean":return Qe.boolean;case"function":return Qe.function;case"bigint":return Qe.bigint;case"symbol":return Qe.symbol;case"object":return Array.isArray(e)?Qe.array:e===null?Qe.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Qe.promise:typeof Map<"u"&&e instanceof Map?Qe.map:typeof Set<"u"&&e instanceof Set?Qe.set:typeof Date<"u"&&e instanceof Date?Qe.date:Qe.object;default:return Qe.unknown}},Ne=sn.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),$me=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Li extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(o){return o.message},r={_errors:[]},i=o=>{for(const a of o.issues)if(a.code==="invalid_union")a.unionErrors.map(i);else if(a.code==="invalid_return_type")i(a.returnTypeError);else if(a.code==="invalid_arguments")i(a.argumentsError);else if(a.path.length===0)r._errors.push(n(a));else{let s=r,l=0;for(;l<a.path.length;){const c=a.path[l];l===a.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(n(a))):s[c]=s[c]||{_errors:[]},s=s[c],l++}}};return i(this),r}toString(){return this.message}get message(){return JSON.stringify(this.issues,sn.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Li.create=e=>new Li(e);const Vc=(e,t)=>{let n;switch(e.code){case Ne.invalid_type:e.received===Qe.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case Ne.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,sn.jsonStringifyReplacer)}`;break;case Ne.unrecognized_keys:n=`Unrecognized key(s) in object: ${sn.joinValues(e.keys,", ")}`;break;case Ne.invalid_union:n="Invalid input";break;case Ne.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${sn.joinValues(e.options)}`;break;case Ne.invalid_enum_value:n=`Invalid enum value. Expected ${sn.joinValues(e.options)}, received '${e.received}'`;break;case Ne.invalid_arguments:n="Invalid function arguments";break;case Ne.invalid_return_type:n="Invalid function return type";break;case Ne.invalid_date:n="Invalid date";break;case Ne.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:sn.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case Ne.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case Ne.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case Ne.custom:n="Invalid input";break;case Ne.invalid_intersection_types:n="Intersection results could not be merged";break;case Ne.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Ne.not_finite:n="Number must be finite";break;default:n=t.defaultError,sn.assertNever(e)}return{message:n}};let XP=Vc;function kme(e){XP=e}function Lh(){return XP}const Fh=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,o=[...n,...i.path||[]],a={...i,path:o};let s="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)s=c(a,{data:t,defaultError:s}).message;return{...i,path:o,message:i.message||s}},Ime=[];function tt(e,t){const n=Fh({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,Lh(),Vc].filter(r=>!!r)});e.common.issues.push(n)}class Er{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return $t;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n)r.push({key:await i.key,value:await i.value});return Er.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:o,value:a}=i;if(o.status==="aborted"||a.status==="aborted")return $t;o.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof a.value<"u"||i.alwaysSet)&&(r[o.value]=a.value)}return{status:t.value,value:r}}}const $t=Object.freeze({status:"aborted"}),QP=e=>({status:"dirty",value:e}),jr=e=>({status:"valid",value:e}),O0=e=>e.status==="aborted",T0=e=>e.status==="dirty",Kc=e=>e.status==="valid",qh=e=>typeof Promise<"u"&&e instanceof Promise;var dt;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(dt||(dt={}));class mo{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const eR=(e,t)=>{if(Kc(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Li(e.common.issues);return this._error=n,this._error}}};function Nt(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(a,s)=>a.code!=="invalid_type"?{message:s.defaultError}:typeof s.data>"u"?{message:r??s.defaultError}:{message:n??s.defaultError},description:i}}class jt{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Ea(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Ea(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Er,ctx:{common:t.parent.common,data:t.data,parsedType:Ea(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(qh(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const i={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ea(t)},o=this._parseSync({data:t,path:i.path,parent:i});return eR(i,o)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ea(t)},i=this._parse({data:t,path:r.path,parent:r}),o=await(qh(i)?i:Promise.resolve(i));return eR(r,o)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,o)=>{const a=t(i),s=()=>o.addIssue({code:Ne.custom,...r(i)});return typeof Promise<"u"&&a instanceof Promise?a.then(l=>l?!0:(s(),!1)):a?!0:(s(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new Ui({schema:this,typeName:Et.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return zo.create(this,this._def)}nullable(){return Rs.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return qi.create(this,this._def)}promise(){return tl.create(this,this._def)}or(t){return Xc.create([this,t],this._def)}and(t){return Qc.create(this,t,this._def)}transform(t){return new Ui({...Nt(this._def),schema:this,typeName:Et.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new of({...Nt(this._def),innerType:this,defaultValue:n,typeName:Et.ZodDefault})}brand(){return new nR({typeName:Et.ZodBranded,type:this,...Nt(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Wh({...Nt(this._def),innerType:this,catchValue:n,typeName:Et.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return af.create(this,t)}readonly(){return Kh.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Pme=/^c[^\s-]{8,}$/i,Rme=/^[a-z][a-z0-9]*$/,Nme=/^[0-9A-HJKMNP-TV-Z]{26}$/,Dme=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Mme=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,jme="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let $0;const Lme=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,Fme=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,qme=e=>e.precision?e.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):e.precision===0?e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function Ume(e,t){return!!((t==="v4"||!t)&&Lme.test(e)||(t==="v6"||!t)&&Fme.test(e))}class Fi extends jt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Qe.string){const o=this._getOrReturnCtx(t);return tt(o,{code:Ne.invalid_type,expected:Qe.string,received:o.parsedType}),$t}const r=new Er;let i;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(i=this._getOrReturnCtx(t,i),tt(i,{code:Ne.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")t.data.length>o.value&&(i=this._getOrReturnCtx(t,i),tt(i,{code:Ne.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const a=t.data.length>o.value,s=t.data.length<o.value;(a||s)&&(i=this._getOrReturnCtx(t,i),a?tt(i,{code:Ne.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):s&&tt(i,{code:Ne.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")Mme.test(t.data)||(i=this._getOrReturnCtx(t,i),tt(i,{validation:"email",code:Ne.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")$0||($0=new RegExp(jme,"u")),$0.test(t.data)||(i=this._getOrReturnCtx(t,i),tt(i,{validation:"emoji",code:Ne.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")Dme.test(t.data)||(i=this._getOrReturnCtx(t,i),tt(i,{validation:"uuid",code:Ne.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")Pme.test(t.data)||(i=this._getOrReturnCtx(t,i),tt(i,{validation:"cuid",code:Ne.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")Rme.test(t.data)||(i=this._getOrReturnCtx(t,i),tt(i,{validation:"cuid2",code:Ne.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")Nme.test(t.data)||(i=this._getOrReturnCtx(t,i),tt(i,{validation:"ulid",code:Ne.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),tt(i,{validation:"url",code:Ne.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),tt(i,{validation:"regex",code:Ne.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(i=this._getOrReturnCtx(t,i),tt(i,{code:Ne.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(i=this._getOrReturnCtx(t,i),tt(i,{code:Ne.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(i=this._getOrReturnCtx(t,i),tt(i,{code:Ne.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?qme(o).test(t.data)||(i=this._getOrReturnCtx(t,i),tt(i,{code:Ne.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="ip"?Ume(t.data,o.version)||(i=this._getOrReturnCtx(t,i),tt(i,{validation:"ip",code:Ne.invalid_string,message:o.message}),r.dirty()):sn.assertNever(o);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:Ne.invalid_string,...dt.errToObj(r)})}_addCheck(t){return new Fi({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...dt.errToObj(t)})}url(t){return this._addCheck({kind:"url",...dt.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...dt.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...dt.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...dt.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...dt.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...dt.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...dt.errToObj(t)})}datetime(t){var n;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,...dt.errToObj(t==null?void 0:t.message)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...dt.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...dt.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...dt.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...dt.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...dt.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...dt.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...dt.errToObj(n)})}nonempty(t){return this.min(1,dt.errToObj(t))}trim(){return new Fi({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Fi({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Fi({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Fi.create=e=>{var t;return new Fi({checks:[],typeName:Et.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Nt(e)})};function Bme(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,o=parseInt(e.toFixed(i).replace(".","")),a=parseInt(t.toFixed(i).replace(".",""));return o%a/Math.pow(10,i)}class Aa extends jt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Qe.number){const o=this._getOrReturnCtx(t);return tt(o,{code:Ne.invalid_type,expected:Qe.number,received:o.parsedType}),$t}let r;const i=new Er;for(const o of this._def.checks)o.kind==="int"?sn.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),tt(r,{code:Ne.invalid_type,expected:"integer",received:"float",message:o.message}),i.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),tt(r,{code:Ne.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),tt(r,{code:Ne.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="multipleOf"?Bme(t.data,o.value)!==0&&(r=this._getOrReturnCtx(t,r),tt(r,{code:Ne.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),tt(r,{code:Ne.not_finite,message:o.message}),i.dirty()):sn.assertNever(o);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,dt.toString(n))}gt(t,n){return this.setLimit("min",t,!1,dt.toString(n))}lte(t,n){return this.setLimit("max",t,!0,dt.toString(n))}lt(t,n){return this.setLimit("max",t,!1,dt.toString(n))}setLimit(t,n,r,i){return new Aa({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:dt.toString(i)}]})}_addCheck(t){return new Aa({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:dt.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:dt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:dt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:dt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:dt.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:dt.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:dt.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:dt.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:dt.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&sn.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Aa.create=e=>new Aa({checks:[],typeName:Et.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Nt(e)});class Ca extends jt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==Qe.bigint){const o=this._getOrReturnCtx(t);return tt(o,{code:Ne.invalid_type,expected:Qe.bigint,received:o.parsedType}),$t}let r;const i=new Er;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),tt(r,{code:Ne.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),tt(r,{code:Ne.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),tt(r,{code:Ne.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):sn.assertNever(o);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,dt.toString(n))}gt(t,n){return this.setLimit("min",t,!1,dt.toString(n))}lte(t,n){return this.setLimit("max",t,!0,dt.toString(n))}lt(t,n){return this.setLimit("max",t,!1,dt.toString(n))}setLimit(t,n,r,i){return new Ca({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:dt.toString(i)}]})}_addCheck(t){return new Ca({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:dt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:dt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:dt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:dt.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:dt.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Ca.create=e=>{var t;return new Ca({checks:[],typeName:Et.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Nt(e)})};class Gc extends jt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Qe.boolean){const r=this._getOrReturnCtx(t);return tt(r,{code:Ne.invalid_type,expected:Qe.boolean,received:r.parsedType}),$t}return jr(t.data)}}Gc.create=e=>new Gc({typeName:Et.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Nt(e)});class ks extends jt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Qe.date){const o=this._getOrReturnCtx(t);return tt(o,{code:Ne.invalid_type,expected:Qe.date,received:o.parsedType}),$t}if(isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return tt(o,{code:Ne.invalid_date}),$t}const r=new Er;let i;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(i=this._getOrReturnCtx(t,i),tt(i,{code:Ne.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(i=this._getOrReturnCtx(t,i),tt(i,{code:Ne.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):sn.assertNever(o);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new ks({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:dt.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:dt.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}ks.create=e=>new ks({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Et.ZodDate,...Nt(e)});class Uh extends jt{_parse(t){if(this._getType(t)!==Qe.symbol){const r=this._getOrReturnCtx(t);return tt(r,{code:Ne.invalid_type,expected:Qe.symbol,received:r.parsedType}),$t}return jr(t.data)}}Uh.create=e=>new Uh({typeName:Et.ZodSymbol,...Nt(e)});class Yc extends jt{_parse(t){if(this._getType(t)!==Qe.undefined){const r=this._getOrReturnCtx(t);return tt(r,{code:Ne.invalid_type,expected:Qe.undefined,received:r.parsedType}),$t}return jr(t.data)}}Yc.create=e=>new Yc({typeName:Et.ZodUndefined,...Nt(e)});class Jc extends jt{_parse(t){if(this._getType(t)!==Qe.null){const r=this._getOrReturnCtx(t);return tt(r,{code:Ne.invalid_type,expected:Qe.null,received:r.parsedType}),$t}return jr(t.data)}}Jc.create=e=>new Jc({typeName:Et.ZodNull,...Nt(e)});class Xu extends jt{constructor(){super(...arguments),this._any=!0}_parse(t){return jr(t.data)}}Xu.create=e=>new Xu({typeName:Et.ZodAny,...Nt(e)});class Is extends jt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return jr(t.data)}}Is.create=e=>new Is({typeName:Et.ZodUnknown,...Nt(e)});class Bo extends jt{_parse(t){const n=this._getOrReturnCtx(t);return tt(n,{code:Ne.invalid_type,expected:Qe.never,received:n.parsedType}),$t}}Bo.create=e=>new Bo({typeName:Et.ZodNever,...Nt(e)});class Bh extends jt{_parse(t){if(this._getType(t)!==Qe.undefined){const r=this._getOrReturnCtx(t);return tt(r,{code:Ne.invalid_type,expected:Qe.void,received:r.parsedType}),$t}return jr(t.data)}}Bh.create=e=>new Bh({typeName:Et.ZodVoid,...Nt(e)});class qi extends jt{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==Qe.array)return tt(n,{code:Ne.invalid_type,expected:Qe.array,received:n.parsedType}),$t;if(i.exactLength!==null){const a=n.data.length>i.exactLength.value,s=n.data.length<i.exactLength.value;(a||s)&&(tt(n,{code:a?Ne.too_big:Ne.too_small,minimum:s?i.exactLength.value:void 0,maximum:a?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(tt(n,{code:Ne.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(tt(n,{code:Ne.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((a,s)=>i.type._parseAsync(new mo(n,a,n.path,s)))).then(a=>Er.mergeArray(r,a));const o=[...n.data].map((a,s)=>i.type._parseSync(new mo(n,a,n.path,s)));return Er.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new qi({...this._def,minLength:{value:t,message:dt.toString(n)}})}max(t,n){return new qi({...this._def,maxLength:{value:t,message:dt.toString(n)}})}length(t,n){return new qi({...this._def,exactLength:{value:t,message:dt.toString(n)}})}nonempty(t){return this.min(1,t)}}qi.create=(e,t)=>new qi({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Et.ZodArray,...Nt(t)});function Qu(e){if(e instanceof Pn){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=zo.create(Qu(r))}return new Pn({...e._def,shape:()=>t})}else return e instanceof qi?new qi({...e._def,type:Qu(e.element)}):e instanceof zo?zo.create(Qu(e.unwrap())):e instanceof Rs?Rs.create(Qu(e.unwrap())):e instanceof yo?yo.create(e.items.map(t=>Qu(t))):e}class Pn extends jt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=sn.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==Qe.object){const c=this._getOrReturnCtx(t);return tt(c,{code:Ne.invalid_type,expected:Qe.object,received:c.parsedType}),$t}const{status:r,ctx:i}=this._processInputParams(t),{shape:o,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof Bo&&this._def.unknownKeys==="strip"))for(const c in i.data)a.includes(c)||s.push(c);const l=[];for(const c of a){const d=o[c],p=i.data[c];l.push({key:{status:"valid",value:c},value:d._parse(new mo(i,p,i.path,c)),alwaysSet:c in i.data})}if(this._def.catchall instanceof Bo){const c=this._def.unknownKeys;if(c==="passthrough")for(const d of s)l.push({key:{status:"valid",value:d},value:{status:"valid",value:i.data[d]}});else if(c==="strict")s.length>0&&(tt(i,{code:Ne.unrecognized_keys,keys:s}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const d of s){const p=i.data[d];l.push({key:{status:"valid",value:d},value:c._parse(new mo(i,p,i.path,d)),alwaysSet:d in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const c=[];for(const d of l){const p=await d.key;c.push({key:p,value:await d.value,alwaysSet:d.alwaysSet})}return c}).then(c=>Er.mergeObjectSync(r,c)):Er.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return dt.errToObj,new Pn({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var i,o,a,s;const l=(a=(o=(i=this._def).errorMap)===null||o===void 0?void 0:o.call(i,n,r).message)!==null&&a!==void 0?a:r.defaultError;return n.code==="unrecognized_keys"?{message:(s=dt.errToObj(t).message)!==null&&s!==void 0?s:l}:{message:l}}}:{}})}strip(){return new Pn({...this._def,unknownKeys:"strip"})}passthrough(){return new Pn({...this._def,unknownKeys:"passthrough"})}extend(t){return new Pn({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Pn({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Et.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Pn({...this._def,catchall:t})}pick(t){const n={};return sn.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Pn({...this._def,shape:()=>n})}omit(t){const n={};return sn.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new Pn({...this._def,shape:()=>n})}deepPartial(){return Qu(this)}partial(t){const n={};return sn.objectKeys(this.shape).forEach(r=>{const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}),new Pn({...this._def,shape:()=>n})}required(t){const n={};return sn.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof zo;)o=o._def.innerType;n[r]=o}}),new Pn({...this._def,shape:()=>n})}keyof(){return tR(sn.objectKeys(this.shape))}}Pn.create=(e,t)=>new Pn({shape:()=>e,unknownKeys:"strip",catchall:Bo.create(),typeName:Et.ZodObject,...Nt(t)}),Pn.strictCreate=(e,t)=>new Pn({shape:()=>e,unknownKeys:"strict",catchall:Bo.create(),typeName:Et.ZodObject,...Nt(t)}),Pn.lazycreate=(e,t)=>new Pn({shape:e,unknownKeys:"strip",catchall:Bo.create(),typeName:Et.ZodObject,...Nt(t)});class Xc extends jt{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(o){for(const s of o)if(s.result.status==="valid")return s.result;for(const s of o)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const a=o.map(s=>new Li(s.ctx.common.issues));return tt(n,{code:Ne.invalid_union,unionErrors:a}),$t}if(n.common.async)return Promise.all(r.map(async o=>{const a={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:a}),ctx:a}})).then(i);{let o;const a=[];for(const l of r){const c={...n,common:{...n.common,issues:[]},parent:null},d=l._parseSync({data:n.data,path:n.path,parent:c});if(d.status==="valid")return d;d.status==="dirty"&&!o&&(o={result:d,ctx:c}),c.common.issues.length&&a.push(c.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const s=a.map(l=>new Li(l));return tt(n,{code:Ne.invalid_union,unionErrors:s}),$t}}get options(){return this._def.options}}Xc.create=(e,t)=>new Xc({options:e,typeName:Et.ZodUnion,...Nt(t)});const zh=e=>e instanceof tf?zh(e.schema):e instanceof Ui?zh(e.innerType()):e instanceof nf?[e.value]:e instanceof Oa?e.options:e instanceof rf?Object.keys(e.enum):e instanceof of?zh(e._def.innerType):e instanceof Yc?[void 0]:e instanceof Jc?[null]:null;class Zh extends jt{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Qe.object)return tt(n,{code:Ne.invalid_type,expected:Qe.object,received:n.parsedType}),$t;const r=this.discriminator,i=n.data[r],o=this.optionsMap.get(i);return o?n.common.async?o._parseAsync({data:n.data,path:n.path,parent:n}):o._parseSync({data:n.data,path:n.path,parent:n}):(tt(n,{code:Ne.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),$t)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const i=new Map;for(const o of n){const a=zh(o.shape[t]);if(!a)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const s of a){if(i.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);i.set(s,o)}}return new Zh({typeName:Et.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...Nt(r)})}}function k0(e,t){const n=Ea(e),r=Ea(t);if(e===t)return{valid:!0,data:e};if(n===Qe.object&&r===Qe.object){const i=sn.objectKeys(t),o=sn.objectKeys(e).filter(s=>i.indexOf(s)!==-1),a={...e,...t};for(const s of o){const l=k0(e[s],t[s]);if(!l.valid)return{valid:!1};a[s]=l.data}return{valid:!0,data:a}}else if(n===Qe.array&&r===Qe.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let o=0;o<e.length;o++){const a=e[o],s=t[o],l=k0(a,s);if(!l.valid)return{valid:!1};i.push(l.data)}return{valid:!0,data:i}}else return n===Qe.date&&r===Qe.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Qc extends jt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(o,a)=>{if(O0(o)||O0(a))return $t;const s=k0(o.value,a.value);return s.valid?((T0(o)||T0(a))&&n.dirty(),{status:n.value,value:s.data}):(tt(r,{code:Ne.invalid_intersection_types}),$t)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,a])=>i(o,a)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Qc.create=(e,t,n)=>new Qc({left:e,right:t,typeName:Et.ZodIntersection,...Nt(n)});class yo extends jt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Qe.array)return tt(r,{code:Ne.invalid_type,expected:Qe.array,received:r.parsedType}),$t;if(r.data.length<this._def.items.length)return tt(r,{code:Ne.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),$t;!this._def.rest&&r.data.length>this._def.items.length&&(tt(r,{code:Ne.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((a,s)=>{const l=this._def.items[s]||this._def.rest;return l?l._parse(new mo(r,a,r.path,s)):null}).filter(a=>!!a);return r.common.async?Promise.all(o).then(a=>Er.mergeArray(n,a)):Er.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new yo({...this._def,rest:t})}}yo.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new yo({items:e,typeName:Et.ZodTuple,rest:null,...Nt(t)})};class ef extends jt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Qe.object)return tt(r,{code:Ne.invalid_type,expected:Qe.object,received:r.parsedType}),$t;const i=[],o=this._def.keyType,a=this._def.valueType;for(const s in r.data)i.push({key:o._parse(new mo(r,s,r.path,s)),value:a._parse(new mo(r,r.data[s],r.path,s))});return r.common.async?Er.mergeObjectAsync(n,i):Er.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof jt?new ef({keyType:t,valueType:n,typeName:Et.ZodRecord,...Nt(r)}):new ef({keyType:Fi.create(),valueType:t,typeName:Et.ZodRecord,...Nt(n)})}}class Hh extends jt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Qe.map)return tt(r,{code:Ne.invalid_type,expected:Qe.map,received:r.parsedType}),$t;const i=this._def.keyType,o=this._def.valueType,a=[...r.data.entries()].map(([s,l],c)=>({key:i._parse(new mo(r,s,r.path,[c,"key"])),value:o._parse(new mo(r,l,r.path,[c,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const l of a){const c=await l.key,d=await l.value;if(c.status==="aborted"||d.status==="aborted")return $t;(c.status==="dirty"||d.status==="dirty")&&n.dirty(),s.set(c.value,d.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const l of a){const c=l.key,d=l.value;if(c.status==="aborted"||d.status==="aborted")return $t;(c.status==="dirty"||d.status==="dirty")&&n.dirty(),s.set(c.value,d.value)}return{status:n.value,value:s}}}}Hh.create=(e,t,n)=>new Hh({valueType:t,keyType:e,typeName:Et.ZodMap,...Nt(n)});class Ps extends jt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Qe.set)return tt(r,{code:Ne.invalid_type,expected:Qe.set,received:r.parsedType}),$t;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(tt(r,{code:Ne.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&r.data.size>i.maxSize.value&&(tt(r,{code:Ne.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const o=this._def.valueType;function a(l){const c=new Set;for(const d of l){if(d.status==="aborted")return $t;d.status==="dirty"&&n.dirty(),c.add(d.value)}return{status:n.value,value:c}}const s=[...r.data.values()].map((l,c)=>o._parse(new mo(r,l,r.path,c)));return r.common.async?Promise.all(s).then(l=>a(l)):a(s)}min(t,n){return new Ps({...this._def,minSize:{value:t,message:dt.toString(n)}})}max(t,n){return new Ps({...this._def,maxSize:{value:t,message:dt.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Ps.create=(e,t)=>new Ps({valueType:e,minSize:null,maxSize:null,typeName:Et.ZodSet,...Nt(t)});class el extends jt{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Qe.function)return tt(n,{code:Ne.invalid_type,expected:Qe.function,received:n.parsedType}),$t;function r(s,l){return Fh({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Lh(),Vc].filter(c=>!!c),issueData:{code:Ne.invalid_arguments,argumentsError:l}})}function i(s,l){return Fh({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Lh(),Vc].filter(c=>!!c),issueData:{code:Ne.invalid_return_type,returnTypeError:l}})}const o={errorMap:n.common.contextualErrorMap},a=n.data;if(this._def.returns instanceof tl){const s=this;return jr(async function(...l){const c=new Li([]),d=await s._def.args.parseAsync(l,o).catch(h=>{throw c.addIssue(r(l,h)),c}),p=await Reflect.apply(a,this,d);return await s._def.returns._def.type.parseAsync(p,o).catch(h=>{throw c.addIssue(i(p,h)),c})})}else{const s=this;return jr(function(...l){const c=s._def.args.safeParse(l,o);if(!c.success)throw new Li([r(l,c.error)]);const d=Reflect.apply(a,this,c.data),p=s._def.returns.safeParse(d,o);if(!p.success)throw new Li([i(d,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new el({...this._def,args:yo.create(t).rest(Is.create())})}returns(t){return new el({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new el({args:t||yo.create([]).rest(Is.create()),returns:n||Is.create(),typeName:Et.ZodFunction,...Nt(r)})}}class tf extends jt{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}tf.create=(e,t)=>new tf({getter:e,typeName:Et.ZodLazy,...Nt(t)});class nf extends jt{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return tt(n,{received:n.data,code:Ne.invalid_literal,expected:this._def.value}),$t}return{status:"valid",value:t.data}}get value(){return this._def.value}}nf.create=(e,t)=>new nf({value:e,typeName:Et.ZodLiteral,...Nt(t)});function tR(e,t){return new Oa({values:e,typeName:Et.ZodEnum,...Nt(t)})}class Oa extends jt{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return tt(n,{expected:sn.joinValues(r),received:n.parsedType,code:Ne.invalid_type}),$t}if(this._def.values.indexOf(t.data)===-1){const n=this._getOrReturnCtx(t),r=this._def.values;return tt(n,{received:n.data,code:Ne.invalid_enum_value,options:r}),$t}return jr(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t){return Oa.create(t)}exclude(t){return Oa.create(this.options.filter(n=>!t.includes(n)))}}Oa.create=tR;class rf extends jt{_parse(t){const n=sn.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Qe.string&&r.parsedType!==Qe.number){const i=sn.objectValues(n);return tt(r,{expected:sn.joinValues(i),received:r.parsedType,code:Ne.invalid_type}),$t}if(n.indexOf(t.data)===-1){const i=sn.objectValues(n);return tt(r,{received:r.data,code:Ne.invalid_enum_value,options:i}),$t}return jr(t.data)}get enum(){return this._def.values}}rf.create=(e,t)=>new rf({values:e,typeName:Et.ZodNativeEnum,...Nt(t)});class tl extends jt{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Qe.promise&&n.common.async===!1)return tt(n,{code:Ne.invalid_type,expected:Qe.promise,received:n.parsedType}),$t;const r=n.parsedType===Qe.promise?n.data:Promise.resolve(n.data);return jr(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}tl.create=(e,t)=>new tl({type:e,typeName:Et.ZodPromise,...Nt(t)});class Ui extends jt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Et.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,o={addIssue:a=>{tt(r,a),a.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),i.type==="preprocess"){const a=i.transform(r.data,o);return r.common.issues.length?{status:"dirty",value:r.data}:r.common.async?Promise.resolve(a).then(s=>this._def.schema._parseAsync({data:s,path:r.path,parent:r})):this._def.schema._parseSync({data:a,path:r.path,parent:r})}if(i.type==="refinement"){const a=s=>{const l=i.refinement(s,o);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?$t:(s.status==="dirty"&&n.dirty(),a(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>s.status==="aborted"?$t:(s.status==="dirty"&&n.dirty(),a(s.value).then(()=>({status:n.value,value:s.value}))))}if(i.type==="transform")if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Kc(a))return a;const s=i.transform(a.value,o);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>Kc(a)?Promise.resolve(i.transform(a.value,o)).then(s=>({status:n.value,value:s})):a);sn.assertNever(i)}}Ui.create=(e,t,n)=>new Ui({schema:e,typeName:Et.ZodEffects,effect:t,...Nt(n)}),Ui.createWithPreprocess=(e,t,n)=>new Ui({schema:t,effect:{type:"preprocess",transform:e},typeName:Et.ZodEffects,...Nt(n)});class zo extends jt{_parse(t){return this._getType(t)===Qe.undefined?jr(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}zo.create=(e,t)=>new zo({innerType:e,typeName:Et.ZodOptional,...Nt(t)});class Rs extends jt{_parse(t){return this._getType(t)===Qe.null?jr(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Rs.create=(e,t)=>new Rs({innerType:e,typeName:Et.ZodNullable,...Nt(t)});class of extends jt{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Qe.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}of.create=(e,t)=>new of({innerType:e,typeName:Et.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Nt(t)});class Wh extends jt{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return qh(i)?i.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Li(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Li(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Wh.create=(e,t)=>new Wh({innerType:e,typeName:Et.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Nt(t)});class Vh extends jt{_parse(t){if(this._getType(t)!==Qe.nan){const r=this._getOrReturnCtx(t);return tt(r,{code:Ne.invalid_type,expected:Qe.nan,received:r.parsedType}),$t}return{status:"valid",value:t.data}}}Vh.create=e=>new Vh({typeName:Et.ZodNaN,...Nt(e)});const zme=Symbol("zod_brand");class nR extends jt{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class af extends jt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?$t:o.status==="dirty"?(n.dirty(),QP(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?$t:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new af({in:t,out:n,typeName:Et.ZodPipeline})}}class Kh extends jt{_parse(t){const n=this._def.innerType._parse(t);return Kc(n)&&(n.value=Object.freeze(n.value)),n}}Kh.create=(e,t)=>new Kh({innerType:e,typeName:Et.ZodReadonly,...Nt(t)});const rR=(e,t={},n)=>e?Xu.create().superRefine((r,i)=>{var o,a;if(!e(r)){const s=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,l=(a=(o=s.fatal)!==null&&o!==void 0?o:n)!==null&&a!==void 0?a:!0,c=typeof s=="string"?{message:s}:s;i.addIssue({code:"custom",...c,fatal:l})}}):Xu.create(),Zme={object:Pn.lazycreate};var Et;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Et||(Et={}));const Hme=(e,t={message:`Input not instance of ${e.name}`})=>rR(n=>n instanceof e,t),iR=Fi.create,oR=Aa.create,Wme=Vh.create,Vme=Ca.create,aR=Gc.create,Kme=ks.create,Gme=Uh.create,Yme=Yc.create,Jme=Jc.create,Xme=Xu.create,Qme=Is.create,eye=Bo.create,tye=Bh.create,nye=qi.create,rye=Pn.create,iye=Pn.strictCreate,oye=Xc.create,aye=Zh.create,sye=Qc.create,uye=yo.create,lye=ef.create,cye=Hh.create,fye=Ps.create,dye=el.create,pye=tf.create,hye=nf.create,mye=Oa.create,yye=rf.create,gye=tl.create,sR=Ui.create,vye=zo.create,bye=Rs.create,_ye=Ui.createWithPreprocess,wye=af.create;var oe=Object.freeze({__proto__:null,defaultErrorMap:Vc,setErrorMap:kme,getErrorMap:Lh,makeIssue:Fh,EMPTY_PATH:Ime,addIssueToContext:tt,ParseStatus:Er,INVALID:$t,DIRTY:QP,OK:jr,isAborted:O0,isDirty:T0,isValid:Kc,isAsync:qh,get util(){return sn},get objectUtil(){return C0},ZodParsedType:Qe,getParsedType:Ea,ZodType:jt,ZodString:Fi,ZodNumber:Aa,ZodBigInt:Ca,ZodBoolean:Gc,ZodDate:ks,ZodSymbol:Uh,ZodUndefined:Yc,ZodNull:Jc,ZodAny:Xu,ZodUnknown:Is,ZodNever:Bo,ZodVoid:Bh,ZodArray:qi,ZodObject:Pn,ZodUnion:Xc,ZodDiscriminatedUnion:Zh,ZodIntersection:Qc,ZodTuple:yo,ZodRecord:ef,ZodMap:Hh,ZodSet:Ps,ZodFunction:el,ZodLazy:tf,ZodLiteral:nf,ZodEnum:Oa,ZodNativeEnum:rf,ZodPromise:tl,ZodEffects:Ui,ZodTransformer:Ui,ZodOptional:zo,ZodNullable:Rs,ZodDefault:of,ZodCatch:Wh,ZodNaN:Vh,BRAND:zme,ZodBranded:nR,ZodPipeline:af,ZodReadonly:Kh,custom:rR,Schema:jt,ZodSchema:jt,late:Zme,get ZodFirstPartyTypeKind(){return Et},coerce:{string:e=>Fi.create({...e,coerce:!0}),number:e=>Aa.create({...e,coerce:!0}),boolean:e=>Gc.create({...e,coerce:!0}),bigint:e=>Ca.create({...e,coerce:!0}),date:e=>ks.create({...e,coerce:!0})},any:Xme,array:nye,bigint:Vme,boolean:aR,date:Kme,discriminatedUnion:aye,effect:sR,enum:mye,function:dye,instanceof:Hme,intersection:sye,lazy:pye,literal:hye,map:cye,nan:Wme,nativeEnum:yye,never:eye,null:Jme,nullable:bye,number:oR,object:rye,oboolean:()=>aR().optional(),onumber:()=>oR().optional(),optional:vye,ostring:()=>iR().optional(),pipeline:wye,preprocess:_ye,promise:gye,record:lye,set:fye,strictObject:iye,string:iR,symbol:Gme,transformer:sR,tuple:uye,undefined:Yme,union:oye,unknown:Qme,void:tye,NEVER:$t,ZodIssueCode:Ne,quotelessJson:$me,ZodError:Li});const xye=oe.object({type:oe.literal("message_created"),data:oe.object({id:oe.string(),createdAt:oe.string().datetime(),payload:oe.union([oe.object({audioUrl:oe.string().min(1),className:oe.string().describe("CSS className to apply to the message").optional(),type:oe.literal("audio")}),oe.object({title:oe.string().min(1),subtitle:oe.string().optional(),imageUrl:oe.string().optional(),actions:oe.array(oe.object({action:oe.enum(["postback","url","say"]),label:oe.string().min(1),value:oe.string().min(1)})),type:oe.literal("card"),className:oe.string().describe("CSS className to apply to the message").optional()}),oe.object({items:oe.array(oe.object({title:oe.string().min(1),subtitle:oe.string().optional(),imageUrl:oe.string().optional(),actions:oe.array(oe.object({action:oe.enum(["postback","url","say"]),label:oe.string().min(1),value:oe.string().min(1)})),className:oe.string().describe("CSS className to apply to the message").optional()})),className:oe.string().describe("CSS className to apply to the message").optional(),type:oe.literal("carousel")}),oe.object({text:oe.string(),options:oe.array(oe.object({label:oe.string().min(1),value:oe.string().min(1)})),className:oe.string().describe("CSS className to apply to the message").optional(),type:oe.literal("choice"),disableFreeText:oe.boolean().optional()}),oe.object({text:oe.string(),options:oe.array(oe.object({label:oe.string().min(1),value:oe.string().min(1)})),className:oe.string().describe("CSS className to apply to the message").optional(),type:oe.literal("dropdown")}),oe.object({fileUrl:oe.string().min(1),title:oe.string().min(1).optional(),className:oe.string().describe("CSS className to apply to the message").optional(),type:oe.literal("file")}),oe.object({imageUrl:oe.string().min(1),className:oe.string().describe("CSS className to apply to the message").optional(),type:oe.literal("image")}),oe.object({latitude:oe.number(),longitude:oe.number(),address:oe.string().optional(),title:oe.string().optional(),className:oe.string().describe("CSS className to apply to the message").optional(),type:oe.literal("location")}),oe.object({markdown:oe.string().min(1),className:oe.string().describe("CSS className to apply to the message").optional(),type:oe.literal("markdown")}),oe.object({text:oe.string().min(1),className:oe.string().describe("CSS className to apply to the message").optional(),type:oe.literal("text")}),oe.object({videoUrl:oe.string().min(1),className:oe.string().describe("CSS className to apply to the message").optional(),type:oe.literal("video")})]),userId:oe.string(),conversationId:oe.string()})}),Sye=oe.object({type:oe.literal("webchat_visibility"),data:oe.object({visibility:oe.enum(["show","hide","toggle"])})}),Eye=oe.object({type:oe.literal("webchat_config"),data:oe.object({config:oe.record(oe.any())})}),Aye=oe.object({type:oe.literal("custom"),data:oe.object({event:oe.record(oe.any())})}),Cye={messageCreated:xye,webchatVisibility:Sye,webchatConfig:Eye,custom:Aye},uR="unknown error",fy=class fy extends JP{constructor(n){super();R(this,"_state",{status:"disconnected"});R(this,"connect",async()=>{if(this._state.status==="connected")return;if(this._state.status==="connecting"){await this._state.connectionPromise;return}const n=this._connect();this._state={status:"connecting",connectionPromise:n},await n});R(this,"disconnect",async()=>{if(this._state.status==="disconnected")return;let n;this._state.status==="connecting"?n=await this._state.connectionPromise:n=this._state.source,this._disconnectSync(n)});R(this,"_connect",async()=>{const n=await Tme(`${this._props.url}/conversations/${this._props.conversationId}/listen`,{headers:{"x-user-key":this._props.userKey}});return n.on("message",this._handleMessage),n.on("error",this._handleError(n)),this._state={status:"connected",source:n},n});R(this,"_disconnectSync",n=>{n.close(),this._state={status:"disconnected"}});R(this,"_handleMessage",n=>{const r=this._parseSignal(n.data);this.emit(r.type,r.data)});R(this,"_handleError",n=>r=>{this._disconnectSync(n);const i=this._toError(r);this.emit("error",i)});R(this,"_parseSignal",n=>{for(const r of Object.values(Cye)){const i=this._safeJsonParse(n),o=r.safeParse(i);if(o.success)return o.data}return{type:"unknown",data:n}});R(this,"_safeJsonParse",n=>{try{return JSON.parse(n)}catch{return n}});R(this,"_toError",n=>{if(n instanceof Error)return n;if(typeof n=="string")return new Error(n);if(n===null)return new Error(uR);if(typeof n=="object"&&"message"in n)return this._toError(n.message);try{const r=JSON.stringify(n);return new Error(r)}catch{return new Error(uR)}});this._props=n}get status(){return this._state.status}};R(fy,"listen",async n=>{const r=new fy(n);return await r.connect(),r});let I0=fy;const lR=100*1024*1024,Oye=lR,Tye=lR,$ye=6e4;class kye{constructor(t){R(this,"_auto");R(this,"createConversation",t=>this._auto.createConversation(t));R(this,"getConversation",t=>this._auto.getConversation(t));R(this,"deleteConversation",t=>this._auto.deleteConversation(t));R(this,"listConversations",t=>this._auto.listConversations(t));R(this,"listConversationMessages",t=>this._auto.listConversationMessages(t));R(this,"addParticipant",t=>this._auto.addParticipant(t));R(this,"removeParticipant",t=>this._auto.removeParticipant(t));R(this,"getParticipant",t=>this._auto.getParticipant(t));R(this,"listParticipants",t=>this._auto.listParticipants(t));R(this,"createMessage",t=>this._auto.createMessage(t));R(this,"getMessage",t=>this._auto.getMessage(t));R(this,"deleteMessage",t=>this._auto.deleteMessage(t));R(this,"createFile",t=>this._auto.createFile(t));R(this,"createUser",t=>this._auto.createUser(t));R(this,"getUser",t=>this._auto.getUser(t));R(this,"updateUser",t=>this._auto.updateUser(t));R(this,"deleteUser",t=>this._auto.deleteUser(t));R(this,"createEvent",t=>this._auto.createEvent(t));R(this,"getEvent",t=>this._auto.getEvent(t));R(this,"listenConversation",async({id:t,"x-user-key":n})=>await I0.listen({url:this.props.apiUrl,conversationId:t,userKey:n}));this.props=t;const{apiUrl:n}=t,r={...t.headers},i=t.timeout??$ye,o=mP.create({baseURL:n,headers:r,withCredentials:!0,timeout:i,maxBodyLength:Oye,maxContentLength:Tye});this._auto=new Eme(o)}}const Gh={disconnected:0,user_creating:1,user_created:2,conversation_creating:3,conversation_created:4},Kr=(e,t)=>e.status===t,go=(e,t)=>Gh[e.status]<Gh[t],cR=(e,t)=>Gh[e.status]>=Gh[t];class vo extends Error{constructor(t){super(`Unexpected state: ${t.status}`),this.state=t}}const fR=["audio","file","image","video"],dR=e=>fR.includes(e);class Iye extends ig{constructor(n){super();R(this,"_client");R(this,"_webhookId");R(this,"_apiUrl");R(this,"_state",{status:"disconnected"});R(this,"mode","pushpin");R(this,"_initialConnect",async n=>{if(cR(this._state,"user_created"))throw new Error("Client is already connected. Please disconnect first.");if(Kr(this._state,"user_creating"))return;this._state={status:"user_creating"};const{user:{id:r},key:i}=await this._client.createUser({name:void 0,pictureUrl:void 0,userData:n});return this._state={status:"user_created",userId:r,userKey:i},{userId:r,userToken:i}});R(this,"_reConnect",async(n,r)=>{if(cR(this._state,"user_created")){if(this._state.userId!==n.userId)throw new Error("Client is already connected. Please disconnect first.");return n}return Kr(this._state,"user_creating")||(this._state={status:"user_created",userId:n.userId,userKey:n.userToken},await this._client.updateUser({"x-user-key":n.userToken,name:void 0,pictureUrl:void 0,userData:r})),n});R(this,"_mapMessage",n=>{const{payload:r,disableInput:i}=Cfe(n.payload);return{id:n.id,conversationId:n.conversationId,authorId:n.userId,sentOn:new Date(n.createdAt),payload:r,disableInput:i}});const r=`${n.apiUrl}/${n.clientId}`;this._webhookId=n.clientId,this._apiUrl=r,this._client=new kye({apiUrl:r})}get apiUrl(){return this._apiUrl}get clientId(){return this._webhookId}get userId(){if(!go(this._state,"user_created"))return this._state.userId}async getUser(){if(go(this._state,"user_created"))throw new vo(this._state);const{user:n}=await this._client.getUser({"x-user-key":this._state.userKey});return{data:n.data}}async updateUser(n){if(go(this._state,"user_created"))throw new vo(this._state);const{user:r}=await this._client.updateUser({"x-user-key":this._state.userKey,userData:n.data});return r}get conversationId(){if(!go(this._state,"conversation_created"))return this._state.conversationId}async connect(n,r){return n?await this.userExists(n)?this._reConnect(n,r):this._initialConnect(r):this._initialConnect(r)}async disconnect(){Kr(this._state,"conversation_created")?this._state.signalEmitter.cleanup():Kr(this._state,"conversation_creating")&&console.warn("zombie conversation..."),this._state={status:"disconnected"}}async sendFile(n){if(go(this._state,"user_created"))throw new vo(this._state);if(Kr(this._state,"conversation_creating"))throw new vo(this._state);let r;Kr(this._state,"conversation_created")?r=this._state:(this._state={status:"conversation_creating",userId:this._state.userId,userKey:this._state.userKey},r=await this._createNewConversation(this._state));const{size:i,name:o}=n,s=await(y=>new Promise((v,w)=>{const _=new FileReader;_.onload=b=>{var S;return v((S=b.target)==null?void 0:S.result)},_.onerror=b=>{var S;return w((S=b.target)==null?void 0:S.error)},_.readAsArrayBuffer(y)}))(n),{file:{uploadUrl:l,contentType:c,url:d}}=await this._client.createFile({"x-user-key":r.userKey,size:i,key:o,accessPolicies:["public_content"],index:!1});await fetch(l,{method:"PUT",body:s});const p=c.split("/").shift()??"",m=dR(p)?p:"file",h=m==="image"?{type:m,imageUrl:d}:m==="audio"?{type:m,audioUrl:d}:m==="video"?{type:m,videoUrl:d}:{type:m,fileUrl:d};return await this._client.createMessage({"x-user-key":r.userKey,conversationId:r.conversationId,payload:h}),this.emit("messageSent",d),{fileUrl:d,name:o,type:m}}async sendMessage(n){if(go(this._state,"user_created"))throw new vo(this._state);if(Kr(this._state,"conversation_creating"))throw new vo(this._state);let r;Kr(this._state,"conversation_created")?r=this._state:(this._state={status:"conversation_creating",userId:this._state.userId,userKey:this._state.userKey},r=await this._createNewConversation(this._state)),await this._client.createMessage({"x-user-key":r.userKey,conversationId:r.conversationId,payload:{type:"text",text:n}}),this.emit("messageSent",n)}async sendEvent(n){if(go(this._state,"user_created"))throw new vo(this._state);if(Kr(this._state,"conversation_creating"))throw new vo(this._state);let r;Kr(this._state,"conversation_created")?r=this._state:(this._state={status:"conversation_creating",userId:this._state.userId,userKey:this._state.userKey},r=await this._createNewConversation(this._state)),await this._client.createEvent({"x-user-key":r.userKey,conversationId:r.conversationId,payload:{type:"custom",data:n}})}async switchConversation(n){if(go(this._state,"user_created"))throw new vo(this._state);Kr(this._state,"conversation_created")&&this._state.conversationId===n||Kr(this._state,"conversation_creating")||(this._state={status:"conversation_creating",userId:this._state.userId,userKey:this._state.userKey},await this._connectConversation(this._state,n))}async conversationExists(n){if(go(this._state,"user_created"))return!1;try{return await this._client.getConversation({"x-user-key":this._state.userKey,id:n}),!0}catch(r){if(t0(r)&&r.code===404)return!1;throw r}}async userExists({userToken:n}){try{return await this._client.getUser({"x-user-key":n}),!0}catch(r){const i=o=>o.code===404||o.code===401;if(t0(r)&&i(r))return!1;throw r}}async newConversation(){if(go(this._state,"user_created"))throw new vo(this._state);Kr(this._state,"conversation_creating")||(this._state={status:"conversation_creating",userId:this._state.userId,userKey:this._state.userKey},await this._createNewConversation(this._state))}async _createNewConversation(n){const{conversation:{id:r}}=await this._client.createConversation({"x-user-key":n.userKey}),i=await this._connectConversation(n,r);return await this._client.createEvent({"x-user-key":n.userKey,conversationId:r,payload:{type:"conversation_started",data:{}}}),i}async listMessages(){if(!Kr(this._state,"conversation_created"))return[];const{conversationId:n,userKey:r}=this._state,i=[];let o;do{const a=await this._client.listConversationMessages({id:n,"x-user-key":r,nextToken:o});i.push(...a.messages),o=a.meta.nextToken}while(o);return i.map(this._mapMessage)}async _connectConversation(n,r){const i=await this._client.listenConversation({id:r,"x-user-key":n.userKey});return i.on("unknown",o=>{typeof o=="string"&&o==="ping"||console.debug("unknown event",o)}),i.on("message_created",o=>{o.userId!==n.userId&&this.emit("message",this._mapMessage(o))}),i.on("error",()=>{this._state={status:"user_created",userId:n.userId,userKey:n.userKey},this.emit("error",new Error("Connection to conversation lost"))}),i.on("webchat_visibility",o=>{this.emit("webchatVisibility",o.visibility)}),i.on("webchat_config",o=>{this.emit("webchatConfig",o.config)}),i.on("custom",o=>{this.emit("customEvent",o.event)}),this.emit("conversation",r),this._state={status:"conversation_created",userId:n.userId,userKey:n.userKey,conversationId:r,signalEmitter:i},this._state}}const pR=({clientId:e,apiUrl:t="https://webchat.botpress.cloud",mode:n="pushpin"})=>n==="messaging"?new Ofe({url:t,clientId:e}):new Iye({apiUrl:t,clientId:e}),Pye=({clientId:e,apiUrl:t="https://webchat.botpress.cloud",mode:n="pushpin"})=>{const[r]=C.useState(pR({clientId:e,apiUrl:t,mode:n}));return r};function Rye(e,t){const n=t?`The ${t} has been copied to your clipboard.`:"Copied to clipboard.";return navigator.clipboard.writeText(e).then(()=>Gge({title:n,type:"success"}))}const Nye=(e,t={})=>new Promise((n,r)=>{if(typeof window>"u")return r("Window is not defined");if(!e)return r("Url is not defined");let i=null;const o=new Image;o.addEventListener("load",()=>{i&&clearTimeout(i),n({width:o.naturalWidth,height:o.naturalHeight})}),o.addEventListener("error",a=>{i&&clearTimeout(i),r(`${a.type}: ${a.message}`)}),o.src=e,t.timeout&&(i=setTimeout(()=>r("Timeout"),t.timeout))});let Dye={data:""},Mye=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Dye,jye=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Lye=/\/\*[^]*?\*\/| +/g,hR=/\n+/g,Ta=(e,t)=>{let n="",r="",i="";for(let o in e){let a=e[o];o[0]=="@"?o[1]=="i"?n=o+" "+a+";":r+=o[1]=="f"?Ta(a,o):o+"{"+Ta(a,o[1]=="k"?"":t)+"}":typeof a=="object"?r+=Ta(a,t?t.replace(/([^,])+/g,s=>o.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,s):s?s+" "+l:l)):o):a!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Ta.p?Ta.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},Zo={},mR=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+mR(e[n]);return t}return e},Fye=(e,t,n,r,i)=>{let o=mR(e),a=Zo[o]||(Zo[o]=(l=>{let c=0,d=11;for(;c<l.length;)d=101*d+l.charCodeAt(c++)>>>0;return"go"+d})(o));if(!Zo[a]){let l=o!==e?e:(c=>{let d,p,m=[{}];for(;d=jye.exec(c.replace(Lye,""));)d[4]?m.shift():d[3]?(p=d[3].replace(hR," ").trim(),m.unshift(m[0][p]=m[0][p]||{})):m[0][d[1]]=d[2].replace(hR," ").trim();return m[0]})(e);Zo[a]=Ta(i?{["@keyframes "+a]:l}:l,n?"":"."+a)}let s=n&&Zo.g?Zo.g:null;return n&&(Zo.g=Zo[a]),((l,c,d,p)=>{p?c.data=c.data.replace(p,l):c.data.indexOf(l)===-1&&(c.data=d?l+c.data:c.data+l)})(Zo[a],t,r,s),a},qye=(e,t,n)=>e.reduce((r,i,o)=>{let a=t[o];if(a&&a.call){let s=a(n),l=s&&s.props&&s.props.className||/^go/.test(s)&&s;a=l?"."+l:s&&typeof s=="object"?s.props?"":Ta(s,""):s===!1?"":s}return r+i+(a??"")},"");function Yh(e){let t=this||{},n=e.call?e(t.p):e;return Fye(n.unshift?n.raw?qye(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,Mye(t.target),t.g,t.o,t.k)}let yR,P0,R0;Yh.bind({g:1});let Ho=Yh.bind({k:1});function Uye(e,t,n,r){Ta.p=t,yR=e,P0=n,R0=r}function $a(e,t){let n=this||{};return function(){let r=arguments;function i(o,a){let s=Object.assign({},o),l=s.className||i.className;n.p=Object.assign({theme:P0&&P0()},s),n.o=/ *go\d+/.test(l),s.className=Yh.apply(n,r)+(l?" "+l:""),t&&(s.ref=a);let c=e;return e[0]&&(c=s.as||e,delete s.as),R0&&c[0]&&R0(s),yR(c,s)}return t?t(i):i}}var Bye=e=>typeof e=="function",Jh=(e,t)=>Bye(e)?e(t):e,zye=(()=>{let e=0;return()=>(++e).toString()})(),gR=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Zye=20,Xh=new Map,Hye=1e3,vR=e=>{if(Xh.has(e))return;let t=setTimeout(()=>{Xh.delete(e),Ns({type:4,toastId:e})},Hye);Xh.set(e,t)},Wye=e=>{let t=Xh.get(e);t&&clearTimeout(t)},N0=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,Zye)};case 1:return t.toast.id&&Wye(t.toast.id),{...e,toasts:e.toasts.map(o=>o.id===t.toast.id?{...o,...t.toast}:o)};case 2:let{toast:n}=t;return e.toasts.find(o=>o.id===n.id)?N0(e,{type:1,toast:n}):N0(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?vR(r):e.toasts.forEach(o=>{vR(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===r||r===void 0?{...o,visible:!1}:o)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(o=>o.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(o=>({...o,pauseDuration:o.pauseDuration+i}))}}},Qh=[],em={toasts:[],pausedAt:void 0},Ns=e=>{em=N0(em,e),Qh.forEach(t=>{t(em)})},Vye={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Kye=(e={})=>{let[t,n]=C.useState(em);C.useEffect(()=>(Qh.push(n),()=>{let i=Qh.indexOf(n);i>-1&&Qh.splice(i,1)}),[t]);let r=t.toasts.map(i=>{var o,a;return{...e,...e[i.type],...i,duration:i.duration||((o=e[i.type])==null?void 0:o.duration)||(e==null?void 0:e.duration)||Vye[i.type],style:{...e.style,...(a=e[i.type])==null?void 0:a.style,...i.style}}});return{...t,toasts:r}},Gye=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||zye()}),sf=e=>(t,n)=>{let r=Gye(t,e,n);return Ns({type:2,toast:r}),r.id},Gr=(e,t)=>sf("blank")(e,t);Gr.error=sf("error"),Gr.success=sf("success"),Gr.loading=sf("loading"),Gr.custom=sf("custom"),Gr.dismiss=e=>{Ns({type:3,toastId:e})},Gr.remove=e=>Ns({type:4,toastId:e}),Gr.promise=(e,t,n)=>{let r=Gr.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(i=>(Gr.success(Jh(t.success,i),{id:r,...n,...n==null?void 0:n.success}),i)).catch(i=>{Gr.error(Jh(t.error,i),{id:r,...n,...n==null?void 0:n.error})}),e};var Yye=(e,t)=>{Ns({type:1,toast:{id:e,height:t}})},Jye=()=>{Ns({type:5,time:Date.now()})},Xye=e=>{let{toasts:t,pausedAt:n}=Kye(e);C.useEffect(()=>{if(n)return;let o=Date.now(),a=t.map(s=>{if(s.duration===1/0)return;let l=(s.duration||0)+s.pauseDuration-(o-s.createdAt);if(l<0){s.visible&&Gr.dismiss(s.id);return}return setTimeout(()=>Gr.dismiss(s.id),l)});return()=>{a.forEach(s=>s&&clearTimeout(s))}},[t,n]);let r=C.useCallback(()=>{n&&Ns({type:6,time:Date.now()})},[n]),i=C.useCallback((o,a)=>{let{reverseOrder:s=!1,gutter:l=8,defaultPosition:c}=a||{},d=t.filter(h=>(h.position||c)===(o.position||c)&&h.height),p=d.findIndex(h=>h.id===o.id),m=d.filter((h,y)=>y<p&&h.visible).length;return d.filter(h=>h.visible).slice(...s?[m+1]:[0,m]).reduce((h,y)=>h+(y.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:Yye,startPause:Jye,endPause:r,calculateOffset:i}}},Qye=Ho`
|
|
204
204
|
from {
|
|
205
205
|
transform: scale(0) rotate(45deg);
|
|
206
206
|
opacity: 0;
|
|
@@ -501,4 +501,4 @@ Parsed value is empty`);return a}catch(a){throw!a&&t.continueOnError?new qs.Unma
|
|
|
501
501
|
`:""}mM.dump=gAe;var DM=W_,vAe=mM;function sw(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}Tr.Type=Lr,Tr.Schema=ND,Tr.FAILSAFE_SCHEMA=LD,Tr.JSON_SCHEMA=ZD,Tr.CORE_SCHEMA=HD,Tr.DEFAULT_SCHEMA=X_,Tr.load=DM.load,Tr.loadAll=DM.loadAll,Tr.dump=vAe.dump,Tr.YAMLException=Af,Tr.types={binary:YD,float:zD,map:jD,null:FD,pairs:XD,set:QD,timestamp:KD,bool:qD,int:UD,merge:GD,omap:JD,seq:MD,str:DD},Tr.safeLoad=sw("safeLoad","load"),Tr.safeLoadAll=sw("safeLoadAll","loadAll"),Tr.safeDump=sw("safeDump","dump");var bAe=se&&se.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(H_,"__esModule",{value:!0});const _Ae=tn,wAe=bAe(Tr),xAe=Tr;H_.default={order:200,allowEmpty:!0,canParse:[".yaml",".yml",".json"],async parse(e){let t=e.data;if(Buffer.isBuffer(t)&&(t=t.toString()),typeof t=="string")try{return wAe.default.load(t,{schema:xAe.JSON_SCHEMA})}catch(n){throw new _Ae.ParserError((n==null?void 0:n.message)||"Parser Error",e.url)}else return t}};var uw={};Object.defineProperty(uw,"__esModule",{value:!0});const SAe=tn,EAe=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;uw.default={order:300,allowEmpty:!0,encoding:"utf8",canParse(e){return(typeof e.data=="string"||Buffer.isBuffer(e.data))&&EAe.test(e.url)},parse(e){if(typeof e.data=="string")return e.data;if(Buffer.isBuffer(e.data))return e.data.toString(this.encoding);throw new SAe.ParserError("data is not text",e.url)}};var lw={};Object.defineProperty(lw,"__esModule",{value:!0});const AAe=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;lw.default={order:400,allowEmpty:!0,canParse(e){return Buffer.isBuffer(e.data)&&AAe.test(e.url)},parse(e){return Buffer.isBuffer(e.data)?e.data:Buffer.from(e.data)}};var cw={},CAe=se&&se.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),OAe=se&&se.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),TAe=se&&se.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&CAe(t,e,n);return OAe(t,e),t},$Ae=se&&se.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cw,"__esModule",{value:!0});const kAe=$Ae(As),MM=Fs,jM=TAe(Lt),LM=tn;cw.default={order:100,canRead(e){return jM.isFileSystemPath(e.url)},async read(e){let t;try{t=jM.toFileSystemPath(e.url)}catch(n){throw new LM.ResolverError(MM.ono.uri(n,`Malformed URI: ${e.url}`),e.url)}try{return await kAe.default.promises.readFile(t)}catch(n){throw new LM.ResolverError((0,MM.ono)(n,`Error opening file "${t}"`),t)}}};var fw={},IAe=se&&se.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),PAe=se&&se.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),RAe=se&&se.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&IAe(t,e,n);return PAe(t,e),t};Object.defineProperty(fw,"__esModule",{value:!0});const uy=Fs,Rf=RAe(Lt),FM=tn;fw.default={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:!1,canRead(e){return Rf.isHttp(e.url)},read(e){const t=Rf.parse(e.url);return typeof window<"u"&&!t.protocol&&(t.protocol=Rf.parse(location.href).protocol),qM(t,this)}};async function qM(e,t,n){e=Rf.parse(e);const r=n||[];r.push(e.href);try{const i=await NAe(e,t);if(i.status>=400)throw(0,uy.ono)({status:i.status},`HTTP ERROR ${i.status}`);if(i.status>=300){if(!Number.isNaN(t.redirects)&&r.length>t.redirects)throw new FM.ResolverError((0,uy.ono)({status:i.status},`Error downloading ${r[0]}.
|
|
502
502
|
Too many redirects:
|
|
503
503
|
${r.join(`
|
|
504
|
-
`)}`));if(!("location"in i.headers)||!i.headers.location)throw(0,uy.ono)({status:i.status},`HTTP ${i.status} redirect with no location header`);{const o=Rf.resolve(e.href,i.headers.location);return qM(o,t,r)}}else{if(i.body){const o=await i.arrayBuffer();return Buffer.from(o)}return Buffer.alloc(0)}}catch(i){throw new FM.ResolverError((0,uy.ono)(i,`Error downloading ${e.href}`),e.href)}}async function NAe(e,t){let n,r;t.timeout&&(n=new AbortController,r=setTimeout(()=>n.abort(),t.timeout));const i=await fetch(e,{method:"GET",headers:t.headers||{},credentials:t.withCredentials?"include":"same-origin",signal:n?n.signal:null});return r&&clearTimeout(r),i}(function(e){var t=se&&se.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(e,"__esModule",{value:!0}),e.getNewOptions=e.getJsonSchemaRefParserDefaultOptions=void 0;const n=t(Z_),r=t(H_),i=t(uw),o=t(lw),a=t(cw),s=t(fw),l=()=>({parse:{json:{...n.default},yaml:{...r.default},text:{...i.default},binary:{...o.default}},resolve:{file:{...a.default},http:{...s.default},external:!0},continueOnError:!1,dereference:{circular:!0,excludedPathMatcher:()=>!1,referenceResolution:"relative"},mutateInputSchema:!0});e.getJsonSchemaRefParserDefaultOptions=l;const c=m=>{const h=(0,e.getJsonSchemaRefParserDefaultOptions)();return m&&d(h,m),h};e.getNewOptions=c;function d(m,h){if(p(h)){const y=Object.keys(h).filter(v=>!["__proto__","constructor","prototype"].includes(v));for(let v=0;v<y.length;v++){const w=y[v],_=h[w],b=m[w];p(_)?m[w]=d(b||{},_):_!==void 0&&(m[w]=_)}}return m}function p(m){return m&&typeof m=="object"&&!Array.isArray(m)&&!(m instanceof RegExp)&&!(m instanceof Date)}})(TD),Object.defineProperty(Sf,"__esModule",{value:!0}),Sf.normalizeArgs=void 0;const DAe=TD;function UM(e){let t,n,r,i;const o=Array.prototype.slice.call(e);typeof o[o.length-1]=="function"&&(i=o.pop()),typeof o[0]=="string"?(t=o[0],typeof o[2]=="object"?(n=o[1],r=o[2]):(n=void 0,r=o[1])):(t="",n=o[0],r=o[1]);try{r=(0,DAe.getNewOptions)(r)}catch(a){console.error(`JSON Schema Ref Parser: Error normalizing options: ${a}`)}return!r.mutateInputSchema&&typeof n=="object"&&(n=JSON.parse(JSON.stringify(n))),{path:t,schema:n,options:r,callback:i}}Sf.normalizeArgs=UM,Sf.default=UM;var dw={},MAe=se&&se.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),jAe=se&&se.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),LAe=se&&se.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&MAe(t,e,n);return jAe(t,e),t},pw=se&&se.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(dw,"__esModule",{value:!0});const FAe=pw(xf()),qAe=pw(Qm()),UAe=pw(ey),wl=LAe(Lt),BAe=tn;function zAe(e,t){var n;if(!((n=t.resolve)!=null&&n.external))return Promise.resolve();try{const r=hw(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}function hw(e,t,n,r,i,o){i||(i=new Set);let a=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)&&!i.has(e)){i.add(e),FAe.default.isExternal$Ref(e)&&a.push(ZAe(e,t,n,r));const s=Object.keys(e);for(const l of s){const c=qAe.default.join(t,l),d=e[l];a=a.concat(hw(d,c,n,r,i))}}return a}async function ZAe(e,t,n,r){var l;const i=((l=r.dereference)==null?void 0:l.externalReferenceResolution)==="root",o=wl.resolve(i?wl.cwd():t,e.$ref),a=wl.stripHash(o),s=n._$refs[a];if(s)return Promise.resolve(s.value);try{const c=await(0,UAe.default)(o,n,r),d=hw(c,a+"#",n,r,new Set,!0);return Promise.all(d)}catch(c){if(!(r!=null&&r.continueOnError)||!(0,BAe.isHandledError)(c))throw c;return n._$refs[a]&&(c.source=decodeURI(wl.stripHash(t)),c.path=wl.safePointerToPath(wl.getHash(t))),[]}}dw.default=zAe;var mw={},HAe=se&&se.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),WAe=se&&se.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),VAe=se&&se.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&HAe(t,e,n);return WAe(t,e),t},BM=se&&se.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(mw,"__esModule",{value:!0});const ly=BM(xf()),Nf=BM(Qm()),yw=VAe(Lt);function KAe(e,t){const n=[];gw(e,"schema",e.$refs._root$Ref.path+"#","#",0,n,e.$refs,t),GAe(n)}function gw(e,t,n,r,i,o,a,s){const l=t===null?e:e[t];if(l&&typeof l=="object"&&!ArrayBuffer.isView(l))if(ly.default.isAllowed$Ref(l))zM(e,t,n,r,i,o,a,s);else{const c=Object.keys(l).sort((d,p)=>d==="definitions"?-1:p==="definitions"?1:d.length-p.length);for(const d of c){const p=Nf.default.join(n,d),m=Nf.default.join(r,d),h=l[d];ly.default.isAllowed$Ref(h)?zM(l,d,n,m,i,o,a,s):gw(l,d,p,m,i,o,a,s)}}}function zM(e,t,n,r,i,o,a,s){const l=t===null?e:e[t],c=yw.resolve(n,l.$ref),d=a._resolve(c,r,s);if(d===null)return;const m=Nf.default.parse(r).length,h=yw.stripHash(d.path),y=yw.getHash(d.path),v=h!==a._root$Ref.path,w=ly.default.isExtended$Ref(l);i+=d.indirections;const _=YAe(o,e,t);if(_)if(m<_.depth||i<_.indirections)JAe(o,_);else return;o.push({$ref:l,parent:e,key:t,pathFromRoot:r,depth:m,file:h,hash:y,value:d.value,circular:d.circular,extended:w,external:v,indirections:i}),(!_||v)&&gw(d.value,null,d.path,r,i+1,o,a,s)}function GAe(e){e.sort((i,o)=>{if(i.file!==o.file)return i.file<o.file?-1:1;if(i.hash!==o.hash)return i.hash<o.hash?-1:1;if(i.circular!==o.circular)return i.circular?-1:1;if(i.extended!==o.extended)return i.extended?1:-1;if(i.indirections!==o.indirections)return i.indirections-o.indirections;if(i.depth!==o.depth)return i.depth-o.depth;{const a=i.pathFromRoot.lastIndexOf("/definitions"),s=o.pathFromRoot.lastIndexOf("/definitions");return a!==s?s-a:i.pathFromRoot.length-o.pathFromRoot.length}});let t,n,r;for(const i of e)i.external?i.file===t&&i.hash===n?i.$ref.$ref=r:i.file===t&&i.hash.indexOf(n+"/")===0?i.$ref.$ref=Nf.default.join(r,Nf.default.parse(i.hash.replace(n,"#"))):(t=i.file,n=i.hash,r=i.pathFromRoot,i.$ref=i.parent[i.key]=ly.default.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}function YAe(e,t,n){for(const r of e)if(r&&r.parent===t&&r.key===n)return r}function JAe(e,t){const n=e.indexOf(t);e.splice(n,1)}mw.default=KAe;var vw={},XAe=se&&se.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),QAe=se&&se.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),eCe=se&&se.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&XAe(t,e,n);return QAe(t,e),t},ZM=se&&se.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vw,"__esModule",{value:!0});const cy=ZM(xf()),HM=ZM(Qm()),tCe=Fs,WM=eCe(Lt),nCe=tn;vw.default=rCe;function rCe(e,t){const n=Date.now(),r=bw(e.schema,e.$refs._root$Ref.path,"#",new Set,new Set,new Map,e.$refs,t,n);e.$refs.circular=r.circular,e.schema=r.value}function bw(e,t,n,r,i,o,a,s,l){var h;let c;const d={value:e,circular:!1};if(s&&s.timeoutMs&&Date.now()-l>s.timeoutMs)throw new nCe.TimeoutError(s.timeoutMs);const p=s.dereference||{},m=p.excludedPathMatcher||(()=>!1);if(((p==null?void 0:p.circular)==="ignore"||!i.has(e))&&e&&typeof e=="object"&&!ArrayBuffer.isView(e)&&!m(n)){if(r.add(e),i.add(e),cy.default.isAllowed$Ref(e,s))c=VM(e,t,n,r,i,o,a,s,l),d.circular=c.circular,d.value=c.value;else for(const y of Object.keys(e)){const v=HM.default.join(t,y),w=HM.default.join(n,y);if(m(w))continue;const _=e[y];let b=!1;cy.default.isAllowed$Ref(_,s)?(c=VM(_,v,w,r,i,o,a,s,l),b=c.circular,e[y]!==c.value&&(e[y]=c.value,(h=p==null?void 0:p.onDereference)==null||h.call(p,_.$ref,e[y],e,y))):r.has(_)?b=KM(v,a,s):(c=bw(_,v,w,r,i,o,a,s,l),b=c.circular,e[y]!==c.value&&(e[y]=c.value)),d.circular=d.circular||b}r.delete(e)}return d}function VM(e,t,n,r,i,o,a,s,l){var b,S;const d=cy.default.isExternal$Ref(e)&&((b=s==null?void 0:s.dereference)==null?void 0:b.externalReferenceResolution)==="root",p=WM.resolve(d?WM.cwd():t,e.$ref),m=o.get(p);if(m){const A=Object.keys(e);if(A.length>1){const E={};for(const T of A)T!=="$ref"&&!(T in m.value)&&(E[T]=e[T]);return{circular:m.circular,value:Object.assign({},m.value,E)}}return m}const h=a._resolve(p,t,s);if(h===null)return{circular:!1,value:null};const y=h.circular;let v=y||r.has(h.value);v&&KM(t,a,s);let w=cy.default.dereference(e,h.value);if(!v){const A=bw(w,h.path,n,r,i,o,a,s,l);v=A.circular,w=A.value}v&&!y&&((S=s.dereference)==null?void 0:S.circular)==="ignore"&&(w=e),y&&(w.$ref=n);const _={circular:v,value:w};return Object.keys(e).length===1&&o.set(p,_),_}function KM(e,t,n){if(t.circular=!0,!n.dereference.circular)throw tCe.ono.reference(`Circular $ref pointer found at ${e}`);return!0}var _w={},ww={};Object.defineProperty(ww,"__esModule",{value:!0});function iCe(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:function(t){setTimeout(t,0)}}ww.default=iCe();var oCe=se&&se.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_w,"__esModule",{value:!0});const GM=oCe(ww);function aCe(e,t){if(e){t.then(function(n){(0,GM.default)(function(){e(null,n)})},function(n){(0,GM.default)(function(){e(n)})});return}else return t}_w.default=aCe,function(e){var t=se&&se.__createBinding||(Object.create?function(_,b,S,A){A===void 0&&(A=S);var E=Object.getOwnPropertyDescriptor(b,S);(!E||("get"in E?!b.__esModule:E.writable||E.configurable))&&(E={enumerable:!0,get:function(){return b[S]}}),Object.defineProperty(_,A,E)}:function(_,b,S,A){A===void 0&&(A=S),_[A]=b[S]}),n=se&&se.__setModuleDefault||(Object.create?function(_,b){Object.defineProperty(_,"default",{enumerable:!0,value:b})}:function(_,b){_.default=b}),r=se&&se.__importStar||function(_){if(_&&_.__esModule)return _;var b={};if(_!=null)for(var S in _)S!=="default"&&Object.prototype.hasOwnProperty.call(_,S)&&t(b,_,S);return n(b,_),b},i=se&&se.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(e,"__esModule",{value:!0}),e.JSONParserErrorGroup=e.isHandledError=e.UnmatchedParserError=e.ParserError=e.ResolverError=e.MissingPointerError=e.InvalidPointerError=e.JSONParserError=e.UnmatchedResolverError=e.dereference=e.bundle=e.resolve=e.parse=e.$RefParser=void 0;const o=i(D_),a=i(ey),s=i(Sf),l=i(dw),c=i(mw),d=i(vw),p=r(Lt),m=tn;Object.defineProperty(e,"JSONParserError",{enumerable:!0,get:function(){return m.JSONParserError}}),Object.defineProperty(e,"InvalidPointerError",{enumerable:!0,get:function(){return m.InvalidPointerError}}),Object.defineProperty(e,"MissingPointerError",{enumerable:!0,get:function(){return m.MissingPointerError}}),Object.defineProperty(e,"ResolverError",{enumerable:!0,get:function(){return m.ResolverError}}),Object.defineProperty(e,"ParserError",{enumerable:!0,get:function(){return m.ParserError}}),Object.defineProperty(e,"UnmatchedParserError",{enumerable:!0,get:function(){return m.UnmatchedParserError}}),Object.defineProperty(e,"UnmatchedResolverError",{enumerable:!0,get:function(){return m.UnmatchedResolverError}}),Object.defineProperty(e,"isHandledError",{enumerable:!0,get:function(){return m.isHandledError}}),Object.defineProperty(e,"JSONParserErrorGroup",{enumerable:!0,get:function(){return m.JSONParserErrorGroup}});const h=Fs,y=i(_w);class v{constructor(){this.schema=null,this.$refs=new o.default}async parse(){const b=(0,s.default)(arguments);let S;if(!b.path&&!b.schema){const E=(0,h.ono)(`Expected a file path, URL, or object. Got ${b.path||b.schema}`);return(0,y.default)(b.callback,Promise.reject(E))}this.schema=null,this.$refs=new o.default;let A="http";if(p.isFileSystemPath(b.path))b.path=p.fromFileSystemPath(b.path),A="file";else if(!b.path&&b.schema&&"$id"in b.schema&&b.schema.$id){const E=p.parse(b.schema.$id),T=E.protocol==="https:"?443:80;b.path=`${E.protocol}//${E.hostname}:${T}`}if(b.path=p.resolve(p.cwd(),b.path),b.schema&&typeof b.schema=="object"){const E=this.$refs._add(b.path);E.value=b.schema,E.pathType=A,S=Promise.resolve(b.schema)}else S=(0,a.default)(b.path,this.$refs,b.options);try{const E=await S;if(E!==null&&typeof E=="object"&&!Buffer.isBuffer(E))return this.schema=E,(0,y.default)(b.callback,Promise.resolve(this.schema));if(b.options.continueOnError)return this.schema=null,(0,y.default)(b.callback,Promise.resolve(this.schema));throw h.ono.syntax(`"${this.$refs._root$Ref.path||E}" is not a valid JSON Schema`)}catch(E){return!b.options.continueOnError||!(0,m.isHandledError)(E)?(0,y.default)(b.callback,Promise.reject(E)):(this.$refs._$refs[p.stripHash(b.path)]&&this.$refs._$refs[p.stripHash(b.path)].addError(E),(0,y.default)(b.callback,Promise.resolve(null)))}}static parse(){const b=new v;return b.parse.apply(b,arguments)}async resolve(){const b=(0,s.default)(arguments);try{return await this.parse(b.path,b.schema,b.options),await(0,l.default)(this,b.options),w(this),(0,y.default)(b.callback,Promise.resolve(this.$refs))}catch(S){return(0,y.default)(b.callback,Promise.reject(S))}}static resolve(){const b=new v;return b.resolve.apply(b,arguments)}static bundle(){const b=new v;return b.bundle.apply(b,arguments)}async bundle(){const b=(0,s.default)(arguments);try{return await this.resolve(b.path,b.schema,b.options),(0,c.default)(this,b.options),w(this),(0,y.default)(b.callback,Promise.resolve(this.schema))}catch(S){return(0,y.default)(b.callback,Promise.reject(S))}}static dereference(){const b=new v;return b.dereference.apply(b,arguments)}async dereference(){const b=(0,s.default)(arguments);try{return await this.resolve(b.path,b.schema,b.options),(0,d.default)(this,b.options),w(this),(0,y.default)(b.callback,Promise.resolve(this.schema))}catch(S){return(0,y.default)(b.callback,Promise.reject(S))}}}e.$RefParser=v,e.default=v;function w(_){if(m.JSONParserErrorGroup.getParserErrors(_).length>0)throw new m.JSONParserErrorGroup(_)}e.parse=v.parse,e.resolve=v.resolve,e.bundle=v.bundle,e.dereference=v.dereference}(N_);const sCe=TF({__proto__:null,default:Oo(N_)},[N_]);xt.Avatar=og,xt.Block=cl,xt.Composer=X2,xt.ComposerButton=tN,xt.ComposerInput=Q2,xt.Container=PN,xt.Fab=Ywe,xt.Header=MN,xt.HeaderRoot=yxe,xt.LoadingIndicator=jN,xt.Message=I_,xt.MessageList=QN,xt.Modal=qa,xt.ModalProvider=nN,xt.RestartConversation=DN,xt.UploadButton=eN,xt.Webchat=Gxe,xt.WebchatProvider=w_e,xt.avatarThemeSchema=Zm,xt.blockThemeSchema=rD,xt.clientModePropsSchema=sD,xt.configPropsSchema=uD,xt.configurationSchema=eD,xt.cssStyleSchema=nD,xt.descriptionItemSchema=ml,xt.fileTypes=fR,xt.getClient=pR,xt.initPropsSchema=Yxe,xt.isFileType=dR,xt.markdownTypeSchema=tD,xt.renderers=J2,xt.statePropsSchema=oD,xt.styleOptionSchema=Le,xt.themeSchema=iD,xt.useClient=Pye,xt.userPropsSchema=aD,Object.defineProperty(xt,Symbol.toStringTag,{value:"Module"})});
|
|
504
|
+
`)}`));if(!("location"in i.headers)||!i.headers.location)throw(0,uy.ono)({status:i.status},`HTTP ${i.status} redirect with no location header`);{const o=Rf.resolve(e.href,i.headers.location);return qM(o,t,r)}}else{if(i.body){const o=await i.arrayBuffer();return Buffer.from(o)}return Buffer.alloc(0)}}catch(i){throw new FM.ResolverError((0,uy.ono)(i,`Error downloading ${e.href}`),e.href)}}async function NAe(e,t){let n,r;t.timeout&&(n=new AbortController,r=setTimeout(()=>n.abort(),t.timeout));const i=await fetch(e,{method:"GET",headers:t.headers||{},credentials:t.withCredentials?"include":"same-origin",signal:n?n.signal:null});return r&&clearTimeout(r),i}(function(e){var t=se&&se.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(e,"__esModule",{value:!0}),e.getNewOptions=e.getJsonSchemaRefParserDefaultOptions=void 0;const n=t(Z_),r=t(H_),i=t(uw),o=t(lw),a=t(cw),s=t(fw),l=()=>({parse:{json:{...n.default},yaml:{...r.default},text:{...i.default},binary:{...o.default}},resolve:{file:{...a.default},http:{...s.default},external:!0},continueOnError:!1,dereference:{circular:!0,excludedPathMatcher:()=>!1,referenceResolution:"relative"},mutateInputSchema:!0});e.getJsonSchemaRefParserDefaultOptions=l;const c=m=>{const h=(0,e.getJsonSchemaRefParserDefaultOptions)();return m&&d(h,m),h};e.getNewOptions=c;function d(m,h){if(p(h)){const y=Object.keys(h).filter(v=>!["__proto__","constructor","prototype"].includes(v));for(let v=0;v<y.length;v++){const w=y[v],_=h[w],b=m[w];p(_)?m[w]=d(b||{},_):_!==void 0&&(m[w]=_)}}return m}function p(m){return m&&typeof m=="object"&&!Array.isArray(m)&&!(m instanceof RegExp)&&!(m instanceof Date)}})(TD),Object.defineProperty(Sf,"__esModule",{value:!0}),Sf.normalizeArgs=void 0;const DAe=TD;function UM(e){let t,n,r,i;const o=Array.prototype.slice.call(e);typeof o[o.length-1]=="function"&&(i=o.pop()),typeof o[0]=="string"?(t=o[0],typeof o[2]=="object"?(n=o[1],r=o[2]):(n=void 0,r=o[1])):(t="",n=o[0],r=o[1]);try{r=(0,DAe.getNewOptions)(r)}catch(a){console.error(`JSON Schema Ref Parser: Error normalizing options: ${a}`)}return!r.mutateInputSchema&&typeof n=="object"&&(n=JSON.parse(JSON.stringify(n))),{path:t,schema:n,options:r,callback:i}}Sf.normalizeArgs=UM,Sf.default=UM;var dw={},MAe=se&&se.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),jAe=se&&se.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),LAe=se&&se.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&MAe(t,e,n);return jAe(t,e),t},pw=se&&se.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(dw,"__esModule",{value:!0});const FAe=pw(xf()),qAe=pw(Qm()),UAe=pw(ey),wl=LAe(Lt),BAe=tn;function zAe(e,t){var n;if(!((n=t.resolve)!=null&&n.external))return Promise.resolve();try{const r=hw(e.schema,e.$refs._root$Ref.path+"#",e.$refs,t);return Promise.all(r)}catch(r){return Promise.reject(r)}}function hw(e,t,n,r,i,o){i||(i=new Set);let a=[];if(e&&typeof e=="object"&&!ArrayBuffer.isView(e)&&!i.has(e)){i.add(e),FAe.default.isExternal$Ref(e)&&a.push(ZAe(e,t,n,r));const s=Object.keys(e);for(const l of s){const c=qAe.default.join(t,l),d=e[l];a=a.concat(hw(d,c,n,r,i))}}return a}async function ZAe(e,t,n,r){var l;const i=((l=r.dereference)==null?void 0:l.externalReferenceResolution)==="root",o=wl.resolve(i?wl.cwd():t,e.$ref),a=wl.stripHash(o),s=n._$refs[a];if(s)return Promise.resolve(s.value);try{const c=await(0,UAe.default)(o,n,r),d=hw(c,a+"#",n,r,new Set,!0);return Promise.all(d)}catch(c){if(!(r!=null&&r.continueOnError)||!(0,BAe.isHandledError)(c))throw c;return n._$refs[a]&&(c.source=decodeURI(wl.stripHash(t)),c.path=wl.safePointerToPath(wl.getHash(t))),[]}}dw.default=zAe;var mw={},HAe=se&&se.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),WAe=se&&se.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),VAe=se&&se.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&HAe(t,e,n);return WAe(t,e),t},BM=se&&se.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(mw,"__esModule",{value:!0});const ly=BM(xf()),Nf=BM(Qm()),yw=VAe(Lt);function KAe(e,t){const n=[];gw(e,"schema",e.$refs._root$Ref.path+"#","#",0,n,e.$refs,t),GAe(n)}function gw(e,t,n,r,i,o,a,s){const l=t===null?e:e[t];if(l&&typeof l=="object"&&!ArrayBuffer.isView(l))if(ly.default.isAllowed$Ref(l))zM(e,t,n,r,i,o,a,s);else{const c=Object.keys(l).sort((d,p)=>d==="definitions"?-1:p==="definitions"?1:d.length-p.length);for(const d of c){const p=Nf.default.join(n,d),m=Nf.default.join(r,d),h=l[d];ly.default.isAllowed$Ref(h)?zM(l,d,n,m,i,o,a,s):gw(l,d,p,m,i,o,a,s)}}}function zM(e,t,n,r,i,o,a,s){const l=t===null?e:e[t],c=yw.resolve(n,l.$ref),d=a._resolve(c,r,s);if(d===null)return;const m=Nf.default.parse(r).length,h=yw.stripHash(d.path),y=yw.getHash(d.path),v=h!==a._root$Ref.path,w=ly.default.isExtended$Ref(l);i+=d.indirections;const _=YAe(o,e,t);if(_)if(m<_.depth||i<_.indirections)JAe(o,_);else return;o.push({$ref:l,parent:e,key:t,pathFromRoot:r,depth:m,file:h,hash:y,value:d.value,circular:d.circular,extended:w,external:v,indirections:i}),(!_||v)&&gw(d.value,null,d.path,r,i+1,o,a,s)}function GAe(e){e.sort((i,o)=>{if(i.file!==o.file)return i.file<o.file?-1:1;if(i.hash!==o.hash)return i.hash<o.hash?-1:1;if(i.circular!==o.circular)return i.circular?-1:1;if(i.extended!==o.extended)return i.extended?1:-1;if(i.indirections!==o.indirections)return i.indirections-o.indirections;if(i.depth!==o.depth)return i.depth-o.depth;{const a=i.pathFromRoot.lastIndexOf("/definitions"),s=o.pathFromRoot.lastIndexOf("/definitions");return a!==s?s-a:i.pathFromRoot.length-o.pathFromRoot.length}});let t,n,r;for(const i of e)i.external?i.file===t&&i.hash===n?i.$ref.$ref=r:i.file===t&&i.hash.indexOf(n+"/")===0?i.$ref.$ref=Nf.default.join(r,Nf.default.parse(i.hash.replace(n,"#"))):(t=i.file,n=i.hash,r=i.pathFromRoot,i.$ref=i.parent[i.key]=ly.default.dereference(i.$ref,i.value),i.circular&&(i.$ref.$ref=i.pathFromRoot)):i.$ref.$ref=i.hash}function YAe(e,t,n){for(const r of e)if(r&&r.parent===t&&r.key===n)return r}function JAe(e,t){const n=e.indexOf(t);e.splice(n,1)}mw.default=KAe;var vw={},XAe=se&&se.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),QAe=se&&se.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),eCe=se&&se.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&XAe(t,e,n);return QAe(t,e),t},ZM=se&&se.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vw,"__esModule",{value:!0});const cy=ZM(xf()),HM=ZM(Qm()),tCe=Fs,WM=eCe(Lt),nCe=tn;vw.default=rCe;function rCe(e,t){const n=Date.now(),r=bw(e.schema,e.$refs._root$Ref.path,"#",new Set,new Set,new Map,e.$refs,t,n);e.$refs.circular=r.circular,e.schema=r.value}function bw(e,t,n,r,i,o,a,s,l){var h;let c;const d={value:e,circular:!1};if(s&&s.timeoutMs&&Date.now()-l>s.timeoutMs)throw new nCe.TimeoutError(s.timeoutMs);const p=s.dereference||{},m=p.excludedPathMatcher||(()=>!1);if(((p==null?void 0:p.circular)==="ignore"||!i.has(e))&&e&&typeof e=="object"&&!ArrayBuffer.isView(e)&&!m(n)){if(r.add(e),i.add(e),cy.default.isAllowed$Ref(e,s))c=VM(e,t,n,r,i,o,a,s,l),d.circular=c.circular,d.value=c.value;else for(const y of Object.keys(e)){const v=HM.default.join(t,y),w=HM.default.join(n,y);if(m(w))continue;const _=e[y];let b=!1;cy.default.isAllowed$Ref(_,s)?(c=VM(_,v,w,r,i,o,a,s,l),b=c.circular,e[y]!==c.value&&(e[y]=c.value,(h=p==null?void 0:p.onDereference)==null||h.call(p,_.$ref,e[y],e,y))):r.has(_)?b=KM(v,a,s):(c=bw(_,v,w,r,i,o,a,s,l),b=c.circular,e[y]!==c.value&&(e[y]=c.value)),d.circular=d.circular||b}r.delete(e)}return d}function VM(e,t,n,r,i,o,a,s,l){var b,S;const d=cy.default.isExternal$Ref(e)&&((b=s==null?void 0:s.dereference)==null?void 0:b.externalReferenceResolution)==="root",p=WM.resolve(d?WM.cwd():t,e.$ref),m=o.get(p);if(m){const A=Object.keys(e);if(A.length>1){const E={};for(const T of A)T!=="$ref"&&!(T in m.value)&&(E[T]=e[T]);return{circular:m.circular,value:Object.assign({},m.value,E)}}return m}const h=a._resolve(p,t,s);if(h===null)return{circular:!1,value:null};const y=h.circular;let v=y||r.has(h.value);v&&KM(t,a,s);let w=cy.default.dereference(e,h.value);if(!v){const A=bw(w,h.path,n,r,i,o,a,s,l);v=A.circular,w=A.value}v&&!y&&((S=s.dereference)==null?void 0:S.circular)==="ignore"&&(w=e),y&&(w.$ref=n);const _={circular:v,value:w};return Object.keys(e).length===1&&o.set(p,_),_}function KM(e,t,n){if(t.circular=!0,!n.dereference.circular)throw tCe.ono.reference(`Circular $ref pointer found at ${e}`);return!0}var _w={},ww={};Object.defineProperty(ww,"__esModule",{value:!0});function iCe(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:function(t){setTimeout(t,0)}}ww.default=iCe();var oCe=se&&se.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_w,"__esModule",{value:!0});const GM=oCe(ww);function aCe(e,t){if(e){t.then(function(n){(0,GM.default)(function(){e(null,n)})},function(n){(0,GM.default)(function(){e(n)})});return}else return t}_w.default=aCe,function(e){var t=se&&se.__createBinding||(Object.create?function(_,b,S,A){A===void 0&&(A=S);var E=Object.getOwnPropertyDescriptor(b,S);(!E||("get"in E?!b.__esModule:E.writable||E.configurable))&&(E={enumerable:!0,get:function(){return b[S]}}),Object.defineProperty(_,A,E)}:function(_,b,S,A){A===void 0&&(A=S),_[A]=b[S]}),n=se&&se.__setModuleDefault||(Object.create?function(_,b){Object.defineProperty(_,"default",{enumerable:!0,value:b})}:function(_,b){_.default=b}),r=se&&se.__importStar||function(_){if(_&&_.__esModule)return _;var b={};if(_!=null)for(var S in _)S!=="default"&&Object.prototype.hasOwnProperty.call(_,S)&&t(b,_,S);return n(b,_),b},i=se&&se.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(e,"__esModule",{value:!0}),e.JSONParserErrorGroup=e.isHandledError=e.UnmatchedParserError=e.ParserError=e.ResolverError=e.MissingPointerError=e.InvalidPointerError=e.JSONParserError=e.UnmatchedResolverError=e.dereference=e.bundle=e.resolve=e.parse=e.$RefParser=void 0;const o=i(D_),a=i(ey),s=i(Sf),l=i(dw),c=i(mw),d=i(vw),p=r(Lt),m=tn;Object.defineProperty(e,"JSONParserError",{enumerable:!0,get:function(){return m.JSONParserError}}),Object.defineProperty(e,"InvalidPointerError",{enumerable:!0,get:function(){return m.InvalidPointerError}}),Object.defineProperty(e,"MissingPointerError",{enumerable:!0,get:function(){return m.MissingPointerError}}),Object.defineProperty(e,"ResolverError",{enumerable:!0,get:function(){return m.ResolverError}}),Object.defineProperty(e,"ParserError",{enumerable:!0,get:function(){return m.ParserError}}),Object.defineProperty(e,"UnmatchedParserError",{enumerable:!0,get:function(){return m.UnmatchedParserError}}),Object.defineProperty(e,"UnmatchedResolverError",{enumerable:!0,get:function(){return m.UnmatchedResolverError}}),Object.defineProperty(e,"isHandledError",{enumerable:!0,get:function(){return m.isHandledError}}),Object.defineProperty(e,"JSONParserErrorGroup",{enumerable:!0,get:function(){return m.JSONParserErrorGroup}});const h=Fs,y=i(_w);class v{constructor(){this.schema=null,this.$refs=new o.default}async parse(){const b=(0,s.default)(arguments);let S;if(!b.path&&!b.schema){const E=(0,h.ono)(`Expected a file path, URL, or object. Got ${b.path||b.schema}`);return(0,y.default)(b.callback,Promise.reject(E))}this.schema=null,this.$refs=new o.default;let A="http";if(p.isFileSystemPath(b.path))b.path=p.fromFileSystemPath(b.path),A="file";else if(!b.path&&b.schema&&"$id"in b.schema&&b.schema.$id){const E=p.parse(b.schema.$id),T=E.protocol==="https:"?443:80;b.path=`${E.protocol}//${E.hostname}:${T}`}if(b.path=p.resolve(p.cwd(),b.path),b.schema&&typeof b.schema=="object"){const E=this.$refs._add(b.path);E.value=b.schema,E.pathType=A,S=Promise.resolve(b.schema)}else S=(0,a.default)(b.path,this.$refs,b.options);try{const E=await S;if(E!==null&&typeof E=="object"&&!Buffer.isBuffer(E))return this.schema=E,(0,y.default)(b.callback,Promise.resolve(this.schema));if(b.options.continueOnError)return this.schema=null,(0,y.default)(b.callback,Promise.resolve(this.schema));throw h.ono.syntax(`"${this.$refs._root$Ref.path||E}" is not a valid JSON Schema`)}catch(E){return!b.options.continueOnError||!(0,m.isHandledError)(E)?(0,y.default)(b.callback,Promise.reject(E)):(this.$refs._$refs[p.stripHash(b.path)]&&this.$refs._$refs[p.stripHash(b.path)].addError(E),(0,y.default)(b.callback,Promise.resolve(null)))}}static parse(){const b=new v;return b.parse.apply(b,arguments)}async resolve(){const b=(0,s.default)(arguments);try{return await this.parse(b.path,b.schema,b.options),await(0,l.default)(this,b.options),w(this),(0,y.default)(b.callback,Promise.resolve(this.$refs))}catch(S){return(0,y.default)(b.callback,Promise.reject(S))}}static resolve(){const b=new v;return b.resolve.apply(b,arguments)}static bundle(){const b=new v;return b.bundle.apply(b,arguments)}async bundle(){const b=(0,s.default)(arguments);try{return await this.resolve(b.path,b.schema,b.options),(0,c.default)(this,b.options),w(this),(0,y.default)(b.callback,Promise.resolve(this.schema))}catch(S){return(0,y.default)(b.callback,Promise.reject(S))}}static dereference(){const b=new v;return b.dereference.apply(b,arguments)}async dereference(){const b=(0,s.default)(arguments);try{return await this.resolve(b.path,b.schema,b.options),(0,d.default)(this,b.options),w(this),(0,y.default)(b.callback,Promise.resolve(this.schema))}catch(S){return(0,y.default)(b.callback,Promise.reject(S))}}}e.$RefParser=v,e.default=v;function w(_){if(m.JSONParserErrorGroup.getParserErrors(_).length>0)throw new m.JSONParserErrorGroup(_)}e.parse=v.parse,e.resolve=v.resolve,e.bundle=v.bundle,e.dereference=v.dereference}(N_);const sCe=TF({__proto__:null,default:Oo(N_)},[N_]);bt.Avatar=og,bt.Block=cl,bt.Composer=X2,bt.ComposerButton=tN,bt.ComposerInput=Q2,bt.Container=PN,bt.Fab=Ywe,bt.Header=MN,bt.HeaderRoot=yxe,bt.LoadingIndicator=jN,bt.Message=I_,bt.MessageList=QN,bt.Modal=qa,bt.ModalProvider=nN,bt.RestartConversation=DN,bt.UploadButton=eN,bt.Webchat=Gxe,bt.WebchatProvider=w_e,bt.avatarThemeSchema=Zm,bt.blockThemeSchema=rD,bt.clientModePropsSchema=sD,bt.configPropsSchema=uD,bt.configurationSchema=eD,bt.cssStyleSchema=nD,bt.descriptionItemSchema=ml,bt.fileTypes=fR,bt.getClient=pR,bt.initPropsSchema=Yxe,bt.isFileType=dR,bt.markdownTypeSchema=tD,bt.renderers=J2,bt.statePropsSchema=oD,bt.styleOptionSchema=Le,bt.themeSchema=iD,bt.useClient=Pye,bt.useWebchatStore=it,bt.userPropsSchema=aD,Object.defineProperty(bt,Symbol.toStringTag,{value:"Module"})});
|